efficient-easel 0.105.1 → 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 +103 -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-2GVCAIPX.js +1 -0
- 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-NYKIQJT2.js → chunk-CKEPQNSQ.js} +1 -1
- package/dist/chunk-DJMMTWFP.js +1 -0
- package/dist/{chunk-PQXIFBDY.js → chunk-E2O2MRZR.js} +1 -1
- package/dist/chunk-EA2HTX37.js +5 -0
- package/dist/{chunk-SARZN4M7.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-V4LF7D4F.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-ORR3Q4WV.js +1 -0
- package/dist/chunk-OTEXGJDU.js +5 -0
- package/dist/chunk-P2VEMZH5.js +1 -0
- package/dist/chunk-PT6V53OO.js +1 -0
- package/dist/chunk-PYCLHOSA.js +9 -0
- package/dist/chunk-Q27BB5ZC.js +14 -0
- package/dist/chunk-QLD57GBB.js +6 -0
- package/dist/{chunk-NWIW7AWH.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.d.ts +10 -0
- package/dist/drag/index.js +1 -1
- package/dist/easel/index.d.ts +10 -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/{host-BQ_b9Qzk.d.ts → host-CiuzZJXj.d.ts} +11 -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 +2 -2
- package/dist/screen/components/MediaSidePanel.js +1 -1
- package/dist/screen/components/NodeContextMenu.d.ts +31 -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 +2 -2
- package/dist/screen/components/ScreenDocumentContext.js +1 -1
- package/dist/screen/components/ScreenMount.d.ts +8 -8
- package/dist/screen/components/ScreenMount.js +1 -1
- package/dist/screen/components/ScreenStoreProvider.d.ts +8 -8
- 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.d.ts +15 -1
- package/dist/screen/components/panel-widths.js +1 -1
- package/dist/screen/components/usePartBridge.d.ts +8 -8
- package/dist/screen/components/usePartBridge.js +1 -1
- package/dist/screen/index.d.ts +9 -9
- 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 +2 -2
- package/dist/screen/lib/host-chrome.d.ts +1 -1
- package/dist/screen/lib/host.d.ts +2 -2
- package/dist/screen/lib/key-scope.d.ts +31 -2
- 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 +2 -2
- package/dist/screen/lib/media-picker.d.ts +2 -2
- package/dist/screen/lib/page-lock.d.ts +1 -1
- package/dist/screen/lib/puck/section-doc.d.ts +5 -1
- package/dist/screen/lib/puck/section-doc.js +1 -1
- package/dist/screen/lib/puck/style-clipboard.d.ts +8 -8
- package/dist/screen/lib/puck/use-section-ops.js +1 -1
- package/dist/screen/lib/screen-parts.d.ts +47 -10
- 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 +54 -206
- package/dist/screen/words.d.ts +17 -1
- package/dist/screen/words.js +1 -1
- 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-3EDSDPIP.js +0 -1
- package/dist/chunk-3QVB4AG2.js +0 -3
- package/dist/chunk-3WSPDAK2.js +0 -1
- package/dist/chunk-53G47SWO.js +0 -1
- package/dist/chunk-5MZ3RNQQ.js +0 -13
- package/dist/chunk-5ZBBXZPV.js +0 -6
- package/dist/chunk-7FBDZTUD.js +0 -2
- package/dist/chunk-7V5WZ46F.js +0 -2
- package/dist/chunk-BXZ6WLHC.js +0 -22
- package/dist/chunk-BZ5ASXOL.js +0 -1
- package/dist/chunk-EOJNJCMJ.js +0 -16
- package/dist/chunk-EWVJSRRY.js +0 -6
- package/dist/chunk-FMGFZNPW.js +0 -1
- package/dist/chunk-H24N5TMZ.js +0 -11
- package/dist/chunk-HLEET6NV.js +0 -65
- package/dist/chunk-IE4GFYKO.js +0 -1
- package/dist/chunk-KTVH2ZRL.js +0 -15
- package/dist/chunk-N7VRF7PR.js +0 -5
- package/dist/chunk-OWBO4WKA.js +0 -0
- package/dist/chunk-P67FP7PG.js +0 -9
- package/dist/chunk-P6O363EE.js +0 -6
- package/dist/chunk-Q4N7C6CT.js +0 -10
- package/dist/chunk-QH6LCNOX.js +0 -8
- package/dist/chunk-RW4XBUUW.js +0 -1
- package/dist/chunk-TTJ54QGG.js +0 -18
- package/dist/chunk-VSHV6KJQ.js +0 -5
- package/dist/chunk-VSOP4GUM.js +0 -1
- package/dist/chunk-WZ7TGAAT.js +0 -3
- package/dist/chunk-YC4TB3CJ.js +0 -25
- package/dist/chunk-ZFDCDJNZ.js +0 -16
- package/dist/chunk-ZNS7727Y.js +0 -12
- package/dist/chunk-ZTTWFAAC.js +0 -1
- package/dist/types-Djdq6Xkd.d.ts +0 -138
- package/dist/words-DgHcY5qB.d.ts +0 -33
package/dist/shell/index.d.ts
CHANGED
|
@@ -1,136 +1,139 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Editor SHELL design tokens — the
|
|
2
|
+
* Editor SHELL design tokens — the chrome's names for efficient-shell's tokens.
|
|
3
3
|
*
|
|
4
4
|
* Where `rail/tokens.ts` owns the slim icon-rail, this owns the rest of the
|
|
5
5
|
* editor chrome theme: accent, surfaces, fields, text, lines, chips, named
|
|
6
|
-
* chrome literals, danger/warning/success, radii, gap, shadows and font.
|
|
7
|
-
*
|
|
8
|
-
* (
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
6
|
+
* chrome literals, danger/warning/success, radii, gap, shadows and font.
|
|
7
|
+
*
|
|
8
|
+
* NOTHING HERE IS A VALUE OF OUR OWN (harness UI-24, efficient-harness#117):
|
|
9
|
+
* every colour, radius and the typeface is a `var()` of an efficient-shell
|
|
10
|
+
* token (`efficient-shell/ui.css`), or — where the shell has no token for the
|
|
11
|
+
* role yet, marked SHELL GAP below — a `color-mix()` of shell tokens. Up to
|
|
12
|
+
* 0.106.0 these were hex values mirrored from the storefront editor's `--sf-*`
|
|
13
|
+
* block, light only; now the editor follows the shell's theme, dark included,
|
|
14
|
+
* and its accent themes. The one literal colour is `frameBg`, which is canvas
|
|
15
|
+
* (the page's paper), not chrome.
|
|
13
16
|
*
|
|
14
17
|
* Exposed BOTH ways, per the same value (mirrors the rail):
|
|
15
|
-
* - `shellTokens` — this JS object, for code that needs the
|
|
16
|
-
* (
|
|
18
|
+
* - `shellTokens` — this JS object, for code that needs the values in an
|
|
19
|
+
* inline style (they are CSS expressions, so they resolve only where the
|
|
20
|
+
* host has loaded the shell's CSS — which it must, see README);
|
|
17
21
|
* - `shell.css` — the stylesheet, which declares the identical values as CSS
|
|
18
22
|
* custom properties on `.es-editor` (names listed in `shellCssVars`).
|
|
19
23
|
*
|
|
20
24
|
* Numeric fields are pixel magnitudes (unitless) so they compose in code; the
|
|
21
|
-
* CSS applies the `px`.
|
|
22
|
-
* there is a single palette here — no dark counterpart.
|
|
25
|
+
* CSS applies the `px`. Only spacing is numeric now.
|
|
23
26
|
*/
|
|
24
27
|
declare const shellTokens: {
|
|
25
|
-
/** `--es-accent` —
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
readonly
|
|
29
|
-
/** `--es-accent-tint
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
readonly
|
|
39
|
-
/** `--es-
|
|
40
|
-
readonly
|
|
41
|
-
/** `--es-
|
|
42
|
-
readonly
|
|
43
|
-
/** `--es-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
28
|
+
/** `--es-accent` — the custom accent (`--accent-600`, stamped by the shell's
|
|
29
|
+
* `useTheme()`), else the shell's themed primary fill (`--submit-bg`, which
|
|
30
|
+
* the pink / green / grey themes remap). */
|
|
31
|
+
readonly accent: "var(--accent-600, var(--submit-bg))";
|
|
32
|
+
/** `--es-accent-tint` — a wash of the accent on the surface. SHELL GAP: the
|
|
33
|
+
* shell has no accent-soft token; mixed from shell tokens until it does. */
|
|
34
|
+
readonly accentTint: "color-mix(in srgb, var(--es-accent) 10%, var(--surface))";
|
|
35
|
+
/** `--es-accent-tint-strong` — a stronger wash. SHELL GAP, as above. */
|
|
36
|
+
readonly accentTintStrong: "color-mix(in srgb, var(--es-accent) 18%, var(--surface))";
|
|
37
|
+
/** `--es-accent-line` — a quiet accent hairline (an empty slot's outline). SHELL GAP. */
|
|
38
|
+
readonly accentLine: "color-mix(in srgb, var(--es-accent) 32%, var(--surface))";
|
|
39
|
+
/** `--es-accent-text` — accent as words: darker than the fill on light,
|
|
40
|
+
* lighter on dark, because it leans on the ramp's strongest ink. SHELL GAP. */
|
|
41
|
+
readonly accentText: "color-mix(in srgb, var(--es-accent) 65%, var(--ink-strongest))";
|
|
42
|
+
/** `--es-accent-ring` — the shell's focus ring wash. */
|
|
43
|
+
readonly accentRing: "var(--rosh-focus-ring)";
|
|
44
|
+
/** `--es-accent-shadow` — accent button shadow. SHELL GAP. */
|
|
45
|
+
readonly accentShadow: "color-mix(in srgb, var(--es-accent) 35%, transparent)";
|
|
46
|
+
/** `--es-on-accent` — ink on a solid fill. SHELL GAP: the shell's nearest is
|
|
47
|
+
* the status tier's `--status-on-solid` (white in both themes). */
|
|
48
|
+
readonly onAccent: "var(--status-on-solid)";
|
|
49
|
+
/** `--es-app-bg` — the sunken ground behind the panels. */
|
|
50
|
+
readonly appBg: "var(--surface-sunken)";
|
|
51
|
+
/** `--es-preview-bg` — the well round the canvas. */
|
|
52
|
+
readonly previewBg: "var(--surface-raised)";
|
|
53
|
+
/** `--es-panel` — panels. */
|
|
54
|
+
readonly panel: "var(--surface)";
|
|
47
55
|
/** `--es-raised` — a lifted surface. NOT the active chip since card 66302. */
|
|
48
|
-
readonly raised: "
|
|
56
|
+
readonly raised: "var(--surface)";
|
|
49
57
|
/** `--es-topbar-bg`. */
|
|
50
|
-
readonly topbarBg: "
|
|
51
|
-
/** `--es-frame-bg` —
|
|
58
|
+
readonly topbarBg: "var(--surface)";
|
|
59
|
+
/** `--es-frame-bg` — the paper behind the preview iframe. CANVAS, not chrome:
|
|
60
|
+
* it is the page's own white in every theme (UI-24 leaves output alone). */
|
|
52
61
|
readonly frameBg: "#ffffff";
|
|
53
|
-
/** `--es-hover` —
|
|
54
|
-
readonly hover: "
|
|
62
|
+
/** `--es-hover` — row / icon hover. */
|
|
63
|
+
readonly hover: "var(--surface-raised)";
|
|
55
64
|
/** `--es-hatch` — 45° upload-slot texture. */
|
|
56
|
-
readonly hatch: "
|
|
65
|
+
readonly hatch: "color-mix(in srgb, var(--ink-strongest) 2%, transparent)";
|
|
57
66
|
/** `--es-addcard-veil` — add-section card hover wash. */
|
|
58
|
-
readonly addcardVeil: "
|
|
67
|
+
readonly addcardVeil: "color-mix(in srgb, var(--surface-sunken) 66%, transparent)";
|
|
59
68
|
/** `--es-field-bg`. */
|
|
60
|
-
readonly fieldBg: "
|
|
61
|
-
/** `--es-track-bg` —
|
|
62
|
-
readonly trackBg: "
|
|
63
|
-
/** `--es-input-border
|
|
64
|
-
readonly inputBorder: "
|
|
65
|
-
/** `--es-field-text
|
|
66
|
-
readonly fieldText: "
|
|
67
|
-
/** `--es-field-placeholder
|
|
68
|
-
readonly fieldPlaceholder: "
|
|
69
|
-
/** `--es-knob` — toggle knob
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
readonly
|
|
103
|
-
/** `--es-
|
|
104
|
-
readonly
|
|
105
|
-
/** `--es-scrollbar
|
|
106
|
-
readonly
|
|
107
|
-
/** `--es-
|
|
108
|
-
readonly
|
|
109
|
-
/** `--es-danger
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
readonly
|
|
128
|
-
/** `--es-panel-radius`. */
|
|
129
|
-
readonly panelRadius: 12;
|
|
130
|
-
/** `--es-row-radius`. */
|
|
131
|
-
readonly rowRadius: 8;
|
|
132
|
-
/** `--es-field-radius`. */
|
|
133
|
-
readonly fieldRadius: 6;
|
|
69
|
+
readonly fieldBg: "var(--surface)";
|
|
70
|
+
/** `--es-track-bg` — segmented / search track. */
|
|
71
|
+
readonly trackBg: "var(--surface-raised)";
|
|
72
|
+
/** `--es-input-border`. */
|
|
73
|
+
readonly inputBorder: "var(--line-strong)";
|
|
74
|
+
/** `--es-field-text`. */
|
|
75
|
+
readonly fieldText: "var(--ink-strong)";
|
|
76
|
+
/** `--es-field-placeholder`. */
|
|
77
|
+
readonly fieldPlaceholder: "var(--ink-faintest)";
|
|
78
|
+
/** `--es-knob` — toggle knob (the shell's Switch draws it `bg-white`, which
|
|
79
|
+
* its dark theme turns into `--surface`). */
|
|
80
|
+
readonly knob: "var(--surface)";
|
|
81
|
+
/** `--es-text`. */
|
|
82
|
+
readonly text: "var(--ink-strongest)";
|
|
83
|
+
/** `--es-text-strong` — active labels (the ramp has nothing past strongest). */
|
|
84
|
+
readonly textStrong: "var(--ink-strongest)";
|
|
85
|
+
/** `--es-text-secondary`. */
|
|
86
|
+
readonly textSecondary: "var(--ink)";
|
|
87
|
+
/** `--es-muted`. */
|
|
88
|
+
readonly muted: "var(--ink-faint)";
|
|
89
|
+
/** `--es-icon` — icon buttons. */
|
|
90
|
+
readonly icon: "var(--ink-faint)";
|
|
91
|
+
/** `--es-disabled` — disabled / faint glyphs. */
|
|
92
|
+
readonly disabled: "var(--ink-faintest)";
|
|
93
|
+
/** `--es-divider`. */
|
|
94
|
+
readonly divider: "var(--line)";
|
|
95
|
+
/** `--es-line` — hairlines. */
|
|
96
|
+
readonly line: "var(--line)";
|
|
97
|
+
/** `--es-btn-border`. */
|
|
98
|
+
readonly btnBorder: "var(--line-strong)";
|
|
99
|
+
/** `--es-btn-text`. */
|
|
100
|
+
readonly btnText: "var(--ink)";
|
|
101
|
+
/** `--es-chip-bg`. */
|
|
102
|
+
readonly chipBg: "var(--surface-raised)";
|
|
103
|
+
/** `--es-chip-fg`. */
|
|
104
|
+
readonly chipFg: "var(--ink-faint)";
|
|
105
|
+
/** `--es-brand-square` — wordmark square. */
|
|
106
|
+
readonly brandSquare: "var(--ink-strongest)";
|
|
107
|
+
/** `--es-device-border` — tablet/mobile frame. */
|
|
108
|
+
readonly deviceBorder: "var(--line)";
|
|
109
|
+
/** `--es-toast-bg` — dark chip / seam pill, white ink on it in both themes:
|
|
110
|
+
* the shell's solid status tier (`--status-draft-solid`, 10.3:1 with white). */
|
|
111
|
+
readonly toastBg: "var(--status-draft-solid)";
|
|
112
|
+
/** `--es-toggle-off` — toggle track (the shell's Switch: `bg-gray-300`). */
|
|
113
|
+
readonly toggleOff: "var(--line-strong)";
|
|
114
|
+
/** `--es-scrollbar`. */
|
|
115
|
+
readonly scrollbar: "var(--line-strong)";
|
|
116
|
+
/** `--es-scrollbar-hover`. */
|
|
117
|
+
readonly scrollbarHover: "var(--ink-faintest)";
|
|
118
|
+
/** `--es-danger` — danger words and edges: the status tier's ink, which
|
|
119
|
+
* clears AA on the surface and on its own wash, light and dark. */
|
|
120
|
+
readonly danger: "var(--status-danger-soft-ink)";
|
|
121
|
+
/** `--es-danger-strong` — danger words on `--es-danger-tint`. */
|
|
122
|
+
readonly dangerStrong: "var(--status-danger-soft-ink)";
|
|
123
|
+
/** `--es-danger-tint` — the danger wash. */
|
|
124
|
+
readonly dangerTint: "var(--status-danger-soft)";
|
|
125
|
+
/** `--es-warning` — the "Preview" pill's words and edge (amber: pending). */
|
|
126
|
+
readonly warning: "var(--status-pending-soft-ink)";
|
|
127
|
+
/** `--es-preview-tint` — the "Preview" pill's wash. */
|
|
128
|
+
readonly previewTint: "var(--status-pending-soft)";
|
|
129
|
+
/** `--es-success` — a green tick and its label. */
|
|
130
|
+
readonly success: "var(--status-success-soft-ink)";
|
|
131
|
+
/** `--es-panel-radius` — 12px, `--radius-xl`. */
|
|
132
|
+
readonly panelRadius: "var(--radius-xl)";
|
|
133
|
+
/** `--es-row-radius` — 8px, `--radius-lg`. */
|
|
134
|
+
readonly rowRadius: "var(--radius-lg)";
|
|
135
|
+
/** `--es-field-radius` — 6px, `--radius-md`. */
|
|
136
|
+
readonly fieldRadius: "var(--radius-md)";
|
|
134
137
|
/** `--es-panel-gap` — inter-pane gutter + outer frame padding, ONE token.
|
|
135
138
|
* 12 since the one spacing scale (was 10, which is not a step). */
|
|
136
139
|
readonly panelGap: 12;
|
|
@@ -158,10 +161,23 @@ declare const shellTokens: {
|
|
|
158
161
|
* has to read across 3px of track without looking like a second panel.
|
|
159
162
|
*/
|
|
160
163
|
readonly raisedShadow: "0 1px 2px rgba(16, 24, 40, 0.1)";
|
|
161
|
-
/** `--es-font` —
|
|
162
|
-
readonly font: "-
|
|
164
|
+
/** `--es-font` — the shell's face. */
|
|
165
|
+
readonly font: "var(--font-sans)";
|
|
163
166
|
};
|
|
164
167
|
type ShellTokens = typeof shellTokens;
|
|
168
|
+
/**
|
|
169
|
+
* The tokens `shell.css` re-points under the shell's dark theme
|
|
170
|
+
* (`:is([data-theme="dark"], .dark) .es-editor`). Shell tokens only: the shell
|
|
171
|
+
* draws a track and a chip's ground with `bg-gray-100`, and its dark theme
|
|
172
|
+
* remaps that utility to `--surface` rather than `--surface-raised`, so these
|
|
173
|
+
* three follow it. Code that reads `shellTokens` for an inline style under a
|
|
174
|
+
* dark shell reads these over it.
|
|
175
|
+
*/
|
|
176
|
+
declare const shellDarkTokens: {
|
|
177
|
+
readonly previewBg: "var(--surface)";
|
|
178
|
+
readonly trackBg: "var(--surface)";
|
|
179
|
+
readonly chipBg: "var(--surface)";
|
|
180
|
+
};
|
|
165
181
|
/**
|
|
166
182
|
* The one spacing scale, smallest first (owner ruling, 2026-10-02): the six
|
|
167
183
|
* `space*` tokens above as a list, for code that must snap a number to it.
|
|
@@ -176,4 +192,4 @@ declare const SPACING_SCALE: readonly [2, 4, 8, 12, 16, 32];
|
|
|
176
192
|
*/
|
|
177
193
|
declare const shellCssVars: Record<keyof ShellTokens, string>;
|
|
178
194
|
|
|
179
|
-
export { SPACING_SCALE, type ShellTokens, shellCssVars, shellTokens };
|
|
195
|
+
export { SPACING_SCALE, type ShellTokens, shellCssVars, shellDarkTokens, shellTokens };
|
package/dist/shell/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SPACING_SCALE,shellCssVars,shellTokens}from"../chunk-
|
|
1
|
+
export{SPACING_SCALE,shellCssVars,shellDarkTokens,shellTokens}from"../chunk-HMJS344F.js";
|
package/dist/shell/shell.css
CHANGED
|
@@ -1,115 +1,131 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* efficient-easel — shell chrome tokens.
|
|
2
|
+
* efficient-easel — shell chrome tokens, resolved to efficient-shell (UI-24).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
4
|
+
* Every colour, radius and the typeface below is an ALIAS of an efficient-shell
|
|
5
|
+
* token (`efficient-shell/ui.css`: the neutral ramp `--surface*` / `--ink*` /
|
|
6
|
+
* `--line*`, the `--status-*` tiers, `--submit-bg`, `--radius-*`,
|
|
7
|
+
* `--font-sans`). Harness UI-24 (efficient-harness#117, 2026-10-10): there is
|
|
8
|
+
* one UI kit and it is the shell, so this package keeps no palette, radii or
|
|
9
|
+
* typeface of its own — and it no longer mirrors the storefront editor's
|
|
10
|
+
* `--sf-*` block either (that was the rule up to 0.106.0). A value is never
|
|
11
|
+
* invented here: where the shell has no token for a role, the role is mixed
|
|
12
|
+
* from shell tokens with `color-mix()` and listed as a gap for the shell to
|
|
13
|
+
* fold in (efficient-easel issue 199).
|
|
10
14
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
+
* ⚠️ THE HOST MUST LOAD THE SHELL'S CSS FIRST — `efficient-shell/ui.css` (or
|
|
16
|
+
* `styles.css`, which includes it) — or none of these resolve. There are no
|
|
17
|
+
* hex fallbacks on purpose: a fallback is a second palette.
|
|
18
|
+
* `tests/es-tokens-resolve-to-shell.test.ts` holds every colour to a shell
|
|
19
|
+
* token.
|
|
15
20
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
21
|
+
* THEME. The editor follows the shell's theme, dark included: the shell
|
|
22
|
+
* stamps `data-theme="dark"` (or the `.dark` class) on `<html>` and swaps its
|
|
23
|
+
* ramp there; these aliases resolve under `.es-editor`, so they follow. The
|
|
24
|
+
* ACCENT follows the shell's accent themes too: `--accent-600` is what
|
|
25
|
+
* `useTheme()` stamps for a custom accent, and `--submit-bg` is the fill the
|
|
26
|
+
* pink / green / grey themes remap.
|
|
18
27
|
*
|
|
28
|
+
* The one dark block below holds no value of its own. The shell draws a
|
|
29
|
+
* control's track and a chip's ground with `bg-gray-100`, and its dark theme
|
|
30
|
+
* remaps THAT utility to `--surface`, not to `--surface-raised` (its
|
|
31
|
+
* `Segmented` says so); three roles here are that utility, so they move the
|
|
32
|
+
* way the shell moves it. Without it a chosen chip in the accent sits on a
|
|
33
|
+
* track it does not stand off (2.4:1, `tests/panel-chip-contrast.test.ts`).
|
|
34
|
+
*
|
|
35
|
+
* THE CANVAS IS OUTPUT, NOT CHROME. `--es-frame-bg` (the paper behind the
|
|
36
|
+
* preview iframe) stays the page's white: what is drawn there is the website or
|
|
37
|
+
* the email, which follows harness 52-brand-surface.md and keeps its own
|
|
38
|
+
* colours in every theme. The shadows are black at an alpha, which composites
|
|
39
|
+
* on either theme; the shell has no elevation token for a flat panel yet.
|
|
40
|
+
*
|
|
41
|
+
* Declared ON `.es-editor`, not on `:root`, so importing this sheet names
|
|
42
|
+
* nothing in the host page outside an editor root (the campaign designer
|
|
43
|
+
* renders INSIDE the admin DOM). Both editors alias their `--sf-*` / `--cd-*`
|
|
44
|
+
* names onto these; re-theme by overriding any `--es-*` var on or above the
|
|
45
|
+
* editor root, or — better — the shell token it reads.
|
|
19
46
|
*
|
|
20
47
|
* ⛔ CUSTOM PROPERTIES ONLY IN THIS BLOCK. Never a paint property.
|
|
21
48
|
*
|
|
22
49
|
* `.es-editor` is not this package's own element — it is the class each editor
|
|
23
50
|
* puts on ITS OWN chrome root, and the campaign designer puts it on a root that
|
|
24
|
-
* lives INSIDE the admin portal's DOM
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* editor that imports it, and in the admin portal's own document.
|
|
30
|
-
*
|
|
31
|
-
* ⚠️ This sheet is the one that matters most for that, because it is the one the
|
|
32
|
-
* admin portal actually imports (`CampaignDesigner.tsx`, since card 66024).
|
|
33
|
-
*
|
|
34
|
-
* Audited 2026-09-02 across every sheet here that opens an `.es-editor` block,
|
|
35
|
-
* and the honest number is zero:
|
|
36
|
-
*
|
|
37
|
-
* shell.css 73 declarations, 73 custom, 0 paint (6 spacing steps added 2026-10-06)
|
|
38
|
-
* panel.css 11 declarations, 11 custom, 0 paint
|
|
39
|
-
* menu.css 7 declarations, 7 custom, 0 paint
|
|
51
|
+
* lives INSIDE the admin portal's DOM. A custom property here is inert until
|
|
52
|
+
* something reads it. A `background`, a `padding`, a `font` — anything that
|
|
53
|
+
* PAINTS — is not: it applies to that root the moment this sheet is imported.
|
|
54
|
+
* Nothing enforces this — if you are adding a declaration here, you are the
|
|
55
|
+
* check.
|
|
40
56
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* Import once from a client entry / global stylesheet:
|
|
57
|
+
* Import once from a client entry / global stylesheet, AFTER the shell's:
|
|
58
|
+
* import 'efficient-shell/ui.css';
|
|
44
59
|
* import 'efficient-easel/shell.css';
|
|
45
60
|
*/
|
|
46
61
|
|
|
47
62
|
.es-editor {
|
|
48
|
-
/* — accent
|
|
49
|
-
--es-accent:
|
|
50
|
-
--es-accent-tint:
|
|
51
|
-
--es-accent-tint-strong:
|
|
52
|
-
--es-accent-line:
|
|
53
|
-
--es-accent-text:
|
|
54
|
-
--es-accent-ring:
|
|
55
|
-
--es-accent-shadow:
|
|
56
|
-
--es-on-accent:
|
|
63
|
+
/* — accent: the shell's (custom accent, else the themed primary fill) — */
|
|
64
|
+
--es-accent: var(--accent-600, var(--submit-bg));
|
|
65
|
+
--es-accent-tint: color-mix(in srgb, var(--es-accent) 10%, var(--surface));
|
|
66
|
+
--es-accent-tint-strong: color-mix(in srgb, var(--es-accent) 18%, var(--surface));
|
|
67
|
+
--es-accent-line: color-mix(in srgb, var(--es-accent) 32%, var(--surface));
|
|
68
|
+
--es-accent-text: color-mix(in srgb, var(--es-accent) 65%, var(--ink-strongest));
|
|
69
|
+
--es-accent-ring: var(--rosh-focus-ring);
|
|
70
|
+
--es-accent-shadow: color-mix(in srgb, var(--es-accent) 35%, transparent);
|
|
71
|
+
--es-on-accent: var(--status-on-solid);
|
|
57
72
|
|
|
58
|
-
/* — surfaces
|
|
59
|
-
--es-app-bg:
|
|
60
|
-
--es-preview-bg:
|
|
61
|
-
--es-panel:
|
|
62
|
-
--es-raised:
|
|
63
|
-
--es-topbar-bg:
|
|
73
|
+
/* — surfaces: the shell's neutral ramp — */
|
|
74
|
+
--es-app-bg: var(--surface-sunken);
|
|
75
|
+
--es-preview-bg: var(--surface-raised);
|
|
76
|
+
--es-panel: var(--surface);
|
|
77
|
+
--es-raised: var(--surface);
|
|
78
|
+
--es-topbar-bg: var(--surface);
|
|
79
|
+
/* The canvas's paper: OUTPUT, not chrome — the page's own white. */
|
|
64
80
|
--es-frame-bg: #ffffff;
|
|
65
|
-
--es-hover:
|
|
66
|
-
--es-hatch:
|
|
67
|
-
--es-addcard-veil:
|
|
81
|
+
--es-hover: var(--surface-raised);
|
|
82
|
+
--es-hatch: color-mix(in srgb, var(--ink-strongest) 2%, transparent);
|
|
83
|
+
--es-addcard-veil: color-mix(in srgb, var(--surface-sunken) 66%, transparent);
|
|
68
84
|
|
|
69
85
|
/* — fields — */
|
|
70
|
-
--es-field-bg:
|
|
71
|
-
--es-track-bg:
|
|
72
|
-
--es-input-border:
|
|
73
|
-
--es-field-text:
|
|
74
|
-
--es-field-placeholder:
|
|
75
|
-
--es-knob:
|
|
86
|
+
--es-field-bg: var(--surface);
|
|
87
|
+
--es-track-bg: var(--surface-raised);
|
|
88
|
+
--es-input-border: var(--line-strong);
|
|
89
|
+
--es-field-text: var(--ink-strong);
|
|
90
|
+
--es-field-placeholder: var(--ink-faintest);
|
|
91
|
+
--es-knob: var(--surface);
|
|
76
92
|
|
|
77
93
|
/* — text — */
|
|
78
|
-
--es-text:
|
|
79
|
-
--es-text-strong:
|
|
80
|
-
--es-text-secondary:
|
|
81
|
-
--es-muted:
|
|
82
|
-
--es-icon:
|
|
83
|
-
--es-disabled:
|
|
94
|
+
--es-text: var(--ink-strongest);
|
|
95
|
+
--es-text-strong: var(--ink-strongest);
|
|
96
|
+
--es-text-secondary: var(--ink);
|
|
97
|
+
--es-muted: var(--ink-faint);
|
|
98
|
+
--es-icon: var(--ink-faint);
|
|
99
|
+
--es-disabled: var(--ink-faintest);
|
|
84
100
|
|
|
85
101
|
/* — lines / chips / buttons — */
|
|
86
|
-
--es-divider:
|
|
87
|
-
--es-line:
|
|
88
|
-
--es-btn-border:
|
|
89
|
-
--es-btn-text:
|
|
90
|
-
--es-chip-bg:
|
|
91
|
-
--es-chip-fg:
|
|
102
|
+
--es-divider: var(--line);
|
|
103
|
+
--es-line: var(--line);
|
|
104
|
+
--es-btn-border: var(--line-strong);
|
|
105
|
+
--es-btn-text: var(--ink);
|
|
106
|
+
--es-chip-bg: var(--surface-raised);
|
|
107
|
+
--es-chip-fg: var(--ink-faint);
|
|
92
108
|
|
|
93
109
|
/* — named chrome literals — */
|
|
94
|
-
--es-brand-square:
|
|
95
|
-
--es-device-border:
|
|
96
|
-
--es-toast-bg:
|
|
97
|
-
--es-toggle-off:
|
|
98
|
-
--es-scrollbar:
|
|
99
|
-
--es-scrollbar-hover:
|
|
110
|
+
--es-brand-square: var(--ink-strongest);
|
|
111
|
+
--es-device-border: var(--line);
|
|
112
|
+
--es-toast-bg: var(--status-draft-solid);
|
|
113
|
+
--es-toggle-off: var(--line-strong);
|
|
114
|
+
--es-scrollbar: var(--line-strong);
|
|
115
|
+
--es-scrollbar-hover: var(--ink-faintest);
|
|
100
116
|
|
|
101
|
-
/* — danger / warning / success
|
|
102
|
-
--es-danger:
|
|
103
|
-
--es-danger-strong:
|
|
104
|
-
--es-danger-tint:
|
|
105
|
-
--es-warning:
|
|
106
|
-
--es-preview-tint:
|
|
107
|
-
--es-success:
|
|
117
|
+
/* — danger / warning / success: the shell's status tiers — */
|
|
118
|
+
--es-danger: var(--status-danger-soft-ink);
|
|
119
|
+
--es-danger-strong: var(--status-danger-soft-ink);
|
|
120
|
+
--es-danger-tint: var(--status-danger-soft);
|
|
121
|
+
--es-warning: var(--status-pending-soft-ink);
|
|
122
|
+
--es-preview-tint: var(--status-pending-soft);
|
|
123
|
+
--es-success: var(--status-success-soft-ink);
|
|
108
124
|
|
|
109
|
-
/* — radii
|
|
110
|
-
--es-panel-radius:
|
|
111
|
-
--es-row-radius:
|
|
112
|
-
--es-field-radius:
|
|
125
|
+
/* — radii: the shell's scale / gap — */
|
|
126
|
+
--es-panel-radius: var(--radius-xl);
|
|
127
|
+
--es-row-radius: var(--radius-lg);
|
|
128
|
+
--es-field-radius: var(--radius-md);
|
|
113
129
|
--es-panel-gap: 12px;
|
|
114
130
|
|
|
115
131
|
/* — spacing: ONE scale for every panel (owner ruling, 2026-10-02) —
|
|
@@ -122,11 +138,37 @@
|
|
|
122
138
|
--es-space-16: 16px;
|
|
123
139
|
--es-space-32: 32px;
|
|
124
140
|
|
|
125
|
-
/* — shadows — */
|
|
141
|
+
/* — shadows: black at an alpha (no shell elevation token yet) — */
|
|
126
142
|
--es-panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.06);
|
|
127
143
|
--es-topbar-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
|
|
128
144
|
--es-raised-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
|
|
129
145
|
|
|
130
|
-
/* — type — */
|
|
131
|
-
--es-font: -
|
|
146
|
+
/* — type: the shell's face — */
|
|
147
|
+
--es-font: var(--font-sans);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Dark: the three `bg-gray-100` roles, re-pointed exactly as the shell's dark
|
|
151
|
+
theme re-points `.bg-gray-100` (to `--surface`). Shell tokens only. */
|
|
152
|
+
:is([data-theme="dark"], .dark) .es-editor {
|
|
153
|
+
--es-preview-bg: var(--surface);
|
|
154
|
+
--es-track-bg: var(--surface);
|
|
155
|
+
--es-chip-bg: var(--surface);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* ── Visually hidden ─────────────────────────────────────────────────────── */
|
|
159
|
+
/* Words a control is named by but does not draw (since efficient-easel issue 199
|
|
160
|
+
step 4, the shell's controls take their name from their content): the
|
|
161
|
+
device switch's names beside its glyphs, a drawn segment's name, a tab's
|
|
162
|
+
word where the panel is too narrow for it. Hidden from sight, never with
|
|
163
|
+
`display: none`, so they stay the control's accessible name. The one rule
|
|
164
|
+
of this sheet that is not a token: every easel sheet's markup may use it. */
|
|
165
|
+
.es-vh {
|
|
166
|
+
position: absolute;
|
|
167
|
+
width: 1px;
|
|
168
|
+
height: 1px;
|
|
169
|
+
padding: 0;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
clip: rect(0, 0, 0, 0);
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
border: 0;
|
|
132
174
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SaveWords } from '../words-
|
|
1
|
+
import { S as SaveWords } from '../words-CvFnwGSr.js';
|
|
2
2
|
import { N as NoticeWords, C as ChromeWords } from '../words-AHHfiaRY.js';
|
|
3
3
|
import { C as CopyWords } from '../words-XH0TvZPg.js';
|
|
4
4
|
import { D as DragWords } from '../words-BDignMl_.js';
|
|
@@ -11,10 +11,10 @@ import { ScreenWords } from '../screen/words.js';
|
|
|
11
11
|
export { ScreenAddWords } from '../screen/words.js';
|
|
12
12
|
import { S as StyleClipboardWords } from '../words-CnnHb9jo.js';
|
|
13
13
|
import { T as TextStylesWords } from '../words-CRYvAiHX.js';
|
|
14
|
-
import { T as TreeWords } from '../words-
|
|
15
|
-
import '../types-
|
|
16
|
-
import '../types-
|
|
17
|
-
import '../wordFit-
|
|
14
|
+
import { T as TreeWords } from '../words-Cl9xMUYY.js';
|
|
15
|
+
import '../types-Dt1CFR1S.js';
|
|
16
|
+
import '../types-CsgMwHHa.js';
|
|
17
|
+
import '../wordFit-7XpmhcaW.js';
|
|
18
18
|
import 'react';
|
|
19
19
|
import '../panelWidths-D9hTLR25.js';
|
|
20
20
|
import '../engine-DBxp_v6B.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{DEFAULT_EASEL_STRINGS,mergeEaselStrings}from"../chunk-
|
|
1
|
+
export{DEFAULT_EASEL_STRINGS,mergeEaselStrings}from"../chunk-ZNNATBDC.js";import"../chunk-M6F6LS3H.js";import"../chunk-ZAOM6PFH.js";import"../chunk-6WY6ZXJG.js";import"../chunk-E2O2MRZR.js";import"../chunk-AELNNAFM.js";import"../chunk-K56YDHYQ.js";import"../chunk-QTLAVDJE.js";import"../chunk-WK3AFPXY.js";import"../chunk-H6DDIBQ4.js";import"../chunk-ZJEBF4NB.js";import"../chunk-RE4LP46F.js";import"../chunk-2OAZYSWJ.js";import"../chunk-UH7IGZKF.js";import"../chunk-FPOKPNO4.js";import"../chunk-546BBOPE.js";import"../chunk-O2NLQBFX.js";
|
package/dist/strings/index.d.ts
CHANGED
|
@@ -10,16 +10,16 @@ export { LockWords } from '../edit-lock/index.js';
|
|
|
10
10
|
export { N as NodeMenuWords } from '../words-DMG4dYq2.js';
|
|
11
11
|
export { P as PanelWords } from '../words-BGrHZAJJ.js';
|
|
12
12
|
export { P as PickWords } from '../words-is_Vy6hn.js';
|
|
13
|
-
export { S as SaveWords } from '../words-
|
|
13
|
+
export { S as SaveWords } from '../words-CvFnwGSr.js';
|
|
14
14
|
export { ScreenAddWords, ScreenWords } from '../screen/words.js';
|
|
15
15
|
export { S as StyleClipboardWords } from '../words-CnnHb9jo.js';
|
|
16
16
|
export { T as TextStylesWords } from '../words-CRYvAiHX.js';
|
|
17
|
-
export { T as TreeWords } from '../words-
|
|
17
|
+
export { T as TreeWords } from '../words-Cl9xMUYY.js';
|
|
18
18
|
import '../markup/index.js';
|
|
19
19
|
import '../buckets-CuLM47h9.js';
|
|
20
|
-
import '../types-
|
|
21
|
-
import '../types-
|
|
22
|
-
import '../wordFit-
|
|
20
|
+
import '../types-Dt1CFR1S.js';
|
|
21
|
+
import '../types-CsgMwHHa.js';
|
|
22
|
+
import '../wordFit-7XpmhcaW.js';
|
|
23
23
|
import '../panelWidths-D9hTLR25.js';
|
|
24
24
|
import '../engine-DBxp_v6B.js';
|
|
25
25
|
|
package/dist/strings/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{DEFAULT_EASEL_STRINGS as r,mergeEaselStrings as n}from"../chunk-
|
|
1
|
+
import{DEFAULT_EASEL_STRINGS as r,mergeEaselStrings as n}from"../chunk-ZNNATBDC.js";export{DEFAULT_EASEL_STRINGS,mergeEaselStrings}from"../chunk-ZNNATBDC.js";import"../chunk-M6F6LS3H.js";import"../chunk-ZAOM6PFH.js";import"../chunk-6WY6ZXJG.js";import"../chunk-E2O2MRZR.js";import"../chunk-AELNNAFM.js";import"../chunk-K56YDHYQ.js";import"../chunk-QTLAVDJE.js";import"../chunk-WK3AFPXY.js";import"../chunk-H6DDIBQ4.js";import"../chunk-ZJEBF4NB.js";import"../chunk-RE4LP46F.js";import"../chunk-2OAZYSWJ.js";import"../chunk-UH7IGZKF.js";import"../chunk-FPOKPNO4.js";import"../chunk-546BBOPE.js";import{stringsContext as o}from"../chunk-MFIRYGHW.js";import"../chunk-O2NLQBFX.js";import{useContext as t,useMemo as c}from"react";import{jsx as i}from"react/jsx-runtime";function s({value:s,locale:u,children:m}){const e=o(),p=t(e),h=p?.strings??r,j=u??p?.locale??"en",k=c(()=>({strings:n(h,s),locale:j}),[h,s,j]);/* @__PURE__ */
|
|
2
2
|
return i(e.Provider,{value:k,children:m})}function u(){return t(o())?.strings??r}function m(){return t(o())?.locale??"en"}export{s as EaselStringsProvider,m as useEaselLocale,u as useEaselStrings};
|