efficient-easel 16.0.0 → 17.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.
Files changed (127) hide show
  1. package/README.md +23 -64
  2. package/dist/autosave/index.d.ts +4 -4
  3. package/dist/blocks/index.d.ts +2 -2
  4. package/dist/chrome/index.d.ts +3 -3
  5. package/dist/chrome/index.js +1 -1
  6. package/dist/{chunk-UVQR7W6I.js → chunk-3ERZNZ5S.js} +1 -1
  7. package/dist/{chunk-3Z2MVLCD.js → chunk-4ES5JGGX.js} +1 -1
  8. package/dist/{chunk-2H3W5OLQ.js → chunk-4UBYPRAS.js} +1 -1
  9. package/dist/chunk-7TOQCTHV.js +4 -0
  10. package/dist/chunk-BU2YSTLJ.js +14 -0
  11. package/dist/{chunk-VVPZMWJE.js → chunk-EL4F3IN7.js} +1 -1
  12. package/dist/chunk-EXCIHRAE.js +4 -0
  13. package/dist/{chunk-NBDMTIU2.js → chunk-FJL3MYPA.js} +2 -2
  14. package/dist/{chunk-IE55HNMA.js → chunk-GWIVPLOX.js} +11 -11
  15. package/dist/chunk-INIPQLPR.js +1 -0
  16. package/dist/{chunk-HM7S7H5H.js → chunk-JSH3XKEF.js} +1 -1
  17. package/dist/chunk-M2Z775ZC.js +1 -0
  18. package/dist/chunk-MI54XTWD.js +5 -0
  19. package/dist/chunk-MTNBJPXX.js +2 -0
  20. package/dist/{chunk-N2BVA6TS.js → chunk-NFLO4I2N.js} +1 -1
  21. package/dist/{chunk-P3XVBLZ6.js → chunk-OLRLHE5K.js} +4 -4
  22. package/dist/chunk-SHS6WCLL.js +1 -0
  23. package/dist/{chunk-PQRYAW2G.js → chunk-SPQOPWCL.js} +3 -3
  24. package/dist/{chunk-TZIIRGVY.js → chunk-U277UX5I.js} +1 -1
  25. package/dist/{chunk-63ZDVAVE.js → chunk-V63ERBLW.js} +1 -1
  26. package/dist/chunk-WR3EVON3.js +57 -0
  27. package/dist/{chunk-62VPYC7F.js → chunk-XDZHKYQX.js} +1 -1
  28. package/dist/chunk-XLUVTPKK.js +1 -0
  29. package/dist/{chunk-KFPCMMRK.js → chunk-Z72CYM3L.js} +1 -1
  30. package/dist/copy/index.js +23 -11
  31. package/dist/draw/client.js +1 -1
  32. package/dist/draw/index.js +1 -1
  33. package/dist/easel/index.d.ts +35 -6
  34. package/dist/easel/index.js +1 -1
  35. package/dist/fields/index.js +1 -1
  36. package/dist/gold/gold.css +1 -1
  37. package/dist/{host-DGmdCaNL.d.ts → host-Cxbhp0zg.d.ts} +0 -4
  38. package/dist/icons/index.d.ts +0 -2
  39. package/dist/node-ops/index.d.ts +2 -2
  40. package/dist/node-ops/index.js +1 -1
  41. package/dist/{plan-CGREINRO.d.ts → plan-2BLk7pWs.d.ts} +19 -1
  42. package/dist/rail/index.d.ts +2 -2
  43. package/dist/screen/components/AddBlockRow.js +1 -1
  44. package/dist/screen/components/AddSidePanel.js +1 -1
  45. package/dist/screen/components/MediaSidePanel.d.ts +3 -3
  46. package/dist/screen/components/MediaSidePanel.js +1 -1
  47. package/dist/screen/components/NodeContextMenu.d.ts +6 -6
  48. package/dist/screen/components/NodeContextMenu.js +1 -1
  49. package/dist/screen/components/PageEditGuardNotices.js +1 -1
  50. package/dist/screen/components/SaveControls.d.ts +7 -5
  51. package/dist/screen/components/SaveControls.js +1 -1
  52. package/dist/screen/components/ScreenChrome.js +1 -1
  53. package/dist/screen/components/ScreenDocumentContext.d.ts +3 -3
  54. package/dist/screen/components/ScreenDocumentContext.js +1 -1
  55. package/dist/screen/components/ScreenMount.d.ts +5 -5
  56. package/dist/screen/components/ScreenMount.js +1 -1
  57. package/dist/screen/components/ScreenStoreProvider.d.ts +5 -5
  58. package/dist/screen/components/ScreenStoreProvider.js +1 -1
  59. package/dist/screen/components/SectionScreenShell.js +15 -15
  60. package/dist/screen/components/SidePanelHead.js +1 -1
  61. package/dist/screen/components/panel-widths.js +1 -1
  62. package/dist/screen/components/usePartBridge.d.ts +5 -5
  63. package/dist/screen/components/usePartBridge.js +1 -1
  64. package/dist/screen/index.d.ts +6 -6
  65. package/dist/screen/index.js +1 -1
  66. package/dist/screen/lib/admin-bridge.d.ts +2 -2
  67. package/dist/screen/lib/document-addressing.d.ts +3 -3
  68. package/dist/screen/lib/document-hooks.d.ts +2 -2
  69. package/dist/screen/lib/host-chrome.d.ts +0 -10
  70. package/dist/screen/lib/host.d.ts +3 -3
  71. package/dist/screen/lib/key-scope.js +1 -1
  72. package/dist/screen/lib/media-panel.d.ts +3 -3
  73. package/dist/screen/lib/media-picker.d.ts +3 -3
  74. package/dist/screen/lib/page-lock.d.ts +2 -2
  75. package/dist/screen/lib/puck/block-choice.d.ts +13 -1
  76. package/dist/screen/lib/puck/block-choice.js +1 -1
  77. package/dist/screen/lib/puck/device-fields.js +1 -1
  78. package/dist/screen/lib/puck/palette-sections.d.ts +2 -2
  79. package/dist/screen/lib/puck/preview-dom.js +1 -1
  80. package/dist/screen/lib/puck/section-doc.d.ts +2 -2
  81. package/dist/screen/lib/puck/style-clipboard.d.ts +5 -5
  82. package/dist/screen/lib/puck/style-clipboard.js +1 -1
  83. package/dist/screen/lib/puck/use-section-ops.d.ts +2 -2
  84. package/dist/screen/lib/puck/use-section-ops.js +1 -1
  85. package/dist/screen/lib/save-status.d.ts +2 -2
  86. package/dist/screen/lib/screen-parts.d.ts +26 -28
  87. package/dist/screen/lib/screen-parts.js +1 -1
  88. package/dist/screen/lib/section-templates.d.ts +2 -2
  89. package/dist/screen/lib/session-context.d.ts +2 -2
  90. package/dist/screen/lib/session.d.ts +2 -2
  91. package/dist/screen/words.d.ts +0 -2
  92. package/dist/screen/words.js +1 -1
  93. package/dist/shell/shell.css +6 -1
  94. package/dist/strings/index.d.ts +134 -20
  95. package/dist/strings/index.js +2 -2
  96. package/dist/text-styles/index.js +20 -20
  97. package/dist/{types-CsgMwHHa.d.ts → types-Cy7rdmXt.d.ts} +1 -1
  98. package/dist/{types-DGyDHiJV.d.ts → types-DT8ywrFQ.d.ts} +1 -1
  99. package/dist/{types-NQozKWEz.d.ts → types-kR_4wYBw.d.ts} +1 -1
  100. package/dist/{useNodeOps-BHRkUFfG.d.ts → useNodeOps-B0XZ8Bl8.d.ts} +1 -1
  101. package/dist/{words-pgIK0I6g.d.ts → words-DkWcK1rh.d.ts} +2 -2
  102. package/package.json +2 -41
  103. package/dist/chunk-ECM5F6JJ.js +0 -1
  104. package/dist/chunk-GGC72GS4.js +0 -1
  105. package/dist/chunk-H4UMY7QF.js +0 -13
  106. package/dist/chunk-HMXIAMCU.js +0 -1
  107. package/dist/chunk-HQ4VVRIC.js +0 -1
  108. package/dist/chunk-JD5HXBEX.js +0 -1
  109. package/dist/chunk-N2B32EZB.js +0 -5
  110. package/dist/chunk-OK7OH2ZN.js +0 -4
  111. package/dist/chunk-RQBIFINA.js +0 -57
  112. package/dist/chunk-RSKHAHPJ.js +0 -4
  113. package/dist/chunk-SMM3ST7A.js +0 -13
  114. package/dist/chunk-XT6DOSHO.js +0 -1
  115. package/dist/chunk-ZZ64CEC2.js +0 -2
  116. package/dist/gold/index.d.ts +0 -283
  117. package/dist/gold/index.js +0 -1
  118. package/dist/icons/meanings.d.ts +0 -1
  119. package/dist/icons/meanings.js +0 -1
  120. package/dist/index.d.ts +0 -6
  121. package/dist/index.js +0 -1
  122. package/dist/markup/index.d.ts +0 -1
  123. package/dist/markup/index.js +0 -1
  124. package/dist/shell/index.d.ts +0 -195
  125. package/dist/shell/index.js +0 -1
  126. package/dist/strings/catalogue.d.ts +0 -139
  127. package/dist/strings/catalogue.js +0 -1
@@ -1,139 +0,0 @@
1
- import { S as SaveWords } from '../words-pgIK0I6g.js';
2
- import { N as NoticeWords, C as ChromeWords } from '../words-BpiVrsW5.js';
3
- import { C as CopyWords } from '../words-D-yhjdOg.js';
4
- import { D as DragWords } from '../words-CvwYvkJm.js';
5
- import { LockWords } from '../edit-lock/index.js';
6
- import { F as FieldsWords } from '../words-vhnV8sM7.js';
7
- import { N as NodeMenuWords } from '../words-DMG4dYq2.js';
8
- import { P as PanelWords } from '../words-zH1H0WFw.js';
9
- import { P as PickWords } from '../words-DWvCJXwR.js';
10
- import { ScreenWords } from '../screen/words.js';
11
- export { ScreenAddWords } from '../screen/words.js';
12
- import { S as StyleClipboardWords } from '../words-CnnHb9jo.js';
13
- import { T as TextStylesWords } from '../words-gIDCeRv3.js';
14
- import { T as TreeWords } from '../words-Cl9xMUYY.js';
15
- import '../types-DGyDHiJV.js';
16
- import '../types-CsgMwHHa.js';
17
- import '../wordFit-7XpmhcaW.js';
18
- import 'react';
19
- import '../panelWidths-D9hTLR25.js';
20
- import '../engine-CvXpFE86.js';
21
- import 'efficient-shell/markup';
22
- import '../buckets-Tj-nkBpg.js';
23
-
24
- /**
25
- * The easel canvas's own words (`efficient-easel/strings`, 0.95.0): what the
26
- * frame is called when the host does not name it (`title`), and the name of
27
- * the bar of text tools that floats above words typed on the canvas.
28
- *
29
- * A plain module with no import.
30
- */
31
- type CanvasWords = {
32
- /** The canvas frame's accessible name. */
33
- frame: string;
34
- /** The floating bar of text tools over the words being typed (its group's name). */
35
- textTools: string;
36
- };
37
-
38
- /**
39
- * The rail's own words. There is one: what the toolbar is called when the host
40
- * does not name it (`ariaLabel`). Every other word on the rail is an item's
41
- * `label`, and those are the host's.
42
- *
43
- * A plain module with no import, so the rail stays the leaf it is
44
- * (`tests/rail-leaf-safety.test.tsx`). It is NOT exported from `./index`: the
45
- * rail's runtime exports are pinned (`tests/rail-public-shape.test.tsx`), and a
46
- * host reads these through `efficient-easel/strings`.
47
- */
48
- type RailWords = {
49
- /** The toolbar's accessible name. */
50
- label: string;
51
- };
52
-
53
- /**
54
- * THE ENGINE'S OWN WORDS, as one catalogue a host can translate (0.95.0).
55
- *
56
- * Every word and sentence this package itself draws or returns — visible text,
57
- * `aria-label`s, tooltips, placeholders — is an entry here, grouped by the
58
- * module that says it. What a HOST supplies (a block's name, a field's label, a
59
- * tile's caption, the document's noun) was never the engine's and is not here —
60
- * with one exception: the assembled screen (`efficient-easel/screen`) draws the
61
- * edit notice itself, so the noun it says it with is a word of its own group,
62
- * the website's "page" until a host says another.
63
- *
64
- * - A plain word is a `string`.
65
- * - Anything with a value in it, or a count that can be one or many, is a
66
- * function: the host puts the value where its language wants it and does
67
- * its own plural.
68
- *
69
- * ── Where the English lives ───────────────────────────────────────────────
70
- * In each module's own `words.ts`, NOT here. A leaf may only import its own
71
- * lane (`tests/*-leaf-safety`), and several are held to a bundle that never
72
- * spells a browser global — while one sentence below does ("another tab or
73
- * window"). So a module owns its group and its defaults, and this file only
74
- * puts the groups side by side. `DEFAULT_EASEL_STRINGS.pick` IS the pickers'
75
- * own default object, not a copy of it.
76
- *
77
- * ── Framework-free ────────────────────────────────────────────────────────
78
- * No React, no browser global, nothing run at import but object literals
79
- * (`tests/strings-leaf-safety.test.ts`). A server-side test in a host imports
80
- * this to check its own catalogues against the engine's keys; it is published
81
- * on its own as `efficient-easel/strings/catalogue`. The provider and the
82
- * hooks are in ./provider.
83
- */
84
-
85
- /** Every word the engine says, by the module that says it. */
86
- interface EaselStrings {
87
- /** `efficient-easel/chrome` — `EditNotice`: who holds the document, a refused save. */
88
- notice: NoticeWords;
89
- /** `efficient-easel/edit-lock` — "2 minutes ago", "Someone else". */
90
- lock: LockWords;
91
- /** `efficient-easel/autosave` — the save pill. */
92
- save: SaveWords;
93
- /** `efficient-easel/chrome` — the device switch, "up one level", the panel grip. */
94
- chrome: ChromeWords;
95
- /** `efficient-easel/rail` — the toolbar's name. */
96
- rail: RailWords;
97
- /** `efficient-easel/tree` — the drag hint and the caret. */
98
- tree: TreeWords;
99
- /** `efficient-easel/panel` — the tab strip's name and each tab's word. */
100
- panel: PanelWords;
101
- /** `efficient-easel/fields` — the number box, the dropdown, the list field. */
102
- fields: FieldsWords;
103
- /** `efficient-easel/pick` — the colour row and the image box. */
104
- pick: PickWords;
105
- /** `efficient-easel/drag` — the Add panel and the canvas layer. */
106
- drag: DragWords;
107
- /** `efficient-easel/node-ops` — the right-click rows. */
108
- menu: NodeMenuWords;
109
- /** `efficient-easel/style-clipboard` — Copy style, Paste style and what a paste says. */
110
- styleClipboard: StyleClipboardWords;
111
- /** `efficient-easel/copy` — the formatting bar, alignment, the link window, each mark. */
112
- copy: CopyWords;
113
- /** `efficient-easel/easel` — the canvas frame's name. */
114
- canvas: CanvasWords;
115
- /** `efficient-easel/text-styles` — the Email styles / Site styles list (E6). */
116
- textStyles: TextStylesWords;
117
- /** `efficient-easel/screen` — a document opening, one that will not, the
118
- * notice's word for the document, the Layers tree's frame, the Add panel,
119
- * the main button and the block keys. */
120
- screen: ScreenWords;
121
- }
122
- /** Today's English, word for word. */
123
- declare const DEFAULT_EASEL_STRINGS: EaselStrings;
124
- /**
125
- * A catalogue with any part left out. A function entry is taken whole or not
126
- * at all: it has no "part" to leave out.
127
- */
128
- type DeepPartial<T> = T extends (...args: never[]) => unknown ? T : T extends object ? {
129
- [K in keyof T]?: DeepPartial<T[K]>;
130
- } : T;
131
- /**
132
- * `defaults` with every entry `partial` gives laid over it. Whatever `partial`
133
- * leaves out (or gives as `undefined` / `null`) keeps the default, so a host
134
- * that has translated half the catalogue shows the other half in English
135
- * rather than as nothing. Neither argument is changed.
136
- */
137
- declare function mergeEaselStrings(defaults: EaselStrings, partial?: DeepPartial<EaselStrings> | null): EaselStrings;
138
-
139
- export { type CanvasWords, ChromeWords, CopyWords, DEFAULT_EASEL_STRINGS, type DeepPartial, DragWords, type EaselStrings, FieldsWords, LockWords, NodeMenuWords, NoticeWords, PanelWords, PickWords, type RailWords, SaveWords, ScreenWords, StyleClipboardWords, TextStylesWords, TreeWords, mergeEaselStrings };
@@ -1 +0,0 @@
1
- export{DEFAULT_EASEL_STRINGS,mergeEaselStrings}from"../chunk-JD5HXBEX.js";import"../chunk-OGH6CC3E.js";import"../chunk-OFBZOI6W.js";import"../chunk-VVPZMWJE.js";import"../chunk-6WY6ZXJG.js";import"../chunk-WK3AFPXY.js";import"../chunk-TBY3DFKS.js";import"../chunk-K56YDHYQ.js";import"../chunk-KFV7N2DJ.js";import"../chunk-H6DDIBQ4.js";import"../chunk-Z6PVRXVY.js";import"../chunk-RE4LP46F.js";import"../chunk-2OAZYSWJ.js";import"../chunk-B4JN227A.js";import"../chunk-WRFD4EXD.js";import"../chunk-KAML3KQH.js";