efficient-easel 0.104.0 → 0.105.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 +59 -1
- package/dist/CanvasDragLayer-zgYT1xwY.d.ts +168 -0
- package/dist/chrome/index.js +1 -1
- package/dist/{chunk-KVNRNDUC.js → chunk-3P6AMTOS.js} +1 -1
- package/dist/chunk-4XQUWGIV.js +65 -0
- package/dist/{chunk-QCBWT2XE.js → chunk-53G47SWO.js} +1 -1
- package/dist/{chunk-IWAPPEL4.js → chunk-5ZBBXZPV.js} +1 -1
- package/dist/chunk-7FBDZTUD.js +2 -0
- package/dist/chunk-7V5WZ46F.js +2 -0
- package/dist/{chunk-4EUWOGZF.js → chunk-CLOS6SSX.js} +1 -1
- package/dist/{chunk-ZOJEFIP4.js → chunk-GMCZXMOV.js} +1 -1
- package/dist/{chunk-OYX47SL7.js → chunk-HNKB2ZYR.js} +1 -1
- package/dist/{chunk-R2MUSGPS.js → chunk-IE4GFYKO.js} +1 -1
- package/dist/{chunk-UB7JVPK4.js → chunk-KG7RJWOK.js} +1 -1
- package/dist/chunk-N7VRF7PR.js +5 -0
- package/dist/{chunk-PYNQRX56.js → chunk-NYKIQJT2.js} +1 -1
- package/dist/chunk-PA3PNTVV.js +1 -0
- package/dist/chunk-PLVEGYK6.js +1 -0
- package/dist/chunk-PQXIFBDY.js +1 -0
- package/dist/{chunk-NEQIEYYO.js → chunk-QH6LCNOX.js} +1 -1
- package/dist/{chunk-Z6BAZFSW.js → chunk-R6WTQWAC.js} +2 -2
- package/dist/{chunk-BBRY7KI4.js → chunk-RQHC4TD6.js} +3 -3
- package/dist/{chunk-QDEZQ5A6.js → chunk-S4AWJX4Q.js} +1 -1
- package/dist/{chunk-YODRYAZX.js → chunk-SARZN4M7.js} +1 -1
- package/dist/chunk-SQTY6CJD.js +1 -0
- package/dist/{chunk-QOPY2LQM.js → chunk-TBF5CVPA.js} +1 -1
- package/dist/chunk-THWO5YVZ.js +1 -0
- package/dist/chunk-TLZG2FCF.js +1 -0
- package/dist/chunk-U3JP4VGF.js +2 -0
- package/dist/{chunk-LXEOVUAV.js → chunk-V4LF7D4F.js} +1 -1
- package/dist/chunk-VSHV6KJQ.js +5 -0
- package/dist/{chunk-OM67AJQC.js → chunk-VSOP4GUM.js} +1 -1
- package/dist/{chunk-6DJHRLCU.js → chunk-YC4TB3CJ.js} +9 -9
- package/dist/{chunk-TTENU2HX.js → chunk-YN4KND5F.js} +1 -1
- package/dist/chunk-ZTTWFAAC.js +1 -0
- package/dist/drag/index.d.ts +4 -164
- package/dist/edit-lock/index.d.ts +55 -1
- package/dist/edit-lock/index.js +1 -1
- package/dist/{host-DJ8Gzsx7.d.ts → host-BQ_b9Qzk.d.ts} +27 -1
- 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 +167 -9
- 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 +10 -2
- package/dist/screen/components/ScreenMount.js +1 -1
- package/dist/screen/components/ScreenStoreProvider.d.ts +18 -6
- 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/panel-widths.js +1 -1
- package/dist/screen/components/usePartBridge.d.ts +18 -6
- package/dist/screen/components/usePartBridge.js +1 -1
- package/dist/screen/index.d.ts +13 -5
- package/dist/screen/index.js +1 -1
- package/dist/screen/lib/admin-bridge.js +1 -1
- package/dist/screen/lib/document-addressing.d.ts +1 -1
- package/dist/screen/lib/document-switch.js +1 -1
- package/dist/screen/lib/failure.js +1 -1
- package/dist/screen/lib/host-inbound.js +1 -1
- package/dist/screen/lib/host.d.ts +1 -1
- package/dist/screen/lib/host.js +1 -1
- package/dist/screen/lib/key-scope.js +1 -1
- package/dist/screen/lib/media-panel.d.ts +1 -1
- package/dist/screen/lib/media-panel.js +1 -1
- package/dist/screen/lib/media-picker.d.ts +1 -1
- package/dist/screen/lib/media-picker.js +1 -1
- package/dist/screen/lib/page-lock.js +1 -1
- package/dist/screen/lib/puck/content-tree.d.ts +8 -1
- package/dist/screen/lib/puck/content-tree.js +1 -1
- package/dist/screen/lib/puck/palette-sections.d.ts +7 -0
- package/dist/screen/lib/puck/palette-sections.js +1 -1
- package/dist/screen/lib/puck/section-doc.js +1 -1
- package/dist/screen/lib/puck/slot-child-name.d.ts +25 -1
- package/dist/screen/lib/puck/slot-child-name.js +1 -1
- package/dist/screen/lib/puck/style-clipboard.d.ts +53 -1
- 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 +471 -8
- package/dist/screen/lib/screen-parts.js +1 -1
- package/dist/screen/screen.css +18 -0
- package/dist/screen/words.d.ts +73 -2
- package/dist/screen/words.js +1 -1
- package/dist/strings/catalogue.d.ts +4 -2
- package/dist/strings/catalogue.js +1 -1
- package/dist/strings/index.d.ts +1 -1
- package/dist/strings/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-5D2XAZKH.js +0 -62
- package/dist/chunk-7755VWRT.js +0 -4
- package/dist/chunk-7GVLSNFW.js +0 -1
- package/dist/chunk-A2LFBOUF.js +0 -1
- package/dist/chunk-D6324C3E.js +0 -5
- package/dist/chunk-GENAF3P6.js +0 -1
- package/dist/chunk-HMWJB3HF.js +0 -1
- package/dist/chunk-JUQ6YJCG.js +0 -1
- package/dist/chunk-LEGAPYPC.js +0 -1
- package/dist/chunk-LRTIMWZG.js +0 -2
- package/dist/chunk-Q2HPBMG5.js +0 -1
- package/dist/chunk-R5ZVNJLJ.js +0 -2
- package/dist/chunk-SERF2FAU.js +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { E as EaselContextMenuItem } from '../../types-Djdq6Xkd.js';
|
|
3
|
-
import {
|
|
3
|
+
import { P as Place } from '../../types-41704JE4.js';
|
|
4
|
+
import { N as NodeClipboard, C as ClipboardEntry, a as NodeOps } from '../../useNodeOps-BF0fQsif.js';
|
|
4
5
|
import { StyleSnapshot } from '../../style-clipboard/index.js';
|
|
5
6
|
import { C as CanvasTarget } from '../../watch-BTYOJpQU.js';
|
|
6
7
|
import { AddTarget } from '../lib/puck/add-target-types.js';
|
|
8
|
+
import { ScreenMenuRows } from '../lib/screen-parts.js';
|
|
7
9
|
import { EaselSession } from '../lib/session.js';
|
|
8
|
-
import '../../types-41704JE4.js';
|
|
9
10
|
import '../../plan-DChbUXdS.js';
|
|
10
11
|
import '../../words-CnnHb9jo.js';
|
|
11
12
|
import '../lib/puck/block-choice.js';
|
|
@@ -14,15 +15,29 @@ import '../../blocks/index.js';
|
|
|
14
15
|
import '../../types-E3HrTPg2.js';
|
|
15
16
|
import '../../data/index.js';
|
|
16
17
|
import '../../resolve-D68pb3Bx.js';
|
|
17
|
-
import '
|
|
18
|
+
import '../../types-CqY85foL.js';
|
|
19
|
+
import '../../types-DWS-s9z-.js';
|
|
20
|
+
import '../../wordFit-D4S36PvB.js';
|
|
18
21
|
import '../../edit-lock/index.js';
|
|
22
|
+
import '../../panelWidths-D9hTLR25.js';
|
|
23
|
+
import '../../CanvasDragLayer-zgYT1xwY.js';
|
|
24
|
+
import '../../session-DSQFmIvx.js';
|
|
25
|
+
import '../../words-BDignMl_.js';
|
|
26
|
+
import '../../types-DJDBtdB2.js';
|
|
27
|
+
import '../../words-DgHcY5qB.js';
|
|
28
|
+
import './AddSidePanel.js';
|
|
29
|
+
import '../lib/section-template-types.js';
|
|
30
|
+
import '../lib/puck/content-tree.js';
|
|
31
|
+
import '../../host-BQ_b9Qzk.js';
|
|
32
|
+
import '../lib/document-contract.js';
|
|
33
|
+
import '../lib/document-switch.js';
|
|
34
|
+
import '../../engine-DBxp_v6B.js';
|
|
35
|
+
import '../lib/admin-bridge.js';
|
|
19
36
|
import '../lib/host-chrome.js';
|
|
20
37
|
import '../lib/links/link-filters.js';
|
|
21
38
|
import '../../LinkPicker-W2Rtxetz.js';
|
|
22
|
-
import '../lib/
|
|
39
|
+
import '../lib/backend-error.js';
|
|
23
40
|
import '../lib/document-hooks.js';
|
|
24
|
-
import '../lib/section-template-types.js';
|
|
25
|
-
import '../lib/puck/content-tree.js';
|
|
26
41
|
|
|
27
42
|
/**
|
|
28
43
|
* Where the menu is open, and WHAT it was opened on.
|
|
@@ -144,8 +159,52 @@ type NodeMenuHost = {
|
|
|
144
159
|
collapseAll: () => void;
|
|
145
160
|
/** Say, in the editor's own voice, that the browser refused clipboard reading
|
|
146
161
|
* and ⌘V is the way. NOT a console warning: the merchant pressed a row and
|
|
147
|
-
* something has to answer them.
|
|
148
|
-
|
|
162
|
+
* something has to answer them.
|
|
163
|
+
*
|
|
164
|
+
* …and, handed what is held (0.105.0), that a BLOCK cannot be pasted where
|
|
165
|
+
* ⌘V was pressed: the held block has no list on the way up from the
|
|
166
|
+
* selection that takes it ({@link pastePlace}). One refusal, two causes, the
|
|
167
|
+
* same voice. */
|
|
168
|
+
onPasteRefused: (held?: ClipboardEntry) => void;
|
|
169
|
+
/**
|
|
170
|
+
* May the held block be pasted at `at`, in a list it did not come from
|
|
171
|
+
* (0.105.0)? Owner ruling R12/R13 (Victor Mau, 2026-10-09): Copy and Paste
|
|
172
|
+
* work ACROSS lists, in both editors. The chrome answers with the rule a drag
|
|
173
|
+
* of the same block answers to — the slot's own list at its own depth
|
|
174
|
+
* (`canAddTo`), its cap, the pinned band, the Footer and the section groups —
|
|
175
|
+
* so a paste lands nowhere a drag could not. Optional: a host without it
|
|
176
|
+
* pastes a block only back into the kind of list it came from, as the menu
|
|
177
|
+
* always did.
|
|
178
|
+
*/
|
|
179
|
+
canPasteAt?: (held: ClipboardEntry, at: Place) => boolean;
|
|
180
|
+
/**
|
|
181
|
+
* The layer's own rows for this node, by group (0.105.0, lib/screen-parts
|
|
182
|
+
* `ScreenBridges.menuRows`): placed at the end of each group, after the
|
|
183
|
+
* screen's. Optional: none.
|
|
184
|
+
*/
|
|
185
|
+
menuRows?: (node: NodeLike, zone: string, index: number) => ScreenMenuRows | null | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* ⌘C / ⌘X / ⌘V on the SELECTED node (0.105.0, lib/screen-parts `nodeKeys`):
|
|
188
|
+
* the keyboard door to this menu's Copy, Cut and Paste, by its rules and
|
|
189
|
+
* through its operations ({@link runNodeShortcut}). The keys are heard on
|
|
190
|
+
* `target` (the page, or the editor's own root — lib/key-scope) and in the
|
|
191
|
+
* canvas frame. Optional: without it no key is taken.
|
|
192
|
+
*/
|
|
193
|
+
keys?: {
|
|
194
|
+
/** Where the editor's own presses are heard; null hears none there. */
|
|
195
|
+
target: EventTarget | null;
|
|
196
|
+
/** The node the keys act on — the selection — or null. */
|
|
197
|
+
selected: () => {
|
|
198
|
+
zone: string;
|
|
199
|
+
index: number;
|
|
200
|
+
} | null;
|
|
201
|
+
/** What the block clipboard holds now. */
|
|
202
|
+
held: () => ClipboardEntry | null;
|
|
203
|
+
/** Somebody else holds the document, or nobody may write it: copy only. */
|
|
204
|
+
readOnly: boolean;
|
|
205
|
+
/** What a key did, for the editor to say (a copy has nothing to see). */
|
|
206
|
+
onDone?: (done: NodeShortcutDone) => void;
|
|
207
|
+
};
|
|
149
208
|
/**
|
|
150
209
|
* A block that is what its section IS: it may be selected and edited, and
|
|
151
210
|
* never taken away or hidden (the Booking Form's three boxes). The host's
|
|
@@ -235,6 +294,19 @@ type NodeMenuHost = {
|
|
|
235
294
|
* down rather than the chrome looking it up a second time.
|
|
236
295
|
*/
|
|
237
296
|
selectAt: (zone: string, index: number, id: string, parentType: string | null) => void;
|
|
297
|
+
/**
|
|
298
|
+
* The RUNG a slot is drawn as, where it is one (0.105.0): a slot the tree
|
|
299
|
+
* draws as a row of its own with a panel of its own (the campaign designer's
|
|
300
|
+
* Column 2, `ScreenBlockRules.slotsOf`). The Select layer flyout lists it as
|
|
301
|
+
* a level between the node in it and the node it is a slot of, in the row's
|
|
302
|
+
* words, and pressing it is pressing that row. Asked of each zone of the
|
|
303
|
+
* stack under the pointer. Optional: a host without it, or a zone that is no
|
|
304
|
+
* rung, lists nodes alone, as the flyout always did.
|
|
305
|
+
*/
|
|
306
|
+
slotRung?: (zone: string) => {
|
|
307
|
+
label: string;
|
|
308
|
+
select: () => void;
|
|
309
|
+
} | null;
|
|
238
310
|
/** Open the Add door for a parent that can take children. The chrome owns
|
|
239
311
|
* WHERE a new node lands (`placementIndex`); this only asks it to open. */
|
|
240
312
|
openAddInside: (zone: string, index: number) => void;
|
|
@@ -344,6 +416,92 @@ declare function nodeClipboardOf(session: EaselSession): NodeClipboard;
|
|
|
344
416
|
/** The block clipboard of the editor this renders in ({@link nodeClipboardOf}
|
|
345
417
|
* its session). */
|
|
346
418
|
declare function useNodeClipboard(): NodeClipboard;
|
|
419
|
+
/**
|
|
420
|
+
* WHAT COPY AND CUT MAY TAKE of a node, asked once for the menu's rows and
|
|
421
|
+
* for ⌘C / ⌘X (0.105.0), so a key can never take what the menu would not.
|
|
422
|
+
*
|
|
423
|
+
* Copy: everything but pinned chrome — a locked box too, since locking is about
|
|
424
|
+
* what may be taken AWAY — and nothing whose block refuses a duplicate (a copy
|
|
425
|
+
* pasted is the second one). Cut is Copy and Delete in one, so it needs what
|
|
426
|
+
* both need: the node may leave (not pinned, not locked, not refused a second
|
|
427
|
+
* one) and its block allows both.
|
|
428
|
+
*/
|
|
429
|
+
declare function nodeClipboardRules(host: NodeMenuHost, node: NodeLike, zone: string): {
|
|
430
|
+
copy: boolean;
|
|
431
|
+
cut: boolean;
|
|
432
|
+
};
|
|
433
|
+
/**
|
|
434
|
+
* WHERE A HELD BLOCK PASTES, pointed at the node at `target` — the one
|
|
435
|
+
* right-clicked, or the one selected when ⌘V is pressed — or null when it has
|
|
436
|
+
* nowhere to go there (0.105.0).
|
|
437
|
+
*
|
|
438
|
+
* Owner ruling R12/R13 (Victor Mau, 2026-10-09): Copy and Paste work ACROSS
|
|
439
|
+
* lists, in both editors. Until then a block pasted back only into the list it
|
|
440
|
+
* came from ("same zone only"); the campaign designer's own clipboard
|
|
441
|
+
* (admin-portal emailNodeClipboard) already pasted into any list that took the
|
|
442
|
+
* block, and is the reference:
|
|
443
|
+
*
|
|
444
|
+
* - the paste lands just AFTER the node pointed at, in that node's list,
|
|
445
|
+
* where Duplicate puts its copy — when that list takes the block;
|
|
446
|
+
* - else just after the node THAT list sits in, and so on up the stack under
|
|
447
|
+
* the pointer (`ancestorChain`): a section held and a block of another
|
|
448
|
+
* section pointed at lands after that section, in the top-level list,
|
|
449
|
+
* inside the pinned band, as the designer pastes a section;
|
|
450
|
+
* - a block held and a section pointed at has no place (the top-level list
|
|
451
|
+
* takes sections, and a paste never lands INSIDE what was pointed at):
|
|
452
|
+
* null, as the designer answers.
|
|
453
|
+
*
|
|
454
|
+
* Which list takes which block is the host's `canPasteAt` — the chrome's drag
|
|
455
|
+
* rule. A host without it keeps the rule the menu had: only the node's own
|
|
456
|
+
* list, and only when the block came from that kind of list.
|
|
457
|
+
*/
|
|
458
|
+
declare function pastePlace(host: NodeMenuHost, held: ClipboardEntry, target: {
|
|
459
|
+
zone: string;
|
|
460
|
+
index: number;
|
|
461
|
+
}): Place | null;
|
|
462
|
+
/** The three block keys. */
|
|
463
|
+
type NodeShortcut = "copy" | "cut" | "paste";
|
|
464
|
+
/**
|
|
465
|
+
* ⌘C / ⌘X / ⌘V (Ctrl on Windows) — Copy, Cut and Paste of the SELECTED block,
|
|
466
|
+
* the keyboard door to the menu's three rows, which print these keys beside
|
|
467
|
+
* them (0.105.0, `ScreenParts.nodeKeys`). The campaign designer's own test
|
|
468
|
+
* (admin-portal nodeShortcut), moved here with the keys.
|
|
469
|
+
*
|
|
470
|
+
* Which presses are left alone matters more than which are taken, because these
|
|
471
|
+
* are the three most used keys on any page:
|
|
472
|
+
* - anywhere a person TYPES (a settings box, the text on the canvas) — the
|
|
473
|
+
* words are what they mean there (efficient-easel/canvas `isTypingTarget`);
|
|
474
|
+
* - when words are SELECTED on the page — copying them is what they mean;
|
|
475
|
+
* - with ⌥ held — that is Copy style / Paste style (`styleShortcut`);
|
|
476
|
+
* - with ⇧ held, or when something else already handled the press.
|
|
477
|
+
* The physical key is read (`code`), as `styleShortcut` does, so a non-Latin
|
|
478
|
+
* layout still reaches them; a press with no `code` falls back to the
|
|
479
|
+
* character (`key`).
|
|
480
|
+
*/
|
|
481
|
+
declare function nodeShortcut(e: KeyboardEvent): NodeShortcut | null;
|
|
482
|
+
/** What a block key did: copied or cut the node `name`, pasted the held one,
|
|
483
|
+
* or refused to paste it. */
|
|
484
|
+
type NodeShortcutDone = {
|
|
485
|
+
done: "copied" | "cut" | "pasted" | "refused";
|
|
486
|
+
name: string;
|
|
487
|
+
};
|
|
488
|
+
/**
|
|
489
|
+
* Run a block key on the node at `target` (the selection), by the menu's own
|
|
490
|
+
* rules: Copy and Cut as {@link nodeClipboardRules} allow, Paste at
|
|
491
|
+
* {@link pastePlace} — never on pinned chrome, as the menu offers it none — and
|
|
492
|
+
* a paste with nowhere to go refused through `onPasteRefused`, handed what is
|
|
493
|
+
* held. Nothing is cut or pasted while `readOnly`; a copy writes nothing and is
|
|
494
|
+
* allowed. `held` is read live by the caller (the clipboard may have changed
|
|
495
|
+
* since the host was built). Null: the press is not the screen's, and the
|
|
496
|
+
* browser keeps it.
|
|
497
|
+
*/
|
|
498
|
+
declare function runNodeShortcut(host: NodeMenuHost, which: NodeShortcut, target: {
|
|
499
|
+
zone: string;
|
|
500
|
+
index: number;
|
|
501
|
+
}, options: {
|
|
502
|
+
readOnly: boolean;
|
|
503
|
+
held: ClipboardEntry | null;
|
|
504
|
+
}): NodeShortcutDone | null;
|
|
347
505
|
/**
|
|
348
506
|
* Build the rows for one node.
|
|
349
507
|
*
|
|
@@ -406,4 +564,4 @@ declare function useNodeContextMenu(host: NodeMenuHost, canvas: CanvasTarget | n
|
|
|
406
564
|
closeMenu: () => void;
|
|
407
565
|
};
|
|
408
566
|
|
|
409
|
-
export { type ChainRung, EASEL_NODE_CLIPBOARD, type NodeMenuHost, type NodeMenuTarget, ancestorChain, nodeClipboardOf, nodeMenuItems, pageMenuItems, textMenuItems, useNodeClipboard, useNodeContextMenu };
|
|
567
|
+
export { type ChainRung, EASEL_NODE_CLIPBOARD, type NodeMenuHost, type NodeMenuTarget, type NodeShortcut, type NodeShortcutDone, ancestorChain, nodeClipboardOf, nodeClipboardRules, nodeMenuItems, nodeShortcut, pageMenuItems, pastePlace, runNodeShortcut, textMenuItems, useNodeClipboard, useNodeContextMenu };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{EASEL_NODE_CLIPBOARD,ancestorChain,nodeClipboardOf,nodeMenuItems,pageMenuItems,textMenuItems,useNodeClipboard,useNodeContextMenu}from"../../chunk-
|
|
1
|
+
export{EASEL_NODE_CLIPBOARD,ancestorChain,nodeClipboardOf,nodeClipboardRules,nodeMenuItems,nodeShortcut,pageMenuItems,pastePlace,runNodeShortcut,textMenuItems,useNodeClipboard,useNodeContextMenu}from"../../chunk-7FBDZTUD.js";import"../../chunk-57DJOKXT.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-RW4XBUUW.js";import"../../chunk-KTVH2ZRL.js";import"../../chunk-2LK54I4E.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-L5KW4HG5.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-V4LF7D4F.js";import"../../chunk-7V5WZ46F.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-3P6AMTOS.js";import"../../chunk-3WSPDAK2.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-PQXIFBDY.js";import"../../chunk-BDTITTMW.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-YC4TB3CJ.js";import"../../chunk-ZJEBF4NB.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-WZ7TGAAT.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-L5KW4HG5.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenChrome as default}from"../../chunk-
|
|
1
|
+
export{ScreenChrome as default}from"../../chunk-4XQUWGIV.js";import"../../chunk-26OOWIJJ.js";import"../../chunk-SQTY6CJD.js";import"../../chunk-FGNR22NY.js";import"../../chunk-ZE7I3PLX.js";import"../../chunk-IE4GFYKO.js";import"../../chunk-PWZOS45R.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-VSOP4GUM.js";import"../../chunk-KCBEE2MC.js";import"../../chunk-5MZ3RNQQ.js";import"../../chunk-ZTTWFAAC.js";import"../../chunk-YN4KND5F.js";import"../../chunk-TLZG2FCF.js";import"../../chunk-IYT6NN2J.js";import"../../chunk-7FBDZTUD.js";import"../../chunk-V4LF7D4F.js";import"../../chunk-BSPCSC45.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import"../../chunk-7V5WZ46F.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-3P6AMTOS.js";import"../../chunk-3WSPDAK2.js";import"../../chunk-57DJOKXT.js";import"../../chunk-3QVB4AG2.js";import"../../chunk-N7VRF7PR.js";import"../../chunk-5ZBY24K7.js";import"../../chunk-PA3PNTVV.js";import"../../chunk-BVN33R76.js";import"../../chunk-5ZBBXZPV.js";import"../../chunk-KQMML6JM.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-HQ4VVRIC.js";import"../../chunk-NYKIQJT2.js";import"../../chunk-VSHV6KJQ.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-PQXIFBDY.js";import"../../chunk-P67FP7PG.js";import"../../chunk-AELNNAFM.js";import"../../chunk-BXZ6WLHC.js";import"../../chunk-EOJNJCMJ.js";import"../../chunk-ZFDCDJNZ.js";import"../../chunk-ZNS7727Y.js";import"../../chunk-3EDSDPIP.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-RW4XBUUW.js";import"../../chunk-KTVH2ZRL.js";import"../../chunk-2LK54I4E.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-OWBO4WKA.js";import"../../chunk-BDTITTMW.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-YC4TB3CJ.js";import"../../chunk-ZJEBF4NB.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-WZ7TGAAT.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-EWVJSRRY.js";import"../../chunk-P6O363EE.js";import"../../chunk-FPOKPNO4.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-TTJ54QGG.js";import"../../chunk-O2NLQBFX.js";import"../../chunk-67GNT6PF.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-L5KW4HG5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '../../blocks/index.js';
|
|
3
|
-
export {
|
|
3
|
+
export { k as AnyScreenTarget, l as DocumentTarget, m as ScreenDocumentContext, n as ScreenDocumentProvider, o as ScreenDocumentValue, p as ScreenTarget, q as useScreenDocument } from '../../host-BQ_b9Qzk.js';
|
|
4
4
|
import '../lib/document-contract.js';
|
|
5
5
|
export { SaveStatus } from '../lib/document-switch.js';
|
|
6
6
|
import '../lib/admin-bridge.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenDocumentContext,ScreenDocumentProvider,useScreenDocument}from"../../chunk-
|
|
1
|
+
export{ScreenDocumentContext,ScreenDocumentProvider,useScreenDocument}from"../../chunk-7V5WZ46F.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-3P6AMTOS.js";import"../../chunk-3WSPDAK2.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-PQXIFBDY.js";import"../../chunk-BDTITTMW.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-MFIRYGHW.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { k as AnyScreenTarget, A as AnyDocumentAddressing } from '../../host-BQ_b9Qzk.js';
|
|
4
4
|
import { ScreenParts } from '../lib/screen-parts.js';
|
|
5
5
|
import '../../blocks/index.js';
|
|
6
6
|
import '../../types-E3HrTPg2.js';
|
|
@@ -21,14 +21,22 @@ import '../lib/puck/content-tree.js';
|
|
|
21
21
|
import '../lib/document-switch.js';
|
|
22
22
|
import '../../engine-DBxp_v6B.js';
|
|
23
23
|
import '../lib/admin-bridge.js';
|
|
24
|
+
import '../../watch-BTYOJpQU.js';
|
|
24
25
|
import '../../types-CqY85foL.js';
|
|
25
26
|
import '../../types-DWS-s9z-.js';
|
|
26
27
|
import '../../wordFit-D4S36PvB.js';
|
|
27
28
|
import '../../panelWidths-D9hTLR25.js';
|
|
29
|
+
import '../../CanvasDragLayer-zgYT1xwY.js';
|
|
30
|
+
import '../../session-DSQFmIvx.js';
|
|
31
|
+
import '../../words-BDignMl_.js';
|
|
32
|
+
import '../../types-Djdq6Xkd.js';
|
|
33
|
+
import '../../style-clipboard/index.js';
|
|
34
|
+
import '../../words-CnnHb9jo.js';
|
|
28
35
|
import '../../types-DJDBtdB2.js';
|
|
29
36
|
import '../../words-DgHcY5qB.js';
|
|
30
|
-
import '
|
|
37
|
+
import './AddSidePanel.js';
|
|
31
38
|
import '../lib/puck/block-choice.js';
|
|
39
|
+
import '../lib/puck/add-target-types.js';
|
|
32
40
|
import '../lib/puck/slot-section-spec.js';
|
|
33
41
|
|
|
34
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DocumentScreen,ScreenMount as default}from"../../chunk-
|
|
1
|
+
export{DocumentScreen,ScreenMount as default}from"../../chunk-RQHC4TD6.js";import"../../chunk-GXQCZJOP.js";import"../../chunk-SARZN4M7.js";import"../../chunk-4XQUWGIV.js";import"../../chunk-26OOWIJJ.js";import"../../chunk-SQTY6CJD.js";import"../../chunk-FGNR22NY.js";import"../../chunk-ZE7I3PLX.js";import"../../chunk-IE4GFYKO.js";import"../../chunk-PWZOS45R.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-VSOP4GUM.js";import"../../chunk-KCBEE2MC.js";import"../../chunk-5MZ3RNQQ.js";import"../../chunk-ZTTWFAAC.js";import"../../chunk-YN4KND5F.js";import"../../chunk-TLZG2FCF.js";import"../../chunk-IYT6NN2J.js";import"../../chunk-7FBDZTUD.js";import"../../chunk-V4LF7D4F.js";import"../../chunk-BSPCSC45.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import"../../chunk-7V5WZ46F.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-3P6AMTOS.js";import"../../chunk-3WSPDAK2.js";import"../../chunk-57DJOKXT.js";import"../../chunk-3QVB4AG2.js";import"../../chunk-N7VRF7PR.js";import"../../chunk-5ZBY24K7.js";import"../../chunk-PA3PNTVV.js";import"../../chunk-BVN33R76.js";import"../../chunk-5ZBBXZPV.js";import"../../chunk-KQMML6JM.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-HQ4VVRIC.js";import"../../chunk-NYKIQJT2.js";import"../../chunk-VSHV6KJQ.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-6WY6ZXJG.js";import"../../chunk-PQXIFBDY.js";import"../../chunk-P67FP7PG.js";import"../../chunk-AELNNAFM.js";import"../../chunk-BXZ6WLHC.js";import"../../chunk-EOJNJCMJ.js";import"../../chunk-ZFDCDJNZ.js";import"../../chunk-ZNS7727Y.js";import"../../chunk-3EDSDPIP.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-RW4XBUUW.js";import"../../chunk-KTVH2ZRL.js";import"../../chunk-2LK54I4E.js";import"../../chunk-WK3AFPXY.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-OWBO4WKA.js";import"../../chunk-BDTITTMW.js";import"../../chunk-H6DDIBQ4.js";import"../../chunk-YC4TB3CJ.js";import"../../chunk-ZJEBF4NB.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-WZ7TGAAT.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-EWVJSRRY.js";import"../../chunk-P6O363EE.js";import"../../chunk-FPOKPNO4.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-TTJ54QGG.js";import"../../chunk-O2NLQBFX.js";import"../../chunk-67GNT6PF.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-L5KW4HG5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -7,24 +7,36 @@ import '../../data/index.js';
|
|
|
7
7
|
import '../../types-41704JE4.js';
|
|
8
8
|
import '../../resolve-D68pb3Bx.js';
|
|
9
9
|
import '../../plan-DChbUXdS.js';
|
|
10
|
+
import '../../watch-BTYOJpQU.js';
|
|
10
11
|
import '../../types-CqY85foL.js';
|
|
11
12
|
import '../../types-DWS-s9z-.js';
|
|
12
13
|
import '../../wordFit-D4S36PvB.js';
|
|
13
14
|
import '../../edit-lock/index.js';
|
|
14
15
|
import '../../panelWidths-D9hTLR25.js';
|
|
16
|
+
import '../../CanvasDragLayer-zgYT1xwY.js';
|
|
17
|
+
import '../../session-DSQFmIvx.js';
|
|
18
|
+
import '../../words-BDignMl_.js';
|
|
19
|
+
import '../../types-Djdq6Xkd.js';
|
|
20
|
+
import '../../style-clipboard/index.js';
|
|
21
|
+
import '../../words-CnnHb9jo.js';
|
|
15
22
|
import '../../types-DJDBtdB2.js';
|
|
16
23
|
import '../../words-DgHcY5qB.js';
|
|
24
|
+
import './AddSidePanel.js';
|
|
25
|
+
import '../lib/section-template-types.js';
|
|
26
|
+
import '../lib/puck/content-tree.js';
|
|
27
|
+
import '../lib/puck/block-choice.js';
|
|
28
|
+
import '../../host-BQ_b9Qzk.js';
|
|
29
|
+
import '../lib/document-contract.js';
|
|
30
|
+
import '../lib/session.js';
|
|
31
|
+
import '../lib/backend-error.js';
|
|
17
32
|
import '../lib/host-chrome.js';
|
|
18
33
|
import '../lib/links/link-filters.js';
|
|
19
34
|
import '../../LinkPicker-W2Rtxetz.js';
|
|
20
|
-
import '../lib/session.js';
|
|
21
|
-
import '../lib/backend-error.js';
|
|
22
|
-
import '../lib/document-contract.js';
|
|
23
35
|
import '../lib/document-hooks.js';
|
|
24
|
-
import '../lib/
|
|
25
|
-
import '
|
|
36
|
+
import '../lib/document-switch.js';
|
|
37
|
+
import '../../engine-DBxp_v6B.js';
|
|
38
|
+
import '../lib/admin-bridge.js';
|
|
26
39
|
import '../lib/puck/add-target-types.js';
|
|
27
|
-
import '../lib/puck/block-choice.js';
|
|
28
40
|
import '../lib/puck/slot-section-spec.js';
|
|
29
41
|
|
|
30
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ScreenStoreProvider as default}from"../../chunk-
|
|
1
|
+
export{ScreenStoreProvider as default}from"../../chunk-SARZN4M7.js";import"../../chunk-VSHV6KJQ.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-P67FP7PG.js";import"../../chunk-AELNNAFM.js";import"../../chunk-BXZ6WLHC.js";import"../../chunk-EOJNJCMJ.js";import"../../chunk-ZFDCDJNZ.js";import"../../chunk-ZNS7727Y.js";import"../../chunk-3EDSDPIP.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-KTVH2ZRL.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-EWVJSRRY.js";import"../../chunk-P6O363EE.js";import"../../chunk-FPOKPNO4.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-67GNT6PF.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-L5KW4HG5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{AddBlockRow as e}from"../../chunk-
|
|
2
|
-
return
|
|
3
|
-
return G
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
return
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
return G
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
1
|
+
import{AddBlockRow as e}from"../../chunk-QH6LCNOX.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-VSOP4GUM.js";import{SlotChildActionsProvider as s}from"../../chunk-KCBEE2MC.js";import{DEFAULT_PANEL_W as i}from"../../chunk-ZTTWFAAC.js";import{usePartBridge as c}from"../../chunk-YN4KND5F.js";import{useSectionOps as p}from"../../chunk-TLZG2FCF.js";import"../../chunk-IYT6NN2J.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import{useScreenDocument as l}from"../../chunk-7V5WZ46F.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-3P6AMTOS.js";import"../../chunk-3WSPDAK2.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-HQ4VVRIC.js";import{MediaSidePanel as d}from"../../chunk-NYKIQJT2.js";import{SELECTION_MODE as m,useScreenPinned as a,useScreenCanvasFrame as u,useScreenInspectorPanel as h,useScreenPickFollowsSelection as k,sameInspectorMode as j,useStandaloneScreenBridges as f,useScreenBlockLook as N,useScreenBlockRules as S}from"../../chunk-VSHV6KJQ.js";import{nestsInTree as y,slotFieldsOf as C}from"../../chunk-PLVEGYK6.js";import{useMediaPanel as A,usePanelPick as P,useCancelPanelPick as T}from"../../chunk-R6WTQWAC.js";import{useHostEscape as x}from"../../chunk-U3JP4VGF.js";import"../../chunk-PQXIFBDY.js";import{useEasel as O}from"../../chunk-P67FP7PG.js";import"../../chunk-AELNNAFM.js";import"../../chunk-BXZ6WLHC.js";import"../../chunk-EOJNJCMJ.js";import{LayersTree as R,Subtree as g,TreeRow as v,TreeRowAction as E,TreeSeam as B}from"../../chunk-ZFDCDJNZ.js";import"../../chunk-ZNS7727Y.js";import"../../chunk-3EDSDPIP.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-KTVH2ZRL.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-BDTITTMW.js";import{saveIndicator as L}from"../../chunk-H6DDIBQ4.js";import{SaveState as z,panelWidthVars as D}from"../../chunk-YC4TB3CJ.js";import"../../chunk-ZJEBF4NB.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-WZ7TGAAT.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-EWVJSRRY.js";import"../../chunk-P6O363EE.js";import"../../chunk-FPOKPNO4.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-TTJ54QGG.js";import"../../chunk-O2NLQBFX.js";import{useTreeDrag as F}from"../../chunk-67GNT6PF.js";import"../../chunk-PAELDYYS.js";import"../../chunk-ZNCEOSXO.js";import{TrashIcon as J}from"../../chunk-L5KW4HG5.js";import{zoneKey as W,parseZoneKey as Z}from"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";import{useState as b,useRef as K,useEffect as Y,useCallback as w,Fragment as G}from"react";import{jsxs as H,jsx as M,Fragment as V}from"react/jsx-runtime";var Q=e=>n=>{n.target.closest(".es-tree-select, button")||e()},$={rowClick:Q};function I(){const{saveState:I,readOnly:X,readOnlyReason:U=null}=l(),q=p(),{appState:_,selectedItem:ee,config:ne}=O(e=>e),[oe,re]=b(m),[te,se]=b(null),{first:ie,last:ce,panelOf:pe}=a(),le=pe(ie),de=u(),me=h(),ae=_.data.content?.[0]??null,ue=ae?.props.id??null,he=ae?.type===ie,ke=ae?.type===ce,je=K(null),fe=K(null);t(fe);const Ne=A(),Se=P(),ye=T();k(ee?.props.id),Y(()=>{const e=fe.current;if(!Se||!e)return;const n=e=>{"Escape"===e.key&&ye()};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[Se]),x(null!==Se,()=>ye()),Y(()=>{ue&&je.current!==ue&&(je.current=ue,he?re(le??m):ee||q.select({index:0}))},[ue,ee,q,he]);const Ce=w(e=>re(n=>j(n,e)?n:e),[]),Ae=f({kind:oe.kind,mode:oe,open:Ce,show:e=>re(e),reveal:()=>{},select:(e,n)=>{re(e=>j(e,n)?e:n),q.select(e)}}),{selectNode:Pe}=c({mode:oe,setMode:re,onOpenPart:o}),Te=N(),{labelAtLevel:xe,Icon:Oe}=Te,{canAddTo:Re}=S(),ge=e=>ne.components[e]?.label??e,ve=e=>xe(e,"section",ge(e)),Ee=!he&&"puck"===oe.kind&&ee?.props.id===ue,Be=ae?Re(ae.type)?.spec??null:null,Le=ae&&Be?`${ae.props.id}:${Be.slot}`:null,ze=ae&&Be&&Array.isArray(ae.props[Be.slot])?ae.props[Be.slot]:[],De=e=>n(e,ge,Te.plainText),Fe=(e,n)=>{ae&&Be&&Le&&(re(m),Be.slider?(r(String(ae.props.id),e),q.select({index:e,zone:Le}),o(String(ae.props.id))):(q.select({index:e,zone:Le}),o(n)))},Je=()=>{if(!ae||!Be||!Le)return;const e=ze.length;q.insertComponent(Le,Be.childType,e),re(m),Be.slider?requestAnimationFrame(()=>{r(String(ae.props.id),e),q.select({index:e,zone:Le})}):q.select({index:e,zone:Le})},We=e=>C(ne,e),Ze=e=>{const{parentId:n,slot:o}=Z(e),r=e=>{if(!e)return null;if(String(e.props.id)===n)return e;for(const n of We(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(ae)?.props[o];return Array.isArray(t)?t.length:0},be=(e,n,o)=>{const r=Math.min(Math.max(o,0),Ze(e)),t=n<r?r-1:r;t!==n&&(q.reorderComponent(e,n,t),re(m),q.select({index:t,zone:e}))},Ke=F({keyOf:e=>e.id,readOnly:Boolean(X),canDrop:(e,n)=>W(n)===e.zone&&n.index>=0&&n.index<=Ze(e.zone),onDrop:(e,n)=>be(e.zone,e.index,n.index),onStep:(e,n)=>be(e.zone,e.index,n<0?e.index-1:e.index+2)}),Ye=(e,n)=>/* @__PURE__ */M(B,{...X?{}:Ke.seam({place:{...Z(e),index:n}})},`seam:${e}:${n}`),we=e=>Te.blockRowName(e,ge),Ge=(e,n,r)=>{re(m),q.select({index:n,zone:e}),o(r)},He=(e,n,o)=>{q.insertComponent(e,n,o),re(m),q.select({index:o,zone:e}),se(null)},Me=(n,o,r)=>/* @__PURE__ */M(e,{choices:r,open:te===n,onToggle:()=>se(te===n?null:n),onPick:e=>He(n,e,o)}),Ve=(e,n)=>{const o=We((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=Re(e.type),s=t?.choices??null,i="footer"===t?.source?we:De;/* @__PURE__ */
|
|
2
|
+
return H(V,{children:[o.map(({child:e,zone:o,index:r})=>{const t=ee?.props.id===e.props.id,s=y(ne,e.type,n),c=i(e),p=String(e.props.id),l=()=>Ge(o,r,p),{rowProps:d,...a}=Ke.row({item:{id:p,zone:o,index:r},place:{...Z(o),index:r}},{onClick:Q(l)});/* @__PURE__ */
|
|
3
|
+
return H(G,{children:[0===r&&Ye(o,0),
|
|
4
|
+
/* @__PURE__ */M(v,{icon:/* @__PURE__ */M(Oe,{type:e.type,size:13}),name:c,selected:t,onSelect:l,...a,actions:/* @__PURE__ */M(E,{kind:"delete",label:`Delete ${c}`,onClick:()=>{return e=o,n=r,q.removeComponent(e,n),re(m),void q.select(null);var e,n},children:/* @__PURE__ */M(J,{size:13})}),rowProps:d}),s&&/* @__PURE__ */M(g,{children:Ve(e,n+1)}),Ye(o,r+1)]},String(e.props.id??`${o}-${r}`))}),t&&s?Me(`${e.props.id}:${t.slot}`,o.length,s):null]})},Qe="HeroSingle"===ae?.type,$e=Boolean(ae)&&(Boolean(Be)||ke||he||Qe);/* @__PURE__ */
|
|
5
|
+
return H("div",{ref:fe,className:"sf-editor es-editor",style:D(i),children:[
|
|
6
|
+
/* @__PURE__ */M("div",{className:"sf-section-bar",children:/* @__PURE__ */M(z,null!==U?{tone:"off",label:U,role:"status"}:{...L(I),role:"status"})}),
|
|
7
|
+
/* @__PURE__ */H("div",{className:"sf-body",children:[Se&&Ne?/* @__PURE__ */M("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:/* @__PURE__ */M(d,{panel:Ne,pick:Se})}):$e&&ae&&/* @__PURE__ */H("aside",{className:"es-sidepanel es-sidepanel--left sf-panel sf-panel--left",children:[
|
|
8
|
+
/* @__PURE__ */M("div",{className:"sf-panel-head",children:/* @__PURE__ */M("button",{type:"button",className:"sf-panel-title sf-panel-title--btn "+(Ee?"is-selected":""),"aria-pressed":Ee,title:he?"Header settings":`${ve(ae.type)} settings`,onClick:()=>{he?re(le??m):(re(m),q.select({index:0}))},children:ve(ae.type)})}),
|
|
9
|
+
/* @__PURE__ */M(R,{className:"sf-tree sf-scroll",rootProps:Ke.rootProps(),children:/* @__PURE__ */M(g,{children:he?
|
|
10
|
+
/* @__PURE__ */M(v,{icon:/* @__PURE__ */M(Oe,{type:"header",size:13}),name:"Header settings",selected:oe.kind===le?.kind,onSelect:()=>re(le??m),rowProps:{onClick:Q(()=>re(le??m))}}):Be?/* @__PURE__ */H(V,{children:[ze.map((e,n)=>{const o=ee?.props.id===e.props.id,r=De(e),t=String(e.props.id),s=()=>Fe(n,t),{rowProps:i,...c}=Ke.row({item:{id:t,zone:Le,index:n},place:{...Z(Le),index:n}},{onClick:Q(s)});/* @__PURE__ */
|
|
11
|
+
return H(G,{children:[0===n&&Ye(Le,0),
|
|
12
|
+
/* @__PURE__ */M(v,{icon:/* @__PURE__ */M(Oe,{type:e.type,size:13}),name:r,selected:o,onSelect:s,...c,actions:/* @__PURE__ */M(E,{kind:"delete",label:`Delete ${r}`,onClick:()=>{return e=n,void(Le&&(q.removeComponent(Le,e),re(m),q.select(null)));var e},children:/* @__PURE__ */M(J,{size:13})}),rowProps:i}),Ye(Le,n+1)]},String(e.props.id??n))}),
|
|
13
|
+
/* @__PURE__ */H("button",{type:"button",className:"sf-add-card",onClick:Je,children:[
|
|
14
|
+
/* @__PURE__ */M("span",{className:"sf-plus sf-plus--sm",children:"+"}),Be.addLabel]}),ue?Ae.partRows?.(ae,$):null]}):Ve(ae,1)})})]}),
|
|
15
|
+
/* @__PURE__ */M("div",{className:"sf-center",children:/* @__PURE__ */M("div",{className:"sf-preview-host",children:/* @__PURE__ */M(de,{})})}),
|
|
16
|
+
/* @__PURE__ */M(s,{value:{selectChild:(e,n,o,r)=>"section"===Re(r)?.source?Fe(n,o):Ge(e,n,o),addChild:(e,n,o,r,t)=>"section"===Re(t)?.source?Je():He(`${e}:${n}`,o,r),childRowName:De,blockRowName:we},children:/* @__PURE__ */M(me,{mode:oe,onOpenWebsiteSettings:Ae.openSettings??(()=>{}),onSelectNode:Pe,hideNodeActions:!0})})]})]})}export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PanelHideButton,PanelModeExit,PanelShowStrip,SidePanelHead as default}from"../../chunk-
|
|
1
|
+
export{PanelHideButton,PanelModeExit,PanelShowStrip,SidePanelHead as default}from"../../chunk-5ZBBXZPV.js";import"../../chunk-KQMML6JM.js";import"../../chunk-YC4TB3CJ.js";import"../../chunk-ZJEBF4NB.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-WZ7TGAAT.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-L5KW4HG5.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DEFAULT_PANEL_W,PANEL_WIDTHS_KEY,clampPanelWidth}from"../../chunk-
|
|
1
|
+
export{DEFAULT_PANEL_W,PANEL_WIDTHS_KEY,clampPanelWidth}from"../../chunk-ZTTWFAAC.js";export{MAX_PANEL_W,MIN_PANEL_W,panelWidthVars}from"../../chunk-YC4TB3CJ.js";import"../../chunk-ZJEBF4NB.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";import"../../chunk-WZ7TGAAT.js";import"../../chunk-2OAZYSWJ.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-L5KW4HG5.js";
|
|
@@ -6,24 +6,36 @@ import '../../data/index.js';
|
|
|
6
6
|
import '../../types-41704JE4.js';
|
|
7
7
|
import '../../resolve-D68pb3Bx.js';
|
|
8
8
|
import '../../plan-DChbUXdS.js';
|
|
9
|
+
import '../../watch-BTYOJpQU.js';
|
|
9
10
|
import '../../types-CqY85foL.js';
|
|
10
11
|
import '../../types-DWS-s9z-.js';
|
|
11
12
|
import '../../wordFit-D4S36PvB.js';
|
|
12
13
|
import '../../edit-lock/index.js';
|
|
13
14
|
import '../../panelWidths-D9hTLR25.js';
|
|
15
|
+
import '../../CanvasDragLayer-zgYT1xwY.js';
|
|
16
|
+
import '../../session-DSQFmIvx.js';
|
|
17
|
+
import '../../words-BDignMl_.js';
|
|
18
|
+
import '../../types-Djdq6Xkd.js';
|
|
19
|
+
import '../../style-clipboard/index.js';
|
|
20
|
+
import '../../words-CnnHb9jo.js';
|
|
14
21
|
import '../../types-DJDBtdB2.js';
|
|
15
22
|
import '../../words-DgHcY5qB.js';
|
|
23
|
+
import './AddSidePanel.js';
|
|
24
|
+
import '../lib/section-template-types.js';
|
|
25
|
+
import '../lib/puck/content-tree.js';
|
|
26
|
+
import '../lib/puck/block-choice.js';
|
|
27
|
+
import '../../host-BQ_b9Qzk.js';
|
|
28
|
+
import '../lib/document-contract.js';
|
|
29
|
+
import '../lib/session.js';
|
|
30
|
+
import '../lib/backend-error.js';
|
|
16
31
|
import '../lib/host-chrome.js';
|
|
17
32
|
import '../lib/links/link-filters.js';
|
|
18
33
|
import '../../LinkPicker-W2Rtxetz.js';
|
|
19
|
-
import '../lib/session.js';
|
|
20
|
-
import '../lib/backend-error.js';
|
|
21
|
-
import '../lib/document-contract.js';
|
|
22
34
|
import '../lib/document-hooks.js';
|
|
23
|
-
import '../lib/
|
|
24
|
-
import '
|
|
35
|
+
import '../lib/document-switch.js';
|
|
36
|
+
import '../../engine-DBxp_v6B.js';
|
|
37
|
+
import '../lib/admin-bridge.js';
|
|
25
38
|
import '../lib/puck/add-target-types.js';
|
|
26
|
-
import '../lib/puck/block-choice.js';
|
|
27
39
|
import '../lib/puck/slot-section-spec.js';
|
|
28
40
|
|
|
29
41
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{usePartBridge}from"../../chunk-
|
|
1
|
+
export{usePartBridge}from"../../chunk-YN4KND5F.js";import"../../chunk-TLZG2FCF.js";import"../../chunk-IYT6NN2J.js";import"../../chunk-I54UCYOU.js";import"../../chunk-GOTN2KY4.js";import"../../chunk-R5L2E7JX.js";import"../../chunk-VSHV6KJQ.js";import"../../chunk-PLVEGYK6.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-P67FP7PG.js";import"../../chunk-AELNNAFM.js";import"../../chunk-BXZ6WLHC.js";import"../../chunk-EOJNJCMJ.js";import"../../chunk-ZFDCDJNZ.js";import"../../chunk-ZNS7727Y.js";import"../../chunk-3EDSDPIP.js";import"../../chunk-QTLAVDJE.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-KTVH2ZRL.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-EWVJSRRY.js";import"../../chunk-P6O363EE.js";import"../../chunk-FPOKPNO4.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-BZ5ASXOL.js";import"../../chunk-67GNT6PF.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-L5KW4HG5.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
package/dist/screen/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { DocumentScreen, default as ScreenMount } from './components/ScreenMount.js';
|
|
2
2
|
export { default as ScreenStoreProvider } from './components/ScreenStoreProvider.js';
|
|
3
|
-
export { NodeDefaults, SELECTION_MODE, ScreenBlockLook, ScreenBlockRules, ScreenBridges, ScreenCanvas, ScreenDevices, ScreenDocumentOps, ScreenInspector, ScreenInspectorMode, ScreenInspectorPanelProps, ScreenLeftPanel, ScreenLeftView, ScreenLeftViewFrame, ScreenLeftViewRules, ScreenNewNode, ScreenNode, ScreenNodeActions, ScreenNodeLevel, ScreenNodeMaker, ScreenPartMode, ScreenParts, ScreenPartsProvider, ScreenPinnedBand, ScreenPinnedNodes, ScreenRailItem, ScreenTree, ScreenTreeFolds, ScreenTreeRows, isPinnedFirst, isPinnedLast, sameInspectorMode, useScreenBlockLook, useScreenBlockRules, useScreenBridges, useScreenCanvasFrame, useScreenDevices, useScreenDocumentLabel, useScreenDocumentPass, useScreenInspectorPanel, useScreenLeftView, useScreenOwnerName, useScreenParts, useScreenPickFollowsSelection, useScreenPinned, useScreenSaveSwitch, useStandaloneScreenBridges } from './lib/screen-parts.js';
|
|
3
|
+
export { NodeDefaults, SELECTION_MODE, ScreenAdd, ScreenBlockLook, ScreenBlockRules, ScreenBridges, ScreenCanvas, ScreenCanvasDrag, ScreenCanvasDragContext, ScreenCanvasHeadProps, ScreenCanvasTargetProvider, ScreenDevices, ScreenDocumentOps, ScreenDragItem, ScreenInspector, ScreenInspectorMode, ScreenInspectorPanelProps, ScreenLeftPanel, ScreenLeftView, ScreenLeftViewFrame, ScreenLeftViewRules, ScreenMenuRows, ScreenNewNode, ScreenNode, ScreenNodeActions, ScreenNodeLevel, ScreenNodeMaker, ScreenPartMode, ScreenParts, ScreenPartsProvider, ScreenPinnedBand, ScreenPinnedNodes, ScreenRailItem, ScreenSelection, ScreenSelector, ScreenSlot, ScreenSlotAction, ScreenSlotMode, ScreenStyleClipboard, ScreenStyleDocument, ScreenStylePastePlan, ScreenTree, ScreenTreeFolds, ScreenTreeRows, isPinnedFirst, isPinnedLast, isSlotMode, sameInspectorMode, screenSlotsOf, useScreenAdd, useScreenBlockLook, useScreenBlockRules, useScreenBridges, useScreenCanvasDrag, useScreenCanvasFrame, useScreenCanvasHead, useScreenCanvasTarget, useScreenDevices, useScreenDocumentLabel, useScreenDocumentPass, useScreenInspectorPanel, useScreenLeftView, useScreenNodeKeys, useScreenNotify, useScreenOwnerName, useScreenParts, useScreenPickFollowsSelection, useScreenPinned, useScreenSaveSwitch, useScreenStyleClipboard, useStandaloneScreenBridges } from './lib/screen-parts.js';
|
|
4
4
|
export { DefaultBackend, EFFICIENT_BACKEND, EaselSession, SessionBackend, SessionBlocks, activateEaselSession, backendOf, createEaselSession, currentEaselSession, deactivateEaselSession, efficientClientOpen, isEfficientBackend, provideDefaultBackend, resetAmbientEaselSession, sessionRegistry, setSessionBridgedSite, setSessionDocumentSite } from './lib/session.js';
|
|
5
5
|
export { EaselSessionProvider, useEaselSession } from './lib/session-context.js';
|
|
6
|
-
export { A as AnyDocumentAddressing, D as DETACHED_EASEL_HOST, a as DocumentAddressing, E as EaselHost, b as EaselHostAddress, c as EaselHostContext, d as EaselHostProvider, e as EaselMessageType, f as EaselToHostMessage, H as HostPickedMedia, g as HostToEaselMessage, I as InboundHostMessage, N as NO_DOCUMENT_ADDRESSING, S as SectionScreenTarget, h as SendToHost, i as createEaselHost, u as useEaselHost } from '../host-
|
|
6
|
+
export { A as AnyDocumentAddressing, D as DETACHED_EASEL_HOST, a as DocumentAddressing, E as EaselHost, b as EaselHostAddress, c as EaselHostContext, d as EaselHostProvider, e as EaselMessageType, f as EaselToHostMessage, H as HostPickedMedia, g as HostToEaselMessage, I as InboundHostMessage, N as NO_DOCUMENT_ADDRESSING, S as SectionScreenTarget, h as SendToHost, i as createEaselHost, u as useEaselHost, j as useHostEscape } from '../host-BQ_b9Qzk.js';
|
|
7
7
|
export { EaselCapabilities, EaselDocument, EaselDocumentAdapter, EaselPageRow, SiteRecord, SiteRecordPatch, WebsiteEditLock } from './lib/document-contract.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import '../blocks/index.js';
|
|
@@ -12,23 +12,31 @@ import '../data/index.js';
|
|
|
12
12
|
import '../types-41704JE4.js';
|
|
13
13
|
import '../resolve-D68pb3Bx.js';
|
|
14
14
|
import '../plan-DChbUXdS.js';
|
|
15
|
+
import '../watch-BTYOJpQU.js';
|
|
15
16
|
import '../types-CqY85foL.js';
|
|
16
17
|
import '../types-DWS-s9z-.js';
|
|
17
18
|
import '../wordFit-D4S36PvB.js';
|
|
18
19
|
import '../edit-lock/index.js';
|
|
19
20
|
import '../panelWidths-D9hTLR25.js';
|
|
21
|
+
import '../CanvasDragLayer-zgYT1xwY.js';
|
|
22
|
+
import '../session-DSQFmIvx.js';
|
|
23
|
+
import '../words-BDignMl_.js';
|
|
24
|
+
import '../types-Djdq6Xkd.js';
|
|
25
|
+
import '../style-clipboard/index.js';
|
|
26
|
+
import '../words-CnnHb9jo.js';
|
|
20
27
|
import '../types-DJDBtdB2.js';
|
|
21
28
|
import '../words-DgHcY5qB.js';
|
|
29
|
+
import './components/AddSidePanel.js';
|
|
30
|
+
import './lib/section-template-types.js';
|
|
31
|
+
import './lib/puck/content-tree.js';
|
|
32
|
+
import './lib/puck/block-choice.js';
|
|
22
33
|
import './lib/host-chrome.js';
|
|
23
34
|
import './lib/links/link-filters.js';
|
|
24
35
|
import '../LinkPicker-W2Rtxetz.js';
|
|
25
36
|
import './lib/puck/add-target-types.js';
|
|
26
|
-
import './lib/puck/block-choice.js';
|
|
27
37
|
import './lib/puck/slot-section-spec.js';
|
|
28
38
|
import './lib/backend-error.js';
|
|
29
39
|
import './lib/document-hooks.js';
|
|
30
|
-
import './lib/section-template-types.js';
|
|
31
|
-
import './lib/puck/content-tree.js';
|
|
32
40
|
import './lib/document-switch.js';
|
|
33
41
|
import '../engine-DBxp_v6B.js';
|
|
34
42
|
import './lib/admin-bridge.js';
|