PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.8.3
Kubio AI Page Builder v2.8.3
2.8.4 2.8.3 2.8.2 2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / build / inspectors / index.js
kubio / build / inspectors Last commit date
index.asset.php 1 year ago index.js 1 year ago
index.js
2 lines
1 (()=>{"use strict";var e={5251:(e,o,t)=>{var l=t(9196),r=Symbol.for("react.element"),c=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function d(e,o,t){var l,c={},d=null,a=null;for(l in void 0!==t&&(d=""+t),void 0!==o.key&&(d=""+o.key),void 0!==o.ref&&(a=o.ref),o)n.call(o,l)&&!i.hasOwnProperty(l)&&(c[l]=o[l]);if(e&&e.defaultProps)for(l in o=e.defaultProps)void 0===c[l]&&(c[l]=o[l]);return{$$typeof:r,type:e,key:d,ref:a,props:c,_owner:s.current}}o.Fragment=c,o.jsx=d,o.jsxs=d},5893:(e,o,t)=>{e.exports=t(5251)},9196:e=>{e.exports=window.React}},o={};function t(l){var r=o[l];if(void 0!==r)return r.exports;var c=o[l]={exports:{}};return e[l](c,c.exports,t),c.exports}t.d=(e,o)=>{for(var l in o)t.o(o,l)&&!t.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:o[l]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};(()=>{t.r(l),t.d(l,{AdvancedInspectorControls:()=>u,AdvancedStyleBlockInspector:()=>w,BlockInspectorTopControls:()=>I,ContentBlockInspector:()=>B,ContentInspectorControls:()=>S,DataHelperContextFromClientId:()=>g,StyleBlockInspector:()=>F,StyleInspectorControls:()=>T,useCurrentInspectorTab:()=>H});const e=window.kubio.editorData,o=window.wp.i18n,r=window.wp.blocks,c=window.wp.data,n=window.wp.compose,s=window.wp.components,i=window.wp.blockEditor;var d=t(5893);const{Fill:a,Slot:p}=(0,s.createSlotFill)("AdvancedInspectorControls"),k=(0,n.createHigherOrderComponent)((e=>o=>{const t=(0,i.useBlockEditContext)(),{isSelected:l}=t;return l?(0,d.jsx)(e,{...o}):null}),"ifBlockEditSelectedAdvancedInspectorControls"),u=(0,n.compose)([k])(a);u.Slot=p;const b=(0,n.compose)([(0,c.withSelect)((e=>{const{getSelectedBlockClientId:o,getSelectedBlockCount:t,getBlockName:l}=e("core/block-editor"),{getBlockStyles:c}=e("core/blocks"),n=o(),s=n&&l(n),i=n&&(0,r.getBlockType)(s),d=n&&c(s);return{count:t(),hasBlockStyles:d&&d.length>0,selectedBlockName:s,selectedBlockClientId:n,blockType:i}}))])((({blockType:e,selectedBlockClientId:t,selectedBlockName:l,showNoBlockSelectedMessage:c=!0})=>{const n=l===(0,r.getUnregisteredTypeHandlerName)();return e&&t&&!n?(0,d.jsx)("div",{className:"block-editor-block-inspector kubio-inspector",children:(0,d.jsx)(u.Slot,{bubblesVirtually:!0})}):c?(0,d.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,o.__)("No block selected.","kubio")}):null})),w=()=>(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(b,{})}),S=e=>{const o=(0,i.useBlockEditContext)(),{isSelected:t}=o;return t&&(0,d.jsx)(s.__experimentalStyleProvider,{document,children:(0,d.jsx)(i.InspectorControls,{className:"kubio-inspector",...e})})},y=window.kubio.pro,m=window.kubio.utils,B=()=>{const{selectedBlockName:e}=(0,c.useSelect)((e=>{const{getSelectedBlockClientId:o,getBlockName:t}=e(i.store),l=o();return{selectedBlockName:l?t(l):null}}),[]),o=(0,m.blockIsFromPro)(e);return(0,d.jsxs)("div",{style:{position:"relative"},children:[(0,d.jsx)(y.UpgradeToProOverlay,{flag:o,urlArgs:{source:"sidebar-content/"+e,content:e}}),(0,d.jsx)(i.BlockInspector,{})]})},x=window.kubio.core,g=(0,n.compose)([(0,x.withObserveOtherBlocks)(((e,{clientId:o})=>o)),x.withKubioBlockContext])((({children:e})=>e)),{Fill:C,Slot:h}=(0,s.createSlotFill)("StyleInspectorControlsTop"),j=(0,n.createHigherOrderComponent)((e=>o=>{const t=(0,i.useBlockEditContext)(),{isSelected:l}=t;return l?(0,d.jsx)(e,{...o}):null}),"ifBlockEditSelectedStyleInspectorControls"),I=(0,n.compose)([j])(C);I.Slot=h;const _=window.kubio.controls,f=window.wp.hooks,v="StyleInspectorControls",{Fill:N,Slot:O}=(0,s.createSlotFill)(v),E=(0,n.createHigherOrderComponent)((e=>o=>{const t=(0,i.useBlockEditContext)(),{isSelected:l}=t;return l?(0,d.jsx)(s.__experimentalStyleProvider,{document,children:(0,d.jsx)(e,{...o})}):null}),"ifBlockEditSelectedStyleInspectorControls"),T=(0,n.compose)([E])(N);T.Slot=e=>!(0,x.useSlotHasFills)(v)&&window.isKubioBlockEditor?(0,d.jsx)("div",{className:"kubio-editing-header",children:(0,d.jsx)(_.ControlNotice,{content:(0,o.__)("Current block does not support styling","kubio")})}):(0,d.jsx)(O,{...e});const F=(0,n.compose)([(0,c.withSelect)((e=>{const{getSelectedBlockClientId:o,getSelectedBlockCount:t,getBlockName:l}=e("core/block-editor"),{getBlockStyles:c}=e("core/blocks"),n=o(),s=n&&l(n),i=n&&(0,r.getBlockType)(s),d=n&&c(s);return{count:t(),hasBlockStyles:d&&d.length>0,selectedBlockName:s,selectedBlockClientId:n,blockType:i}}))])((({blockType:e,selectedBlockClientId:t,selectedBlockName:l,showNoBlockSelectedMessage:c=!0})=>{const n=l===(0,r.getUnregisteredTypeHandlerName)();if(!e||!t||n)return c?(0,d.jsx)("span",{className:"block-editor-block-inspector__no-blocks",children:(0,o.__)("No block selected.","kubio")}):null;const s=(0,m.blockIsFromPro)(l);return(0,d.jsxs)("div",{className:"block-editor-block-inspector kubio-inspector",children:[(0,d.jsx)(y.UpgradeToProOverlay,{flag:s,urlArgs:{source:"sidebar-style/"+l,content:l}}),(0,d.jsx)(T.Slot,{bubblesVirtually:!0})]})})),P=(0,n.createHigherOrderComponent)((e=>o=>(0,d.jsxs)(d.Fragment,{children:[!window.isKubioBlockEditor&&(0,d.jsx)(i.InspectorControls,{children:(0,d.jsx)(_.LinkedNotice,{...o})}),(0,d.jsx)(e,{...o}),!window.isKubioBlockEditor&&(0,d.jsx)(i.InspectorControls,{children:(0,d.jsx)(F,{})})]})),"withKubioStyleInspectorOutsideKubioEditor");(0,f.addFilter)("editor.BlockEdit","kubio.third-party-controls",P);const H=()=>{const[o,t]=(0,e.useGlobalSessionProp)("displayed-block-panel","content");return[o,t]}})(),(window.kubio=window.kubio||{}).inspectors=l})();
2