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
package/dist/screen/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-GZO72N3Q.js";export{DocumentScreen,ScreenMount}from"../chunk-
|
|
1
|
+
import"../chunk-GZO72N3Q.js";export{DocumentScreen,ScreenMount}from"../chunk-RQHC4TD6.js";import"../chunk-GXQCZJOP.js";export{ScreenStoreProvider}from"../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";export{NO_DOCUMENT_ADDRESSING}from"../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";export{EaselSessionProvider,useEaselSession}from"../chunk-O7Q4DDJT.js";export{EFFICIENT_BACKEND,activateEaselSession,backendOf,createEaselSession,currentEaselSession,deactivateEaselSession,efficientClientOpen,isEfficientBackend,provideDefaultBackend,resetAmbientEaselSession,sessionRegistry,setSessionBridgedSite,setSessionDocumentSite}from"../chunk-RSCMJIWS.js";import"../chunk-HQ4VVRIC.js";import"../chunk-NYKIQJT2.js";export{SELECTION_MODE,ScreenCanvasTargetProvider,ScreenPartsProvider,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"../chunk-VSHV6KJQ.js";import"../chunk-PLVEGYK6.js";import"../chunk-R6WTQWAC.js";export{DETACHED_EASEL_HOST,EaselHostContext,EaselHostProvider,createEaselHost,useEaselHost,useHostEscape}from"../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 +1 @@
|
|
|
1
|
-
export{NO_BRIDGED_CAPABILITIES,applyAuthGrant,useAdminBridge}from"../../chunk-
|
|
1
|
+
export{NO_BRIDGED_CAPABILITIES,applyAuthGrant,useAdminBridge}from"../../chunk-3P6AMTOS.js";import"../../chunk-3WSPDAK2.js";import"../../chunk-O7Q4DDJT.js";import"../../chunk-RSCMJIWS.js";import"../../chunk-U3JP4VGF.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AnyDocumentAddressing, a as DocumentAddressing, N as NO_DOCUMENT_ADDRESSING } from '../../host-
|
|
1
|
+
export { A as AnyDocumentAddressing, a as DocumentAddressing, N as NO_DOCUMENT_ADDRESSING } from '../../host-BQ_b9Qzk.js';
|
|
2
2
|
import './document-contract.js';
|
|
3
3
|
import './session.js';
|
|
4
4
|
import 'react';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{resetForDocumentSwitch,saveStatusForNewDocument,saveStatusOf}from"../../chunk-
|
|
1
|
+
export{resetForDocumentSwitch,saveStatusForNewDocument,saveStatusOf}from"../../chunk-HNKB2ZYR.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{PAGE_CONFLICT_CODE,isExpiredSession,readEaselFailure}from"../../chunk-
|
|
1
|
+
export{PAGE_CONFLICT_CODE,isExpiredSession,readEaselFailure}from"../../chunk-CLOS6SSX.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{routeSharedHostMessage}from"../../chunk-
|
|
1
|
+
export{routeSharedHostMessage}from"../../chunk-S4AWJX4Q.js";import"../../chunk-KG7RJWOK.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { D as DETACHED_EASEL_HOST, 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, S as SectionScreenTarget, h as SendToHost, i as createEaselHost, u as useEaselHost } from '../../host-
|
|
2
|
+
export { D as DETACHED_EASEL_HOST, 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, S as SectionScreenTarget, h as SendToHost, i as createEaselHost, u as useEaselHost, j as useHostEscape } from '../../host-BQ_b9Qzk.js';
|
|
3
3
|
import '../../blocks/index.js';
|
|
4
4
|
import '../../types-E3HrTPg2.js';
|
|
5
5
|
import '../../data/index.js';
|
package/dist/screen/lib/host.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DETACHED_EASEL_HOST,EaselHostContext,EaselHostProvider,createEaselHost,useEaselHost}from"../../chunk-
|
|
1
|
+
export{DETACHED_EASEL_HOST,EaselHostContext,EaselHostProvider,createEaselHost,useEaselHost,useHostEscape}from"../../chunk-U3JP4VGF.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{useEaselKeyTarget,useEaselUndoKeys}from"../../chunk-
|
|
1
|
+
export{useEaselKeyTarget,useEaselUndoKeys}from"../../chunk-VSOP4GUM.js";import"../../chunk-U3JP4VGF.js";import"../../chunk-P67FP7PG.js";import"../../chunk-AELNNAFM.js";import"../../chunk-YRLPFZW3.js";import"../../chunk-D2BCHTQR.js";import"../../chunk-MFIRYGHW.js";import"../../chunk-ZNCEOSXO.js";import"../../chunk-KRXQM65X.js";import"../../chunk-NKB3KVAB.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ComponentType, ReactNode } from 'react';
|
|
3
|
-
import { H as HostPickedMedia, E as EaselHost } from '../../host-
|
|
3
|
+
import { H as HostPickedMedia, E as EaselHost } from '../../host-BQ_b9Qzk.js';
|
|
4
4
|
import '../../blocks/index.js';
|
|
5
5
|
import '../../types-E3HrTPg2.js';
|
|
6
6
|
import '../../data/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{MediaPanelProvider,cancelPanelPick,createMediaPickStore,hasMediaPanel,mediaPickStoreFor,requestPanelPick,settlePanelPick,useCancelPanelPick,useMediaPanel,usePanelPick,usePickFollowsSelection}from"../../chunk-
|
|
1
|
+
export{MediaPanelProvider,cancelPanelPick,createMediaPickStore,hasMediaPanel,mediaPickStoreFor,requestPanelPick,settlePanelPick,useCancelPanelPick,useMediaPanel,usePanelPick,usePickFollowsSelection}from"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{requestMediaPick,resolveMediaPick}from"../../chunk-
|
|
1
|
+
export{requestMediaPick,resolveMediaPick}from"../../chunk-KG7RJWOK.js";import"../../chunk-R6WTQWAC.js";import"../../chunk-U3JP4VGF.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{editLockOf,pageEditLock}from"../../chunk-
|
|
1
|
+
export{editLockOf,pageEditLock}from"../../chunk-GMCZXMOV.js";import"../../chunk-CLOS6SSX.js";import"../../chunk-KCOBHPN6.js";import"../../chunk-THWO5YVZ.js";import"../../chunk-RE4LP46F.js";
|
|
@@ -65,6 +65,13 @@ type SlotChild = {
|
|
|
65
65
|
* arrays rather than `data.zones` (which stays empty for slots).
|
|
66
66
|
*/
|
|
67
67
|
declare function childSlotsOf(config: SlotConfigView, item: TreeItem): SlotChild[];
|
|
68
|
+
/**
|
|
69
|
+
* The children of ONE slot of `item`, addressed as {@link childSlotsOf}
|
|
70
|
+
* addresses them (0.105.0): what the Layers tree draws under a slot it draws
|
|
71
|
+
* as a row of its own (`ScreenBlockRules.slotsOf`). A slot the node holds
|
|
72
|
+
* nothing in, or no array in, has none.
|
|
73
|
+
*/
|
|
74
|
+
declare function slotChildrenIn(item: TreeItem, slot: string): SlotChild[];
|
|
68
75
|
/**
|
|
69
76
|
* WHERE a node sits in the document — the node itself, the zone key its own
|
|
70
77
|
* array is addressed by, and its index in that array. Exactly the three
|
|
@@ -212,4 +219,4 @@ declare function missingPinnedTypes(live: ReadonlyArray<{
|
|
|
212
219
|
type?: string;
|
|
213
220
|
}>): string[];
|
|
214
221
|
|
|
215
|
-
export { FOOTER_TYPE, HEADER_TYPE, type NodeLocation, ROOT_ZONE, type SlotChild, type SlotConfigView, TREE_MAX_DEPTH, type TreeItem, blockNodeActions, childSlotsOf, locateNode, missingPinnedTypes, nestsInTree, newNodeId, pinnedDuplicateIds, pinnedDuplicateIndices, slotFieldsOf };
|
|
222
|
+
export { FOOTER_TYPE, HEADER_TYPE, type NodeLocation, ROOT_ZONE, type SlotChild, type SlotConfigView, TREE_MAX_DEPTH, type TreeItem, blockNodeActions, childSlotsOf, locateNode, missingPinnedTypes, nestsInTree, newNodeId, pinnedDuplicateIds, pinnedDuplicateIndices, slotChildrenIn, slotFieldsOf };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{FOOTER_TYPE,HEADER_TYPE,ROOT_ZONE,TREE_MAX_DEPTH,blockNodeActions,childSlotsOf,locateNode,missingPinnedTypes,nestsInTree,newNodeId,pinnedDuplicateIds,pinnedDuplicateIndices,slotFieldsOf}from"../../../chunk-
|
|
1
|
+
export{FOOTER_TYPE,HEADER_TYPE,ROOT_ZONE,TREE_MAX_DEPTH,blockNodeActions,childSlotsOf,locateNode,missingPinnedTypes,nestsInTree,newNodeId,pinnedDuplicateIds,pinnedDuplicateIndices,slotChildrenIn,slotFieldsOf}from"../../../chunk-PLVEGYK6.js";
|
|
@@ -68,6 +68,13 @@ interface PaletteLook {
|
|
|
68
68
|
* generic primitives (Heading / Text / ImageBlock / ButtonBlock) sit in NO
|
|
69
69
|
* category on purpose, so they never appear here — they are added from their
|
|
70
70
|
* parent's slot instead. See the note above `categories:` in lib/puck/config.tsx.
|
|
71
|
+
*
|
|
72
|
+
* A category the config marks `visible: false` is NOT offered (0.105.0, seam
|
|
73
|
+
* E9): it is a registry's way of keeping blocks it has out of the picker — the
|
|
74
|
+
* campaign designer's Product parts, its retired blocks, its Sections — and a
|
|
75
|
+
* palette that listed them would offer things that may not be put on a page.
|
|
76
|
+
* Puck's own palette read the flag the same way. No website category carries
|
|
77
|
+
* it, so the website's palette is the list it was.
|
|
71
78
|
*/
|
|
72
79
|
declare function buildPaletteSections(config: Config, look: PaletteLook): PaletteSection[];
|
|
73
80
|
/** A category's display label — the layer's short one where there is one, else the config's title. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{buildPaletteSections,categoryLabel,matchesQuery,paletteWithoutPinned,pinnedSection}from"../../../chunk-
|
|
1
|
+
export{buildPaletteSections,categoryLabel,matchesQuery,paletteWithoutPinned,pinnedSection}from"../../../chunk-PA3PNTVV.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{cloneNodeWithFreshIds,docToNode,nodeToDoc}from"../../../chunk-
|
|
1
|
+
export{cloneNodeWithFreshIds,docToNode,nodeToDoc}from"../../../chunk-IE4GFYKO.js";import"../../../chunk-PLVEGYK6.js";
|
|
@@ -168,6 +168,30 @@ type RowNameRule<N extends SlotChild = SlotChild> = (node: N, level: "section" |
|
|
|
168
168
|
* anyway so the answer does not depend on that staying true.
|
|
169
169
|
*/
|
|
170
170
|
declare function slotChildRenameProp(fields: Record<string, unknown> | undefined): "name" | "altName" | null;
|
|
171
|
+
/**
|
|
172
|
+
* WHICH PROP A SECTION'S RENAME WRITES (0.105.0) — the write side of
|
|
173
|
+
* {@link rootRowName} below, as {@link slotChildRenameProp} is the write side of
|
|
174
|
+
* a slot child's name, and here for the same reason: one home for what a node
|
|
175
|
+
* is called.
|
|
176
|
+
*
|
|
177
|
+
* Owner ruling R11 (Victor Mau, 2026-10-09): Rename works on top-level sections
|
|
178
|
+
* in both editors. A section's row reads rung 1 and nothing below it — its own
|
|
179
|
+
* `name`, else its type's label — so `name` is what a rename writes, and the row
|
|
180
|
+
* then reads it back. Until the ruling a root node had no Rename at all: its row
|
|
181
|
+
* was taken to say only its type, which stopped being true the day the row
|
|
182
|
+
* started reading the `name` the presets seed ("Brand Text", a split's
|
|
183
|
+
* "<Section> section"), and that name had no way to be changed.
|
|
184
|
+
*
|
|
185
|
+
* ── `name` IS WRITTEN UNLESS IT IS COPY — the slot child's trap, at the root ──
|
|
186
|
+
* A section whose fields do not declare `name` carries it only as the editor's
|
|
187
|
+
* label for it: the presets write it, the Layers row reads it, and no page draws
|
|
188
|
+
* it. One that declares it an identifier (`withIdentifier`) is the same. But a
|
|
189
|
+
* field keyed `name` that is ordinary copy — `GalleryItem.name` is a Heading
|
|
190
|
+
* printed on the page — is not a name, and a menu item called "Rename" must not
|
|
191
|
+
* rewrite it: null, and the section gets no Rename. No section of the website's
|
|
192
|
+
* registry declares `name` at all today, so every one of them is renamed.
|
|
193
|
+
*/
|
|
194
|
+
declare function sectionRenameProp(fields: Record<string, unknown> | undefined): "name" | null;
|
|
171
195
|
/**
|
|
172
196
|
* What a ROOT-level node is called in the trees — rung 1 of the same precedence
|
|
173
197
|
* above, and nothing below it.
|
|
@@ -198,4 +222,4 @@ declare function slotChildRenameProp(fields: Record<string, unknown> | undefined
|
|
|
198
222
|
*/
|
|
199
223
|
declare function rootRowName<N extends SlotChild>(node: N, fallback: string, rowName?: RowNameRule<N>): string;
|
|
200
224
|
|
|
201
|
-
export { type RowNameRule, type SlotChild, rootRowName, slotChildName, slotChildRenameProp, slotChildRowName };
|
|
225
|
+
export { type RowNameRule, type SlotChild, rootRowName, sectionRenameProp, slotChildName, slotChildRenameProp, slotChildRowName };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{rootRowName,slotChildName,slotChildRenameProp,slotChildRowName}from"../../../chunk-
|
|
1
|
+
export{rootRowName,sectionRenameProp,slotChildName,slotChildRenameProp,slotChildRowName}from"../../../chunk-TBF5CVPA.js";import"../../../chunk-DUVRZ456.js";import"../../../chunk-6W7WLPZH.js";
|
|
@@ -1,8 +1,43 @@
|
|
|
1
1
|
import { StyleRow } from '../../../style-clipboard/index.js';
|
|
2
|
+
import { ScreenStyleDocument, ScreenNode, ScreenStylePastePlan, ScreenStyleClipboard } from '../screen-parts.js';
|
|
2
3
|
import { panelFieldsOf } from './panel-fields.js';
|
|
3
4
|
import '../../../types-Djdq6Xkd.js';
|
|
4
5
|
import 'react';
|
|
5
6
|
import '../../../words-CnnHb9jo.js';
|
|
7
|
+
import '../../../blocks/index.js';
|
|
8
|
+
import '../../../types-E3HrTPg2.js';
|
|
9
|
+
import '../../../data/index.js';
|
|
10
|
+
import '../../../types-41704JE4.js';
|
|
11
|
+
import '../../../resolve-D68pb3Bx.js';
|
|
12
|
+
import '../../../plan-DChbUXdS.js';
|
|
13
|
+
import '../../../watch-BTYOJpQU.js';
|
|
14
|
+
import '../../../types-CqY85foL.js';
|
|
15
|
+
import '../../../types-DWS-s9z-.js';
|
|
16
|
+
import '../../../wordFit-D4S36PvB.js';
|
|
17
|
+
import '../../../edit-lock/index.js';
|
|
18
|
+
import '../../../panelWidths-D9hTLR25.js';
|
|
19
|
+
import '../../../CanvasDragLayer-zgYT1xwY.js';
|
|
20
|
+
import '../../../session-DSQFmIvx.js';
|
|
21
|
+
import '../../../words-BDignMl_.js';
|
|
22
|
+
import '../../../types-DJDBtdB2.js';
|
|
23
|
+
import '../../../words-DgHcY5qB.js';
|
|
24
|
+
import '../../components/AddSidePanel.js';
|
|
25
|
+
import '../section-template-types.js';
|
|
26
|
+
import './content-tree.js';
|
|
27
|
+
import './block-choice.js';
|
|
28
|
+
import '../../../host-BQ_b9Qzk.js';
|
|
29
|
+
import '../document-contract.js';
|
|
30
|
+
import '../session.js';
|
|
31
|
+
import '../backend-error.js';
|
|
32
|
+
import '../host-chrome.js';
|
|
33
|
+
import '../links/link-filters.js';
|
|
34
|
+
import '../../../LinkPicker-W2Rtxetz.js';
|
|
35
|
+
import '../document-hooks.js';
|
|
36
|
+
import '../document-switch.js';
|
|
37
|
+
import '../../../engine-DBxp_v6B.js';
|
|
38
|
+
import '../admin-bridge.js';
|
|
39
|
+
import './add-target-types.js';
|
|
40
|
+
import './slot-section-spec.js';
|
|
6
41
|
|
|
7
42
|
/**
|
|
8
43
|
* lib/puck/style-clipboard.ts — COPY STYLE / PASTE STYLE in the website editor
|
|
@@ -74,5 +109,22 @@ declare function planNodePaste(config: ConfigLike, scope: string, node: NodeLike
|
|
|
74
109
|
pasted: number;
|
|
75
110
|
message: string;
|
|
76
111
|
} | null;
|
|
112
|
+
/** A style clipboard with every member answered: the screen's reading of a
|
|
113
|
+
* layer's {@link ScreenStyleClipboard}. */
|
|
114
|
+
interface ResolvedStyleClipboard {
|
|
115
|
+
scope: (doc: ScreenStyleDocument) => string;
|
|
116
|
+
rows: (config: unknown, node: ScreenNode) => StyleRow[];
|
|
117
|
+
copy: (scope: string, node: ScreenNode, label: string, config: unknown) => void;
|
|
118
|
+
plan: (scope: string, node: ScreenNode, label: string, config: unknown) => ScreenStylePastePlan | null;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* COPY STYLE / PASTE STYLE AS THE SCREEN RUNS THEM (0.105.0): a layer's
|
|
122
|
+
* clipboard (lib/screen-parts `styleClipboard`) with every member it left out
|
|
123
|
+
* answered the website's way. A layer's `copy` and `plan`, where it hands none,
|
|
124
|
+
* read the rows it handed (`rows`), so a layer with its own look and nothing
|
|
125
|
+
* else still copies and pastes. With no layer's: exactly the website's —
|
|
126
|
+
* `siteStyleScope(siteId)`, `nodeStyleRows`, `copyNodeStyle`, `planNodePaste`.
|
|
127
|
+
*/
|
|
128
|
+
declare function styleClipboardOf(part: ScreenStyleClipboard | null | undefined): ResolvedStyleClipboard;
|
|
77
129
|
|
|
78
|
-
export { copyNodeStyle, nodeStyleRows, planNodePaste, shopFieldKind, siteStyleScope };
|
|
130
|
+
export { type ResolvedStyleClipboard, copyNodeStyle, nodeStyleRows, planNodePaste, shopFieldKind, siteStyleScope, styleClipboardOf };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{copyNodeStyle,nodeStyleRows,planNodePaste,shopFieldKind,siteStyleScope}from"../../../chunk-
|
|
1
|
+
export{copyNodeStyle,nodeStyleRows,planNodePaste,shopFieldKind,siteStyleScope,styleClipboardOf}from"../../../chunk-SQTY6CJD.js";import"../../../chunk-ZE7I3PLX.js";import"../../../chunk-PWZOS45R.js";import"../../../chunk-7F52SZOI.js";import"../../../chunk-R2HLPNQF.js";import"../../../chunk-DUVRZ456.js";import"../../../chunk-BSPCSC45.js";import"../../../chunk-57DJOKXT.js";import"../../../chunk-6WY6ZXJG.js";import"../../../chunk-L5KW4HG5.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{useSectionOps}from"../../../chunk-
|
|
1
|
+
export{useSectionOps}from"../../../chunk-TLZG2FCF.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";
|