@elaraai/e3-ui-components 1.0.83 → 1.0.84

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.
@@ -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;AAkBH,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,+DA2B7B,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,CAA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,OAAO,EAAE,QAAQ,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;IACzC,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.84",
4
4
  "description": "React Query hooks and preview components for the e3 API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -36,12 +36,12 @@
36
36
  "@tanstack/react-query": "^5.62.0",
37
37
  "react": "^19.0.0",
38
38
  "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"
39
+ "@elaraai/e3-api-client": "1.0.84",
40
+ "@elaraai/e3-types": "1.0.84",
41
+ "@elaraai/e3-ui": "1.0.84",
42
+ "@elaraai/east": "1.0.84",
43
+ "@elaraai/east-ui": "1.0.84",
44
+ "@elaraai/east-ui-components": "1.0.84"
45
45
  },
46
46
  "dependencies": {
47
47
  "@emotion/react": "^11.14.0",
@@ -87,13 +87,13 @@
87
87
  "vite": "^6.0.0",
88
88
  "vite-plugin-dts": "^4.3.0",
89
89
  "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"
90
+ "@elaraai/e3-ui": "1.0.84",
91
+ "@elaraai/e3-api-client": "1.0.84",
92
+ "@elaraai/east": "1.0.84",
93
+ "@elaraai/east-ui": "1.0.84",
94
+ "@elaraai/e3-types": "1.0.84",
95
+ "@elaraai/east-ui-components": "1.0.84",
96
+ "@elaraai/eslint-plugin-east": "1.0.84"
97
97
  },
98
98
  "repository": {
99
99
  "type": "git",