diff --git a/blocks/timeline/build/index.asset.php b/blocks/timeline/build/index.asset.php index 48adbee..9add5f0 100644 --- a/blocks/timeline/build/index.asset.php +++ b/blocks/timeline/build/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'be9ed402b020cb138b51'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '511d7f4ee6b5886d98a7'); diff --git a/blocks/timeline/build/index.js b/blocks/timeline/build/index.js index c09ca09..dd80554 100644 --- a/blocks/timeline/build/index.js +++ b/blocks/timeline/build/index.js @@ -142,10 +142,10 @@ function Edit({ timelineStepSubtitle: "sous titre" }]]; return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.InspectorControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Variantes de Timeline", "homegrade-blocks__texte-backoffice"), + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Variantes de Timeline", "homegrade-blocks"), className: "homegrade-blocks-timeline__panel-body homegrade-blocks-components-image__panel-body" }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.PanelRow, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Titre de bloc", "homegrade-blocks__texte-backoffice"), + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Titre de bloc", "homegrade-blocks"), help: hasTitle ? "Titre de bloc." : "Ne pas afficher de bloc titrage", checked: hasTitle, onChange: onChangeHasTitle @@ -180,6 +180,9 @@ function Edit({ }, { label: "Hauteur originale", value: "xl" + }, { + label: "Illustration", + value: "illustration" }], onChange: handlelateralPicturesFormatChange })), lateralCoverUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", { @@ -482,7 +485,7 @@ function Edit({ }, [hasStepIcon]); return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InspectorControls, null, hasStepPicture && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, { className: "homegrade-blocks-timeline-step__panel-body homegrade-blocks-timeline-step__panel-body--image", - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Image", "homegrade-blocks__texte-backoffice") + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Image", "homegrade-blocks") }, timelineStepImageUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", { src: timelineStepImageUrl, alt: timelineStepImageAlt @@ -494,7 +497,7 @@ function Edit({ allowedTypes: ["image"], accept: "image/*", onSelect: setImageAttributes, - name: !timelineStepImageUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter", "homegrade-blocks__texte-backoffice") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Remplacer", "homegrade-blocks__texte-backoffice") + name: !timelineStepImageUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter", "homegrade-blocks") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Remplacer", "homegrade-blocks") }), timelineStepImageUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Button, { className: "custom-flow-button", variant: "primary", diff --git a/blocks/timeline/build/index.js.map b/blocks/timeline/build/index.js.map index 6f50872..ef3511f 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,WAAW,KAAK,iBAAiB,EAAE;MACtCrB,aAAa,CAAC;QAA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AAC;AACD,iEAAe,KAAK,EAAC;AACrB;;;;;;;;;;ACbA;;;;;;;;;;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;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC7BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEnDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/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","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 [\"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[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"index\": 0,\n\t\"./style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkmultiblocks\"] = self[\"webpackChunkmultiblocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"./style-index\"], () => (__webpack_require__(\"./src/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","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;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,WAAW,KAAK,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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;;;;;;;;;;;;;;;;;;;;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC7BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEnDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/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?0339","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 [\"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[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"index\": 0,\n\t\"./style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkmultiblocks\"] = self[\"webpackChunkmultiblocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"./style-index\"], () => (__webpack_require__(\"./src/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","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 diff --git a/blocks/timeline/build/timeline-step copy/block.json b/blocks/timeline/build/timeline-step copy/block.json deleted file mode 100644 index 3724989..0000000 --- a/blocks/timeline/build/timeline-step copy/block.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "$schema": "https://schemas.wp.org/trunk/block.json", - "apiVersion": 2, - "name": "homegrade-content-blocks/timeline-step", - "version": "0.1.0", - "title": "Étape de timeline", - "category": "homegrade-blocks", - "description": "Bloc d'étape de timeline", - "supports": { - "html": false - }, - "editorScript": "file:./index.js", - "editorStyle": "file:./index.css", - "style": "file:./style-index.css", - "attributes": { - "timelineStepTitle": { - "type": "string", - "default": "" - }, - "timelineStepSubtitle": { - "type": "string", - "default": "" - }, - "timelineStepImageUrl": { - "type": "string" - }, - "timelineStepImageId": { - "type": "number" - }, - "timelineStepImageCaption": { - "type": "string" - }, - "timelineStepImageDescription": { - "type": "string" - }, - "timelineStepImageAlt": { - "type": "string", - "source": "attribute", - "selector": "img", - "attribute": "alt", - "default": "" - }, - "timelineStepIconUrl": { - "type": "string" - }, - "timelineStepIconId": { - "type": "number" - }, - "timelineStepIconAlt": { - "type": "string", - "source": "attribute", - "selector": "img", - "attribute": "alt", - "default": "" - }, - "hasStepIcon": { - "type": "boolean", - "default": true - }, - "hasStepPicture": { - "type": "boolean", - "default": true - } - } -} \ No newline at end of file diff --git a/blocks/timeline/build/timeline-step copy/index.asset.php b/blocks/timeline/build/timeline-step copy/index.asset.php deleted file mode 100644 index 9c187a4..0000000 --- a/blocks/timeline/build/timeline-step copy/index.asset.php +++ /dev/null @@ -1 +0,0 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '159682f2c74a19a6326f'); diff --git a/blocks/timeline/build/timeline-step copy/index.css b/blocks/timeline/build/timeline-step copy/index.css deleted file mode 100644 index b58eed4..0000000 --- a/blocks/timeline/build/timeline-step copy/index.css +++ /dev/null @@ -1,4 +0,0 @@ -/*!***********************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/timeline-step copy/editor.scss ***! - \***********************************************************************************************************************************************************************************************************************************************************/ - diff --git a/blocks/timeline/build/timeline-step copy/index.js b/blocks/timeline/build/timeline-step copy/index.js deleted file mode 100644 index bedc92a..0000000 --- a/blocks/timeline/build/timeline-step copy/index.js +++ /dev/null @@ -1,625 +0,0 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({ - -/***/ "./src/timeline-step copy/edit.js": -/*!****************************************!*\ - !*** ./src/timeline-step copy/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 _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/timeline-step copy/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__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/icons */ "../../node_modules/@wordpress/icons/build-module/library/trash.js"); - - - - - - - - -function Edit({ - attributes, - setAttributes, - ...props -}) { - let { - timelineStepTitle, - timelineStepSubtitle, - timelineStepImageUrl, - timelineStepImageId, - timelineStepImageAlt, - timelineStepImageCaption, - timelineStepImageDescription, - timelineStepIconUrl, - timelineStepIconId, - timelineStepIconAlt, - hasStepPicture, - hasStepIcon - } = attributes; - function onChangeTimelineStepTitle(timelineStepTitle) { - setAttributes({ - timelineStepTitle - }); - } - function onChangeTimelineDescription(timelineStepSubtitle) { - setAttributes({ - timelineStepSubtitle - }); - } - function setImageAttributes(media) { - if (!media || !media.url) { - setAttributes({ - timelineStepImageUrl: null, - timelineStepImageId: null, - timelineStepImageAlt: null, - timelineStepImageCaption: null, - timelineStepImageDescription: null - }); - return; - } - setAttributes({ - timelineStepImageUrl: media.url, - timelineStepImageId: media.id, - timelineStepImageAlt: media?.alt, - timelineStepImageCaption: media?.caption, - timelineStepImageDescription: media?.description - }); - } - function removeImageAttributes() { - setAttributes({ - timelineStepImageUrl: null, - timelineStepImageId: null, - timelineStepImageAlt: null - }); - } - function setIconAttributes(media) { - console.log(media); - if (!media || !media.url) { - setAttributes({ - timelineStepIconUrl: null, - timelineStepIconId: null, - timelineStepIconAlt: null - }); - return; - } - setAttributes({ - timelineStepIconUrl: media.url, - timelineStepIconId: media.id, - timelineStepIconAlt: media?.alt - }); - } - function removeIconAttributes() { - setAttributes({ - timelineStepIconUrl: null, - timelineStepIconId: null, - timelineStepIconAlt: null - }); - } - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (hasStepPicture === false) { - setImageAttributes(null); - } - }, [hasStepPicture]); - (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (hasStepIcon === false) { - setIconAttributes(null); - } - }, [hasStepIcon]); - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InspectorControls, null, hasStepPicture && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, { - className: "homegrade-blocks-timeline-step__panel-body homegrade-blocks-timeline-step__panel-body--image", - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Image", "homegrade-blocks__texte-backoffice") - }, timelineStepImageUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", { - src: timelineStepImageUrl, - alt: timelineStepImageAlt - }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - className: "media-replace-container" - }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.MediaReplaceFlow, { - mediaId: timelineStepImageId, - mediaUrl: timelineStepImageUrl, - allowedTypes: ["image"], - accept: "image/*", - onSelect: setImageAttributes, - name: !timelineStepImageUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter", "homegrade-blocks__texte-backoffice") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Remplacer", "homegrade-blocks__texte-backoffice") - }), timelineStepImageUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Button, { - className: "custom-flow-button", - variant: "primary", - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__["default"], - label: "Supprimer", - onClick: removeImageAttributes - }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Tip, null, "Si besoin, Utilisez le champ \"L\xE9gende\"de la m\xE9diath\xE8que pour afficher un copyright"), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Tip, null, "Si besoin, Utilisez le champ \"Description\" de la m\xE9diath\xE8que pour donner afficher une description de votre image")), hasStepIcon && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, { - className: "homegrade-blocks-timeline-step__panel-body homegrade-blocks-timeline-step__panel-body--icon", - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Icone", "homegrade-blocks__texte-backoffice") - }, timelineStepIconUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", { - src: timelineStepIconUrl, - alt: timelineStepIconAlt - }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - className: "media-replace-container" - }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.MediaReplaceFlow, { - mediaId: timelineStepIconId, - mediaUrl: timelineStepIconUrl, - allowedTypes: ["image"], - accept: "image/*", - onSelect: setIconAttributes, - name: !timelineStepIconUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter", "homegrade-blocks__texte-backoffice") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Remplacer", "homegrade-blocks__texte-backoffice") - }), timelineStepIconUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Button, { - className: "custom-flow-button", - variant: "primary", - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__["default"], - label: "Supprimer", - onClick: removeIconAttributes - })))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.BlockControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ToolbarGroup, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.MediaReplaceFlow, { - mediaId: timelineStepImageId, - mediaUrl: timelineStepImageUrl, - allowedTypes: ["image"], - accept: "image/*", - onSelect: setImageAttributes, - name: !timelineStepImageUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter une Image", "homegrade-blocks__texte-backoffice") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Remplacer Image", "homegrade-blocks__texte-backoffice") - }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.ToolbarButton, { - title: "Supprimer Image", - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__["default"], - isActive: timelineStepImageUrl, - onClick: removeImageAttributes - }))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.useBlockProps)({ - className: `homegrade-blocks-timeline-step` - }) - }, hasStepPicture && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - className: "homegrade-blocks-timeline-step__cover" - }, !timelineStepImageUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.MediaPlaceholder, { - accept: "image/*", - allowedTypes: ["image"], - onSelect: setImageAttributes, - multiple: false, - handleUpload: true - }), timelineStepImageUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", { - src: timelineStepImageUrl, - alt: timelineStepImageAlt - }), timelineStepImageDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, timelineStepImageDescription), timelineStepImageCaption && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", null, timelineStepImageCaption)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - className: `homegrade-blocks-timeline-step__content` - }, hasStepIcon && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - className: "homegrade-blocks-timeline-step__icon" - }, !timelineStepIconUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", { - className: "please-add-icon" - }, "Ajoutez une icone !"), timelineStepIconUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", { - src: timelineStepIconUrl, - alt: timelineStepIconAlt - })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - className: "homegrade-blocks-timeline-step__text-content" - }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.RichText, { - tagName: "h3", - className: "homegrade-blocks-timeline-step__title", - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Date ou Titre de l'étape", "homegrade-blocks__texte-backoffice"), - value: timelineStepTitle, - onChange: onChangeTimelineStepTitle - }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.RichText, { - tagName: "h2", - className: "homegrade-blocks-timeline-step__subtitle", - placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Titre / Sous-titre de l'étape", "homegrade-blocks__texte-backoffice"), - value: timelineStepSubtitle, - onChange: onChangeTimelineDescription - }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InnerBlocks, { - allowedBlocks: ["core/paragraph", "core/button", "core/buttons", "core/list"] - }))))); -} - -/***/ }), - -/***/ "./src/timeline-step copy/index.js": -/*!*****************************************!*\ - !*** ./src/timeline-step copy/index.js ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./src/timeline-step copy/style.scss"); -/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/timeline-step copy/block.json"); -/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ "./src/timeline-step copy/edit.js"); -/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ "./src/timeline-step copy/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,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { - version: "1.1", - x: "0px", - y: "0px", - viewBox: "0 0 100 125", - "enable-background": "new 0 0 100 100" - }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { - d: "M84.6,33.6c-0.8-1.1-2.3-1.5-3.5-0.7c-1.1,0.8-1.5,2.3-0.7,3.5l7.4,11.1H66c-1.2-7.8-7.9-13.8-16-13.8s-14.8,6-16,13.8H7.5 C6.1,47.5,5,48.6,5,50s1.1,2.5,2.5,2.5H34c1.2,7.8,7.9,13.8,16,13.8s14.8-6,16-13.8h21.8l-7.4,11.1c-0.8,1.1-0.5,2.7,0.7,3.5 c0.4,0.3,0.9,0.4,1.4,0.4c0.8,0,1.6-0.4,2.1-1.1l10-15c0.6-0.8,0.6-1.9,0-2.8L84.6,33.6z M50,63.8c-7.6,0-13.8-6.2-13.8-13.8 S42.4,36.3,50,36.3S63.8,42.4,63.8,50S57.6,63.8,50,63.8z" - }))) - }, - 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/timeline-step copy/save.js": -/*!****************************************!*\ - !*** ./src/timeline-step copy/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 _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); - - -function save({ - attributes -}) { - const { - timelineStepTitle, - timelineStepSubtitle, - timelineStepImageUrl, - timelineStepImageAlt, - timelineStepImageCaption, - timelineStepImageDescription, - timelineStepIconUrl, - timelineStepIconAlt, - hasStepPicture, - hasStepIcon - } = attributes; - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({ - className: `homegrade-blocks-timeline-step` - }) - }, hasStepPicture && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("figure", { - className: "homegrade-blocks-timeline-step__cover" - }, timelineStepImageUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", { - src: timelineStepImageUrl, - alt: timelineStepImageAlt - }), (timelineStepImageDescription || timelineStepImageCaption) && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("figcaption", null, timelineStepImageDescription && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", { - className: "description" - }, timelineStepImageDescription), timelineStepImageCaption && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", { - className: "caption" - }, timelineStepImageCaption))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - className: `homegrade-blocks-timeline-step__content` - }, hasStepIcon && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - className: "homegrade-blocks-timeline-step__icon" - }, timelineStepIconUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", { - src: timelineStepIconUrl, - alt: timelineStepIconAlt - })), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - className: "homegrade-blocks-timeline-step__text-content" - }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, { - tagName: "h3", - className: "homegrade-blocks-timeline-step__title", - value: timelineStepTitle - }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, { - tagName: "p", - className: "homegrade-blocks-timeline-step__subtitle", - value: timelineStepSubtitle - }), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks.Content, null)))); -} - -/***/ }), - -/***/ "./src/timeline-step copy/editor.scss": -/*!********************************************!*\ - !*** ./src/timeline-step copy/editor.scss ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/timeline-step copy/style.scss": -/*!*******************************************!*\ - !*** ./src/timeline-step copy/style.scss ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "../../node_modules/@wordpress/icons/build-module/library/trash.js": -/*!*************************************************************************!*\ - !*** ../../node_modules/@wordpress/icons/build-module/library/trash.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - - -/** - * WordPress dependencies - */ - -const trash = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z" -})); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (trash); -//# sourceMappingURL=trash.js.map - -/***/ }), - -/***/ "@wordpress/block-editor": -/*!*************************************!*\ - !*** external ["wp","blockEditor"] ***! - \*************************************/ -/***/ ((module) => { - -module.exports = window["wp"]["blockEditor"]; - -/***/ }), - -/***/ "@wordpress/blocks": -/*!********************************!*\ - !*** external ["wp","blocks"] ***! - \********************************/ -/***/ ((module) => { - -module.exports = window["wp"]["blocks"]; - -/***/ }), - -/***/ "@wordpress/components": -/*!************************************!*\ - !*** external ["wp","components"] ***! - \************************************/ -/***/ ((module) => { - -module.exports = window["wp"]["components"]; - -/***/ }), - -/***/ "@wordpress/element": -/*!*********************************!*\ - !*** external ["wp","element"] ***! - \*********************************/ -/***/ ((module) => { - -module.exports = window["wp"]["element"]; - -/***/ }), - -/***/ "@wordpress/i18n": -/*!******************************!*\ - !*** external ["wp","i18n"] ***! - \******************************/ -/***/ ((module) => { - -module.exports = window["wp"]["i18n"]; - -/***/ }), - -/***/ "@wordpress/primitives": -/*!************************************!*\ - !*** external ["wp","primitives"] ***! - \************************************/ -/***/ ((module) => { - -module.exports = window["wp"]["primitives"]; - -/***/ }), - -/***/ "./src/timeline-step copy/block.json": -/*!*******************************************!*\ - !*** ./src/timeline-step copy/block.json ***! - \*******************************************/ -/***/ ((module) => { - -module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/timeline-step","version":"0.1.0","title":"Étape de timeline","category":"homegrade-blocks","description":"Bloc d\'étape de timeline","supports":{"html":false},"editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"timelineStepTitle":{"type":"string","default":""},"timelineStepSubtitle":{"type":"string","default":""},"timelineStepImageUrl":{"type":"string"},"timelineStepImageId":{"type":"number"},"timelineStepImageCaption":{"type":"string"},"timelineStepImageDescription":{"type":"string"},"timelineStepImageAlt":{"type":"string","source":"attribute","selector":"img","attribute":"alt","default":""},"timelineStepIconUrl":{"type":"string"},"timelineStepIconId":{"type":"number"},"timelineStepIconAlt":{"type":"string","source":"attribute","selector":"img","attribute":"alt","default":""},"hasStepIcon":{"type":"boolean","default":true},"hasStepPicture":{"type":"boolean","default":true}}}'); - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // 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 = deferred[i][0]; -/******/ var fn = deferred[i][1]; -/******/ var priority = deferred[i][2]; -/******/ var fulfilled = true; -/******/ for (var j = 0; j < chunkIds.length; j++) { -/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { -/******/ 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 = { -/******/ "timeline-step copy/index": 0, -/******/ "timeline-step copy/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 = data[0]; -/******/ var moreModules = data[1]; -/******/ var runtime = data[2]; -/******/ // add "moreModules" to the modules object, -/******/ // then flag all "chunkIds" as loaded and fire callback -/******/ var moduleId, chunkId, i = 0; -/******/ 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 = self["webpackChunkmultiblocks"] = self["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, ["timeline-step copy/style-index"], () => (__webpack_require__("./src/timeline-step copy/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/timeline-step copy/index.js.map b/blocks/timeline/build/timeline-step copy/index.js.map deleted file mode 100644 index 2de765b..0000000 --- a/blocks/timeline/build/timeline-step copy/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeline-step copy/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACd;AAQU;AAOF;AACgB;AAC8B;AACpC;AAC1B,SAASe,IAAIA,CAAC;EAAEC,UAAU;EAAEC,aAAa;EAAE,GAAGC;AAAM,CAAC,EAAE;EACrE,IAAI;IACHC,iBAAiB;IACjBC,oBAAoB;IACpBC,oBAAoB;IACpBC,mBAAmB;IACnBC,oBAAoB;IACpBC,wBAAwB;IACxBC,4BAA4B;IAC5BC,mBAAmB;IACnBC,kBAAkB;IAClBC,mBAAmB;IACnBC,cAAc;IACdC;EACD,CAAC,GAAGd,UAAU;EAEd,SAASe,yBAAyBA,CAACZ,iBAAiB,EAAE;IACrDF,aAAa,CAAC;MAAEE;IAAkB,CAAC,CAAC;EACrC;EACA,SAASa,2BAA2BA,CAACZ,oBAAoB,EAAE;IAC1DH,aAAa,CAAC;MAAEG;IAAqB,CAAC,CAAC;EACxC;EACA,SAASa,kBAAkBA,CAACC,KAAK,EAAE;IAClC,IAAI,CAACA,KAAK,IAAI,CAACA,KAAK,CAACC,GAAG,EAAE;MACzBlB,aAAa,CAAC;QACbI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K,EAAC;AACrB;;;;;;;;;;ACbA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC7BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEnDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/timeline-step copy/edit.js","webpack://multiblocks/./src/timeline-step copy/index.js","webpack://multiblocks/./src/timeline-step copy/save.js","webpack://multiblocks/./src/timeline-step copy/editor.scss","webpack://multiblocks/./src/timeline-step copy/style.scss","webpack://multiblocks/../../node_modules/@wordpress/icons/build-module/library/trash.js","webpack://multiblocks/external window [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"components\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"primitives\"]","webpack://multiblocks/webpack/bootstrap","webpack://multiblocks/webpack/runtime/chunk loaded","webpack://multiblocks/webpack/runtime/compat get default export","webpack://multiblocks/webpack/runtime/define property getters","webpack://multiblocks/webpack/runtime/hasOwnProperty shorthand","webpack://multiblocks/webpack/runtime/make namespace object","webpack://multiblocks/webpack/runtime/jsonp chunk loading","webpack://multiblocks/webpack/before-startup","webpack://multiblocks/webpack/startup","webpack://multiblocks/webpack/after-startup"],"sourcesContent":["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 {};","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst trash = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z\"\n}));\nexport default trash;\n//# sourceMappingURL=trash.js.map","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"timeline-step copy/index\": 0,\n\t\"timeline-step copy/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkmultiblocks\"] = self[\"webpackChunkmultiblocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"timeline-step copy/style-index\"], () => (__webpack_require__(\"./src/timeline-step copy/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","InnerBlocks","BlockControls","InspectorControls","PanelBody","ToolbarGroup","ToolbarButton","Button","Tip","useEffect","MediaReplaceFlow","MediaPlaceholder","trash","Edit","attributes","setAttributes","props","timelineStepTitle","timelineStepSubtitle","timelineStepImageUrl","timelineStepImageId","timelineStepImageAlt","timelineStepImageCaption","timelineStepImageDescription","timelineStepIconUrl","timelineStepIconId","timelineStepIconAlt","hasStepPicture","hasStepIcon","onChangeTimelineStepTitle","onChangeTimelineDescription","setImageAttributes","media","url","id","alt","caption","description","removeImageAttributes","setIconAttributes","console","log","removeIconAttributes","createElement","Fragment","className","title","src","mediaId","mediaUrl","allowedTypes","accept","onSelect","name","variant","icon","label","onClick","isActive","multiple","handleUpload","tagName","placeholder","value","onChange","allowedBlocks","registerBlockType","metadata","Save","navigation","foreground","version","x","y","viewBox","d","supports","edit","save","Content"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/timeline/build/timeline-step copy/style-index.css b/blocks/timeline/build/timeline-step copy/style-index.css deleted file mode 100644 index 81b3347..0000000 --- a/blocks/timeline/build/timeline-step copy/style-index.css +++ /dev/null @@ -1,4 +0,0 @@ -/*!**********************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/timeline-step copy/style.scss ***! - \**********************************************************************************************************************************************************************************************************************************************************/ - diff --git a/blocks/timeline/build/timeline-step/index.asset.php b/blocks/timeline/build/timeline-step/index.asset.php index fa78137..21c22f7 100644 --- a/blocks/timeline/build/timeline-step/index.asset.php +++ b/blocks/timeline/build/timeline-step/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'ed40666d63ef263a00eb'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'd6310187cf8ec66ef3bc'); diff --git a/blocks/timeline/build/timeline-step/index.js b/blocks/timeline/build/timeline-step/index.js index 22ef5ed..6b0a732 100644 --- a/blocks/timeline/build/timeline-step/index.js +++ b/blocks/timeline/build/timeline-step/index.js @@ -120,7 +120,7 @@ function Edit({ }, [hasStepIcon]); return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InspectorControls, null, hasStepPicture && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, { className: "homegrade-blocks-timeline-step__panel-body homegrade-blocks-timeline-step__panel-body--image", - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Image", "homegrade-blocks__texte-backoffice") + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Image", "homegrade-blocks") }, timelineStepImageUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", { src: timelineStepImageUrl, alt: timelineStepImageAlt @@ -132,7 +132,7 @@ function Edit({ allowedTypes: ["image"], accept: "image/*", onSelect: setImageAttributes, - name: !timelineStepImageUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter", "homegrade-blocks__texte-backoffice") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Remplacer", "homegrade-blocks__texte-backoffice") + name: !timelineStepImageUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter", "homegrade-blocks") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Remplacer", "homegrade-blocks") }), timelineStepImageUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Button, { className: "custom-flow-button", variant: "primary", diff --git a/blocks/timeline/build/timeline-step/index.js.map b/blocks/timeline/build/timeline-step/index.js.map index 155af55..f7df7cb 100644 --- a/blocks/timeline/build/timeline-step/index.js.map +++ b/blocks/timeline/build/timeline-step/index.js.map @@ -1 +1 @@ -{"version":3,"file":"timeline-step/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACd;AAQU;AAOF;AACgB;AAC8B;AACpC;AAC1B,SAASe,IAAIA,CAAC;EAAEC,UAAU;EAAEC,aAAa;EAAE,GAAGC;AAAM,CAAC,EAAE;EACrE,IAAI;IACHC,iBAAiB;IACjBC,oBAAoB;IACpBC,oBAAoB;IACpBC,mBAAmB;IACnBC,oBAAoB;IACpBC,wBAAwB;IACxBC,4BAA4B;IAC5BC,mBAAmB;IACnBC,kBAAkB;IAClBC,mBAAmB;IACnBC,cAAc;IACdC;EACD,CAAC,GAAGd,UAAU;EAEd,SAASe,yBAAyBA,CAACZ,iBAAiB,EAAE;IACrDF,aAAa,CAAC;MAAEE;IAAk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,MAAE,CAClB,CACD,CACD,CAAC;AAER;;;;;;;;;;;AC9DA;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;;;;ACAmD;;AAEnD;AACA;AACA;AACkD;AAClD,cAAc,iEAAa,CAAC,sDAAG;AAC/B;AACA;AACA,CAAC,EAAE,iEAAa,CAAC,uDAAI;AACrB;AACA,CAAC;AACD,iEAAe,KAAK,EAAC;AACrB;;;;;;;;;;ACbA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC7BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEnDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/timeline-step/edit.js","webpack://multiblocks/./src/timeline-step/index.js","webpack://multiblocks/./src/timeline-step/save.js","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 [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"components\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"primitives\"]","webpack://multiblocks/webpack/bootstrap","webpack://multiblocks/webpack/runtime/chunk loaded","webpack://multiblocks/webpack/runtime/compat get default export","webpack://multiblocks/webpack/runtime/define property getters","webpack://multiblocks/webpack/runtime/hasOwnProperty shorthand","webpack://multiblocks/webpack/runtime/make namespace object","webpack://multiblocks/webpack/runtime/jsonp chunk loading","webpack://multiblocks/webpack/before-startup","webpack://multiblocks/webpack/startup","webpack://multiblocks/webpack/after-startup"],"sourcesContent":["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 {};","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst trash = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z\"\n}));\nexport default trash;\n//# sourceMappingURL=trash.js.map","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"timeline-step/index\": 0,\n\t\"./style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkmultiblocks\"] = self[\"webpackChunkmultiblocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"./style-index\"], () => (__webpack_require__(\"./src/timeline-step/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","InnerBlocks","BlockControls","InspectorControls","PanelBody","ToolbarGroup","ToolbarButton","Button","Tip","useEffect","MediaReplaceFlow","MediaPlaceholder","trash","Edit","attributes","setAttributes","props","timelineStepTitle","timelineStepSubtitle","timelineStepImageUrl","timelineStepImageId","timelineStepImageAlt","timelineStepImageCaption","timelineStepImageDescription","timelineStepIconUrl","timelineStepIconId","timelineStepIconAlt","hasStepPicture","hasStepIcon","onChangeTimelineStepTitle","onChangeTimelineDescription","setImageAttributes","media","url","id","alt","caption","description","removeImageAttributes","setIconAttributes","console","log","removeIconAttributes","createElement","Fragment","className","title","src","mediaId","mediaUrl","allowedTypes","accept","onSelect","name","variant","icon","label","onClick","isActive","multiple","handleUpload","tagName","placeholder","value","onChange","allowedBlocks","registerBlockType","metadata","Save","navigation","foreground","version","x","y","viewBox","d","supports","edit","save","Content"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"timeline-step/index.js","mappings":";;;;;;;;;;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yC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEnDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/timeline-step/edit.js","webpack://multiblocks/./src/timeline-step/index.js","webpack://multiblocks/./src/timeline-step/save.js","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 [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"components\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/external window [\"wp\",\"primitives\"]","webpack://multiblocks/webpack/bootstrap","webpack://multiblocks/webpack/runtime/chunk loaded","webpack://multiblocks/webpack/runtime/compat get default export","webpack://multiblocks/webpack/runtime/define property getters","webpack://multiblocks/webpack/runtime/hasOwnProperty shorthand","webpack://multiblocks/webpack/runtime/make namespace object","webpack://multiblocks/webpack/runtime/jsonp chunk loading","webpack://multiblocks/webpack/before-startup","webpack://multiblocks/webpack/startup","webpack://multiblocks/webpack/after-startup"],"sourcesContent":["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 {};","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst trash = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z\"\n}));\nexport default trash;\n//# sourceMappingURL=trash.js.map","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"timeline-step/index\": 0,\n\t\"./style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkmultiblocks\"] = self[\"webpackChunkmultiblocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"./style-index\"], () => (__webpack_require__(\"./src/timeline-step/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","RichText","InnerBlocks","BlockControls","InspectorControls","PanelBody","ToolbarGroup","ToolbarButton","Button","Tip","useEffect","MediaReplaceFlow","MediaPlaceholder","trash","Edit","attributes","setAttributes","props","timelineStepTitle","timelineStepSubtitle","timelineStepImageUrl","timelineStepImageId","timelineStepImageAlt","timelineStepImageCaption","timelineStepImageDescription","timelineStepIconUrl","timelineStepIconId","timelineStepIconAlt","hasStepPicture","hasStepIcon","onChangeTimelineStepTitle","onChangeTimelineDescription","setImageAttributes","media","url","id","alt","caption","description","removeImageAttributes","setIconAttributes","console","log","removeIconAttributes","createElement","Fragment","className","title","src","mediaId","mediaUrl","allowedTypes","accept","onSelect","name","variant","icon","label","onClick","isActive","multiple","handleUpload","tagName","placeholder","value","onChange","allowedBlocks","registerBlockType","metadata","Save","navigation","foreground","version","x","y","viewBox","d","supports","edit","save","Content"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/timeline/build/timeline-step/style-index.css b/blocks/timeline/build/timeline-step/style-index.css deleted file mode 100644 index ac621a9..0000000 --- a/blocks/timeline/build/timeline-step/style-index.css +++ /dev/null @@ -1,4 +0,0 @@ -/*!*****************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/timeline-step/style.scss ***! - \*****************************************************************************************************************************************************************************************************************************************************/ - diff --git a/blocks/timeline/build/tips-container/block.json b/blocks/timeline/build/tips-container/block.json deleted file mode 100644 index f0aa8cd..0000000 --- a/blocks/timeline/build/tips-container/block.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "$schema": "https://schemas.wp.org/trunk/block.json", - "apiVersion": 2, - "name": "homegrade-content-blocks/tips-container", - "version": "0.1.0", - "title": "tips container", - "category": "homegrade-blocks", - "description": "tips 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/tips-container/index.asset.php b/blocks/timeline/build/tips-container/index.asset.php deleted file mode 100644 index 472432c..0000000 --- a/blocks/timeline/build/tips-container/index.asset.php +++ /dev/null @@ -1 +0,0 @@ - array('wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n'), 'version' => 'e03eaf34cd07ed126eb2'); diff --git a/blocks/timeline/build/tips-container/index.css b/blocks/timeline/build/tips-container/index.css deleted file mode 100644 index 0508eef..0000000 --- a/blocks/timeline/build/tips-container/index.css +++ /dev/null @@ -1,4 +0,0 @@ -/*!*******************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/tips-container/editor.scss ***! - \*******************************************************************************************************************************************************************************************************************************************************/ - diff --git a/blocks/timeline/build/tips-container/index.js b/blocks/timeline/build/tips-container/index.js deleted file mode 100644 index 15aeabf..0000000 --- a/blocks/timeline/build/tips-container/index.js +++ /dev/null @@ -1,358 +0,0 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({ - -/***/ "./src/tips-container/edit.js": -/*!************************************!*\ - !*** ./src/tips-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 _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/tips-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() { - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.useBlockProps)({ - className: `homegrade-blocks-tips-to-know__tips-container` - }) - }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InnerBlocks, { - allowedBlocks: ["homegrade-content-blocks/tip"], - template: [["homegrade-content-blocks/tip", { - tipTitle: "Astuce 1" - }], ["homegrade-content-blocks/tip", { - tipTitle: "Astuce 2" - }]], - templateLock: false - })); -} - -/***/ }), - -/***/ "./src/tips-container/index.js": -/*!*************************************!*\ - !*** ./src/tips-container/index.js ***! - \*************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./src/tips-container/style.scss"); -/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/tips-container/block.json"); -/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ "./src/tips-container/edit.js"); -/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ "./src/tips-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,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 30 30.02" - }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", { - id: "Calque_1-2", - "data-name": "Calque 1" - }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { - class: "cls-1", - d: "m5.55,15.41l9,4.49c.29.13.61.13.9,0l9-4.49c.34-.17.55-.51.55-.89v-6.19l-8.66,4.32c-.85.41-1.83.41-2.68,0l-8.66-4.32v6.19c0,.38.21.72.55.89Zm0-9.03l9,4.48c.29.13.61.13.9,0l9-4.48c.34-.17.55-.52.55-.9,0-.38-.21-.72-.55-.89L15.45.1c-.29-.13-.61-.13-.9,0L5.55,4.59c-.34.17-.55.51-.55.89,0,.38.21.73.55.9Zm2.65,14.62l-3.77,3.38c-1.46-.79-3.28-.25-4.07,1.21s-.25,3.28,1.21,4.07,3.28.25,4.07-1.21c.24-.44.37-.94.36-1.45,0-.39-.08-.77-.23-1.13l4.1-3.65c.21-.19.33-.46.33-.75v-1.47l-2-1v2Zm7.8,3.18v-2.37c-.64.25-1.36.25-2,0v2.37c-1.56.55-2.38,2.27-1.83,3.83.55,1.56,2.27,2.38,3.83,1.83,1.56-.55,2.38-2.27,1.83-3.83-.3-.85-.97-1.53-1.83-1.83Zm11-.18c-.5,0-.99.14-1.43.38l-3.77-3.38v-2l-2,1v1.51c0,.29.12.56.33.75l4.1,3.65c-.15.34-.23.72-.23,1.09,0,1.66,1.34,3,3,3s3-1.34,3-3-1.34-3-3-3Z" - }))) - }, - 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/tips-container/save.js": -/*!************************************!*\ - !*** ./src/tips-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 _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__); - - -function save() { - return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { - ..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({ - className: `homegrade-blocks-tips-to-know__tips-container` - }) - }, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks.Content, null)); -} - -/***/ }), - -/***/ "./src/tips-container/editor.scss": -/*!****************************************!*\ - !*** ./src/tips-container/editor.scss ***! - \****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "./src/tips-container/style.scss": -/*!***************************************!*\ - !*** ./src/tips-container/style.scss ***! - \***************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -// extracted by mini-css-extract-plugin - - -/***/ }), - -/***/ "@wordpress/block-editor": -/*!*************************************!*\ - !*** external ["wp","blockEditor"] ***! - \*************************************/ -/***/ ((module) => { - -module.exports = window["wp"]["blockEditor"]; - -/***/ }), - -/***/ "@wordpress/blocks": -/*!********************************!*\ - !*** external ["wp","blocks"] ***! - \********************************/ -/***/ ((module) => { - -module.exports = window["wp"]["blocks"]; - -/***/ }), - -/***/ "@wordpress/element": -/*!*********************************!*\ - !*** external ["wp","element"] ***! - \*********************************/ -/***/ ((module) => { - -module.exports = window["wp"]["element"]; - -/***/ }), - -/***/ "@wordpress/i18n": -/*!******************************!*\ - !*** external ["wp","i18n"] ***! - \******************************/ -/***/ ((module) => { - -module.exports = window["wp"]["i18n"]; - -/***/ }), - -/***/ "./src/tips-container/block.json": -/*!***************************************!*\ - !*** ./src/tips-container/block.json ***! - \***************************************/ -/***/ ((module) => { - -module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/tips-container","version":"0.1.0","title":"tips container","category":"homegrade-blocks","description":"tips 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 = deferred[i][0]; -/******/ var fn = deferred[i][1]; -/******/ var priority = deferred[i][2]; -/******/ var fulfilled = true; -/******/ for (var j = 0; j < chunkIds.length; j++) { -/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { -/******/ 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 = { -/******/ "tips-container/index": 0, -/******/ "tips-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 = data[0]; -/******/ var moreModules = data[1]; -/******/ var runtime = data[2]; -/******/ // add "moreModules" to the modules object, -/******/ // then flag all "chunkIds" as loaded and fire callback -/******/ var moduleId, chunkId, i = 0; -/******/ 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 = self["webpackChunkmultiblocks"] = self["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, ["tips-container/style-index"], () => (__webpack_require__("./src/tips-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/tips-container/index.js.map b/blocks/timeline/build/tips-container/index.js.map deleted file mode 100644 index ea8b8a0..0000000 --- a/blocks/timeline/build/tips-container/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tips-container/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;AAAqC;AAC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AA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC7BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEnDA;UACA;UACA;UACA;UACA","sources":["webpack://multiblocks/./src/tips-container/edit.js","webpack://multiblocks/./src/tips-container/index.js","webpack://multiblocks/./src/tips-container/save.js","webpack://multiblocks/./src/tips-container/editor.scss","webpack://multiblocks/./src/tips-container/style.scss","webpack://multiblocks/external window [\"wp\",\"blockEditor\"]","webpack://multiblocks/external window [\"wp\",\"blocks\"]","webpack://multiblocks/external window [\"wp\",\"element\"]","webpack://multiblocks/external window [\"wp\",\"i18n\"]","webpack://multiblocks/webpack/bootstrap","webpack://multiblocks/webpack/runtime/chunk loaded","webpack://multiblocks/webpack/runtime/compat get default export","webpack://multiblocks/webpack/runtime/define property getters","webpack://multiblocks/webpack/runtime/hasOwnProperty shorthand","webpack://multiblocks/webpack/runtime/make namespace object","webpack://multiblocks/webpack/runtime/jsonp chunk loading","webpack://multiblocks/webpack/before-startup","webpack://multiblocks/webpack/startup","webpack://multiblocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport \"./editor.scss\";\n\nimport {\n\tuseBlockProps,\n\tInnerBlocks,\n\tInspectorControls,\n} from \"@wordpress/block-editor\";\nexport default function Edit() {\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[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"i18n\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"tips-container/index\": 0,\n\t\"tips-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 = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkmultiblocks\"] = self[\"webpackChunkmultiblocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"tips-container/style-index\"], () => (__webpack_require__(\"./src/tips-container/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","InnerBlocks","InspectorControls","Edit","createElement","className","allowedBlocks","template","tipTitle","templateLock","registerBlockType","metadata","Save","name","title","icon","foreground","src","xmlns","viewBox","id","class","d","supports","attributes","edit","save","RichText","Content"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/timeline/build/tips-container/style-index.css b/blocks/timeline/build/tips-container/style-index.css deleted file mode 100644 index 1c3f752..0000000 --- a/blocks/timeline/build/tips-container/style-index.css +++ /dev/null @@ -1,4 +0,0 @@ -/*!******************************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/tips-container/style.scss ***! - \******************************************************************************************************************************************************************************************************************************************************/ - diff --git a/blocks/timeline/src/edit.js b/blocks/timeline/src/edit.js index e5a6ffb..37564c5 100644 --- a/blocks/timeline/src/edit.js +++ b/blocks/timeline/src/edit.js @@ -188,6 +188,7 @@ export default function Edit({ attributes, setAttributes, clientId }) { { label: "Carré", value: "squared" }, { label: "Moyenne", value: "md" }, { label: "Hauteur originale", value: "xl" }, + { label: "Illustration", value: "illustration" }, ]} onChange={handlelateralPicturesFormatChange} />