diff --git a/blocks/text-image/build/index.asset.php b/blocks/text-image/build/index.asset.php
index f09a98b..d3749fd 100644
--- a/blocks/text-image/build/index.asset.php
+++ b/blocks/text-image/build/index.asset.php
@@ -1 +1 @@
- array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '86470840525466393d70');
+ array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '3356560b010309d5ab53');
diff --git a/blocks/text-image/build/index.js b/blocks/text-image/build/index.js
index 4d76e8f..4ea1711 100644
--- a/blocks/text-image/build/index.js
+++ b/blocks/text-image/build/index.js
@@ -108,7 +108,6 @@ function ImagePanelBody({
setAttributes
}) {
function setImageAttributes(image) {
- console.log(image);
setAttributes({
imageId: image.id,
imageAlt: image.alt,
@@ -270,7 +269,11 @@ function Edit({
imageAlt: imageAlt,
imageUrl: imageUrl,
imageProportion: imageProportion
- }), imageDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, imageDescription), imageCaption && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, imageCaption))), contentDisposition === "right" && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
+ }), imageDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
+ className: "picture_description"
+ }, imageDescription), imageCaption && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
+ className: "picture_caption"
+ }, imageCaption))), contentDisposition === "right" && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
className: "homegrade-blocks-text-image__column homegrade-blocks-text-image__column--image"
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_components_ImageMediaPlaceholder__WEBPACK_IMPORTED_MODULE_3__["default"], {
imageAlt: imageAlt,
@@ -282,7 +285,11 @@ function Edit({
imageAlt: imageAlt,
imageUrl: imageUrl,
imageProportion: imageProportion
- }), imageDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, imageDescription), imageCaption && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, imageCaption)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
+ }), imageDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
+ className: "picture_description"
+ }, imageDescription), imageCaption && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
+ className: "picture_caption"
+ }, imageCaption)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
className: "homegrade-blocks-text-image__column homegrade-blocks-text-image__column--text"
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__.InnerBlocks, {
template: [["core/paragraph", {
@@ -375,13 +382,21 @@ function save({
imageAlt: imageAlt,
imageUrl: imageUrl,
imageProportion: imageProportion
- }), imageDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, imageDescription), imageCaption && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, imageCaption))), contentDisposition === "right" && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
+ }), imageDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
+ className: "picture_description"
+ }, imageDescription), imageCaption && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
+ className: "picture_caption"
+ }, imageCaption))), contentDisposition === "right" && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
className: "homegrade-blocks-text-image__column homegrade-blocks-text-image__column--image"
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_components_Image__WEBPACK_IMPORTED_MODULE_2__["default"], {
imageAlt: imageAlt,
imageUrl: imageUrl,
imageProportion: imageProportion
- }), imageDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, imageDescription), imageCaption && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, imageCaption)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
+ }), imageDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
+ className: "picture_description"
+ }, imageDescription), imageCaption && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
+ className: "picture_caption"
+ }, imageCaption)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
className: "homegrade-blocks-text-image__column homegrade-blocks-text-image__column--text"
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks.Content, null))));
}
diff --git a/blocks/text-image/build/index.js.map b/blocks/text-image/build/index.js.map
index c0f12ee..fdbf81b 100644
--- a/blocks/text-image/build/index.js.map
+++ b/blocks/text-image/build/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;AAAe,SAASA,KAAKA,CAAC;EAAEC,QAAQ;EAAEC,QAAQ;EAAEC;AAAgB,CAAC,EAAE;EACtE,OACCC,iEAA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EACNhC,iEAAA;IAAKG,SAAS,EAAC;EAA+E,GAC7FH,iEAAA,CAACkD,gEAAW,CAACqB,OAAO,MAAE,CAClB,CACJ,CAEC,CAAC;AAER;;;;;;;;;;;ACrDA;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;ACAmD;;AAEnD;AACA;AACA;AACkD;AAClD,cAAc,iEAAa,CAAC,sDAAG;AAC/B;AACA;AACA,CAAC,EAAE,iEAAa,CAAC,uDAAI;AACrB;AACA,CAAC;AACD,iEAAe,KAAK,EAAC;AACrB;;;;;;;;;;ACbA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC7BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEnDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/../_components/Image.jsx","webpack://multiblocks/../_components/ImageMediaPlaceholder.jsx","webpack://multiblocks/../_components/ImagePanelBody.jsx","webpack://multiblocks/./src/edit.js","webpack://multiblocks/./src/index.js","webpack://multiblocks/./src/save.js","webpack://multiblocks/./src/editor.scss","webpack://multiblocks/./src/style.scss","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/trash.js","webpack://multiblocks/external window [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"components\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"primitives\"]","webpack://multiblocks/webpack/bootstrap","webpack://multiblocks/webpack/runtime/chunk loaded","webpack://multiblocks/webpack/runtime/compat get default export","webpack://multiblocks/webpack/runtime/define property getters","webpack://multiblocks/webpack/runtime/hasOwnProperty shorthand","webpack://multiblocks/webpack/runtime/make namespace object","webpack://multiblocks/webpack/runtime/jsonp chunk loading","webpack://multiblocks/webpack/before-startup","webpack://multiblocks/webpack/startup","webpack://multiblocks/webpack/after-startup"],"sourcesContent":["export default function Image({ imageUrl, imageAlt, imageProportion }) {\r\n\treturn (\r\n\t\t \r\n\t);\r\n}\r\n","import { MediaReplaceFlow, MediaPlaceholder } from \"@wordpress/block-editor\";\r\n\r\nexport default function ImageMediaPlaceholder({ imageId, imageAlt, imageUrl, setAttributes }) {\r\n\tfunction setImageAttributes(image) {\r\n\t\tsetAttributes({\r\n\t\t\timageId: image.id,\r\n\t\t\timageAlt: image.alt,\r\n\t\t\timageUrl: image.url,\r\n\t\t});\r\n\t}\r\n\r\n\tfunction removeImageAttributes() {\r\n\t\tsetAttributes({\r\n\t\t\timageId: null,\r\n\t\t\timageAlt: null,\r\n\t\t\timageUrl: null,\r\n\t\t});\r\n\t}\r\n\treturn (\r\n\t\t<>\r\n\t\t\t{!imageUrl && (\r\n\t\t\t\t \r\n\t\t\t)}\r\n\t\t>\r\n\t);\r\n}\r\n","import { __ } from \"@wordpress/i18n\";\r\nimport {\r\n\tPanelBody,\r\n\tButton,\r\n\tTip,\r\n\t__experimentalToggleGroupControl as ToggleGroupControl,\r\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\r\n} from \"@wordpress/components\";\r\nimport { MediaReplaceFlow, MediaPlaceholder } from \"@wordpress/block-editor\";\r\nimport { trash } from \"@wordpress/icons\";\r\n\r\nexport default function ImagePanelBody({ imageUrl, imageAlt, imageId, imageProportion, setAttributes }) {\r\n\tfunction setImageAttributes(image) {\r\n\t\tconsole.log(image);\r\n\t\tsetAttributes({\r\n\t\t\timageId: image.id,\r\n\t\t\timageAlt: image.alt,\r\n\t\t\timageUrl: image.url,\r\n\t\t\timageCaption: image.caption,\r\n\t\t\timageDescription: image.description,\r\n\t\t});\r\n\t}\r\n\r\n\tfunction removeImageAttributes() {\r\n\t\tsetAttributes({\r\n\t\t\timageId: null,\r\n\t\t\timageAlt: null,\r\n\t\t\timageUrl: null,\r\n\t\t\timageCaption: null,\r\n\t\t\timageDescription: null,\r\n\t\t});\r\n\t}\r\n\tfunction onImageProportionChange(imageProportion) {\r\n\t\tsetAttributes({ imageProportion });\r\n\t}\r\n\treturn (\r\n\t\t<>\r\n\t\t\t\r\n\t\t\t\t{imageUrl && }\r\n\t\t\t\t\r\n\t\t\t\t\t \r\n\t\t\t\t\t{imageUrl && (\r\n\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\tSi besoin, Utilisez le champ \"Légende\"de la médiathèque pour afficher un\r\n\t\t\t\t\tcopyright\r\n\t\t\t\t \r\n\t\t\t\t\r\n\t\t\t\t\tSi besoin, Utilisez le champ \"Description\" de la médiathèque pour donner\r\n\t\t\t\t\tafficher une description de votre image\r\n\t\t\t\t \r\n\t\t\t\t{imageUrl && (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t)}\r\n\t\t\t \r\n\t\t>\r\n\t);\r\n}\r\n","import { __ } from \"@wordpress/i18n\";\nimport \"./editor.scss\";\nimport ImageMediaPlaceholder from \"../../_components/ImageMediaPlaceholder\";\nimport Image from \"../../_components/Image\";\nimport ImagePanelBody from \"../../_components/ImagePanelBody\";\n\nimport {\n\tInspectorControls,\n\tuseBlockProps,\n\tInnerBlocks,\n\tMediaPlaceholder,\n} from \"@wordpress/block-editor\";\nimport {\n\tButton,\n\tToolbarButton,\n\tPanelBody,\n\tToggleControl,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n} from \"@wordpress/components\";\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tlet {\n\t\timageId,\n\t\timageAlt,\n\t\timageUrl,\n\t\timageCaption,\n\t\timageDescription,\n\t\timageProportion,\n\t\tcontentDisposition,\n\t} = attributes;\n\n\tfunction changeContentDisposition(newContentDisposition) {\n\t\tsetAttributes({ contentDisposition: newContentDisposition });\n\t}\n\n\tconsole.log(imageDescription, imageCaption);\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t \n\t\t\t
\n\t\t\t\t{contentDisposition === \"left\" && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t{}\n\t\t\t\t\t\t
\n\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{imageDescription &&
{imageDescription}
}\n\t\t\t\t\t\t\t{imageCaption &&
{imageCaption}
}\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\t\t)}\n\t\t\t\t{contentDisposition === \"right\" && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{imageDescription &&
{imageDescription}
}\n\t\t\t\t\t\t\t{imageCaption &&
{imageCaption}
}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t{}\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\t\t)}\n\t\t\t
\n\t\t>\n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t \n\t\t\t \n\t\t),\n\t\tforeground: \"#DF1E1E\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport Image from \"../../_components/Image\";\nexport default function save({ attributes }) {\n\tlet {\n\t\timageAlt,\n\t\timageUrl,\n\t\timageCaption,\n\t\timageDescription,\n\t\timageProportion,\n\t\tcontentDisposition,\n\t} = attributes;\n\n\treturn (\n\t\t\n\t\t\t{contentDisposition === \"left\" && (\n\t\t\t\t<>\n\t\t\t\t\t
\n\t\t\t\t\t\t \n\t\t\t\t\t
\n\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t{imageDescription &&
{imageDescription}
}\n\t\t\t\t\t\t{imageCaption &&
{imageCaption}
}\n\t\t\t\t\t
\n\t\t\t\t>\n\t\t\t)}\n\t\t\t{contentDisposition === \"right\" && (\n\t\t\t\t<>\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t{imageDescription &&
{imageDescription}
}\n\t\t\t\t\t\t{imageCaption &&
{imageCaption}
}\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t \n\t\t\t\t\t
\n\t\t\t\t>\n\t\t\t)}\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst trash = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z\"\n}));\nexport default trash;\n//# sourceMappingURL=trash.js.map","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"index\": 0,\n\t\"./style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkmultiblocks\"] = self[\"webpackChunkmultiblocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"./style-index\"], () => (__webpack_require__(\"./src/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["Image","imageUrl","imageAlt","imageProportion","createElement","src","alt","className","MediaReplaceFlow","MediaPlaceholder","ImageMediaPlaceholder","imageId","setAttributes","setImageAttributes","image","id","url","removeImageAttributes","Fragment","accept","allowedTypes","onSelect","multiple","handleUpload","__","PanelBody","Button","Tip","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","trash","ImagePanelBody","console","log","imageCaption","caption","imageDescription","description","onImageProportionChange","title","mediaId","mediaUrl","name","variant","icon","label","onClick","isBlock","onChange","value","InspectorControls","useBlockProps","InnerBlocks","ToolbarButton","ToggleControl","Edit","attributes","props","contentDisposition","changeContentDisposition","newContentDisposition","template","placeholder","allowedBlocks","registerBlockType","save","metadata","xmlns","viewBox","class","d","foreground","edit","Content"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;AAAe,SAASA,KAAKA,CAAC;EAAEC,QAAQ;EAAEC,QAAQ;EAAEC;AAAgB,CAAC,EAAE;EACtE,OACCC,iEAAA;IACCC,GAAG,EAAEJ,QAAS;IACdK,GAAG,EAAEJ,QAAS;IACdK,SAAS,EAAG,wEAAuEJ,eAAgB;EAAQ,CAC3G,CAAC;AAEJ;;;;;;;;;;;;;;;;;;;ACR6E;AAE9D,SAASO,qBAAqBA,CAAC;EAAEC,OAAO;EAAET,QAAQ;EAAED,QAAQ;EAAEW;AAAc,CAAC,EAAE;EAC7F,SAASC,kBAAkBA,CAACC,KAAK,EAAE;IAClCF,aAAa,CAAC;MACbD,OAAO,EAAEG,KAAK,CAACC,EAAE;MACjBb,QAAQ,EAAEY,KAAK,CAACR,GAAG;MACnBL,QAAQ,EAAEa,KAAK,CAACE;IACjB,CAAC,CAAC;EACH;EAEA,SAASC,qBAAqBA,CAAA,EAAG;IAChCL,aAAa,CAAC;MACbD,OAAO,EAAE,IAAI;MACbT,QAAQ,EAAE,IAAI;MACdD,QAAQ,EAAE;IACX,CAAC,CAAC;EACH;EACA,OACCG,iEAAA,C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AA;;;;;;;;;;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC7BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEnDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/../_components/Image.jsx","webpack://multiblocks/../_components/ImageMediaPlaceholder.jsx","webpack://multiblocks/../_components/ImagePanelBody.jsx","webpack://multiblocks/./src/edit.js","webpack://multiblocks/./src/index.js","webpack://multiblocks/./src/save.js","webpack://multiblocks/./src/editor.scss","webpack://multiblocks/./src/style.scss","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/trash.js","webpack://multiblocks/external window [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"components\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"primitives\"]","webpack://multiblocks/webpack/bootstrap","webpack://multiblocks/webpack/runtime/chunk loaded","webpack://multiblocks/webpack/runtime/compat get default export","webpack://multiblocks/webpack/runtime/define property getters","webpack://multiblocks/webpack/runtime/hasOwnProperty shorthand","webpack://multiblocks/webpack/runtime/make namespace object","webpack://multiblocks/webpack/runtime/jsonp chunk loading","webpack://multiblocks/webpack/before-startup","webpack://multiblocks/webpack/startup","webpack://multiblocks/webpack/after-startup"],"sourcesContent":["export default function Image({ imageUrl, imageAlt, imageProportion }) {\r\n\treturn (\r\n\t\t \r\n\t);\r\n}\r\n","import { MediaReplaceFlow, MediaPlaceholder } from \"@wordpress/block-editor\";\r\n\r\nexport default function ImageMediaPlaceholder({ imageId, imageAlt, imageUrl, setAttributes }) {\r\n\tfunction setImageAttributes(image) {\r\n\t\tsetAttributes({\r\n\t\t\timageId: image.id,\r\n\t\t\timageAlt: image.alt,\r\n\t\t\timageUrl: image.url,\r\n\t\t});\r\n\t}\r\n\r\n\tfunction removeImageAttributes() {\r\n\t\tsetAttributes({\r\n\t\t\timageId: null,\r\n\t\t\timageAlt: null,\r\n\t\t\timageUrl: null,\r\n\t\t});\r\n\t}\r\n\treturn (\r\n\t\t<>\r\n\t\t\t{!imageUrl && (\r\n\t\t\t\t \r\n\t\t\t)}\r\n\t\t>\r\n\t);\r\n}\r\n","import { __ } from \"@wordpress/i18n\";\r\nimport {\r\n\tPanelBody,\r\n\tButton,\r\n\tTip,\r\n\t__experimentalToggleGroupControl as ToggleGroupControl,\r\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\r\n} from \"@wordpress/components\";\r\nimport { MediaReplaceFlow, MediaPlaceholder } from \"@wordpress/block-editor\";\r\nimport { trash } from \"@wordpress/icons\";\r\n\r\nexport default function ImagePanelBody({ imageUrl, imageAlt, imageId, imageProportion, setAttributes }) {\r\n\tfunction setImageAttributes(image) {\r\n\t\tsetAttributes({\r\n\t\t\timageId: image.id,\r\n\t\t\timageAlt: image.alt,\r\n\t\t\timageUrl: image.url,\r\n\t\t\timageCaption: image.caption,\r\n\t\t\timageDescription: image.description,\r\n\t\t});\r\n\t}\r\n\r\n\tfunction removeImageAttributes() {\r\n\t\tsetAttributes({\r\n\t\t\timageId: null,\r\n\t\t\timageAlt: null,\r\n\t\t\timageUrl: null,\r\n\t\t\timageCaption: null,\r\n\t\t\timageDescription: null,\r\n\t\t});\r\n\t}\r\n\tfunction onImageProportionChange(imageProportion) {\r\n\t\tsetAttributes({ imageProportion });\r\n\t}\r\n\treturn (\r\n\t\t<>\r\n\t\t\t\r\n\t\t\t\t{imageUrl && }\r\n\t\t\t\t\r\n\t\t\t\t\t \r\n\t\t\t\t\t{imageUrl && (\r\n\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t)}\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\tSi besoin, Utilisez le champ \"Légende\"de la médiathèque pour afficher un\r\n\t\t\t\t\tcopyright\r\n\t\t\t\t \r\n\t\t\t\t\r\n\t\t\t\t\tSi besoin, Utilisez le champ \"Description\" de la médiathèque pour donner\r\n\t\t\t\t\tafficher une description de votre image\r\n\t\t\t\t \r\n\t\t\t\t{imageUrl && (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t \r\n\t\t\t\t\t \r\n\t\t\t\t)}\r\n\t\t\t \r\n\t\t>\r\n\t);\r\n}\r\n","import { __ } from \"@wordpress/i18n\";\nimport \"./editor.scss\";\nimport ImageMediaPlaceholder from \"../../_components/ImageMediaPlaceholder\";\nimport Image from \"../../_components/Image\";\nimport ImagePanelBody from \"../../_components/ImagePanelBody\";\n\nimport {\n\tInspectorControls,\n\tuseBlockProps,\n\tInnerBlocks,\n\tMediaPlaceholder,\n} from \"@wordpress/block-editor\";\nimport {\n\tButton,\n\tToolbarButton,\n\tPanelBody,\n\tToggleControl,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n} from \"@wordpress/components\";\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tlet {\n\t\timageId,\n\t\timageAlt,\n\t\timageUrl,\n\t\timageCaption,\n\t\timageDescription,\n\t\timageProportion,\n\t\tcontentDisposition,\n\t} = attributes;\n\n\tfunction changeContentDisposition(newContentDisposition) {\n\t\tsetAttributes({ contentDisposition: newContentDisposition });\n\t}\n\n\tconsole.log(imageDescription, imageCaption);\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t \n\t\t\t\n\t\t\t\t{contentDisposition === \"left\" && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t{}\n\t\t\t\t\t\t
\n\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{imageDescription && (\n\t\t\t\t\t\t\t\t
{imageDescription}
\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{imageCaption && (\n\t\t\t\t\t\t\t\t
{imageCaption}
\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\t\t)}\n\t\t\t\t{contentDisposition === \"right\" && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{imageDescription && (\n\t\t\t\t\t\t\t\t
{imageDescription}
\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{imageCaption && (\n\t\t\t\t\t\t\t\t
{imageCaption}
\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t{}\n\t\t\t\t\t\t
\n\t\t\t\t\t>\n\t\t\t\t)}\n\t\t\t
\n\t\t>\n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t \n\t\t\t \n\t\t),\n\t\tforeground: \"#DF1E1E\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nimport Image from \"../../_components/Image\";\nexport default function save({ attributes }) {\n\tlet {\n\t\timageAlt,\n\t\timageUrl,\n\t\timageCaption,\n\t\timageDescription,\n\t\timageProportion,\n\t\tcontentDisposition,\n\t} = attributes;\n\n\treturn (\n\t\t\n\t\t\t{contentDisposition === \"left\" && (\n\t\t\t\t<>\n\t\t\t\t\t
\n\t\t\t\t\t\t \n\t\t\t\t\t
\n\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t{imageDescription && (\n\t\t\t\t\t\t\t
{imageDescription}
\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{imageCaption &&
{imageCaption}
}\n\t\t\t\t\t
\n\t\t\t\t>\n\t\t\t)}\n\t\t\t{contentDisposition === \"right\" && (\n\t\t\t\t<>\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t{imageDescription && (\n\t\t\t\t\t\t\t
{imageDescription}
\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{imageCaption &&
{imageCaption}
}\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t \n\t\t\t\t\t
\n\t\t\t\t>\n\t\t\t)}\n\t\t
\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst trash = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z\"\n}));\nexport default trash;\n//# sourceMappingURL=trash.js.map","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"index\": 0,\n\t\"./style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkmultiblocks\"] = self[\"webpackChunkmultiblocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"./style-index\"], () => (__webpack_require__(\"./src/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["Image","imageUrl","imageAlt","imageProportion","createElement","src","alt","className","MediaReplaceFlow","MediaPlaceholder","ImageMediaPlaceholder","imageId","setAttributes","setImageAttributes","image","id","url","removeImageAttributes","Fragment","accept","allowedTypes","onSelect","multiple","handleUpload","__","PanelBody","Button","Tip","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","trash","ImagePanelBody","imageCaption","caption","imageDescription","description","onImageProportionChange","title","mediaId","mediaUrl","name","variant","icon","label","onClick","isBlock","onChange","value","InspectorControls","useBlockProps","InnerBlocks","ToolbarButton","ToggleControl","Edit","attributes","props","contentDisposition","changeContentDisposition","newContentDisposition","console","log","template","placeholder","allowedBlocks","registerBlockType","save","metadata","xmlns","viewBox","class","d","foreground","edit","Content"],"sourceRoot":""}
\ No newline at end of file
diff --git a/blocks/text-image/src/edit.js b/blocks/text-image/src/edit.js
index 3caf04d..05cb413 100644
--- a/blocks/text-image/src/edit.js
+++ b/blocks/text-image/src/edit.js
@@ -108,8 +108,12 @@ export default function Edit({ attributes, setAttributes, ...props }) {
imageUrl={imageUrl}
imageProportion={imageProportion}
/>
- {imageDescription && {imageDescription}
}
- {imageCaption && {imageCaption}
}
+ {imageDescription && (
+ {imageDescription}
+ )}
+ {imageCaption && (
+ {imageCaption}
+ )}
>
)}
@@ -128,8 +132,12 @@ export default function Edit({ attributes, setAttributes, ...props }) {
imageUrl={imageUrl}
imageProportion={imageProportion}
/>
- {imageDescription && {imageDescription}
}
- {imageCaption && {imageCaption}
}
+ {imageDescription && (
+ {imageDescription}
+ )}
+ {imageCaption && (
+ {imageCaption}
+ )}
- {imageDescription &&
{imageDescription}
}
- {imageCaption &&
{imageCaption}
}
+ {imageDescription && (
+
{imageDescription}
+ )}
+ {imageCaption &&
{imageCaption}
}
>
)}
@@ -41,8 +43,10 @@ export default function save({ attributes }) {
imageUrl={imageUrl}
imageProportion={imageProportion}
/>
- {imageDescription && {imageDescription}
}
- {imageCaption && {imageCaption}
}
+ {imageDescription && (
+ {imageDescription}
+ )}
+ {imageCaption && {imageCaption}
}