@elaraai/e3-ui-components 1.0.83 → 1.0.85

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 (190) hide show
  1. package/README.md +113 -6
  2. package/dist/components/DataTaskPreview.d.ts +35 -1
  3. package/dist/components/DataTaskPreview.d.ts.map +1 -1
  4. package/dist/components/DatasetPreview.d.ts +16 -0
  5. package/dist/components/DatasetPreview.d.ts.map +1 -1
  6. package/dist/components/InputPreview.d.ts +12 -0
  7. package/dist/components/InputPreview.d.ts.map +1 -1
  8. package/dist/components/PagedDatasetPreview.d.ts +15 -0
  9. package/dist/components/PagedDatasetPreview.d.ts.map +1 -1
  10. package/dist/components/TaskLogs.d.ts +19 -0
  11. package/dist/components/TaskLogs.d.ts.map +1 -1
  12. package/dist/components/TaskPreview.d.ts +24 -0
  13. package/dist/components/TaskPreview.d.ts.map +1 -1
  14. package/dist/components/UITaskPreview.d.ts +4 -1
  15. package/dist/components/UITaskPreview.d.ts.map +1 -1
  16. package/dist/components/VirtualizedLogViewer.d.ts +29 -1
  17. package/dist/components/VirtualizedLogViewer.d.ts.map +1 -1
  18. package/dist/components/controlled-search.d.ts +22 -0
  19. package/dist/components/controlled-search.d.ts.map +1 -0
  20. package/dist/components/preview-controls.d.ts +73 -0
  21. package/dist/components/preview-controls.d.ts.map +1 -0
  22. package/dist/diff/index.d.ts.map +1 -1
  23. package/dist/experiment/index.d.ts.map +1 -1
  24. package/dist/hooks/executions.d.ts +17 -0
  25. package/dist/hooks/executions.d.ts.map +1 -1
  26. package/dist/hooks/index.d.ts +1 -1
  27. package/dist/hooks/index.d.ts.map +1 -1
  28. package/dist/hooks/useDatasetValue.d.ts +19 -1
  29. package/dist/hooks/useDatasetValue.d.ts.map +1 -1
  30. package/dist/hooks/useTaskLogsHook.d.ts +67 -3
  31. package/dist/hooks/useTaskLogsHook.d.ts.map +1 -1
  32. package/dist/in-memory-call-7_3frW52.js +615 -0
  33. package/dist/in-memory-call-7_3frW52.js.map +1 -0
  34. package/dist/in-memory-call-_r5DJotS.cjs +614 -0
  35. package/dist/in-memory-call-_r5DJotS.cjs.map +1 -0
  36. package/dist/index.cjs +25860 -5731
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.ts +14 -2
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +28383 -8253
  41. package/dist/index.js.map +1 -1
  42. package/dist/platform/bind-runtime.d.ts +18 -3
  43. package/dist/platform/bind-runtime.d.ts.map +1 -1
  44. package/dist/platform/dataset-hooks.d.ts +15 -3
  45. package/dist/platform/dataset-hooks.d.ts.map +1 -1
  46. package/dist/platform/dataset-store.d.ts +35 -7
  47. package/dist/platform/dataset-store.d.ts.map +1 -1
  48. package/dist/platform/e3-config.d.ts +26 -2
  49. package/dist/platform/e3-config.d.ts.map +1 -1
  50. package/dist/platform/func-runtime.d.ts +11 -5
  51. package/dist/platform/func-runtime.d.ts.map +1 -1
  52. package/dist/platform/index.d.ts +2 -2
  53. package/dist/platform/index.d.ts.map +1 -1
  54. package/dist/platform/paged-runtime.d.ts +46 -9
  55. package/dist/platform/paged-runtime.d.ts.map +1 -1
  56. package/dist/platform/record-runtime.d.ts +45 -7
  57. package/dist/platform/record-runtime.d.ts.map +1 -1
  58. package/dist/platform/recovery.d.ts +44 -0
  59. package/dist/platform/recovery.d.ts.map +1 -0
  60. package/dist/platform/staged-store.d.ts +16 -0
  61. package/dist/platform/staged-store.d.ts.map +1 -1
  62. package/dist/platform/tracked-channel.d.ts +12 -0
  63. package/dist/platform/tracked-channel.d.ts.map +1 -1
  64. package/dist/query/about.d.ts +50 -0
  65. package/dist/query/about.d.ts.map +1 -0
  66. package/dist/query/autocomplete.d.ts +112 -0
  67. package/dist/query/autocomplete.d.ts.map +1 -0
  68. package/dist/query/builder.d.ts +29 -0
  69. package/dist/query/builder.d.ts.map +1 -0
  70. package/dist/query/calls.d.ts +46 -0
  71. package/dist/query/calls.d.ts.map +1 -0
  72. package/dist/query/datasets-tab.d.ts +52 -0
  73. package/dist/query/datasets-tab.d.ts.map +1 -0
  74. package/dist/query/downloads.d.ts +29 -0
  75. package/dist/query/downloads.d.ts.map +1 -0
  76. package/dist/query/drops.d.ts +28 -0
  77. package/dist/query/drops.d.ts.map +1 -0
  78. package/dist/query/foot.d.ts +22 -0
  79. package/dist/query/foot.d.ts.map +1 -0
  80. package/dist/query/hooks.d.ts +265 -0
  81. package/dist/query/hooks.d.ts.map +1 -0
  82. package/dist/query/in-memory-call.d.ts +150 -0
  83. package/dist/query/in-memory-call.d.ts.map +1 -0
  84. package/dist/query/jq-editor.d.ts +34 -0
  85. package/dist/query/jq-editor.d.ts.map +1 -0
  86. package/dist/query/library-tab.d.ts +33 -0
  87. package/dist/query/library-tab.d.ts.map +1 -0
  88. package/dist/query/library.d.ts +20 -0
  89. package/dist/query/library.d.ts.map +1 -0
  90. package/dist/query/model/cards.d.ts +179 -0
  91. package/dist/query/model/cards.d.ts.map +1 -0
  92. package/dist/query/model/index.d.ts +19 -0
  93. package/dist/query/model/index.d.ts.map +1 -0
  94. package/dist/query/model/messages.d.ts +1253 -0
  95. package/dist/query/model/messages.d.ts.map +1 -0
  96. package/dist/query/model/refs.d.ts +92 -0
  97. package/dist/query/model/refs.d.ts.map +1 -0
  98. package/dist/query/model/slots.d.ts +213 -0
  99. package/dist/query/model/slots.d.ts.map +1 -0
  100. package/dist/query/model/summaries.d.ts +104 -0
  101. package/dist/query/model/summaries.d.ts.map +1 -0
  102. package/dist/query/model/words.d.ts +331 -0
  103. package/dist/query/model/words.d.ts.map +1 -0
  104. package/dist/query/one-shot.d.ts +266 -0
  105. package/dist/query/one-shot.d.ts.map +1 -0
  106. package/dist/query/open-query.d.ts +214 -0
  107. package/dist/query/open-query.d.ts.map +1 -0
  108. package/dist/query/parts.d.ts +115 -0
  109. package/dist/query/parts.d.ts.map +1 -0
  110. package/dist/query/plan-popover.d.ts +22 -0
  111. package/dist/query/plan-popover.d.ts.map +1 -0
  112. package/dist/query/plan.d.ts +353 -0
  113. package/dist/query/plan.d.ts.map +1 -0
  114. package/dist/query/query-east.d.ts +21 -0
  115. package/dist/query/query-east.d.ts.map +1 -0
  116. package/dist/query/query-tab.d.ts +21 -0
  117. package/dist/query/query-tab.d.ts.map +1 -0
  118. package/dist/query/results-table.d.ts +153 -0
  119. package/dist/query/results-table.d.ts.map +1 -0
  120. package/dist/query/results.d.ts +137 -0
  121. package/dist/query/results.d.ts.map +1 -0
  122. package/dist/query/run.d.ts +199 -0
  123. package/dist/query/run.d.ts.map +1 -0
  124. package/dist/query/save-popover.d.ts +29 -0
  125. package/dist/query/save-popover.d.ts.map +1 -0
  126. package/dist/query/session.d.ts +409 -0
  127. package/dist/query/session.d.ts.map +1 -0
  128. package/dist/query/shape-line.d.ts +21 -0
  129. package/dist/query/shape-line.d.ts.map +1 -0
  130. package/dist/query/source.d.ts +21 -0
  131. package/dist/query/source.d.ts.map +1 -0
  132. package/dist/query/status-line.d.ts +48 -0
  133. package/dist/query/status-line.d.ts.map +1 -0
  134. package/dist/query/step-card.d.ts +30 -0
  135. package/dist/query/step-card.d.ts.map +1 -0
  136. package/dist/query/steps/check.d.ts +162 -0
  137. package/dist/query/steps/check.d.ts.map +1 -0
  138. package/dist/query/steps/count.d.ts +49 -0
  139. package/dist/query/steps/count.d.ts.map +1 -0
  140. package/dist/query/steps/edit.d.ts +108 -0
  141. package/dist/query/steps/edit.d.ts.map +1 -0
  142. package/dist/query/steps/fields.d.ts +101 -0
  143. package/dist/query/steps/fields.d.ts.map +1 -0
  144. package/dist/query/steps/index.d.ts +22 -0
  145. package/dist/query/steps/index.d.ts.map +1 -0
  146. package/dist/query/steps/jq.d.ts +188 -0
  147. package/dist/query/steps/jq.d.ts.map +1 -0
  148. package/dist/query/steps/parse.d.ts +38 -0
  149. package/dist/query/steps/parse.d.ts.map +1 -0
  150. package/dist/query/steps/print.d.ts +195 -0
  151. package/dist/query/steps/print.d.ts.map +1 -0
  152. package/dist/query/steps/shape.d.ts +90 -0
  153. package/dist/query/steps/shape.d.ts.map +1 -0
  154. package/dist/query/steps/values.d.ts +85 -0
  155. package/dist/query/steps/values.d.ts.map +1 -0
  156. package/dist/query/toolbar.d.ts +56 -0
  157. package/dist/query/toolbar.d.ts.map +1 -0
  158. package/dist/query/use-query-editor.d.ts +153 -0
  159. package/dist/query/use-query-editor.d.ts.map +1 -0
  160. package/dist/query/use-query-session.d.ts +55 -0
  161. package/dist/query/use-query-session.d.ts.map +1 -0
  162. package/dist/query/words.d.ts +60 -0
  163. package/dist/query/words.d.ts.map +1 -0
  164. package/dist/query.cjs +16 -0
  165. package/dist/query.cjs.map +1 -0
  166. package/dist/query.js +16 -0
  167. package/dist/query.js.map +1 -0
  168. package/dist/shared/name-popover.d.ts +38 -0
  169. package/dist/shared/name-popover.d.ts.map +1 -0
  170. package/dist/studio/builder.d.ts +20 -0
  171. package/dist/studio/builder.d.ts.map +1 -0
  172. package/dist/studio/inspector.d.ts +18 -0
  173. package/dist/studio/inspector.d.ts.map +1 -0
  174. package/dist/studio/library.d.ts +20 -0
  175. package/dist/studio/library.d.ts.map +1 -0
  176. package/dist/studio/messages.d.ts +318 -0
  177. package/dist/studio/messages.d.ts.map +1 -0
  178. package/dist/studio/open-page.d.ts +13 -0
  179. package/dist/studio/open-page.d.ts.map +1 -0
  180. package/dist/studio/page.d.ts +61 -0
  181. package/dist/studio/page.d.ts.map +1 -0
  182. package/dist/studio/palette.d.ts +41 -0
  183. package/dist/studio/palette.d.ts.map +1 -0
  184. package/dist/studio/publish.d.ts +21 -0
  185. package/dist/studio/publish.d.ts.map +1 -0
  186. package/dist/studio/save-template.d.ts +18 -0
  187. package/dist/studio/save-template.d.ts.map +1 -0
  188. package/dist/studio/studio-east.d.ts +45 -0
  189. package/dist/studio/studio-east.d.ts.map +1 -0
  190. package/package.json +19 -14
@@ -0,0 +1,61 @@
1
+ import { ValueTypeOf } from '@elaraai/east';
2
+ import { StudioCellType, StudioComponentType, StudioPageComponent } from '@elaraai/e3-ui/internal';
3
+ /** The renderer's payload, decoded. */
4
+ type StudioPageValue = ValueTypeOf<typeof StudioPageComponent.schema>;
5
+ /** A listed component. */
6
+ type Component = ValueTypeOf<typeof StudioComponentType>;
7
+ /** One placement. */
8
+ type Cell = ValueTypeOf<typeof StudioCellType>;
9
+ /** Props of {@link StudioPlacement}. */
10
+ export interface StudioPlacementProps {
11
+ /** The key of the component it places. */
12
+ component: string;
13
+ /** The listed components under that key — one, when the surface lists it once. */
14
+ listed: readonly Component[];
15
+ /** Where its component's UI keeps its state. */
16
+ storageKey: string;
17
+ }
18
+ /**
19
+ * One placement's content: its component's own UI; a placeholder naming its
20
+ * component's key when the surface lists none under it; an error naming the
21
+ * key when two listed components share it.
22
+ *
23
+ * @param props - The component's key and the components listed under it
24
+ * @returns The content
25
+ */
26
+ export declare function StudioPlacement({ component: key, listed, storageKey }: StudioPlacementProps): import("react/jsx-runtime").JSX.Element;
27
+ /** Props of {@link StudioLayout}. */
28
+ export interface StudioLayoutProps {
29
+ /** The layout's placements, in order. */
30
+ cells: readonly Cell[];
31
+ /** The components the surface lists. */
32
+ components: readonly Component[];
33
+ /** Where its placements' UIs keep their state. */
34
+ storageKey: string;
35
+ }
36
+ /**
37
+ * A layout's placements on the snap grid, each its component's own UI — a
38
+ * frameless component bare, a placement the surface cannot draw its
39
+ * placeholder, in a tile. Under a narrow container the tiles stack in row
40
+ * order.
41
+ *
42
+ * @param props - The placements and the listed components
43
+ * @returns The grid
44
+ */
45
+ export declare function StudioLayout({ cells, components, storageKey }: StudioLayoutProps): import("react/jsx-runtime").JSX.Element;
46
+ /** Props of {@link EastChakraStudioPage}. */
47
+ export interface EastChakraStudioPageProps {
48
+ /** The payload, decoded. */
49
+ value: StudioPageValue;
50
+ /** The structural storage key. */
51
+ storageKey: string;
52
+ }
53
+ /**
54
+ * Renders one page — see the module docs.
55
+ *
56
+ * @param props - The payload and its storage key
57
+ * @returns The page
58
+ */
59
+ export declare const EastChakraStudioPage: import('react').NamedExoticComponent<EastChakraStudioPageProps>;
60
+ export {};
61
+ //# sourceMappingURL=page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../src/studio/page.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAoBH,OAAO,EAA2B,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAkC,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAanI,uCAAuC;AACvC,KAAK,eAAe,GAAG,WAAW,CAAC,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC;AACtE,0BAA0B;AAC1B,KAAK,SAAS,GAAG,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACzD,qBAAqB;AACrB,KAAK,IAAI,GAAG,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AA6B/C,wCAAwC;AACxC,MAAM,WAAW,oBAAoB;IACjC,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,kFAAkF;IAClF,MAAM,EAAE,SAAS,SAAS,EAAE,CAAC;IAC7B,gDAAgD;IAChD,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,oBAAoB,2CAa3F;AAED,qCAAqC;AACrC,MAAM,WAAW,iBAAiB;IAC9B,yCAAyC;IACzC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IACvB,wCAAwC;IACxC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;IACjC,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,iBAAiB,2CA+BhF;AAED,6CAA6C;AAC7C,MAAM,WAAW,yBAAyB;IACtC,4BAA4B;IAC5B,KAAK,EAAE,eAAe,CAAC;IACvB,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,iEA2B2D,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { ValueTypeOf } from '@elaraai/east';
2
+ import { PaletteCardType, PalettePageType, StudioComponentType } from '@elaraai/e3-ui/internal';
3
+ import { BuilderFrameDock } from '@elaraai/east-ui-components';
4
+ /** A listed component. */
5
+ type Component = ValueTypeOf<typeof StudioComponentType>;
6
+ /** A component's card, as East computed it. */
7
+ type PaletteCard = ValueTypeOf<typeof PaletteCardType>;
8
+ /** A page of the project, as East computed it. */
9
+ type PalettePage = ValueTypeOf<typeof PalettePageType>;
10
+ /** What {@link useStudioPalette} lists, and what its clicks do. */
11
+ export interface StudioPaletteProps {
12
+ /** The components the palette offers — the listed, less the deprecated — in the surface's order. */
13
+ components: readonly Component[];
14
+ /** Each one's card: its meta line, and whether it is placed. */
15
+ cards: ReadonlyMap<string, PaletteCard>;
16
+ /** The project's pages, in key order. */
17
+ pages: readonly PalettePage[];
18
+ /** The open page's name in the project. */
19
+ open: string;
20
+ /** The ids of the palette's libraries — the components library's, which the canvas takes cards from, and the pages'. */
21
+ ids: {
22
+ components: string;
23
+ pages: string;
24
+ };
25
+ /** Selects the component's first placement on the page. */
26
+ onSelect: (component: string) => void;
27
+ /** Opens a page of the project. */
28
+ onOpen: (page: string) => void;
29
+ /** Where the palette's libraries keep their state. */
30
+ storageKey: string;
31
+ }
32
+ /**
33
+ * The builder's palette, as the pane the canvas's frame draws — see the
34
+ * module docs.
35
+ *
36
+ * @param props - The components and pages it lists, and what its clicks do
37
+ * @returns The palette's pane: the Components and Pages tabs, 264px wide
38
+ */
39
+ export declare function useStudioPalette({ components, cards, pages, open, ids, onSelect, onOpen, storageKey, }: StudioPaletteProps): BuilderFrameDock;
40
+ export {};
41
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
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UAAU,GACpE,EAAE,kBAAkB,GAAG,gBAAgB,CAuGvC"}
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from 'react';
2
+ import { ValueTypeOf } from '@elaraai/east';
3
+ import { StudioPublishPayloadType } from '@elaraai/e3-ui/internal';
4
+ /** The publish preview, as the builder draws it. */
5
+ type StudioPublishValue = ValueTypeOf<typeof StudioPublishPayloadType>;
6
+ /** Props of {@link StudioPublishPreview}. */
7
+ export interface StudioPublishPreviewProps {
8
+ /** Where the page stands, what changed, the words the aside shows, and the actions. */
9
+ value: StudioPublishValue;
10
+ /** The page as it will publish. */
11
+ page: ReactNode;
12
+ }
13
+ /**
14
+ * Renders the publish preview — see the module docs.
15
+ *
16
+ * @param props - What the preview shows and does, and the page as it will publish
17
+ * @returns The publish preview
18
+ */
19
+ export declare const StudioPublishPreview: import('react').NamedExoticComponent<StudioPublishPreviewProps>;
20
+ export {};
21
+ //# sourceMappingURL=publish.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../src/studio/publish.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAkD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAOnE,oDAAoD;AACpD,KAAK,kBAAkB,GAAG,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAuBvE,6CAA6C;AAC7C,MAAM,WAAW,yBAAyB;IACtC,uFAAuF;IACvF,KAAK,EAAE,kBAAkB,CAAC;IAC1B,mCAAmC;IACnC,IAAI,EAAE,SAAS,CAAC;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,iEA+L/B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ValueTypeOf } from '@elaraai/east';
2
+ import { StudioSaveTemplatePayloadType } from '@elaraai/e3-ui/internal';
3
+ /** Save as template, as the builder draws it. */
4
+ type StudioSaveTemplateValue = ValueTypeOf<typeof StudioSaveTemplatePayloadType>;
5
+ /** Props of {@link StudioSaveTemplate}. */
6
+ export interface StudioSaveTemplateProps {
7
+ /** The open page's title, whether it can be saved, the names taken, and the save. */
8
+ value: StudioSaveTemplateValue;
9
+ }
10
+ /**
11
+ * Renders Save as template — see the module docs.
12
+ *
13
+ * @param props - What it saves, and how
14
+ * @returns The button, and its popover while open
15
+ */
16
+ export declare const StudioSaveTemplate: import('react').NamedExoticComponent<StudioSaveTemplateProps>;
17
+ export {};
18
+ //# sourceMappingURL=save-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"save-template.d.ts","sourceRoot":"","sources":["../../src/studio/save-template.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAmBH,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAKxE,iDAAiD;AACjD,KAAK,uBAAuB,GAAG,WAAW,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEjF,2CAA2C;AAC3C,MAAM,WAAW,uBAAuB;IACpC,qFAAqF;IACrF,KAAK,EAAE,uBAAuB,CAAC;CAClC;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,+DA6B7B,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { TypeOf, ValueTypeOf } from '@elaraai/east';
2
+ import { Studio, canvasTiles, inspectorSelection, libraryPages, libraryProjects, libraryTemplates, nameWriteRefusal, paletteCards, palettePages, publishRefusal, publishSummary, saveCells } from '@elaraai/e3-ui/internal';
3
+ /** The JavaScript function an East function compiles to. */
4
+ type Compiled<F> = ValueTypeOf<TypeOf<F>>;
5
+ /** The Studio's compiled East — see the module docs. */
6
+ export interface StudioEast {
7
+ /** Each listed component's palette card. */
8
+ paletteCards: Compiled<typeof paletteCards>;
9
+ /** A project's pages, as the palette lists them. */
10
+ palettePages: Compiled<typeof palettePages>;
11
+ /** Each listed component's tile on the canvas. */
12
+ canvasTiles: Compiled<typeof canvasTiles>;
13
+ /** The selected placement, as the inspector shows it. */
14
+ inspectorSelection: Compiled<typeof inspectorSelection>;
15
+ /** What the publish preview shows of the open entry. */
16
+ publishSummary: Compiled<typeof publishSummary>;
17
+ /** What refused a publish. */
18
+ publishRefusal: Compiled<typeof publishRefusal>;
19
+ /** The projects the record holds. */
20
+ libraryProjects: Compiled<typeof libraryProjects>;
21
+ /** A project's pages, as the page library draws them. */
22
+ libraryPages: Compiled<typeof libraryPages>;
23
+ /** A project's templates, as the page library draws them. */
24
+ libraryTemplates: Compiled<typeof libraryTemplates>;
25
+ /** What refused a write under a new name. */
26
+ nameWriteRefusal: Compiled<typeof nameWriteRefusal>;
27
+ /** The changes from one layout of a page to another. */
28
+ changes: Compiled<typeof Studio.changes>;
29
+ /** The patch that publishes a page. */
30
+ publish: Compiled<typeof Studio.publish>;
31
+ /** The patch that starts a page. */
32
+ newPage: Compiled<typeof Studio.newPage>;
33
+ /** The patch that saves a page's draft as a template. */
34
+ saveTemplate: Compiled<typeof Studio.saveTemplate>;
35
+ /** The canvas's Apply: a batch of placements, one patch through the record's patch write. */
36
+ save: Compiled<typeof saveCells>;
37
+ }
38
+ /**
39
+ * The Studio's East, compiled on first use.
40
+ *
41
+ * @returns The compiled functions
42
+ */
43
+ export declare function studioEast(): StudioEast;
44
+ export {};
45
+ //# sourceMappingURL=studio-east.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studio-east.d.ts","sourceRoot":"","sources":["../../src/studio/studio-east.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EACH,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ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zC,yDAAyD;IACzD,YAAY,EAAE,QAAQ,CAAC,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC;IACnD,6FAA6F;IAC7F,IAAI,EAAE,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;CACpC;AAwCD;;;;GAIG;AACH,wBAAgB,UAAU,IAAI,UAAU,CAGvC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elaraai/e3-ui-components",
3
- "version": "1.0.83",
3
+ "version": "1.0.85",
4
4
  "description": "React Query hooks and preview components for the e3 API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -11,6 +11,11 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "import": "./dist/index.js",
13
13
  "require": "./dist/index.cjs"
14
+ },
15
+ "./query": {
16
+ "types": "./dist/query/calls.d.ts",
17
+ "import": "./dist/query.js",
18
+ "require": "./dist/query.cjs"
14
19
  }
15
20
  },
16
21
  "files": [
@@ -36,12 +41,12 @@
36
41
  "@tanstack/react-query": "^5.62.0",
37
42
  "react": "^19.0.0",
38
43
  "react-dom": "^19.0.0",
39
- "@elaraai/e3-api-client": "1.0.83",
40
- "@elaraai/e3-ui": "1.0.83",
41
- "@elaraai/e3-types": "1.0.83",
42
- "@elaraai/east": "1.0.83",
43
- "@elaraai/east-ui": "1.0.83",
44
- "@elaraai/east-ui-components": "1.0.83"
44
+ "@elaraai/east": "1.0.85",
45
+ "@elaraai/e3-ui": "1.0.85",
46
+ "@elaraai/east-ui": "1.0.85",
47
+ "@elaraai/e3-api-client": "1.0.85",
48
+ "@elaraai/east-ui-components": "1.0.85",
49
+ "@elaraai/e3-types": "1.0.85"
45
50
  },
46
51
  "dependencies": {
47
52
  "@emotion/react": "^11.14.0",
@@ -87,13 +92,13 @@
87
92
  "vite": "^6.0.0",
88
93
  "vite-plugin-dts": "^4.3.0",
89
94
  "vitest": "^4.0.14",
90
- "@elaraai/e3-ui": "1.0.83",
91
- "@elaraai/e3-api-client": "1.0.83",
92
- "@elaraai/east": "1.0.83",
93
- "@elaraai/e3-types": "1.0.83",
94
- "@elaraai/east-ui": "1.0.83",
95
- "@elaraai/east-ui-components": "1.0.83",
96
- "@elaraai/eslint-plugin-east": "1.0.83"
95
+ "@elaraai/e3-api-client": "1.0.85",
96
+ "@elaraai/e3-types": "1.0.85",
97
+ "@elaraai/e3-ui": "1.0.85",
98
+ "@elaraai/east": "1.0.85",
99
+ "@elaraai/east-ui": "1.0.85",
100
+ "@elaraai/east-ui-components": "1.0.85",
101
+ "@elaraai/eslint-plugin-east": "1.0.85"
97
102
  },
98
103
  "repository": {
99
104
  "type": "git",