efficient-easel 0.106.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -29
- package/dist/{LinkPicker-W2Rtxetz.d.ts → LinkPicker-hPEr1MJx.d.ts} +6 -4
- package/dist/autosave/index.d.ts +5 -5
- package/dist/chrome/chrome.css +50 -273
- package/dist/chrome/index.d.ts +61 -56
- package/dist/chrome/index.js +1 -1
- package/dist/chunk-4GNPKHV4.js +64 -0
- package/dist/chunk-5545A3PC.js +4 -0
- package/dist/chunk-7SQF6LZL.js +1 -0
- package/dist/chunk-BXMXTO36.js +1 -0
- package/dist/{chunk-JWMNPRTT.js → chunk-CKEPQNSQ.js} +1 -1
- package/dist/{chunk-LY4K2ECT.js → chunk-DJMMTWFP.js} +1 -1
- package/dist/chunk-EA2HTX37.js +5 -0
- package/dist/{chunk-VINYARYJ.js → chunk-FEK3S6HN.js} +1 -1
- package/dist/chunk-FPAVNX3Y.js +6 -0
- package/dist/chunk-HMJS344F.js +1 -0
- package/dist/chunk-JLTZQ4US.js +1 -0
- package/dist/chunk-JMGPPXNQ.js +24 -0
- package/dist/chunk-K56YDHYQ.js +1 -0
- package/dist/chunk-LOMEH6DG.js +1 -0
- package/dist/{chunk-FS5BLARH.js → chunk-MAEXP3KE.js} +1 -1
- package/dist/chunk-MJM6SFD3.js +3 -0
- package/dist/chunk-NLRW4BGG.js +8 -0
- package/dist/chunk-OJAJVH7S.js +5 -0
- package/dist/chunk-ONRYLR2D.js +2 -0
- package/dist/{chunk-WTMHT7BI.js → chunk-ORR3Q4WV.js} +1 -1
- package/dist/chunk-OTEXGJDU.js +5 -0
- package/dist/chunk-P2VEMZH5.js +1 -0
- package/dist/{chunk-MHKBLPQ2.js → chunk-PT6V53OO.js} +1 -1
- package/dist/{chunk-6WH7FA2M.js → chunk-PYCLHOSA.js} +2 -2
- package/dist/chunk-Q27BB5ZC.js +14 -0
- package/dist/chunk-QLD57GBB.js +6 -0
- package/dist/{chunk-PBSEUZD6.js → chunk-QMNML7XH.js} +1 -1
- package/dist/chunk-QR4DLZ3P.js +5 -0
- package/dist/chunk-TJ7YIRWQ.js +21 -0
- package/dist/{chunk-3P6AMTOS.js → chunk-VPFNZ7TB.js} +1 -1
- package/dist/chunk-W3XX2CNW.js +16 -0
- package/dist/chunk-X6DQWK2C.js +1 -0
- package/dist/chunk-XWR5YVA7.js +9 -0
- package/dist/chunk-YABL4EWX.js +7 -0
- package/dist/chunk-ZNNATBDC.js +1 -0
- package/dist/chunk-ZP4G3X44.js +4 -0
- package/dist/copy/copy.css +66 -177
- package/dist/copy/index.d.ts +0 -2
- package/dist/copy/index.js +31 -32
- package/dist/drag/drag.css +31 -11
- package/dist/drag/index.js +1 -1
- package/dist/easel/index.js +1 -1
- package/dist/fields/fields.css +35 -304
- package/dist/fields/index.d.ts +87 -95
- package/dist/fields/index.js +1 -1
- package/dist/gold/gold.css +3 -3
- package/dist/gold/index.d.ts +6 -5
- package/dist/gold/index.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/menu/index.d.ts +49 -93
- package/dist/menu/index.js +1 -1
- package/dist/menu/menu.css +37 -246
- package/dist/node-ops/index.d.ts +1 -1
- package/dist/panel/index.d.ts +46 -72
- package/dist/panel/index.js +17 -18
- package/dist/panel/panel.css +143 -372
- package/dist/pick/index.d.ts +52 -33
- package/dist/pick/index.js +7 -7
- package/dist/pick/pick.css +19 -150
- package/dist/rail/index.d.ts +48 -90
- package/dist/rail/index.js +1 -1
- package/dist/rail/rail.css +21 -108
- package/dist/screen/components/AddBlockRow.d.ts +8 -2
- package/dist/screen/components/AddBlockRow.js +1 -1
- package/dist/screen/components/AddChildRow.d.ts +4 -3
- package/dist/screen/components/AddChildRow.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 +12 -8
- 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 +7 -7
- package/dist/screen/components/ScreenMount.js +1 -1
- package/dist/screen/components/ScreenStoreProvider.d.ts +7 -7
- package/dist/screen/components/ScreenStoreProvider.js +1 -1
- package/dist/screen/components/SectionScreenShell.js +16 -16
- package/dist/screen/components/SidePanelHead.d.ts +4 -2
- package/dist/screen/components/SidePanelHead.js +1 -1
- package/dist/screen/components/UiIcon.d.ts +10 -26
- package/dist/screen/components/UiIcon.js +2 -1
- package/dist/screen/components/panel-widths.js +1 -1
- package/dist/screen/components/usePartBridge.d.ts +7 -7
- package/dist/screen/components/usePartBridge.js +1 -1
- package/dist/screen/index.d.ts +7 -7
- package/dist/screen/index.js +1 -1
- package/dist/screen/lib/admin-bridge.d.ts +1 -1
- package/dist/screen/lib/admin-bridge.js +1 -1
- package/dist/screen/lib/chrome-theme.d.ts +20 -12
- package/dist/screen/lib/chrome-theme.js +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/key-scope.js +1 -1
- package/dist/screen/lib/links/link-filters.d.ts +1 -1
- 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/style-clipboard.d.ts +7 -7
- package/dist/screen/lib/puck/use-section-ops.js +1 -1
- package/dist/screen/lib/screen-parts.d.ts +9 -8
- 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/screen.css +33 -206
- package/dist/shell/index.d.ts +134 -118
- package/dist/shell/index.js +1 -1
- package/dist/shell/shell.css +130 -88
- package/dist/strings/catalogue.d.ts +5 -5
- package/dist/strings/catalogue.js +1 -1
- package/dist/strings/index.d.ts +5 -5
- package/dist/strings/index.js +1 -1
- package/dist/style-clipboard/index.d.ts +1 -1
- package/dist/text-styles/index.d.ts +12 -3
- package/dist/text-styles/index.js +33 -38
- package/dist/text-styles/text-styles.css +39 -71
- package/dist/tree/index.d.ts +49 -44
- package/dist/tree/index.js +1 -1
- package/dist/tree/tree.css +31 -653
- package/dist/{types-DJDBtdB2.d.ts → types-BqGnUVX5.d.ts} +32 -32
- package/dist/types-BsyPh6EW.d.ts +99 -0
- package/dist/{types-DWS-s9z-.d.ts → types-CsgMwHHa.d.ts} +14 -11
- package/dist/{types-CqY85foL.d.ts → types-Dt1CFR1S.d.ts} +4 -2
- package/dist/{wordFit-D4S36PvB.d.ts → wordFit-7XpmhcaW.d.ts} +3 -5
- package/dist/words-Cl9xMUYY.d.ts +41 -0
- package/dist/{words-D_Lnw1Gr.d.ts → words-CvFnwGSr.d.ts} +1 -1
- package/package.json +5 -1
- package/dist/chunk-2UX75JDP.js +0 -1
- package/dist/chunk-37OCQYNX.js +0 -65
- package/dist/chunk-3EDSDPIP.js +0 -1
- package/dist/chunk-3QVB4AG2.js +0 -3
- package/dist/chunk-3WSPDAK2.js +0 -1
- package/dist/chunk-5MZ3RNQQ.js +0 -13
- package/dist/chunk-5ZBBXZPV.js +0 -6
- package/dist/chunk-BZ5ASXOL.js +0 -1
- package/dist/chunk-C6BJB5AC.js +0 -2
- package/dist/chunk-DX4XELD6.js +0 -18
- package/dist/chunk-EOJNJCMJ.js +0 -16
- package/dist/chunk-EWVJSRRY.js +0 -6
- package/dist/chunk-H24N5TMZ.js +0 -11
- package/dist/chunk-I6T4TZ5Q.js +0 -8
- package/dist/chunk-KTVH2ZRL.js +0 -15
- package/dist/chunk-M7N2V4TG.js +0 -2
- package/dist/chunk-MS4QRBJ6.js +0 -5
- package/dist/chunk-ND55LTCA.js +0 -5
- package/dist/chunk-OWBO4WKA.js +0 -0
- package/dist/chunk-P6O363EE.js +0 -6
- package/dist/chunk-RW4XBUUW.js +0 -1
- package/dist/chunk-UEVTQBM7.js +0 -10
- package/dist/chunk-VCQVNPTG.js +0 -22
- package/dist/chunk-WZ7TGAAT.js +0 -3
- package/dist/chunk-YC4TB3CJ.js +0 -25
- package/dist/chunk-Z6SOLDWV.js +0 -1
- package/dist/chunk-ZFDCDJNZ.js +0 -16
- package/dist/chunk-ZNS7727Y.js +0 -12
- package/dist/types-Djdq6Xkd.d.ts +0 -138
- package/dist/words-DgHcY5qB.d.ts +0 -33
package/dist/types-Djdq6Xkd.d.ts
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
/** One row of the menu.
|
|
4
|
-
*
|
|
5
|
-
* Carried over unchanged from `efficient-admin-portal`'s `RowContextMenuItem`
|
|
6
|
-
* (card 66039), because the campaign designer's registry is typed against it and
|
|
7
|
-
* what the menus OFFER is not this card's to move. A `label` of `'—'` renders a
|
|
8
|
-
* separator; `header: true` renders a caption, and the FIRST such caption names
|
|
9
|
-
* the menu for assistive tech. */
|
|
10
|
-
interface EaselContextMenuItem {
|
|
11
|
-
label: string;
|
|
12
|
-
onClick: () => void;
|
|
13
|
-
danger?: boolean;
|
|
14
|
-
header?: boolean;
|
|
15
|
-
/** A SUBMENU: this item opens a flyout of these instead of acting itself.
|
|
16
|
-
* One level only — a child carrying its own `children` is drawn as a plain
|
|
17
|
-
* item, which is all any caller has needed and keeps the flyout from becoming
|
|
18
|
-
* a tree nobody can navigate with a mouse. */
|
|
19
|
-
children?: EaselContextMenuItem[];
|
|
20
|
-
/** Draw a tick beside this item — for a submenu whose entries are STATES
|
|
21
|
-
* rather than actions, so it can say which one you are already on. */
|
|
22
|
-
checked?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* A glyph for the row, drawn before the label.
|
|
25
|
-
*
|
|
26
|
-
* ⚠️ A TYPE SLOT, NOT A LOOKUP. The box renders what it is handed and does
|
|
27
|
-
* not know what a glyph means — it must never import the icon set, or the
|
|
28
|
-
* leaf stops being a leaf (`tests/menu-leaf-safety.test.ts` (a) fails if it
|
|
29
|
-
* tries). Hosts pass an element from `efficient-easel/icons`, whose four
|
|
30
|
-
* menu glyphs — copy, paste, move-up, move-down — shipped in 0.30.0 for
|
|
31
|
-
* exactly this row.
|
|
32
|
-
*
|
|
33
|
-
* OMIT IT AND NOTHING IS DRAWN — not an empty span. That is what keeps the
|
|
34
|
-
* admin portal's three shipped surfaces byte-identical, and it is pinned by
|
|
35
|
-
* `tests/menu-layer.test.tsx` (g).
|
|
36
|
-
*/
|
|
37
|
-
icon?: ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
* The keyboard shortcut, drawn right-aligned after the label (the `.k`
|
|
40
|
-
* column of the approved drawing).
|
|
41
|
-
*
|
|
42
|
-
* Display text, not a binding — the box neither registers nor honours it;
|
|
43
|
-
* the host owns the key handling. `aria-hidden`, like the tick and the
|
|
44
|
-
* chevron: "Duplicate ⌘D" read aloud is worse than "Duplicate".
|
|
45
|
-
*
|
|
46
|
-
* OMIT IT AND NOTHING IS DRAWN. Same guard as `icon`.
|
|
47
|
-
*/
|
|
48
|
-
shortcut?: string;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* What the box is dressed in.
|
|
52
|
-
*
|
|
53
|
-
* ⚠️ A SKIN IS TOTAL. Pass one and it replaces {@link ES_MENU_SKIN} outright —
|
|
54
|
-
* nothing from the default is merged in underneath. That is not tidiness, it is
|
|
55
|
-
* the only arrangement that keeps the admin portal's three shipped render sites
|
|
56
|
-
* looking the way they do:
|
|
57
|
-
*
|
|
58
|
-
* · their look is Tailwind classes, and Tailwind v4 scans the project root and
|
|
59
|
-
* NOT `node_modules` (`efficient-admin-portal/src/index.css:13-22` says so in
|
|
60
|
-
* its own words, and adds `@source` lines for efficient-shell because of it);
|
|
61
|
-
* · so those class strings have to keep living in that project's own `src/`,
|
|
62
|
-
* where its build still sees them — they cannot move into this package;
|
|
63
|
-
* · and a merge would append a class of ours to a caller's string, which is
|
|
64
|
-
* the one thing that stops the rendered markup being byte-identical.
|
|
65
|
-
*
|
|
66
|
-
* A slot left empty is left empty. The default fills all of them.
|
|
67
|
-
*/
|
|
68
|
-
interface EaselContextMenuSkin {
|
|
69
|
-
/** The box. */
|
|
70
|
-
menu?: string;
|
|
71
|
-
/** The FLYOUT box. Falls back to {@link menu} when a skin gives only one —
|
|
72
|
-
* they are the same surface in the default look, but not everywhere: the
|
|
73
|
-
* admin portal's box carries `overflow-y-auto` (it takes a `maxHeight`) and
|
|
74
|
-
* its flyout does not. Collapsing the two would quietly change the markup of
|
|
75
|
-
* a surface already in front of users. */
|
|
76
|
-
menuSub?: string;
|
|
77
|
-
/** A plain row. */
|
|
78
|
-
item?: string;
|
|
79
|
-
/** A row that destroys something. */
|
|
80
|
-
itemDanger?: string;
|
|
81
|
-
/** The `'—'` separator. */
|
|
82
|
-
divider?: string;
|
|
83
|
-
/** A `header: true` caption. */
|
|
84
|
-
header?: string;
|
|
85
|
-
/** The label span of a row that has something beside it — a chevron, a tick.
|
|
86
|
-
* A row that is only a label renders bare text and takes no class at all,
|
|
87
|
-
* which is what the two grid callers have always drawn. */
|
|
88
|
-
label?: string;
|
|
89
|
-
/** The label span inside a FLYOUT. Falls back to {@link label} when a skin
|
|
90
|
-
* gives only one — the admin portal wants them different, because a state
|
|
91
|
-
* name in a flyout can be long enough to need truncating and a row in the box
|
|
92
|
-
* never is. */
|
|
93
|
-
labelSub?: string;
|
|
94
|
-
/** The glyph column, when a row carries an `icon`. */
|
|
95
|
-
icon?: string;
|
|
96
|
-
/** The right-aligned shortcut column, when a row carries a `shortcut`. */
|
|
97
|
-
shortcut?: string;
|
|
98
|
-
/** The `›` on a row that opens a flyout. */
|
|
99
|
-
chevron?: string;
|
|
100
|
-
/** The tick column of a flyout whose entries are states. */
|
|
101
|
-
tick?: string;
|
|
102
|
-
/** Merged into the box's own inline style, under the placement this component
|
|
103
|
-
* computes — so a caller can hand it a surface (the admin passes
|
|
104
|
-
* `glassStyle()` from efficient-shell) without being able to move it. */
|
|
105
|
-
surface?: CSSProperties;
|
|
106
|
-
/** Merged into each row's inline style. */
|
|
107
|
-
itemStyle?: CSSProperties;
|
|
108
|
-
}
|
|
109
|
-
interface EaselContextMenuProps {
|
|
110
|
-
/** Where the pointer was. The box is placed from here and then kept on
|
|
111
|
-
* screen — see the note on the component. */
|
|
112
|
-
x: number;
|
|
113
|
-
y: number;
|
|
114
|
-
items: EaselContextMenuItem[];
|
|
115
|
-
onClose: () => void;
|
|
116
|
-
/** Cap the box's height; it scrolls past that. */
|
|
117
|
-
maxHeight?: number;
|
|
118
|
-
/** Defaults to {@link ES_MENU_SKIN}, the storefront editor's approved look. */
|
|
119
|
-
skin?: EaselContextMenuSkin;
|
|
120
|
-
/**
|
|
121
|
-
* Where to portal to. Defaults to `document.body` (`null` means the default).
|
|
122
|
-
*
|
|
123
|
-
* A host that OVERRIDES `--es-*` on its own editor root should pass that root
|
|
124
|
-
* instead: the default skin re-declares the token defaults on the box (see the
|
|
125
|
-
* component's note), which is right for a box hanging off `<body>` and wrong
|
|
126
|
-
* for one that should inherit a re-themed editor's values.
|
|
127
|
-
*
|
|
128
|
-
* So should a host that wants the box INSIDE ITS LANDMARKS (on the body it
|
|
129
|
-
* is page content outside every landmark: axe-core's `region`) — through
|
|
130
|
-
* `menuPortalTarget(root)`, never the bare root: the box is `position:
|
|
131
|
-
* fixed`, and a transformed, filtered or contained ancestor places and clips
|
|
132
|
-
* it. `menuPortalTarget` answers the root only when none does. The decision
|
|
133
|
-
* is recorded in `./portal`.
|
|
134
|
-
*/
|
|
135
|
-
portalTo?: HTMLElement | null;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export type { EaselContextMenuItem as E, EaselContextMenuProps as a, EaselContextMenuSkin as b };
|
package/dist/words-DgHcY5qB.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Layers tree's own words (`efficient-easel/strings`, 0.95.0): the drag
|
|
3
|
-
* hint, the caret's and an empty slot's. A row's name, its marks and its
|
|
4
|
-
* actions are the host's.
|
|
5
|
-
*
|
|
6
|
-
* The tree is hook-free, so it does not read the strings provider: `TreeRow`
|
|
7
|
-
* and `TreeEmptySlot` take these as their `words` prop and a host passes
|
|
8
|
-
* `useEaselStrings().tree`.
|
|
9
|
-
*/
|
|
10
|
-
type TreeWords = {
|
|
11
|
-
/** What a draggable row says after 0.7 s on it. */
|
|
12
|
-
dragHint: string;
|
|
13
|
-
/** The caret's tooltip while the row is open. */
|
|
14
|
-
collapse: string;
|
|
15
|
-
/** The caret's tooltip while the row is folded. */
|
|
16
|
-
expand: string;
|
|
17
|
-
/** The caret's accessible name while open. `label` is the host's word for what folds: "section". */
|
|
18
|
-
collapseNamed: (v: {
|
|
19
|
-
label: string;
|
|
20
|
-
}) => string;
|
|
21
|
-
/** The caret's accessible name while folded. */
|
|
22
|
-
expandNamed: (v: {
|
|
23
|
-
label: string;
|
|
24
|
-
}) => string;
|
|
25
|
-
/** What an empty slot says when it offers nothing: a read-only tree. */
|
|
26
|
-
emptySlot?: string;
|
|
27
|
-
/** What an empty slot's button says. */
|
|
28
|
-
addBlock?: string;
|
|
29
|
-
/** What an empty slot says while a drag may land in it. */
|
|
30
|
-
dropHere?: string;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export type { TreeWords as T };
|