diff --git a/blocks/focused-thematique/build/focus-point-thematique/index.asset.php b/blocks/focused-thematique/build/focus-point-thematique/index.asset.php index 6cab799..76ccbd4 100644 --- a/blocks/focused-thematique/build/focus-point-thematique/index.asset.php +++ b/blocks/focused-thematique/build/focus-point-thematique/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => 'b34654bdfab6ce8e5f75'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => '8effa02505a2c3bfaa3f'); diff --git a/blocks/focused-thematique/build/focus-point-thematique/index.js b/blocks/focused-thematique/build/focus-point-thematique/index.js index d3537ef..7a77f5f 100644 --- a/blocks/focused-thematique/build/focus-point-thematique/index.js +++ b/blocks/focused-thematique/build/focus-point-thematique/index.js @@ -66,7 +66,7 @@ function Edit({ className: "focus-point-modification-pannel", title: "Gestion du points de focus" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - className: "homegrade-blocks-focus-point-bullet" + className: "homegrade-blocks-focus-point-bullet-panel-preview" }, focusIndex), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.TextControl, { placeholder: "Ins\xE9rer le titre de votre point focus", label: "Titre du point focus", @@ -95,7 +95,9 @@ function Edit({ ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.useBlockProps)({ className: `homegrade-blocks-focus-point-caption` }) - }, focusCaptionDescription)); + }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { + className: "focus-point-title" + }, focusTitle), focusCaptionDescription)); } /***/ }), @@ -181,7 +183,9 @@ function save({ ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({ className: `homegrade-blocks-focus-point-caption` }) - }, focusCaptionDescription); + }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { + className: "focus-point-title" + }, focusTitle), focusCaptionDescription); } /***/ }), diff --git a/blocks/focused-thematique/build/focus-point-thematique/index.js.map b/blocks/focused-thematique/build/focus-point-thematique/index.js.map index d3f11d6..b94c7b3 100644 --- a/blocks/focused-thematique/build/focus-point-thematique/index.js.map +++ b/blocks/focused-thematique/build/focus-point-thematique/index.js.map @@ -1 +1 @@ -{"version":3,"file":"focus-point-thematique/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAC6B;AAC3C;AACqC;AACS;AACZ;AACE;AAM5B;AAEhB,SAASc,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;IACjDJ,aAAa,CAAC;MAAEI;IAAc,CAAC,CAAC;EACjC;EACA,SAASK,iBAAiBA,CAACN,UAAU,EAAE;IACtCH,aAAa,CAAC;MAAEG,UAAU,EAAEA;IAAW,CAAC,CAAC;EAC1C;EACA,SAASO,8BAA8BA,CAACL,uBAAuB,EAAE;IAChEL,aAAa,CAAC;MAAEK;IAAwB,CAAC,CAAC;EAC3C;EAEA,OACCM,iEAAA,CAAAC,wDAAA,QACCD,iEAAA,CAACxB,sEAAiB,QACjBwB,iEAAA,CAACjB,4DAAS;IACTmB,SAAS,EAAC,iCAAiC;IAC3CC,KAAK,EAAC;EAA4B,GAElCH,iEAAA;IAAKE,SAAS,EAAC;EAAqC,GAClDN,UACG,CAAC,EACNI,iEAAA,CAACf,8DAAW;IACXmB,WAAW,EAAC,0CAAuC;IACnDC,KAAK,EAAC,sBAAsB;IAC5BC,KAAK,EAAEd,UAAU,KAAK,oBAAoB,GAAGA,UAAU,GAAG,IAAK;IAC/De,QAAQ,EA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;;;;;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-thematique/edit.js","webpack://multiblocks/./src/focus-point-thematique/index.js","webpack://multiblocks/./src/focus-point-thematique/save.js","webpack://multiblocks/./src/focus-point-thematique/editor.scss","webpack://multiblocks/./src/focus-point-thematique/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\",\"data\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"notices\"]","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, RichText } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\nimport { createErrorNotice, removeNotice } from \"@wordpress/notices\";\nimport { useDispatch, useSelect } from \"@wordpress/data\";\nimport { store as noticesStore } from \"@wordpress/notices\";\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\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{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\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 { focusTitle, focusPosition, focusCaptionDescription, focusIndex } =\n\t\tattributes;\n\treturn (\n\t\t\n\t\t\t{/* \n\t\t\t{focusIndex}\n\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\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"notices\"];","// 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-thematique/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-thematique/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","InspectorControls","createErrorNotice","removeNotice","useDispatch","useSelect","store","noticesStore","PanelBody","FocalPointPicker","TextControl","TextareaControl","Edit","attributes","setAttributes","clientId","props","focusTitle","focusPosition","focusCaptionDescription","coverUrl","focusIndex","handleChangeFocusPosition","handleChangeTitle","handleChangeCaptionDescription","createElement","Fragment","className","title","placeholder","label","value","onChange","rows","description","url","dimensions","width","height","focalPoint","registerBlockType","metadata","Save","name","icon","foreground","src","id","viewBox","xmlns","d","cx","cy","r","supports","edit","save","InnerBlocks"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"focus-point-thematique/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AAC6B;AAC3C;AACqC;AACS;AACZ;AACE;AAM5B;AAEhB,SAASc,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;IACjDJ,aAAa,CAAC;MAAEI;IAAc,CAAC,CAAC;EACjC;EACA,SAASK,iBAAiBA,CAACN,UAAU,EAAE;IACtCH,aAAa,CAAC;MAAEG,UAAU,EAAEA;IAAW,CAAC,CAAC;EAC1C;EACA,SAASO,8BAA8BA,CAACL,uBAAuB,EAAE;IAChEL,aAAa,CAAC;MAAEK;IAAwB,CAAC,CAAC;EAC3C;EAEA,OACCM,iEAAA,CAAAC,wDAAA,QACCD,iEAAA,CAACxB,sEAAiB,QACjBwB,iEAAA,CAACjB,4DAAS;IACTmB,SAAS,EAAC,iCAAiC;IAC3CC,KAAK,EAAC;EAA4B,GAElCH,iEAAA;IAAKE,SAAS,EAAC;EAAmD,GAChEN,UACG,CAAC,EACNI,iEAAA,CAACf,8DAAW;IACXmB,WAAW,EAAC,0CAAuC;IACnDC,KAAK,EAAC,sBAAsB;IAC5BC,KAAK,EAAEd,UAAU,KAAK,oBAAoB,GAAGA,UAAU,GAAG,IAAK;IAC/De,QAAQ,EAAGD,KAAK,IAAK;MACpBR,iBAAiB,CAACQ,KAAK,CAAC;IACzB;EAAE,CACF,CAAC,EACFN,iEAAA,CAACd,kEAAe;IACfmB,KAAK,EAAC,4BAA4B;IAClCC,KAAK,EAAEZ,uBAAwB;IAC/Bc,IAAI,EAAE,CAAE;IACRD,QAAQ,EAAGE,WAAW,IA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EA;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-thematique/edit.js","webpack://multiblocks/./src/focus-point-thematique/index.js","webpack://multiblocks/./src/focus-point-thematique/save.js","webpack://multiblocks/./src/focus-point-thematique/editor.scss","webpack://multiblocks/./src/focus-point-thematique/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\",\"data\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"notices\"]","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, RichText } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\nimport { createErrorNotice, removeNotice } from \"@wordpress/notices\";\nimport { useDispatch, useSelect } from \"@wordpress/data\";\nimport { store as noticesStore } from \"@wordpress/notices\";\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\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{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\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 { focusTitle, focusPosition, focusCaptionDescription, focusIndex } =\n\t\tattributes;\n\treturn (\n\t\t\n\t\t\t{/* \n\t\t\t{focusIndex}\n\t\t */}\n\t\t\t{focusTitle}\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\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"notices\"];","// 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-thematique/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-thematique/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","InspectorControls","createErrorNotice","removeNotice","useDispatch","useSelect","store","noticesStore","PanelBody","FocalPointPicker","TextControl","TextareaControl","Edit","attributes","setAttributes","clientId","props","focusTitle","focusPosition","focusCaptionDescription","coverUrl","focusIndex","handleChangeFocusPosition","handleChangeTitle","handleChangeCaptionDescription","createElement","Fragment","className","title","placeholder","label","value","onChange","rows","description","url","dimensions","width","height","focalPoint","registerBlockType","metadata","Save","name","icon","foreground","src","id","viewBox","xmlns","d","cx","cy","r","supports","edit","save","InnerBlocks"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/focused-thematique/build/index.asset.php b/blocks/focused-thematique/build/index.asset.php index 0b66558..2f90c9e 100644 --- a/blocks/focused-thematique/build/index.asset.php +++ b/blocks/focused-thematique/build/index.asset.php @@ -1 +1 @@ - array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => '5b519e7f67aa2e01257f'); + array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => '6d996a67717d11da59bc'); diff --git a/blocks/focused-thematique/build/index.css b/blocks/focused-thematique/build/index.css index 4513166..8221129 100644 --- a/blocks/focused-thematique/build/index.css +++ b/blocks/focused-thematique/build/index.css @@ -1,29 +1,17 @@ /*!****************************************************************************************************************************************************************************************************************************************!*\ !*** 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 ***! \****************************************************************************************************************************************************************************************************************************************/ -/** - * The following styles get applied inside the editor only. - * - * Replace them with your own styles or remove the file completely. - */ -.homegrade-blocks-focused-thematique-cover .block-editor-block-list__layout, -.homegrade-blocks-focused-thematique-cover .block-editor-block-list__block { - position: unset; -} - -.wpblock-cover-container { - position: relative; -} -.wpblock-cover-container.is-loading .components-spinner { - position: absolute; - left: 50%; - right: 50%; - bottom: 0; - top: 0; - margin: auto; -} -.wpblock-cover-container.is-loading img { - opacity: 10%; +.homegrade-blocks-focus-point-bullet-panel-preview { + width: 40px; + height: 40px; + background: red; + color: white; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; + font-weight: 800; + margin-bottom: 10px; } .homegrade-blocks-focus-point { diff --git a/blocks/focused-thematique/build/index.css.map b/blocks/focused-thematique/build/index.css.map index e708d54..c791580 100644 --- a/blocks/focused-thematique/build/index.css.map +++ b/blocks/focused-thematique/build/index.css.map @@ -1 +1 @@ -{"version":3,"file":"index.css","mappings":";;;AAAA;;;;EAAA;AAMC;;EAEC;AAAF;;AAGA;EACC;AAAD;AAEE;EACC;EACA;EACA;EACA;EACA;EACA;AAAH;AAEE;EACC;AAAH;;AAKA;EACC;AAFD;;AAKA;EACC;EACA;EACA;AAFD,C","sources":["webpack://multiblocks/./src/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n.homegrade-blocks-focused-thematique-cover {\n\t.block-editor-block-list__layout,\n\t.block-editor-block-list__block {\n\t\tposition: unset;\n\t}\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.homegrade-blocks-focus-point {\n\tposition: absolute !important;\n}\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":";;;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACD;;AAEA;EACC;AACD;;AAEA;EACC;EACA;EACA;AACD,C","sources":["webpack://multiblocks/./src/editor.scss"],"sourcesContent":[".homegrade-blocks-focus-point-bullet-panel-preview {\n\twidth: 40px;\n\theight: 40px;\n\tbackground: red;\n\tcolor: white;\n\tborder-radius: 50%;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tfont-weight: 800;\n\tmargin-bottom: 10px;\n}\n\n.homegrade-blocks-focus-point {\n\tposition: absolute !important;\n}\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-thematique/build/index.js b/blocks/focused-thematique/build/index.js index a59f1f9..fa5bbf7 100644 --- a/blocks/focused-thematique/build/index.js +++ b/blocks/focused-thematique/build/index.js @@ -289,7 +289,7 @@ function Edit({ className: "focus-point-modification-pannel", title: "Gestion du points de focus" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - className: "homegrade-blocks-focus-point-bullet" + className: "homegrade-blocks-focus-point-bullet-panel-preview" }, focusIndex), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.TextControl, { placeholder: "Ins\xE9rer le titre de votre point focus", label: "Titre du point focus", @@ -318,7 +318,9 @@ function Edit({ ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.useBlockProps)({ className: `homegrade-blocks-focus-point-caption` }) - }, focusCaptionDescription)); + }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { + className: "focus-point-title" + }, focusTitle), focusCaptionDescription)); } /***/ }), @@ -404,7 +406,9 @@ function save({ ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({ className: `homegrade-blocks-focus-point-caption` }) - }, focusCaptionDescription); + }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { + className: "focus-point-title" + }, focusTitle), focusCaptionDescription); } /***/ }), @@ -493,7 +497,9 @@ function save({ style: { top: `${focusBullet.y * 100}%`, left: `${focusBullet.x * 100}%` - } + }, + "data-postion-x": focusBullet.x * 100, + "data-postion-y": focusBullet.y * 100 }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: "homegrade-blocks-focus-point-bullet__index" }, index + 1)); diff --git a/blocks/focused-thematique/build/index.js.map b/blocks/focused-thematique/build/index.js.map index 645484b..e11f229 100644 --- a/blocks/focused-thematique/build/index.js.map +++ b/blocks/focused-thematique/build/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;AAAA;AACA,sBAAsB,sEAAsE,gBAAgB,sBAAsB,OAAO,2BAA2B,0BAA0B,yDAAyD,iCAAiC,kBAAkB;AAC3Q;AAC/B;AACA,sBAAsB,gDAAmB;AACzC;AACA;AACA;AACA,GAAG,yCAAyC,gDAAmB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AAC4C;AAC5C,iEAAe,oBAAoB,giBAAgiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnB5iB;AACW;AAEG;AACiB;AACP;AACC;AACU;AAEiB;AACJ;AACjB;AAEX;AACM;AACjD,SAASe,IAAIA,CAAC;EACbC,UAAU;EACVC,aAAa;EACbC,gBAAgB;EAChBC,UAAU;EACVC,QAAQ;EACRC,QAAQ;EACR,GAAGC;AACJ,CAAC,EAAE;EAAA,IAAAC,IAAA;EACF,MAAM;IAAEC,QAAQ;IAAEC,OAAO;IAAEC,QAAQ;IAAEC;EAAa,CAAC,GAAGX,UAAU;EAChE,MAAMY,iBAAiB,GAAG3B,0DAAS,CAAE4B,MAAM,IAAK;IAC/C,OAAOA,MAAM,CAAC,mBAAmB,CAAC,CAACC,mBAAmB,CAACT,QAAQ,CAAC,CAAC,CAAC,CAAC;EACpE,CAAC,CAAC;EAEF,IAAIU,QAAQ,GAAG9B,0DAAS,CACtB4B,MAAM,IACNA,MAAM,CAAC,mBAAmB,CAAC,CAACC,mBAAmB,CAACT,QAAQ,CAAC,CAAC,CAAC,CAAC,CAACW,WAC/D,CAAC;EAED,IAAIC,cAAc,GAAGhC,0DAAS,CAAE4B,MAAM,IACrCA,MAAM,CAAC,aAAa,CAAC,CAACK,uBAAuB,CAAC,aAAa,CAC5D,CAAC;EAED,IAAIC,gBAAgB,GAAGlC,0DAAS,CAC9B4B,MAAM,IACNA,MAAM,CAAC,MA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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/img/chevron_down.svg","webpack://multiblocks/./src/edit.js","webpack://multiblocks/./src/focus-point-thematique/edit.js","webpack://multiblocks/./src/focus-point-thematique/index.js","webpack://multiblocks/./src/focus-point-thematique/save.js","webpack://multiblocks/./src/index.js","webpack://multiblocks/./src/save.js","webpack://multiblocks/./src/editor.scss","webpack://multiblocks/./src/focus-point-thematique/editor.scss","webpack://multiblocks/./src/focus-point-thematique/style.scss","webpack://multiblocks/./src/style.scss?75bd","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\",\"coreData\"]","webpack://multiblocks/external window [\"wp\",\"data\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"notices\"]","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":["var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nvar SvgChevronDown = function SvgChevronDown(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 10.037,\n height: 6.876\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n \"data-name\": \"Trac\\\\xE9 255\",\n d: \"m1.406 1.406 3.612 4.47 3.612-4.47\",\n fill: \"none\",\n stroke: \"#000\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: 2\n })));\n};\nexport { SvgChevronDown as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMC4wMzciIGhlaWdodD0iNi44NzYiIHZpZXdCb3g9IjAgMCAxMC4wMzcgNi44NzYiPgogIDxnIGlkPSJmbGVjaGUtYmFzIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjQwNiAxLjQwNikiPgogICAgPHBhdGggaWQ9IlRyYWPDqV8yNTUiIGRhdGEtbmFtZT0iVHJhY8OpIDI1NSIgZD0iTTEwNC44MTgsNzcuMzY2bDQuNDctMy42MTItNC40Ny0zLjYxMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNzcuMzY2IC0xMDQuODE4KSByb3RhdGUoOTApIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgPC9nPgo8L3N2Zz4K\";","import \"./editor.scss\";\nimport \"./focus-point-thematique\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useSelect, dispatch } from \"@wordpress/data\";\nimport { useEffect } from \"@wordpress/element\";\nimport { createBlock } from \"@wordpress/blocks\";\nimport { store as coreStore } from \"@wordpress/core-data\";\n\nimport { useBlockProps, InspectorControls } from \"@wordpress/block-editor\";\nimport { withNotices, Button, PanelBody } from \"@wordpress/components\";\nimport { InnerBlocks } from \"@wordpress/block-editor\";\n\nimport { ChevronDown } from \"lucide-react\";\nimport chevronDown from \"./img/chevron_down.svg\";\nfunction Edit({\n\tattributes,\n\tsetAttributes,\n\tnoticeOperations,\n\tnoticeList,\n\tnoticeUI,\n\tclientId,\n\t...props\n}) {\n\tconst { coverUrl, coverId, coverAlt, focusBullets } = attributes;\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\tlet postTaxonomies = useSelect((select) =>\n\t\tselect(\"core/editor\").getCurrentPostAttribute(\"thematiques\")\n\t);\n\n\tlet postMainTaxonomy = useSelect(\n\t\t(select) =>\n\t\t\tselect(\"core\").getEntityRecord(\n\t\t\t\t\"taxonomy\",\n\t\t\t\t\"thematiques\",\n\t\t\t\tpostTaxonomies[0]\n\t\t\t),\n\t\t[postTaxonomies]\n\t);\n\tlet postParentTaxonomy = useSelect(\n\t\t(select) => {\n\t\t\tif (postMainTaxonomy && postMainTaxonomy.parent) {\n\t\t\t\treturn select(\"core\").getEntityRecord(\n\t\t\t\t\t\"taxonomy\",\n\t\t\t\t\t\"thematiques\",\n\t\t\t\t\tpostMainTaxonomy.parent\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\t[postMainTaxonomy]\n\t);\n\tlet currentGeneralThematique = postParentTaxonomy ?? postMainTaxonomy ?? null;\n\n\tlet thematiqueCover = useSelect(\n\t\t(select) => {\n\t\t\tif (\n\t\t\t\tcurrentGeneralThematique &&\n\t\t\t\tcurrentGeneralThematique.acf.taxonomy_pictures &&\n\t\t\t\tcurrentGeneralThematique.acf.taxonomy_pictures.illustration_xl\n\t\t\t) {\n\t\t\t\tlet thematiqueMediaId =\n\t\t\t\t\tcurrentGeneralThematique.acf.taxonomy_pictures.illustration_xl;\n\t\t\t\tconst media = select(coreStore).getMedia(thematiqueMediaId, {\n\t\t\t\t\tcontext: \"view\",\n\t\t\t\t});\n\t\t\t\treturn media;\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\t[currentGeneralThematique]\n\t);\n\n\tfunction updateCoverImg(thematiqueCoverDatas) {\n\t\tif (thematiqueCoverDatas && thematiqueCoverDatas.source_url !== coverUrl) {\n\t\t\tsetAttributes({\n\t\t\t\tcoverUrl: thematiqueCoverDatas.source_url,\n\t\t\t\tcoverAlt: thematiqueCoverDatas.alt_text,\n\t\t\t});\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(\n\t\t\t\"homegrade-content-blocks/focus-point-thematique\",\n\t\t\t{}\n\t\t);\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\tdispatch(\"core/block-editor\").selectBlock(\n\t\t\t\tcurrentBlockDatas.innerBlocks[index].clientId\n\t\t\t);\n\t\t}\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\tif (thematiqueCover && thematiqueCover.source_url) {\n\t\t\tupdateCoverImg(thematiqueCover);\n\t\t}\n\t}, [thematiqueCover]);\n\n\tuseEffect(() => {\n\t\tupdateFocusPointBullets();\n\t}, []);\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\n\n\t\t\t\n\t\t\t\t{coverUrl && (\n\t\t\t\t\t
\n\t\t\t\t\t\t{coverAlt}\n\t\t\t\t\t\t{renderedFocusPointBullets}\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\"Version texte des indications de l'illustration\",\n\t\t\t\t\t\t\"homegrade-blocks__texte-fonctionnel\"\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\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, RichText } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\nimport { createErrorNotice, removeNotice } from \"@wordpress/notices\";\nimport { useDispatch, useSelect } from \"@wordpress/data\";\nimport { store as noticesStore } from \"@wordpress/notices\";\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\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{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\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 { focusTitle, focusPosition, focusCaptionDescription, focusIndex } =\n\t\tattributes;\n\treturn (\n\t\t\n\t\t\t{/* \n\t\t\t{focusIndex}\n\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\n\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 { __ } from \"@wordpress/i18n\";\n\nimport chevronDown from \"./img/chevron_down.svg\";\nimport { Camera } from \"lucide-react\";\n\nimport { InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { coverUrl, coverId, coverAlt, focusBullets } = 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\"Version texte des indications de l'illustration\",\n\t\t\t\t\t\"homegrade-blocks__texte-fonctionnel\"\n\t\t\t\t)}\n\t\t\t\t{/* */}\n\t\t\t\t\"\"\n\t\t\t\n\t\t\t
\n\t\t\t\t
    \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[\"React\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"coreData\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"notices\"];","// 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","useEffect","createBlock","store","coreStore","useBlockProps","InspectorControls","withNotices","Button","PanelBody","InnerBlocks","ChevronDown","chevronDown","Edit","attributes","setAttributes","noticeOperations","noticeList","noticeUI","clientId","props","_ref","coverUrl","coverId","coverAlt","focusBullets","currentBlockDatas","select","getBlocksByClientId","children","innerBlocks","postTaxonomies","getCurrentPostAttribute","postMainTaxonomy","getEntityRecord","postParentTaxonomy","parent","currentGeneralThematique","thematiqueCover","acf","taxonomy_pictures","illustration_xl","thematiqueMediaId","media","getMedia","context","updateCoverImg","thematiqueCoverDatas","source_url","alt_text","passCoverUrlToChildren","forEach","child","updateBlockAttributes","passIndexToChildren","index","focusIndex","updateFocusPointBullets","map","title","focusTitle","x","focusPosition","y","insertFocusPointBlock","length","newBlock","insertBlocks","handleBulletClick","selectBlock","renderedFocusPointBullets","focusBullet","createElement","className","style","top","left","onClick","Fragment","variant","src","alt","allowedBlocks","RichText","createErrorNotice","removeNotice","useDispatch","noticesStore","FocalPointPicker","TextControl","TextareaControl","focusCaptionDescription","handleChangeFocusPosition","handleChangeTitle","handleChangeCaptionDescription","placeholder","label","value","onChange","rows","description","url","dimensions","width","height","focalPoint","registerBlockType","metadata","Save","name","icon","foreground","id","viewBox","xmlns","d","cx","cy","r","supports","edit","save","MediaPlaceholder","BlockControls","MediaReplaceFlow","Camera","Content"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;AAAA;AACA,sBAAsB,sEAAsE,gBAAgB,sBAAsB,OAAO,2BAA2B,0BAA0B,yDAAyD,iCAAiC,kBAAkB;AAC3Q;AAC/B;AACA,sBAAsB,gDAAmB;AACzC;AACA;AACA;AACA,GAAG,yCAAyC,gDAAmB;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AAC4C;AAC5C,iEAAe,oBAAoB,giBAAgiB;;;;;;;;;;;;;;;;;;;;;;;;;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A;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/img/chevron_down.svg","webpack://multiblocks/./src/edit.js","webpack://multiblocks/./src/focus-point-thematique/edit.js","webpack://multiblocks/./src/focus-point-thematique/index.js","webpack://multiblocks/./src/focus-point-thematique/save.js","webpack://multiblocks/./src/index.js","webpack://multiblocks/./src/save.js","webpack://multiblocks/./src/editor.scss","webpack://multiblocks/./src/focus-point-thematique/editor.scss","webpack://multiblocks/./src/focus-point-thematique/style.scss","webpack://multiblocks/./src/style.scss?75bd","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\",\"coreData\"]","webpack://multiblocks/external window [\"wp\",\"data\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"notices\"]","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":["var _path;\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nimport * as React from \"react\";\nvar SvgChevronDown = function SvgChevronDown(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n width: 10.037,\n height: 6.876\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n \"data-name\": \"Trac\\\\xE9 255\",\n d: \"m1.406 1.406 3.612 4.47 3.612-4.47\",\n fill: \"none\",\n stroke: \"#000\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n strokeWidth: 2\n })));\n};\nexport { SvgChevronDown as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMC4wMzciIGhlaWdodD0iNi44NzYiIHZpZXdCb3g9IjAgMCAxMC4wMzcgNi44NzYiPgogIDxnIGlkPSJmbGVjaGUtYmFzIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxLjQwNiAxLjQwNikiPgogICAgPHBhdGggaWQ9IlRyYWPDqV8yNTUiIGRhdGEtbmFtZT0iVHJhY8OpIDI1NSIgZD0iTTEwNC44MTgsNzcuMzY2bDQuNDctMy42MTItNC40Ny0zLjYxMiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNzcuMzY2IC0xMDQuODE4KSByb3RhdGUoOTApIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgPC9nPgo8L3N2Zz4K\";","import \"./editor.scss\";\nimport \"./focus-point-thematique\";\n\nimport { __ } from \"@wordpress/i18n\";\nimport { useSelect, dispatch } from \"@wordpress/data\";\nimport { useEffect } from \"@wordpress/element\";\nimport { createBlock } from \"@wordpress/blocks\";\nimport { store as coreStore } from \"@wordpress/core-data\";\n\nimport { useBlockProps, InspectorControls } from \"@wordpress/block-editor\";\nimport { withNotices, Button, PanelBody } from \"@wordpress/components\";\nimport { InnerBlocks } from \"@wordpress/block-editor\";\n\nimport { ChevronDown } from \"lucide-react\";\nimport chevronDown from \"./img/chevron_down.svg\";\nfunction Edit({\n\tattributes,\n\tsetAttributes,\n\tnoticeOperations,\n\tnoticeList,\n\tnoticeUI,\n\tclientId,\n\t...props\n}) {\n\tconst { coverUrl, coverId, coverAlt, focusBullets } = attributes;\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\tlet postTaxonomies = useSelect((select) =>\n\t\tselect(\"core/editor\").getCurrentPostAttribute(\"thematiques\")\n\t);\n\n\tlet postMainTaxonomy = useSelect(\n\t\t(select) =>\n\t\t\tselect(\"core\").getEntityRecord(\n\t\t\t\t\"taxonomy\",\n\t\t\t\t\"thematiques\",\n\t\t\t\tpostTaxonomies[0]\n\t\t\t),\n\t\t[postTaxonomies]\n\t);\n\tlet postParentTaxonomy = useSelect(\n\t\t(select) => {\n\t\t\tif (postMainTaxonomy && postMainTaxonomy.parent) {\n\t\t\t\treturn select(\"core\").getEntityRecord(\n\t\t\t\t\t\"taxonomy\",\n\t\t\t\t\t\"thematiques\",\n\t\t\t\t\tpostMainTaxonomy.parent\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\t[postMainTaxonomy]\n\t);\n\tlet currentGeneralThematique = postParentTaxonomy ?? postMainTaxonomy ?? null;\n\n\tlet thematiqueCover = useSelect(\n\t\t(select) => {\n\t\t\tif (\n\t\t\t\tcurrentGeneralThematique &&\n\t\t\t\tcurrentGeneralThematique.acf.taxonomy_pictures &&\n\t\t\t\tcurrentGeneralThematique.acf.taxonomy_pictures.illustration_xl\n\t\t\t) {\n\t\t\t\tlet thematiqueMediaId =\n\t\t\t\t\tcurrentGeneralThematique.acf.taxonomy_pictures.illustration_xl;\n\t\t\t\tconst media = select(coreStore).getMedia(thematiqueMediaId, {\n\t\t\t\t\tcontext: \"view\",\n\t\t\t\t});\n\t\t\t\treturn media;\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\t[currentGeneralThematique]\n\t);\n\n\tfunction updateCoverImg(thematiqueCoverDatas) {\n\t\tif (thematiqueCoverDatas && thematiqueCoverDatas.source_url !== coverUrl) {\n\t\t\tsetAttributes({\n\t\t\t\tcoverUrl: thematiqueCoverDatas.source_url,\n\t\t\t\tcoverAlt: thematiqueCoverDatas.alt_text,\n\t\t\t});\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(\n\t\t\t\"homegrade-content-blocks/focus-point-thematique\",\n\t\t\t{}\n\t\t);\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\tdispatch(\"core/block-editor\").selectBlock(\n\t\t\t\tcurrentBlockDatas.innerBlocks[index].clientId\n\t\t\t);\n\t\t}\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\tif (thematiqueCover && thematiqueCover.source_url) {\n\t\t\tupdateCoverImg(thematiqueCover);\n\t\t}\n\t}, [thematiqueCover]);\n\n\tuseEffect(() => {\n\t\tupdateFocusPointBullets();\n\t}, []);\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\n\n\t\t\t\n\t\t\t\t{coverUrl && (\n\t\t\t\t\t
\n\t\t\t\t\t\t{coverAlt}\n\t\t\t\t\t\t{renderedFocusPointBullets}\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\"Version texte des indications de l'illustration\",\n\t\t\t\t\t\t\"homegrade-blocks__texte-fonctionnel\"\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\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, RichText } from \"@wordpress/block-editor\";\nimport \"./editor.scss\";\nimport { InspectorControls } from \"@wordpress/block-editor\";\nimport { createErrorNotice, removeNotice } from \"@wordpress/notices\";\nimport { useDispatch, useSelect } from \"@wordpress/data\";\nimport { store as noticesStore } from \"@wordpress/notices\";\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\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{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\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 { focusTitle, focusPosition, focusCaptionDescription, focusIndex } =\n\t\tattributes;\n\treturn (\n\t\t\n\t\t\t{/* \n\t\t\t{focusIndex}\n\t\t */}\n\t\t\t{focusTitle}\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\n\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 { __ } from \"@wordpress/i18n\";\n\nimport chevronDown from \"./img/chevron_down.svg\";\nimport { Camera } from \"lucide-react\";\n\nimport { InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst { coverUrl, coverId, coverAlt, focusBullets } = 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\"Version texte des indications de l'illustration\",\n\t\t\t\t\t\"homegrade-blocks__texte-fonctionnel\"\n\t\t\t\t)}\n\t\t\t\t{/* */}\n\t\t\t\t\"\"\n\t\t\t\n\t\t\t
\n\t\t\t\t
    \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[\"React\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"coreData\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"notices\"];","// 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","useEffect","createBlock","store","coreStore","useBlockProps","InspectorControls","withNotices","Button","PanelBody","InnerBlocks","ChevronDown","chevronDown","Edit","attributes","setAttributes","noticeOperations","noticeList","noticeUI","clientId","props","_ref","coverUrl","coverId","coverAlt","focusBullets","currentBlockDatas","select","getBlocksByClientId","children","innerBlocks","postTaxonomies","getCurrentPostAttribute","postMainTaxonomy","getEntityRecord","postParentTaxonomy","parent","currentGeneralThematique","thematiqueCover","acf","taxonomy_pictures","illustration_xl","thematiqueMediaId","media","getMedia","context","updateCoverImg","thematiqueCoverDatas","source_url","alt_text","passCoverUrlToChildren","forEach","child","updateBlockAttributes","passIndexToChildren","index","focusIndex","updateFocusPointBullets","map","title","focusTitle","x","focusPosition","y","insertFocusPointBlock","length","newBlock","insertBlocks","handleBulletClick","selectBlock","renderedFocusPointBullets","focusBullet","createElement","className","style","top","left","onClick","Fragment","variant","src","alt","allowedBlocks","RichText","createErrorNotice","removeNotice","useDispatch","noticesStore","FocalPointPicker","TextControl","TextareaControl","focusCaptionDescription","handleChangeFocusPosition","handleChangeTitle","handleChangeCaptionDescription","placeholder","label","value","onChange","rows","description","url","dimensions","width","height","focalPoint","registerBlockType","metadata","Save","name","icon","foreground","id","viewBox","xmlns","d","cx","cy","r","supports","edit","save","MediaPlaceholder","BlockControls","MediaReplaceFlow","Camera","Content"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/focused-thematique/build/style-index.css b/blocks/focused-thematique/build/style-index.css index af8e342..7862c88 100644 --- a/blocks/focused-thematique/build/style-index.css +++ b/blocks/focused-thematique/build/style-index.css @@ -1,18 +1,21 @@ /*!***************************************************************************************************************************************************************************************************************************************!*\ !*** 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 ***! \***************************************************************************************************************************************************************************************************************************************/ -.homegrade-blocks-focused-thematique-cover figure { - position: relative; -} - .homegrade-blocks-focused-thematique { padding-bottom: 100px; } .homegrade-blocks-focused-thematique figure { padding-bottom: 50px; + position: relative; +} +.homegrade-blocks-focused-thematique figcaption { + padding-top: 20px; +} +.homegrade-blocks-focused-thematique figcaption .focus-point-title { + font-weight: bold; + margin-right: 10px; } .homegrade-blocks-focused-thematique__figcaption-toggle { - opacity: 0.9999; font-weight: bold; display: flex; align-items: center; @@ -32,14 +35,14 @@ display: none; height: 0; } - -.homegrade-blocks-focus-point-bullet { +.homegrade-blocks-focused-thematique .homegrade-blocks-focus-point-bullet { position: absolute !important; border-radius: 50%; transition: scale 0.2s ease-in-out; - z-index: 10; + z-index: 1; + transform: translateX(-50%); } -.homegrade-blocks-focus-point-bullet__index { +.homegrade-blocks-focused-thematique .homegrade-blocks-focus-point-bullet__index { font-weight: 700; width: 20px; height: 20px; @@ -52,15 +55,23 @@ align-items: center; padding: 16px; } -.homegrade-blocks-focus-point-bullet__tooltip-container { +.homegrade-blocks-focused-thematique .homegrade-blocks-focus-point-bullet:hover { + scale: 1.2; + filter: brightness(1.2) hue-rotate(10deg); + z-index: 1; +} +.homegrade-blocks-focused-thematique .homegrade-blocks-focus-point-bullet:hover + .homegrade-blocks-focus-point-bullet__tooltip-container { + display: flex; +} +.homegrade-blocks-focused-thematique .homegrade-blocks-focus-point-bullet__tooltip-container { + z-index: 999; + position: absolute; + left: 44%; + top: 25%; + transform: translate(-50%, -100%); background-color: white; - opacity: 0.9999; border-radius: 14px; padding: 10px; - position: absolute; - top: -4px; - left: 50%; - transform: translate(-50%, -100%); width: -moz-max-content; width: max-content; min-width: 70px; @@ -70,9 +81,8 @@ justify-content: center; align-items: center; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); - z-index: 999; } -.homegrade-blocks-focus-point-bullet__tooltip-container:after { +.homegrade-blocks-focused-thematique .homegrade-blocks-focus-point-bullet__tooltip-container:after { content: ""; display: block; background-color: white; @@ -85,20 +95,8 @@ box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.04); z-index: 999; } -.homegrade-blocks-focus-point-bullet__tooltip-container__title { - width: auto; - min-width: 100px; -} - -.homegrade-blocks-focus-point-bullet:hover { - scale: 1.2; - filter: brightness(1.2) hue-rotate(10deg); - z-index: 1; -} -.homegrade-blocks-focus-point-bullet:hover .homegrade-blocks-focus-point-bullet__tooltip-container { +.homegrade-blocks-focused-thematique .homegrade-blocks-focus-point-bullet__tooltip-container:hover { display: flex; - z-index: 999; - position: absolute; } .tooltip-title { diff --git a/blocks/focused-thematique/build/style-index.css.map b/blocks/focused-thematique/build/style-index.css.map index 8532657..d34e6de 100644 --- a/blocks/focused-thematique/build/style-index.css.map +++ b/blocks/focused-thematique/build/style-index.css.map @@ -1 +1 @@ -{"version":3,"file":"./style-index.css","mappings":";;;AACC;EACC;AAAF;;AAIA;EACC;AADD;AAEC;EACC;AAAF;AAEC;EACC;EACA;EACA;EACA;AAAF;AACE;EACC;EACA;EACA;EACA;EACA;EACA;AACH;AACE;EACC;AACH;AAEC;EACC;EACA;AAAF;;AAoEA;EACC;EACA;EACA;EACA;AAjED;AAkEC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAhEF;AAmEC;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAjEF;AAmEE;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAjEH;AAmEE;EACC;EACA;AAjEH;;AA2EA;EACC;EACA;EACA;AAxED;AA6EC;EACC;EACA;EACA;AA3EF;;AAiFA;EACC;EACA;AA9ED,C","sources":["webpack://multiblocks/./src/style.scss"],"sourcesContent":[".homegrade-blocks-focused-thematique-cover {\n\tfigure {\n\t\tposition: relative;\n\t}\n}\n\n.homegrade-blocks-focused-thematique {\n\tpadding-bottom: 100px;\n\tfigure {\n\t\tpadding-bottom: 50px;\n\t}\n\t&__figcaption-toggle {\n\t\topacity: 0.9999;\n\t\tfont-weight: bold;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\timg {\n\t\t\theight: 8px;\n\t\t\twidth: auto;\n\t\t\tmargin-top: 2px;\n\t\t\tmargin-left: 10px;\n\t\t\ttransition: all 0.3s ease-out;\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\t\t&[aria-expanded=\"true\"] img {\n\t\t\ttransform: rotate(-180deg);\n\t\t}\n\t}\n\tfigcaption[aria-hidden=\"true\"] {\n\t\tdisplay: none;\n\t\theight: 0;\n\t}\n}\n// .homegrade-blocks-focus-point-bullet:hover {\n// \tscale: 1.2;\n// \tfilter: brightness(1.2) hue-rotate(10deg);\n// }\n// .homegrade-blocks-focus-point-bullet {\n// \tbackground-color: red;\n// \tborder-radius: 50%;\n// \t// width: 6px;\n// \t// height: 6px;\n// \tposition: absolute !important;\n// \ttop: 0;\n// \tleft: 0;\n// \tz-index: 99;\n// \tcolor: white;\n// \tdisplay: flex;\n// \tjustify-content: center;\n// \talign-items: center;\n// \tpadding: 10px;\n// \ttransition: scale 0.2s ease-in-out;\n// \t&:after {\n// \t\tposition: absolute;\n// \t\tcontent: \"\";\n// \t\tdisplay: block;\n// \t\twidth: 100%;\n// \t\theight: 100%;\n// \t\tborder-radius: 50%;\n// \t\tbackground-color: red;\n// \t\topacity: 0.2;\n// \t\twidth: 200%;\n// \t\theight: 200%;\n// \t}\n// }\n// .focus-point-popup-container {\n// \tbackground-color: white;\n// \tborder-radius: 14px;\n// \tpadding: 10px;\n// \ttransform: translate(-34%, -110%);\n// \tposition: absolute;\n// \ttop: 0;\n// \tleft: 0;\n// \tmax-width: 400px;\n// \ttext-align: center;\n// \tdisplay: flex;\n// \tjustify-content: center;\n// \talign-items: center;\n// \tbox-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n\n// \t&:after {\n// \t\tcontent: \"\";\n// \t\tdisplay: block;\n// \t\tbackground-color: white;\n// \t\tposition: absolute;\n// \t\ttop: 100%;\n// \t\tleft: 50%;\n// \t\twidth: 10px;\n// \t\theight: 10px;\n// \t\ttransform: translate(-50%, -50%) rotate(45deg);\n// \t\tbox-shadow: 4px 4px 4px rgba(0, 0, 0, 0.04);\n// \t}\n// \t&__title {\n// \t\twidth: auto;\n// \t\tmin-width: 100px;\n// \t}\n// }\n\n.homegrade-blocks-focus-point-bullet {\n\tposition: absolute !important;\n\tborder-radius: 50%;\n\ttransition: scale 0.2s ease-in-out;\n\tz-index: 10;\n\t&__index {\n\t\tfont-weight: 700;\n\t\twidth: 20px;\n\t\theight: 20px;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tposition: relative;\n\t\tcolor: white;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tpadding: 16px;\n\t}\n\n\t&__tooltip-container {\n\t\tbackground-color: white;\n\t\topacity: 0.9999;\n\t\tborder-radius: 14px;\n\t\tpadding: 10px;\n\t\tposition: absolute;\n\t\ttop: -4px;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -100%);\n\t\twidth: max-content;\n\t\tmin-width: 70px;\n\t\tmax-width: 220px;\n\t\ttext-align: center;\n\t\tdisplay: none;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tbox-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n\t\tz-index: 999;\n\n\t\t&:after {\n\t\t\tcontent: \"\";\n\t\t\tdisplay: block;\n\t\t\tbackground-color: white;\n\t\t\tposition: absolute;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\twidth: 10px;\n\t\t\theight: 10px;\n\t\t\ttransform: translate(-50%, -50%) rotate(45deg);\n\t\t\tbox-shadow: 4px 4px 4px rgba(0, 0, 0, 0.04);\n\t\t\tz-index: 999;\n\t\t}\n\t\t&__title {\n\t\t\twidth: auto;\n\t\t\tmin-width: 100px;\n\t\t}\n\t}\n}\n// .homegrade-blocks-focus-point-bullet:hover {\n// \t.homegrade-blocks-focus-point-bullet__tooltip-container:not(:hover) {\n// \t\tbackground-color: yellow !important;\n// \t}\n// }\n\n.homegrade-blocks-focus-point-bullet:hover {\n\tscale: 1.2;\n\tfilter: brightness(1.2) hue-rotate(10deg);\n\tz-index: 1;\n\t// ~ .homegrade-blocks-focus-point-bullet {\n\t// \t// background-color: yellow !important;\n\t// \tz-index: 1;\n\t// }\n\t.homegrade-blocks-focus-point-bullet__tooltip-container {\n\t\tdisplay: flex;\n\t\tz-index: 999;\n\t\tposition: absolute;\n\t}\n}\n\n//***** TOOLTIP\n\n.tooltip-title {\n\tfont-weight: bold;\n\tmargin-right: 6px;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"./style-index.css","mappings":";;;AAAA;EACC;AACD;AAAC;EACC;EACA;AAEF;AAAC;EACC;AAEF;AADE;EACC;EACA;AAGH;AAAC;EACC;EACA;EACA;AAEF;AADE;EACC;EACA;EACA;EACA;EACA;EACA;AAGH;AADE;EACC;AAGH;AAAC;EACC;EACA;AAEF;AACC;EACC;EACA;EACA;EACA;EACA;AACF;AACE;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACH;AAGC;EACC;EACA;EACA;AADF;AAGE;EAEC;AAFH;AAeC;EACC;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EAEA;EAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAfF;AAiBE;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAfH;AAwBC;EACC;AAtBF;;AA4BA;EACC;EACA;AAzBD,C","sources":["webpack://multiblocks/./src/style.scss"],"sourcesContent":[".homegrade-blocks-focused-thematique {\n\tpadding-bottom: 100px;\n\tfigure {\n\t\tpadding-bottom: 50px;\n\t\tposition: relative;\n\t}\n\tfigcaption {\n\t\tpadding-top: 20px;\n\t\t.focus-point-title {\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 10px;\n\t\t}\n\t}\n\t&__figcaption-toggle {\n\t\tfont-weight: bold;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\timg {\n\t\t\theight: 8px;\n\t\t\twidth: auto;\n\t\t\tmargin-top: 2px;\n\t\t\tmargin-left: 10px;\n\t\t\ttransition: all 0.3s ease-out;\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\t\t&[aria-expanded=\"true\"] img {\n\t\t\ttransform: rotate(-180deg);\n\t\t}\n\t}\n\tfigcaption[aria-hidden=\"true\"] {\n\t\tdisplay: none;\n\t\theight: 0;\n\t}\n\n\t.homegrade-blocks-focus-point-bullet {\n\t\tposition: absolute !important;\n\t\tborder-radius: 50%;\n\t\ttransition: scale 0.2s ease-in-out;\n\t\tz-index: 1;\n\t\ttransform: translateX(-50%);\n\n\t\t&__index {\n\t\t\tfont-weight: 700;\n\t\t\twidth: 20px;\n\t\t\theight: 20px;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tposition: relative;\n\t\t\tcolor: white;\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tpadding: 16px;\n\t\t}\n\t}\n\n\t.homegrade-blocks-focus-point-bullet:hover {\n\t\tscale: 1.2;\n\t\tfilter: brightness(1.2) hue-rotate(10deg);\n\t\tz-index: 1;\n\n\t\t& + .homegrade-blocks-focus-point-bullet__tooltip-container {\n\t\t\t// background-color: red;\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t// ~ .homegrade-blocks-focus-point-bullet {\n\t\t// \t// background-color: yellow !important;\n\t\t// \tz-index: 1;\n\t\t// }\n\t\t// .homegrade-blocks-focus-point-bullet__tooltip-container {\n\t\t// \tdisplay: flex;\n\t\t// \tz-index: 999;\n\t\t// \tposition: absolute;\n\t\t// }\n\t}\n\t.homegrade-blocks-focus-point-bullet__tooltip-container {\n\t\tz-index: 999;\n\t\tposition: absolute;\n\t\tleft: calc(44%);\n\t\ttop: 25%;\n\t\ttransform: translate(-50%, calc(-100%));\n\n\t\tbackground-color: white;\n\t\tborder-radius: 14px;\n\t\tpadding: 10px;\n\n\t\twidth: max-content;\n\t\tmin-width: 70px;\n\t\tmax-width: 220px;\n\t\ttext-align: center;\n\t\tdisplay: none;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tbox-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);\n\n\t\t&:after {\n\t\t\tcontent: \"\";\n\t\t\tdisplay: block;\n\t\t\tbackground-color: white;\n\t\t\tposition: absolute;\n\t\t\ttop: 100%;\n\t\t\tleft: 50%;\n\t\t\twidth: 10px;\n\t\t\theight: 10px;\n\t\t\ttransform: translate(-50%, -50%) rotate(45deg);\n\t\t\tbox-shadow: 4px 4px 4px rgba(0, 0, 0, 0.04);\n\t\t\tz-index: 999;\n\t\t}\n\t\t// &__tooltip-container {\n\t\t// \t&__title {\n\t\t// \t\twidth: auto;\n\t\t// \t\tmin-width: 100px;\n\t\t// \t}\n\t\t// }\n\t}\n\t.homegrade-blocks-focus-point-bullet__tooltip-container:hover {\n\t\tdisplay: flex;\n\t}\n}\n\n//***** TOOLTIP\n\n.tooltip-title {\n\tfont-weight: bold;\n\tmargin-right: 6px;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/focused-thematique/src/editor.scss b/blocks/focused-thematique/src/editor.scss index f039ae5..cc74b93 100644 --- a/blocks/focused-thematique/src/editor.scss +++ b/blocks/focused-thematique/src/editor.scss @@ -1,29 +1,14 @@ -/** - * The following styles get applied inside the editor only. - * - * Replace them with your own styles or remove the file completely. - */ -.homegrade-blocks-focused-thematique-cover { - .block-editor-block-list__layout, - .block-editor-block-list__block { - position: unset; - } -} -.wpblock-cover-container { - position: relative; - &.is-loading { - .components-spinner { - position: absolute; - left: 50%; - right: 50%; - bottom: 0; - top: 0; - margin: auto; - } - img { - opacity: 10%; - } - } +.homegrade-blocks-focus-point-bullet-panel-preview { + width: 40px; + height: 40px; + background: red; + color: white; + border-radius: 50%; + display: flex; + justify-content: center; + align-items: center; + font-weight: 800; + margin-bottom: 10px; } .homegrade-blocks-focus-point { diff --git a/blocks/focused-thematique/src/focus-point-thematique/edit.js b/blocks/focused-thematique/src/focus-point-thematique/edit.js index 68c8f8f..aff22d4 100644 --- a/blocks/focused-thematique/src/focus-point-thematique/edit.js +++ b/blocks/focused-thematique/src/focus-point-thematique/edit.js @@ -43,7 +43,7 @@ export default function Edit({ className="focus-point-modification-pannel" title="Gestion du points de focus" > -
+
{focusIndex}
+ {focusTitle} {focusCaptionDescription} diff --git a/blocks/focused-thematique/src/focus-point-thematique/save.js b/blocks/focused-thematique/src/focus-point-thematique/save.js index 47089de..d46da6f 100644 --- a/blocks/focused-thematique/src/focus-point-thematique/save.js +++ b/blocks/focused-thematique/src/focus-point-thematique/save.js @@ -21,6 +21,7 @@ export default function save({ attributes }) { > {focusIndex}
*/} + {focusTitle} {focusCaptionDescription} ); diff --git a/blocks/focused-thematique/src/save.js b/blocks/focused-thematique/src/save.js index 7b92927..73e0153 100644 --- a/blocks/focused-thematique/src/save.js +++ b/blocks/focused-thematique/src/save.js @@ -23,6 +23,8 @@ export default function save({ attributes }) { top: `${focusBullet.y * 100}%`, left: `${focusBullet.x * 100}%`, }} + data-postion-x={focusBullet.x * 100} + data-postion-y={focusBullet.y * 100} > {index + 1} diff --git a/blocks/focused-thematique/src/style.scss b/blocks/focused-thematique/src/style.scss index cfcef7d..31ecddd 100644 --- a/blocks/focused-thematique/src/style.scss +++ b/blocks/focused-thematique/src/style.scss @@ -1,16 +1,17 @@ -.homegrade-blocks-focused-thematique-cover { - figure { - position: relative; - } -} - .homegrade-blocks-focused-thematique { padding-bottom: 100px; figure { padding-bottom: 50px; + position: relative; + } + figcaption { + padding-top: 20px; + .focus-point-title { + font-weight: bold; + margin-right: 10px; + } } &__figcaption-toggle { - opacity: 0.9999; font-weight: bold; display: flex; align-items: center; @@ -30,100 +31,60 @@ display: none; height: 0; } -} -// .homegrade-blocks-focus-point-bullet:hover { -// scale: 1.2; -// filter: brightness(1.2) hue-rotate(10deg); -// } -// .homegrade-blocks-focus-point-bullet { -// background-color: red; -// border-radius: 50%; -// // width: 6px; -// // height: 6px; -// position: absolute !important; -// top: 0; -// left: 0; -// z-index: 99; -// color: white; -// display: flex; -// justify-content: center; -// align-items: center; -// padding: 10px; -// transition: scale 0.2s ease-in-out; -// &:after { -// position: absolute; -// content: ""; -// display: block; -// width: 100%; -// height: 100%; -// border-radius: 50%; -// background-color: red; -// opacity: 0.2; -// width: 200%; -// height: 200%; -// } -// } -// .focus-point-popup-container { -// background-color: white; -// border-radius: 14px; -// padding: 10px; -// transform: translate(-34%, -110%); -// position: absolute; -// top: 0; -// left: 0; -// max-width: 400px; -// text-align: center; -// display: flex; -// justify-content: center; -// align-items: center; -// box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); -// &:after { -// content: ""; -// display: block; -// background-color: white; -// position: absolute; -// top: 100%; -// left: 50%; -// width: 10px; -// height: 10px; -// transform: translate(-50%, -50%) rotate(45deg); -// box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.04); -// } -// &__title { -// width: auto; -// min-width: 100px; -// } -// } + .homegrade-blocks-focus-point-bullet { + position: absolute !important; + border-radius: 50%; + transition: scale 0.2s ease-in-out; + z-index: 1; + transform: translateX(-50%); -.homegrade-blocks-focus-point-bullet { - position: absolute !important; - border-radius: 50%; - transition: scale 0.2s ease-in-out; - z-index: 10; - &__index { - font-weight: 700; - width: 20px; - height: 20px; - top: 0; - left: 0; - position: relative; - color: white; - display: flex; - justify-content: center; - align-items: center; - padding: 16px; + &__index { + font-weight: 700; + width: 20px; + height: 20px; + top: 0; + left: 0; + position: relative; + color: white; + display: flex; + justify-content: center; + align-items: center; + padding: 16px; + } } - &__tooltip-container { + .homegrade-blocks-focus-point-bullet:hover { + scale: 1.2; + filter: brightness(1.2) hue-rotate(10deg); + z-index: 1; + + & + .homegrade-blocks-focus-point-bullet__tooltip-container { + // background-color: red; + display: flex; + } + + // ~ .homegrade-blocks-focus-point-bullet { + // // background-color: yellow !important; + // z-index: 1; + // } + // .homegrade-blocks-focus-point-bullet__tooltip-container { + // display: flex; + // z-index: 999; + // position: absolute; + // } + } + .homegrade-blocks-focus-point-bullet__tooltip-container { + z-index: 999; + position: absolute; + left: calc(44%); + top: 25%; + transform: translate(-50%, calc(-100%)); + background-color: white; - opacity: 0.9999; border-radius: 14px; padding: 10px; - position: absolute; - top: -4px; - left: 50%; - transform: translate(-50%, -100%); + width: max-content; min-width: 70px; max-width: 220px; @@ -132,7 +93,6 @@ justify-content: center; align-items: center; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); - z-index: 999; &:after { content: ""; @@ -147,30 +107,15 @@ box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.04); z-index: 999; } - &__title { - width: auto; - min-width: 100px; - } + // &__tooltip-container { + // &__title { + // width: auto; + // min-width: 100px; + // } + // } } -} -// .homegrade-blocks-focus-point-bullet:hover { -// .homegrade-blocks-focus-point-bullet__tooltip-container:not(:hover) { -// background-color: yellow !important; -// } -// } - -.homegrade-blocks-focus-point-bullet:hover { - scale: 1.2; - filter: brightness(1.2) hue-rotate(10deg); - z-index: 1; - // ~ .homegrade-blocks-focus-point-bullet { - // // background-color: yellow !important; - // z-index: 1; - // } - .homegrade-blocks-focus-point-bullet__tooltip-container { + .homegrade-blocks-focus-point-bullet__tooltip-container:hover { display: flex; - z-index: 999; - position: absolute; } }