From 561d77080b750c3bdf56bbe73fa0b77f8f791cff Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 8 Apr 2024 14:40:33 +0200 Subject: [PATCH] handling block heading level and removing unecessary steps container --- blocks/timeline/build/block.json | 4 + blocks/timeline/build/index.asset.php | 2 +- blocks/timeline/build/index.js | 214 ++++++++++- blocks/timeline/build/index.js.map | 2 +- .../timeline/build/steps-container/block.json | 15 - .../build/steps-container/index.asset.php | 1 - .../timeline/build/steps-container/index.css | 4 - .../timeline/build/steps-container/index.js | 357 ------------------ .../build/steps-container/index.js.map | 1 - .../build/steps-container/style-index.css | 4 - blocks/timeline/src/block.json | 4 + blocks/timeline/src/edit.js | 64 +++- blocks/timeline/src/save.js | 5 +- .../timeline/src/steps-container/block.json | 15 - blocks/timeline/src/steps-container/edit.js | 23 -- .../timeline/src/steps-container/editor.scss | 1 - blocks/timeline/src/steps-container/index.js | 28 -- blocks/timeline/src/steps-container/save.js | 13 - .../timeline/src/steps-container/style.scss | 1 - 19 files changed, 276 insertions(+), 482 deletions(-) delete mode 100644 blocks/timeline/build/steps-container/block.json delete mode 100644 blocks/timeline/build/steps-container/index.asset.php delete mode 100644 blocks/timeline/build/steps-container/index.css delete mode 100644 blocks/timeline/build/steps-container/index.js delete mode 100644 blocks/timeline/build/steps-container/index.js.map delete mode 100644 blocks/timeline/build/steps-container/style-index.css delete mode 100644 blocks/timeline/src/steps-container/block.json delete mode 100644 blocks/timeline/src/steps-container/edit.js delete mode 100644 blocks/timeline/src/steps-container/editor.scss delete mode 100644 blocks/timeline/src/steps-container/index.js delete mode 100644 blocks/timeline/src/steps-container/save.js delete mode 100644 blocks/timeline/src/steps-container/style.scss diff --git a/blocks/timeline/build/block.json b/blocks/timeline/build/block.json index abafb00..81624ce 100644 --- a/blocks/timeline/build/block.json +++ b/blocks/timeline/build/block.json @@ -25,6 +25,10 @@ "blockSubtitle": { "type": "string" }, + "headingLevel": { + "type": "string", + "default": "h3" + }, "hasLateralCover": { "type": "boolean", "default": false diff --git a/blocks/timeline/build/index.asset.php b/blocks/timeline/build/index.asset.php index 36c2c0c..01a5a61 100644 --- a/blocks/timeline/build/index.asset.php +++ b/blocks/timeline/build/index.asset.php @@ -1 +1 @@ - array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'c6bad6c3aedf0b4c6ed2'); + array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '2333c23aa22426624bb5'); diff --git a/blocks/timeline/build/index.js b/blocks/timeline/build/index.js index 98ee74d..441d010 100644 --- a/blocks/timeline/build/index.js +++ b/blocks/timeline/build/index.js @@ -27,11 +27,15 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/icons */ "../../node_modules/@wordpress/icons/build-module/library/trash.js"); +/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/icons */ "../../node_modules/@wordpress/icons/build-module/library/heading-level-1.js"); +/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/icons */ "../../node_modules/@wordpress/icons/build-module/library/heading-level-2.js"); +/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/icons */ "../../node_modules/@wordpress/icons/build-module/library/heading-level-3.js"); +/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/icons */ "../../node_modules/@wordpress/icons/build-module/library/heading-level-4.js"); +/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/icons */ "../../node_modules/@wordpress/icons/build-module/library/heading-level-5.js"); -// import "./steps-container"; @@ -55,7 +59,8 @@ function Edit({ lateralCoverCaption, blockTitle, blockSubtitle, - hasTitle + hasTitle, + headingLevel } = attributes; let children = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_6__.useSelect)(select => select("core/block-editor").getBlocksByClientId(clientId)[0].innerBlocks); function onChangeBlockTitle(blockTitle) { @@ -68,6 +73,11 @@ function Edit({ blockSubtitle }); } + function onChangeHeadingLevel(newHeadingLevel) { + setAttributes({ + headingLevel: newHeadingLevel + }); + } function onChangeImagesDispositionType(disposition) { if (disposition === "hasStepPictures") { setAttributes({ @@ -205,7 +215,37 @@ function Edit({ icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_8__["default"], label: "Supprimer", onClick: removeLateralCoverAttributes - }))))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", { + }))))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.BlockControls, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarGroup, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarButton, { + isActive: headingLevel === "h1", + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__["default"], + onClick: () => { + onChangeHeadingLevel("h1"); + } + }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarButton, { + isActive: headingLevel === "h2", + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__["default"], + onClick: () => { + onChangeHeadingLevel("h2"); + } + }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarButton, { + isActive: headingLevel === "h3", + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_11__["default"], + onClick: () => { + onChangeHeadingLevel("h3"); + } + }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarButton, { + isActive: headingLevel === "h4", + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_12__["default"], + onClick: () => { + onChangeHeadingLevel("h4"); + } + }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_7__.ToolbarButton, { + isActive: headingLevel === "h5", + icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_13__["default"], + onClick: () => { + onChangeHeadingLevel("h5"); + } + }))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", { ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.useBlockProps)({ className: `homegrade-blocks-timeline ${hasStepIcons ? "homegrade-blocks-timeline--has-step-icons" : ""} ${hasLateralCover ? "homegrade-blocks-timeline--has-lateral-cover" : ""}` @@ -214,13 +254,13 @@ function Edit({ className: "section_titling section_titling--center" }, hasTitle && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.RichText, { value: blockTitle, - tagName: "h3", + tagName: headingLevel, className: "section_titling__title", placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter ici le Titre de la liste de membres", "homegrade"), onChange: onChangeBlockTitle }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.RichText, { value: blockSubtitle, - tagName: "h4", + tagName: "p", className: "section_titling__subtitle", placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter ici le Sous-titre de la liste de membres", "homegrade"), onChange: onChangeBlockSubtitle @@ -334,7 +374,8 @@ function save({ lateralCoverUrl, lateralCoverAlt, lateralCoverCaption, - lateralCoverDescription + lateralCoverDescription, + headingLevel } = attributes; return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", { ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({ @@ -345,11 +386,11 @@ function save({ className: "section_titling section_titling--center" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, { value: blockTitle, - tagName: "h3", + tagName: headingLevel, className: "section_titling__title" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, { value: blockSubtitle, - tagName: "h4", + tagName: "p", className: "section_titling__subtitle" })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "homegrade-blocks-timeline__container" @@ -742,6 +783,161 @@ __webpack_require__.r(__webpack_exports__); // extracted by mini-css-extract-plugin +/***/ }), + +/***/ "../../node_modules/@wordpress/icons/build-module/library/heading-level-1.js": +/*!***********************************************************************************!*\ + !*** ../../node_modules/@wordpress/icons/build-module/library/heading-level-1.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +const headingLevel1 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { + d: "M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z" +})); +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (headingLevel1); +//# sourceMappingURL=heading-level-1.js.map + +/***/ }), + +/***/ "../../node_modules/@wordpress/icons/build-module/library/heading-level-2.js": +/*!***********************************************************************************!*\ + !*** ../../node_modules/@wordpress/icons/build-module/library/heading-level-2.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +const headingLevel2 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { + d: "M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z" +})); +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (headingLevel2); +//# sourceMappingURL=heading-level-2.js.map + +/***/ }), + +/***/ "../../node_modules/@wordpress/icons/build-module/library/heading-level-3.js": +/*!***********************************************************************************!*\ + !*** ../../node_modules/@wordpress/icons/build-module/library/heading-level-3.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +const headingLevel3 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { + d: "M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z" +})); +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (headingLevel3); +//# sourceMappingURL=heading-level-3.js.map + +/***/ }), + +/***/ "../../node_modules/@wordpress/icons/build-module/library/heading-level-4.js": +/*!***********************************************************************************!*\ + !*** ../../node_modules/@wordpress/icons/build-module/library/heading-level-4.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +const headingLevel4 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { + d: "M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z" +})); +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (headingLevel4); +//# sourceMappingURL=heading-level-4.js.map + +/***/ }), + +/***/ "../../node_modules/@wordpress/icons/build-module/library/heading-level-5.js": +/*!***********************************************************************************!*\ + !*** ../../node_modules/@wordpress/icons/build-module/library/heading-level-5.js ***! + \***********************************************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); +/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); + + +/** + * WordPress dependencies + */ + +const headingLevel5 = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 24 24" +}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { + d: "M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z" +})); +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (headingLevel5); +//# sourceMappingURL=heading-level-5.js.map + /***/ }), /***/ "../../node_modules/@wordpress/icons/build-module/library/trash.js": @@ -861,7 +1057,7 @@ module.exports = window["wp"]["primitives"]; \************************/ /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/timeline","version":"0.1.0","title":"Timeline","category":"homegrade-blocks","description":"Pour la création de timeline","supports":{"html":false,"anchor":true},"textdomain":"homegrade-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"hasTitle":{"type":"boolean","default":true},"blockTitle":{"type":"string"},"blockSubtitle":{"type":"string"},"hasLateralCover":{"type":"boolean","default":false},"lateralCoverId":{"type":"number"},"lateralCoverUrl":{"type":"string"},"lateralCoverAlt":{"type":"string"},"lateralCoverCaption":{"type":"string"},"lateralCoverDescription":{"type":"string"},"hasStepPictures":{"type":"boolean","default":true},"hasStepIcons":{"type":"boolean","default":true},"lateralPicturesFormat":{"type":"string","default":"md"}}}'); +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/timeline","version":"0.1.0","title":"Timeline","category":"homegrade-blocks","description":"Pour la création de timeline","supports":{"html":false,"anchor":true},"textdomain":"homegrade-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"hasTitle":{"type":"boolean","default":true},"blockTitle":{"type":"string"},"blockSubtitle":{"type":"string"},"headingLevel":{"type":"string","default":"h3"},"hasLateralCover":{"type":"boolean","default":false},"lateralCoverId":{"type":"number"},"lateralCoverUrl":{"type":"string"},"lateralCoverAlt":{"type":"string"},"lateralCoverCaption":{"type":"string"},"lateralCoverDescription":{"type":"string"},"hasStepPictures":{"type":"boolean","default":true},"hasStepIcons":{"type":"boolean","default":true},"lateralPicturesFormat":{"type":"string","default":"md"}}}'); /***/ }), diff --git a/blocks/timeline/build/index.js.map b/blocks/timeline/build/index.js.map index 452b5f8..07ae482 100644 --- a/blocks/timeline/build/index.js.map +++ b/blocks/timeline/build/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACd;AACE;AACzB;;AASiC;AAEc;AACO;AASvB;AACU;AAE1B,SAASoB,IAAIA,CAAC;EAAEC,UAAU;EAAEC,aAAa;EAAEC;AAAS,CAAC,EAAE;EACrE,IAAI;IACHC,eAAe;IACfC,qBAAqB;IACrBC,YAAY;IACZC,eAAe;IACfC,cAAc;IACdC,eAAe;IACfC,eAAe;IACfC,uBAAuB;IACvBC,mBAAmB;IACnBC,UAAU;IACVC,aAAa;IACbC;EACD,CAAC,GAAGd,UAAU;EAEd,IAAIe,QAAQ,GAAG5B,0DAAS,CACtB6B,MAAM,IACNA,MAAM,CAAC,mBAAmB,CAAC,CAACC,mBAAmB,CAACf,QAAQ,CAAC,CAAC,CAAC,CAAC,CAACgB,WAC/D,CAAC;EAED,SAASC,kBAAkBA,CAACP,UAAU,EAAE;IACvCX,aAAa,CAAC;MAAEW;IAAW,CAAC,CAAC;EAC9B;EACA,SAASQ,qBAAqBA,CAACP,aAAa,EAAE;IAC7CZ,aAAa,CAAC;MAAEY;IAAc,CAAC,CAAC;EACjC;EAEA,SAASQ,6BAA6BA,CAACC,WAAW,EAAE;IACnD,IAAIA,WA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mD;;AAEnD;AACA;AACA;AACkD;AAClD,cAAc,iEAAa,CAAC,sDAAG;AAC/B;AACA;AACA,CAAC,EAAE,iEAAa,CAAC,uDAAI;AACrB;AACA,CAAC;AACD,iEAAe,KAAK,EAAC;AACrB;;;;;;;;;;ACbA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/edit.js","webpack://multiblocks/./src/index.js","webpack://multiblocks/./src/save.js","webpack://multiblocks/./src/timeline-step/edit.js","webpack://multiblocks/./src/timeline-step/index.js","webpack://multiblocks/./src/timeline-step/save.js","webpack://multiblocks/./src/editor.scss?d446","webpack://multiblocks/./src/style.scss","webpack://multiblocks/./src/timeline-step/editor.scss","webpack://multiblocks/./src/timeline-step/style.scss","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/trash.js","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\",\"data\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"primitives\"]","webpack://multiblocks/webpack/bootstrap","webpack://multiblocks/webpack/runtime/chunk loaded","webpack://multiblocks/webpack/runtime/compat get default export","webpack://multiblocks/webpack/runtime/define property getters","webpack://multiblocks/webpack/runtime/hasOwnProperty shorthand","webpack://multiblocks/webpack/runtime/make namespace object","webpack://multiblocks/webpack/runtime/jsonp chunk loading","webpack://multiblocks/webpack/before-startup","webpack://multiblocks/webpack/startup","webpack://multiblocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport \"./editor.scss\";\nimport \"./timeline-step\";\n// import \"./steps-container\";\n\nimport {\n\tuseBlockProps,\n\tRichText,\n\tInnerBlocks,\n\tInspectorControls,\n\tMediaReplaceFlow,\n\tMediaPlaceholder,\n} from \"@wordpress/block-editor\";\n\nimport { useEffect } from \"@wordpress/element\";\nimport { useSelect, dispatch } from \"@wordpress/data\";\nimport {\n\tPanelBody,\n\tPanelRow,\n\tButton,\n\tRadioControl,\n\tToggleControl,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n} from \"@wordpress/components\";\nimport { trash } from \"@wordpress/icons\";\n\nexport default function Edit({ attributes, setAttributes, clientId }) {\n\tlet {\n\t\thasStepPictures,\n\t\tlateralPicturesFormat,\n\t\thasStepIcons,\n\t\thasLateralCover,\n\t\tlateralCoverId,\n\t\tlateralCoverAlt,\n\t\tlateralCoverUrl,\n\t\tlateralCoverDescription,\n\t\tlateralCoverCaption,\n\t\tblockTitle,\n\t\tblockSubtitle,\n\t\thasTitle,\n\t} = attributes;\n\n\tlet children = useSelect(\n\t\t(select) =>\n\t\t\tselect(\"core/block-editor\").getBlocksByClientId(clientId)[0].innerBlocks\n\t);\n\n\tfunction onChangeBlockTitle(blockTitle) {\n\t\tsetAttributes({ blockTitle });\n\t}\n\tfunction onChangeBlockSubtitle(blockSubtitle) {\n\t\tsetAttributes({ blockSubtitle });\n\t}\n\n\tfunction onChangeImagesDispositionType(disposition) {\n\t\tif (disposition === \"hasStepPictures\") {\n\t\t\tsetAttributes({ hasStepPictures: true, hasLateralCover: false });\n\t\t\tremoveLateralCoverAttributes();\n\t\t}\n\t\tif (disposition === \"hasLateralCover\") {\n\t\t\tsetAttributes({ hasStepPictures: false, hasLateralCover: true });\n\t\t}\n\t}\n\tfunction handlelateralPicturesFormatChange(lateralPicturesFormat) {\n\t\tsetAttributes({ lateralPicturesFormat });\n\t}\n\tfunction onChangehasStepIcons() {\n\t\tsetAttributes({ hasStepIcons: !hasStepIcons });\n\t}\n\tfunction onChangeHasTitle(newHasTitle) {\n\t\tsetAttributes({ hasTitle: !hasTitle });\n\t\tif (!newHasTitle) {\n\t\t\tsetAttributes({ blockTitle: \"\", blockSubtitle: \"\" });\n\t\t}\n\t}\n\n\tfunction setLateralCoverAttributes(cover) {\n\t\tconsole.log(cover);\n\t\tsetAttributes({\n\t\t\tlateralCoverId: cover.id,\n\t\t\tlateralCoverAlt: cover.alt,\n\t\t\tlateralCoverUrl: cover.url,\n\t\t\tlateralCoverCaption: cover?.caption,\n\t\t\tlateralCoverDescription: cover?.description,\n\t\t});\n\t}\n\tfunction removeLateralCoverAttributes() {\n\t\tsetAttributes({\n\t\t\tlateralCoverId: null,\n\t\t\tlateralCoverAlt: null,\n\t\t\tlateralCoverUrl: null,\n\t\t\tlateralCoverCaption: null,\n\t\t\tlateralCoverDescription: null,\n\t\t});\n\t}\n\n\tfunction updateChildrensProps(children) {\n\t\tchildren.forEach((child) => {\n\t\t\tdispatch(\"core/block-editor\").updateBlockAttributes(child.clientId, {\n\t\t\t\thasStepIcon: hasStepIcons,\n\t\t\t\thasStepPicture: hasStepPictures,\n\t\t\t});\n\t\t});\n\t}\n\n\tuseEffect(() => {\n\t\tif (children && children.length > 0) {\n\t\t\tupdateChildrensProps(children);\n\t\t}\n\t}, [children, hasStepPictures, hasStepIcons]);\n\n\tconst TEMPLATE = [\n\t\t[\n\t\t\t\"homegrade-content-blocks/timeline-step\",\n\t\t\t{\n\t\t\t\ttimelineStepTitle: \"Etape 1\",\n\t\t\t\ttimelineStepSubtitle: \"sous titre\",\n\t\t\t},\n\t\t],\n\t\t[\n\t\t\t\"homegrade-content-blocks/timeline-step\",\n\t\t\t{\n\t\t\t\ttimelineStepTitle: \"Etape 2\",\n\t\t\t\ttimelineStepSubtitle: \"sous titre\",\n\t\t\t},\n\t\t],\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\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t{lateralCoverUrl && (\n\t\t\t\t\t\t{lateralCoverAlt}\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasLateralCover && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{lateralCoverUrl && (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\t\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t{hasTitle && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t{hasLateralCover && !lateralCoverUrl && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasLateralCover && lateralCoverUrl && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{lateralCoverAlt}\n\n\t\t\t\t\t\t\t{(lateralCoverDescription || lateralCoverCaption) && (\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t{lateralCoverDescription && (\n\t\t\t\t\t\t\t\t\t\t

{lateralCoverDescription}

\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{lateralCoverCaption && (\n\t\t\t\t\t\t\t\t\t\t

{lateralCoverCaption}

\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t130all\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 { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tlet {\n\t\thasTitle,\n\t\tblockTitle,\n\t\tblockSubtitle,\n\t\thasStepPictures,\n\t\tlateralPicturesFormat,\n\t\thasStepIcons,\n\t\thasLateralCover,\n\t\tlateralCoverUrl,\n\t\tlateralCoverAlt,\n\t\tlateralCoverCaption,\n\t\tlateralCoverDescription,\n\t} = attributes;\n\n\treturn (\n\t\t\n\t\t\t{hasTitle && (\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t)}\n\t\t\t
\n\t\t\t\t{hasLateralCover && lateralCoverUrl && (\n\t\t\t\t\t\n\t\t\t\t\t\t{lateralCoverAlt}\n\n\t\t\t\t\t\t{(lateralCoverDescription || lateralCoverCaption) && (\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{lateralCoverDescription && (\n\t\t\t\t\t\t\t\t\t

{lateralCoverDescription}

\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t{lateralCoverCaption && (\n\t\t\t\t\t\t\t\t\t

{lateralCoverCaption}

\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n}\n","import { __ } from \"@wordpress/i18n\";\nimport \"./editor.scss\";\n\nimport {\n\tuseBlockProps,\n\tRichText,\n\tInnerBlocks,\n\tBlockControls,\n\tInspectorControls,\n} from \"@wordpress/block-editor\";\nimport {\n\tPanelBody,\n\tToolbarGroup,\n\tToolbarButton,\n\tButton,\n\tTip,\n} from \"@wordpress/components\";\nimport { useEffect } from \"@wordpress/element\";\nimport { MediaReplaceFlow, MediaPlaceholder } from \"@wordpress/block-editor\";\nimport { trash } from \"@wordpress/icons\";\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tlet {\n\t\ttimelineStepTitle,\n\t\ttimelineStepSubtitle,\n\t\ttimelineStepImageUrl,\n\t\ttimelineStepImageId,\n\t\ttimelineStepImageAlt,\n\t\ttimelineStepImageCaption,\n\t\ttimelineStepImageDescription,\n\t\ttimelineStepIconUrl,\n\t\ttimelineStepIconId,\n\t\ttimelineStepIconAlt,\n\t\thasStepPicture,\n\t\thasStepIcon,\n\t} = attributes;\n\n\tfunction onChangeTimelineStepTitle(timelineStepTitle) {\n\t\tsetAttributes({ timelineStepTitle });\n\t}\n\tfunction onChangeTimelineDescription(timelineStepSubtitle) {\n\t\tsetAttributes({ timelineStepSubtitle });\n\t}\n\tfunction setImageAttributes(media) {\n\t\tif (!media || !media.url) {\n\t\t\tsetAttributes({\n\t\t\t\ttimelineStepImageUrl: null,\n\t\t\t\ttimelineStepImageId: null,\n\t\t\t\ttimelineStepImageAlt: null,\n\t\t\t\ttimelineStepImageCaption: null,\n\t\t\t\ttimelineStepImageDescription: null,\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tsetAttributes({\n\t\t\ttimelineStepImageUrl: media.url,\n\t\t\ttimelineStepImageId: media.id,\n\t\t\ttimelineStepImageAlt: media?.alt,\n\t\t\ttimelineStepImageCaption: media?.caption,\n\t\t\ttimelineStepImageDescription: media?.description,\n\t\t});\n\t}\n\tfunction removeImageAttributes() {\n\t\tsetAttributes({\n\t\t\ttimelineStepImageUrl: null,\n\t\t\ttimelineStepImageId: null,\n\t\t\ttimelineStepImageAlt: null,\n\t\t});\n\t}\n\n\tfunction setIconAttributes(media) {\n\t\tconsole.log(media);\n\t\tif (!media || !media.url) {\n\t\t\tsetAttributes({\n\t\t\t\ttimelineStepIconUrl: null,\n\t\t\t\ttimelineStepIconId: null,\n\t\t\t\ttimelineStepIconAlt: null,\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tsetAttributes({\n\t\t\ttimelineStepIconUrl: media.url,\n\t\t\ttimelineStepIconId: media.id,\n\t\t\ttimelineStepIconAlt: media?.alt,\n\t\t});\n\t}\n\n\tfunction removeIconAttributes() {\n\t\tsetAttributes({\n\t\t\ttimelineStepIconUrl: null,\n\t\t\ttimelineStepIconId: null,\n\t\t\ttimelineStepIconAlt: null,\n\t\t});\n\t}\n\n\tuseEffect(() => {\n\t\tif (hasStepPicture === false) {\n\t\t\tsetImageAttributes(null);\n\t\t}\n\t}, [hasStepPicture]);\n\tuseEffect(() => {\n\t\tif (hasStepIcon === false) {\n\t\t\tsetIconAttributes(null);\n\t\t}\n\t}, [hasStepIcon]);\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t{hasStepPicture && (\n\t\t\t\t\t\n\t\t\t\t\t\t{timelineStepImageUrl && (\n\t\t\t\t\t\t\t{timelineStepImageAlt}\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{timelineStepImageUrl && (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tSi besoin, Utilisez le champ \"Légende\"de la médiathèque pour\n\t\t\t\t\t\t\tafficher un copyright\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tSi besoin, Utilisez le champ \"Description\" de la médiathèque pour\n\t\t\t\t\t\t\tdonner afficher une description de votre image\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\t{hasStepIcon && (\n\t\t\t\t\t\n\t\t\t\t\t\t{timelineStepIconUrl && (\n\t\t\t\t\t\t\t{timelineStepIconAlt}\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{timelineStepIconUrl && (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t
\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\n\t\t\t\n\t\t\t\n\t\t\t\t{hasStepPicture && (\n\t\t\t\t\t
\n\t\t\t\t\t\t{!timelineStepImageUrl && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{timelineStepImageUrl && (\n\t\t\t\t\t\t\t{timelineStepImageAlt}\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{timelineStepImageDescription && (\n\t\t\t\t\t\t\t

{timelineStepImageDescription}

\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{timelineStepImageCaption &&

{timelineStepImageCaption}

}\n\t\t\t\t\t
\n\t\t\t\t)}\n\n\t\t\t\t
\n\t\t\t\t\t{hasStepIcon && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{!timelineStepIconUrl && (\n\t\t\t\t\t\t\t\t

Ajoutez une icone !

\n\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t{timelineStepIconUrl && (\n\t\t\t\t\t\t\t\t{timelineStepIconAlt}\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\nimport metadata from \"./block.json\";\n\nimport Edit from \"./edit\";\nimport Save from \"./save\";\n\nimport { navigation } from \"@wordpress/icons\";\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\n\t\t\t\n\t\t),\n\t},\n\n\tsupports: metadata.supports,\n\tattributes: metadata.attributes,\n\tedit: Edit,\n\tsave: Save,\n});\n","import { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst {\n\t\ttimelineStepTitle,\n\t\ttimelineStepSubtitle,\n\t\ttimelineStepImageUrl,\n\t\ttimelineStepImageAlt,\n\t\ttimelineStepImageCaption,\n\t\ttimelineStepImageDescription,\n\t\ttimelineStepIconUrl,\n\t\ttimelineStepIconAlt,\n\t\thasStepPicture,\n\t\thasStepIcon,\n\t} = attributes;\n\treturn (\n\t\t\n\t\t\t{hasStepPicture && (\n\t\t\t\t
\n\t\t\t\t\t{timelineStepImageUrl && (\n\t\t\t\t\t\t{timelineStepImageAlt}\n\t\t\t\t\t)}\n\t\t\t\t\t{(timelineStepImageDescription || timelineStepImageCaption) && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{timelineStepImageDescription && (\n\t\t\t\t\t\t\t\t

{timelineStepImageDescription}

\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{timelineStepImageCaption && (\n\t\t\t\t\t\t\t\t

{timelineStepImageCaption}

\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\t\t\t\t
\n\t\t\t)}\n\t\t\t
\n\t\t\t\t{hasStepIcon && (\n\t\t\t\t\t
\n\t\t\t\t\t\t{timelineStepIconUrl && (\n\t\t\t\t\t\t\t{timelineStepIconAlt}\n\t\t\t\t\t\t)}\n\t\t\t\t\t
\n\t\t\t\t)}\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst trash = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z\"\n}));\nexport default trash;\n//# sourceMappingURL=trash.js.map","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"index\": 0,\n\t\"./style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkmultiblocks\"] = globalThis[\"webpackChunkmultiblocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"./style-index\"], () => (__webpack_require__(\"./src/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","InnerBlocks","InspectorControls","MediaReplaceFlow","MediaPlaceholder","useEffect","useSelect","dispatch","PanelBody","PanelRow","Button","RadioControl","ToggleControl","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","trash","Edit","attributes","setAttributes","clientId","hasStepPictures","lateralPicturesFormat","hasStepIcons","hasLateralCover","lateralCoverId","lateralCoverAlt","lateralCoverUrl","lateralCoverDescription","lateralCoverCaption","blockTitle","blockSubtitle","hasTitle","children","select","getBlocksByClientId","innerBlocks","onChangeBlockTitle","onChangeBlockSubtitle","onChangeImagesDispositionType","disposition","removeLateralCoverAttributes","handlelateralPicturesFormatChange","onChangehasStepIcons","onChangeHasTitle","newHasTitle","setLateralCoverAttributes","cover","console","log","id","alt","url","caption","description","updateChildrensProps","forEach","child","updateBlockAttributes","hasStepIcon","hasStepPicture","length","TEMPLATE","timelineStepTitle","timelineStepSubtitle","createElement","Fragment","title","className","label","help","checked","onChange","isBlock","value","variant","selected","options","src","mediaId","mediaUrl","allowedTypes","accept","onSelect","name","icon","onClick","tagName","placeholder","multiple","handleUpload","allowedBlocks","template","registerBlockType","save","metadata","xmlns","viewBox","x","y","d","width","height","foreground","edit","Content","BlockControls","ToolbarGroup","ToolbarButton","Tip","props","timelineStepImageUrl","timelineStepImageId","timelineStepImageAlt","timelineStepImageCaption","timelineStepImageDescription","timelineStepIconUrl","timelineStepIconId","timelineStepIconAlt","onChangeTimelineStepTitle","onChangeTimelineDescription","setImageAttributes","media","removeImageAttributes","setIconAttributes","removeIconAttributes","isActive","Save","navigation","version","supports"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACd;AACE;AAUQ;AAEc;AACO;AAWvB;AACU;AAOf;AAEX,SAAS4B,IAAIA,CAAC;EAAEC,UAAU;EAAEC,aAAa;EAAEC;AAAS,CAAC,EAAE;EACrE,IAAI;IACHC,eAAe;IACfC,qBAAqB;IACrBC,YAAY;IACZC,eAAe;IACfC,cAAc;IACdC,eAAe;IACfC,eAAe;IACfC,uBAAuB;IACvBC,mBAAmB;IACnBC,UAAU;IACVC,aAAa;IACbC,QAAQ;IACRC;EACD,CAAC,GAAGf,UAAU;EAEd,IAAIgB,QAAQ,GAAGpC,0DAAS,CACtBqC,MAAM,IACNA,MAAM,CAAC,mBAAmB,CAAC,CAACC,mBAAmB,CAAChB,QAAQ,CAAC,CAAC,CAAC,CAAC,CAACiB,WAC/D,CAAC;EAED,SAASC,kBAAkBA,CAACR,UAAU,EAAE;IACvCX,aAAa,CAAC;MAAEW;IAAW,CAAC,CAAC;EAC9B;EACA,SAASS,qBAAqBA,CAACR,a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;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/edit.js","webpack://multiblocks/./src/index.js","webpack://multiblocks/./src/save.js","webpack://multiblocks/./src/timeline-step/edit.js","webpack://multiblocks/./src/timeline-step/index.js","webpack://multiblocks/./src/timeline-step/save.js","webpack://multiblocks/./src/editor.scss?d446","webpack://multiblocks/./src/style.scss","webpack://multiblocks/./src/timeline-step/editor.scss","webpack://multiblocks/./src/timeline-step/style.scss","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/heading-level-1.js","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/heading-level-2.js","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/heading-level-3.js","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/heading-level-4.js","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/heading-level-5.js","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/trash.js","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\",\"data\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"primitives\"]","webpack://multiblocks/webpack/bootstrap","webpack://multiblocks/webpack/runtime/chunk loaded","webpack://multiblocks/webpack/runtime/compat get default export","webpack://multiblocks/webpack/runtime/define property getters","webpack://multiblocks/webpack/runtime/hasOwnProperty shorthand","webpack://multiblocks/webpack/runtime/make namespace object","webpack://multiblocks/webpack/runtime/jsonp chunk loading","webpack://multiblocks/webpack/before-startup","webpack://multiblocks/webpack/startup","webpack://multiblocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport \"./editor.scss\";\nimport \"./timeline-step\";\n\nimport {\n\tuseBlockProps,\n\tRichText,\n\tInnerBlocks,\n\tInspectorControls,\n\tMediaReplaceFlow,\n\tMediaPlaceholder,\n\tBlockControls,\n} from \"@wordpress/block-editor\";\n\nimport { useEffect } from \"@wordpress/element\";\nimport { useSelect, dispatch } from \"@wordpress/data\";\nimport {\n\tPanelBody,\n\tPanelRow,\n\tButton,\n\tRadioControl,\n\tToggleControl,\n\tToolbarGroup,\n\tToolbarButton,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n} from \"@wordpress/components\";\nimport { trash } from \"@wordpress/icons\";\nimport {\n\theadingLevel1,\n\theadingLevel2,\n\theadingLevel3,\n\theadingLevel4,\n\theadingLevel5,\n} from \"@wordpress/icons\";\n\nexport default function Edit({ attributes, setAttributes, clientId }) {\n\tlet {\n\t\thasStepPictures,\n\t\tlateralPicturesFormat,\n\t\thasStepIcons,\n\t\thasLateralCover,\n\t\tlateralCoverId,\n\t\tlateralCoverAlt,\n\t\tlateralCoverUrl,\n\t\tlateralCoverDescription,\n\t\tlateralCoverCaption,\n\t\tblockTitle,\n\t\tblockSubtitle,\n\t\thasTitle,\n\t\theadingLevel,\n\t} = attributes;\n\n\tlet children = useSelect(\n\t\t(select) =>\n\t\t\tselect(\"core/block-editor\").getBlocksByClientId(clientId)[0].innerBlocks,\n\t);\n\n\tfunction onChangeBlockTitle(blockTitle) {\n\t\tsetAttributes({ blockTitle });\n\t}\n\tfunction onChangeBlockSubtitle(blockSubtitle) {\n\t\tsetAttributes({ blockSubtitle });\n\t}\n\tfunction onChangeHeadingLevel(newHeadingLevel) {\n\t\tsetAttributes({ headingLevel: newHeadingLevel });\n\t}\n\n\tfunction onChangeImagesDispositionType(disposition) {\n\t\tif (disposition === \"hasStepPictures\") {\n\t\t\tsetAttributes({ hasStepPictures: true, hasLateralCover: false });\n\t\t\tremoveLateralCoverAttributes();\n\t\t}\n\t\tif (disposition === \"hasLateralCover\") {\n\t\t\tsetAttributes({ hasStepPictures: false, hasLateralCover: true });\n\t\t}\n\t}\n\tfunction handlelateralPicturesFormatChange(lateralPicturesFormat) {\n\t\tsetAttributes({ lateralPicturesFormat });\n\t}\n\tfunction onChangehasStepIcons() {\n\t\tsetAttributes({ hasStepIcons: !hasStepIcons });\n\t}\n\tfunction onChangeHasTitle(newHasTitle) {\n\t\tsetAttributes({ hasTitle: !hasTitle });\n\t\tif (!newHasTitle) {\n\t\t\tsetAttributes({ blockTitle: \"\", blockSubtitle: \"\" });\n\t\t}\n\t}\n\n\tfunction setLateralCoverAttributes(cover) {\n\t\tconsole.log(cover);\n\t\tsetAttributes({\n\t\t\tlateralCoverId: cover.id,\n\t\t\tlateralCoverAlt: cover.alt,\n\t\t\tlateralCoverUrl: cover.url,\n\t\t\tlateralCoverCaption: cover?.caption,\n\t\t\tlateralCoverDescription: cover?.description,\n\t\t});\n\t}\n\tfunction removeLateralCoverAttributes() {\n\t\tsetAttributes({\n\t\t\tlateralCoverId: null,\n\t\t\tlateralCoverAlt: null,\n\t\t\tlateralCoverUrl: null,\n\t\t\tlateralCoverCaption: null,\n\t\t\tlateralCoverDescription: null,\n\t\t});\n\t}\n\n\tfunction updateChildrensProps(children) {\n\t\tchildren.forEach((child) => {\n\t\t\tdispatch(\"core/block-editor\").updateBlockAttributes(child.clientId, {\n\t\t\t\thasStepIcon: hasStepIcons,\n\t\t\t\thasStepPicture: hasStepPictures,\n\t\t\t});\n\t\t});\n\t}\n\n\tuseEffect(() => {\n\t\tif (children && children.length > 0) {\n\t\t\tupdateChildrensProps(children);\n\t\t}\n\t}, [children, hasStepPictures, hasStepIcons]);\n\n\tconst TEMPLATE = [\n\t\t[\n\t\t\t\"homegrade-content-blocks/timeline-step\",\n\t\t\t{\n\t\t\t\ttimelineStepTitle: \"Etape 1\",\n\t\t\t\ttimelineStepSubtitle: \"sous titre\",\n\t\t\t},\n\t\t],\n\t\t[\n\t\t\t\"homegrade-content-blocks/timeline-step\",\n\t\t\t{\n\t\t\t\ttimelineStepTitle: \"Etape 2\",\n\t\t\t\ttimelineStepSubtitle: \"sous titre\",\n\t\t\t},\n\t\t],\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\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t{lateralCoverUrl && (\n\t\t\t\t\t\t{lateralCoverAlt}\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasLateralCover && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{lateralCoverUrl && (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\t\t\t\t\n\t\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t {\n\t\t\t\t\t\t\tonChangeHeadingLevel(\"h1\");\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\tonChangeHeadingLevel(\"h2\");\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\tonChangeHeadingLevel(\"h3\");\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\tonChangeHeadingLevel(\"h4\");\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\tonChangeHeadingLevel(\"h5\");\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t{hasTitle && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t
\n\n\t\t\t\t
\n\t\t\t\t\t{hasLateralCover && !lateralCoverUrl && (\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasLateralCover && lateralCoverUrl && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{lateralCoverAlt}\n\n\t\t\t\t\t\t\t{(lateralCoverDescription || lateralCoverCaption) && (\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t{lateralCoverDescription && (\n\t\t\t\t\t\t\t\t\t\t

{lateralCoverDescription}

\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t{lateralCoverCaption && (\n\t\t\t\t\t\t\t\t\t\t

{lateralCoverCaption}

\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t130all\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 { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tlet {\n\t\thasTitle,\n\t\tblockTitle,\n\t\tblockSubtitle,\n\t\thasStepPictures,\n\t\tlateralPicturesFormat,\n\t\thasStepIcons,\n\t\thasLateralCover,\n\t\tlateralCoverUrl,\n\t\tlateralCoverAlt,\n\t\tlateralCoverCaption,\n\t\tlateralCoverDescription,\n\t\theadingLevel,\n\t} = attributes;\n\n\treturn (\n\t\t\n\t\t\t{hasTitle && (\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t)}\n\t\t\t
\n\t\t\t\t{hasLateralCover && lateralCoverUrl && (\n\t\t\t\t\t\n\t\t\t\t\t\t{lateralCoverAlt}\n\n\t\t\t\t\t\t{(lateralCoverDescription || lateralCoverCaption) && (\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t{lateralCoverDescription && (\n\t\t\t\t\t\t\t\t\t

{lateralCoverDescription}

\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t{lateralCoverCaption && (\n\t\t\t\t\t\t\t\t\t

{lateralCoverCaption}

\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t)}\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n}\n","import { __ } from \"@wordpress/i18n\";\nimport \"./editor.scss\";\n\nimport {\n\tuseBlockProps,\n\tRichText,\n\tInnerBlocks,\n\tBlockControls,\n\tInspectorControls,\n} from \"@wordpress/block-editor\";\nimport {\n\tPanelBody,\n\tToolbarGroup,\n\tToolbarButton,\n\tButton,\n\tTip,\n} from \"@wordpress/components\";\nimport { useEffect } from \"@wordpress/element\";\nimport { MediaReplaceFlow, MediaPlaceholder } from \"@wordpress/block-editor\";\nimport { trash } from \"@wordpress/icons\";\nexport default function Edit({ attributes, setAttributes, ...props }) {\n\tlet {\n\t\ttimelineStepTitle,\n\t\ttimelineStepSubtitle,\n\t\ttimelineStepImageUrl,\n\t\ttimelineStepImageId,\n\t\ttimelineStepImageAlt,\n\t\ttimelineStepImageCaption,\n\t\ttimelineStepImageDescription,\n\t\ttimelineStepIconUrl,\n\t\ttimelineStepIconId,\n\t\ttimelineStepIconAlt,\n\t\thasStepPicture,\n\t\thasStepIcon,\n\t} = attributes;\n\n\tfunction onChangeTimelineStepTitle(timelineStepTitle) {\n\t\tsetAttributes({ timelineStepTitle });\n\t}\n\tfunction onChangeTimelineDescription(timelineStepSubtitle) {\n\t\tsetAttributes({ timelineStepSubtitle });\n\t}\n\tfunction setImageAttributes(media) {\n\t\tif (!media || !media.url) {\n\t\t\tsetAttributes({\n\t\t\t\ttimelineStepImageUrl: null,\n\t\t\t\ttimelineStepImageId: null,\n\t\t\t\ttimelineStepImageAlt: null,\n\t\t\t\ttimelineStepImageCaption: null,\n\t\t\t\ttimelineStepImageDescription: null,\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tsetAttributes({\n\t\t\ttimelineStepImageUrl: media.url,\n\t\t\ttimelineStepImageId: media.id,\n\t\t\ttimelineStepImageAlt: media?.alt,\n\t\t\ttimelineStepImageCaption: media?.caption,\n\t\t\ttimelineStepImageDescription: media?.description,\n\t\t});\n\t}\n\tfunction removeImageAttributes() {\n\t\tsetAttributes({\n\t\t\ttimelineStepImageUrl: null,\n\t\t\ttimelineStepImageId: null,\n\t\t\ttimelineStepImageAlt: null,\n\t\t});\n\t}\n\n\tfunction setIconAttributes(media) {\n\t\tconsole.log(media);\n\t\tif (!media || !media.url) {\n\t\t\tsetAttributes({\n\t\t\t\ttimelineStepIconUrl: null,\n\t\t\t\ttimelineStepIconId: null,\n\t\t\t\ttimelineStepIconAlt: null,\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tsetAttributes({\n\t\t\ttimelineStepIconUrl: media.url,\n\t\t\ttimelineStepIconId: media.id,\n\t\t\ttimelineStepIconAlt: media?.alt,\n\t\t});\n\t}\n\n\tfunction removeIconAttributes() {\n\t\tsetAttributes({\n\t\t\ttimelineStepIconUrl: null,\n\t\t\ttimelineStepIconId: null,\n\t\t\ttimelineStepIconAlt: null,\n\t\t});\n\t}\n\n\tuseEffect(() => {\n\t\tif (hasStepPicture === false) {\n\t\t\tsetImageAttributes(null);\n\t\t}\n\t}, [hasStepPicture]);\n\tuseEffect(() => {\n\t\tif (hasStepIcon === false) {\n\t\t\tsetIconAttributes(null);\n\t\t}\n\t}, [hasStepIcon]);\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t{hasStepPicture && (\n\t\t\t\t\t\n\t\t\t\t\t\t{timelineStepImageUrl && (\n\t\t\t\t\t\t\t{timelineStepImageAlt}\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{timelineStepImageUrl && (\n\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tSi besoin, Utilisez le champ \"Légende\"de la médiathèque pour\n\t\t\t\t\t\t\tafficher un copyright\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tSi besoin, Utilisez le champ \"Description\" de la médiathèque pour\n\t\t\t\t\t\t\tdonner afficher une description de votre image\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t\t{hasStepIcon && (\n\t\t\t\t\t\n\t\t\t\t\t\t{timelineStepIconUrl && (\n\t\t\t\t\t\t\t{timelineStepIconAlt}\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{timelineStepIconUrl && (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t
\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\n\t\t\t\n\t\t\t\n\t\t\t\t{hasStepPicture && (\n\t\t\t\t\t
\n\t\t\t\t\t\t{!timelineStepImageUrl && (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{timelineStepImageUrl && (\n\t\t\t\t\t\t\t{timelineStepImageAlt}\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{timelineStepImageDescription && (\n\t\t\t\t\t\t\t

{timelineStepImageDescription}

\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{timelineStepImageCaption &&

{timelineStepImageCaption}

}\n\t\t\t\t\t
\n\t\t\t\t)}\n\n\t\t\t\t
\n\t\t\t\t\t{hasStepIcon && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{!timelineStepIconUrl && (\n\t\t\t\t\t\t\t\t

Ajoutez une icone !

\n\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t{timelineStepIconUrl && (\n\t\t\t\t\t\t\t\t{timelineStepIconAlt}\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\n\t\t\n\t);\n}\n","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\nimport metadata from \"./block.json\";\n\nimport Edit from \"./edit\";\nimport Save from \"./save\";\n\nimport { navigation } from \"@wordpress/icons\";\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\n\t\t\t\n\t\t),\n\t},\n\n\tsupports: metadata.supports,\n\tattributes: metadata.attributes,\n\tedit: Edit,\n\tsave: Save,\n});\n","import { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save({ attributes }) {\n\tconst {\n\t\ttimelineStepTitle,\n\t\ttimelineStepSubtitle,\n\t\ttimelineStepImageUrl,\n\t\ttimelineStepImageAlt,\n\t\ttimelineStepImageCaption,\n\t\ttimelineStepImageDescription,\n\t\ttimelineStepIconUrl,\n\t\ttimelineStepIconAlt,\n\t\thasStepPicture,\n\t\thasStepIcon,\n\t} = attributes;\n\treturn (\n\t\t\n\t\t\t{hasStepPicture && (\n\t\t\t\t
\n\t\t\t\t\t{timelineStepImageUrl && (\n\t\t\t\t\t\t{timelineStepImageAlt}\n\t\t\t\t\t)}\n\t\t\t\t\t{(timelineStepImageDescription || timelineStepImageCaption) && (\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t{timelineStepImageDescription && (\n\t\t\t\t\t\t\t\t

{timelineStepImageDescription}

\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{timelineStepImageCaption && (\n\t\t\t\t\t\t\t\t

{timelineStepImageCaption}

\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t
\n\t\t\t\t\t)}\n\t\t\t\t
\n\t\t\t)}\n\t\t\t
\n\t\t\t\t{hasStepIcon && (\n\t\t\t\t\t
\n\t\t\t\t\t\t{timelineStepIconUrl && (\n\t\t\t\t\t\t\t{timelineStepIconAlt}\n\t\t\t\t\t\t)}\n\t\t\t\t\t
\n\t\t\t\t)}\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst headingLevel1 = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z\"\n}));\nexport default headingLevel1;\n//# sourceMappingURL=heading-level-1.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst headingLevel2 = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z\"\n}));\nexport default headingLevel2;\n//# sourceMappingURL=heading-level-2.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst headingLevel3 = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z\"\n}));\nexport default headingLevel3;\n//# sourceMappingURL=heading-level-3.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst headingLevel4 = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z\"\n}));\nexport default headingLevel4;\n//# sourceMappingURL=heading-level-4.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst headingLevel5 = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z\"\n}));\nexport default headingLevel5;\n//# sourceMappingURL=heading-level-5.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst trash = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z\"\n}));\nexport default trash;\n//# sourceMappingURL=trash.js.map","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"index\": 0,\n\t\"./style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkmultiblocks\"] = globalThis[\"webpackChunkmultiblocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"./style-index\"], () => (__webpack_require__(\"./src/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","InnerBlocks","InspectorControls","MediaReplaceFlow","MediaPlaceholder","BlockControls","useEffect","useSelect","dispatch","PanelBody","PanelRow","Button","RadioControl","ToggleControl","ToolbarGroup","ToolbarButton","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","trash","headingLevel1","headingLevel2","headingLevel3","headingLevel4","headingLevel5","Edit","attributes","setAttributes","clientId","hasStepPictures","lateralPicturesFormat","hasStepIcons","hasLateralCover","lateralCoverId","lateralCoverAlt","lateralCoverUrl","lateralCoverDescription","lateralCoverCaption","blockTitle","blockSubtitle","hasTitle","headingLevel","children","select","getBlocksByClientId","innerBlocks","onChangeBlockTitle","onChangeBlockSubtitle","onChangeHeadingLevel","newHeadingLevel","onChangeImagesDispositionType","disposition","removeLateralCoverAttributes","handlelateralPicturesFormatChange","onChangehasStepIcons","onChangeHasTitle","newHasTitle","setLateralCoverAttributes","cover","console","log","id","alt","url","caption","description","updateChildrensProps","forEach","child","updateBlockAttributes","hasStepIcon","hasStepPicture","length","TEMPLATE","timelineStepTitle","timelineStepSubtitle","createElement","Fragment","title","className","label","help","checked","onChange","isBlock","value","variant","selected","options","src","mediaId","mediaUrl","allowedTypes","accept","onSelect","name","icon","onClick","isActive","tagName","placeholder","multiple","handleUpload","allowedBlocks","template","registerBlockType","save","metadata","xmlns","viewBox","x","y","d","width","height","foreground","edit","Content","Tip","props","timelineStepImageUrl","timelineStepImageId","timelineStepImageAlt","timelineStepImageCaption","timelineStepImageDescription","timelineStepIconUrl","timelineStepIconId","timelineStepIconAlt","onChangeTimelineStepTitle","onChangeTimelineDescription","setImageAttributes","media","removeImageAttributes","setIconAttributes","removeIconAttributes","Save","navigation","version","supports"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/timeline/build/steps-container/block.json b/blocks/timeline/build/steps-container/block.json deleted file mode 100644 index 9ad7e06..0000000 --- a/blocks/timeline/build/steps-container/block.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://schemas.wp.org/trunk/block.json", - "apiVersion": 2, - "name": "homegrade-content-blocks/timeline-steps-container", - "version": "0.1.0", - "title": "Étapes", - "category": "homegrade-blocks", - "description": "steps container", - "supports": { - "html": false - }, - "editorScript": "file:./index.js", - "editorStyle": "file:./index.css", - "style": "file:./style-index.css" -} \ No newline at end of file diff --git a/blocks/timeline/build/steps-container/index.asset.php b/blocks/timeline/build/steps-container/index.asset.php deleted file mode 100644 index 7dd8bd8..0000000 --- a/blocks/timeline/build/steps-container/index.asset.php +++ /dev/null @@ -1 +0,0 @@ - array('react', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => 'af247c1823c8cce54eca'); diff --git a/blocks/timeline/build/steps-container/index.css b/blocks/timeline/build/steps-container/index.css deleted file mode 100644 index 07b4705..0000000 --- a/blocks/timeline/build/steps-container/index.css +++ /dev/null @@ -1,4 +0,0 @@ -/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.4.35_webpack@5.90.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@12.6.0_sass@1.71.1_webpack@5.90.3/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/steps-container/editor.scss ***! - \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ - diff --git a/blocks/timeline/build/steps-container/index.js b/blocks/timeline/build/steps-container/index.js deleted file mode 100644 index f5edc65..0000000 --- a/blocks/timeline/build/steps-container/index.js +++ /dev/null @@ -1,357 +0,0 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({ - -/***/ "./src/steps-container/edit.js": -/*!*************************************!*\ - !*** ./src/steps-container/edit.js ***! - \*************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Edit) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/steps-container/editor.scss"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__); - - - - -function Edit() { - let { - hasStepIcons, - hasLateralCover - } = attributes; - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.useBlockProps)({ - className: `homegrade-blocks-timeline__steps-container` - }) - }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InnerBlocks, { - allowedBlocks: ["homegrade-content-blocks/timeline-step"], - template: [["homegrade-content-blocks/timeline-step", { - tipTitle: "Astuce 1" - }], ["homegrade-content-blocks/timeline-step", { - tipTitle: "Astuce 2" - }]], - templateLock: false - })); -} - -/***/ }), - -/***/ "./src/steps-container/index.js": -/*!**************************************!*\ - !*** ./src/steps-container/index.js ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./src/steps-container/style.scss"); -/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/steps-container/block.json"); -/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ "./src/steps-container/edit.js"); -/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ "./src/steps-container/save.js"); - - - - - - -(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_3__.name, { - title: _block_json__WEBPACK_IMPORTED_MODULE_3__.title, - icon: { - foreground: "#DF1E1E", - src: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { - viewBox: "0 0 73.9 90" - }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", { - id: "Calque_1-2", - "data-name": "Calque 1" - }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { - class: "cls-1", - d: "m4.1,19.22v17.13c.64-.23,1.33-.35,2.05-.35s1.41.13,2.05.35v-17.12c-.64.23-1.33.35-2.05.35s-1.41-.12-2.05-.35Zm0-2.6c.64.23,1.33.35,2.05.35s1.41-.12,2.05-.35c2.39-.85,4.1-3.12,4.1-5.81s-1.71-4.96-4.1-5.81c-.64-.23-1.33-.35-2.05-.35s-1.41.12-2.05.35C1.71,5.85,0,8.13,0,10.81s1.71,4.96,4.1,5.81ZM8.21,2.41V0h-4.11v2.41c.64-.23,1.33-.35,2.05-.35.72,0,1.41.12,2.05.35Zm17.24,17.44c.82.82,1.85,1.23,2.87,1.23h29.15c1.23,0,2.05-.82,2.05-2.05V2.6c0-1.23-.82-2.05-2.05-2.05h-29.15c-1.02,0-2.05.41-2.87,1.23l-7.59,7.6c-.82.82-.82,2.05,0,2.87l7.59,7.6ZM4.11,87.6v2.4h4.11v-2.4c-.64.23-1.33.35-2.05.35-.72,0-1.41-.12-2.05-.35Zm4.11-14.21c-.64-.23-1.33-.35-2.05-.35s-1.41.12-2.05.35C1.71,74.23,0,76.51,0,79.19s1.71,4.96,4.1,5.81c.64.23,1.33.35,2.05.35s1.41-.12,2.05-.35c2.39-.85,4.1-3.13,4.1-5.81s-1.71-4.96-4.1-5.81Zm47.21-4.46h-27.1c-1.02,0-2.05.41-2.87,1.23l-7.59,7.6c-.82.82-.82,2.05,0,2.87l7.59,7.6c.82.82,1.85,1.23,2.87,1.23h27.1c1.23,0,2.05-.82,2.05-2.05v-16.42c0-1.23-.82-2.05-2.05-2.05Zm16.42-34.44H28.33c-1.02,0-2.05.41-2.87,1.23l-7.59,7.59c-.82.82-.82,2.05,0,2.87l7.59,7.6c.82.82,1.85,1.23,2.87,1.23h43.52c1.23,0,2.05-.82,2.05-2.05v-16.42c0-1.23-.82-2.05-2.05-2.05Zm-63.63,4.46c-.64-.23-1.33-.35-2.05-.35-.72,0-1.41.13-2.05.35C1.71,39.79,0,42.07,0,44.75s1.71,4.96,4.1,5.81c.64.23,1.33.35,2.05.35s1.41-.13,2.05-.35c2.39-.85,4.1-3.12,4.1-5.81s-1.71-4.96-4.1-5.81Zm0,31.84v-17.12c-.64.23-1.33.35-2.05.35s-1.41-.13-2.05-.35v17.12c.64-.23,1.33-.35,2.05-.35s1.41.12,2.05.35Z" - }))) - }, - supports: _block_json__WEBPACK_IMPORTED_MODULE_3__.supports, - attributes: _block_json__WEBPACK_IMPORTED_MODULE_3__.attributes, - edit: _edit__WEBPACK_IMPORTED_MODULE_4__["default"], - save: _save__WEBPACK_IMPORTED_MODULE_5__["default"] -}); - -/***/ }), - -/***/ "./src/steps-container/save.js": -/*!*************************************!*\ - !*** ./src/steps-container/save.js ***! - \*************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ save) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); - - -function save() { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({ - className: `homegrade-blocks-timeline__steps-container` - }) - }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks.Content, null)); -} - -/***/ }), - -/***/ "./src/steps-container/editor.scss": -/*!*****************************************!*\ - !*** ./src/steps-container/editor.scss ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/steps-container/style.scss": -/*!****************************************!*\ - !*** ./src/steps-container/style.scss ***! - \****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "react": -/*!************************!*\ - !*** external "React" ***! - \************************/ -/***/ ((module) => { - -module.exports = window["React"]; - -/***/ }), - -/***/ "@wordpress/block-editor": -/*!*************************************!*\ - !*** external ["wp","blockEditor"] ***! - \*************************************/ -/***/ ((module) => { - -module.exports = window["wp"]["blockEditor"]; - -/***/ }), - -/***/ "@wordpress/blocks": -/*!********************************!*\ - !*** external ["wp","blocks"] ***! - \********************************/ -/***/ ((module) => { - -module.exports = window["wp"]["blocks"]; - -/***/ }), - -/***/ "@wordpress/i18n": -/*!******************************!*\ - !*** external ["wp","i18n"] ***! - \******************************/ -/***/ ((module) => { - -module.exports = window["wp"]["i18n"]; - -/***/ }), - -/***/ "./src/steps-container/block.json": -/*!****************************************!*\ - !*** ./src/steps-container/block.json ***! - \****************************************/ -/***/ ((module) => { - -module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/timeline-steps-container","version":"0.1.0","title":"Étapes","category":"homegrade-blocks","description":"steps container","supports":{"html":false},"editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}'); - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = __webpack_modules__; -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/chunk loaded */ -/******/ (() => { -/******/ var deferred = []; -/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { -/******/ if(chunkIds) { -/******/ priority = priority || 0; -/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; -/******/ deferred[i] = [chunkIds, fn, priority]; -/******/ return; -/******/ } -/******/ var notFulfilled = Infinity; -/******/ for (var i = 0; i < deferred.length; i++) { -/******/ var [chunkIds, fn, priority] = deferred[i]; -/******/ var fulfilled = true; -/******/ for (var j = 0; j < chunkIds.length; j++) { -/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { -/******/ chunkIds.splice(j--, 1); -/******/ } else { -/******/ fulfilled = false; -/******/ if(priority < notFulfilled) notFulfilled = priority; -/******/ } -/******/ } -/******/ if(fulfilled) { -/******/ deferred.splice(i--, 1) -/******/ var r = fn(); -/******/ if (r !== undefined) result = r; -/******/ } -/******/ } -/******/ return result; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/jsonp chunk loading */ -/******/ (() => { -/******/ // no baseURI -/******/ -/******/ // object to store loaded and loading chunks -/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched -/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded -/******/ var installedChunks = { -/******/ "steps-container/index": 0, -/******/ "steps-container/style-index": 0 -/******/ }; -/******/ -/******/ // no chunk on demand loading -/******/ -/******/ // no prefetching -/******/ -/******/ // no preloaded -/******/ -/******/ // no HMR -/******/ -/******/ // no HMR manifest -/******/ -/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); -/******/ -/******/ // install a JSONP callback for chunk loading -/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { -/******/ var [chunkIds, moreModules, runtime] = data; -/******/ // add "moreModules" to the modules object, -/******/ // then flag all "chunkIds" as loaded and fire callback -/******/ var moduleId, chunkId, i = 0; -/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { -/******/ for(moduleId in moreModules) { -/******/ if(__webpack_require__.o(moreModules, moduleId)) { -/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; -/******/ } -/******/ } -/******/ if(runtime) var result = runtime(__webpack_require__); -/******/ } -/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); -/******/ for(;i < chunkIds.length; i++) { -/******/ chunkId = chunkIds[i]; -/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { -/******/ installedChunks[chunkId][0](); -/******/ } -/******/ installedChunks[chunkId] = 0; -/******/ } -/******/ return __webpack_require__.O(result); -/******/ } -/******/ -/******/ var chunkLoadingGlobal = globalThis["webpackChunkmultiblocks"] = globalThis["webpackChunkmultiblocks"] || []; -/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); -/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); -/******/ })(); -/******/ -/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module depends on other loaded chunks and execution need to be delayed -/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["steps-container/style-index"], () => (__webpack_require__("./src/steps-container/index.js"))) -/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); -/******/ -/******/ })() -; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/blocks/timeline/build/steps-container/index.js.map b/blocks/timeline/build/steps-container/index.js.map deleted file mode 100644 index a9f8d37..0000000 --- a/blocks/timeline/build/steps-container/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"steps-container/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;AAAqC;AACd;AAE8C;AACtD,SAASG,IAAIA,CAAA,EAAG;EAC9B,IAAI;IAAEC,YAAY;IAAEC;EAAgB,CAAC,GAAGC,UAAU;EAClD,OACCC,oDAAA;IAAA,GACKN,sEAAa,CAAC;MACjBO,SAAS,EAAG;IACb,CAAC;EAAC,GAEFD,oDAAA,CAACL,gEAAW;IACXO,aAAa,EAAE,CAAC,wCAAwC,CAAE;IAC1DC,QAAQ,EAAE,CACT,CAAC,wCAAwC,EAAE;MAAEC,QAAQ,EAAE;IAAW,CAAC,CAAC,EACpE,CAAC,wCAAwC,EAAE;MAAEA,QAAQ,EAAE;IAAW,CAAC,CAAC,CACnE;IACFC,YAAY,EAAE;EAAM,CACpB,CACG,CAAC;AAER;;;;;;;;;;;;;;;;;;;;ACtBsD;AAChC;AACc;AAEV;AACA;AAE1BC,oEAAiB,CAACC,6CAAa,EAAE;EAChCG,KAAK,EAAEH,8CAAc;EACrBI,IAAI,EAAE;IACLC,UAAU,EAAE,SAAS;IACrBC,GAAG,EACFb,oDAAA;MAAKc,OAAO,EAAC;IAAa,GACzBd,oDAAA;MAAGe,EAAE,EAAC,YAAY;MAAC,aAAU;IAAU,GACtCf,oDAAA;MACCgB,KAAK,EAAC,OAAO;MACbC,CAAC,EAAC;IAA47C,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AM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/steps-container/edit.js","webpack://multiblocks/./src/steps-container/index.js","webpack://multiblocks/./src/steps-container/save.js","webpack://multiblocks/./src/steps-container/editor.scss","webpack://multiblocks/./src/steps-container/style.scss","webpack://multiblocks/external window \"React\"","webpack://multiblocks/external window [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/webpack/bootstrap","webpack://multiblocks/webpack/runtime/chunk loaded","webpack://multiblocks/webpack/runtime/compat get default export","webpack://multiblocks/webpack/runtime/define property getters","webpack://multiblocks/webpack/runtime/hasOwnProperty shorthand","webpack://multiblocks/webpack/runtime/make namespace object","webpack://multiblocks/webpack/runtime/jsonp chunk loading","webpack://multiblocks/webpack/before-startup","webpack://multiblocks/webpack/startup","webpack://multiblocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport \"./editor.scss\";\n\nimport { useBlockProps, InnerBlocks } from \"@wordpress/block-editor\";\nexport default function Edit() {\n\tlet { hasStepIcons, hasLateralCover } = attributes;\n\treturn (\n\t\t\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\n\t\t\t\n\t\t),\n\t},\n\n\tsupports: metadata.supports,\n\tattributes: metadata.attributes,\n\tedit: Edit,\n\tsave: Save,\n});\n","import { useBlockProps, RichText, InnerBlocks } from \"@wordpress/block-editor\";\n\nexport default function save() {\n\treturn (\n\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 {};","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"i18n\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"steps-container/index\": 0,\n\t\"steps-container/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkmultiblocks\"] = globalThis[\"webpackChunkmultiblocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"steps-container/style-index\"], () => (__webpack_require__(\"./src/steps-container/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","Edit","hasStepIcons","hasLateralCover","attributes","createElement","className","allowedBlocks","template","tipTitle","templateLock","registerBlockType","metadata","Save","name","title","icon","foreground","src","viewBox","id","class","d","supports","edit","save","RichText","Content"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/timeline/build/steps-container/style-index.css b/blocks/timeline/build/steps-container/style-index.css deleted file mode 100644 index 34c4ca7..0000000 --- a/blocks/timeline/build/steps-container/style-index.css +++ /dev/null @@ -1,4 +0,0 @@ -/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/.pnpm/css-loader@6.10.0_webpack@5.90.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/.pnpm/postcss-loader@6.2.1_postcss@8.4.35_webpack@5.90.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/.pnpm/sass-loader@12.6.0_sass@1.71.1_webpack@5.90.3/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/steps-container/style.scss ***! - \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ - diff --git a/blocks/timeline/src/block.json b/blocks/timeline/src/block.json index 1d91e0f..a93e488 100644 --- a/blocks/timeline/src/block.json +++ b/blocks/timeline/src/block.json @@ -25,6 +25,10 @@ "blockSubtitle": { "type": "string" }, + "headingLevel": { + "type": "string", + "default": "h3" + }, "hasLateralCover": { "type": "boolean", "default": false diff --git a/blocks/timeline/src/edit.js b/blocks/timeline/src/edit.js index 37564c5..5ab2c8a 100644 --- a/blocks/timeline/src/edit.js +++ b/blocks/timeline/src/edit.js @@ -1,7 +1,6 @@ import { __ } from "@wordpress/i18n"; import "./editor.scss"; import "./timeline-step"; -// import "./steps-container"; import { useBlockProps, @@ -10,6 +9,7 @@ import { InspectorControls, MediaReplaceFlow, MediaPlaceholder, + BlockControls, } from "@wordpress/block-editor"; import { useEffect } from "@wordpress/element"; @@ -20,10 +20,19 @@ import { Button, RadioControl, ToggleControl, + ToolbarGroup, + ToolbarButton, __experimentalToggleGroupControl as ToggleGroupControl, __experimentalToggleGroupControlOption as ToggleGroupControlOption, } from "@wordpress/components"; import { trash } from "@wordpress/icons"; +import { + headingLevel1, + headingLevel2, + headingLevel3, + headingLevel4, + headingLevel5, +} from "@wordpress/icons"; export default function Edit({ attributes, setAttributes, clientId }) { let { @@ -39,11 +48,12 @@ export default function Edit({ attributes, setAttributes, clientId }) { blockTitle, blockSubtitle, hasTitle, + headingLevel, } = attributes; let children = useSelect( (select) => - select("core/block-editor").getBlocksByClientId(clientId)[0].innerBlocks + select("core/block-editor").getBlocksByClientId(clientId)[0].innerBlocks, ); function onChangeBlockTitle(blockTitle) { @@ -52,6 +62,9 @@ export default function Edit({ attributes, setAttributes, clientId }) { function onChangeBlockSubtitle(blockSubtitle) { setAttributes({ blockSubtitle }); } + function onChangeHeadingLevel(newHeadingLevel) { + setAttributes({ headingLevel: newHeadingLevel }); + } function onChangeImagesDispositionType(disposition) { if (disposition === "hasStepPictures") { @@ -227,6 +240,45 @@ export default function Edit({ attributes, setAttributes, clientId }) { )} + + + { + onChangeHeadingLevel("h1"); + }} + /> + { + onChangeHeadingLevel("h2"); + }} + /> + { + onChangeHeadingLevel("h3"); + }} + /> + { + onChangeHeadingLevel("h4"); + }} + /> + { + onChangeHeadingLevel("h5"); + }} + /> + +
diff --git a/blocks/timeline/src/save.js b/blocks/timeline/src/save.js index 10b8320..3655d56 100644 --- a/blocks/timeline/src/save.js +++ b/blocks/timeline/src/save.js @@ -13,6 +13,7 @@ export default function save({ attributes }) { lateralCoverAlt, lateralCoverCaption, lateralCoverDescription, + headingLevel, } = attributes; return ( @@ -32,12 +33,12 @@ export default function save({ attributes }) {
diff --git a/blocks/timeline/src/steps-container/block.json b/blocks/timeline/src/steps-container/block.json deleted file mode 100644 index 7dd7e5a..0000000 --- a/blocks/timeline/src/steps-container/block.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://schemas.wp.org/trunk/block.json", - "apiVersion": 2, - "name": "homegrade-content-blocks/timeline-steps-container", - "version": "0.1.0", - "title": "Étapes", - "category": "homegrade-blocks", - "description": "steps container", - "supports": { - "html": false - }, - "editorScript": "file:./index.js", - "editorStyle": "file:./index.css", - "style": "file:./style-index.css" -} \ No newline at end of file diff --git a/blocks/timeline/src/steps-container/edit.js b/blocks/timeline/src/steps-container/edit.js deleted file mode 100644 index 0c40e45..0000000 --- a/blocks/timeline/src/steps-container/edit.js +++ /dev/null @@ -1,23 +0,0 @@ -import { __ } from "@wordpress/i18n"; -import "./editor.scss"; - -import { useBlockProps, InnerBlocks } from "@wordpress/block-editor"; -export default function Edit() { - let { hasStepIcons, hasLateralCover } = attributes; - return ( -
- -
- ); -} diff --git a/blocks/timeline/src/steps-container/editor.scss b/blocks/timeline/src/steps-container/editor.scss deleted file mode 100644 index 149c94c..0000000 --- a/blocks/timeline/src/steps-container/editor.scss +++ /dev/null @@ -1 +0,0 @@ -// HANDLED BY PARENT BLOCK diff --git a/blocks/timeline/src/steps-container/index.js b/blocks/timeline/src/steps-container/index.js deleted file mode 100644 index 96e016a..0000000 --- a/blocks/timeline/src/steps-container/index.js +++ /dev/null @@ -1,28 +0,0 @@ -import { registerBlockType } from "@wordpress/blocks"; -import "./style.scss"; -import metadata from "./block.json"; - -import Edit from "./edit"; -import Save from "./save"; - -registerBlockType(metadata.name, { - title: metadata.title, - icon: { - foreground: "#DF1E1E", - src: ( - - - - - - ), - }, - - supports: metadata.supports, - attributes: metadata.attributes, - edit: Edit, - save: Save, -}); diff --git a/blocks/timeline/src/steps-container/save.js b/blocks/timeline/src/steps-container/save.js deleted file mode 100644 index 7ea7a07..0000000 --- a/blocks/timeline/src/steps-container/save.js +++ /dev/null @@ -1,13 +0,0 @@ -import { useBlockProps, RichText, InnerBlocks } from "@wordpress/block-editor"; - -export default function save() { - return ( -
- -
- ); -} diff --git a/blocks/timeline/src/steps-container/style.scss b/blocks/timeline/src/steps-container/style.scss deleted file mode 100644 index 9613619..0000000 --- a/blocks/timeline/src/steps-container/style.scss +++ /dev/null @@ -1 +0,0 @@ -// HANDLED BY PARENT BLOCK \ No newline at end of file