efficient-easel 2.2.0 → 3.1.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 +17 -4
- package/dist/chrome/index.d.ts +2 -2
- package/dist/chrome/index.js +1 -1
- package/dist/{chunk-2JIWFFXA.js → chunk-42TMLDSQ.js} +1 -1
- package/dist/{chunk-6OY2THZH.js → chunk-4LD4KA27.js} +1 -1
- package/dist/chunk-53NZMIRT.js +1 -0
- package/dist/chunk-5SOSVTVI.js +5 -0
- package/dist/{chunk-7SQF6LZL.js → chunk-66LWADFP.js} +1 -1
- package/dist/chunk-7HGVGKWU.js +64 -0
- package/dist/{chunk-VB5LRSGJ.js → chunk-BVUPKIM3.js} +1 -1
- package/dist/chunk-CRPJGCSO.js +20 -0
- package/dist/{chunk-35Q5HMJZ.js → chunk-EF3YSWT5.js} +1 -1
- package/dist/chunk-EJ6QAWRH.js +5 -0
- package/dist/chunk-FFYXVAAL.js +1 -0
- package/dist/{chunk-OXYGFK2B.js → chunk-GTDLBUOC.js} +6 -6
- package/dist/chunk-JVUGLF5I.js +7 -0
- package/dist/chunk-JZDEIRH4.js +1 -0
- package/dist/{chunk-UAVNI3BU.js → chunk-LHZIMK3M.js} +1 -1
- package/dist/chunk-LYALMY55.js +1 -0
- package/dist/{chunk-ZV6OYSZ7.js → chunk-MYC3AVG2.js} +1 -1
- package/dist/{chunk-FOBGSFFS.js → chunk-OZ72A6MY.js} +7 -7
- package/dist/{chunk-ZNNATBDC.js → chunk-QMBB7SU5.js} +1 -1
- package/dist/chunk-TCNPQKY6.js +4 -0
- package/dist/{chunk-AAT3O7PK.js → chunk-TGF7KEO7.js} +1 -1
- package/dist/chunk-UV4D7CDX.js +5 -0
- package/dist/{chunk-ONRYLR2D.js → chunk-VGV5D667.js} +2 -2
- package/dist/chunk-VX5GDBRI.js +2 -0
- package/dist/chunk-Y2G7CU6A.js +1 -0
- package/dist/copy/copy.css +79 -82
- package/dist/copy/index.d.ts +9 -7
- package/dist/copy/index.js +21 -31
- package/dist/fields/fields.css +0 -28
- package/dist/fields/index.d.ts +2 -2
- package/dist/fields/index.js +1 -1
- package/dist/panel/index.d.ts +4 -222
- package/dist/panel/index.js +12 -15
- package/dist/panel/panel.css +0 -165
- package/dist/screen/components/AddBlockRow.js +1 -1
- package/dist/screen/components/AddSidePanel.js +1 -1
- package/dist/screen/components/MediaSidePanel.d.ts +1 -1
- package/dist/screen/components/MediaSidePanel.js +1 -1
- package/dist/screen/components/NodeContextMenu.d.ts +16 -14
- package/dist/screen/components/NodeContextMenu.js +1 -1
- package/dist/screen/components/PageEditGuardNotices.js +1 -1
- package/dist/screen/components/ScreenChrome.js +1 -1
- package/dist/screen/components/ScreenDocumentContext.d.ts +1 -1
- package/dist/screen/components/ScreenDocumentContext.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 +16 -16
- package/dist/screen/components/SidePanelHead.js +1 -1
- package/dist/screen/components/UiIcon.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/admin-bridge.d.ts +1 -1
- package/dist/screen/lib/document-addressing.d.ts +1 -1
- package/dist/screen/lib/host-chrome.d.ts +1 -1
- package/dist/screen/lib/host.d.ts +1 -1
- package/dist/screen/lib/links/link-filters.d.ts +1 -2
- package/dist/screen/lib/media-panel.d.ts +1 -1
- package/dist/screen/lib/media-picker.d.ts +1 -1
- package/dist/screen/lib/page-lock.d.ts +1 -1
- package/dist/screen/lib/puck/device-fields.js +1 -1
- package/dist/screen/lib/puck/style-clipboard.d.ts +8 -4
- 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/lib/section-templates.d.ts +1 -1
- package/dist/screen/lib/session-context.d.ts +1 -1
- package/dist/screen/lib/session.d.ts +1 -1
- package/dist/screen/words.d.ts +123 -1
- package/dist/screen/words.js +1 -1
- package/dist/strings/catalogue.d.ts +3 -3
- package/dist/strings/catalogue.js +1 -1
- package/dist/strings/index.d.ts +3 -3
- package/dist/strings/index.js +1 -1
- package/dist/text-styles/index.js +11 -11
- package/dist/{words-AHHfiaRY.d.ts → words-C1U_dLBh.d.ts} +7 -0
- package/dist/{words-XH0TvZPg.d.ts → words-lpvYzf5U.d.ts} +4 -19
- package/dist/{words-D8kf071T.d.ts → words-vhnV8sM7.d.ts} +4 -26
- package/package.json +3 -3
- package/dist/LinkPicker-hPEr1MJx.d.ts +0 -113
- package/dist/chunk-4TMMEBAG.js +0 -4
- package/dist/chunk-5TRBCPRB.js +0 -5
- package/dist/chunk-BSSKAEFF.js +0 -5
- package/dist/chunk-E2O2MRZR.js +0 -1
- package/dist/chunk-FPOKPNO4.js +0 -1
- package/dist/chunk-HGTPLCTQ.js +0 -1
- package/dist/chunk-PWZOS45R.js +0 -2
- package/dist/chunk-RC6DD4XP.js +0 -7
- package/dist/chunk-TSQUEJZB.js +0 -5
- package/dist/chunk-UEM66O42.js +0 -64
- package/dist/chunk-UH7IGZKF.js +0 -1
- package/dist/chunk-VETFIYQR.js +0 -23
- package/dist/chunk-ZJEBF4NB.js +0 -1
package/dist/panel/index.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
export{SETTINGS_BUCKETS,SettingsField,SettingsGroup,SettingsTabs}from"../chunk-YNOZ5NXW.js";import{DEFAULT_PANEL_WORDS as e}from"../chunk-QTLAVDJE.js";export{SettingsSegmented,SettingsSwitch}from"../chunk-QLD57GBB.js";import{withTip as
|
|
2
|
-
return
|
|
3
|
-
return
|
|
4
|
-
return
|
|
5
|
-
return
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
|
|
13
|
-
/* @__PURE__ */s("button",{type:"button",id:o,className:t?"es-action is-done":"es-action",disabled:i,"aria-describedby":b,onClick:l,children:[c?/* @__PURE__ */a("span",{className:"es-action-icon","aria-hidden":"true",children:c}):null,
|
|
14
|
-
/* @__PURE__ */a("span",{className:"es-action-label",children:m})]}),p?/* @__PURE__ */a("p",{id:b,className:"es-action-note",children:n}):null,
|
|
15
|
-
/* @__PURE__ */a("span",{className:"es-action-live",role:"status","aria-live":"polite",children:t?u:null})]})}export{f as SettingsAction,h as SettingsCorners,o as SettingsDefaultReset,p as SettingsDrill,r as SettingsGroupHead,c as SettingsGroupSub,b as SettingsPlacement};
|
|
1
|
+
export{SETTINGS_BUCKETS,SettingsField,SettingsGroup,SettingsTabs}from"../chunk-YNOZ5NXW.js";import{DEFAULT_PANEL_WORDS as e}from"../chunk-QTLAVDJE.js";export{SettingsSegmented,SettingsSwitch}from"../chunk-QLD57GBB.js";import{withTip as n}from"../chunk-P2VEMZH5.js";import{jsx as s,jsxs as t}from"react/jsx-runtime";import{RevertIcon as l}from"efficient-shell/icons/efficient";export{CornersInput as SettingsCorners,AlignmentGrid as SettingsPlacement}from"efficient-shell/ui";function i({title:e,level:n=3,id:t,className:l}){/* @__PURE__ */
|
|
2
|
+
return s(`h${n}`,{id:t,className:l?`es-group-head ${l}`:"es-group-head",children:e})}function a({title:e,level:n=4,id:t,className:l}){/* @__PURE__ */
|
|
3
|
+
return s(`h${n}`,{id:t,className:l?`es-group-sub ${l}`:"es-group-sub",children:e})}function r({label:t,changed:i,onReset:a,detail:r,disabled:u,defaultAction:p,words:m,className:h}){const b={...e,...m},f=["es-default-reset"];if(i&&f.push("is-changed"),h&&f.push(h),!i&&p)return f.push("is-pressable"),n(p.title,/* @__PURE__ */s("button",{type:"button",className:f.join(" "),"aria-label":p.title,disabled:u,onClick:p.onPress,children:p.icon}));if(!i)/* @__PURE__ */
|
|
4
|
+
return s("span",{className:f.join(" "),"aria-hidden":"true"});const N=b.resetName({label:t});return n(r?b.resetTitle({label:t,detail:r}):N,/* @__PURE__ */s("button",{type:"button",className:f.join(" "),"aria-label":N,"aria-description":r||void 0,disabled:u,onClick:e=>{a(),function(e){const n=e.currentTarget,s=n.closest(".es-field");let t=s?.querySelector(c(".es-field-ctl"))??s?.querySelector(c(".es-field-head"))??null,l=s?null:n.parentElement;for(let e=0;!t&&l&&e<d;e+=1,l=l.parentElement)t=[...l.querySelectorAll(o)].find(e=>e!==n)??null;t?.focus()}(e)},children:/* @__PURE__ */s(l,{size:15})}))}var o=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled]):not(.es-default-reset)",'[tabindex]:not([tabindex="-1"])'].join(", "),c=e=>o.split(", ").map(n=>`${e} ${n}`).join(", "),d=4;function u({name:e,preview:n,offPage:l,status:i,onOpen:a,id:r,className:o}){const c=null!=n;/* @__PURE__ */
|
|
5
|
+
return t("button",{type:"button",id:r,className:o?`es-drill ${o}`:"es-drill",onClick:a,children:[
|
|
6
|
+
/* @__PURE__ */t("span",{className:"es-drill-text",children:[
|
|
7
|
+
/* @__PURE__ */s("span",{className:"es-drill-name",children:e}),c?/* @__PURE__ */s("span",{className:l?"es-drill-preview is-offpage":"es-drill-preview",children:n}):null]}),i?/* @__PURE__ */s("span",{className:"es-drill-status",children:i}):null,
|
|
8
|
+
/* @__PURE__ */s("span",{className:"es-drill-chev","aria-hidden":"true"})]})}function p({label:e,onPress:n,disabled:l,note:i,done:a,doneLabel:r,icon:o,id:c,className:d}){const u=void 0===r?e:r,p=a?u:e,m=null!=i,h=m&&c?`${c}-note`:void 0;/* @__PURE__ */
|
|
9
|
+
return t("div",{className:d?`es-action-wrap ${d}`:"es-action-wrap",children:[
|
|
10
|
+
/* @__PURE__ */t("button",{type:"button",id:c,className:a?"es-action is-done":"es-action",disabled:l,"aria-describedby":h,onClick:n,children:[o?/* @__PURE__ */s("span",{className:"es-action-icon","aria-hidden":"true",children:o}):null,
|
|
11
|
+
/* @__PURE__ */s("span",{className:"es-action-label",children:p})]}),m?/* @__PURE__ */s("p",{id:h,className:"es-action-note",children:i}):null,
|
|
12
|
+
/* @__PURE__ */s("span",{className:"es-action-live",role:"status","aria-live":"polite",children:a?u:null})]})}export{p as SettingsAction,r as SettingsDefaultReset,u as SettingsDrill,i as SettingsGroupHead,a as SettingsGroupSub};
|
package/dist/panel/panel.css
CHANGED
|
@@ -1037,171 +1037,6 @@ button.es-group-head:hover { background: var(--es-chip-bg); }
|
|
|
1037
1037
|
.es-drill { transition: none; }
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
|
-
/* ── SettingsPlacement — the 3×3 position grid ─────────────────────────────
|
|
1041
|
-
One control for two questions a merchant asks the same way: which part of a
|
|
1042
|
-
cropped picture stays in view, and where on the thing behind it a block sits.
|
|
1043
|
-
Both are one of nine positions, and both want the corner PRESSED.
|
|
1044
|
-
|
|
1045
|
-
Promoted out of efficient-storefront (`.sf-focal`) the day its own rule fired —
|
|
1046
|
-
card 66189 wrote "the day a second section wants it, that is the card that
|
|
1047
|
-
promotes it"; 66214 declined it early and said why; the sections that hold
|
|
1048
|
-
boxes take it past six callers. The values below are the shop's, token for
|
|
1049
|
-
token, so every existing caller draws exactly what it drew: the only change
|
|
1050
|
-
is that `--sf-*` aliases have become the `--es-*` names they always aliased. */
|
|
1051
|
-
.es-placement {
|
|
1052
|
-
display: grid;
|
|
1053
|
-
grid-template-columns: repeat(3, 1fr);
|
|
1054
|
-
grid-template-rows: repeat(3, 1fr);
|
|
1055
|
-
gap: 4px;
|
|
1056
|
-
width: 96px;
|
|
1057
|
-
height: 96px;
|
|
1058
|
-
padding: 4px;
|
|
1059
|
-
background: var(--es-track-bg);
|
|
1060
|
-
border: 1px solid var(--es-input-border);
|
|
1061
|
-
border-radius: var(--radius-lg);
|
|
1062
|
-
}
|
|
1063
|
-
/* Each cell is the shell's IconButton in its Tooltip's wrapper: the wrapper is
|
|
1064
|
-
the grid's item, and the button fills it. The button's own look (hover,
|
|
1065
|
-
focus ring, disabled) is the shell's. */
|
|
1066
|
-
.es-placement > span,
|
|
1067
|
-
.es-corners > span {
|
|
1068
|
-
display: flex;
|
|
1069
|
-
}
|
|
1070
|
-
.es-placement-cell,
|
|
1071
|
-
.es-corners-cell {
|
|
1072
|
-
width: 100%;
|
|
1073
|
-
height: 100%;
|
|
1074
|
-
}
|
|
1075
|
-
.es-placement-dot {
|
|
1076
|
-
width: 7px;
|
|
1077
|
-
height: 7px;
|
|
1078
|
-
border-radius: 50%;
|
|
1079
|
-
background: var(--es-muted);
|
|
1080
|
-
opacity: 0.5;
|
|
1081
|
-
transition: transform 0.12s, background 0.12s, opacity 0.12s;
|
|
1082
|
-
}
|
|
1083
|
-
.es-placement-cell:hover .es-placement-dot { opacity: 0.85; }
|
|
1084
|
-
/* ⚠️ THE CHOSEN CELL IS THE PANEL'S CHIP, NOT THE SHOP'S TINT — and that is a
|
|
1085
|
-
VISIBLE change to the control the shop ships today. `.sf-focal` marked its
|
|
1086
|
-
chosen square with `--sf-accent-tint` and a bigger accent dot; that is card
|
|
1087
|
-
8811's answer, which cards 66138 and 66302 replaced everywhere else in this
|
|
1088
|
-
panel. The strip tells the chosen chip apart by being the DARKEST thing in
|
|
1089
|
-
the row on a grey track, and a nine-square asks the identical question —
|
|
1090
|
-
which one am I on — so it gets the identical answer. Two answers to one
|
|
1091
|
-
question, one panel apart, is the thing this package exists to prevent, and
|
|
1092
|
-
`panel-layout.test.ts` bans the tint token package-wide to keep it that way.
|
|
1093
|
-
The dot inverts with the ground, or it disappears into it. */
|
|
1094
|
-
.es-placement-cell.is-active {
|
|
1095
|
-
background: var(--es-text);
|
|
1096
|
-
box-shadow: var(--es-raised-shadow);
|
|
1097
|
-
}
|
|
1098
|
-
.es-placement-cell.is-active .es-placement-dot {
|
|
1099
|
-
background: var(--es-on-accent);
|
|
1100
|
-
opacity: 1;
|
|
1101
|
-
transform: scale(1.5);
|
|
1102
|
-
}
|
|
1103
|
-
/* A position the caller has closed. It keeps its square — nine that became
|
|
1104
|
-
eight would read as a broken control — and stops answering the pointer; the
|
|
1105
|
-
reason is the cell's description and its Tooltip. The cell is the shell
|
|
1106
|
-
IconButton's `aria-disabled` (efficient-shell 4.166.0), which fades the
|
|
1107
|
-
whole cell to 0.6 and shows the not-allowed cursor; the dot under that fade
|
|
1108
|
-
stays at the 0.22 it showed before the cell faded (0.22 / 0.6), and does not
|
|
1109
|
-
brighten on hover. */
|
|
1110
|
-
.es-placement-cell.is-off .es-placement-dot { opacity: calc(0.22 / 0.6); }
|
|
1111
|
-
/* A cell that draws a GLYPH instead of its dot — the Scrolling Bar's
|
|
1112
|
-
`Scroll direction`, where four live cells mean a direction of travel and a
|
|
1113
|
-
dot cannot say which way. It follows the cell through every state the dot
|
|
1114
|
-
does, or the chosen square goes dark and the arrow on it stays muted and
|
|
1115
|
-
disappears into the ground it is drawn on.
|
|
1116
|
-
13px, sized against the CELL and not against the settings column: a cell is
|
|
1117
|
-
26.67px across (96px box, 3×3, gap 4, padding 4) and the dot it stands in for
|
|
1118
|
-
is 7px, so 13px reads as a direction without crowding the 6px cell radius. */
|
|
1119
|
-
.es-placement-icon {
|
|
1120
|
-
display: flex;
|
|
1121
|
-
align-items: center;
|
|
1122
|
-
justify-content: center;
|
|
1123
|
-
color: var(--es-muted);
|
|
1124
|
-
opacity: 0.5;
|
|
1125
|
-
transition: color 0.12s, opacity 0.12s;
|
|
1126
|
-
}
|
|
1127
|
-
.es-placement-icon svg { width: 13px; height: 13px; display: block; }
|
|
1128
|
-
.es-placement-cell:hover .es-placement-icon { opacity: 0.85; }
|
|
1129
|
-
/* ⚠️ IT DOES NOT GROW THE WAY THE DOT DOES. The dot scales to 1.5 on the chosen
|
|
1130
|
-
cell because a dot has no other way to say "chosen"; an arrow says its whole
|
|
1131
|
-
meaning by its shape, and growing it would crowd the square and make it read
|
|
1132
|
-
heavier than its three siblings. Colour alone marks it, on the inverted
|
|
1133
|
-
ground the cell already paints. */
|
|
1134
|
-
.es-placement-cell.is-active .es-placement-icon {
|
|
1135
|
-
color: var(--es-on-accent);
|
|
1136
|
-
opacity: 1;
|
|
1137
|
-
}
|
|
1138
|
-
.es-placement-cell.is-off .es-placement-icon { opacity: calc(0.22 / 0.6); }
|
|
1139
|
-
/* Keyboard focus is visible, like every other control in this panel. */
|
|
1140
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1141
|
-
.es-placement-icon,
|
|
1142
|
-
.es-placement-dot { transition: none; }
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
/* ── SettingsCorners — four corners of a box, any number of them lit ─────────
|
|
1146
|
-
The sibling of `.es-placement` above and deliberately built from its parts:
|
|
1147
|
-
the same track, the same chip on the chosen cell, the same focus ring. A
|
|
1148
|
-
merchant who has met the nine-square should not have to learn this one.
|
|
1149
|
-
|
|
1150
|
-
TWO COLUMNS, NOT THREE. The grid is 2×2 and each cell sits in the corner it
|
|
1151
|
-
stands for, so the control has the shape of the thing it edits. */
|
|
1152
|
-
.es-corners {
|
|
1153
|
-
position: relative;
|
|
1154
|
-
display: grid;
|
|
1155
|
-
grid-template-columns: repeat(2, 1fr);
|
|
1156
|
-
grid-template-rows: repeat(2, 1fr);
|
|
1157
|
-
gap: 4px;
|
|
1158
|
-
width: 96px;
|
|
1159
|
-
height: 96px;
|
|
1160
|
-
padding: 4px;
|
|
1161
|
-
background: var(--es-track-bg);
|
|
1162
|
-
border-radius: var(--radius-lg);
|
|
1163
|
-
}
|
|
1164
|
-
/* The BOX the four corners belong to. Inset so the cells sit ON its corners
|
|
1165
|
-
rather than beside it, dashed so it reads as the outline of the thing being
|
|
1166
|
-
edited rather than as a fifth control. See the note in SettingsCorners.tsx:
|
|
1167
|
-
without this the cells are four switches, not one box. */
|
|
1168
|
-
.es-corners-frame {
|
|
1169
|
-
position: absolute;
|
|
1170
|
-
inset: 22px;
|
|
1171
|
-
border: 1.5px dashed var(--es-muted);
|
|
1172
|
-
opacity: 0.45;
|
|
1173
|
-
pointer-events: none;
|
|
1174
|
-
}
|
|
1175
|
-
.es-corners-mark {
|
|
1176
|
-
width: 18px;
|
|
1177
|
-
height: 18px;
|
|
1178
|
-
background: var(--es-muted);
|
|
1179
|
-
opacity: 0.5;
|
|
1180
|
-
transition: border-radius 0.12s, background 0.12s, opacity 0.12s;
|
|
1181
|
-
}
|
|
1182
|
-
.es-corners-cell:hover .es-corners-mark { opacity: 0.85; }
|
|
1183
|
-
/* ⚠️ THE FOUR RULES ARE WRITTEN OUT, ONE PER CORNER, and must stay written out.
|
|
1184
|
-
The corner a cell stands for is in its class name (`es-corners-tl`), and a
|
|
1185
|
-
radius built by interpolating that name is a string no stylesheet contains —
|
|
1186
|
-
the same trap the shop documents on its own card wells. Four rules is the
|
|
1187
|
-
whole cost of never having that bug. */
|
|
1188
|
-
.es-corners-cell.is-on .es-corners-mark {
|
|
1189
|
-
background: var(--es-accent);
|
|
1190
|
-
opacity: 1;
|
|
1191
|
-
}
|
|
1192
|
-
.es-corners-tl.is-on .es-corners-mark { border-radius: var(--radius-lg) 0 0 0; }
|
|
1193
|
-
.es-corners-tr.is-on .es-corners-mark { border-radius: 0 var(--radius-lg) 0 0; }
|
|
1194
|
-
.es-corners-br.is-on .es-corners-mark { border-radius: 0 0 var(--radius-lg) 0; }
|
|
1195
|
-
.es-corners-bl.is-on .es-corners-mark { border-radius: 0 0 0 var(--radius-lg); }
|
|
1196
|
-
/* A corner the caller has closed. It keeps its cell — four that became three
|
|
1197
|
-
would read as a broken control — and stops answering the pointer; the reason
|
|
1198
|
-
is on the button's `title`. */
|
|
1199
|
-
.es-corners-cell.is-off .es-corners-mark { opacity: calc(0.22 / 0.6); }
|
|
1200
|
-
/* Keyboard focus is visible, like every other control in this panel. */
|
|
1201
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1202
|
-
.es-corners-mark { transition: none; }
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
1040
|
/* ── THE ACTION BUTTON (`[ADD] A Panel Button That Does One Thing`) ─────────────────────────────────────────
|
|
1206
1041
|
The full-width press under a group's rows that COMMITS — "Apply to all
|
|
1207
1042
|
cards". Measured against `.es-drill`, the panel's other full-width row, and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{AddBlockRow as default}from"../../chunk-
|
|
1
|
+
export{AddBlockRow as default}from"../../chunk-TCNPQKY6.js";import"../../chunk-HQ4VVRIC.js";import"../../chunk-EJ6QAWRH.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-LYALMY55.js";import"../../chunk-PYCLHOSA.js";import"../../chunk-AELNNAFM.js";import"../../chunk-CRPJGCSO.js";import"../../chunk-OZ72A6MY.js";import"../../chunk-UFY6RNMT.js";import"../../chunk-YNOZ5NXW.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-EA2HTX37.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-66LWADFP.js";import"../../chunk-QLD57GBB.js";import"../../chunk-FFYXVAAL.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-67GNT6PF.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{blockKey,AddSidePanel as default,sectionKey,templateKey}from"../../chunk-
|
|
1
|
+
export{blockKey,AddSidePanel as default,sectionKey,templateKey}from"../../chunk-UV4D7CDX.js";import"../../chunk-5ZBY24K7.js";import"../../chunk-PA3PNTVV.js";import"../../chunk-BVN33R76.js";import"../../chunk-5SOSVTVI.js";import"../../chunk-KQMML6JM.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-HQ4VVRIC.js";import"../../chunk-EJ6QAWRH.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-LYALMY55.js";import"../../chunk-PYCLHOSA.js";import"../../chunk-AELNNAFM.js";import"../../chunk-CRPJGCSO.js";import"../../chunk-OZ72A6MY.js";import"../../chunk-UFY6RNMT.js";import"../../chunk-YNOZ5NXW.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-EA2HTX37.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-GTDLBUOC.js";import"../../chunk-Y2G7CU6A.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-66LWADFP.js";import"../../chunk-QLD57GBB.js";import"../../chunk-FFYXVAAL.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-6HHHBBSY.js";import"../../chunk-O2NLQBFX.js";import"../../chunk-67GNT6PF.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -13,7 +13,7 @@ import '../lib/backend-error.js';
|
|
|
13
13
|
import '../../edit-lock/index.js';
|
|
14
14
|
import '../lib/host-chrome.js';
|
|
15
15
|
import '../lib/links/link-filters.js';
|
|
16
|
-
import '
|
|
16
|
+
import 'efficient-shell/ui';
|
|
17
17
|
import '../lib/document-hooks.js';
|
|
18
18
|
import '../lib/section-template-types.js';
|
|
19
19
|
import '../lib/puck/content-tree.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{MediaSidePanel as default}from"../../chunk-
|
|
1
|
+
export{MediaSidePanel as default}from"../../chunk-4LD4KA27.js";import"../../chunk-EJ6QAWRH.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-PYCLHOSA.js";import"../../chunk-AELNNAFM.js";import"../../chunk-CRPJGCSO.js";import"../../chunk-OZ72A6MY.js";import"../../chunk-UFY6RNMT.js";import"../../chunk-YNOZ5NXW.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-EA2HTX37.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-GTDLBUOC.js";import"../../chunk-Y2G7CU6A.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-66LWADFP.js";import"../../chunk-QLD57GBB.js";import"../../chunk-FFYXVAAL.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-67GNT6PF.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -2,13 +2,15 @@ import * as react from 'react';
|
|
|
2
2
|
import { E as EaselContextMenuItem } from '../../types-BsyPh6EW.js';
|
|
3
3
|
import { P as Place } from '../../types-41704JE4.js';
|
|
4
4
|
import { N as NodeClipboard, C as ClipboardEntry, a as NodeOps } from '../../useNodeOps-BF0fQsif.js';
|
|
5
|
+
import { N as NodeMenuWords } from '../../words-DMG4dYq2.js';
|
|
5
6
|
import { StyleSnapshot } from '../../style-clipboard/index.js';
|
|
7
|
+
import { S as StyleClipboardWords } from '../../words-CnnHb9jo.js';
|
|
8
|
+
import { ScreenMenuWords } from '../words.js';
|
|
6
9
|
import { C as CanvasTarget } from '../../watch-BTYOJpQU.js';
|
|
7
10
|
import { AddTarget } from '../lib/puck/add-target-types.js';
|
|
8
11
|
import { ScreenMenuRows } from '../lib/screen-parts.js';
|
|
9
12
|
import { EaselSession } from '../lib/session.js';
|
|
10
13
|
import '../../plan-DChbUXdS.js';
|
|
11
|
-
import '../../words-CnnHb9jo.js';
|
|
12
14
|
import '../lib/puck/block-choice.js';
|
|
13
15
|
import '../lib/puck/slot-section-spec.js';
|
|
14
16
|
import '../../blocks/index.js';
|
|
@@ -35,7 +37,7 @@ import '../../engine-DBxp_v6B.js';
|
|
|
35
37
|
import '../lib/admin-bridge.js';
|
|
36
38
|
import '../lib/host-chrome.js';
|
|
37
39
|
import '../lib/links/link-filters.js';
|
|
38
|
-
import '
|
|
40
|
+
import 'efficient-shell/ui';
|
|
39
41
|
import '../lib/backend-error.js';
|
|
40
42
|
import '../lib/document-hooks.js';
|
|
41
43
|
|
|
@@ -166,6 +168,18 @@ type NodeMenuHost = {
|
|
|
166
168
|
* Absent: "Page settings", as the row always said.
|
|
167
169
|
*/
|
|
168
170
|
pageSettingsLabel?: string;
|
|
171
|
+
/**
|
|
172
|
+
* THE MENU'S WORDS in the host's language (3.1.0): a node's rows
|
|
173
|
+
* (`EaselStrings.menu`), Copy style and Paste style (`styleClipboard`), and
|
|
174
|
+
* the screen's own rows and lines (`screen.menu`). The rows are built by
|
|
175
|
+
* plain functions, which read no provider, so the chrome hands them in.
|
|
176
|
+
* Left out, or any part of it: English.
|
|
177
|
+
*/
|
|
178
|
+
words?: {
|
|
179
|
+
menu?: NodeMenuWords;
|
|
180
|
+
styleClipboard?: StyleClipboardWords;
|
|
181
|
+
screen?: ScreenMenuWords;
|
|
182
|
+
};
|
|
169
183
|
/**
|
|
170
184
|
* NOTHING MAY BE WRITTEN (0.106.0): the document is frozen, somebody else
|
|
171
185
|
* holds it, or a save was refused (`ScreenDocumentValue.readOnly`). The rows
|
|
@@ -542,18 +556,6 @@ declare function nodeMenuItems(host: NodeMenuHost, target: {
|
|
|
542
556
|
zone: string;
|
|
543
557
|
index: number;
|
|
544
558
|
}): EaselContextMenuItem[];
|
|
545
|
-
/**
|
|
546
|
-
* What a right-click on the PAGE offers — the tree's ground, the panel, the
|
|
547
|
-
* canvas between two sections.
|
|
548
|
-
*
|
|
549
|
-
* This ground used to fall through to Chrome, which is half of what the owner
|
|
550
|
-
* was pointing at: a right-click that sometimes gives you the editor and
|
|
551
|
-
* sometimes gives you Reload teaches you not to right-click at all.
|
|
552
|
-
*
|
|
553
|
-
* Everything here already exists on a button or a key. That is on purpose — a
|
|
554
|
-
* context menu is a second door to actions a merchant can already reach, never
|
|
555
|
-
* the only door to one, or the feature is hidden inside a gesture.
|
|
556
|
-
*/
|
|
557
559
|
declare function pageMenuItems(host: NodeMenuHost): EaselContextMenuItem[];
|
|
558
560
|
/**
|
|
559
561
|
* What a right-click INSIDE A TEXT BOX offers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{EASEL_NODE_CLIPBOARD,ancestorChain,nodeClipboardOf,nodeClipboardRules,nodeMenuItems,nodeShortcut,pageMenuItems,pastePlace,runNodeShortcut,textMenuItems,useNodeClipboard,useNodeContextMenu}from"../../chunk-
|
|
1
|
+
export{EASEL_NODE_CLIPBOARD,ancestorChain,nodeClipboardOf,nodeClipboardRules,nodeMenuItems,nodeShortcut,pageMenuItems,pastePlace,runNodeShortcut,textMenuItems,useNodeClipboard,useNodeContextMenu}from"../../chunk-53NZMIRT.js";import"../../chunk-V7U33NF2.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-LYALMY55.js";import"../../chunk-BXMXTO36.js";import"../../chunk-EA2HTX37.js";import"../../chunk-OSPUG6S6.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PageEditGuardNotices as default}from"../../chunk-
|
|
1
|
+
export{PageEditGuardNotices as default}from"../../chunk-EF3YSWT5.js";import"../../chunk-VGV5D667.js";import"../../chunk-S4AWJX4Q.js";import"../../chunk-ERR437B5.js";import"../../chunk-KG7RJWOK.js";import"../../chunk-GMCZXMOV.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-HNKB2ZYR.js";import"../../chunk-CLOS6SSX.js";import"../../chunk-VPFNZ7TB.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-LYALMY55.js";import"../../chunk-BDTITTMW.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-GTDLBUOC.js";import"../../chunk-Y2G7CU6A.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-MFIRYGHW.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenChrome as default}from"../../chunk-
|
|
1
|
+
export{ScreenChrome as default}from"../../chunk-7HGVGKWU.js";import"../../chunk-26OOWIJJ.js";import"../../chunk-MYC3AVG2.js";import"../../chunk-FGNR22NY.js";import"../../chunk-ZE7I3PLX.js";import"../../chunk-2GVCAIPX.js";import"../../chunk-VX5GDBRI.js";import"../../chunk-7F52SZOI.js";import"../../chunk-R2HLPNQF.js";import"../../chunk-TBF5CVPA.js";import"../../chunk-4ES5JGGX.js";import"../../chunk-IQ5TA7AM.js";import"../../chunk-DUVRZ456.js";import"../../chunk-6W7WLPZH.js";import"../../chunk-PT6V53OO.js";import"../../chunk-KCBEE2MC.js";import"../../chunk-42TMLDSQ.js";import"../../chunk-BVUPKIM3.js";import"../../chunk-LHZIMK3M.js";import"../../chunk-IYT6NN2J.js";import"../../chunk-53NZMIRT.js";import"../../chunk-EF3YSWT5.js";import"../../chunk-BSPCSC45.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import"../../chunk-VGV5D667.js";import"../../chunk-S4AWJX4Q.js";import"../../chunk-ERR437B5.js";import"../../chunk-KG7RJWOK.js";import"../../chunk-GMCZXMOV.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-HNKB2ZYR.js";import"../../chunk-CLOS6SSX.js";import"../../chunk-VPFNZ7TB.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-V7U33NF2.js";import"../../chunk-5545A3PC.js";import"../../chunk-UV4D7CDX.js";import"../../chunk-5ZBY24K7.js";import"../../chunk-PA3PNTVV.js";import"../../chunk-BVN33R76.js";import"../../chunk-5SOSVTVI.js";import"../../chunk-KQMML6JM.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-HQ4VVRIC.js";import"../../chunk-4LD4KA27.js";import"../../chunk-EJ6QAWRH.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-LYALMY55.js";import"../../chunk-PYCLHOSA.js";import"../../chunk-AELNNAFM.js";import"../../chunk-CRPJGCSO.js";import"../../chunk-OZ72A6MY.js";import"../../chunk-UFY6RNMT.js";import"../../chunk-YNOZ5NXW.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-BXMXTO36.js";import"../../chunk-EA2HTX37.js";import"../../chunk-OSPUG6S6.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-4VJATVVR.js";import"../../chunk-BDTITTMW.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-GTDLBUOC.js";import"../../chunk-Y2G7CU6A.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-66LWADFP.js";import"../../chunk-QLD57GBB.js";import"../../chunk-FFYXVAAL.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-6HHHBBSY.js";import"../../chunk-O2NLQBFX.js";import"../../chunk-67GNT6PF.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -15,7 +15,7 @@ import '../lib/session.js';
|
|
|
15
15
|
import '../lib/backend-error.js';
|
|
16
16
|
import '../lib/host-chrome.js';
|
|
17
17
|
import '../lib/links/link-filters.js';
|
|
18
|
-
import '
|
|
18
|
+
import 'efficient-shell/ui';
|
|
19
19
|
import '../lib/document-hooks.js';
|
|
20
20
|
import '../lib/section-template-types.js';
|
|
21
21
|
import '../lib/puck/content-tree.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenDocumentContext,ScreenDocumentProvider,useScreenDocument}from"../../chunk-
|
|
1
|
+
export{ScreenDocumentContext,ScreenDocumentProvider,useScreenDocument}from"../../chunk-VGV5D667.js";import"../../chunk-S4AWJX4Q.js";import"../../chunk-ERR437B5.js";import"../../chunk-KG7RJWOK.js";import"../../chunk-GMCZXMOV.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-HNKB2ZYR.js";import"../../chunk-CLOS6SSX.js";import"../../chunk-VPFNZ7TB.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-LYALMY55.js";import"../../chunk-BDTITTMW.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MFIRYGHW.js";
|
|
@@ -14,7 +14,7 @@ import '../lib/backend-error.js';
|
|
|
14
14
|
import '../../edit-lock/index.js';
|
|
15
15
|
import '../lib/host-chrome.js';
|
|
16
16
|
import '../lib/links/link-filters.js';
|
|
17
|
-
import '
|
|
17
|
+
import 'efficient-shell/ui';
|
|
18
18
|
import '../lib/document-hooks.js';
|
|
19
19
|
import '../lib/section-template-types.js';
|
|
20
20
|
import '../lib/puck/content-tree.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DocumentScreen,ScreenMount as default}from"../../chunk-
|
|
1
|
+
export{DocumentScreen,ScreenMount as default}from"../../chunk-JVUGLF5I.js";import"../../chunk-GXQCZJOP.js";import"../../chunk-TGF7KEO7.js";import"../../chunk-7HGVGKWU.js";import"../../chunk-26OOWIJJ.js";import"../../chunk-MYC3AVG2.js";import"../../chunk-FGNR22NY.js";import"../../chunk-ZE7I3PLX.js";import"../../chunk-2GVCAIPX.js";import"../../chunk-VX5GDBRI.js";import"../../chunk-7F52SZOI.js";import"../../chunk-R2HLPNQF.js";import"../../chunk-TBF5CVPA.js";import"../../chunk-4ES5JGGX.js";import"../../chunk-IQ5TA7AM.js";import"../../chunk-DUVRZ456.js";import"../../chunk-6W7WLPZH.js";import"../../chunk-PT6V53OO.js";import"../../chunk-KCBEE2MC.js";import"../../chunk-42TMLDSQ.js";import"../../chunk-BVUPKIM3.js";import"../../chunk-LHZIMK3M.js";import"../../chunk-IYT6NN2J.js";import"../../chunk-53NZMIRT.js";import"../../chunk-EF3YSWT5.js";import"../../chunk-BSPCSC45.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import"../../chunk-VGV5D667.js";import"../../chunk-S4AWJX4Q.js";import"../../chunk-ERR437B5.js";import"../../chunk-KG7RJWOK.js";import"../../chunk-GMCZXMOV.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-HNKB2ZYR.js";import"../../chunk-CLOS6SSX.js";import"../../chunk-VPFNZ7TB.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-V7U33NF2.js";import"../../chunk-5545A3PC.js";import"../../chunk-UV4D7CDX.js";import"../../chunk-5ZBY24K7.js";import"../../chunk-PA3PNTVV.js";import"../../chunk-BVN33R76.js";import"../../chunk-5SOSVTVI.js";import"../../chunk-KQMML6JM.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-HQ4VVRIC.js";import"../../chunk-4LD4KA27.js";import"../../chunk-EJ6QAWRH.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-LYALMY55.js";import"../../chunk-PYCLHOSA.js";import"../../chunk-AELNNAFM.js";import"../../chunk-CRPJGCSO.js";import"../../chunk-OZ72A6MY.js";import"../../chunk-UFY6RNMT.js";import"../../chunk-YNOZ5NXW.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-BXMXTO36.js";import"../../chunk-EA2HTX37.js";import"../../chunk-OSPUG6S6.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-4VJATVVR.js";import"../../chunk-BDTITTMW.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-GTDLBUOC.js";import"../../chunk-Y2G7CU6A.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-66LWADFP.js";import"../../chunk-QLD57GBB.js";import"../../chunk-FFYXVAAL.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-6HHHBBSY.js";import"../../chunk-O2NLQBFX.js";import"../../chunk-67GNT6PF.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -31,7 +31,7 @@ import '../lib/session.js';
|
|
|
31
31
|
import '../lib/backend-error.js';
|
|
32
32
|
import '../lib/host-chrome.js';
|
|
33
33
|
import '../lib/links/link-filters.js';
|
|
34
|
-
import '
|
|
34
|
+
import 'efficient-shell/ui';
|
|
35
35
|
import '../lib/document-hooks.js';
|
|
36
36
|
import '../lib/document-switch.js';
|
|
37
37
|
import '../../engine-DBxp_v6B.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenStoreProvider as default}from"../../chunk-
|
|
1
|
+
export{ScreenStoreProvider as default}from"../../chunk-TGF7KEO7.js";import"../../chunk-EJ6QAWRH.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-PYCLHOSA.js";import"../../chunk-AELNNAFM.js";import"../../chunk-CRPJGCSO.js";import"../../chunk-OZ72A6MY.js";import"../../chunk-UFY6RNMT.js";import"../../chunk-YNOZ5NXW.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-EA2HTX37.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-66LWADFP.js";import"../../chunk-QLD57GBB.js";import"../../chunk-FFYXVAAL.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-67GNT6PF.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{AddBlockRow as e}from"../../chunk-
|
|
2
|
-
return
|
|
3
|
-
return
|
|
4
|
-
/* @__PURE__
|
|
5
|
-
return
|
|
6
|
-
/* @__PURE__
|
|
7
|
-
/* @__PURE__
|
|
8
|
-
/* @__PURE__
|
|
9
|
-
/* @__PURE__
|
|
10
|
-
/* @__PURE__
|
|
11
|
-
return
|
|
12
|
-
/* @__PURE__
|
|
13
|
-
/* @__PURE__
|
|
14
|
-
/* @__PURE__
|
|
15
|
-
/* @__PURE__
|
|
16
|
-
/* @__PURE__
|
|
1
|
+
import{AddBlockRow as e}from"../../chunk-TCNPQKY6.js";import{slotChildRowName as n}from"../../chunk-TBF5CVPA.js";import{scrollPreviewToSection as o,gotoPreviewSlide as r}from"../../chunk-4ES5JGGX.js";import"../../chunk-IQ5TA7AM.js";import"../../chunk-DUVRZ456.js";import"../../chunk-6W7WLPZH.js";import{useEaselUndoKeys as t}from"../../chunk-PT6V53OO.js";import{SlotChildActionsProvider as s}from"../../chunk-KCBEE2MC.js";import{DEFAULT_PANEL_W as i}from"../../chunk-42TMLDSQ.js";import{usePartBridge as c}from"../../chunk-BVUPKIM3.js";import{useSectionOps as p}from"../../chunk-LHZIMK3M.js";import"../../chunk-IYT6NN2J.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import{useScreenDocument as l}from"../../chunk-VGV5D667.js";import"../../chunk-S4AWJX4Q.js";import"../../chunk-ERR437B5.js";import"../../chunk-KG7RJWOK.js";import"../../chunk-GMCZXMOV.js";import"../../chunk-RLBXE4EU.js";import"../../chunk-HNKB2ZYR.js";import"../../chunk-CLOS6SSX.js";import"../../chunk-VPFNZ7TB.js";import"../../chunk-LOMEH6DG.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-HQ4VVRIC.js";import{MediaSidePanel as m}from"../../chunk-4LD4KA27.js";import{SELECTION_MODE as d,useScreenPinned as a,useScreenCanvasFrame as u,useScreenInspectorPanel as h,useScreenPickFollowsSelection as k,sameInspectorMode as f,useStandaloneScreenBridges as j,useScreenBlockLook as N,useScreenBlockRules as S}from"../../chunk-EJ6QAWRH.js";import{nestsInTree as y,slotFieldsOf as A}from"../../chunk-PLVEGYK6.js";import{useMediaPanel as C,usePanelPick as x,useCancelPanelPick as O}from"../../chunk-R6WTQWAC.js";import{useHostEscape as L}from"../../chunk-U3JP4VGF.js";import{DEFAULT_SCREEN_WORDS as P}from"../../chunk-LYALMY55.js";import{useEasel as M}from"../../chunk-PYCLHOSA.js";import"../../chunk-AELNNAFM.js";import"../../chunk-CRPJGCSO.js";import"../../chunk-OZ72A6MY.js";import{LayersTree as v,Subtree as R,TreeRow as T,TreeRowAction as Y,TreeSeam as B}from"../../chunk-UFY6RNMT.js";import"../../chunk-YNOZ5NXW.js";import{DEFAULT_TREE_WORDS as g}from"../../chunk-K56YDHYQ.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-EA2HTX37.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-BDTITTMW.js";import{DEFAULT_SAVE_WORDS as w,saveIndicator as z}from"../../chunk-H6DDIBQ4.js";import{SaveState as D,panelWidthVars as E}from"../../chunk-GTDLBUOC.js";import"../../chunk-Y2G7CU6A.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-66LWADFP.js";import"../../chunk-QLD57GBB.js";import"../../chunk-FFYXVAAL.js";import{useWords as b}from"../../chunk-MFIRYGHW.js";import"../../chunk-6HHHBBSY.js";import"../../chunk-O2NLQBFX.js";import{useTreeDrag as H}from"../../chunk-67GNT6PF.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-P2VEMZH5.js";import{zoneKey as V,parseZoneKey as F}from"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";import{useState as W,useRef as G,useEffect as K,useCallback as Q,Fragment as I}from"react";import{Tooltip as J}from"efficient-shell/ui";import{TrashIcon as X}from"efficient-shell/icons/efficient";import{jsxs as Z,jsx as $,Fragment as U}from"react/jsx-runtime";var q=e=>n=>{n.target.closest("button, input")||e()},_={rowClick:q};function ee(){const{saveState:ee,readOnly:ne,readOnlyReason:oe=null}=l(),re=p(),{appState:te,selectedItem:se,config:ie}=M(e=>e),[ce,pe]=W(d),le=b("screen",P),me=b("tree",g),de=b("save",w),{first:ae,last:ue,panelOf:he}=a(),ke=he(ae),fe=u(),je=h(),Ne=te.data.content?.[0]??null,Se=Ne?.props.id??null,ye=Ne?.type===ae,Ae=Ne?.type===ue,Ce=G(null),xe=G(null);t(xe);const Oe=C(),Le=x(),Pe=O();k(se?.props.id),K(()=>{const e=xe.current;if(!Le||!e)return;const n=e=>{"Escape"===e.key&&Pe()};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[Le]),L(null!==Le,()=>Pe()),K(()=>{Se&&Ce.current!==Se&&(Ce.current=Se,ye?pe(ke??d):se||re.select({index:0}))},[Se,se,re,ye]);const Me=Q(e=>pe(n=>f(n,e)?n:e),[]),ve=j({kind:ce.kind,mode:ce,open:Me,show:e=>pe(e),reveal:()=>{},select:(e,n)=>{pe(e=>f(e,n)?e:n),re.select(e)}}),{selectNode:Re}=c({mode:ce,setMode:pe,onOpenPart:o}),Te=N(),{labelAtLevel:Ye,Icon:Be}=Te,{canAddTo:ge}=S(),we=e=>Ye(e,"block",ie.components[e]?.label??e),ze=e=>Ye(e,"section",we(e)),De=!ye&&"puck"===ce.kind&&se?.props.id===Se,Ee=Ne?ge(Ne.type)?.spec??null:null,be=Ne&&Ee?`${Ne.props.id}:${Ee.slot}`:null,He=Ne&&Ee&&Array.isArray(Ne.props[Ee.slot])?Ne.props[Ee.slot]:[],Ve=e=>n(e,we,Te.plainText),Fe=(e,n)=>{Ne&&Ee&&be&&(pe(d),Ee.slider?(r(String(Ne.props.id),e),re.select({index:e,zone:be}),o(String(Ne.props.id))):(re.select({index:e,zone:be}),o(n)))},We=()=>{if(!Ne||!Ee||!be)return;const e=He.length;re.insertComponent(be,Ee.childType,e),pe(d),Ee.slider?requestAnimationFrame(()=>{r(String(Ne.props.id),e),re.select({index:e,zone:be})}):re.select({index:e,zone:be})},Ge=e=>A(ie,e),Ke=e=>{const{parentId:n,slot:o}=F(e),r=e=>{if(!e)return null;if(String(e.props.id)===n)return e;for(const n of Ge(e.type)){const o=Array.isArray(e.props[n])?e.props[n]:[];for(const e of o){const n=r(e);if(n)return n}}return null},t=r(Ne)?.props[o];return Array.isArray(t)?t.length:0},Qe=(e,n,o)=>{const r=Math.min(Math.max(o,0),Ke(e)),t=n<r?r-1:r;t!==n&&(re.reorderComponent(e,n,t),pe(d),re.select({index:t,zone:e}))},Ie=H({keyOf:e=>e.id,readOnly:Boolean(ne),canDrop:(e,n)=>V(n)===e.zone&&n.index>=0&&n.index<=Ke(e.zone),onDrop:(e,n)=>Qe(e.zone,e.index,n.index),onStep:(e,n)=>Qe(e.zone,e.index,n<0?e.index-1:e.index+2)}),Je=(e,n)=>/* @__PURE__ */$(B,{...ne?{}:Ie.seam({place:{...F(e),index:n}})},`seam:${e}:${n}`),Xe=e=>Te.blockRowName(e,we),Ze=(e,n,r)=>{pe(d),re.select({index:n,zone:e}),o(r)},$e=(e,n,o)=>{re.insertComponent(e,n,o),pe(d),re.select({index:o,zone:e})},Ue=(n,o,r)=>/* @__PURE__ */$(e,{choices:r,onPick:e=>$e(n,e,o)}),qe=(e,n)=>{const o=Ge((r=e).type).flatMap(e=>(Array.isArray(r.props[e])?r.props[e]:[]).map((n,o)=>({child:n,zone:`${r.props.id}:${e}`,index:o})));var r;const t=ge(e.type),s=t?.choices??null,i="footer"===t?.source?Xe:Ve;/* @__PURE__ */
|
|
2
|
+
return Z(U,{children:[o.map(({child:e,zone:o,index:r})=>{const t=se?.props.id===e.props.id,s=y(ie,e.type,n),c=i(e),p=String(e.props.id),l=()=>Ze(o,r,p),{rowProps:m,...a}=Ie.row({item:{id:p,zone:o,index:r},place:{...F(o),index:r}},{onClick:q(l)});/* @__PURE__ */
|
|
3
|
+
return Z(I,{children:[0===r&&Je(o,0),
|
|
4
|
+
/* @__PURE__ */$(T,{words:me,icon:/* @__PURE__ */$(Be,{type:e.type,size:13}),name:c,selected:t,onSelect:l,...a,actions:/* @__PURE__ */$(Y,{kind:"delete",label:le.deleteNamed({name:c}),onClick:()=>{return e=o,n=r,re.removeComponent(e,n),pe(d),void re.select(null);var e,n},children:/* @__PURE__ */$(X,{size:13})}),rowProps:m}),s&&/* @__PURE__ */$(R,{children:qe(e,n+1)}),Je(o,r+1)]},String(e.props.id??`${o}-${r}`))}),t&&s?Ue(`${e.props.id}:${t.slot}`,o.length,s):null]})},_e="HeroSingle"===Ne?.type,en=Boolean(Ne)&&(Boolean(Ee)||Ae||ye||_e);/* @__PURE__ */
|
|
5
|
+
return Z("div",{ref:xe,className:"sf-editor es-editor",style:E(i),children:[
|
|
6
|
+
/* @__PURE__ */$("div",{className:"sf-section-bar",children:/* @__PURE__ */$(D,null!==oe?{tone:"off",label:oe,role:"status"}:{...z(ee,de),role:"status"})}),
|
|
7
|
+
/* @__PURE__ */Z("div",{className:"sf-body",children:[Le&&Oe?/* @__PURE__ */$("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:/* @__PURE__ */$(m,{panel:Oe,pick:Le})}):en&&Ne&&/* @__PURE__ */Z("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:[
|
|
8
|
+
/* @__PURE__ */$("div",{className:"sf-panel-head",children:/* @__PURE__ */$(J,{content:ye?le.headerSettings:le.sectionSettings({name:ze(Ne.type)}),side:"bottom",children:/* @__PURE__ */$("button",{type:"button",className:"sf-panel-title sf-panel-title--btn "+(De?"is-selected":""),"aria-pressed":De,onClick:()=>{ye?pe(ke??d):(pe(d),re.select({index:0}))},children:ze(Ne.type)})})}),
|
|
9
|
+
/* @__PURE__ */$(v,{className:"sf-tree sf-scroll",rootProps:Ie.rootProps(),words:me,children:/* @__PURE__ */$(R,{children:ye?
|
|
10
|
+
/* @__PURE__ */$(T,{words:me,icon:/* @__PURE__ */$(Be,{type:"header",size:13}),name:le.headerSettings,selected:ce.kind===ke?.kind,onSelect:()=>pe(ke??d),rowProps:{onClick:q(()=>pe(ke??d))}}):Ee?/* @__PURE__ */Z(U,{children:[He.map((e,n)=>{const o=se?.props.id===e.props.id,r=Ve(e),t=String(e.props.id),s=()=>Fe(n,t),{rowProps:i,...c}=Ie.row({item:{id:t,zone:be,index:n},place:{...F(be),index:n}},{onClick:q(s)});/* @__PURE__ */
|
|
11
|
+
return Z(I,{children:[0===n&&Je(be,0),
|
|
12
|
+
/* @__PURE__ */$(T,{words:me,icon:/* @__PURE__ */$(Be,{type:e.type,size:13}),name:r,selected:o,onSelect:s,...c,actions:/* @__PURE__ */$(Y,{kind:"delete",label:le.deleteNamed({name:r}),onClick:()=>{return e=n,void(be&&(re.removeComponent(be,e),pe(d),re.select(null)));var e},children:/* @__PURE__ */$(X,{size:13})}),rowProps:i}),Je(be,n+1)]},String(e.props.id??n))}),
|
|
13
|
+
/* @__PURE__ */Z("button",{type:"button",className:"sf-add-card",onClick:We,children:[
|
|
14
|
+
/* @__PURE__ */$("span",{className:"sf-plus sf-plus--sm",children:"+"}),Ee.addLabel]}),Se?ve.partRows?.(Ne,_):null]}):qe(Ne,1)})})]}),
|
|
15
|
+
/* @__PURE__ */$("div",{className:"sf-center",children:/* @__PURE__ */$("div",{className:"sf-preview-host",children:/* @__PURE__ */$(fe,{})})}),
|
|
16
|
+
/* @__PURE__ */$(s,{value:{selectChild:(e,n,o,r)=>"section"===ge(r)?.source?Fe(n,o):Ze(e,n,o),addChild:(e,n,o,r,t)=>"section"===ge(t)?.source?We():$e(`${e}:${n}`,o,r),childRowName:Ve,blockRowName:Xe},children:/* @__PURE__ */$(je,{mode:ce,onOpenWebsiteSettings:ve.openSettings??(()=>{}),onSelectNode:Re,hideNodeActions:!0})})]})]})}export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PanelHideButton,PanelModeExit,PanelShowStrip,SidePanelHead as default}from"../../chunk-
|
|
1
|
+
export{PanelHideButton,PanelModeExit,PanelShowStrip,SidePanelHead as default}from"../../chunk-5SOSVTVI.js";import"../../chunk-KQMML6JM.js";import"../../chunk-GTDLBUOC.js";import"../../chunk-Y2G7CU6A.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-MFIRYGHW.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ChevronRightIcon as e,TrashIcon as r,RenameIcon as i,ExternalIcon as t,SearchIcon as o,EyeOffIcon as n,EyeIcon as s}from"efficient-shell/icons/efficient";import{jsx as a}from"react/jsx-runtime";var c={eye:s,"eye-off":n,search:o,"external-link":t,pencil:i,trash:r,"chevron-right":e};function f({name:e,size:r,strokeWidth:i=1.8,rounded:t=!1,className:o,style:n}){/* @__PURE__ */
|
|
2
2
|
return a(c[e],{size:r,strokeWidth:i,strokeLinecap:t?"round":void 0,strokeLinejoin:t?"round":void 0,className:o,style:n})}export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{COLLAPSED_SECTIONS_KEY,DEFAULT_PANEL_W,PANEL_WIDTHS_KEY,clampPanelWidth,screenStorageKeys}from"../../chunk-
|
|
1
|
+
export{COLLAPSED_SECTIONS_KEY,DEFAULT_PANEL_W,PANEL_WIDTHS_KEY,clampPanelWidth,screenStorageKeys}from"../../chunk-42TMLDSQ.js";export{MAX_PANEL_W,MIN_PANEL_W,panelWidthVars}from"../../chunk-GTDLBUOC.js";import"../../chunk-Y2G7CU6A.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MJM6SFD3.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-MFIRYGHW.js";
|
|
@@ -30,7 +30,7 @@ import '../lib/session.js';
|
|
|
30
30
|
import '../lib/backend-error.js';
|
|
31
31
|
import '../lib/host-chrome.js';
|
|
32
32
|
import '../lib/links/link-filters.js';
|
|
33
|
-
import '
|
|
33
|
+
import 'efficient-shell/ui';
|
|
34
34
|
import '../lib/document-hooks.js';
|
|
35
35
|
import '../lib/document-switch.js';
|
|
36
36
|
import '../../engine-DBxp_v6B.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{usePartBridge}from"../../chunk-
|
|
1
|
+
export{usePartBridge}from"../../chunk-BVUPKIM3.js";import"../../chunk-LHZIMK3M.js";import"../../chunk-IYT6NN2J.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import"../../chunk-EJ6QAWRH.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-PYCLHOSA.js";import"../../chunk-AELNNAFM.js";import"../../chunk-CRPJGCSO.js";import"../../chunk-OZ72A6MY.js";import"../../chunk-UFY6RNMT.js";import"../../chunk-YNOZ5NXW.js";import"../../chunk-K56YDHYQ.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-EA2HTX37.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-66LWADFP.js";import"../../chunk-QLD57GBB.js";import"../../chunk-FFYXVAAL.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-67GNT6PF.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-P2VEMZH5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
package/dist/screen/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ import './lib/puck/content-tree.js';
|
|
|
32
32
|
import './lib/puck/block-choice.js';
|
|
33
33
|
import './lib/host-chrome.js';
|
|
34
34
|
import './lib/links/link-filters.js';
|
|
35
|
-
import '
|
|
35
|
+
import 'efficient-shell/ui';
|
|
36
36
|
import './lib/puck/add-target-types.js';
|
|
37
37
|
import './lib/puck/slot-section-spec.js';
|
|
38
38
|
import './lib/backend-error.js';
|