From 421ec0a0dd481e43f22e05208e328168f29d2a7b Mon Sep 17 00:00:00 2001 From: Herb Miller Date: Mon, 27 Jul 2020 22:45:39 +0100 Subject: [PATCH] Issue #1 - update build files --- build/index.asset.php | 2 +- build/index.css | 10 +- build/index.css.map | 1 - build/index.js | 430 +------------------------------------- build/index.js.map | 1 - build/style-index.css | 13 +- build/style-index.css.map | 1 - 7 files changed, 4 insertions(+), 454 deletions(-) delete mode 100644 build/index.css.map delete mode 100644 build/index.js.map delete mode 100644 build/style-index.css.map diff --git a/build/index.asset.php b/build/index.asset.php index 7b838de..314f891 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('wp-blocks', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '40ff2cd7d053a2e8ceaa1e7ee4a5dc84'); \ No newline at end of file + array('wp-blocks', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '43afd1d2b148df8c93034387a4fe6cb4'); \ No newline at end of file diff --git a/build/index.css b/build/index.css index e47a55f..6b359a4 100644 --- a/build/index.css +++ b/build/index.css @@ -1,10 +1,2 @@ -/** - * The following styles get applied inside the editor only. - * - * Replace them with your own styles or remove the file completely. - */ -.wp-block-sb-breadcrumbs-block { - border: 1px dotted #f00; } +.wp-block-sb-breadcrumbs-block{border:1px dotted #f00} - -/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/build/index.css.map b/build/index.css.map deleted file mode 100644 index c71ba9b..0000000 --- a/build/index.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///editor.scss"],"names":[],"mappings":"AAAA;;;;EAIE;AACF;EACE,uBAAuB,EAAE","file":"index.css","sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n.wp-block-sb-breadcrumbs-block {\n border: 1px dotted #f00; }\n"],"sourceRoot":""} \ No newline at end of file diff --git a/build/index.js b/build/index.js index e0db005..c79c42b 100644 --- a/build/index.js +++ b/build/index.js @@ -1,429 +1 @@ -(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["style-index"],{ - -/***/ "./src/breadcrumbs-block/style.scss": -/*!******************************************!*\ - !*** ./src/breadcrumbs-block/style.scss ***! - \******************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }) - -}]); - -/******/ (function(modules) { // webpackBootstrap -/******/ // install a JSONP callback for chunk loading -/******/ function webpackJsonpCallback(data) { -/******/ var chunkIds = data[0]; -/******/ var moreModules = data[1]; -/******/ var executeModules = data[2]; -/******/ -/******/ // add "moreModules" to the modules object, -/******/ // then flag all "chunkIds" as loaded and fire callback -/******/ var moduleId, chunkId, i = 0, resolves = []; -/******/ for(;i < chunkIds.length; i++) { -/******/ chunkId = chunkIds[i]; -/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { -/******/ resolves.push(installedChunks[chunkId][0]); -/******/ } -/******/ installedChunks[chunkId] = 0; -/******/ } -/******/ for(moduleId in moreModules) { -/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { -/******/ modules[moduleId] = moreModules[moduleId]; -/******/ } -/******/ } -/******/ if(parentJsonpFunction) parentJsonpFunction(data); -/******/ -/******/ while(resolves.length) { -/******/ resolves.shift()(); -/******/ } -/******/ -/******/ // add entry modules from loaded chunk to deferred list -/******/ deferredModules.push.apply(deferredModules, executeModules || []); -/******/ -/******/ // run deferred modules when all chunks ready -/******/ return checkDeferredModules(); -/******/ }; -/******/ function checkDeferredModules() { -/******/ var result; -/******/ for(var i = 0; i < deferredModules.length; i++) { -/******/ var deferredModule = deferredModules[i]; -/******/ var fulfilled = true; -/******/ for(var j = 1; j < deferredModule.length; j++) { -/******/ var depId = deferredModule[j]; -/******/ if(installedChunks[depId] !== 0) fulfilled = false; -/******/ } -/******/ if(fulfilled) { -/******/ deferredModules.splice(i--, 1); -/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); -/******/ } -/******/ } -/******/ -/******/ return result; -/******/ } -/******/ -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // object to store loaded and loading chunks -/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched -/******/ // Promise = chunk loading, 0 = chunk loaded -/******/ var installedChunks = { -/******/ "index": 0 -/******/ }; -/******/ -/******/ var deferredModules = []; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || []; -/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); -/******/ jsonpArray.push = webpackJsonpCallback; -/******/ jsonpArray = jsonpArray.slice(); -/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]); -/******/ var parentJsonpFunction = oldJsonpFunction; -/******/ -/******/ -/******/ // add entry module to deferred list -/******/ deferredModules.push(["./src/index.js","style-index"]); -/******/ // run deferred modules when ready -/******/ return checkDeferredModules(); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "./src/breadcrumbs-block/edit.js": -/*!***************************************!*\ - !*** ./src/breadcrumbs-block/edit.js ***! - \***************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return edit; }); -/* 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 _wordpress_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/editor */ "@wordpress/editor"); -/* harmony import */ var _wordpress_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./editor.scss */ "./src/breadcrumbs-block/editor.scss"); -/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_editor_scss__WEBPACK_IMPORTED_MODULE_3__); - - -/** - * Retrieves the translation of text. - * - * @see https://developer.wordpress.org/block-editor/packages/packages-i18n/ - */ - - - //import { InspectorControls } from '@wordpress/block-editor'; -//import { TextControl, 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 - */ - - -/** - * 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/developers/block-api/block-edit-save/#edit - * - * @param {Object} [props] Properties passed from the editor. - * @param {string} [props.className] Class name generated for the block. - * - * @return {WPElement} Element to render. - */ - -function edit(_ref) { - var attributes = _ref.attributes, - className = _ref.className, - isSelected = _ref.isSelected, - setAttributes = _ref.setAttributes; - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_editor__WEBPACK_IMPORTED_MODULE_2__["ServerSideRender"], { - block: "sb/breadcrumbs-block", - attributes: attributes - })); -} - -/***/ }), - -/***/ "./src/breadcrumbs-block/editor.scss": -/*!*******************************************!*\ - !*** ./src/breadcrumbs-block/editor.scss ***! - \*******************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "./src/breadcrumbs-block/index.js": -/*!****************************************!*\ - !*** ./src/breadcrumbs-block/index.js ***! - \****************************************/ -/*! no exports provided */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); -/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__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 _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./src/breadcrumbs-block/style.scss"); -/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./edit */ "./src/breadcrumbs-block/edit.js"); -/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./save */ "./src/breadcrumbs-block/save.js"); -/** - * Registers a new block provided a unique name and an object defining its behavior. - * - * @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block - */ - -/** - * Retrieves the translation of text. - * - * @see https://developer.wordpress.org/block-editor/packages/packages-i18n/ - */ - - -/** - * 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 - */ - - - -/** - * Every block starts by registering a new block type definition. - * - * @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block - */ - -Object(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__["registerBlockType"])('sb/breadcrumbs-block', { - /** - * This is the display title for your block, which can be translated with `i18n` functions. - * The block inserter will show this name. - */ - title: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Breadcrumbs block', 'sb-breadcrumbs-block'), - - /** - * This is a short description for your block, can be translated with `i18n` functions. - * It will be shown in the Block Tab in the Settings Sidebar. - */ - description: Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Show breadcrumbs of the current content as a link.', 'sb-breadcrumbs-block'), - - /** - * Blocks are grouped into categories to help users browse and discover them. - * The categories provided by core are `common`, `embed`, `formatting`, `layout` and `widgets`. - */ - category: 'widgets', - - /** - * An icon property should be specified to make it easier to identify a block. - * These can be any of WordPress’ Dashicons, or a custom svg element. - */ - icon: 'link', - - /** - * Optional block extended support features. - */ - supports: { - // Removes support for an HTML mode. - html: false - }, - attributes: {}, - - /** - * @see ./edit.js - */ - edit: _edit__WEBPACK_IMPORTED_MODULE_3__["default"], - - /** - * @see ./save.js - */ - save: _save__WEBPACK_IMPORTED_MODULE_4__["default"] -}); - -/***/ }), - -/***/ "./src/breadcrumbs-block/save.js": -/*!***************************************!*\ - !*** ./src/breadcrumbs-block/save.js ***! - \***************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return save; }); -/** - * The save function defines the way in which the different attributes should - * be combined into the final markup, which is then serialized by the block - * editor into `post_content`. - * - * @see https://developer.wordpress.org/block-editor/developers/block-api/block-edit-save/#save - * - * @return {WPElement} Element to render. - */ -function save() { - return null; -} - -/***/ }), - -/***/ "./src/index.js": -/*!**********************!*\ - !*** ./src/index.js ***! - \**********************/ -/*! no exports provided */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var _breadcrumbs_block__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./breadcrumbs-block */ "./src/breadcrumbs-block/index.js"); - - -/***/ }), - -/***/ "@wordpress/blocks": -/*!*****************************************!*\ - !*** external {"this":["wp","blocks"]} ***! - \*****************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["blocks"]; }()); - -/***/ }), - -/***/ "@wordpress/editor": -/*!*****************************************!*\ - !*** external {"this":["wp","editor"]} ***! - \*****************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["editor"]; }()); - -/***/ }), - -/***/ "@wordpress/element": -/*!******************************************!*\ - !*** external {"this":["wp","element"]} ***! - \******************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["element"]; }()); - -/***/ }), - -/***/ "@wordpress/i18n": -/*!***************************************!*\ - !*** external {"this":["wp","i18n"]} ***! - \***************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["i18n"]; }()); - -/***/ }) - -/******/ }); -//# sourceMappingURL=index.js.map \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{4:function(e,t,r){}}]),function(e){function t(t){for(var n,u,i=t[0],s=t[1],l=t[2],b=0,p=[];b\n\t\t\t\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin","/**\n * Registers a new block provided a unique name and an object defining its behavior.\n *\n * @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block\n */\nimport { registerBlockType } from '@wordpress/blocks';\n\n/**\n * Retrieves the translation of text.\n *\n * @see https://developer.wordpress.org/block-editor/packages/packages-i18n/\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.\n * All files containing `style` keyword are bundled together. The code used\n * gets applied both to the front of your site and to the editor.\n *\n * @see https://www.npmjs.com/package/@wordpress/scripts#using-css\n */\nimport './style.scss';\n\n/**\n * Internal dependencies\n */\nimport edit from './edit';\nimport save from './save';\n\n/**\n * Every block starts by registering a new block type definition.\n *\n * @see https://developer.wordpress.org/block-editor/developers/block-api/#registering-a-block\n */\nregisterBlockType( 'sb/breadcrumbs-block', {\n\t/**\n\t * This is the display title for your block, which can be translated with `i18n` functions.\n\t * The block inserter will show this name.\n\t */\n\ttitle: __( 'Breadcrumbs block', 'sb-breadcrumbs-block' ),\n\n\t/**\n\t * This is a short description for your block, can be translated with `i18n` functions.\n\t * It will be shown in the Block Tab in the Settings Sidebar.\n\t */\n\tdescription: __( 'Show breadcrumbs of the current content as a link.', 'sb-breadcrumbs-block' ),\n\n\t/**\n\t * Blocks are grouped into categories to help users browse and discover them.\n\t * The categories provided by core are `common`, `embed`, `formatting`, `layout` and `widgets`.\n\t */\n\tcategory: 'widgets',\n\n\t/**\n\t * An icon property should be specified to make it easier to identify a block.\n\t * These can be any of WordPress’ Dashicons, or a custom svg element.\n\t */\n\ticon: 'link',\n\n\t/**\n\t * Optional block extended support features.\n\t */\n\tsupports: {\n\t\t// Removes support for an HTML mode.\n\t\thtml: false,\n\t},\n\n\tattributes: {\n\n\t},\n\n\t/**\n\t * @see ./edit.js\n\t */\n\tedit: edit,\n\n\t/**\n\t * @see ./save.js\n\t */\n\tsave,\n} );\n","/**\n * The save function defines the way in which the different attributes should\n * be combined into the final markup, which is then serialized by the block\n * editor into `post_content`.\n *\n * @see https://developer.wordpress.org/block-editor/developers/block-api/block-edit-save/#save\n *\n * @return {WPElement} Element to render.\n */\nexport default function save() {\n\treturn null;\n\n}\n","import './breadcrumbs-block';\n","(function() { module.exports = this[\"wp\"][\"blocks\"]; }());","(function() { module.exports = this[\"wp\"][\"editor\"]; }());","(function() { module.exports = this[\"wp\"][\"element\"]; }());","(function() { module.exports = this[\"wp\"][\"i18n\"]; }());"],"sourceRoot":""} \ No newline at end of file diff --git a/build/style-index.css b/build/style-index.css index 1e5ad6c..c891d1b 100644 --- a/build/style-index.css +++ b/build/style-index.css @@ -1,13 +1,2 @@ -/** - * 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. - */ -.wp-block-sb-breadcrumbs-block { - background-color: var(--wp-admin-theme-color); - color: #fff; - padding: 2px; } +.wp-block-sb-breadcrumbs-block{background-color:var(--wp-admin-theme-color);color:#fff;padding:2px} - -/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/build/style-index.css.map b/build/style-index.css.map deleted file mode 100644 index 9e7e878..0000000 --- a/build/style-index.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///style.scss"],"names":[],"mappings":"AAAA;;;;;EAKE;AACF;EACE,6CAA6C;EAC7C,WAAW;EACX,YAAY,EAAE","file":"style-index.css","sourcesContent":["/**\n * The following styles get applied both on the front of your site\n * and in the editor.\n *\n * Replace them with your own styles or remove the file completely.\n */\n.wp-block-sb-breadcrumbs-block {\n background-color: var(--wp-admin-theme-color);\n color: #fff;\n padding: 2px; }\n"],"sourceRoot":""} \ No newline at end of file