@elaraai/e3-ui-components 1.0.82 → 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,39 @@
1
+ import { ValueTypeOf } from '@elaraai/east';
2
+ import { PaletteCardType, PalettePageType, StudioComponentType } from '@elaraai/e3-ui/internal';
3
+ /** A listed component. */
4
+ type Component = ValueTypeOf<typeof StudioComponentType>;
5
+ /** A component's card, as East computed it. */
6
+ type PaletteCard = ValueTypeOf<typeof PaletteCardType>;
7
+ /** A page of the project, as East computed it. */
8
+ type PalettePage = ValueTypeOf<typeof PalettePageType>;
9
+ /** Props of {@link StudioPalette}. */
10
+ export interface StudioPaletteProps {
11
+ /** The components the palette offers — the listed, less the deprecated — in the surface's order. */
12
+ components: readonly Component[];
13
+ /** Each one's card: its meta line, and whether it is placed. */
14
+ cards: ReadonlyMap<string, PaletteCard>;
15
+ /** The project's pages, in key order. */
16
+ pages: readonly PalettePage[];
17
+ /** The open page's name in the project. */
18
+ open: string;
19
+ /** The ids of the palette's libraries — the components library's, which the canvas takes cards from, and the pages'. */
20
+ ids: {
21
+ components: string;
22
+ pages: string;
23
+ };
24
+ /** Selects the component's first placement on the page. */
25
+ onSelect: (component: string) => void;
26
+ /** Opens a page of the project. */
27
+ onOpen: (page: string) => void;
28
+ /** Where the pane and its libraries keep their state. */
29
+ storageKey: string;
30
+ }
31
+ /**
32
+ * Renders the builder's palette — see the module docs.
33
+ *
34
+ * @param props - The components and pages it lists, and what its clicks do
35
+ * @returns The palette's pane
36
+ */
37
+ export declare const StudioPalette: import('react').NamedExoticComponent<StudioPaletteProps>;
38
+ export {};
39
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/studio/palette.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AA0BH,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAWhG,0BAA0B;AAC1B,KAAK,SAAS,GAAG,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACzD,+CAA+C;AAC/C,KAAK,WAAW,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;AACvD,kDAAkD;AAClD,KAAK,WAAW,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;AAEvD,sCAAsC;AACtC,MAAM,WAAW,kBAAkB;IAC/B,oGAAoG;IACpG,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;IACjC,gEAAgE;IAChE,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACxC,yCAAyC;IACzC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IAC9B,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,wHAAwH;IACxH,GAAG,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,2DAA2D;IAC3D,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,mCAAmC;IACnC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,eAAO,MAAM,aAAa,0DA+GxB,CAAC"}
@@ -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,CAAC;AACpE,OAAO,EACH,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,SAAS,EACZ,MAAM,yBAAyB,CAAC;AAEjC,4DAA4D;AAC5D,KAAK,QAAQ,CAAC,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1C,wDAAwD;AACxD,MAAM,WAAW,UAAU;IACvB,4CAA4C;IAC5C,YAAY,EAAE,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;IAC5C,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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-types": "1.0.82",
40
- "@elaraai/east-ui": "1.0.82",
41
- "@elaraai/east": "1.0.82",
42
- "@elaraai/east-ui-components": "1.0.82",
43
- "@elaraai/e3-ui": "1.0.82",
44
- "@elaraai/e3-api-client": "1.0.82"
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-api-client": "1.0.82",
91
- "@elaraai/e3-types": "1.0.82",
92
- "@elaraai/east": "1.0.82",
93
- "@elaraai/e3-ui": "1.0.82",
94
- "@elaraai/east-ui": "1.0.82",
95
- "@elaraai/east-ui-components": "1.0.82",
96
- "@elaraai/eslint-plugin-east": "1.0.82"
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",