efficient-easel 3.7.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/buckets-Tj-nkBpg.d.ts +28 -0
- package/dist/chrome/chrome.css +30 -2
- package/dist/chrome/index.js +1 -1
- package/dist/chunk-37DMJPHL.js +14 -0
- package/dist/chunk-3GX7XBAF.js +5 -0
- package/dist/chunk-3ZJSLHHI.js +8 -0
- package/dist/chunk-4JSBIW5H.js +9 -0
- package/dist/{chunk-42TMLDSQ.js → chunk-6TOYXESC.js} +1 -1
- package/dist/chunk-BXQBCW3P.js +1 -0
- package/dist/{chunk-CRG625FM.js → chunk-C7ERK4DF.js} +3 -3
- package/dist/chunk-CRWFB7MU.js +21 -0
- package/dist/{chunk-RKSKUGWC.js → chunk-ETDRAF3O.js} +65 -65
- package/dist/{chunk-LZ6EGT4Y.js → chunk-G5JILVHG.js} +1 -1
- package/dist/{chunk-2I7MAA2U.js → chunk-HQWQLDCB.js} +1 -1
- package/dist/{chunk-XBNOEQMR.js → chunk-I7ER3P4U.js} +1 -1
- package/dist/chunk-KFV7N2DJ.js +1 -0
- package/dist/{chunk-SCPCXNTB.js → chunk-KJ2RODGT.js} +1 -1
- package/dist/chunk-KSTX646X.js +5 -0
- package/dist/chunk-MQNBD6AB.js +1 -0
- package/dist/{chunk-5SOSVTVI.js → chunk-PFNIVZPN.js} +1 -1
- package/dist/{chunk-6N64PNWF.js → chunk-RQWJOPRB.js} +1 -1
- package/dist/{chunk-GTDLBUOC.js → chunk-UB4TLWVJ.js} +6 -6
- package/dist/{chunk-MUZNA23W.js → chunk-UQ6CD3K2.js} +1 -1
- package/dist/{chunk-WSNVBUPL.js → chunk-Y324X4U4.js} +1 -1
- package/dist/drag/drag.css +5 -56
- package/dist/drag/index.js +1 -1
- package/dist/easel/index.d.ts +2 -2
- package/dist/fields/fields.css +4 -0
- package/dist/fields/index.d.ts +103 -51
- package/dist/fields/index.js +1 -1
- package/dist/panel/index.d.ts +8 -2
- package/dist/panel/index.js +19 -12
- package/dist/panel/panel.css +19 -0
- package/dist/screen/components/AddBlockRow.js +1 -1
- package/dist/screen/components/AddSidePanel.js +1 -1
- package/dist/screen/components/MediaSidePanel.js +1 -1
- package/dist/screen/components/NodeContextMenu.d.ts +1 -1
- package/dist/screen/components/PageEditGuardNotices.js +1 -1
- package/dist/screen/components/ScreenChrome.js +1 -1
- package/dist/screen/components/ScreenMount.d.ts +1 -1
- package/dist/screen/components/ScreenMount.js +1 -1
- package/dist/screen/components/ScreenStoreProvider.d.ts +1 -1
- package/dist/screen/components/ScreenStoreProvider.js +1 -1
- package/dist/screen/components/SectionScreenShell.js +15 -15
- package/dist/screen/components/SidePanelHead.js +1 -1
- package/dist/screen/components/panel-widths.js +1 -1
- package/dist/screen/components/usePartBridge.d.ts +1 -1
- package/dist/screen/components/usePartBridge.js +1 -1
- package/dist/screen/index.d.ts +1 -1
- package/dist/screen/index.js +1 -1
- package/dist/screen/lib/puck/field-buckets.d.ts +20 -6
- package/dist/screen/lib/puck/field-buckets.js +1 -1
- package/dist/screen/lib/puck/style-clipboard.d.ts +15 -6
- package/dist/screen/lib/puck/style-clipboard.js +1 -1
- package/dist/screen/lib/puck/use-section-ops.js +1 -1
- package/dist/screen/lib/screen-parts.d.ts +1 -1
- package/dist/screen/lib/screen-parts.js +1 -1
- package/dist/screen/screen.css +9 -42
- package/dist/strings/catalogue.d.ts +2 -2
- package/dist/strings/catalogue.js +1 -1
- package/dist/strings/index.d.ts +2 -2
- package/dist/strings/index.js +1 -1
- package/dist/tree/index.d.ts +8 -4
- package/dist/tree/index.js +1 -1
- package/dist/tree/tree.css +6 -3
- package/dist/{types-BqGnUVX5.d.ts → types-BLRK6_JO.d.ts} +7 -0
- package/dist/{types-CWxUxPGO.d.ts → types-OUl0mK1k.d.ts} +5 -2
- package/dist/{words-BGrHZAJJ.d.ts → words-zH1H0WFw.d.ts} +8 -3
- package/package.json +3 -3
- package/dist/buckets-CuLM47h9.d.ts +0 -13
- package/dist/chunk-2GLQRNYT.js +0 -16
- package/dist/chunk-7P6IFCR4.js +0 -1
- package/dist/chunk-CRPJGCSO.js +0 -20
- package/dist/chunk-LUSM3QTY.js +0 -5
- package/dist/chunk-QTLAVDJE.js +0 -1
- package/dist/chunk-R2HLPNQF.js +0 -1
- package/dist/chunk-UFY6RNMT.js +0 -9
- package/dist/chunk-YIKMVF24.js +0 -5
- package/dist/chunk-YNOZ5NXW.js +0 -14
package/dist/chunk-YIKMVF24.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{slotFieldsOf as n}from"./chunk-PLVEGYK6.js";import{usePickFollowsSelection as e}from"./chunk-R6WTQWAC.js";import{EaselCanvas as t,useSelectedFields as r}from"./chunk-XW4AV5N4.js";import{Inspector as i}from"./chunk-CRPJGCSO.js";import{createContext as o,useContext as u}from"react";import{DesktopIcon as l}from"efficient-shell/icons/efficient";import{jsx as s}from"react/jsx-runtime";var c={kind:"puck"};function f(n,e){const t=n,r=e,i=Object.keys(t);return i.length===Object.keys(r).length&&i.every(n=>Object.is(t[n],r[n]))}function a(n){const e=n;return"string"==typeof e.nodeId&&"string"==typeof e.slot}function d(e,t,r){const i=e.slotsOf?.(r);return i||n(t,r.type).map(n=>({slot:n,label:n,rung:!1}))}function p(n,e){return n.isFirst?n.isFirst(e):e.type===n.first}function m(n,e){return n.isLast?n.isLast(e):e.type===n.last}var k={},h={},v=()=>k,g=()=>"",y=()=>null,b=()=>{},O={isLockedBlock:()=>!1,duplicateBlocked:()=>null,nestDepth:()=>0,newSectionNode:()=>null,canAddTo:()=>null,blockIsOffered:()=>!0},j={labelAtLevel:(n,e,t)=>t,descriptions:{},categoryLabel:()=>{},firstSection:null,blockRowName:(n,e)=>e(n.type),plainText:n=>n,Icon:()=>null,Thumbnail:()=>null,useProducts:()=>null},w={options:[{id:"desktop",label:"Desktop",icon:/* @__PURE__ */s(l,{})}],initial:"desktop",fluid:"desktop",widths:{desktop:2e3}},C={read:()=>"sections",write:()=>{},forSelection:(n,e)=>n?"sections":e},L={first:null,last:null,firstGroup:null,lastGroup:null,isSectionGroup:()=>!1,sectionGroupZone:()=>"",panelOf:()=>null};function S(){/* @__PURE__ */
|
|
2
|
-
return s(t,{height:"fill"})}function P(){const{id:n,fields:e,values:t,readOnly:o,onChange:u}=r();/* @__PURE__ */
|
|
3
|
-
return s("div",{className:"es-sidepanel es-sidepanel--right",children:/* @__PURE__ */s(i,{fields:e,values:t,onChange:u,readOnly:o,idPrefix:n})})}var G=o({});function N({parts:n,children:e}){/* @__PURE__ */
|
|
4
|
-
return s(G.Provider,{value:n,children:e})}function D(){return u(G)}function x(){return(D().useOwnerName??g)()}function A(){return(D().useDocumentLabel??y)()}function B(n,e,t,r){return(D().useBridges??v)(n,e,t,r)}function I(n){return(D().useStandaloneBridges??v)(n)}function R(n,e){(D().useDocumentPass??b)(n,e)}function T(){return D().blockRules??O}function F(){return D().blockLook??j}function V(){return D().devices??w}function W(){return D().leftView??C}function K(){return D().pinned??L}function E(){return D().saveSwitch??!0}function H(n){e(!0===D().pickFollowsSelection,n)}function J(){return D().add??h}function Q(){return D().storageNamespace||void 0}function X(){return D().styleClipboard??null}function Y(){return D().nodeKeys??!0}function Z(){return D().notify??null}function q(){return D().Canvas??S}function z(){return D().CanvasHead??null}function M(){return D().canvasDrag??null}var U=o(null);function $({target:n,children:e}){/* @__PURE__ */
|
|
5
|
-
return s(U.Provider,{value:n,children:e})}function _(){return u(U)}function nn(){return D().Inspector??P}export{c as SELECTION_MODE,$ as ScreenCanvasTargetProvider,N as ScreenPartsProvider,p as isPinnedFirst,m as isPinnedLast,a as isSlotMode,f as sameInspectorMode,d as screenSlotsOf,J as useScreenAdd,F as useScreenBlockLook,T as useScreenBlockRules,B as useScreenBridges,M as useScreenCanvasDrag,q as useScreenCanvasFrame,z as useScreenCanvasHead,_ as useScreenCanvasTarget,V as useScreenDevices,A as useScreenDocumentLabel,R as useScreenDocumentPass,nn as useScreenInspectorPanel,W as useScreenLeftView,Y as useScreenNodeKeys,Z as useScreenNotify,x as useScreenOwnerName,D as useScreenParts,H as useScreenPickFollowsSelection,K as useScreenPinned,E as useScreenSaveSwitch,Q as useScreenStorageNamespace,X as useScreenStyleClipboard,I as useStandaloneScreenBridges};
|
package/dist/chunk-YNOZ5NXW.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{DEFAULT_PANEL_WORDS as e}from"./chunk-QTLAVDJE.js";import{SettingsSwitch as a}from"./chunk-QLD57GBB.js";import{Tabs as l,CountBadge as n}from"efficient-shell/ui";import{jsx as i,jsxs as s,Fragment as r}from"react/jsx-runtime";import{isValidElement as t,cloneElement as c}from"react";function d(e){const a=e[0];if(!a?.htmlId||!a.htmlId.endsWith(`-tab-${a.id}`))return;const l=a.htmlId.slice(0,-`-tab-${a.id}`.length);return e.every(e=>e.htmlId===`${l}-tab-${e.id}`)?l:void 0}function o({items:a,activeId:t,onSelect:c,ariaLabel:o=e.settings,idPrefix:u,className:h}){
|
|
2
|
-
/* @__PURE__ */
|
|
3
|
-
return i("div",{className:"es-tabs-fit",children:/* @__PURE__ */i(l,{variant:"pill","aria-label":o,idPrefix:u??d(a),className:h?`es-tabs ${h}`:"es-tabs",value:t,onChange:c,items:a.map(e=>{const a="number"==typeof e.badge&&e.badge>0?/* @__PURE__ */i(n,{count:e.badge,tone:"accent"}):null;return e.icon?{id:e.id,tooltip:e.label,label:/* @__PURE__ */s(r,{children:[
|
|
4
|
-
/* @__PURE__ */s("span",{className:"es-tab-tip",children:[
|
|
5
|
-
/* @__PURE__ */i("span",{className:"es-tab-icon","aria-hidden":"true",children:e.icon}),
|
|
6
|
-
/* @__PURE__ */i("span",{className:"es-tab-word has-icon",children:e.label})]}),a]})}:{id:e.id,label:/* @__PURE__ */s(r,{children:[
|
|
7
|
-
/* @__PURE__ */i("span",{className:"es-tab-word",children:e.label}),a]})}})})})}function u(e){return Array.isArray(e)?e.some(u):t(e)}function h(e,l,n){if(!t(e)||e.type!==a)return e;const i=e.props;return i.ariaLabel||i.ariaLabelledBy?e:c(e,n?{ariaLabelledBy:n}:{ariaLabel:l})}function m({label:e,labelId:a,icon:l,value:n,hint:t,changed:c,htmlFor:d,action:o,children:m,className:p}){const b=u(m),f=u(o);if(!b&&!f)return null;const N=["es-field"];b||N.push("is-inline"),c&&N.push("is-changed"),p&&N.push(p);const g=/* @__PURE__ */s(r,{children:[l?/* @__PURE__ */i("span",{className:"es-field-icon","aria-hidden":"true",children:l}):null,
|
|
8
|
-
/* @__PURE__ */i("span",{className:"es-field-label",id:a,children:e})]});/* @__PURE__ */
|
|
9
|
-
return s("div",{className:N.join(" "),children:[
|
|
10
|
-
/* @__PURE__ */s("div",{className:"es-field-head",children:[d?/* @__PURE__ */i("label",{className:"es-field-name",htmlFor:d,children:g}):/* @__PURE__ */i("span",{className:"es-field-name",children:g}),null!=n?/* @__PURE__ */i("span",{className:"es-field-value",children:n}):null,f?h(o,e,a):null]}),b?/* @__PURE__ */i("div",{className:"es-field-ctl",children:m}):null,t?/* @__PURE__ */i("p",{className:"es-field-hint",children:t}):null]})}function p({title:e,open:a,onToggle:l,count:n,id:r,children:t,className:c}){const d=r?`${r}-body`:void 0;/* @__PURE__ */
|
|
11
|
-
return s("div",{className:c?`es-group ${c}`:"es-group",children:[
|
|
12
|
-
/* @__PURE__ */s("button",{type:"button",id:r,"aria-expanded":a,"aria-controls":d,className:"es-group-head",onClick:()=>l(!a),children:[e,"number"==typeof n&&n>0?/* @__PURE__ */i("span",{className:"es-group-count",children:n}):null,
|
|
13
|
-
/* @__PURE__ */i("span",{className:"es-group-sign","aria-hidden":"true"})]}),
|
|
14
|
-
/* @__PURE__ */i("div",{id:d,className:"es-group-body",hidden:!a,children:t})]})}var b=Object.freeze(["Content","Style","Layout","Animation"]);export{b as SETTINGS_BUCKETS,m as SettingsField,p as SettingsGroup,o as SettingsTabs};
|