Changeset 2831178
- Timestamp:
- 12/09/2022 01:12:48 PM (3 years ago)
- Location:
- good-slider
- Files:
-
- 14 edited
- 1 copied
-
tags/1.1.0 (copied) (copied from good-slider/trunk)
-
tags/1.1.0/build/item-block/index.asset.php (modified) (1 diff)
-
tags/1.1.0/build/item-block/index.js (modified) (1 diff)
-
tags/1.1.0/build/slider-block/index.asset.php (modified) (1 diff)
-
tags/1.1.0/build/slider-block/index.js (modified) (1 diff)
-
tags/1.1.0/good-slider.php (modified) (1 diff)
-
tags/1.1.0/src/item-block/edit.js (modified) (1 diff)
-
tags/1.1.0/src/slider-block/edit.js (modified) (3 diffs)
-
trunk/build/item-block/index.asset.php (modified) (1 diff)
-
trunk/build/item-block/index.js (modified) (1 diff)
-
trunk/build/slider-block/index.asset.php (modified) (1 diff)
-
trunk/build/slider-block/index.js (modified) (1 diff)
-
trunk/good-slider.php (modified) (1 diff)
-
trunk/src/item-block/edit.js (modified) (1 diff)
-
trunk/src/slider-block/edit.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
good-slider/tags/1.1.0/build/item-block/index.asset.php
r2825065 r2831178 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-element' ), 'version' => '23eee31e8c036a9aafc7');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-element', 'wp-hooks'), 'version' => '84e32769c2264e07b3a2'); -
good-slider/tags/1.1.0/build/item-block/index.js
r2825065 r2831178 1 !function(){"use strict";var e=window.wp.blocks,o=window.wp.element, r=window.wp.blockEditor,s=JSON.parse('{"u2":"good-slider/item"}');(0,e.registerBlockType)(s.u2,{edit:function(){const e=(0,r.useBlockProps)(),s=(0,r.useInnerBlocksProps)(e,{__experimentalCaptureToolbars:!1});return(0,o.createElement)("div",s)},save:function(){return(0,o.createElement)("div",r.useInnerBlocksProps.save(r.useBlockProps.save()))}})}();1 !function(){"use strict";var e=window.wp.blocks,o=window.wp.element,s=window.wp.blockEditor,r=window.wp.hooks,n=JSON.parse('{"u2":"good-slider/item"}');(0,e.registerBlockType)(n.u2,{edit:function(e){const n=(0,s.useBlockProps)(),t=(0,r.applyFilters)("good-slider.item.innerBlocks-settings",{__experimentalCaptureToolbars:!1},e),i=(0,s.useInnerBlocksProps)(n,t);return(0,o.createElement)("div",i)},save:function(){return(0,o.createElement)("div",s.useInnerBlocksProps.save(s.useBlockProps.save()))}})}(); -
good-slider/tags/1.1.0/build/slider-block/index.asset.php
r2825065 r2831178 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp- i18n'), 'version' => '9f6fabe30c8f18baabf3');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'ba8fb4ae1c6d3a3c9505'); -
good-slider/tags/1.1.0/build/slider-block/index.js
r2825065 r2831178 1 !function(){"use strict";var e,t={1 94:function(){var e=window.wp.blocks,t=window.wp.element,o=window.wp.i18n,n=window.wp.blockEditor,r=window.wp.components,l=window.wp.data;const a={header:(0,o.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,o.__)("The <main> element should be used for the primary content of your document only. "),section:(0,o.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,o.__)("The <article> element should represent a self contained, syndicatable portion of the document."),aside:(0,o.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,o.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};var i=JSON.parse('{"u2":"good-slider/slider"}');(0,e.registerBlockType)(i.u2,{edit:function(i){let{clientId:s,attributes:c,setAttributes:d}=i;const{replaceInnerBlocks:u}=(0,l.useDispatch)(n.store),p=(0,t.createElement)(r.Placeholder,{icon:(0,t.createElement)(n.BlockIcon,{icon:"slides",showColors:!0}),label:(0,o._x)("Good Slider","block placeholder label","good-slider"),instructions:(0,o.__)("Add a Slide-Item block to start creating your slider.","good-slider")},(0,t.createElement)(r.Button,{onClick:()=>{u(s,[(0,e.createBlock)("good-slider/item",{},[])],!0)},variant:"primary"},(0,o.__)("Add Slide","good-slider"))),{tagName:m="div"}=c,f=(0,n.useBlockProps)(),h=(0,n.useInnerBlocksProps)(f,{allowedBlocks:["good-slider/item"],placeholder:p,templateLock:!1,renderAppender:n.InnerBlocks.ButtonBlockAppender,__experimentalCaptureToolbars:!0});return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(n.InspectorControls,{__experimentalGroup:"advanced"},(0,t.createElement)(r.SelectControl,{label:(0,o.__)("HTML element"),options:[{label:(0,o.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:m,onChange:e=>d({tagName:e}),help:a[m]})),(0,t.createElement)("div",h))},save:function(e){let{attributes:{tagName:o}}=e;return(0,t.createElement)(o,n.useInnerBlocksProps.save(n.useBlockProps.save({className:"good-slider"})))}})}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var l=o[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=function(t,o,r,l){if(!o){var a=1/0;for(d=0;d<e.length;d++){o=e[d][0],r=e[d][1],l=e[d][2];for(var i=!0,s=0;s<o.length;s++)(!1&l||a>=l)&&Object.keys(n.O).every((function(e){return n.O[e](o[s])}))?o.splice(s--,1):(i=!1,l<a&&(a=l));if(i){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[o,r,l]},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={136:0,391:0};n.O.j=function(t){return 0===e[t]};var t=function(t,o){var r,l,a=o[0],i=o[1],s=o[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(s)var d=s(n)}for(t&&t(o);c<a.length;c++)l=a[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(d)},o=self.webpackChunkgood_slider=self.webpackChunkgood_slider||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var r=n.O(void 0,[391],(function(){return n(194)}));r=n.O(r)}();1 !function(){"use strict";var e,t={168:function(){var e=window.wp.blocks,t=window.wp.element,o=window.wp.i18n,n=window.wp.blockEditor,r=window.wp.components,l=window.wp.data,a=window.wp.hooks;const i={header:(0,o.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,o.__)("The <main> element should be used for the primary content of your document only. "),section:(0,o.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,o.__)("The <article> element should represent a self contained, syndicatable portion of the document."),aside:(0,o.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,o.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};var s=JSON.parse('{"u2":"good-slider/slider"}');(0,e.registerBlockType)(s.u2,{edit:function(s){const{clientId:c,attributes:d,setAttributes:u}=s,{replaceInnerBlocks:p}=(0,l.useDispatch)(n.store),m=(0,t.createElement)(r.Placeholder,{icon:(0,t.createElement)(n.BlockIcon,{icon:"slides",showColors:!0}),label:(0,o._x)("Good Slider","block placeholder label","good-slider"),instructions:(0,o.__)("Add a Slide-Item block to start creating your slider.","good-slider")},(0,t.createElement)(r.Button,{onClick:()=>{p(c,[(0,e.createBlock)("good-slider/item",{},[])],!0)},variant:"primary"},(0,o.__)("Add Slide","good-slider"))),{tagName:h="div"}=d,f=(0,n.useBlockProps)(),v=(0,a.applyFilters)("good-slider.slider.innerBlocks-settings",{allowedBlocks:["good-slider/item"],placeholder:m,templateLock:!1,renderAppender:n.InnerBlocks.ButtonBlockAppender,__experimentalCaptureToolbars:!0},s),b=(0,n.useInnerBlocksProps)(f,v);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(n.InspectorControls,{__experimentalGroup:"advanced"},(0,t.createElement)(r.SelectControl,{label:(0,o.__)("HTML element"),options:[{label:(0,o.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:h,onChange:e=>u({tagName:e}),help:i[h]})),(0,t.createElement)("div",b))},save:function(e){let{attributes:{tagName:o}}=e;return(0,t.createElement)(o,n.useInnerBlocksProps.save(n.useBlockProps.save({className:"good-slider"})))}})}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var l=o[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=function(t,o,r,l){if(!o){var a=1/0;for(d=0;d<e.length;d++){o=e[d][0],r=e[d][1],l=e[d][2];for(var i=!0,s=0;s<o.length;s++)(!1&l||a>=l)&&Object.keys(n.O).every((function(e){return n.O[e](o[s])}))?o.splice(s--,1):(i=!1,l<a&&(a=l));if(i){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[o,r,l]},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={136:0,391:0};n.O.j=function(t){return 0===e[t]};var t=function(t,o){var r,l,a=o[0],i=o[1],s=o[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(s)var d=s(n)}for(t&&t(o);c<a.length;c++)l=a[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(d)},o=self.webpackChunkgood_slider=self.webpackChunkgood_slider||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var r=n.O(void 0,[391],(function(){return n(168)}));r=n.O(r)}(); -
good-slider/tags/1.1.0/good-slider.php
r2825065 r2831178 6 6 * Requires at least: 6.0 7 7 * Requires PHP: 7.4 8 * Version: 1. 0.08 * Version: 1.1.0 9 9 * Author: GoodWP 10 10 * Author URI: https://goodwp.io -
good-slider/tags/1.1.0/src/item-block/edit.js
r2825065 r2831178 1 1 import { useBlockProps, useInnerBlocksProps } from "@wordpress/block-editor"; 2 import { applyFilters } from "@wordpress/hooks"; 2 3 3 export default function Edit( ) {4 export default function Edit(props) { 4 5 const blockProps = useBlockProps(); 5 const innerBlocksProps = useInnerBlocksProps(blockProps, { 6 __experimentalCaptureToolbars: false, 7 }); 6 const innerBlocksSettings = applyFilters( 7 "good-slider.item.innerBlocks-settings", 8 { 9 __experimentalCaptureToolbars: false, 10 }, 11 props 12 ); 13 const innerBlocksProps = useInnerBlocksProps(blockProps, innerBlocksSettings); 8 14 return <div {...innerBlocksProps} />; 9 15 } -
good-slider/tags/1.1.0/src/slider-block/edit.js
r2825065 r2831178 11 11 import { Button, Placeholder, SelectControl } from "@wordpress/components"; 12 12 import { useDispatch } from "@wordpress/data"; 13 import { applyFilters } from "@wordpress/hooks"; 13 14 14 15 import "./editor.scss"; … … 34 35 }; 35 36 36 export default function Edit({ clientId, attributes, setAttributes }) { 37 export default function Edit(props) { 38 const { clientId, attributes, setAttributes } = props; 37 39 const { replaceInnerBlocks } = useDispatch(blockEditorStore); 38 40 … … 55 57 56 58 const blockProps = useBlockProps(); 57 const innerBlocksProps = useInnerBlocksProps(blockProps, { 58 allowedBlocks: ["good-slider/item"], 59 placeholder: SliderPlaceHolder, 60 templateLock: false, 61 renderAppender: InnerBlocks.ButtonBlockAppender, 62 __experimentalCaptureToolbars: true, 63 }); 59 const innerBlocksSettings = applyFilters( 60 "good-slider.slider.innerBlocks-settings", 61 { 62 allowedBlocks: ["good-slider/item"], 63 placeholder: SliderPlaceHolder, 64 templateLock: false, 65 renderAppender: InnerBlocks.ButtonBlockAppender, 66 __experimentalCaptureToolbars: true, 67 }, 68 props 69 ); 70 const innerBlocksProps = useInnerBlocksProps(blockProps, innerBlocksSettings); 64 71 65 72 return ( -
good-slider/trunk/build/item-block/index.asset.php
r2825065 r2831178 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-element' ), 'version' => '23eee31e8c036a9aafc7');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-element', 'wp-hooks'), 'version' => '84e32769c2264e07b3a2'); -
good-slider/trunk/build/item-block/index.js
r2825065 r2831178 1 !function(){"use strict";var e=window.wp.blocks,o=window.wp.element, r=window.wp.blockEditor,s=JSON.parse('{"u2":"good-slider/item"}');(0,e.registerBlockType)(s.u2,{edit:function(){const e=(0,r.useBlockProps)(),s=(0,r.useInnerBlocksProps)(e,{__experimentalCaptureToolbars:!1});return(0,o.createElement)("div",s)},save:function(){return(0,o.createElement)("div",r.useInnerBlocksProps.save(r.useBlockProps.save()))}})}();1 !function(){"use strict";var e=window.wp.blocks,o=window.wp.element,s=window.wp.blockEditor,r=window.wp.hooks,n=JSON.parse('{"u2":"good-slider/item"}');(0,e.registerBlockType)(n.u2,{edit:function(e){const n=(0,s.useBlockProps)(),t=(0,r.applyFilters)("good-slider.item.innerBlocks-settings",{__experimentalCaptureToolbars:!1},e),i=(0,s.useInnerBlocksProps)(n,t);return(0,o.createElement)("div",i)},save:function(){return(0,o.createElement)("div",s.useInnerBlocksProps.save(s.useBlockProps.save()))}})}(); -
good-slider/trunk/build/slider-block/index.asset.php
r2825065 r2831178 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp- i18n'), 'version' => '9f6fabe30c8f18baabf3');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'ba8fb4ae1c6d3a3c9505'); -
good-slider/trunk/build/slider-block/index.js
r2825065 r2831178 1 !function(){"use strict";var e,t={1 94:function(){var e=window.wp.blocks,t=window.wp.element,o=window.wp.i18n,n=window.wp.blockEditor,r=window.wp.components,l=window.wp.data;const a={header:(0,o.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,o.__)("The <main> element should be used for the primary content of your document only. "),section:(0,o.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,o.__)("The <article> element should represent a self contained, syndicatable portion of the document."),aside:(0,o.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,o.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};var i=JSON.parse('{"u2":"good-slider/slider"}');(0,e.registerBlockType)(i.u2,{edit:function(i){let{clientId:s,attributes:c,setAttributes:d}=i;const{replaceInnerBlocks:u}=(0,l.useDispatch)(n.store),p=(0,t.createElement)(r.Placeholder,{icon:(0,t.createElement)(n.BlockIcon,{icon:"slides",showColors:!0}),label:(0,o._x)("Good Slider","block placeholder label","good-slider"),instructions:(0,o.__)("Add a Slide-Item block to start creating your slider.","good-slider")},(0,t.createElement)(r.Button,{onClick:()=>{u(s,[(0,e.createBlock)("good-slider/item",{},[])],!0)},variant:"primary"},(0,o.__)("Add Slide","good-slider"))),{tagName:m="div"}=c,f=(0,n.useBlockProps)(),h=(0,n.useInnerBlocksProps)(f,{allowedBlocks:["good-slider/item"],placeholder:p,templateLock:!1,renderAppender:n.InnerBlocks.ButtonBlockAppender,__experimentalCaptureToolbars:!0});return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(n.InspectorControls,{__experimentalGroup:"advanced"},(0,t.createElement)(r.SelectControl,{label:(0,o.__)("HTML element"),options:[{label:(0,o.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:m,onChange:e=>d({tagName:e}),help:a[m]})),(0,t.createElement)("div",h))},save:function(e){let{attributes:{tagName:o}}=e;return(0,t.createElement)(o,n.useInnerBlocksProps.save(n.useBlockProps.save({className:"good-slider"})))}})}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var l=o[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=function(t,o,r,l){if(!o){var a=1/0;for(d=0;d<e.length;d++){o=e[d][0],r=e[d][1],l=e[d][2];for(var i=!0,s=0;s<o.length;s++)(!1&l||a>=l)&&Object.keys(n.O).every((function(e){return n.O[e](o[s])}))?o.splice(s--,1):(i=!1,l<a&&(a=l));if(i){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[o,r,l]},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={136:0,391:0};n.O.j=function(t){return 0===e[t]};var t=function(t,o){var r,l,a=o[0],i=o[1],s=o[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(s)var d=s(n)}for(t&&t(o);c<a.length;c++)l=a[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(d)},o=self.webpackChunkgood_slider=self.webpackChunkgood_slider||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var r=n.O(void 0,[391],(function(){return n(194)}));r=n.O(r)}();1 !function(){"use strict";var e,t={168:function(){var e=window.wp.blocks,t=window.wp.element,o=window.wp.i18n,n=window.wp.blockEditor,r=window.wp.components,l=window.wp.data,a=window.wp.hooks;const i={header:(0,o.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,o.__)("The <main> element should be used for the primary content of your document only. "),section:(0,o.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,o.__)("The <article> element should represent a self contained, syndicatable portion of the document."),aside:(0,o.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,o.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};var s=JSON.parse('{"u2":"good-slider/slider"}');(0,e.registerBlockType)(s.u2,{edit:function(s){const{clientId:c,attributes:d,setAttributes:u}=s,{replaceInnerBlocks:p}=(0,l.useDispatch)(n.store),m=(0,t.createElement)(r.Placeholder,{icon:(0,t.createElement)(n.BlockIcon,{icon:"slides",showColors:!0}),label:(0,o._x)("Good Slider","block placeholder label","good-slider"),instructions:(0,o.__)("Add a Slide-Item block to start creating your slider.","good-slider")},(0,t.createElement)(r.Button,{onClick:()=>{p(c,[(0,e.createBlock)("good-slider/item",{},[])],!0)},variant:"primary"},(0,o.__)("Add Slide","good-slider"))),{tagName:h="div"}=d,f=(0,n.useBlockProps)(),v=(0,a.applyFilters)("good-slider.slider.innerBlocks-settings",{allowedBlocks:["good-slider/item"],placeholder:m,templateLock:!1,renderAppender:n.InnerBlocks.ButtonBlockAppender,__experimentalCaptureToolbars:!0},s),b=(0,n.useInnerBlocksProps)(f,v);return(0,t.createElement)(t.Fragment,null,(0,t.createElement)(n.InspectorControls,{__experimentalGroup:"advanced"},(0,t.createElement)(r.SelectControl,{label:(0,o.__)("HTML element"),options:[{label:(0,o.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:h,onChange:e=>u({tagName:e}),help:i[h]})),(0,t.createElement)("div",b))},save:function(e){let{attributes:{tagName:o}}=e;return(0,t.createElement)(o,n.useInnerBlocksProps.save(n.useBlockProps.save({className:"good-slider"})))}})}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var l=o[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=function(t,o,r,l){if(!o){var a=1/0;for(d=0;d<e.length;d++){o=e[d][0],r=e[d][1],l=e[d][2];for(var i=!0,s=0;s<o.length;s++)(!1&l||a>=l)&&Object.keys(n.O).every((function(e){return n.O[e](o[s])}))?o.splice(s--,1):(i=!1,l<a&&(a=l));if(i){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[o,r,l]},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={136:0,391:0};n.O.j=function(t){return 0===e[t]};var t=function(t,o){var r,l,a=o[0],i=o[1],s=o[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(s)var d=s(n)}for(t&&t(o);c<a.length;c++)l=a[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(d)},o=self.webpackChunkgood_slider=self.webpackChunkgood_slider||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var r=n.O(void 0,[391],(function(){return n(168)}));r=n.O(r)}(); -
good-slider/trunk/good-slider.php
r2825065 r2831178 6 6 * Requires at least: 6.0 7 7 * Requires PHP: 7.4 8 * Version: 1. 0.08 * Version: 1.1.0 9 9 * Author: GoodWP 10 10 * Author URI: https://goodwp.io -
good-slider/trunk/src/item-block/edit.js
r2825065 r2831178 1 1 import { useBlockProps, useInnerBlocksProps } from "@wordpress/block-editor"; 2 import { applyFilters } from "@wordpress/hooks"; 2 3 3 export default function Edit( ) {4 export default function Edit(props) { 4 5 const blockProps = useBlockProps(); 5 const innerBlocksProps = useInnerBlocksProps(blockProps, { 6 __experimentalCaptureToolbars: false, 7 }); 6 const innerBlocksSettings = applyFilters( 7 "good-slider.item.innerBlocks-settings", 8 { 9 __experimentalCaptureToolbars: false, 10 }, 11 props 12 ); 13 const innerBlocksProps = useInnerBlocksProps(blockProps, innerBlocksSettings); 8 14 return <div {...innerBlocksProps} />; 9 15 } -
good-slider/trunk/src/slider-block/edit.js
r2825065 r2831178 11 11 import { Button, Placeholder, SelectControl } from "@wordpress/components"; 12 12 import { useDispatch } from "@wordpress/data"; 13 import { applyFilters } from "@wordpress/hooks"; 13 14 14 15 import "./editor.scss"; … … 34 35 }; 35 36 36 export default function Edit({ clientId, attributes, setAttributes }) { 37 export default function Edit(props) { 38 const { clientId, attributes, setAttributes } = props; 37 39 const { replaceInnerBlocks } = useDispatch(blockEditorStore); 38 40 … … 55 57 56 58 const blockProps = useBlockProps(); 57 const innerBlocksProps = useInnerBlocksProps(blockProps, { 58 allowedBlocks: ["good-slider/item"], 59 placeholder: SliderPlaceHolder, 60 templateLock: false, 61 renderAppender: InnerBlocks.ButtonBlockAppender, 62 __experimentalCaptureToolbars: true, 63 }); 59 const innerBlocksSettings = applyFilters( 60 "good-slider.slider.innerBlocks-settings", 61 { 62 allowedBlocks: ["good-slider/item"], 63 placeholder: SliderPlaceHolder, 64 templateLock: false, 65 renderAppender: InnerBlocks.ButtonBlockAppender, 66 __experimentalCaptureToolbars: true, 67 }, 68 props 69 ); 70 const innerBlocksProps = useInnerBlocksProps(blockProps, innerBlocksSettings); 64 71 65 72 return (
Note: See TracChangeset
for help on using the changeset viewer.