diff --git a/blocks/focused-schema/build/focus-point/index.asset.php b/blocks/focused-schema/build/focus-point/index.asset.php
index d8eade8..9acd81b 100644
--- a/blocks/focused-schema/build/focus-point/index.asset.php
+++ b/blocks/focused-schema/build/focus-point/index.asset.php
@@ -1 +1 @@
- array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '34caa5ee1bac3c842041');
+ array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'd9dadc9903734d85bda0');
diff --git a/blocks/focused-schema/build/focus-point/index.css b/blocks/focused-schema/build/focus-point/index.css
index a3a1928..d03a0ad 100644
--- a/blocks/focused-schema/build/focus-point/index.css
+++ b/blocks/focused-schema/build/focus-point/index.css
@@ -1,4 +1,4 @@
-/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.4.35_webpack@5.90.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@12.6.0_sass@1.71.1_webpack@5.90.3/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/focus-point/editor.scss ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/*!****************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/focus-point/editor.scss ***!
+ \****************************************************************************************************************************************************************************************************************************************************************/
diff --git a/blocks/focused-schema/build/focus-point/index.js b/blocks/focused-schema/build/focus-point/index.js
index d3e84e3..099af9c 100644
--- a/blocks/focused-schema/build/focus-point/index.js
+++ b/blocks/focused-schema/build/focus-point/index.js
@@ -12,8 +12,8 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ Edit)
/* harmony export */ });
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
@@ -69,12 +69,12 @@ function Edit({
focusCaptionDescription
});
}
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.InspectorControls, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, {
+ return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.InspectorControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, {
className: "focus-point-modification-pannel",
title: "Gestion du points de focus"
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
className: "homegrade-blocks-focus-point-bullet"
- }, focusIndex), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.TextControl, {
+ }, focusIndex), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.TextControl, {
placeholder: "Ins\xE9rer le titre de votre point focus",
label: "Titre du point focus",
value: focusTitle !== "Légende Sans titre" ? focusTitle : null,
@@ -82,14 +82,14 @@ function Edit({
onChange: value => {
handleChangeTitle(value);
}
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.TextareaControl, {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.TextareaControl, {
label: "Description du point focus",
value: focusCaptionDescription,
rows: 3,
onChange: description => {
handleChangeCaptionDescription(description);
}
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.FocalPointPicker, {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.FocalPointPicker, {
url: coverUrl !== null && coverUrl !== void 0 ? coverUrl : null,
dimensions: {
width: 400,
@@ -99,18 +99,18 @@ function Edit({
onChange: focalPoint => {
handleChangeFocusPosition(focalPoint);
}
- }))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
+ }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.useBlockProps)({
className: `homegrade-blocks-focus-point-caption`
})
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.RichText, {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.RichText, {
tagName: "span",
className: "focus-point-title",
value: focusTitle,
onChange: value => {
handleChangeTitle(value);
}
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.RichText, {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.RichText, {
tagName: "span",
value: focusCaptionDescription,
onChange: handleChangeCaptionDescription
@@ -126,8 +126,8 @@ function Edit({
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./src/focus-point/style.scss");
@@ -144,20 +144,20 @@ __webpack_require__.r(__webpack_exports__);
title: _block_json__WEBPACK_IMPORTED_MODULE_3__.title,
icon: {
foreground: "#DF1E1E",
- src: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
+ src: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
id: "Capa_1",
"enable-background": "new 0 0 512 512",
height: "512",
viewBox: "0 0 512 512",
width: "512",
xmlns: "http://www.w3.org/2000/svg"
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
d: "m100.001 255.776c0-80.958 61.992-147.702 140.999-155.275v-100.277c-62.739 3.601-121.221 29.734-166.02 74.533-48.351 48.352-74.98 112.64-74.98 181.019 0 43.893 10.989 86.092 31.636 123.48l85.806-51.86c-11.138-21.46-17.441-45.817-17.441-71.62z"
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
d: "m256 411.776c-49.473 0-93.636-23.154-122.236-59.189l-86.098 52.037c8.139 11.341 17.249 22.106 27.315 32.173 48.352 48.352 112.64 74.98 181.02 74.98s132.667-26.629 181.02-74.98c11.293-11.293 21.384-23.465 30.245-36.346l-87.133-50.306c-28.524 37.426-73.552 61.631-124.133 61.631z"
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
d: "m411.999 255.776c0 24.704-5.781 48.08-16.048 68.86l86.835 50.134c19.084-36.263 29.214-76.848 29.214-118.994 0-68.38-26.629-132.667-74.98-181.02-44.799-44.798-103.281-70.931-166.02-74.532v100.278c79.007 7.573 140.999 74.316 140.999 155.274z"
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", {
cx: "256",
cy: "255.776",
r: "103.902"
@@ -181,8 +181,8 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ save)
/* harmony export */ });
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);
@@ -194,15 +194,15 @@ function save({
focusCaptionDescription,
focusTitle
} = attributes;
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
+ return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
className: `homegrade-blocks-focus-point-caption`
})
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
tagName: "span",
className: "focus-point-title",
value: focusTitle
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
tagName: "span",
value: focusCaptionDescription
}));
@@ -232,16 +232,6 @@ __webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin
-/***/ }),
-
-/***/ "react":
-/*!************************!*\
- !*** external "React" ***!
- \************************/
-/***/ ((module) => {
-
-module.exports = window["React"];
-
/***/ }),
/***/ "@wordpress/block-editor":
@@ -274,6 +264,16 @@ module.exports = window["wp"]["components"];
/***/ }),
+/***/ "@wordpress/element":
+/*!*********************************!*\
+ !*** external ["wp","element"] ***!
+ \*********************************/
+/***/ ((module) => {
+
+module.exports = window["wp"]["element"];
+
+/***/ }),
+
/***/ "@wordpress/i18n":
/*!******************************!*\
!*** external ["wp","i18n"] ***!
@@ -290,7 +290,7 @@ module.exports = window["wp"]["i18n"];
\************************************/
/***/ ((module) => {
-module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/focus-point","version":"0.1.0","title":"Point de légende ","category":"homegrade-blocks","description":"Point de légende pour titrer ou décrire un point de légende spécifique sur un Schéma ","supports":{"html":false},"textdomain":"focus-point","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"focusTitle":{"type":"string","default":"Légende Sans titre"},"focusCaptionDescription":{"type":"string"},"focusIndex":{"type":"number","default":0},"focusPosition":{"type":"object","default":{"x":0.5,"y":0.5}}}}');
+module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/focus-point","version":"0.1.0","title":"Point de légende ","category":"homegrade-blocks","description":"Point de légende pour titrer ou décrire un point de légende spécifique sur un Schéma ","supports":{"html":false},"textdomain":"focus-point","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"focusTitle":{"type":"string","default":"Légende Sans titre"},"focusCaptionDescription":{"type":"string"},"focusIndex":{"type":"number","default":0},"focusPosition":{"type":"object","default":{"x":0.5,"y":0.5}}}}');
/***/ })
@@ -336,7 +336,9 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/tru
/******/ }
/******/ var notFulfilled = Infinity;
/******/ for (var i = 0; i < deferred.length; i++) {
-/******/ var [chunkIds, fn, priority] = deferred[i];
+/******/ var chunkIds = deferred[i][0];
+/******/ var fn = deferred[i][1];
+/******/ var priority = deferred[i][2];
/******/ var fulfilled = true;
/******/ for (var j = 0; j < chunkIds.length; j++) {
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
@@ -422,7 +424,9 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/tru
/******/
/******/ // install a JSONP callback for chunk loading
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
-/******/ var [chunkIds, moreModules, runtime] = data;
+/******/ var chunkIds = data[0];
+/******/ var moreModules = data[1];
+/******/ var runtime = data[2];
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0;
@@ -445,7 +449,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/tru
/******/ return __webpack_require__.O(result);
/******/ }
/******/
-/******/ var chunkLoadingGlobal = globalThis["webpackChunkmultiblocks"] = globalThis["webpackChunkmultiblocks"] || [];
+/******/ var chunkLoadingGlobal = self["webpackChunkmultiblocks"] = self["webpackChunkmultiblocks"] || [];
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
/******/ })();
diff --git a/blocks/focused-schema/build/focus-point/index.js.map b/blocks/focused-schema/build/focus-point/index.js.map
index 898fc72..7d6c9b7 100644
--- a/blocks/focused-schema/build/focus-point/index.js.map
+++ b/blocks/focused-schema/build/focus-point/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"focus-point/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACmB;AACjC;AACqC;AACT;AAMpB;AAEhB,SAASQ,IAAIA,CAAC;EAC5BC,UAAU;EACVC,aAAa;EACbC,QAAQ;EACR,GAAGC;AACJ,CAAC,EAAE;EACF,MAAM;IACLC,UAAU;IACVC,aAAa;IACbC,uBAAuB;IACvBC,QAAQ;IACRC;EACD,CAAC,GAAGR,UAAU;EAEd,SAASS,yBAAyBA,CAACJ,aAAa,EAAE;IACjDK,OAAO,CAACC,GAAG,CAACN,aAAa,CAAC;IAC1B,IAAIA,aAAa,CAACO,CAAC,GAAG,IAAI,EAAE;MAC3BP,aAAa,CAACO,CAAC,GAAG,IAAI;IACvB;IACA,IAAIP,aAAa,CAACO,CAAC,GAAG,IAAI,EAAE;MAC3BP,aAAa,CAACO,CAAC,GAAG,IAAI;IACvB;IAEA,IAAIP,aAAa,CAACQ,CAAC,GAAG,IAAI,EAAE;MAC3BR,aAAa,CAACQ,CAAC,GAAG,IAAI;IACvB;IACA,IAAIR,aAAa,CAACQ,CAAC,GAAG,IAAI,EAAE;MAC3BR,aAAa,CAACQ,CAAC,GAAG,IAAI;IACvB;IACAZ,aAAa,CAAC;MAAEI;IAAc,CAAC,CAAC;EACjC;EACA,SAASS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ACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/focus-point/edit.js","webpack://multiblocks/./src/focus-point/index.js","webpack://multiblocks/./src/focus-point/save.js","webpack://multiblocks/./src/focus-point/editor.scss","webpack://multiblocks/./src/focus-point/style.scss","webpack://multiblocks/external window \"React\"","webpack://multiblocks/external window [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"components\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","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":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\nimport { RichText } from \"@wordpress/block-editor\";\nimport {\n\tPanelBody,\n\tFocalPointPicker,\n\tTextControl,\n\tTextareaControl,\n} from \"@wordpress/components\";\n\nexport default function Edit({\n\tattributes,\n\tsetAttributes,\n\tclientId,\n\t...props\n}) {\n\tconst {\n\t\tfocusTitle,\n\t\tfocusPosition,\n\t\tfocusCaptionDescription,\n\t\tcoverUrl,\n\t\tfocusIndex,\n\t} = attributes;\n\n\tfunction handleChangeFocusPosition(focusPosition) {\n\t\tconsole.log(focusPosition);\n\t\tif (focusPosition.x < 0.05) {\n\t\t\tfocusPosition.x = 0.05;\n\t\t}\n\t\tif (focusPosition.x > 0.95) {\n\t\t\tfocusPosition.x = 0.95;\n\t\t}\n\n\t\tif (focusPosition.y < 0.02) {\n\t\t\tfocusPosition.y = 0.02;\n\t\t}\n\t\tif (focusPosition.y > 0.98) {\n\t\t\tfocusPosition.y = 0.98;\n\t\t}\n\t\tsetAttributes({ focusPosition });\n\t}\n\tfunction handleChangeTitle(focusTitle) {\n\t\tsetAttributes({ focusTitle: focusTitle });\n\t}\n\tfunction handleChangeCaptionDescription(focusCaptionDescription) {\n\t\tsetAttributes({ focusCaptionDescription });\n\t}\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{focusIndex}\n\t\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeTitle(value);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeCaptionDescription(description);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeFocusPosition(focalPoint);\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\t
\n\t\t\t\t {\n\t\t\t\t\t\thandleChangeTitle(value);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t \n\t\t\t\t{/* {focusTitle} */}\n\t\t\t\t{/* {focusCaptionDescription} */}\n\t\t\t \n\t\t>\n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\nimport metadata from \"./block.json\";\n\nimport Edit from \"./edit\";\nimport Save from \"./save\";\n\nregisterBlockType(metadata.name, {\n\ttitle: metadata.title,\n\ticon: {\n\t\tforeground: \"#DF1E1E\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t \n\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\tsupports: metadata.supports,\n\tattributes: metadata.attributes,\n\tedit: Edit,\n\tsave: Save,\n});\n","import { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { focusCaptionDescription, focusTitle } = attributes;\n\treturn (\n\t\t\n\t\t\t{/* {focusTitle} */}\n\t\t\t \n\t\t\t \n\t\t\t{/* {focusCaptionDescription} */}\n\t\t \n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","// 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, fn, priority] = deferred[i];\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\"focus-point/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, moreModules, runtime] = data;\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 = globalThis[\"webpackChunkmultiblocks\"] = globalThis[\"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/focus-point/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InspectorControls","RichText","PanelBody","FocalPointPicker","TextControl","TextareaControl","Edit","attributes","setAttributes","clientId","props","focusTitle","focusPosition","focusCaptionDescription","coverUrl","focusIndex","handleChangeFocusPosition","console","log","x","y","handleChangeTitle","handleChangeCaptionDescription","createElement","Fragment","className","title","placeholder","label","value","onChange","rows","description","url","dimensions","width","height","focalPoint","tagName","registerBlockType","metadata","Save","name","icon","foreground","src","id","viewBox","xmlns","d","cx","cy","r","supports","edit","save","InnerBlocks","Content"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"focus-point/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA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;;;;;;;;;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/./src/focus-point/edit.js","webpack://multiblocks/./src/focus-point/index.js","webpack://multiblocks/./src/focus-point/save.js","webpack://multiblocks/./src/focus-point/editor.scss","webpack://multiblocks/./src/focus-point/style.scss","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/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":["import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\nimport { RichText } from \"@wordpress/block-editor\";\nimport {\n\tPanelBody,\n\tFocalPointPicker,\n\tTextControl,\n\tTextareaControl,\n} from \"@wordpress/components\";\n\nexport default function Edit({\n\tattributes,\n\tsetAttributes,\n\tclientId,\n\t...props\n}) {\n\tconst {\n\t\tfocusTitle,\n\t\tfocusPosition,\n\t\tfocusCaptionDescription,\n\t\tcoverUrl,\n\t\tfocusIndex,\n\t} = attributes;\n\n\tfunction handleChangeFocusPosition(focusPosition) {\n\t\tconsole.log(focusPosition);\n\t\tif (focusPosition.x < 0.05) {\n\t\t\tfocusPosition.x = 0.05;\n\t\t}\n\t\tif (focusPosition.x > 0.95) {\n\t\t\tfocusPosition.x = 0.95;\n\t\t}\n\n\t\tif (focusPosition.y < 0.02) {\n\t\t\tfocusPosition.y = 0.02;\n\t\t}\n\t\tif (focusPosition.y > 0.98) {\n\t\t\tfocusPosition.y = 0.98;\n\t\t}\n\t\tsetAttributes({ focusPosition });\n\t}\n\tfunction handleChangeTitle(focusTitle) {\n\t\tsetAttributes({ focusTitle: focusTitle });\n\t}\n\tfunction handleChangeCaptionDescription(focusCaptionDescription) {\n\t\tsetAttributes({ focusCaptionDescription });\n\t}\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{focusIndex}\n\t\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeTitle(value);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeCaptionDescription(description);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeFocusPosition(focalPoint);\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\t\n\t\t\t\t {\n\t\t\t\t\t\thandleChangeTitle(value);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t \n\t\t\t\t{/* {focusTitle} */}\n\t\t\t\t{/* {focusCaptionDescription} */}\n\t\t\t \n\t\t>\n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\nimport metadata from \"./block.json\";\n\nimport Edit from \"./edit\";\nimport Save from \"./save\";\n\nregisterBlockType(metadata.name, {\n\ttitle: metadata.title,\n\ticon: {\n\t\tforeground: \"#DF1E1E\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t \n\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\tsupports: metadata.supports,\n\tattributes: metadata.attributes,\n\tedit: Edit,\n\tsave: Save,\n});\n","import { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { focusCaptionDescription, focusTitle } = attributes;\n\treturn (\n\t\t\n\t\t\t{/* {focusTitle} */}\n\t\t\t \n\t\t\t \n\t\t\t{/* {focusCaptionDescription} */}\n\t\t \n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","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\"];","// 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\"focus-point/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/focus-point/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InspectorControls","RichText","PanelBody","FocalPointPicker","TextControl","TextareaControl","Edit","attributes","setAttributes","clientId","props","focusTitle","focusPosition","focusCaptionDescription","coverUrl","focusIndex","handleChangeFocusPosition","console","log","x","y","handleChangeTitle","handleChangeCaptionDescription","createElement","Fragment","className","title","placeholder","label","value","onChange","rows","description","url","dimensions","width","height","focalPoint","tagName","registerBlockType","metadata","Save","name","icon","foreground","src","id","viewBox","xmlns","d","cx","cy","r","supports","edit","save","InnerBlocks","Content"],"sourceRoot":""}
\ No newline at end of file
diff --git a/blocks/focused-schema/build/index.asset.php b/blocks/focused-schema/build/index.asset.php
index d239d66..5e17e43 100644
--- a/blocks/focused-schema/build/index.asset.php
+++ b/blocks/focused-schema/build/index.asset.php
@@ -1 +1 @@
- array('react', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'dd41e9b6f88bfc6322f7');
+ array('wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '1b480387a7df29b9d631');
diff --git a/blocks/focused-schema/build/index.css b/blocks/focused-schema/build/index.css
index bd1c8e4..6c46b9a 100644
--- a/blocks/focused-schema/build/index.css
+++ b/blocks/focused-schema/build/index.css
@@ -1,6 +1,6 @@
-/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.4.35_webpack@5.90.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@12.6.0_sass@1.71.1_webpack@5.90.3/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/editor.scss ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/*!****************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/editor.scss ***!
+ \****************************************************************************************************************************************************************************************************************************************************/
.homegrade-blocks-focused-schema .block-editor-block-list__layout,
.homegrade-blocks-focused-schema .block-editor-block-list__block {
position: unset;
@@ -8,6 +8,16 @@
.homegrade-blocks-focused-schema .picture-container img {
width: 100%;
}
+.homegrade-blocks-focused-schema figcaption ol {
+ display: block !important;
+}
+@media (min-width: 1200px) {
+ .homegrade-blocks-focused-schema .block-editor-block-list__layout {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 1rem;
+ }
+}
.wpblock-cover-container {
position: relative;
@@ -37,9 +47,9 @@
margin-top: -16px;
margin-bottom: 10px;
}
-/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.4.35_webpack@5.90.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@12.6.0_sass@1.71.1_webpack@5.90.3/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/focus-point/editor.scss ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/*!****************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/focus-point/editor.scss ***!
+ \****************************************************************************************************************************************************************************************************************************************************************/
/*# sourceMappingURL=index.css.map*/
\ No newline at end of file
diff --git a/blocks/focused-schema/build/index.css.map b/blocks/focused-schema/build/index.css.map
index 2336c76..3f170ed 100644
--- a/blocks/focused-schema/build/index.css.map
+++ b/blocks/focused-schema/build/index.css.map
@@ -1 +1 @@
-{"version":3,"file":"index.css","mappings":";;;AACC;;EAEC;AAAF;AAEC;EACC;AAAF;;AAIA;EACC;AADD;AAGE;EACC;EACA;EACA;EACA;EACA;EACA;AADH;AAGE;EACC;AADH;;AAOA;EACC;AAJD;;AAMA;EACC;AAHD;;AAKA;EACC;EACA;EACA;AAFD,C","sources":["webpack://multiblocks/./src/editor.scss"],"sourcesContent":[".homegrade-blocks-focused-schema {\n\t.block-editor-block-list__layout,\n\t.block-editor-block-list__block {\n\t\tposition: unset;\n\t}\n\t.picture-container img {\n\t\twidth: 100%;\n\t}\n}\n\n.wpblock-cover-container {\n\tposition: relative;\n\t&.is-loading {\n\t\t.components-spinner {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tright: 50%;\n\t\t\tbottom: 0;\n\t\t\ttop: 0;\n\t\t\tmargin: auto;\n\t\t}\n\t\timg {\n\t\t\topacity: 10%;\n\t\t}\n\t}\n}\n\n// POINT\n.homegrade-blocks-focus-point {\n\tposition: absolute !important;\n}\n.homegrade-blocks-focus-point-caption {\n\tposition: relative !important;\n}\n.components-panel__body .homegrade-blocks-focus-point-bullet {\n\tposition: static !important;\n\tmargin-top: -16px;\n\tmargin-bottom: 10px;\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"index.css","mappings":";;;AACC;;EAEC;AAAF;AAEC;EACC;AAAF;AAEC;EACC;AAAF;AAGE;EADD;IAEE;IACA;IACA;EAAD;AACF;;AAIA;EACC;AADD;AAGE;EACC;EACA;EACA;EACA;EACA;EACA;AADH;AAGE;EACC;AADH;;AAOA;EACC;AAJD;;AAMA;EACC;AAHD;;AAKA;EACC;EACA;EACA;AAFD,C","sources":["webpack://multiblocks/./src/editor.scss"],"sourcesContent":[".homegrade-blocks-focused-schema {\n\t.block-editor-block-list__layout,\n\t.block-editor-block-list__block {\n\t\tposition: unset;\n\t}\n\t.picture-container img {\n\t\twidth: 100%;\n\t}\n\tfigcaption ol {\n\t\tdisplay: block !important;\n\t}\n\t.block-editor-block-list__layout {\n\t\t@media (min-width: 1200px) {\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: 1fr 1fr;\n\t\t\tgap: 1rem;\n\t\t}\n\t}\n}\n\n.wpblock-cover-container {\n\tposition: relative;\n\t&.is-loading {\n\t\t.components-spinner {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tright: 50%;\n\t\t\tbottom: 0;\n\t\t\ttop: 0;\n\t\t\tmargin: auto;\n\t\t}\n\t\timg {\n\t\t\topacity: 10%;\n\t\t}\n\t}\n}\n\n// POINT\n.homegrade-blocks-focus-point {\n\tposition: absolute !important;\n}\n.homegrade-blocks-focus-point-caption {\n\tposition: relative !important;\n}\n.components-panel__body .homegrade-blocks-focus-point-bullet {\n\tposition: static !important;\n\tmargin-top: -16px;\n\tmargin-bottom: 10px;\n}\n"],"names":[],"sourceRoot":""}
\ No newline at end of file
diff --git a/blocks/focused-schema/build/index.js b/blocks/focused-schema/build/index.js
index 23554dc..3ed8c7c 100644
--- a/blocks/focused-schema/build/index.js
+++ b/blocks/focused-schema/build/index.js
@@ -2,6 +2,37 @@
/******/ "use strict";
/******/ var __webpack_modules__ = ({
+/***/ "../../node_modules/@wordpress/icons/build-module/library/trash.js":
+/*!*************************************************************************!*\
+ !*** ../../node_modules/@wordpress/icons/build-module/library/trash.js ***!
+ \*************************************************************************/
+/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+__webpack_require__.r(__webpack_exports__);
+/* harmony export */ __webpack_require__.d(__webpack_exports__, {
+/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
+/* harmony export */ });
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
+/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
+
+
+/**
+ * WordPress dependencies
+ */
+
+const trash = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, {
+ xmlns: "http://www.w3.org/2000/svg",
+ viewBox: "0 0 24 24"
+}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, {
+ 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"
+}));
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (trash);
+//# sourceMappingURL=trash.js.map
+
+/***/ }),
+
/***/ "./src/edit.js":
/*!*********************!*\
!*** ./src/edit.js ***!
@@ -12,25 +43,23 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
/* harmony export */ });
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./editor.scss */ "./src/editor.scss");
/* harmony import */ var _focus_point__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./focus-point */ "./src/focus-point/index.js");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__);
-/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
-/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);
-/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
-/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__);
-/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
-/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__);
-/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
-/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__);
-/* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/blob */ "@wordpress/blob");
-/* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blob__WEBPACK_IMPORTED_MODULE_9__);
-/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/icons */ "../../node_modules/@wordpress/icons/build-module/library/trash.js");
+/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
+/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__);
+/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
+/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__);
+/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
+/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__);
+/* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/blob */ "@wordpress/blob");
+/* harmony import */ var _wordpress_blob__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blob__WEBPACK_IMPORTED_MODULE_8__);
+/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/icons */ "../../node_modules/@wordpress/icons/build-module/library/trash.js");
@@ -62,7 +91,7 @@ function Edit({
focusBullets
} = attributes;
console.log(coverLegend);
- const [blobUrl, setBlobUrl] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useState)();
+ const [blobUrl, setBlobUrl] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)();
const currentBlockDatas = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.useSelect)(select => {
return select("core/block-editor").getBlocksByClientId(clientId)[0];
});
@@ -133,7 +162,7 @@ function Edit({
}
function insertFocusPointBlock() {
const index = children && children.length ? children.length : 0;
- const newBlock = (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_6__.createBlock)("homegrade-content-blocks/focus-point", {});
+ const newBlock = (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_5__.createBlock)("homegrade-content-blocks/focus-point", {});
(0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.dispatch)("core/block-editor").insertBlocks(newBlock, index, clientId);
}
function handleBulletClick(index) {
@@ -153,7 +182,7 @@ function Edit({
});
}
const renderedFocusPointBullets = focusBullets.map((focusBullet, index) => {
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
+ return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
"data-focus-bullet-title": focusBullet.title,
className: "homegrade-blocks-focus-point-bullet",
style: {
@@ -161,80 +190,80 @@ function Edit({
left: `${focusBullet.x * 100}%`
},
onClick: () => handleBulletClick(index)
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
className: "homegrade-blocks-focus-point-bullet__index"
}, index + 1));
});
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useEffect)(() => {
+ (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
updateFocusPointBullets();
- if (!coverId && (0,_wordpress_blob__WEBPACK_IMPORTED_MODULE_9__.isBlobURL)(coverUrl)) {
+ if (!coverId && (0,_wordpress_blob__WEBPACK_IMPORTED_MODULE_8__.isBlobURL)(coverUrl)) {
setAttributes({
coverUrl: undefined,
coverAlt: ""
});
}
}, []);
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useEffect)(() => {
+ (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
// Fonction de clean du BLOB URL qui se lance à chaque changement de coverUrl
- if ((0,_wordpress_blob__WEBPACK_IMPORTED_MODULE_9__.isBlobURL)(coverUrl)) {
+ if ((0,_wordpress_blob__WEBPACK_IMPORTED_MODULE_8__.isBlobURL)(coverUrl)) {
// Si la cover est une blob, c'est que ça upload donc on met cette url dans le state
setBlobUrl(coverUrl);
} else {
// Si la cover en'est plus une blob, c'est que l'upload est terminé, on revoke la blob et on clean le state
- (0,_wordpress_blob__WEBPACK_IMPORTED_MODULE_9__.revokeBlobURL)(blobUrl); // On utilise la valeur stocké dans le state pour revoke l'url
+ (0,_wordpress_blob__WEBPACK_IMPORTED_MODULE_8__.revokeBlobURL)(blobUrl); // On utilise la valeur stocké dans le state pour revoke l'url
setBlobUrl();
}
passCoverUrlToChildren();
}, [coverUrl]);
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useEffect)(() => {
+ (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
updateFocusPointBullets();
passCoverUrlToChildren();
}, [children]);
- (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_5__.useEffect)(() => {
+ (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
passIndexToChildren();
}, [currentBlockDatas]);
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.InspectorControls, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.PanelBody, {
+ return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__.InspectorControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.PanelBody, {
title: "Points de l\xE9gende"
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.Button, {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.Button, {
variant: "primary",
onClick: () => {
insertFocusPointBlock();
}
- }, "Ajouter un point L\xE9gende")), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.PanelBody, {
+ }, "Ajouter un point L\xE9gende")), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.PanelBody, {
title: "Source de l'image / Sch\xE9ma",
className: "homegrade-blocks-components-image__panel-body "
- }, coverUrl && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
+ }, coverUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
src: coverUrl,
alt: coverAlt
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
className: "media-replace-container"
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.MediaReplaceFlow, {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__.MediaReplaceFlow, {
mediaId: coverId,
mediaUrl: coverUrl,
allowedTypes: ["image"],
accept: "image/*",
onSelect: updateCover,
name: !coverUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Ajouter", "homegrade-blocks__texte-backoffice") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_3__.__)("Remplacer", "homegrade-blocks__texte-backoffice")
- }), coverUrl && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.Button, {
+ }), coverUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.Button, {
className: "custom-flow-button",
variant: "primary",
- icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__["default"],
+ icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__["default"],
label: "Supprimer",
onClick: removeCoverImg
- })))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.PanelBody, {
+ })))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.PanelBody, {
title: "Param\xE8tres",
className: "homegrade-blocks-components-image__panel-body "
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.ToggleControl, {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToggleControl, {
label: "Afficher la description",
checked: showDescription,
onChange: handleShowDescription,
help: "Coch\xE9, la description sera ajout\xE9 sous l'image"
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.ToggleControl, {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToggleControl, {
label: "Afficher la l\xE9gende",
checked: showLegend,
onChange: handleShowLegend,
help: "Coch\xE9, la l\xE9gende (caption) sera ajout\xE9 sous l'image"
- }))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.MediaPlaceholder, {
+ }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__.MediaPlaceholder, {
disableMediaButtons: coverUrl,
icon: "admin-appearance",
onSelect: updateCover,
@@ -244,28 +273,28 @@ function Edit({
allowedTypes: ["image"] // Onlibrary Allow only images
,
notices: noticeUI // En cas d'erreur d'upload
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", {
- ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.useBlockProps)({
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", {
+ ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__.useBlockProps)({
className: `homegrade-blocks-focused-schema`
})
- }, coverUrl && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("figure", {
- className: `picture-container ${(0,_wordpress_blob__WEBPACK_IMPORTED_MODULE_9__.isBlobURL)(coverUrl) ? "is-loading" : ""}`
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
+ }, coverUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("figure", {
+ className: `picture-container ${(0,_wordpress_blob__WEBPACK_IMPORTED_MODULE_8__.isBlobURL)(coverUrl) ? "is-loading" : ""}`
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
src: coverUrl,
alt: coverAlt,
"data-description": coverDescription,
"data-legend": coverLegend
- }), renderedFocusPointBullets, (0,_wordpress_blob__WEBPACK_IMPORTED_MODULE_9__.isBlobURL)(coverUrl) && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.Spinner, null)), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("figcaption", null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
+ }), renderedFocusPointBullets, (0,_wordpress_blob__WEBPACK_IMPORTED_MODULE_8__.isBlobURL)(coverUrl) && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.Spinner, null)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("figcaption", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
className: "description-legend"
- }, showLegend && coverLegend && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
+ }, showLegend && coverLegend && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
className: "legend"
- }, coverLegend), showDescription && coverDescription && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
+ }, coverLegend), showDescription && coverDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
className: "description"
- }, coverDescription)), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("ol", null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_7__.InnerBlocks, {
+ }, coverDescription)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("ol", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__.InnerBlocks, {
allowedBlocks: ["homegrade-content-blocks/focus-point"]
})))));
}
-/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.withNotices)(Edit));
+/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.withNotices)(Edit));
/***/ }),
@@ -279,8 +308,8 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ Edit)
/* harmony export */ });
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
@@ -336,12 +365,12 @@ function Edit({
focusCaptionDescription
});
}
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.InspectorControls, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, {
+ return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.InspectorControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, {
className: "focus-point-modification-pannel",
title: "Gestion du points de focus"
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
className: "homegrade-blocks-focus-point-bullet"
- }, focusIndex), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.TextControl, {
+ }, focusIndex), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.TextControl, {
placeholder: "Ins\xE9rer le titre de votre point focus",
label: "Titre du point focus",
value: focusTitle !== "Légende Sans titre" ? focusTitle : null,
@@ -349,14 +378,14 @@ function Edit({
onChange: value => {
handleChangeTitle(value);
}
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.TextareaControl, {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.TextareaControl, {
label: "Description du point focus",
value: focusCaptionDescription,
rows: 3,
onChange: description => {
handleChangeCaptionDescription(description);
}
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.FocalPointPicker, {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.FocalPointPicker, {
url: coverUrl !== null && coverUrl !== void 0 ? coverUrl : null,
dimensions: {
width: 400,
@@ -366,18 +395,18 @@ function Edit({
onChange: focalPoint => {
handleChangeFocusPosition(focalPoint);
}
- }))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
+ }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.useBlockProps)({
className: `homegrade-blocks-focus-point-caption`
})
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.RichText, {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.RichText, {
tagName: "span",
className: "focus-point-title",
value: focusTitle,
onChange: value => {
handleChangeTitle(value);
}
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.RichText, {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.RichText, {
tagName: "span",
value: focusCaptionDescription,
onChange: handleChangeCaptionDescription
@@ -393,8 +422,8 @@ function Edit({
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./src/focus-point/style.scss");
@@ -411,20 +440,20 @@ __webpack_require__.r(__webpack_exports__);
title: _block_json__WEBPACK_IMPORTED_MODULE_3__.title,
icon: {
foreground: "#DF1E1E",
- src: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
+ src: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
id: "Capa_1",
"enable-background": "new 0 0 512 512",
height: "512",
viewBox: "0 0 512 512",
width: "512",
xmlns: "http://www.w3.org/2000/svg"
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
d: "m100.001 255.776c0-80.958 61.992-147.702 140.999-155.275v-100.277c-62.739 3.601-121.221 29.734-166.02 74.533-48.351 48.352-74.98 112.64-74.98 181.019 0 43.893 10.989 86.092 31.636 123.48l85.806-51.86c-11.138-21.46-17.441-45.817-17.441-71.62z"
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
d: "m256 411.776c-49.473 0-93.636-23.154-122.236-59.189l-86.098 52.037c8.139 11.341 17.249 22.106 27.315 32.173 48.352 48.352 112.64 74.98 181.02 74.98s132.667-26.629 181.02-74.98c11.293-11.293 21.384-23.465 30.245-36.346l-87.133-50.306c-28.524 37.426-73.552 61.631-124.133 61.631z"
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
d: "m411.999 255.776c0 24.704-5.781 48.08-16.048 68.86l86.835 50.134c19.084-36.263 29.214-76.848 29.214-118.994 0-68.38-26.629-132.667-74.98-181.02-44.799-44.798-103.281-70.931-166.02-74.532v100.278c79.007 7.573 140.999 74.316 140.999 155.274z"
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", {
cx: "256",
cy: "255.776",
r: "103.902"
@@ -448,8 +477,8 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ save)
/* harmony export */ });
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);
@@ -461,15 +490,15 @@ function save({
focusCaptionDescription,
focusTitle
} = attributes;
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
+ return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
className: `homegrade-blocks-focus-point-caption`
})
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
tagName: "span",
className: "focus-point-title",
value: focusTitle
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
tagName: "span",
value: focusCaptionDescription
}));
@@ -484,8 +513,8 @@ function save({
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
__webpack_require__.r(__webpack_exports__);
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./src/style.scss");
@@ -500,19 +529,19 @@ __webpack_require__.r(__webpack_exports__);
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_5__.name, {
icon: {
- src: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
+ src: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
id: "Capa_1",
height: "512",
viewBox: "0 0 512 512",
width: "512",
xmlns: "http://www.w3.org/2000/svg"
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
d: "m443.093 324.907c0-103.163-83.93-187.092-187.093-187.092s-187.093 83.929-187.093 187.092c0 42.261 14.092 81.289 37.814 112.647-6.216-16.99-9.611-35.328-9.611-54.444 0-87.612 71.277-158.89 158.89-158.89s158.89 71.277 158.89 158.89c0 19.116-3.395 37.454-9.611 54.444 23.722-31.358 37.814-70.386 37.814-112.647z"
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
d: "m384.89 383.11c0-71.07-57.819-128.89-128.89-128.89s-128.89 57.82-128.89 128.89c0 41.62 19.834 78.688 50.541 102.268-2.706-8.157-4.192-16.865-4.192-25.919 0-45.514 37.027-82.542 82.541-82.542s82.541 37.028 82.541 82.542c0 9.054-1.486 17.762-4.192 25.919 30.706-23.58 50.541-60.648 50.541-102.268z"
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
d: "m308.541 459.459c0-28.972-23.569-52.542-52.541-52.542s-52.541 23.57-52.541 52.542 23.569 52.541 52.541 52.541 52.541-23.569 52.541-52.541z"
- }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
+ }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
d: "m512 256c0-68.38-26.629-132.667-74.98-181.02-48.353-48.351-112.64-74.98-181.02-74.98s-132.667 26.629-181.02 74.98c-48.351 48.353-74.98 112.64-74.98 181.02 0 62.294 22.108 121.187 62.599 167.734-15.483-30.22-23.692-63.891-23.692-98.827 0-57.987 22.582-112.504 63.585-153.507 41.004-41.004 95.521-63.585 153.508-63.585s112.504 22.581 153.508 63.585c41.003 41.003 63.585 95.52 63.585 153.507 0 34.936-8.208 68.606-23.692 98.827 40.491-46.547 62.599-105.44 62.599-167.734z"
}))),
foreground: "#DF1E1E"
@@ -533,8 +562,8 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "default": () => (/* binding */ save)
/* harmony export */ });
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
-/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
+/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);
@@ -554,7 +583,7 @@ function save({
focusBullets
} = attributes;
const renderedFocusPointBullets = focusBullets.map((focusBullet, index) => {
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
+ return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
"data-focus-bullet-title": focusBullet.title,
className: "homegrade-blocks-focus-point-bullet",
"aria-hidden": "true",
@@ -564,29 +593,29 @@ function save({
},
"data-postion-x": focusBullet.x * 100,
"data-postion-y": focusBullet.y * 100
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
className: "homegrade-blocks-focus-point-bullet__index"
}, index + 1));
});
- return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", {
+ return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", {
..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
className: `homegrade-blocks-focused-schema`
})
- }, coverUrl && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("figure", {
+ }, coverUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("figure", {
className: `picture-container`
- }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
+ }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
src: coverUrl,
alt: coverAlt,
className: `wp-image-${coverId}`,
"data-description": coverDescription,
"data-legend": coverLegend
- }), renderedFocusPointBullets), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("figcaption", null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
+ }), renderedFocusPointBullets), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("figcaption", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", {
className: "description-legend"
- }, showLegend && coverLegend && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
+ }, showLegend && coverLegend && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
className: "legend"
- }, coverLegend), showDescription && coverDescription && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
+ }, coverLegend), showDescription && coverDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", {
className: "description"
- }, coverDescription)), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("ol", null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks.Content, null))));
+ }, coverDescription)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("ol", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks.Content, null))));
}
/***/ }),
@@ -637,47 +666,6 @@ __webpack_require__.r(__webpack_exports__);
// extracted by mini-css-extract-plugin
-/***/ }),
-
-/***/ "../../node_modules/@wordpress/icons/build-module/library/trash.js":
-/*!*************************************************************************!*\
- !*** ../../node_modules/@wordpress/icons/build-module/library/trash.js ***!
- \*************************************************************************/
-/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
-
-__webpack_require__.r(__webpack_exports__);
-/* harmony export */ __webpack_require__.d(__webpack_exports__, {
-/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
-/* harmony export */ });
-/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
-/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
-/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives");
-/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__);
-
-
-/**
- * WordPress dependencies
- */
-
-const trash = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, {
- xmlns: "http://www.w3.org/2000/svg",
- viewBox: "0 0 24 24"
-}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, {
- 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"
-}));
-/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (trash);
-//# sourceMappingURL=trash.js.map
-
-/***/ }),
-
-/***/ "react":
-/*!************************!*\
- !*** external "React" ***!
- \************************/
-/***/ ((module) => {
-
-module.exports = window["React"];
-
/***/ }),
/***/ "@wordpress/blob":
@@ -766,7 +754,7 @@ module.exports = window["wp"]["primitives"];
\************************/
/***/ ((module) => {
-module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/focused-schema","version":"0.1.0","title":"Schéma + Légende","category":"homegrade-blocks","description":"Bloc de Gestion schéma. Insérer un schéma et insérez-y la légende nécéssaire à l\'aide de points de focus.","supports":{"html":false,"reusable":false},"attributes":{"coverId":{"type":"number"},"coverAlt":{"type":"string","source":"attribute","selector":"img","attribute":"alt","default":""},"showDescription":{"type":"boolean","default":false},"showLegend":{"type":"boolean","default":false},"coverUrl":{"type":"string","source":"attribute","selector":"img","attribute":"src"},"coverDescription":{"type":"string","source":"attribute","selector":"img","attribute":"data-description"},"coverLegend":{"type":"string","source":"attribute","selector":"img","attribute":"data-legend"},"focusBullets":{"type":"array","default":[]}},"textdomain":"homegrade-theme__bloks-texte-fonctionnel","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}');
+module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/focused-schema","version":"0.1.0","title":"Schéma + Légende","category":"homegrade-blocks","description":"Bloc de Gestion schéma. Insérer un schéma et insérez-y la légende nécéssaire à l\'aide de points de focus.","supports":{"html":false,"reusable":false},"attributes":{"coverId":{"type":"number"},"coverAlt":{"type":"string","source":"attribute","selector":"img","attribute":"alt","default":""},"showDescription":{"type":"boolean","default":false},"showLegend":{"type":"boolean","default":false},"coverUrl":{"type":"string","source":"attribute","selector":"img","attribute":"src"},"coverDescription":{"type":"string","source":"attribute","selector":"img","attribute":"data-description"},"coverLegend":{"type":"string","source":"attribute","selector":"img","attribute":"data-legend"},"focusBullets":{"type":"array","default":[]}},"textdomain":"homegrade-theme__bloks-texte-fonctionnel","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}');
/***/ }),
@@ -776,7 +764,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/tru
\************************************/
/***/ ((module) => {
-module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/focus-point","version":"0.1.0","title":"Point de légende ","category":"homegrade-blocks","description":"Point de légende pour titrer ou décrire un point de légende spécifique sur un Schéma ","supports":{"html":false},"textdomain":"focus-point","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"focusTitle":{"type":"string","default":"Légende Sans titre"},"focusCaptionDescription":{"type":"string"},"focusIndex":{"type":"number","default":0},"focusPosition":{"type":"object","default":{"x":0.5,"y":0.5}}}}');
+module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/focus-point","version":"0.1.0","title":"Point de légende ","category":"homegrade-blocks","description":"Point de légende pour titrer ou décrire un point de légende spécifique sur un Schéma ","supports":{"html":false},"textdomain":"focus-point","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"focusTitle":{"type":"string","default":"Légende Sans titre"},"focusCaptionDescription":{"type":"string"},"focusIndex":{"type":"number","default":0},"focusPosition":{"type":"object","default":{"x":0.5,"y":0.5}}}}');
/***/ })
@@ -822,7 +810,9 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/tru
/******/ }
/******/ var notFulfilled = Infinity;
/******/ for (var i = 0; i < deferred.length; i++) {
-/******/ var [chunkIds, fn, priority] = deferred[i];
+/******/ var chunkIds = deferred[i][0];
+/******/ var fn = deferred[i][1];
+/******/ var priority = deferred[i][2];
/******/ var fulfilled = true;
/******/ for (var j = 0; j < chunkIds.length; j++) {
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
@@ -908,7 +898,9 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/tru
/******/
/******/ // install a JSONP callback for chunk loading
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
-/******/ var [chunkIds, moreModules, runtime] = data;
+/******/ var chunkIds = data[0];
+/******/ var moreModules = data[1];
+/******/ var runtime = data[2];
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0;
@@ -931,7 +923,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/tru
/******/ return __webpack_require__.O(result);
/******/ }
/******/
-/******/ var chunkLoadingGlobal = globalThis["webpackChunkmultiblocks"] = globalThis["webpackChunkmultiblocks"] || [];
+/******/ var chunkLoadingGlobal = self["webpackChunkmultiblocks"] = self["webpackChunkmultiblocks"] || [];
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
/******/ })();
diff --git a/blocks/focused-schema/build/index.js.map b/blocks/focused-schema/build/index.js.map
index 3c4fe1f..8f60132 100644
--- a/blocks/focused-schema/build/index.js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;;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,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;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,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/edit.js","webpack://multiblocks/./src/focus-point/edit.js","webpack://multiblocks/./src/focus-point/index.js","webpack://multiblocks/./src/focus-point/save.js","webpack://multiblocks/./src/index.js","webpack://multiblocks/./src/save.js","webpack://multiblocks/./src/editor.scss?d446","webpack://multiblocks/./src/focus-point/editor.scss","webpack://multiblocks/./src/focus-point/style.scss","webpack://multiblocks/./src/style.scss?d1e4","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/trash.js","webpack://multiblocks/external window \"React\"","webpack://multiblocks/external window [\"wp\",\"blob\"]","webpack://multiblocks/external window [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"components\"]","webpack://multiblocks/external window [\"wp\",\"data\"]","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":["import \"./editor.scss\";\nimport \"./focus-point\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useSelect, dispatch, select } from \"@wordpress/data\";\nimport { useEffect, useState } from \"@wordpress/element\";\nimport { createBlock } from \"@wordpress/blocks\";\n\nimport {\n\tInnerBlocks,\n\tuseBlockProps,\n\tMediaPlaceholder,\n\tBlockControls,\n\tMediaReplaceFlow,\n\tInspectorControls,\n} from \"@wordpress/block-editor\";\nimport {\n\tToggleControl,\n\tToolbarButton,\n\tSpinner,\n\twithNotices,\n\tButton,\n\tPanelBody,\n\tTip,\n} from \"@wordpress/components\";\n\nimport { isBlobURL, revokeBlobURL } from \"@wordpress/blob\";\nimport { cover, handle, trash } from \"@wordpress/icons\";\n\nfunction Edit({\n\tattributes,\n\tsetAttributes,\n\tnoticeOperations,\n\tnoticeList,\n\tnoticeUI,\n\tclientId,\n\t...props\n}) {\n\tconst {\n\t\tcoverUrl,\n\t\tcoverId,\n\t\tcoverAlt,\n\t\tshowLegend,\n\t\tcoverLegend,\n\t\tshowDescription,\n\t\tcoverDescription,\n\t\tfocusBullets,\n\t} = attributes;\n\tconsole.log(coverLegend);\n\tconst [blobUrl, setBlobUrl] = useState();\n\tconst currentBlockDatas = useSelect((select) => {\n\t\treturn select(\"core/block-editor\").getBlocksByClientId(clientId)[0];\n\t});\n\n\tlet children = useSelect(\n\t\t(select) =>\n\t\t\tselect(\"core/block-editor\").getBlocksByClientId(clientId)[0].innerBlocks,\n\t);\n\n\tfunction onUploadError(message) {\n\t\tnoticeOperations.removeAllNotices(); // Remove all previous notices\n\t\tnoticeOperations.createErrorNotice(message);\n\t}\n\n\tfunction removeCoverImg() {\n\t\tsetAttributes({\n\t\t\tcoverUrl: undefined,\n\t\t\tcoverId: undefined,\n\t\t\tcoverDescription: \"\",\n\t\t\tcoverLegend: \"\",\n\t\t\tcoverAlt: \"\",\n\t\t});\n\t}\n\n\tfunction updateCover(image) {\n\t\tif (!image || !image.url) {\n\t\t\tsetAttributes({\n\t\t\t\tcoverUrl: undefined,\n\t\t\t\tcoverId: undefined,\n\t\t\t\tcoverDescription: \"\",\n\t\t\t\tcoverLegend: \"\",\n\t\t\t\tcoverAlt: \"\",\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tsetAttributes({\n\t\t\tcoverUrl: image.url,\n\t\t\tcoverId: image.id,\n\t\t\tcoverAlt: image.alt,\n\t\t\tcoverDescription: image.description,\n\t\t\tcoverLegend: image.caption,\n\t\t});\n\t}\n\n\tfunction passCoverUrlToChildren() {\n\t\tif (children && coverUrl) {\n\t\t\tchildren.forEach(function (child) {\n\t\t\t\tdispatch(\"core/block-editor\").updateBlockAttributes(child.clientId, {\n\t\t\t\t\tcoverUrl: coverUrl,\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction passIndexToChildren() {\n\t\tif (children) {\n\t\t\tchildren.forEach((child, index) => {\n\t\t\t\tdispatch(\"core/block-editor\").updateBlockAttributes(child.clientId, {\n\t\t\t\t\tfocusIndex: index + 1,\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction updateFocusPointBullets() {\n\t\tif (children) {\n\t\t\tconst focusBullets = children.map((child, index) => {\n\t\t\t\treturn {\n\t\t\t\t\ttitle: child.attributes.focusTitle,\n\t\t\t\t\tx: child.attributes.focusPosition.x,\n\t\t\t\t\ty: child.attributes.focusPosition.y,\n\t\t\t\t};\n\t\t\t});\n\n\t\t\tsetAttributes({ focusBullets });\n\t\t}\n\t}\n\n\tfunction insertFocusPointBlock() {\n\t\tconst index = children && children.length ? children.length : 0;\n\t\tconst newBlock = createBlock(\"homegrade-content-blocks/focus-point\", {});\n\t\tdispatch(\"core/block-editor\").insertBlocks(newBlock, index, clientId);\n\t}\n\n\tfunction handleBulletClick(index) {\n\t\tif (currentBlockDatas && currentBlockDatas.innerBlocks) {\n\t\t\tconsole.log(currentBlockDatas.innerBlocks[index].clientId);\n\t\t\tdispatch(\"core/block-editor\").selectBlock(\n\t\t\t\tcurrentBlockDatas.innerBlocks[index].clientId,\n\t\t\t);\n\t\t}\n\t}\n\n\tfunction handleShowDescription() {\n\t\tsetAttributes({ showDescription: !showDescription });\n\t}\n\tfunction handleShowLegend() {\n\t\tsetAttributes({ showLegend: !showLegend });\n\t}\n\n\tconst renderedFocusPointBullets = focusBullets.map((focusBullet, index) => {\n\t\treturn (\n\t\t\t handleBulletClick(index)}\n\t\t\t>\n\t\t\t\t\n\t\t\t\t\t{index + 1}\n\t\t\t\t \n\t\t\t
\n\t\t);\n\t});\n\n\tuseEffect(() => {\n\t\tupdateFocusPointBullets();\n\t\tif (!coverId && isBlobURL(coverUrl)) {\n\t\t\tsetAttributes({ coverUrl: undefined, coverAlt: \"\" });\n\t\t}\n\t}, []);\n\tuseEffect(() => {\n\t\t// Fonction de clean du BLOB URL qui se lance à chaque changement de coverUrl\n\t\tif (isBlobURL(coverUrl)) {\n\t\t\t// Si la cover est une blob, c'est que ça upload donc on met cette url dans le state\n\t\t\tsetBlobUrl(coverUrl);\n\t\t} else {\n\t\t\t// Si la cover en'est plus une blob, c'est que l'upload est terminé, on revoke la blob et on clean le state\n\t\t\trevokeBlobURL(blobUrl); // On utilise la valeur stocké dans le state pour revoke l'url\n\t\t\tsetBlobUrl();\n\t\t}\n\t\tpassCoverUrlToChildren();\n\t}, [coverUrl]);\n\n\tuseEffect(() => {\n\t\tupdateFocusPointBullets();\n\t\tpassCoverUrlToChildren();\n\t}, [children]);\n\tuseEffect(() => {\n\t\tpassIndexToChildren();\n\t}, [currentBlockDatas]);\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\tinsertFocusPointBlock();\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\tAjouter un point Légende\n\t\t\t\t\t \n\t\t\t\t \n\t\t\t\t\n\t\t\t\t\t{coverUrl && }\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t{coverUrl && (\n\t\t\t\t\t\t\t
\n\t\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\n\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t \n\t\t\t \n\n\t\t\t \n\t\t\t\n\t\t\t\t{coverUrl && (\n\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t{renderedFocusPointBullets}\n\t\t\t\t\t\t{isBlobURL(coverUrl) && }\n\t\t\t\t\t \n\t\t\t\t)}\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{showLegend && coverLegend && (\n\t\t\t\t\t\t\t{coverLegend} \n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{showDescription && coverDescription && (\n\t\t\t\t\t\t\t{coverDescription} \n\t\t\t\t\t\t)}\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\nexport default withNotices(Edit);\n","import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\nimport { RichText } from \"@wordpress/block-editor\";\nimport {\n\tPanelBody,\n\tFocalPointPicker,\n\tTextControl,\n\tTextareaControl,\n} from \"@wordpress/components\";\n\nexport default function Edit({\n\tattributes,\n\tsetAttributes,\n\tclientId,\n\t...props\n}) {\n\tconst {\n\t\tfocusTitle,\n\t\tfocusPosition,\n\t\tfocusCaptionDescription,\n\t\tcoverUrl,\n\t\tfocusIndex,\n\t} = attributes;\n\n\tfunction handleChangeFocusPosition(focusPosition) {\n\t\tconsole.log(focusPosition);\n\t\tif (focusPosition.x < 0.05) {\n\t\t\tfocusPosition.x = 0.05;\n\t\t}\n\t\tif (focusPosition.x > 0.95) {\n\t\t\tfocusPosition.x = 0.95;\n\t\t}\n\n\t\tif (focusPosition.y < 0.02) {\n\t\t\tfocusPosition.y = 0.02;\n\t\t}\n\t\tif (focusPosition.y > 0.98) {\n\t\t\tfocusPosition.y = 0.98;\n\t\t}\n\t\tsetAttributes({ focusPosition });\n\t}\n\tfunction handleChangeTitle(focusTitle) {\n\t\tsetAttributes({ focusTitle: focusTitle });\n\t}\n\tfunction handleChangeCaptionDescription(focusCaptionDescription) {\n\t\tsetAttributes({ focusCaptionDescription });\n\t}\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{focusIndex}\n\t\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeTitle(value);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeCaptionDescription(description);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeFocusPosition(focalPoint);\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\t\n\t\t\t\t {\n\t\t\t\t\t\thandleChangeTitle(value);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t \n\t\t\t\t{/* {focusTitle} */}\n\t\t\t\t{/* {focusCaptionDescription} */}\n\t\t\t \n\t\t>\n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\nimport metadata from \"./block.json\";\n\nimport Edit from \"./edit\";\nimport Save from \"./save\";\n\nregisterBlockType(metadata.name, {\n\ttitle: metadata.title,\n\ticon: {\n\t\tforeground: \"#DF1E1E\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t \n\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\tsupports: metadata.supports,\n\tattributes: metadata.attributes,\n\tedit: Edit,\n\tsave: Save,\n});\n","import { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { focusCaptionDescription, focusTitle } = attributes;\n\treturn (\n\t\t\n\t\t\t{/* {focusTitle} */}\n\t\t\t \n\t\t\t \n\t\t\t{/* {focusCaptionDescription} */}\n\t\t \n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\n\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\t\t \n\t\t\t\t\t \n\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\tforeground: \"#DF1E1E\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import {\n\tuseBlockProps,\n\tMediaPlaceholder,\n\tRichText,\n\tBlockControls,\n\tMediaReplaceFlow,\n} from \"@wordpress/block-editor\";\nimport { InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst {\n\t\tcoverUrl,\n\t\tcoverId,\n\t\tcoverAlt,\n\t\tshowDescription,\n\t\tcoverDescription,\n\t\tshowLegend,\n\t\tcoverLegend,\n\t\tfocusBullets,\n\t} = attributes;\n\tconst renderedFocusPointBullets = focusBullets.map((focusBullet, index) => {\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{index + 1}\n\t\t\t\t \n\t\t\t
\n\t\t);\n\t});\n\treturn (\n\t\t\n\t\t\t{coverUrl && (\n\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t{renderedFocusPointBullets}\n\t\t\t\t \n\t\t\t)}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{showLegend && coverLegend && (\n\t\t\t\t\t\t{coverLegend} \n\t\t\t\t\t)}\n\t\t\t\t\t{showDescription && coverDescription && (\n\t\t\t\t\t\t{coverDescription} \n\t\t\t\t\t)}\n\t\t\t\t
\n\n\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 {};","// 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[\"React\"];","module.exports = window[\"wp\"][\"blob\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"data\"];","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, fn, priority] = deferred[i];\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, moreModules, runtime] = data;\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 = globalThis[\"webpackChunkmultiblocks\"] = globalThis[\"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":["__","useSelect","dispatch","select","useEffect","useState","createBlock","InnerBlocks","useBlockProps","MediaPlaceholder","BlockControls","MediaReplaceFlow","InspectorControls","ToggleControl","ToolbarButton","Spinner","withNotices","Button","PanelBody","Tip","isBlobURL","revokeBlobURL","cover","handle","trash","Edit","attributes","setAttributes","noticeOperations","noticeList","noticeUI","clientId","props","coverUrl","coverId","coverAlt","showLegend","coverLegend","showDescription","coverDescription","focusBullets","console","log","blobUrl","setBlobUrl","currentBlockDatas","getBlocksByClientId","children","innerBlocks","onUploadError","message","removeAllNotices","createErrorNotice","removeCoverImg","undefined","updateCover","image","url","id","alt","description","caption","passCoverUrlToChildren","forEach","child","updateBlockAttributes","passIndexToChildren","index","focusIndex","updateFocusPointBullets","map","title","focusTitle","x","focusPosition","y","insertFocusPointBlock","length","newBlock","insertBlocks","handleBulletClick","selectBlock","handleShowDescription","handleShowLegend","renderedFocusPointBullets","focusBullet","createElement","className","style","top","left","onClick","Fragment","variant","src","mediaId","mediaUrl","allowedTypes","accept","onSelect","name","icon","label","checked","onChange","help","disableMediaButtons","onError","notices","allowedBlocks","RichText","FocalPointPicker","TextControl","TextareaControl","focusCaptionDescription","handleChangeFocusPosition","handleChangeTitle","handleChangeCaptionDescription","placeholder","value","rows","dimensions","width","height","focalPoint","tagName","registerBlockType","metadata","Save","foreground","viewBox","xmlns","d","cx","cy","r","supports","edit","save","Content"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;AAAmD;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACbuB;AACA;AAEc;AACyB;AACL;AACT;AASf;AASF;AAE4B;AACH;AAExD,SAASyB,IAAIA,CAAC;EACbC,UAAU;EACVC,aAAa;EACbC,gBAAgB;EAChBC,UAAU;EACVC,QAAQ;EACRC,QAAQ;EACR,GAAGC;AACJ,CAAC,EAAE;EACF,MAAM;IACLC,QAAQ;IACRC,OAAO;IACPC,QAAQ;IACRC,UAAU;IACVC,WAAW;IACXC,eAAe;IACfC,gBAAgB;IAChBC;EACD,CAAC,GAAGd,UAAU;EACde,OAAO,CAACC,GAAG,CAACL,WAAW,CAAC;EACxB,MAAM,CAACM,OAAO,EAAEC,UAAU,CAAC,GAAGvC,4DAAQ,CAAC,CAAC;EACxC,MAAMwC,iBAAiB,GAAG5C,0DAAS,CAAEE,MAAM,IAAK;IAC/C,OAAOA,MAAM,CAAC,mBAAmB,CAAC,CAAC2C,mBAAmB,CAACf,QAAQ,CAAC,CAAC,CAAC,CAAC;EACpE,CAAC,CAAC;EAEF,IAAIgB,QAAQ,GAAG9C,0DAAS,CACtBE,MAAM,IACNA,MAAM,CAAC,mBAAmB,CAAC,CAAC2C,mBAAmB,CAACf,QAAQ,CAAC,CAAC,CAAC,CAAC,CAACiB,WAC/D,CAAC;EAED,SAASC,aAAaA,CAACC,OAAO,EAAE;IAC/BtB,gBAAgB,CAACuB,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACrCvB,gBAAgB,CAACwB,iBAAiB,CAACF,OAAO,CAAC;E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;;;;;;;;;;;;;;;;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/../../node_modules/@wordpress/icons/build-module/library/trash.js","webpack://multiblocks/./src/edit.js","webpack://multiblocks/./src/focus-point/edit.js","webpack://multiblocks/./src/focus-point/index.js","webpack://multiblocks/./src/focus-point/save.js","webpack://multiblocks/./src/index.js","webpack://multiblocks/./src/save.js","webpack://multiblocks/./src/editor.scss?0774","webpack://multiblocks/./src/focus-point/editor.scss","webpack://multiblocks/./src/focus-point/style.scss","webpack://multiblocks/./src/style.scss","webpack://multiblocks/external window [\"wp\",\"blob\"]","webpack://multiblocks/external window [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"components\"]","webpack://multiblocks/external window [\"wp\",\"data\"]","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":["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","import \"./editor.scss\";\nimport \"./focus-point\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useSelect, dispatch, select } from \"@wordpress/data\";\nimport { useEffect, useState } from \"@wordpress/element\";\nimport { createBlock } from \"@wordpress/blocks\";\n\nimport {\n\tInnerBlocks,\n\tuseBlockProps,\n\tMediaPlaceholder,\n\tBlockControls,\n\tMediaReplaceFlow,\n\tInspectorControls,\n} from \"@wordpress/block-editor\";\nimport {\n\tToggleControl,\n\tToolbarButton,\n\tSpinner,\n\twithNotices,\n\tButton,\n\tPanelBody,\n\tTip,\n} from \"@wordpress/components\";\n\nimport { isBlobURL, revokeBlobURL } from \"@wordpress/blob\";\nimport { cover, handle, trash } from \"@wordpress/icons\";\n\nfunction Edit({\n\tattributes,\n\tsetAttributes,\n\tnoticeOperations,\n\tnoticeList,\n\tnoticeUI,\n\tclientId,\n\t...props\n}) {\n\tconst {\n\t\tcoverUrl,\n\t\tcoverId,\n\t\tcoverAlt,\n\t\tshowLegend,\n\t\tcoverLegend,\n\t\tshowDescription,\n\t\tcoverDescription,\n\t\tfocusBullets,\n\t} = attributes;\n\tconsole.log(coverLegend);\n\tconst [blobUrl, setBlobUrl] = useState();\n\tconst currentBlockDatas = useSelect((select) => {\n\t\treturn select(\"core/block-editor\").getBlocksByClientId(clientId)[0];\n\t});\n\n\tlet children = useSelect(\n\t\t(select) =>\n\t\t\tselect(\"core/block-editor\").getBlocksByClientId(clientId)[0].innerBlocks,\n\t);\n\n\tfunction onUploadError(message) {\n\t\tnoticeOperations.removeAllNotices(); // Remove all previous notices\n\t\tnoticeOperations.createErrorNotice(message);\n\t}\n\n\tfunction removeCoverImg() {\n\t\tsetAttributes({\n\t\t\tcoverUrl: undefined,\n\t\t\tcoverId: undefined,\n\t\t\tcoverDescription: \"\",\n\t\t\tcoverLegend: \"\",\n\t\t\tcoverAlt: \"\",\n\t\t});\n\t}\n\n\tfunction updateCover(image) {\n\t\tif (!image || !image.url) {\n\t\t\tsetAttributes({\n\t\t\t\tcoverUrl: undefined,\n\t\t\t\tcoverId: undefined,\n\t\t\t\tcoverDescription: \"\",\n\t\t\t\tcoverLegend: \"\",\n\t\t\t\tcoverAlt: \"\",\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tsetAttributes({\n\t\t\tcoverUrl: image.url,\n\t\t\tcoverId: image.id,\n\t\t\tcoverAlt: image.alt,\n\t\t\tcoverDescription: image.description,\n\t\t\tcoverLegend: image.caption,\n\t\t});\n\t}\n\n\tfunction passCoverUrlToChildren() {\n\t\tif (children && coverUrl) {\n\t\t\tchildren.forEach(function (child) {\n\t\t\t\tdispatch(\"core/block-editor\").updateBlockAttributes(child.clientId, {\n\t\t\t\t\tcoverUrl: coverUrl,\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction passIndexToChildren() {\n\t\tif (children) {\n\t\t\tchildren.forEach((child, index) => {\n\t\t\t\tdispatch(\"core/block-editor\").updateBlockAttributes(child.clientId, {\n\t\t\t\t\tfocusIndex: index + 1,\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction updateFocusPointBullets() {\n\t\tif (children) {\n\t\t\tconst focusBullets = children.map((child, index) => {\n\t\t\t\treturn {\n\t\t\t\t\ttitle: child.attributes.focusTitle,\n\t\t\t\t\tx: child.attributes.focusPosition.x,\n\t\t\t\t\ty: child.attributes.focusPosition.y,\n\t\t\t\t};\n\t\t\t});\n\n\t\t\tsetAttributes({ focusBullets });\n\t\t}\n\t}\n\n\tfunction insertFocusPointBlock() {\n\t\tconst index = children && children.length ? children.length : 0;\n\t\tconst newBlock = createBlock(\"homegrade-content-blocks/focus-point\", {});\n\t\tdispatch(\"core/block-editor\").insertBlocks(newBlock, index, clientId);\n\t}\n\n\tfunction handleBulletClick(index) {\n\t\tif (currentBlockDatas && currentBlockDatas.innerBlocks) {\n\t\t\tconsole.log(currentBlockDatas.innerBlocks[index].clientId);\n\t\t\tdispatch(\"core/block-editor\").selectBlock(\n\t\t\t\tcurrentBlockDatas.innerBlocks[index].clientId,\n\t\t\t);\n\t\t}\n\t}\n\n\tfunction handleShowDescription() {\n\t\tsetAttributes({ showDescription: !showDescription });\n\t}\n\tfunction handleShowLegend() {\n\t\tsetAttributes({ showLegend: !showLegend });\n\t}\n\n\tconst renderedFocusPointBullets = focusBullets.map((focusBullet, index) => {\n\t\treturn (\n\t\t\t handleBulletClick(index)}\n\t\t\t>\n\t\t\t\t\n\t\t\t\t\t{index + 1}\n\t\t\t\t \n\t\t\t
\n\t\t);\n\t});\n\n\tuseEffect(() => {\n\t\tupdateFocusPointBullets();\n\t\tif (!coverId && isBlobURL(coverUrl)) {\n\t\t\tsetAttributes({ coverUrl: undefined, coverAlt: \"\" });\n\t\t}\n\t}, []);\n\tuseEffect(() => {\n\t\t// Fonction de clean du BLOB URL qui se lance à chaque changement de coverUrl\n\t\tif (isBlobURL(coverUrl)) {\n\t\t\t// Si la cover est une blob, c'est que ça upload donc on met cette url dans le state\n\t\t\tsetBlobUrl(coverUrl);\n\t\t} else {\n\t\t\t// Si la cover en'est plus une blob, c'est que l'upload est terminé, on revoke la blob et on clean le state\n\t\t\trevokeBlobURL(blobUrl); // On utilise la valeur stocké dans le state pour revoke l'url\n\t\t\tsetBlobUrl();\n\t\t}\n\t\tpassCoverUrlToChildren();\n\t}, [coverUrl]);\n\n\tuseEffect(() => {\n\t\tupdateFocusPointBullets();\n\t\tpassCoverUrlToChildren();\n\t}, [children]);\n\tuseEffect(() => {\n\t\tpassIndexToChildren();\n\t}, [currentBlockDatas]);\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\tinsertFocusPointBlock();\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\tAjouter un point Légende\n\t\t\t\t\t \n\t\t\t\t \n\t\t\t\t\n\t\t\t\t\t{coverUrl && }\n\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t{coverUrl && (\n\t\t\t\t\t\t\t
\n\t\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\n\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t \n\t\t\t \n\n\t\t\t \n\t\t\t\n\t\t\t\t{coverUrl && (\n\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t{renderedFocusPointBullets}\n\t\t\t\t\t\t{isBlobURL(coverUrl) && }\n\t\t\t\t\t \n\t\t\t\t)}\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{showLegend && coverLegend && (\n\t\t\t\t\t\t\t{coverLegend} \n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{showDescription && coverDescription && (\n\t\t\t\t\t\t\t{coverDescription} \n\t\t\t\t\t\t)}\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\nexport default withNotices(Edit);\n","import { __ } from \"@wordpress/i18n\";\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\nimport { RichText } from \"@wordpress/block-editor\";\nimport {\n\tPanelBody,\n\tFocalPointPicker,\n\tTextControl,\n\tTextareaControl,\n} from \"@wordpress/components\";\n\nexport default function Edit({\n\tattributes,\n\tsetAttributes,\n\tclientId,\n\t...props\n}) {\n\tconst {\n\t\tfocusTitle,\n\t\tfocusPosition,\n\t\tfocusCaptionDescription,\n\t\tcoverUrl,\n\t\tfocusIndex,\n\t} = attributes;\n\n\tfunction handleChangeFocusPosition(focusPosition) {\n\t\tconsole.log(focusPosition);\n\t\tif (focusPosition.x < 0.05) {\n\t\t\tfocusPosition.x = 0.05;\n\t\t}\n\t\tif (focusPosition.x > 0.95) {\n\t\t\tfocusPosition.x = 0.95;\n\t\t}\n\n\t\tif (focusPosition.y < 0.02) {\n\t\t\tfocusPosition.y = 0.02;\n\t\t}\n\t\tif (focusPosition.y > 0.98) {\n\t\t\tfocusPosition.y = 0.98;\n\t\t}\n\t\tsetAttributes({ focusPosition });\n\t}\n\tfunction handleChangeTitle(focusTitle) {\n\t\tsetAttributes({ focusTitle: focusTitle });\n\t}\n\tfunction handleChangeCaptionDescription(focusCaptionDescription) {\n\t\tsetAttributes({ focusCaptionDescription });\n\t}\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{focusIndex}\n\t\t\t\t\t
\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeTitle(value);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeCaptionDescription(description);\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\t {\n\t\t\t\t\t\t\thandleChangeFocusPosition(focalPoint);\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\t\n\t\t\t\t {\n\t\t\t\t\t\thandleChangeTitle(value);\n\t\t\t\t\t}}\n\t\t\t\t/>\n\t\t\t\t \n\t\t\t\t{/* {focusTitle} */}\n\t\t\t\t{/* {focusCaptionDescription} */}\n\t\t\t \n\t\t>\n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\nimport metadata from \"./block.json\";\n\nimport Edit from \"./edit\";\nimport Save from \"./save\";\n\nregisterBlockType(metadata.name, {\n\ttitle: metadata.title,\n\ticon: {\n\t\tforeground: \"#DF1E1E\",\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t \n\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\tsupports: metadata.supports,\n\tattributes: metadata.attributes,\n\tedit: Edit,\n\tsave: Save,\n});\n","import { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { focusCaptionDescription, focusTitle } = attributes;\n\treturn (\n\t\t\n\t\t\t{/* {focusTitle} */}\n\t\t\t \n\t\t\t \n\t\t\t{/* {focusCaptionDescription} */}\n\t\t \n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\n\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\t\t \n\t\t\t\t\t \n\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\tforeground: \"#DF1E1E\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","import {\n\tuseBlockProps,\n\tMediaPlaceholder,\n\tRichText,\n\tBlockControls,\n\tMediaReplaceFlow,\n} from \"@wordpress/block-editor\";\nimport { InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst {\n\t\tcoverUrl,\n\t\tcoverId,\n\t\tcoverAlt,\n\t\tshowDescription,\n\t\tcoverDescription,\n\t\tshowLegend,\n\t\tcoverLegend,\n\t\tfocusBullets,\n\t} = attributes;\n\tconst renderedFocusPointBullets = focusBullets.map((focusBullet, index) => {\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{index + 1}\n\t\t\t\t \n\t\t\t
\n\t\t);\n\t});\n\treturn (\n\t\t\n\t\t\t{coverUrl && (\n\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t{renderedFocusPointBullets}\n\t\t\t\t \n\t\t\t)}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{showLegend && coverLegend && (\n\t\t\t\t\t\t{coverLegend} \n\t\t\t\t\t)}\n\t\t\t\t\t{showDescription && coverDescription && (\n\t\t\t\t\t\t{coverDescription} \n\t\t\t\t\t)}\n\t\t\t\t
\n\n\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 {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blob\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"data\"];","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":["__","useSelect","dispatch","select","useEffect","useState","createBlock","InnerBlocks","useBlockProps","MediaPlaceholder","BlockControls","MediaReplaceFlow","InspectorControls","ToggleControl","ToolbarButton","Spinner","withNotices","Button","PanelBody","Tip","isBlobURL","revokeBlobURL","cover","handle","trash","Edit","attributes","setAttributes","noticeOperations","noticeList","noticeUI","clientId","props","coverUrl","coverId","coverAlt","showLegend","coverLegend","showDescription","coverDescription","focusBullets","console","log","blobUrl","setBlobUrl","currentBlockDatas","getBlocksByClientId","children","innerBlocks","onUploadError","message","removeAllNotices","createErrorNotice","removeCoverImg","undefined","updateCover","image","url","id","alt","description","caption","passCoverUrlToChildren","forEach","child","updateBlockAttributes","passIndexToChildren","index","focusIndex","updateFocusPointBullets","map","title","focusTitle","x","focusPosition","y","insertFocusPointBlock","length","newBlock","insertBlocks","handleBulletClick","selectBlock","handleShowDescription","handleShowLegend","renderedFocusPointBullets","focusBullet","createElement","className","style","top","left","onClick","Fragment","variant","src","mediaId","mediaUrl","allowedTypes","accept","onSelect","name","icon","label","checked","onChange","help","disableMediaButtons","onError","notices","allowedBlocks","RichText","FocalPointPicker","TextControl","TextareaControl","focusCaptionDescription","handleChangeFocusPosition","handleChangeTitle","handleChangeCaptionDescription","placeholder","value","rows","dimensions","width","height","focalPoint","tagName","registerBlockType","metadata","Save","foreground","viewBox","xmlns","d","cx","cy","r","supports","edit","save","Content"],"sourceRoot":""}
\ No newline at end of file
diff --git a/blocks/focused-schema/build/style-index.css b/blocks/focused-schema/build/style-index.css
index 84285eb..a38e4db 100644
--- a/blocks/focused-schema/build/style-index.css
+++ b/blocks/focused-schema/build/style-index.css
@@ -1,6 +1,6 @@
-/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.4.35_webpack@5.90.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@12.6.0_sass@1.71.1_webpack@5.90.3/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/style.scss ***!
- \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/*!***************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/style.scss ***!
+ \***************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
/**
* The following styles get applied both on the front of your site
@@ -116,9 +116,9 @@
font-weight: bold;
margin-right: 6px;
}
-/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** css ./node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.4.35_webpack@5.90.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@12.6.0_sass@1.71.1_webpack@5.90.3/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/focus-point/style.scss ***!
- \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
+/*!***************************************************************************************************************************************************************************************************************************************************************!*\
+ !*** css ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/focus-point/style.scss ***!
+ \***************************************************************************************************************************************************************************************************************************************************************/
/*# sourceMappingURL=style-index.css.map*/
\ No newline at end of file
diff --git a/blocks/focused-schema/src/editor.scss b/blocks/focused-schema/src/editor.scss
index 75f818d..c289ccd 100644
--- a/blocks/focused-schema/src/editor.scss
+++ b/blocks/focused-schema/src/editor.scss
@@ -6,6 +6,16 @@
.picture-container img {
width: 100%;
}
+ figcaption ol {
+ display: block !important;
+ }
+ .block-editor-block-list__layout {
+ @media (min-width: 1200px) {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 1rem;
+ }
+ }
}
.wpblock-cover-container {