updating features and compatible blocks
This commit is contained in:
parent
9c1a6c0764
commit
63ffbc5fe6
|
|
@ -12,13 +12,5 @@
|
||||||
"textdomain": "homegrade-blocks",
|
"textdomain": "homegrade-blocks",
|
||||||
"editorScript": "file:./index.js",
|
"editorScript": "file:./index.js",
|
||||||
"editorStyle": "file:./index.css",
|
"editorStyle": "file:./index.css",
|
||||||
"style": "file:./style-index.css",
|
"style": "file:./style-index.css"
|
||||||
"attributes": {
|
|
||||||
"blockTitle": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"blockSubtitle": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
@ -1 +1 @@
|
||||||
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'a593e0c519dc4ad03aeb');
|
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '941b9438f441af773bd3');
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,4 @@
|
||||||
/*!****************************************************************************************************************************************************************************************************************************************!*\
|
/*!****************************************************************************************************************************************************************************************************************************************!*\
|
||||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/editor.scss ***!
|
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/editor.scss ***!
|
||||||
\****************************************************************************************************************************************************************************************************************************************/
|
\****************************************************************************************************************************************************************************************************************************************/
|
||||||
.homegrade-blocks-staff-list .homegrade-blocks-staff-list__staff-list {
|
|
||||||
display: unset;
|
|
||||||
}
|
|
||||||
.homegrade-blocks-staff-list .block-editor-block-list__layout {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
}
|
|
||||||
/*!********************************************************************************************************************************************************************************************************************************************************!*\
|
|
||||||
!*** 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/nested-children/editor.scss ***!
|
|
||||||
\********************************************************************************************************************************************************************************************************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
/*# sourceMappingURL=index.css.map*/
|
|
||||||
|
|
@ -2,116 +2,6 @@
|
||||||
/******/ "use strict";
|
/******/ "use strict";
|
||||||
/******/ var __webpack_modules__ = ({
|
/******/ var __webpack_modules__ = ({
|
||||||
|
|
||||||
/***/ "./src/nested-children/img/homegrade_mascotte.svg":
|
|
||||||
/*!********************************************************!*\
|
|
||||||
!*** ./src/nested-children/img/homegrade_mascotte.svg ***!
|
|
||||||
\********************************************************/
|
|
||||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
||||||
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
||||||
/* harmony export */ ReactComponent: () => (/* binding */ SvgHomegradeMascotte),
|
|
||||||
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
||||||
/* harmony export */ });
|
|
||||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
||||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
||||||
var _defs, _g, _g2;
|
|
||||||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
||||||
|
|
||||||
var SvgHomegradeMascotte = function SvgHomegradeMascotte(props) {
|
|
||||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({
|
|
||||||
id: "homegrade_mascotte_svg__mascotte",
|
|
||||||
xmlns: "http://www.w3.org/2000/svg",
|
|
||||||
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
||||||
viewBox: "0 0 60 60"
|
|
||||||
}, props), _defs || (_defs = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("defs", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("linearGradient", {
|
|
||||||
id: "homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3",
|
|
||||||
"data-name": "D\\xE9grad\\xE9 sans nom 3",
|
|
||||||
x1: -2280.28,
|
|
||||||
y1: 80.03,
|
|
||||||
x2: -2279.29,
|
|
||||||
y2: 78.98,
|
|
||||||
gradientTransform: "matrix(2.63 0 0 -7.44 6033.72 622.47)",
|
|
||||||
gradientUnits: "userSpaceOnUse"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("stop", {
|
|
||||||
offset: 0,
|
|
||||||
stopColor: "#f3281d"
|
|
||||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("stop", {
|
|
||||||
offset: 1,
|
|
||||||
stopColor: "#fe766f"
|
|
||||||
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("linearGradient", {
|
|
||||||
id: "homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3-2",
|
|
||||||
"data-name": "D\\xE9grad\\xE9 sans nom 3",
|
|
||||||
x1: -2276.06,
|
|
||||||
y1: 80.02,
|
|
||||||
x2: -2275.06,
|
|
||||||
y2: 78.97,
|
|
||||||
gradientTransform: "matrix(2.62 0 0 -7.44 6009.38 619.45)",
|
|
||||||
xlinkHref: "#homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3"
|
|
||||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("style", null, ".homegrade_mascotte_svg__cls-3{fill:#fff;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px}"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_5862",
|
|
||||||
"data-name": "Groupe 5862"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_3195",
|
|
||||||
"data-name": "Groupe 3195"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_de_masques_1",
|
|
||||||
"data-name": "Groupe de masques 1"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_5593",
|
|
||||||
"data-name": "Groupe 5593"
|
|
||||||
}, _g || (_g = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_5595",
|
|
||||||
"data-name": "Groupe 5595"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_5594",
|
|
||||||
"data-name": "Groupe 5594"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23844",
|
|
||||||
"data-name": "Trac\\xE9 23844",
|
|
||||||
className: "homegrade_mascotte_svg__cls-3",
|
|
||||||
d: "M12.46 54.29c.34-1.09.82-2.53 1.49-4.18 0 0 .36-.88.77-1.79 1.62-3.6 5.34-9.45 5.6-9.85l18.98-6.94.29 7.22c2.01 1.44 3.72 3.25 5.03 5.34 1 1.61 1.76 3.35 2.25 5.18.42 1.65.64 3.34.66 5.03"
|
|
||||||
})))), _g2 || (_g2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_5596",
|
|
||||||
"data-name": "Groupe 5596"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23846",
|
|
||||||
"data-name": "Trac\\xE9 23846",
|
|
||||||
className: "homegrade_mascotte_svg__cls-3",
|
|
||||||
d: "m47.07 36.61-14.99 8.65v-17.2l7.49-13.7 7.5 5.05V36.6Z"
|
|
||||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23847",
|
|
||||||
"data-name": "Trac\\xE9 23847",
|
|
||||||
className: "homegrade_mascotte_svg__cls-3",
|
|
||||||
d: "M32.08 45.26 17.1 36.61V19.42l14.98 8.65v17.19Z"
|
|
||||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23848",
|
|
||||||
"data-name": "Trac\\xE9 23848",
|
|
||||||
className: "homegrade_mascotte_svg__cls-3",
|
|
||||||
d: "m17.1 19.41 7.49-13.7 14.98 8.65-7.49 13.7-14.98-8.65Z"
|
|
||||||
}))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23849",
|
|
||||||
"data-name": "Trac\\xE9 23849",
|
|
||||||
d: "m36.34 33.91 2.63-1.52v-5.92l-2.63 1.51v5.93Z",
|
|
||||||
style: {
|
|
||||||
strokeWidth: 0,
|
|
||||||
fill: "url(#homegrade_mascotte_svg__D\xE9grad\xE9_sans_nom_3)"
|
|
||||||
}
|
|
||||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23850",
|
|
||||||
"data-name": "Trac\\xE9 23850",
|
|
||||||
d: "m41.32 31.05 2.62-1.51v-5.93l-2.62 1.51v5.93Z",
|
|
||||||
style: {
|
|
||||||
fill: "url(#homegrade_mascotte_svg__D\xE9grad\xE9_sans_nom_3-2)",
|
|
||||||
strokeWidth: 0
|
|
||||||
}
|
|
||||||
}))))));
|
|
||||||
};
|
|
||||||
|
|
||||||
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0ibWFzY290dGUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZpZXdCb3g9IjAgMCA2MCA2MCI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMSB7CiAgICAgICAgZmlsbDogdXJsKCNEw6lncmFkw6lfc2Fuc19ub21fMyk7CiAgICAgIH0KCiAgICAgIC5jbHMtMSwgLmNscy0yIHsKICAgICAgICBzdHJva2Utd2lkdGg6IDBweDsKICAgICAgfQoKICAgICAgLmNscy0zIHsKICAgICAgICBmaWxsOiAjZmZmOwogICAgICAgIHN0cm9rZTogIzAwMDsKICAgICAgICBzdHJva2UtbGluZWNhcDogcm91bmQ7CiAgICAgICAgc3Ryb2tlLWxpbmVqb2luOiByb3VuZDsKICAgICAgICBzdHJva2Utd2lkdGg6IDJweDsKICAgICAgfQoKICAgICAgLmNscy0yIHsKICAgICAgICBmaWxsOiB1cmwoI0TDqWdyYWTDqV9zYW5zX25vbV8zLTIpOwogICAgICB9CiAgICA8L3N0eWxlPgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJEw6lncmFkw6lfc2Fuc19ub21fMyIgZGF0YS1uYW1lPSJEw6lncmFkw6kgc2FucyBub20gMyIgeDE9Ii0yMjgwLjI4IiB5MT0iODAuMDMiIHgyPSItMjI3OS4yOSIgeTI9Ijc4Ljk4IiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDYwMzMuNzIgNjIyLjQ3KSBzY2FsZSgyLjYzIC03LjQ0KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmMzI4MWQiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmU3NjZmIi8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJEw6lncmFkw6lfc2Fuc19ub21fMy0yIiBkYXRhLW5hbWU9IkTDqWdyYWTDqSBzYW5zIG5vbSAzIiB4MT0iLTIyNzYuMDYiIHkxPSI4MC4wMiIgeDI9Ii0yMjc1LjA2IiB5Mj0iNzguOTciIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoNjAwOS4zOCA2MTkuNDUpIHNjYWxlKDIuNjIgLTcuNDQpIiB4bGluazpocmVmPSIjRMOpZ3JhZMOpX3NhbnNfbm9tXzMiLz4KICA8L2RlZnM+CiAgPGcgaWQ9Ikdyb3VwZV81ODYyIiBkYXRhLW5hbWU9Ikdyb3VwZSA1ODYyIj4KICAgIDxnIGlkPSJHcm91cGVfMzE5NSIgZGF0YS1uYW1lPSJHcm91cGUgMzE5NSI+CiAgICAgIDxnIGlkPSJHcm91cGVfZGVfbWFzcXVlc18xIiBkYXRhLW5hbWU9Ikdyb3VwZSBkZSBtYXNxdWVzIDEiPgogICAgICAgIDxnIGlkPSJHcm91cGVfNTU5MyIgZGF0YS1uYW1lPSJHcm91cGUgNTU5MyI+CiAgICAgICAgICA8ZyBpZD0iR3JvdXBlXzU1OTUiIGRhdGEtbmFtZT0iR3JvdXBlIDU1OTUiPgogICAgICAgICAgICA8ZyBpZD0iR3JvdXBlXzU1OTQiIGRhdGEtbmFtZT0iR3JvdXBlIDU1OTQiPgogICAgICAgICAgICAgIDxwYXRoIGlkPSJUcmFjw6lfMjM4NDQiIGRhdGEtbmFtZT0iVHJhY8OpIDIzODQ0IiBjbGFzcz0iY2xzLTMiIGQ9Im0xMi40Niw1NC4yOWMuMzQtMS4wOS44Mi0yLjUzLDEuNDktNC4xOCwwLDAsLjM2LS44OC43Ny0xLjc5LDEuNjItMy42LDUuMzQtOS40NSw1LjYtOS44NWwxOC45OC02Ljk0LjI5LDcuMjJjMi4wMSwxLjQ0LDMuNzIsMy4yNSw1LjAzLDUuMzQsMSwxLjYxLDEuNzYsMy4zNSwyLjI1LDUuMTguNDIsMS42NS42NCwzLjM0LjY2LDUuMDMiLz4KICAgICAgICAgICAgPC9nPgogICAgICAgICAgPC9nPgogICAgICAgICAgPGcgaWQ9Ikdyb3VwZV81NTk2IiBkYXRhLW5hbWU9Ikdyb3VwZSA1NTk2Ij4KICAgICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg0NiIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NDYiIGNsYXNzPSJjbHMtMyIgZD0ibTQ3LjA3LDM2LjYxbC0xNC45OSw4LjY1di0xNy4ybDcuNDktMTMuNyw3LjUsNS4wNXYxNy4xOVoiLz4KICAgICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg0NyIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NDciIGNsYXNzPSJjbHMtMyIgZD0ibTMyLjA4LDQ1LjI2bC0xNC45OC04LjY1di0xNy4xOWwxNC45OCw4LjY1djE3LjE5WiIvPgogICAgICAgICAgICA8cGF0aCBpZD0iVHJhY8OpXzIzODQ4IiBkYXRhLW5hbWU9IlRyYWPDqSAyMzg0OCIgY2xhc3M9ImNscy0zIiBkPSJtMTcuMSwxOS40MWw3LjQ5LTEzLjcsMTQuOTgsOC42NS03LjQ5LDEzLjctMTQuOTgtOC42NVoiLz4KICAgICAgICAgIDwvZz4KICAgICAgICAgIDxwYXRoIGlkPSJUcmFjw6lfMjM4NDkiIGRhdGEtbmFtZT0iVHJhY8OpIDIzODQ5IiBjbGFzcz0iY2xzLTEiIGQ9Im0zNi4zNCwzMy45MWwyLjYzLTEuNTJ2LTUuOTJsLTIuNjMsMS41MXY1LjkzWiIvPgogICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg1MCIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NTAiIGNsYXNzPSJjbHMtMiIgZD0ibTQxLjMyLDMxLjA1bDIuNjItMS41MXYtNS45M2wtMi42MiwxLjUxdjUuOTNaIi8+CiAgICAgICAgPC9nPgogICAgICA8L2c+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4=");
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./src/edit.js":
|
/***/ "./src/edit.js":
|
||||||
/*!*********************!*\
|
/*!*********************!*\
|
||||||
!*** ./src/edit.js ***!
|
!*** ./src/edit.js ***!
|
||||||
|
|
@ -127,14 +17,14 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
||||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
|
/* harmony import */ var _wordpress_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/editor.scss");
|
/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/editor.scss");
|
||||||
/* harmony import */ var _nested_children__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nested-children */ "./src/nested-children/index.js");
|
/* 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_4__ = __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_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__);
|
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
|
||||||
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __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_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// import "./monobloc";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -143,46 +33,17 @@ function Edit({
|
||||||
setAttributes,
|
setAttributes,
|
||||||
clientId
|
clientId
|
||||||
}) {
|
}) {
|
||||||
let {
|
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, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.PanelBody, null)), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", {
|
||||||
blockTitle,
|
...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.useBlockProps)({
|
||||||
blockSubtitle
|
className: `homegrade-content-blocks-grey-box alignfull`
|
||||||
} = attributes;
|
|
||||||
function onChangeBlockTitle(blockTitle) {
|
|
||||||
setAttributes({
|
|
||||||
blockTitle
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function onChangeBlockSubtitle(blockSubtitle) {
|
|
||||||
setAttributes({
|
|
||||||
blockSubtitle
|
|
||||||
});
|
|
||||||
}
|
|
||||||
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_5__.PanelBody, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.Tip, null, "salut"))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", {
|
|
||||||
...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.useBlockProps)({
|
|
||||||
className: `starter-nested-parent`
|
|
||||||
})
|
})
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.RichText, {
|
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InnerBlocks, {
|
||||||
value: blockTitle,
|
allowedBlocks: ["homegrade-content-blocks/section-titling", "homegrade-content-blocks/box-monoblock"],
|
||||||
tagName: "h3",
|
template: [["homegrade-content-blocks/section-titling", {
|
||||||
className: "starter-nested-parent__title",
|
sectionTitle: "Titre de Votre section",
|
||||||
placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter ici le Titre", "homegrade"),
|
sectionSubtitle: "Sous-titre de Votre section"
|
||||||
onChange: onChangeBlockTitle
|
}], ["homegrade-content-blocks/box-monoblock"]]
|
||||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.RichText, {
|
})));
|
||||||
value: blockSubtitle,
|
|
||||||
tagName: "h4",
|
|
||||||
className: "starter-nested-parent__subtitle",
|
|
||||||
placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter ici le Sous-titre", "homegrade"),
|
|
||||||
onChange: onChangeBlockSubtitle
|
|
||||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
|
||||||
className: "starter-nested-parent__children-container"
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.InnerBlocks
|
|
||||||
// allowedBlocks={[
|
|
||||||
// "core/paragraph",
|
|
||||||
// "homegrade-content-blocks/starter-nested-child",
|
|
||||||
// ]}
|
|
||||||
, {
|
|
||||||
allowedBlocks: ["core/paragraph"]
|
|
||||||
}))));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
@ -214,21 +75,17 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
version: "1.1",
|
version: "1.1",
|
||||||
x: "0px",
|
x: "0px",
|
||||||
y: "0px",
|
y: "0px",
|
||||||
viewBox: "0 0 128 160"
|
viewBox: "0 0 100 125"
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", {
|
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", {
|
||||||
cx: "67",
|
transform: "translate(0,-952.36218)"
|
||||||
cy: "11",
|
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
||||||
r: "10"
|
d: "m 49.593802,961.37673 a 4.0004,4.0004 0 0 0 -1.125,0.28125 l -36,15 a 4.0004,4.0004 0 0 0 -2.4688,3.71875 l 0,43.99997 a 4.0004,4.0004 0 0 0 2.4688,3.6875 l 36,15 a 4.0004,4.0004 0 0 0 3.0624,0 l 35.999996,-15 a 4.0004,4.0004 0 0 0 2.4688,-3.6875 l 0,-43.99997 a 4.0004,4.0004 0 0 0 -2.4688,-3.71875 l -35.999996,-15 a 4.0004,4.0004 0 0 0 -1.9374,-0.28125 z m 0.4062,8.3125 25.5938,10.65625 -25.5938,10.6875 -25.5938,-10.6875 25.5938,-10.65625 z m -32,16.6875 28,11.65625 0,35.34372 -28,-11.6875 0,-35.31247 z m 63.999996,0 0,35.31247 -27.999996,11.6875 0,-35.34372 27.999996,-11.65625 z",
|
||||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", {
|
"fill-opacity": "1",
|
||||||
cx: "37",
|
stroke: "none",
|
||||||
cy: "21",
|
marker: "none",
|
||||||
r: "10"
|
visibility: "visible",
|
||||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
display: "inline",
|
||||||
d: "M17,51v36h10v40h20h40h20V87h10V51c0-5.5-4.5-10-10-10L97,51v26H87v40H77V77h10V41c0-5.5-4.5-10-10-10L67,41L57,31 c-5.5,0-10,4.5-10,10v36h10v40H47V77H37V51L27,41C21.5,41,17,45.5,17,51z"
|
overflow: "visible"
|
||||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", {
|
|
||||||
cx: "97",
|
|
||||||
cy: "21",
|
|
||||||
r: "10"
|
|
||||||
}))),
|
}))),
|
||||||
foreground: "#DF1E1E"
|
foreground: "#DF1E1E"
|
||||||
},
|
},
|
||||||
|
|
@ -238,155 +95,6 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ "./src/nested-children/edit.js":
|
|
||||||
/*!*************************************!*\
|
|
||||||
!*** ./src/nested-children/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/nested-children/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({
|
|
||||||
attributes,
|
|
||||||
setAttributes,
|
|
||||||
...props
|
|
||||||
}) {
|
|
||||||
let {
|
|
||||||
childName
|
|
||||||
} = attributes;
|
|
||||||
function onChangeChildName(childName) {
|
|
||||||
setAttributes({
|
|
||||||
childName
|
|
||||||
});
|
|
||||||
}
|
|
||||||
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)("div", {
|
|
||||||
...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.useBlockProps)({
|
|
||||||
className: `homegrade-blocks-staff-member`
|
|
||||||
})
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.RichText, {
|
|
||||||
tagName: "p",
|
|
||||||
className: "homegrade-blocks-staff-member__child-name",
|
|
||||||
onChange: onChangeChildName,
|
|
||||||
value: childName,
|
|
||||||
placeholder: "Nom de l'enfant"
|
|
||||||
})));
|
|
||||||
}
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./src/nested-children/index.js":
|
|
||||||
/*!**************************************!*\
|
|
||||||
!*** ./src/nested-children/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/nested-children/style.scss");
|
|
||||||
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/nested-children/block.json");
|
|
||||||
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ "./src/nested-children/edit.js");
|
|
||||||
/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ "./src/nested-children/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",
|
|
||||||
viewBox: "0 0 50800 63500",
|
|
||||||
x: "0px",
|
|
||||||
y: "0px",
|
|
||||||
"fill-rule": "evenodd",
|
|
||||||
"clip-rule": "evenodd"
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("defs", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("style", {
|
|
||||||
type: "text/css"
|
|
||||||
})), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
|
||||||
class: "fil0",
|
|
||||||
d: "M34027 25667c-2015,1921 -4758,3103 -7780,3103 -3022,0 -5765,-1182 -7780,-3103 -347,-86 -694,-171 -1031,-214 -337,-43 -663,-43 -967,4 -303,46 -583,140 -910,257 -327,116 -700,256 -1167,536 -466,280 -1027,700 -1563,1401 -537,699 -1050,1680 -1517,2847 -467,1166 -887,2520 -1120,3827 -233,1306 -280,2567 -303,3523 -24,957 -24,1611 70,2241 93,630 279,1236 700,1843 420,607 1073,1214 1843,1680 770,467 1657,794 2871,957 1213,163 2753,163 4620,163l5414 0 840 0 840 0 5414 0c1867,0 3407,0 4620,-163 1214,-163 2101,-490 2871,-957 770,-466 1423,-1073 1843,-1680 421,-607 607,-1213 700,-1843 94,-630 94,-1284 70,-2241 -23,-956 -70,-2217 -303,-3523 -233,-1307 -653,-2661 -1120,-3827 -467,-1167 -980,-2148 -1517,-2847 -536,-701 -1097,-1121 -1563,-1401 -467,-280 -840,-420 -1167,-536 -327,-117 -607,-211 -910,-257 -304,-47 -630,-47 -967,-4 -337,43 -684,128 -1031,214z"
|
|
||||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
|
||||||
class: "fil0",
|
|
||||||
d: "M26247 26670c4949,0 8961,-4012 8961,-8961 0,-4949 -4012,-8961 -8961,-8961 -4949,0 -8961,4012 -8961,8961 0,4949 4012,8961 8961,8961z"
|
|
||||||
})))
|
|
||||||
},
|
|
||||||
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/nested-children/save.js":
|
|
||||||
/*!*************************************!*\
|
|
||||||
!*** ./src/nested-children/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__);
|
|
||||||
/* harmony import */ var _img_homegrade_mascotte_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./img/homegrade_mascotte.svg */ "./src/nested-children/img/homegrade_mascotte.svg");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function save({
|
|
||||||
attributes
|
|
||||||
}) {
|
|
||||||
const {
|
|
||||||
name,
|
|
||||||
position
|
|
||||||
} = attributes;
|
|
||||||
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
|
|
||||||
..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
|
|
||||||
className: `homegrade-blocks-staff-member`
|
|
||||||
})
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
|
||||||
className: "homegrade-blocks-staff-member__member-icon"
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
|
|
||||||
src: _img_homegrade_mascotte_svg__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
||||||
alt: ""
|
|
||||||
})), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
|
||||||
className: "homegrade-blocks-staff-member__member-informations"
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
|
||||||
tagName: "h4",
|
|
||||||
value: name,
|
|
||||||
className: "homegrade-blocks-staff-member__name"
|
|
||||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
|
||||||
tagName: "p",
|
|
||||||
value: position,
|
|
||||||
className: "homegrade-blocks-staff-member__position"
|
|
||||||
})));
|
|
||||||
}
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./src/save.js":
|
/***/ "./src/save.js":
|
||||||
/*!*********************!*\
|
/*!*********************!*\
|
||||||
!*** ./src/save.js ***!
|
!*** ./src/save.js ***!
|
||||||
|
|
@ -406,25 +114,11 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
function save({
|
function save({
|
||||||
attributes
|
attributes
|
||||||
}) {
|
}) {
|
||||||
let {
|
|
||||||
blockTitle,
|
|
||||||
blockSubtitle
|
|
||||||
} = attributes;
|
|
||||||
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", {
|
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", {
|
||||||
..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
|
..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
|
||||||
className: `starter-nested-parent`
|
className: `homegrade-content-blocks-grey-box`
|
||||||
})
|
})
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks.Content, null));
|
||||||
value: blockTitle,
|
|
||||||
tagName: "h3",
|
|
||||||
className: "starter-nested-parent__title"
|
|
||||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
|
||||||
value: blockSubtitle,
|
|
||||||
tagName: "h4",
|
|
||||||
className: "starter-nested-parent__subtitle"
|
|
||||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
|
||||||
className: "starter-nested-parent__children-container"
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks.Content, null)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
@ -439,30 +133,6 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
// extracted by mini-css-extract-plugin
|
// extracted by mini-css-extract-plugin
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./src/nested-children/editor.scss":
|
|
||||||
/*!*****************************************!*\
|
|
||||||
!*** ./src/nested-children/editor.scss ***!
|
|
||||||
\*****************************************/
|
|
||||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
||||||
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
// extracted by mini-css-extract-plugin
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./src/nested-children/style.scss":
|
|
||||||
/*!****************************************!*\
|
|
||||||
!*** ./src/nested-children/style.scss ***!
|
|
||||||
\****************************************/
|
|
||||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
||||||
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
// extracted by mini-css-extract-plugin
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ "./src/style.scss":
|
/***/ "./src/style.scss":
|
||||||
|
|
@ -475,16 +145,6 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
// extracted by mini-css-extract-plugin
|
// extracted by mini-css-extract-plugin
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "react":
|
|
||||||
/*!************************!*\
|
|
||||||
!*** external "React" ***!
|
|
||||||
\************************/
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
module.exports = window["React"];
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ "@wordpress/block-editor":
|
/***/ "@wordpress/block-editor":
|
||||||
|
|
@ -543,17 +203,7 @@ module.exports = window["wp"]["i18n"];
|
||||||
\************************/
|
\************************/
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/grey-box","version":"0.1.0","title":"Grey Box","category":"homegrade-blocks","description":"Boite de gestion contenu","supports":{"html":false},"textdomain":"homegrade-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"blockTitle":{"type":"string"},"blockSubtitle":{"type":"string"}}}');
|
module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/grey-box","version":"0.1.0","title":"Grey Box","category":"homegrade-blocks","description":"Boite de gestion contenu","supports":{"html":false},"textdomain":"homegrade-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}');
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./src/nested-children/block.json":
|
|
||||||
/*!****************************************!*\
|
|
||||||
!*** ./src/nested-children/block.json ***!
|
|
||||||
\****************************************/
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/starter-nested-child","version":"0.1.0","title":"Starter Nested — Child","category":"homegrade-blocks","description":"Starter nested — Child","supports":{"html":false},"editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"childName":{"type":"string"}}}');
|
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||||
"apiVersion": 2,
|
"apiVersion": 2,
|
||||||
"name": "homegrade-content-blocks/starter-nested-child",
|
"name": "homegrade-content-blocks/box-monoblock",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"title": "Starter Nested — Child",
|
"title": "Monobloc",
|
||||||
"category": "homegrade-blocks",
|
"category": "homegrade-blocks",
|
||||||
"description": "Starter nested — Child",
|
"description": "Bloc conteneur d'une seule colonne",
|
||||||
"supports": {
|
"supports": {
|
||||||
"html": false
|
"html": false
|
||||||
},
|
},
|
||||||
1
blocks/grey-box/build/monobloc/index.asset.php
Normal file
1
blocks/grey-box/build/monobloc/index.asset.php
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n'), 'version' => 'df08c0fa72df9e23aa9b');
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*!********************************************************************************************************************************************************************************************************************************************************!*\
|
/*!*************************************************************************************************************************************************************************************************************************************************!*\
|
||||||
!*** 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/nested-children/editor.scss ***!
|
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/monobloc/editor.scss ***!
|
||||||
\********************************************************************************************************************************************************************************************************************************************************/
|
\*************************************************************************************************************************************************************************************************************************************************/
|
||||||
|
|
||||||
382
blocks/grey-box/build/monobloc/index.js
Normal file
382
blocks/grey-box/build/monobloc/index.js
Normal file
|
|
@ -0,0 +1,382 @@
|
||||||
|
/******/ (() => { // webpackBootstrap
|
||||||
|
/******/ "use strict";
|
||||||
|
/******/ var __webpack_modules__ = ({
|
||||||
|
|
||||||
|
/***/ "./src/monobloc/edit.js":
|
||||||
|
/*!******************************!*\
|
||||||
|
!*** ./src/monobloc/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/monobloc/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({
|
||||||
|
attributes,
|
||||||
|
setAttributes,
|
||||||
|
...props
|
||||||
|
}) {
|
||||||
|
let {
|
||||||
|
childName
|
||||||
|
} = attributes;
|
||||||
|
function onChangeChildName(childName) {
|
||||||
|
setAttributes({
|
||||||
|
childName
|
||||||
|
});
|
||||||
|
}
|
||||||
|
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)("div", {
|
||||||
|
...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.useBlockProps)({
|
||||||
|
className: `box-monoblock card-large-content`
|
||||||
|
})
|
||||||
|
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InnerBlocks, {
|
||||||
|
allowedBlocks: ["core/paragraph"]
|
||||||
|
})));
|
||||||
|
}
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ "./src/monobloc/index.js":
|
||||||
|
/*!*******************************!*\
|
||||||
|
!*** ./src/monobloc/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/monobloc/style.scss");
|
||||||
|
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/monobloc/block.json");
|
||||||
|
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ "./src/monobloc/edit.js");
|
||||||
|
/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ "./src/monobloc/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 677.3 958.75"
|
||||||
|
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("switch", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("foreignObject", {
|
||||||
|
requiredExtensions: "http://ns.adobe.com/AdobeIllustrator/10.0/",
|
||||||
|
x: "0",
|
||||||
|
y: "0",
|
||||||
|
width: "1",
|
||||||
|
height: "1"
|
||||||
|
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
||||||
|
d: "M652.9,173.9L363.1,6.5c-15.1-8.7-33.7-8.7-48.8,0L24.4,173.9C9.3,182.6,0,198.7,0,216.2v334.7 c0,17.4,9.3,33.6,24.4,42.3l289.8,167.3c15.1,8.7,33.7,8.7,48.8,0l289.8-167.3c15.1-8.7,24.4-24.8,24.4-42.3V216.2 C677.3,198.7,668,182.6,652.9,173.9z M653.3,537c0,17.4-9.3,33.6-24.4,42.3L363.1,732.7c-15.1,8.7-33.7,8.7-48.8,0L48.4,579.3 C33.3,570.5,24,554.4,24,537V230c0-17.4,9.3-33.6,24.4-42.3L314.2,34.3c15.1-8.7,33.7-8.7,48.8,0l265.8,153.5 c15.1,8.7,24.4,24.8,24.4,42.3V537z"
|
||||||
|
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
||||||
|
d: "M568,256.9L378.8,366.1c-15.1,8.7-24.4,24.8-24.4,42.3c0,0-0.1,90.6-0.1,157.2v4.7c0,32.7,0,58.8,0.1,63.9 c0.2,16.7-3.1,44.3,25.2,29.2l189.1-109.2c15.1-8.7,24.4-24.8,24.4-42.3c0,0,0.1-90.6,0.1-157.2c0-1.6,0-3.2,0-4.7 c0-32.7,0-58.8-0.1-63.9C593,269.5,596.3,241.9,568,256.9z"
|
||||||
|
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
||||||
|
d: "M108.7,256.9l189.1,109.2c15.1,8.7,24.4,24.8,24.4,42.3c0,0,0.1,90.6,0.1,157.2v4.7c0,32.7,0,58.8-0.1,63.9 c-0.2,16.7,3.1,44.3-25.2,29.2L107.9,554.3c-15.1-8.7-24.4-24.8-24.4-42.3c0,0-0.1-90.6-0.1-157.2c0-1.6,0-3.2,0-4.7 c0-32.7,0-58.8,0.1-63.9C83.7,269.5,80.4,241.9,108.7,256.9z"
|
||||||
|
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
||||||
|
d: "M338.6,346.1c8.4,0,16.8-2.2,24.3-6.5l182.5-105.4c0.9-0.6,1.7-1.1,2.3-1.5c12.8-8.6,26-18.2-4.7-36.2 c-1.3-0.8-2.8-1.7-4.5-2.6L362.9,92.6c-7.5-4.3-15.9-6.5-24.3-6.5c-8.4,0-16.8,2.2-24.3,6.5L138.6,194c-1.6,0.9-3.1,1.8-4.5,2.6 c-30.7,17.9-17.5,27.6-4.7,36.2c0.6,0.4,1.3,0.9,2.3,1.5l182.5,105.4C321.8,343.9,330.2,346.1,338.6,346.1z"
|
||||||
|
})))))
|
||||||
|
},
|
||||||
|
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/monobloc/save.js":
|
||||||
|
/*!******************************!*\
|
||||||
|
!*** ./src/monobloc/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 {
|
||||||
|
name,
|
||||||
|
position
|
||||||
|
} = attributes;
|
||||||
|
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
||||||
|
..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
|
||||||
|
className: `box-monoblock card-large-content`
|
||||||
|
})
|
||||||
|
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks.Content, null));
|
||||||
|
}
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ "./src/monobloc/editor.scss":
|
||||||
|
/*!**********************************!*\
|
||||||
|
!*** ./src/monobloc/editor.scss ***!
|
||||||
|
\**********************************/
|
||||||
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||||
|
|
||||||
|
__webpack_require__.r(__webpack_exports__);
|
||||||
|
// extracted by mini-css-extract-plugin
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ "./src/monobloc/style.scss":
|
||||||
|
/*!*********************************!*\
|
||||||
|
!*** ./src/monobloc/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/monobloc/block.json":
|
||||||
|
/*!*********************************!*\
|
||||||
|
!*** ./src/monobloc/block.json ***!
|
||||||
|
\*********************************/
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/box-monoblock","version":"0.1.0","title":"Monobloc","category":"homegrade-blocks","description":"Bloc conteneur d\'une seule colonne","supports":{"html":false},"editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"childName":{"type":"string"}}}');
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
|
||||||
|
/******/ });
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ // 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 = {
|
||||||
|
/******/ "monobloc/index": 0,
|
||||||
|
/******/ "monobloc/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, ["monobloc/style-index"], () => (__webpack_require__("./src/monobloc/index.js")))
|
||||||
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
||||||
|
/******/
|
||||||
|
/******/ })()
|
||||||
|
;
|
||||||
|
//# sourceMappingURL=index.js.map
|
||||||
1
blocks/grey-box/build/monobloc/index.js.map
Normal file
1
blocks/grey-box/build/monobloc/index.js.map
Normal file
File diff suppressed because one or more lines are too long
4
blocks/grey-box/build/monobloc/style-index.css
Normal file
4
blocks/grey-box/build/monobloc/style-index.css
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
/*!************************************************************************************************************************************************************************************************************************************************!*\
|
||||||
|
!*** 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/monobloc/style.scss ***!
|
||||||
|
\************************************************************************************************************************************************************************************************************************************************/
|
||||||
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n'), 'version' => '9ebc7de8bdcf26ad0227');
|
|
||||||
|
|
@ -1,518 +0,0 @@
|
||||||
/******/ (() => { // webpackBootstrap
|
|
||||||
/******/ "use strict";
|
|
||||||
/******/ var __webpack_modules__ = ({
|
|
||||||
|
|
||||||
/***/ "./src/nested-children/img/homegrade_mascotte.svg":
|
|
||||||
/*!********************************************************!*\
|
|
||||||
!*** ./src/nested-children/img/homegrade_mascotte.svg ***!
|
|
||||||
\********************************************************/
|
|
||||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
||||||
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
||||||
/* harmony export */ ReactComponent: () => (/* binding */ SvgHomegradeMascotte),
|
|
||||||
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
||||||
/* harmony export */ });
|
|
||||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
||||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
||||||
var _defs, _g, _g2;
|
|
||||||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
||||||
|
|
||||||
var SvgHomegradeMascotte = function SvgHomegradeMascotte(props) {
|
|
||||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({
|
|
||||||
id: "homegrade_mascotte_svg__mascotte",
|
|
||||||
xmlns: "http://www.w3.org/2000/svg",
|
|
||||||
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
||||||
viewBox: "0 0 60 60"
|
|
||||||
}, props), _defs || (_defs = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("defs", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("linearGradient", {
|
|
||||||
id: "homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3",
|
|
||||||
"data-name": "D\\xE9grad\\xE9 sans nom 3",
|
|
||||||
x1: -2280.28,
|
|
||||||
y1: 80.03,
|
|
||||||
x2: -2279.29,
|
|
||||||
y2: 78.98,
|
|
||||||
gradientTransform: "matrix(2.63 0 0 -7.44 6033.72 622.47)",
|
|
||||||
gradientUnits: "userSpaceOnUse"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("stop", {
|
|
||||||
offset: 0,
|
|
||||||
stopColor: "#f3281d"
|
|
||||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("stop", {
|
|
||||||
offset: 1,
|
|
||||||
stopColor: "#fe766f"
|
|
||||||
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("linearGradient", {
|
|
||||||
id: "homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3-2",
|
|
||||||
"data-name": "D\\xE9grad\\xE9 sans nom 3",
|
|
||||||
x1: -2276.06,
|
|
||||||
y1: 80.02,
|
|
||||||
x2: -2275.06,
|
|
||||||
y2: 78.97,
|
|
||||||
gradientTransform: "matrix(2.62 0 0 -7.44 6009.38 619.45)",
|
|
||||||
xlinkHref: "#homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3"
|
|
||||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("style", null, ".homegrade_mascotte_svg__cls-3{fill:#fff;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px}"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_5862",
|
|
||||||
"data-name": "Groupe 5862"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_3195",
|
|
||||||
"data-name": "Groupe 3195"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_de_masques_1",
|
|
||||||
"data-name": "Groupe de masques 1"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_5593",
|
|
||||||
"data-name": "Groupe 5593"
|
|
||||||
}, _g || (_g = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_5595",
|
|
||||||
"data-name": "Groupe 5595"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_5594",
|
|
||||||
"data-name": "Groupe 5594"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23844",
|
|
||||||
"data-name": "Trac\\xE9 23844",
|
|
||||||
className: "homegrade_mascotte_svg__cls-3",
|
|
||||||
d: "M12.46 54.29c.34-1.09.82-2.53 1.49-4.18 0 0 .36-.88.77-1.79 1.62-3.6 5.34-9.45 5.6-9.85l18.98-6.94.29 7.22c2.01 1.44 3.72 3.25 5.03 5.34 1 1.61 1.76 3.35 2.25 5.18.42 1.65.64 3.34.66 5.03"
|
|
||||||
})))), _g2 || (_g2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
|
||||||
id: "homegrade_mascotte_svg__Groupe_5596",
|
|
||||||
"data-name": "Groupe 5596"
|
|
||||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23846",
|
|
||||||
"data-name": "Trac\\xE9 23846",
|
|
||||||
className: "homegrade_mascotte_svg__cls-3",
|
|
||||||
d: "m47.07 36.61-14.99 8.65v-17.2l7.49-13.7 7.5 5.05V36.6Z"
|
|
||||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23847",
|
|
||||||
"data-name": "Trac\\xE9 23847",
|
|
||||||
className: "homegrade_mascotte_svg__cls-3",
|
|
||||||
d: "M32.08 45.26 17.1 36.61V19.42l14.98 8.65v17.19Z"
|
|
||||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23848",
|
|
||||||
"data-name": "Trac\\xE9 23848",
|
|
||||||
className: "homegrade_mascotte_svg__cls-3",
|
|
||||||
d: "m17.1 19.41 7.49-13.7 14.98 8.65-7.49 13.7-14.98-8.65Z"
|
|
||||||
}))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23849",
|
|
||||||
"data-name": "Trac\\xE9 23849",
|
|
||||||
d: "m36.34 33.91 2.63-1.52v-5.92l-2.63 1.51v5.93Z",
|
|
||||||
style: {
|
|
||||||
strokeWidth: 0,
|
|
||||||
fill: "url(#homegrade_mascotte_svg__D\xE9grad\xE9_sans_nom_3)"
|
|
||||||
}
|
|
||||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
|
||||||
id: "homegrade_mascotte_svg__Trac\\xE9_23850",
|
|
||||||
"data-name": "Trac\\xE9 23850",
|
|
||||||
d: "m41.32 31.05 2.62-1.51v-5.93l-2.62 1.51v5.93Z",
|
|
||||||
style: {
|
|
||||||
fill: "url(#homegrade_mascotte_svg__D\xE9grad\xE9_sans_nom_3-2)",
|
|
||||||
strokeWidth: 0
|
|
||||||
}
|
|
||||||
}))))));
|
|
||||||
};
|
|
||||||
|
|
||||||
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0ibWFzY290dGUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZpZXdCb3g9IjAgMCA2MCA2MCI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMSB7CiAgICAgICAgZmlsbDogdXJsKCNEw6lncmFkw6lfc2Fuc19ub21fMyk7CiAgICAgIH0KCiAgICAgIC5jbHMtMSwgLmNscy0yIHsKICAgICAgICBzdHJva2Utd2lkdGg6IDBweDsKICAgICAgfQoKICAgICAgLmNscy0zIHsKICAgICAgICBmaWxsOiAjZmZmOwogICAgICAgIHN0cm9rZTogIzAwMDsKICAgICAgICBzdHJva2UtbGluZWNhcDogcm91bmQ7CiAgICAgICAgc3Ryb2tlLWxpbmVqb2luOiByb3VuZDsKICAgICAgICBzdHJva2Utd2lkdGg6IDJweDsKICAgICAgfQoKICAgICAgLmNscy0yIHsKICAgICAgICBmaWxsOiB1cmwoI0TDqWdyYWTDqV9zYW5zX25vbV8zLTIpOwogICAgICB9CiAgICA8L3N0eWxlPgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJEw6lncmFkw6lfc2Fuc19ub21fMyIgZGF0YS1uYW1lPSJEw6lncmFkw6kgc2FucyBub20gMyIgeDE9Ii0yMjgwLjI4IiB5MT0iODAuMDMiIHgyPSItMjI3OS4yOSIgeTI9Ijc4Ljk4IiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDYwMzMuNzIgNjIyLjQ3KSBzY2FsZSgyLjYzIC03LjQ0KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmMzI4MWQiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmU3NjZmIi8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJEw6lncmFkw6lfc2Fuc19ub21fMy0yIiBkYXRhLW5hbWU9IkTDqWdyYWTDqSBzYW5zIG5vbSAzIiB4MT0iLTIyNzYuMDYiIHkxPSI4MC4wMiIgeDI9Ii0yMjc1LjA2IiB5Mj0iNzguOTciIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoNjAwOS4zOCA2MTkuNDUpIHNjYWxlKDIuNjIgLTcuNDQpIiB4bGluazpocmVmPSIjRMOpZ3JhZMOpX3NhbnNfbm9tXzMiLz4KICA8L2RlZnM+CiAgPGcgaWQ9Ikdyb3VwZV81ODYyIiBkYXRhLW5hbWU9Ikdyb3VwZSA1ODYyIj4KICAgIDxnIGlkPSJHcm91cGVfMzE5NSIgZGF0YS1uYW1lPSJHcm91cGUgMzE5NSI+CiAgICAgIDxnIGlkPSJHcm91cGVfZGVfbWFzcXVlc18xIiBkYXRhLW5hbWU9Ikdyb3VwZSBkZSBtYXNxdWVzIDEiPgogICAgICAgIDxnIGlkPSJHcm91cGVfNTU5MyIgZGF0YS1uYW1lPSJHcm91cGUgNTU5MyI+CiAgICAgICAgICA8ZyBpZD0iR3JvdXBlXzU1OTUiIGRhdGEtbmFtZT0iR3JvdXBlIDU1OTUiPgogICAgICAgICAgICA8ZyBpZD0iR3JvdXBlXzU1OTQiIGRhdGEtbmFtZT0iR3JvdXBlIDU1OTQiPgogICAgICAgICAgICAgIDxwYXRoIGlkPSJUcmFjw6lfMjM4NDQiIGRhdGEtbmFtZT0iVHJhY8OpIDIzODQ0IiBjbGFzcz0iY2xzLTMiIGQ9Im0xMi40Niw1NC4yOWMuMzQtMS4wOS44Mi0yLjUzLDEuNDktNC4xOCwwLDAsLjM2LS44OC43Ny0xLjc5LDEuNjItMy42LDUuMzQtOS40NSw1LjYtOS44NWwxOC45OC02Ljk0LjI5LDcuMjJjMi4wMSwxLjQ0LDMuNzIsMy4yNSw1LjAzLDUuMzQsMSwxLjYxLDEuNzYsMy4zNSwyLjI1LDUuMTguNDIsMS42NS42NCwzLjM0LjY2LDUuMDMiLz4KICAgICAgICAgICAgPC9nPgogICAgICAgICAgPC9nPgogICAgICAgICAgPGcgaWQ9Ikdyb3VwZV81NTk2IiBkYXRhLW5hbWU9Ikdyb3VwZSA1NTk2Ij4KICAgICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg0NiIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NDYiIGNsYXNzPSJjbHMtMyIgZD0ibTQ3LjA3LDM2LjYxbC0xNC45OSw4LjY1di0xNy4ybDcuNDktMTMuNyw3LjUsNS4wNXYxNy4xOVoiLz4KICAgICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg0NyIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NDciIGNsYXNzPSJjbHMtMyIgZD0ibTMyLjA4LDQ1LjI2bC0xNC45OC04LjY1di0xNy4xOWwxNC45OCw4LjY1djE3LjE5WiIvPgogICAgICAgICAgICA8cGF0aCBpZD0iVHJhY8OpXzIzODQ4IiBkYXRhLW5hbWU9IlRyYWPDqSAyMzg0OCIgY2xhc3M9ImNscy0zIiBkPSJtMTcuMSwxOS40MWw3LjQ5LTEzLjcsMTQuOTgsOC42NS03LjQ5LDEzLjctMTQuOTgtOC42NVoiLz4KICAgICAgICAgIDwvZz4KICAgICAgICAgIDxwYXRoIGlkPSJUcmFjw6lfMjM4NDkiIGRhdGEtbmFtZT0iVHJhY8OpIDIzODQ5IiBjbGFzcz0iY2xzLTEiIGQ9Im0zNi4zNCwzMy45MWwyLjYzLTEuNTJ2LTUuOTJsLTIuNjMsMS41MXY1LjkzWiIvPgogICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg1MCIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NTAiIGNsYXNzPSJjbHMtMiIgZD0ibTQxLjMyLDMxLjA1bDIuNjItMS41MXYtNS45M2wtMi42MiwxLjUxdjUuOTNaIi8+CiAgICAgICAgPC9nPgogICAgICA8L2c+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4=");
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./src/nested-children/edit.js":
|
|
||||||
/*!*************************************!*\
|
|
||||||
!*** ./src/nested-children/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/nested-children/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({
|
|
||||||
attributes,
|
|
||||||
setAttributes,
|
|
||||||
...props
|
|
||||||
}) {
|
|
||||||
let {
|
|
||||||
childName
|
|
||||||
} = attributes;
|
|
||||||
function onChangeChildName(childName) {
|
|
||||||
setAttributes({
|
|
||||||
childName
|
|
||||||
});
|
|
||||||
}
|
|
||||||
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)("div", {
|
|
||||||
...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.useBlockProps)({
|
|
||||||
className: `homegrade-blocks-staff-member`
|
|
||||||
})
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.RichText, {
|
|
||||||
tagName: "p",
|
|
||||||
className: "homegrade-blocks-staff-member__child-name",
|
|
||||||
onChange: onChangeChildName,
|
|
||||||
value: childName,
|
|
||||||
placeholder: "Nom de l'enfant"
|
|
||||||
})));
|
|
||||||
}
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./src/nested-children/index.js":
|
|
||||||
/*!**************************************!*\
|
|
||||||
!*** ./src/nested-children/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/nested-children/style.scss");
|
|
||||||
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/nested-children/block.json");
|
|
||||||
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ "./src/nested-children/edit.js");
|
|
||||||
/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ "./src/nested-children/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",
|
|
||||||
viewBox: "0 0 50800 63500",
|
|
||||||
x: "0px",
|
|
||||||
y: "0px",
|
|
||||||
"fill-rule": "evenodd",
|
|
||||||
"clip-rule": "evenodd"
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("defs", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("style", {
|
|
||||||
type: "text/css"
|
|
||||||
})), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
|
||||||
class: "fil0",
|
|
||||||
d: "M34027 25667c-2015,1921 -4758,3103 -7780,3103 -3022,0 -5765,-1182 -7780,-3103 -347,-86 -694,-171 -1031,-214 -337,-43 -663,-43 -967,4 -303,46 -583,140 -910,257 -327,116 -700,256 -1167,536 -466,280 -1027,700 -1563,1401 -537,699 -1050,1680 -1517,2847 -467,1166 -887,2520 -1120,3827 -233,1306 -280,2567 -303,3523 -24,957 -24,1611 70,2241 93,630 279,1236 700,1843 420,607 1073,1214 1843,1680 770,467 1657,794 2871,957 1213,163 2753,163 4620,163l5414 0 840 0 840 0 5414 0c1867,0 3407,0 4620,-163 1214,-163 2101,-490 2871,-957 770,-466 1423,-1073 1843,-1680 421,-607 607,-1213 700,-1843 94,-630 94,-1284 70,-2241 -23,-956 -70,-2217 -303,-3523 -233,-1307 -653,-2661 -1120,-3827 -467,-1167 -980,-2148 -1517,-2847 -536,-701 -1097,-1121 -1563,-1401 -467,-280 -840,-420 -1167,-536 -327,-117 -607,-211 -910,-257 -304,-47 -630,-47 -967,-4 -337,43 -684,128 -1031,214z"
|
|
||||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
|
||||||
class: "fil0",
|
|
||||||
d: "M26247 26670c4949,0 8961,-4012 8961,-8961 0,-4949 -4012,-8961 -8961,-8961 -4949,0 -8961,4012 -8961,8961 0,4949 4012,8961 8961,8961z"
|
|
||||||
})))
|
|
||||||
},
|
|
||||||
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/nested-children/save.js":
|
|
||||||
/*!*************************************!*\
|
|
||||||
!*** ./src/nested-children/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__);
|
|
||||||
/* harmony import */ var _img_homegrade_mascotte_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./img/homegrade_mascotte.svg */ "./src/nested-children/img/homegrade_mascotte.svg");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function save({
|
|
||||||
attributes
|
|
||||||
}) {
|
|
||||||
const {
|
|
||||||
name,
|
|
||||||
position
|
|
||||||
} = attributes;
|
|
||||||
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
|
|
||||||
..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
|
|
||||||
className: `homegrade-blocks-staff-member`
|
|
||||||
})
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
|
||||||
className: "homegrade-blocks-staff-member__member-icon"
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
|
|
||||||
src: _img_homegrade_mascotte_svg__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
||||||
alt: ""
|
|
||||||
})), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
|
||||||
className: "homegrade-blocks-staff-member__member-informations"
|
|
||||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
|
||||||
tagName: "h4",
|
|
||||||
value: name,
|
|
||||||
className: "homegrade-blocks-staff-member__name"
|
|
||||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
|
||||||
tagName: "p",
|
|
||||||
value: position,
|
|
||||||
className: "homegrade-blocks-staff-member__position"
|
|
||||||
})));
|
|
||||||
}
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./src/nested-children/editor.scss":
|
|
||||||
/*!*****************************************!*\
|
|
||||||
!*** ./src/nested-children/editor.scss ***!
|
|
||||||
\*****************************************/
|
|
||||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
||||||
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
// extracted by mini-css-extract-plugin
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./src/nested-children/style.scss":
|
|
||||||
/*!****************************************!*\
|
|
||||||
!*** ./src/nested-children/style.scss ***!
|
|
||||||
\****************************************/
|
|
||||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
||||||
|
|
||||||
__webpack_require__.r(__webpack_exports__);
|
|
||||||
// extracted by mini-css-extract-plugin
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "react":
|
|
||||||
/*!************************!*\
|
|
||||||
!*** external "React" ***!
|
|
||||||
\************************/
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
module.exports = window["React"];
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "@wordpress/block-editor":
|
|
||||||
/*!*************************************!*\
|
|
||||||
!*** external ["wp","blockEditor"] ***!
|
|
||||||
\*************************************/
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
module.exports = window["wp"]["blockEditor"];
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "@wordpress/blocks":
|
|
||||||
/*!********************************!*\
|
|
||||||
!*** external ["wp","blocks"] ***!
|
|
||||||
\********************************/
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
module.exports = window["wp"]["blocks"];
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "@wordpress/element":
|
|
||||||
/*!*********************************!*\
|
|
||||||
!*** external ["wp","element"] ***!
|
|
||||||
\*********************************/
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
module.exports = window["wp"]["element"];
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "@wordpress/i18n":
|
|
||||||
/*!******************************!*\
|
|
||||||
!*** external ["wp","i18n"] ***!
|
|
||||||
\******************************/
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
module.exports = window["wp"]["i18n"];
|
|
||||||
|
|
||||||
/***/ }),
|
|
||||||
|
|
||||||
/***/ "./src/nested-children/block.json":
|
|
||||||
/*!****************************************!*\
|
|
||||||
!*** ./src/nested-children/block.json ***!
|
|
||||||
\****************************************/
|
|
||||||
/***/ ((module) => {
|
|
||||||
|
|
||||||
module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/starter-nested-child","version":"0.1.0","title":"Starter Nested — Child","category":"homegrade-blocks","description":"Starter nested — Child","supports":{"html":false},"editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"childName":{"type":"string"}}}');
|
|
||||||
|
|
||||||
/***/ })
|
|
||||||
|
|
||||||
/******/ });
|
|
||||||
/************************************************************************/
|
|
||||||
/******/ // 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 = {
|
|
||||||
/******/ "nested-children/index": 0,
|
|
||||||
/******/ "./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, ["./style-index"], () => (__webpack_require__("./src/nested-children/index.js")))
|
|
||||||
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
||||||
/******/
|
|
||||||
/******/ })()
|
|
||||||
;
|
|
||||||
//# sourceMappingURL=index.js.map
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -2,7 +2,3 @@
|
||||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/style.scss ***!
|
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/style.scss ***!
|
||||||
\***************************************************************************************************************************************************************************************************************************************/
|
\***************************************************************************************************************************************************************************************************************************************/
|
||||||
|
|
||||||
/*!*******************************************************************************************************************************************************************************************************************************************************!*\
|
|
||||||
!*** 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/nested-children/style.scss ***!
|
|
||||||
\*******************************************************************************************************************************************************************************************************************************************************/
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,13 +12,5 @@
|
||||||
"textdomain": "homegrade-blocks",
|
"textdomain": "homegrade-blocks",
|
||||||
"editorScript": "file:./index.js",
|
"editorScript": "file:./index.js",
|
||||||
"editorStyle": "file:./index.css",
|
"editorStyle": "file:./index.css",
|
||||||
"style": "file:./style-index.css",
|
"style": "file:./style-index.css"
|
||||||
"attributes": {
|
|
||||||
"blockTitle": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"blockSubtitle": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { __ } from "@wordpress/i18n";
|
import { __ } from "@wordpress/i18n";
|
||||||
import "./editor.scss";
|
import "./editor.scss";
|
||||||
import "./nested-children";
|
// import "./monobloc";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
useBlockProps,
|
useBlockProps,
|
||||||
|
|
@ -12,51 +12,32 @@ import {
|
||||||
import { Tip, PanelBody } from "@wordpress/components";
|
import { Tip, PanelBody } from "@wordpress/components";
|
||||||
|
|
||||||
export default function Edit({ attributes, setAttributes, clientId }) {
|
export default function Edit({ attributes, setAttributes, clientId }) {
|
||||||
let { blockTitle, blockSubtitle } = attributes;
|
|
||||||
|
|
||||||
function onChangeBlockTitle(blockTitle) {
|
|
||||||
setAttributes({ blockTitle });
|
|
||||||
}
|
|
||||||
function onChangeBlockSubtitle(blockSubtitle) {
|
|
||||||
setAttributes({ blockSubtitle });
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<InspectorControls>
|
<InspectorControls>
|
||||||
<PanelBody>
|
<PanelBody>{/* <Tip>salut</Tip> */}</PanelBody>
|
||||||
<Tip>salut</Tip>
|
|
||||||
</PanelBody>
|
|
||||||
</InspectorControls>
|
</InspectorControls>
|
||||||
<section
|
<section
|
||||||
{...useBlockProps({
|
{...useBlockProps({
|
||||||
className: `starter-nested-parent`,
|
className: `homegrade-content-blocks-grey-box alignfull`,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<RichText
|
|
||||||
value={blockTitle}
|
|
||||||
tagName="h3"
|
|
||||||
className="starter-nested-parent__title"
|
|
||||||
placeholder={__("Ajouter ici le Titre", "homegrade")}
|
|
||||||
onChange={onChangeBlockTitle}
|
|
||||||
/>
|
|
||||||
<RichText
|
|
||||||
value={blockSubtitle}
|
|
||||||
tagName="h4"
|
|
||||||
className="starter-nested-parent__subtitle"
|
|
||||||
placeholder={__("Ajouter ici le Sous-titre", "homegrade")}
|
|
||||||
onChange={onChangeBlockSubtitle}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div className="starter-nested-parent__children-container">
|
|
||||||
<InnerBlocks
|
<InnerBlocks
|
||||||
// allowedBlocks={[
|
allowedBlocks={[
|
||||||
// "core/paragraph",
|
"homegrade-content-blocks/section-titling",
|
||||||
// "homegrade-content-blocks/starter-nested-child",
|
"homegrade-content-blocks/box-monoblock",
|
||||||
// ]}
|
]}
|
||||||
allowedBlocks={["core/paragraph"]}
|
template={[
|
||||||
|
[
|
||||||
|
"homegrade-content-blocks/section-titling",
|
||||||
|
{
|
||||||
|
sectionTitle: "Titre de Votre section",
|
||||||
|
sectionSubtitle: "Sous-titre de Votre section",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
["homegrade-content-blocks/box-monoblock"],
|
||||||
|
]}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
.homegrade-blocks-staff-list {
|
|
||||||
.homegrade-blocks-staff-list__staff-list {
|
|
||||||
display: unset;
|
|
||||||
}
|
|
||||||
.block-editor-block-list__layout {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -8,12 +8,17 @@ import metadata from "./block.json";
|
||||||
registerBlockType(metadata.name, {
|
registerBlockType(metadata.name, {
|
||||||
icon: {
|
icon: {
|
||||||
src: (
|
src: (
|
||||||
<svg version="1.1" x="0px" y="0px" viewBox="0 0 128 160">
|
<svg version="1.1" x="0px" y="0px" viewBox="0 0 100 125">
|
||||||
<g>
|
<g transform="translate(0,-952.36218)">
|
||||||
<circle cx="67" cy="11" r="10" />
|
<path
|
||||||
<circle cx="37" cy="21" r="10" />
|
d="m 49.593802,961.37673 a 4.0004,4.0004 0 0 0 -1.125,0.28125 l -36,15 a 4.0004,4.0004 0 0 0 -2.4688,3.71875 l 0,43.99997 a 4.0004,4.0004 0 0 0 2.4688,3.6875 l 36,15 a 4.0004,4.0004 0 0 0 3.0624,0 l 35.999996,-15 a 4.0004,4.0004 0 0 0 2.4688,-3.6875 l 0,-43.99997 a 4.0004,4.0004 0 0 0 -2.4688,-3.71875 l -35.999996,-15 a 4.0004,4.0004 0 0 0 -1.9374,-0.28125 z m 0.4062,8.3125 25.5938,10.65625 -25.5938,10.6875 -25.5938,-10.6875 25.5938,-10.65625 z m -32,16.6875 28,11.65625 0,35.34372 -28,-11.6875 0,-35.31247 z m 63.999996,0 0,35.31247 -27.999996,11.6875 0,-35.34372 27.999996,-11.65625 z"
|
||||||
<path d="M17,51v36h10v40h20h40h20V87h10V51c0-5.5-4.5-10-10-10L97,51v26H87v40H77V77h10V41c0-5.5-4.5-10-10-10L67,41L57,31 c-5.5,0-10,4.5-10,10v36h10v40H47V77H37V51L27,41C21.5,41,17,45.5,17,51z" />
|
fill-opacity="1"
|
||||||
<circle cx="97" cy="21" r="10" />
|
stroke="none"
|
||||||
|
marker="none"
|
||||||
|
visibility="visible"
|
||||||
|
display="inline"
|
||||||
|
overflow="visible"
|
||||||
|
/>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
{
|
|
||||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
|
||||||
"apiVersion": 2,
|
|
||||||
"name": "homegrade-content-blocks/starter-nested-child",
|
|
||||||
"version": "0.1.0",
|
|
||||||
"title": "Starter Nested — Child",
|
|
||||||
"category": "homegrade-blocks",
|
|
||||||
"description": "Starter nested — Child",
|
|
||||||
"supports": {
|
|
||||||
"html": false
|
|
||||||
},
|
|
||||||
"editorScript": "file:./index.js",
|
|
||||||
"editorStyle": "file:./index.css",
|
|
||||||
"style": "file:./style-index.css",
|
|
||||||
"attributes": {
|
|
||||||
"childName": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
import { __ } from "@wordpress/i18n";
|
|
||||||
import "./editor.scss";
|
|
||||||
|
|
||||||
import { useBlockProps, RichText } from "@wordpress/block-editor";
|
|
||||||
|
|
||||||
export default function Edit({ attributes, setAttributes, ...props }) {
|
|
||||||
let { childName } = attributes;
|
|
||||||
|
|
||||||
function onChangeChildName(childName) {
|
|
||||||
setAttributes({ childName });
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div
|
|
||||||
{...useBlockProps({
|
|
||||||
className: `homegrade-blocks-staff-member`,
|
|
||||||
})}
|
|
||||||
>
|
|
||||||
<RichText
|
|
||||||
tagName="p"
|
|
||||||
className="homegrade-blocks-staff-member__child-name"
|
|
||||||
onChange={onChangeChildName}
|
|
||||||
value={childName}
|
|
||||||
placeholder="Nom de l'enfant"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
// THE STYLE IS HANDLED IN PARENT BLOCK (timeline)
|
|
||||||
|
|
@ -1,51 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg id="mascotte" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 60 60">
|
|
||||||
<defs>
|
|
||||||
<style>
|
|
||||||
.cls-1 {
|
|
||||||
fill: url(#Dégradé_sans_nom_3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.cls-1, .cls-2 {
|
|
||||||
stroke-width: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cls-3 {
|
|
||||||
fill: #fff;
|
|
||||||
stroke: #000;
|
|
||||||
stroke-linecap: round;
|
|
||||||
stroke-linejoin: round;
|
|
||||||
stroke-width: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cls-2 {
|
|
||||||
fill: url(#Dégradé_sans_nom_3-2);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<linearGradient id="Dégradé_sans_nom_3" data-name="Dégradé sans nom 3" x1="-2280.28" y1="80.03" x2="-2279.29" y2="78.98" gradientTransform="translate(6033.72 622.47) scale(2.63 -7.44)" gradientUnits="userSpaceOnUse">
|
|
||||||
<stop offset="0" stop-color="#f3281d"/>
|
|
||||||
<stop offset="1" stop-color="#fe766f"/>
|
|
||||||
</linearGradient>
|
|
||||||
<linearGradient id="Dégradé_sans_nom_3-2" data-name="Dégradé sans nom 3" x1="-2276.06" y1="80.02" x2="-2275.06" y2="78.97" gradientTransform="translate(6009.38 619.45) scale(2.62 -7.44)" xlink:href="#Dégradé_sans_nom_3"/>
|
|
||||||
</defs>
|
|
||||||
<g id="Groupe_5862" data-name="Groupe 5862">
|
|
||||||
<g id="Groupe_3195" data-name="Groupe 3195">
|
|
||||||
<g id="Groupe_de_masques_1" data-name="Groupe de masques 1">
|
|
||||||
<g id="Groupe_5593" data-name="Groupe 5593">
|
|
||||||
<g id="Groupe_5595" data-name="Groupe 5595">
|
|
||||||
<g id="Groupe_5594" data-name="Groupe 5594">
|
|
||||||
<path id="Tracé_23844" data-name="Tracé 23844" class="cls-3" d="m12.46,54.29c.34-1.09.82-2.53,1.49-4.18,0,0,.36-.88.77-1.79,1.62-3.6,5.34-9.45,5.6-9.85l18.98-6.94.29,7.22c2.01,1.44,3.72,3.25,5.03,5.34,1,1.61,1.76,3.35,2.25,5.18.42,1.65.64,3.34.66,5.03"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<g id="Groupe_5596" data-name="Groupe 5596">
|
|
||||||
<path id="Tracé_23846" data-name="Tracé 23846" class="cls-3" d="m47.07,36.61l-14.99,8.65v-17.2l7.49-13.7,7.5,5.05v17.19Z"/>
|
|
||||||
<path id="Tracé_23847" data-name="Tracé 23847" class="cls-3" d="m32.08,45.26l-14.98-8.65v-17.19l14.98,8.65v17.19Z"/>
|
|
||||||
<path id="Tracé_23848" data-name="Tracé 23848" class="cls-3" d="m17.1,19.41l7.49-13.7,14.98,8.65-7.49,13.7-14.98-8.65Z"/>
|
|
||||||
</g>
|
|
||||||
<path id="Tracé_23849" data-name="Tracé 23849" class="cls-1" d="m36.34,33.91l2.63-1.52v-5.92l-2.63,1.51v5.93Z"/>
|
|
||||||
<path id="Tracé_23850" data-name="Tracé 23850" class="cls-2" d="m41.32,31.05l2.62-1.51v-5.93l-2.62,1.51v5.93Z"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 2.5 KiB |
|
|
@ -1,44 +0,0 @@
|
||||||
import { registerBlockType } from "@wordpress/blocks";
|
|
||||||
import "./style.scss";
|
|
||||||
import metadata from "./block.json";
|
|
||||||
|
|
||||||
import Edit from "./edit";
|
|
||||||
import Save from "./save";
|
|
||||||
|
|
||||||
import { navigation } from "@wordpress/icons";
|
|
||||||
|
|
||||||
registerBlockType(metadata.name, {
|
|
||||||
title: metadata.title,
|
|
||||||
icon: {
|
|
||||||
foreground: "#DF1E1E",
|
|
||||||
src: (
|
|
||||||
<svg
|
|
||||||
version="1.1"
|
|
||||||
viewBox="0 0 50800 63500"
|
|
||||||
x="0px"
|
|
||||||
y="0px"
|
|
||||||
fill-rule="evenodd"
|
|
||||||
clip-rule="evenodd"
|
|
||||||
>
|
|
||||||
<defs>
|
|
||||||
<style type="text/css"></style>
|
|
||||||
</defs>
|
|
||||||
<g>
|
|
||||||
<path
|
|
||||||
class="fil0"
|
|
||||||
d="M34027 25667c-2015,1921 -4758,3103 -7780,3103 -3022,0 -5765,-1182 -7780,-3103 -347,-86 -694,-171 -1031,-214 -337,-43 -663,-43 -967,4 -303,46 -583,140 -910,257 -327,116 -700,256 -1167,536 -466,280 -1027,700 -1563,1401 -537,699 -1050,1680 -1517,2847 -467,1166 -887,2520 -1120,3827 -233,1306 -280,2567 -303,3523 -24,957 -24,1611 70,2241 93,630 279,1236 700,1843 420,607 1073,1214 1843,1680 770,467 1657,794 2871,957 1213,163 2753,163 4620,163l5414 0 840 0 840 0 5414 0c1867,0 3407,0 4620,-163 1214,-163 2101,-490 2871,-957 770,-466 1423,-1073 1843,-1680 421,-607 607,-1213 700,-1843 94,-630 94,-1284 70,-2241 -23,-956 -70,-2217 -303,-3523 -233,-1307 -653,-2661 -1120,-3827 -467,-1167 -980,-2148 -1517,-2847 -536,-701 -1097,-1121 -1563,-1401 -467,-280 -840,-420 -1167,-536 -327,-117 -607,-211 -910,-257 -304,-47 -630,-47 -967,-4 -337,43 -684,128 -1031,214z"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
class="fil0"
|
|
||||||
d="M26247 26670c4949,0 8961,-4012 8961,-8961 0,-4949 -4012,-8961 -8961,-8961 -4949,0 -8961,4012 -8961,8961 0,4949 4012,8961 8961,8961z"
|
|
||||||
/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
|
|
||||||
supports: metadata.supports,
|
|
||||||
attributes: metadata.attributes,
|
|
||||||
edit: Edit,
|
|
||||||
save: Save,
|
|
||||||
});
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
import { useBlockProps, RichText, InnerBlocks } from "@wordpress/block-editor";
|
|
||||||
import mascotte from "./img/homegrade_mascotte.svg";
|
|
||||||
|
|
||||||
export default function save({ attributes }) {
|
|
||||||
const { name, position } = attributes;
|
|
||||||
return (
|
|
||||||
<li
|
|
||||||
{...useBlockProps.save({
|
|
||||||
className: `homegrade-blocks-staff-member`,
|
|
||||||
})}
|
|
||||||
>
|
|
||||||
<div className="homegrade-blocks-staff-member__member-icon">
|
|
||||||
<img src={mascotte} alt="" />
|
|
||||||
</div>
|
|
||||||
<div className="homegrade-blocks-staff-member__member-informations">
|
|
||||||
<RichText.Content
|
|
||||||
tagName="h4"
|
|
||||||
value={name}
|
|
||||||
className="homegrade-blocks-staff-member__name"
|
|
||||||
/>
|
|
||||||
<RichText.Content
|
|
||||||
tagName="p"
|
|
||||||
value={position}
|
|
||||||
className="homegrade-blocks-staff-member__position"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
// THE STYLE IS HANDLED IN PARENT BLOCK (timeline)
|
|
||||||
|
|
@ -1,28 +1,13 @@
|
||||||
import { useBlockProps, RichText, InnerBlocks } from "@wordpress/block-editor";
|
import { useBlockProps, RichText, InnerBlocks } from "@wordpress/block-editor";
|
||||||
|
|
||||||
export default function save({ attributes }) {
|
export default function save({ attributes }) {
|
||||||
let { blockTitle, blockSubtitle } = attributes;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
{...useBlockProps.save({
|
{...useBlockProps.save({
|
||||||
className: `starter-nested-parent`,
|
className: `homegrade-content-blocks-grey-box`,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<RichText.Content
|
|
||||||
value={blockTitle}
|
|
||||||
tagName="h3"
|
|
||||||
className="starter-nested-parent__title"
|
|
||||||
/>
|
|
||||||
<RichText.Content
|
|
||||||
value={blockSubtitle}
|
|
||||||
tagName="h4"
|
|
||||||
className="starter-nested-parent__subtitle"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div className="starter-nested-parent__children-container">
|
|
||||||
<InnerBlocks.Content />
|
<InnerBlocks.Content />
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
// HANDLED BY THE THEME
|
||||||
Loading…
Reference in New Issue
Block a user