• Resolved filatovdanyl

    (@filatovdanyl)


    Hi, I noticed 2 bugs in your gutenberg block that need fixing. For now I modified your code in /dist/blocks.build.js and enqueued a copy from my theme to fix those. 1st bug is that if you have 2 blocks on one page it will only save fields and then render 1st block – because you create a global var vars_dirty for all blocks which stores vars from only one block. And 2nd bug is you can’t add a space in var text input field because you join() and split() them by spaces when editing those fields. Here’s my tweaked code if you want – i decoded eval() code on line 87 and modified resulting to store vars as json string and not rely on spaces or vars_dirty.

    /******/ (function(modules) { // webpackBootstrap
    /******/ 	// The module cache
    /******/ 	var installedModules = {};
    /******/
    /******/ 	// 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, {
    /******/ 				configurable: false,
    /******/ 				enumerable: true,
    /******/ 				get: getter
    /******/ 			});
    /******/ 		}
    /******/ 	};
    /******/
    /******/ 	// 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 = "";
    /******/
    /******/ 	// Load entry module and return exports
    /******/ 	return __webpack_require__(__webpack_require__.s = 0);
    /******/ })
    /************************************************************************/
    /******/ ([
    /* 0 */
    /*!***********************!*\
    !*** ./src/blocks.js ***!
    \***********************/
    /*! no exports provided */
    /*! all exports used */
    /***/ (function(module, __webpack_exports__, __webpack_require__) {
    
    "use strict";
    eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__block_block_js__ = __webpack_require__(/*! ./block/block.js */ 1);\n/**\n * Gutenberg Blocks\n *\n * All blocks related JavaScript files should be imported here.\n * You can create a new block folder in this dir and include code\n * for that block here as well.\n *\n * All blocks should be included here since this is the file that\n * Webpack is compiling as the input file.\n */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9ja3MuanM/N2I1YiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEd1dGVuYmVyZyBCbG9ja3NcbiAqXG4gKiBBbGwgYmxvY2tzIHJlbGF0ZWQgSmF2YVNjcmlwdCBmaWxlcyBzaG91bGQgYmUgaW1wb3J0ZWQgaGVyZS5cbiAqIFlvdSBjYW4gY3JlYXRlIGEgbmV3IGJsb2NrIGZvbGRlciBpbiB0aGlzIGRpciBhbmQgaW5jbHVkZSBjb2RlXG4gKiBmb3IgdGhhdCBibG9jayBoZXJlIGFzIHdlbGwuXG4gKlxuICogQWxsIGJsb2NrcyBzaG91bGQgYmUgaW5jbHVkZWQgaGVyZSBzaW5jZSB0aGlzIGlzIHRoZSBmaWxlIHRoYXRcbiAqIFdlYnBhY2sgaXMgY29tcGlsaW5nIGFzIHRoZSBpbnB1dCBmaWxlLlxuICovXG5cbmltcG9ydCAnLi9ibG9jay9ibG9jay5qcyc7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvYmxvY2tzLmpzXG4vLyBtb2R1bGUgaWQgPSAwXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///0\n");
    
    /***/ }),
    /* 1 */
    /*!****************************!*\
        !*** ./src/block/block.js ***!
        \****************************/
    /*! no exports provided */
    /***/ (function(module, __webpack_exports__, __webpack_require__) {
    
    "use strict";
    /* harmony import */
    var __WEBPACK_IMPORTED_MODULE_0__editor_scss__ = __webpack_require__( /*! ./editor.scss */ 2);
    /* harmony import */
    var __WEBPACK_IMPORTED_MODULE_0__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__editor_scss__);
    /* harmony import */
    var __WEBPACK_IMPORTED_MODULE_1__style_scss__ = __webpack_require__( /*! ./style.scss */ 3);
    /* harmony import */
    var __WEBPACK_IMPORTED_MODULE_1__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__style_scss__);
    /* harmony import */
    var __WEBPACK_IMPORTED_MODULE_2_lodash__ = __webpack_require__( /*! lodash */ 4);
    /* harmony import */
    var __WEBPACK_IMPORTED_MODULE_2_lodash___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash__);
    /**
     * BLOCK: post-snippets-block
     *
     * Registering a basic block with Gutenberg.
     * Simple block, renders and saves the same content without any interactivity.
     */
    
    //  Import CSS.
    
    var __ = wp.i18n.__; // Import __() from wp.i18n
    
    var registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks
    
    var _wp$components = wp.components,
        SelectControl = _wp$components.SelectControl,
        TextControl = _wp$components.TextControl;
    
    registerBlockType('greentreelabs/post-snippets-block', {
    
        title: __('Post Snippets'),
        icon: 'admin-plugins',
        category: 'common',
        keywords: [__('post snippets'), __('snippets')],
        attributes: {
            snippet: {
                type: 'string'
            },
            vars: {
                type: 'string'
            },
            shortcode: {
                type: 'boolean'
            },
            text_fields: {
                type: 'array'
            }
        },
    
        edit: function edit(props) {
            var _props$attributes = props.attributes,
                snippet = _props$attributes.snippet,
                vars = _props$attributes.vars,
                text_fields = _props$attributes.text_fields,
                shortcode = _props$attributes.shortcode;
    
            console.log("text_fields", text_fields);
    
            var options = __WEBPACK_IMPORTED_MODULE_2_lodash___default.a.concat([{
                label: __('----'),
                value: ""
            }], post_snippets_s.map(function(s) {
                return {
                    label: s.title,
                    value: s.title
                };
            }));
    
            function save(s, v) {
                let vars_obj = JSON.parse( vars );
                vars_obj[s] = v;
                props.setAttributes({
                    vars: JSON.stringify( vars_obj )
                });
            }
    
            function getVarValue(field) {
                if (!vars) return "";
                let vars_obj = JSON.parse( vars );
                return vars_obj[field];
            }
    
            return wp.element.createElement(
                'div',
                null,
                wp.element.createElement(SelectControl, {
                    label: 'Snippet',
                    value: snippet,
                    options: options,
                    onChange: function onChange(v) {
                        props.setAttributes({
                            snippet: v
                        });
    
                        var s = __WEBPACK_IMPORTED_MODULE_2_lodash___default.a.find(post_snippets_s, function(e) {
                            return e.title == v;
                        });
                        var fields = s.vars != "" ? s.vars.split(",") : [];
                        props.setAttributes({
                            text_fields: fields,
                            vars: JSON.stringify( fields.reduce((a, key) => Object.assign(a, { [key]: '' }), {}) )
                        });
                        props.setAttributes({
                            shortcode: s.shortcode != "0"
                        });
                    }
                }),
                text_fields ? text_fields.map(function(e) {
                    return e ? wp.element.createElement(TextControl, {
                        label: e,
                        value: getVarValue(e),
                        onChange: function onChange(v) {
                            save(e, v);
                        }
                    }) : "";
                }) : ""
            );
        },
    
        save: function save(props) {
            console.log("save");
            console.log(props);
            let vars_obj = JSON.parse( props.attributes.vars );
            let vars_str = '';
            for ( const v in vars_obj ) {
                vars_str += v + '="' + vars_obj[v] + '" ';
            }
            return wp.element.createElement(
                'div',
                null,
                props.attributes.shortcode ? "[" : "",
                props.attributes.snippet,
                ' ',
                vars_str,
                props.attributes.shortcode ? "]" : ""
            );
        }
    }); //# sourceURL=[module]
    //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9jay9ibG9jay5qcz85MjFkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQkxPQ0s6IHBvc3Qtc25pcHBldHMtYmxvY2tcbiAqXG4gKiBSZWdpc3RlcmluZyBhIGJhc2ljIGJsb2NrIHdpdGggR3V0ZW5iZXJnLlxuICogU2ltcGxlIGJsb2NrLCByZW5kZXJzIGFuZCBzYXZlcyB0aGUgc2FtZSBjb250ZW50IHdpdGhvdXQgYW55IGludGVyYWN0aXZpdHkuXG4gKi9cblxuLy8gIEltcG9ydCBDU1MuXG5pbXBvcnQgJy4vZWRpdG9yLnNjc3MnO1xuaW1wb3J0ICcuL3N0eWxlLnNjc3MnO1xuaW1wb3J0IF8gZnJvbSAnbG9kYXNoJztcblxudmFyIF9fID0gd3AuaTE4bi5fXzsgLy8gSW1wb3J0IF9fKCkgZnJvbSB3cC5pMThuXG5cbnZhciByZWdpc3RlckJsb2NrVHlwZSA9IHdwLmJsb2Nrcy5yZWdpc3RlckJsb2NrVHlwZTsgLy8gSW1wb3J0IHJlZ2lzdGVyQmxvY2tUeXBlKCkgZnJvbSB3cC5ibG9ja3NcblxudmFyIF93cCRjb21wb25lbnRzID0gd3AuY29tcG9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QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9
    //# sourceURL=webpack-internal:///1
    
    /***/ }),
    /* 2 */
    /*!*******************************!*\
        !*** ./src/block/editor.scss ***!
        \*******************************/
    /*! dynamic exports provided */
    /***/ (function(module, exports) {
    
    eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9jay9lZGl0b3Iuc2Nzcz80OWQyIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvYmxvY2svZWRpdG9yLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDJcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///2\n");
    
    /***/ }),
    /* 3 */
    /*!******************************!*\
        !*** ./src/block/style.scss ***!
        \******************************/
    /*! dynamic exports provided */
    /***/ (function(module, exports) {
    
    eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9jay9zdHlsZS5zY3NzPzgwZjMiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9ibG9jay9zdHlsZS5zY3NzXG4vLyBtb2R1bGUgaWQgPSAzXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///3\n");
    
    /***/ }),
    /* 4 */
    /*!*************************!*\
        !*** external "lodash" ***!
        \*************************/
    /*! dynamic exports provided */
    /*! exports used: default */
    /***/ (function(module, exports) {
    
    module.exports = lodash;
    
    /***/ })
    /******/ ]);
    • This topic was modified 1 year, 11 months ago by filatovdanyl.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @filatovdanyl,

    Thanks for contacting us,

    I hope you are doing well, We have already fixed this issue. Please update the plugin and let me know if you still have any issues.

    Thanks & Regards

    WP Experts Support Team

    Thread Starter filatovdanyl

    (@filatovdanyl)

    Yep, works now, both multiple post snippet blocks on one page and spaces in fields, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gutenberg block bugfixes’ is closed to new replies.