diff --git a/assets/images/icon-carousel.svg b/assets/images/icon-carousel.svg new file mode 100644 index 0000000..e01f333 --- /dev/null +++ b/assets/images/icon-carousel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/blocks/build/eo-carousel/block.json b/blocks/build/eo-carousel/block.json new file mode 100644 index 0000000..b17317c --- /dev/null +++ b/blocks/build/eo-carousel/block.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "eo/carousel", + "version": "1.0.0", + "title": "Carousel", + "category": "eo-blocks", + "icon": "smiley", + "description": "Display carousel block", + "example": {}, + "attributes": {}, + "supports": {}, + "textdomain": "carousel", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": [ + "file:./style-index.css" + ], + "render": "file:./render.php", + "viewScript": "file:./view.js" +} \ No newline at end of file diff --git a/blocks/build/eo-carousel/index-rtl.css b/blocks/build/eo-carousel/index-rtl.css new file mode 100644 index 0000000..43d864a --- /dev/null +++ b/blocks/build/eo-carousel/index-rtl.css @@ -0,0 +1,8 @@ +/*!****************************************************************************************************************************************************************************************************************************************************************!*\ + !*** 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]!./blocks/src/eo-carousel/scss/editor.scss ***! + \****************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ diff --git a/blocks/build/eo-carousel/index.asset.php b/blocks/build/eo-carousel/index.asset.php new file mode 100644 index 0000000..7eb8918 --- /dev/null +++ b/blocks/build/eo-carousel/index.asset.php @@ -0,0 +1 @@ + array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '38e5e7121d134e614a1a'); diff --git a/blocks/build/eo-carousel/index.css b/blocks/build/eo-carousel/index.css new file mode 100644 index 0000000..462990e --- /dev/null +++ b/blocks/build/eo-carousel/index.css @@ -0,0 +1,10 @@ +/*!****************************************************************************************************************************************************************************************************************************************************************!*\ + !*** 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]!./blocks/src/eo-carousel/scss/editor.scss ***! + \****************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/blocks/build/eo-carousel/index.css.map b/blocks/build/eo-carousel/index.css.map new file mode 100644 index 0000000..95f1aec --- /dev/null +++ b/blocks/build/eo-carousel/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"eo-carousel/index.css","mappings":";;;AAAA;;;;EAAA,C","sources":["webpack://eo-blocks/./blocks/src/eo-carousel/scss/editor.scss"],"sourcesContent":["/**\r\n * The following styles get applied inside the editor only.\r\n *\r\n * Replace them with your own styles or remove the file completely.\r\n */\r\n\r\n.wp-block-eo-carousel{\r\n}\r\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/build/eo-carousel/index.js b/blocks/build/eo-carousel/index.js new file mode 100644 index 0000000..75c4c2f --- /dev/null +++ b/blocks/build/eo-carousel/index.js @@ -0,0 +1,439 @@ +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ var __webpack_modules__ = ({ + +/***/ "./assets/images/icon-carousel.svg": +/*!*****************************************!*\ + !*** ./assets/images/icon-carousel.svg ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ ReactComponent: () => (/* binding */ SvgIconCarousel), +/* 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; +function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } + +var SvgIconCarousel = function SvgIconCarousel(props) { + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({ + xmlns: "http://www.w3.org/2000/svg", + id: "icon-carousel_svg__Calque_2", + viewBox: "0 0 218.23 90.34" + }, props), _defs || (_defs = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("defs", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("style", null, ".icon-carousel_svg__cls-1{stroke-width:0}"))), _g || (_g = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", { + id: "icon-carousel_svg__Calque_1-2" + }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { + d: "M174.16 4c2.18 0 3.95 1.77 3.95 3.95v74.43c0 2.18-1.77 3.95-3.95 3.95H44.07c-2.18 0-3.95-1.77-3.95-3.95V7.95c0-2.18 1.77-3.95 3.95-3.95zm0-4H44.07c-4.4 0-7.96 3.56-7.96 7.95v74.43a7.95 7.95 0 0 0 7.95 7.95h130.09a7.95 7.95 0 0 0 7.95-7.95V7.95c.02-4.39-3.55-7.95-7.94-7.95M15.09 4c2.18 0 3.95 1.77 3.95 3.95v74.43c0 2.18-1.77 3.95-3.95 3.95H7.96c-2.18 0-3.95-1.77-3.95-3.95V7.95C4.01 5.77 5.78 4 7.96 4zm0-4H7.96C3.56 0 0 3.56 0 7.95v74.43a7.95 7.95 0 0 0 7.95 7.95h7.13a7.95 7.95 0 0 0 7.95-7.95V7.95A7.95 7.95 0 0 0 15.08 0ZM210.27 4c2.18 0 3.95 1.77 3.95 3.95v74.43c0 2.18-1.77 3.95-3.95 3.95h-7.13c-2.18 0-3.95-1.77-3.95-3.95V7.95c0-2.18 1.77-3.95 3.95-3.95zm0-4h-7.13a7.95 7.95 0 0 0-7.95 7.95v74.43a7.95 7.95 0 0 0 7.95 7.95h7.13a7.95 7.95 0 0 0 7.95-7.95V7.95A7.95 7.95 0 0 0 210.27 0", + className: "icon-carousel_svg__cls-1" + }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", { + d: "M162.53 21.26c.7 0 1.27.57 1.27 1.27v6.35c0 .7-.57 1.27-1.27 1.27H55.7c-.7 0-1.27-.57-1.27-1.27v-6.35c0-.7.57-1.27 1.27-1.27h106.84m0-4H55.7a5.27 5.27 0 0 0-5.27 5.27v6.35a5.27 5.27 0 0 0 5.27 5.27h106.84a5.27 5.27 0 0 0 5.27-5.27v-6.35a5.27 5.27 0 0 0-5.27-5.27M162.79 44.59c.56 0 1.01.45 1.01 1.01v23.75c0 .56-.45 1.01-1.01 1.01H55.44c-.56 0-1.01-.45-1.01-1.01V45.6c0-.56.45-1.01 1.01-1.01zm0-4H55.44c-2.77 0-5.01 2.24-5.01 5.01v23.75c0 2.77 2.24 5.01 5.01 5.01h107.35c2.77 0 5.01-2.24 5.01-5.01V45.6c0-2.77-2.24-5.01-5.01-5.01", + className: "icon-carousel_svg__cls-1" + })))); +}; + +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJDYWxxdWVfMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMjE4LjIzIDkwLjM0Ij48ZGVmcz48c3R5bGU+LmNscy0xe3N0cm9rZS13a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/***/ "./blocks/src/eo-carousel/edit.js": +/*!****************************************!*\ + !*** ./blocks/src/eo-carousel/edit.js ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ Edit) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _scss_editor_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scss/editor.scss */ "./blocks/src/eo-carousel/scss/editor.scss"); + +/** + * Retrieves the translation of text. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-i18n/ + */ + + +/** + * React hook that is used to mark the block wrapper element. + * It provides all the necessary props like the class name. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops + */ + + + +/** + * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. + * Those files can contain any CSS code that gets applied to the editor. + * + * @see https://www.npmjs.com/package/@wordpress/scripts#using-css + */ + + +/** + * The edit function describes the structure of your block in the context of the + * editor. This represents what the editor will render when the block is used. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#edit + * + * @return {Element} Element to render. + */ +function Edit({ + attributes, + setAttributes +}) { + return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.InspectorControls, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_3__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Carousel settings', 'eo-blocks') + })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { + ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.useBlockProps)() + }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { + className: "eo-carousel__inner" + }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.InnerBlocks, null)))); +} + +/***/ }), + +/***/ "./blocks/src/eo-carousel/index.js": +/*!*****************************************!*\ + !*** ./blocks/src/eo-carousel/index.js ***! + \*****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _assets_images_icon_carousel_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../../../assets/images/icon-carousel.svg */ "./assets/images/icon-carousel.svg"); +/* harmony import */ var _scss_style_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scss/style.scss */ "./blocks/src/eo-carousel/scss/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./edit */ "./blocks/src/eo-carousel/edit.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./block.json */ "./blocks/src/eo-carousel/block.json"); + +/** + * Registers a new block provided a unique name and an object defining its behavior. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ + + + +/** + * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. + * All files containing `style` keyword are bundled together. The code used + * gets applied both to the front of your site and to the editor. + * + * @see https://www.npmjs.com/package/@wordpress/scripts#using-css + */ + + +/** + * Internal dependencies + */ + + +const blockIcon = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { + id: "Calque_2", + xmlns: "http://www.w3.org/2000/svg", + viewBox: "0 0 182.85 111.3" +}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", { + id: "Calque_1-2" +}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { + className: "cls-1", + d: "m135.26,111.3H47.59c-6.87,0-12.45-5.59-12.45-12.46V12.45c0-6.87,5.59-12.45,12.45-12.45h87.68c6.87,0,12.45,5.59,12.45,12.45v86.39c0,6.87-5.59,12.46-12.45,12.46ZM47.59,9c-1.9,0-3.45,1.55-3.45,3.45v86.39c0,1.91,1.55,3.46,3.45,3.46h87.68c1.9,0,3.45-1.55,3.45-3.46V12.45c0-1.9-1.55-3.45-3.45-3.45H47.59Z" +}), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { + className: "cls-1", + d: "m170.39,111.3h-5.79c-6.87,0-12.46-5.59-12.46-12.46V12.45c0-6.87,5.59-12.45,12.46-12.45h5.79c6.87,0,12.46,5.59,12.46,12.45v86.39c0,6.87-5.59,12.46-12.46,12.46Zm-5.79-102.3c-1.91,0-3.46,1.55-3.46,3.45v86.39c0,1.91,1.55,3.46,3.46,3.46h5.79c1.91,0,3.46-1.55,3.46-3.46V12.45c0-1.9-1.55-3.45-3.46-3.45h-5.79Z" +}), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { + className: "cls-1", + d: "m18.25,111.3h-5.79c-6.87,0-12.45-5.59-12.45-12.46V12.45C0,5.59,5.59,0,12.45,0h5.79c6.87,0,12.45,5.59,12.45,12.45v86.39c0,6.87-5.59,12.46-12.45,12.46ZM12.45,9c-1.9,0-3.45,1.55-3.45,3.45v86.39c0,1.91,1.55,3.46,3.45,3.46h5.79c1.9,0,3.45-1.55,3.45-3.46V12.45c0-1.9-1.55-3.45-3.45-3.45h-5.79Z" +}), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { + className: "cls-1", + d: "m122.17,43.09h-61.49c-5.39,0-9.77-4.38-9.77-9.77v-7.47c0-5.39,4.38-9.77,9.77-9.77h61.49c5.39,0,9.77,4.38,9.77,9.77v7.47c0,5.39-4.38,9.77-9.77,9.77Zm-61.49-18.01c-.43,0-.77.35-.77.77v7.47c0,.43.35.77.77.77h61.49c.43,0,.77-.35.77-.77v-7.47c0-.43-.35-.77-.77-.77h-61.49Z" +}), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { + className: "cls-1", + d: "m122.43,96.14h-62.01c-5.25,0-9.51-4.27-9.51-9.51v-27.54c0-5.25,4.27-9.51,9.51-9.51h62.01c5.25,0,9.51,4.27,9.51,9.51v27.54c0,5.25-4.27,9.51-9.51,9.51Zm-62.01-37.57c-.28,0-.51.23-.51.51v27.54c0,.28.23.51.51.51h62.01c.28,0,.51-.23.51-.51v-27.54c0-.28-.23-.51-.51-.51h-62.01Z" +}))); + +/** + * Every block starts by registering a new block type definition. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_6__.name, { + /** + * @see ./edit.js + */ + edit: _edit__WEBPACK_IMPORTED_MODULE_5__["default"], + save: props => { + return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.InnerBlocks.Content, null); + }, + icon: blockIcon +}); + +/***/ }), + +/***/ "./blocks/src/eo-carousel/scss/editor.scss": +/*!*************************************************!*\ + !*** ./blocks/src/eo-carousel/scss/editor.scss ***! + \*************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./blocks/src/eo-carousel/scss/style.scss": +/*!************************************************!*\ + !*** ./blocks/src/eo-carousel/scss/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/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ ((module) => { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ ((module) => { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "./blocks/src/eo-carousel/block.json": +/*!*******************************************!*\ + !*** ./blocks/src/eo-carousel/block.json ***! + \*******************************************/ +/***/ ((module) => { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"eo/carousel","version":"1.0.0","title":"Carousel","category":"eo-blocks","icon":"smiley","description":"Display carousel block","example":{},"attributes":{},"supports":{},"textdomain":"carousel","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":["file:./style-index.css"],"render":"file:./render.php","viewScript":"file:./view.js"}'); + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ (() => { +/******/ var deferred = []; +/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var [chunkIds, fn, priority] = deferred[i]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ (() => { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "eo-carousel/index": 0, +/******/ "eo-carousel/style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0); +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => { +/******/ var [chunkIds, moreModules, runtime] = data; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = globalThis["webpackChunkeo_blocks"] = globalThis["webpackChunkeo_blocks"] || []; +/******/ 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, ["eo-carousel/style-index"], () => (__webpack_require__("./blocks/src/eo-carousel/index.js"))) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/blocks/build/eo-carousel/index.js.map b/blocks/build/eo-carousel/index.js.map new file mode 100644 index 0000000..2c9b1d7 --- /dev/null +++ b/blocks/build/eo-carousel/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"eo-carousel/index.js","mappings":";;;;;;;;;;;;;;;;;AAAA;AACA,sBAAsB,wEAAwE,gBAAgB,sBAAsB,OAAO,sBAAsB,oBAAoB,gDAAgD,WAAW;AACjN;AAC/B;AACA,sBAAsB,gDAAmB;AACzC;AACA;AACA;AACA,GAAG,yCAAyC,gDAAmB,4BAA4B,gDAAmB,2CAA2C,eAAe,+BAA+B,gDAAmB;AAC1N;AACA,GAAG,eAAe,gDAAmB;AACrC;AACA;AACA,GAAG,gBAAgB,gDAAmB;AACtC;AACA;AACA,GAAG;AACH;AAC6C;AAC7C,iEAAe,oBAAoB,gwEAAgwE;;;;;;;;;;;;;;;;;;;;;;;;ACnBnyE;AACA;AACA;AACA;AACA;AACqC;;AAErC;AACA;AACA;AACA;AACA;AACA;AACwF;AACtC;;AAElD;AACA;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,IAAI,EAAEhB,6CAAI;EACViB,IAAI,EAAEC,KAAK,IAAI;IACd,OAAOf,oDAAA,CAACL,gEAAW,CAACqB,OAAO,MAAC,CAAC;EAC9B,CAAC;EACDC,IAAI,EAAEV;AACP,CAAC,CAAC;;;;;;;;;;;ACtDF;;;;;;;;;;;;ACAA;;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://eo-blocks/./assets/images/icon-carousel.svg","webpack://eo-blocks/./blocks/src/eo-carousel/edit.js","webpack://eo-blocks/./blocks/src/eo-carousel/index.js","webpack://eo-blocks/./blocks/src/eo-carousel/scss/editor.scss","webpack://eo-blocks/./blocks/src/eo-carousel/scss/style.scss","webpack://eo-blocks/external window \"React\"","webpack://eo-blocks/external window [\"wp\",\"blockEditor\"]","webpack://eo-blocks/external window [\"wp\",\"blocks\"]","webpack://eo-blocks/external window [\"wp\",\"components\"]","webpack://eo-blocks/external window [\"wp\",\"i18n\"]","webpack://eo-blocks/webpack/bootstrap","webpack://eo-blocks/webpack/runtime/chunk loaded","webpack://eo-blocks/webpack/runtime/compat get default export","webpack://eo-blocks/webpack/runtime/define property getters","webpack://eo-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://eo-blocks/webpack/runtime/make namespace object","webpack://eo-blocks/webpack/runtime/jsonp chunk loading","webpack://eo-blocks/webpack/before-startup","webpack://eo-blocks/webpack/startup","webpack://eo-blocks/webpack/after-startup"],"sourcesContent":["var _defs, _g;\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from \"react\";\nvar SvgIconCarousel = function SvgIconCarousel(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n xmlns: \"http://www.w3.org/2000/svg\",\n id: \"icon-carousel_svg__Calque_2\",\n viewBox: \"0 0 218.23 90.34\"\n }, props), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"style\", null, \".icon-carousel_svg__cls-1{stroke-width:0}\"))), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n id: \"icon-carousel_svg__Calque_1-2\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M174.16 4c2.18 0 3.95 1.77 3.95 3.95v74.43c0 2.18-1.77 3.95-3.95 3.95H44.07c-2.18 0-3.95-1.77-3.95-3.95V7.95c0-2.18 1.77-3.95 3.95-3.95zm0-4H44.07c-4.4 0-7.96 3.56-7.96 7.95v74.43a7.95 7.95 0 0 0 7.95 7.95h130.09a7.95 7.95 0 0 0 7.95-7.95V7.95c.02-4.39-3.55-7.95-7.94-7.95M15.09 4c2.18 0 3.95 1.77 3.95 3.95v74.43c0 2.18-1.77 3.95-3.95 3.95H7.96c-2.18 0-3.95-1.77-3.95-3.95V7.95C4.01 5.77 5.78 4 7.96 4zm0-4H7.96C3.56 0 0 3.56 0 7.95v74.43a7.95 7.95 0 0 0 7.95 7.95h7.13a7.95 7.95 0 0 0 7.95-7.95V7.95A7.95 7.95 0 0 0 15.08 0ZM210.27 4c2.18 0 3.95 1.77 3.95 3.95v74.43c0 2.18-1.77 3.95-3.95 3.95h-7.13c-2.18 0-3.95-1.77-3.95-3.95V7.95c0-2.18 1.77-3.95 3.95-3.95zm0-4h-7.13a7.95 7.95 0 0 0-7.95 7.95v74.43a7.95 7.95 0 0 0 7.95 7.95h7.13a7.95 7.95 0 0 0 7.95-7.95V7.95A7.95 7.95 0 0 0 210.27 0\",\n className: \"icon-carousel_svg__cls-1\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M162.53 21.26c.7 0 1.27.57 1.27 1.27v6.35c0 .7-.57 1.27-1.27 1.27H55.7c-.7 0-1.27-.57-1.27-1.27v-6.35c0-.7.57-1.27 1.27-1.27h106.84m0-4H55.7a5.27 5.27 0 0 0-5.27 5.27v6.35a5.27 5.27 0 0 0 5.27 5.27h106.84a5.27 5.27 0 0 0 5.27-5.27v-6.35a5.27 5.27 0 0 0-5.27-5.27M162.79 44.59c.56 0 1.01.45 1.01 1.01v23.75c0 .56-.45 1.01-1.01 1.01H55.44c-.56 0-1.01-.45-1.01-1.01V45.6c0-.56.45-1.01 1.01-1.01zm0-4H55.44c-2.77 0-5.01 2.24-5.01 5.01v23.75c0 2.77 2.24 5.01 5.01 5.01h107.35c2.77 0 5.01-2.24 5.01-5.01V45.6c0-2.77-2.24-5.01-5.01-5.01\",\n className: \"icon-carousel_svg__cls-1\"\n }))));\n};\nexport { Sv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LTEuMDFoMTA3LjM1bTAtNEg1NS40NGMtMi43NywwLTUuMDEsMi4yNC01LjAxLDUuMDF2MjMuNzVjMCwyLjc3LDIuMjQsNS4wMSw1LjAxLDUuMDFoMTA3LjM1YzIuNzcsMCw1LjAxLTIuMjQsNS4wMS01LjAxdi0yMy43NWMwLTIuNzctMi4yNC01LjAxLTUuMDEtNS4wMWgwWiIvPjwvZz48L3N2Zz4=\";","/**\r\n * Retrieves the translation of text.\r\n *\r\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-i18n/\r\n */\r\nimport { __ } from '@wordpress/i18n';\r\n\r\n/**\r\n * React hook that is used to mark the block wrapper element.\r\n * It provides all the necessary props like the class name.\r\n *\r\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\r\n */\r\nimport { InspectorControls, useBlockProps, InnerBlocks } from '@wordpress/block-editor';\r\nimport { PanelBody } from '@wordpress/components';\r\n\r\n/**\r\n * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.\r\n * Those files can contain any CSS code that gets applied to the editor.\r\n *\r\n * @see https://www.npmjs.com/package/@wordpress/scripts#using-css\r\n */\r\nimport './scss/editor.scss';\r\n\r\n/**\r\n * The edit function describes the structure of your block in the context of the\r\n * editor. This represents what the editor will render when the block is used.\r\n *\r\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#edit\r\n *\r\n * @return {Element} Element to render.\r\n */\r\nexport default function Edit( { attributes, setAttributes } ) {\r\n\treturn (\r\n\t\t<>\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\r\n\t);\r\n}\r\n","/**\r\n * Registers a new block provided a unique name and an object defining its behavior.\r\n *\r\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\r\n */\r\nimport { registerBlockType } from '@wordpress/blocks';\r\nimport { InnerBlocks } from '@wordpress/block-editor'\r\nimport iconCarousel from './../../../assets/images/icon-carousel.svg';\r\n/**\r\n * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.\r\n * All files containing `style` keyword are bundled together. The code used\r\n * gets applied both to the front of your site and to the editor.\r\n *\r\n * @see https://www.npmjs.com/package/@wordpress/scripts#using-css\r\n */\r\nimport './scss/style.scss';\r\n\r\n/**\r\n * Internal dependencies\r\n */\r\nimport Edit from './edit';\r\nimport metadata from './block.json';\r\n\r\nconst blockIcon = (\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n);\r\n\r\n/**\r\n * Every block starts by registering a new block type definition.\r\n *\r\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\r\n */\r\nregisterBlockType(metadata.name, {\r\n\t/**\r\n\t * @see ./edit.js\r\n\t */\r\n\tedit: Edit,\r\n\tsave: props => {\r\n\t\treturn \r\n\t},\r\n\ticon: blockIcon,\r\n});\r\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"eo-carousel/index\": 0,\n\t\"eo-carousel/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkeo_blocks\"] = globalThis[\"webpackChunkeo_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"eo-carousel/style-index\"], () => (__webpack_require__(\"./blocks/src/eo-carousel/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","InspectorControls","useBlockProps","InnerBlocks","PanelBody","Edit","attributes","setAttributes","createElement","Fragment","title","className","registerBlockType","iconCarousel","metadata","blockIcon","id","xmlns","viewBox","d","name","edit","save","props","Content","icon"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/build/eo-carousel/render.php b/blocks/build/eo-carousel/render.php new file mode 100644 index 0000000..c2d0371 --- /dev/null +++ b/blocks/build/eo-carousel/render.php @@ -0,0 +1,20 @@ + + +
> + +
diff --git a/blocks/build/eo-carousel/style-index-rtl.css b/blocks/build/eo-carousel/style-index-rtl.css new file mode 100644 index 0000000..003b359 --- /dev/null +++ b/blocks/build/eo-carousel/style-index-rtl.css @@ -0,0 +1,9 @@ +/*!***************************************************************************************************************************************************************************************************************************************************************!*\ + !*** 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]!./blocks/src/eo-carousel/scss/style.scss ***! + \***************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ diff --git a/blocks/build/eo-carousel/style-index.css b/blocks/build/eo-carousel/style-index.css new file mode 100644 index 0000000..d9a0de4 --- /dev/null +++ b/blocks/build/eo-carousel/style-index.css @@ -0,0 +1,11 @@ +/*!***************************************************************************************************************************************************************************************************************************************************************!*\ + !*** 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]!./blocks/src/eo-carousel/scss/style.scss ***! + \***************************************************************************************************************************************************************************************************************************************************************/ +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/blocks/build/eo-carousel/style-index.css.map b/blocks/build/eo-carousel/style-index.css.map new file mode 100644 index 0000000..8680f29 --- /dev/null +++ b/blocks/build/eo-carousel/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"eo-carousel/style-index.css","mappings":";;;AAAA;;;;;EAAA,C","sources":["webpack://eo-blocks/./blocks/src/eo-carousel/scss/style.scss"],"sourcesContent":["/**\r\n * The following styles get applied both on the front of your site\r\n * and in the editor.\r\n *\r\n * Replace them with your own styles or remove the file completely.\r\n */\r\n\r\n$media__mobile: 599px;\r\n\r\n.wp-block-eo-carousel {\r\n\r\n}\r\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/build/eo-carousel/view.asset.php b/blocks/build/eo-carousel/view.asset.php new file mode 100644 index 0000000..3c8516b --- /dev/null +++ b/blocks/build/eo-carousel/view.asset.php @@ -0,0 +1 @@ + array(), 'version' => 'f68842127388db3d31e8'); diff --git a/blocks/build/eo-carousel/view.js b/blocks/build/eo-carousel/view.js new file mode 100644 index 0000000..24e7bc8 --- /dev/null +++ b/blocks/build/eo-carousel/view.js @@ -0,0 +1,26 @@ +/******/ (() => { // webpackBootstrap +var __webpack_exports__ = {}; +/*!****************************************!*\ + !*** ./blocks/src/eo-carousel/view.js ***! + \****************************************/ +(function ($) { + /** + * initializeBlock + * + * Adds custom JavaScript to the block Accordion. + * + * @since 1.0.0 + * + * @param object $block The block jQuery element. + * @return void + */ + var initializeBlock = function ($block) {}; + $(document).ready(function () { + $('.wp-block-eo-accordion').each(function () { + initializeBlock($(this)); + }); + }); +})(jQuery); +/******/ })() +; +//# sourceMappingURL=view.js.map \ No newline at end of file diff --git a/blocks/build/eo-carousel/view.js.map b/blocks/build/eo-carousel/view.js.map new file mode 100644 index 0000000..4e2da2d --- /dev/null +++ b/blocks/build/eo-carousel/view.js.map @@ -0,0 +1 @@ +{"version":3,"file":"eo-carousel/view.js","mappings":";;;;;AAAA,CAAC,UAASA,CAAC,EAAE;EAEZ;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACC,IAAIC,eAAe,GAAG,SAAAA,CAAUC,MAAM,EAAG,CAEzC,CAAC;EAEDF,CAAC,CAACG,QAAQ,CAAC,CAACC,KAAK,CAAC,YAAU;IAC3BJ,CAAC,CAAC,wBAAwB,CAAC,CAACK,IAAI,CAAC,YAAU;MAC1CJ,eAAe,CAAED,CAAC,CAAC,IAAI,CAAE,CAAC;IAC3B,CAAC,CAAC;EACH,CAAC,CAAC;AAEH,CAAC,EAAEM,MAAM,CAAC,C","sources":["webpack://eo-blocks/./blocks/src/eo-carousel/view.js"],"sourcesContent":["(function($) {\r\n\r\n\t/**\r\n\t * initializeBlock\r\n\t *\r\n\t * Adds custom JavaScript to the block Accordion.\r\n\t *\r\n\t * @since 1.0.0\r\n\t *\r\n\t * @param object $block The block jQuery element.\r\n\t * @return void\r\n\t */\r\n\tvar initializeBlock = function( $block ) {\r\n\r\n\t}\r\n\r\n\t$(document).ready(function(){\r\n\t\t$('.wp-block-eo-accordion').each(function(){\r\n\t\t\tinitializeBlock( $(this) );\r\n\t\t});\r\n\t});\r\n\r\n})(jQuery);\r\n"],"names":["$","initializeBlock","$block","document","ready","each","jQuery"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/src/eo-carousel/block.json b/blocks/src/eo-carousel/block.json new file mode 100644 index 0000000..1989589 --- /dev/null +++ b/blocks/src/eo-carousel/block.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://schemas.wp.org/trunk/block.json", + "apiVersion": 3, + "name": "eo/carousel", + "version": "1.0.0", + "title": "Carousel", + "category": "eo-blocks", + "icon": "smiley", + "description": "Display carousel block", + "example": {}, + "attributes": { + + }, + "supports": {}, + "textdomain": "carousel", + "editorScript": "file:./index.js", + "editorStyle": "file:./index.css", + "style": [ "file:./style-index.css" ], + "render": "file:./render.php", + "viewScript": "file:./view.js" +} diff --git a/blocks/src/eo-carousel/edit.js b/blocks/src/eo-carousel/edit.js new file mode 100644 index 0000000..fe14828 --- /dev/null +++ b/blocks/src/eo-carousel/edit.js @@ -0,0 +1,48 @@ +/** + * Retrieves the translation of text. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-i18n/ + */ +import { __ } from '@wordpress/i18n'; + +/** + * React hook that is used to mark the block wrapper element. + * It provides all the necessary props like the class name. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops + */ +import { InspectorControls, useBlockProps, InnerBlocks } from '@wordpress/block-editor'; +import { PanelBody } from '@wordpress/components'; + +/** + * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. + * Those files can contain any CSS code that gets applied to the editor. + * + * @see https://www.npmjs.com/package/@wordpress/scripts#using-css + */ +import './scss/editor.scss'; + +/** + * The edit function describes the structure of your block in the context of the + * editor. This represents what the editor will render when the block is used. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#edit + * + * @return {Element} Element to render. + */ +export default function Edit( { attributes, setAttributes } ) { + return ( + <> + + + + + +
+
+ +
+
+ + ); +} diff --git a/blocks/src/eo-carousel/index.js b/blocks/src/eo-carousel/index.js new file mode 100644 index 0000000..0e6c96c --- /dev/null +++ b/blocks/src/eo-carousel/index.js @@ -0,0 +1,55 @@ +/** + * Registers a new block provided a unique name and an object defining its behavior. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ +import { registerBlockType } from '@wordpress/blocks'; +import { InnerBlocks } from '@wordpress/block-editor' +import iconCarousel from './../../../assets/images/icon-carousel.svg'; +/** + * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. + * All files containing `style` keyword are bundled together. The code used + * gets applied both to the front of your site and to the editor. + * + * @see https://www.npmjs.com/package/@wordpress/scripts#using-css + */ +import './scss/style.scss'; + +/** + * Internal dependencies + */ +import Edit from './edit'; +import metadata from './block.json'; + +const blockIcon = ( + + + + + + + + + +); + +/** + * Every block starts by registering a new block type definition. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ +registerBlockType(metadata.name, { + /** + * @see ./edit.js + */ + edit: Edit, + save: props => { + return + }, + icon: blockIcon, +}); diff --git a/blocks/src/eo-carousel/render.php b/blocks/src/eo-carousel/render.php new file mode 100644 index 0000000..c2d0371 --- /dev/null +++ b/blocks/src/eo-carousel/render.php @@ -0,0 +1,20 @@ + + +
> + +
diff --git a/blocks/src/eo-carousel/scss/editor.scss b/blocks/src/eo-carousel/scss/editor.scss new file mode 100644 index 0000000..09fdaf7 --- /dev/null +++ b/blocks/src/eo-carousel/scss/editor.scss @@ -0,0 +1,8 @@ +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ + +.wp-block-eo-carousel{ +} diff --git a/blocks/src/eo-carousel/scss/style.scss b/blocks/src/eo-carousel/scss/style.scss new file mode 100644 index 0000000..2d50c2c --- /dev/null +++ b/blocks/src/eo-carousel/scss/style.scss @@ -0,0 +1,12 @@ +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ + +$media__mobile: 599px; + +.wp-block-eo-carousel { + +} diff --git a/blocks/src/eo-carousel/view.js b/blocks/src/eo-carousel/view.js new file mode 100644 index 0000000..cfc1621 --- /dev/null +++ b/blocks/src/eo-carousel/view.js @@ -0,0 +1,23 @@ +(function($) { + + /** + * initializeBlock + * + * Adds custom JavaScript to the block Accordion. + * + * @since 1.0.0 + * + * @param object $block The block jQuery element. + * @return void + */ + var initializeBlock = function( $block ) { + + } + + $(document).ready(function(){ + $('.wp-block-eo-accordion').each(function(){ + initializeBlock( $(this) ); + }); + }); + +})(jQuery);