@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.
- package/README.md +113 -6
- package/dist/components/DataTaskPreview.d.ts +35 -1
- package/dist/components/DataTaskPreview.d.ts.map +1 -1
- package/dist/components/DatasetPreview.d.ts +16 -0
- package/dist/components/DatasetPreview.d.ts.map +1 -1
- package/dist/components/InputPreview.d.ts +12 -0
- package/dist/components/InputPreview.d.ts.map +1 -1
- package/dist/components/PagedDatasetPreview.d.ts +15 -0
- package/dist/components/PagedDatasetPreview.d.ts.map +1 -1
- package/dist/components/TaskLogs.d.ts +19 -0
- package/dist/components/TaskLogs.d.ts.map +1 -1
- package/dist/components/TaskPreview.d.ts +24 -0
- package/dist/components/TaskPreview.d.ts.map +1 -1
- package/dist/components/UITaskPreview.d.ts +4 -1
- package/dist/components/UITaskPreview.d.ts.map +1 -1
- package/dist/components/VirtualizedLogViewer.d.ts +29 -1
- package/dist/components/VirtualizedLogViewer.d.ts.map +1 -1
- package/dist/components/controlled-search.d.ts +22 -0
- package/dist/components/controlled-search.d.ts.map +1 -0
- package/dist/components/preview-controls.d.ts +73 -0
- package/dist/components/preview-controls.d.ts.map +1 -0
- package/dist/diff/index.d.ts.map +1 -1
- package/dist/experiment/index.d.ts.map +1 -1
- package/dist/hooks/executions.d.ts +17 -0
- package/dist/hooks/executions.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useDatasetValue.d.ts +19 -1
- package/dist/hooks/useDatasetValue.d.ts.map +1 -1
- package/dist/hooks/useTaskLogsHook.d.ts +67 -3
- package/dist/hooks/useTaskLogsHook.d.ts.map +1 -1
- package/dist/in-memory-call-7_3frW52.js +615 -0
- package/dist/in-memory-call-7_3frW52.js.map +1 -0
- package/dist/in-memory-call-_r5DJotS.cjs +614 -0
- package/dist/in-memory-call-_r5DJotS.cjs.map +1 -0
- package/dist/index.cjs +25860 -5731
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28383 -8253
- package/dist/index.js.map +1 -1
- package/dist/platform/bind-runtime.d.ts +18 -3
- package/dist/platform/bind-runtime.d.ts.map +1 -1
- package/dist/platform/dataset-hooks.d.ts +15 -3
- package/dist/platform/dataset-hooks.d.ts.map +1 -1
- package/dist/platform/dataset-store.d.ts +35 -7
- package/dist/platform/dataset-store.d.ts.map +1 -1
- package/dist/platform/e3-config.d.ts +26 -2
- package/dist/platform/e3-config.d.ts.map +1 -1
- package/dist/platform/func-runtime.d.ts +11 -5
- package/dist/platform/func-runtime.d.ts.map +1 -1
- package/dist/platform/index.d.ts +2 -2
- package/dist/platform/index.d.ts.map +1 -1
- package/dist/platform/paged-runtime.d.ts +46 -9
- package/dist/platform/paged-runtime.d.ts.map +1 -1
- package/dist/platform/record-runtime.d.ts +45 -7
- package/dist/platform/record-runtime.d.ts.map +1 -1
- package/dist/platform/recovery.d.ts +44 -0
- package/dist/platform/recovery.d.ts.map +1 -0
- package/dist/platform/staged-store.d.ts +16 -0
- package/dist/platform/staged-store.d.ts.map +1 -1
- package/dist/platform/tracked-channel.d.ts +12 -0
- package/dist/platform/tracked-channel.d.ts.map +1 -1
- package/dist/query/about.d.ts +50 -0
- package/dist/query/about.d.ts.map +1 -0
- package/dist/query/autocomplete.d.ts +112 -0
- package/dist/query/autocomplete.d.ts.map +1 -0
- package/dist/query/builder.d.ts +29 -0
- package/dist/query/builder.d.ts.map +1 -0
- package/dist/query/calls.d.ts +46 -0
- package/dist/query/calls.d.ts.map +1 -0
- package/dist/query/datasets-tab.d.ts +52 -0
- package/dist/query/datasets-tab.d.ts.map +1 -0
- package/dist/query/downloads.d.ts +29 -0
- package/dist/query/downloads.d.ts.map +1 -0
- package/dist/query/drops.d.ts +28 -0
- package/dist/query/drops.d.ts.map +1 -0
- package/dist/query/foot.d.ts +22 -0
- package/dist/query/foot.d.ts.map +1 -0
- package/dist/query/hooks.d.ts +265 -0
- package/dist/query/hooks.d.ts.map +1 -0
- package/dist/query/in-memory-call.d.ts +150 -0
- package/dist/query/in-memory-call.d.ts.map +1 -0
- package/dist/query/jq-editor.d.ts +34 -0
- package/dist/query/jq-editor.d.ts.map +1 -0
- package/dist/query/library-tab.d.ts +33 -0
- package/dist/query/library-tab.d.ts.map +1 -0
- package/dist/query/library.d.ts +20 -0
- package/dist/query/library.d.ts.map +1 -0
- package/dist/query/model/cards.d.ts +179 -0
- package/dist/query/model/cards.d.ts.map +1 -0
- package/dist/query/model/index.d.ts +19 -0
- package/dist/query/model/index.d.ts.map +1 -0
- package/dist/query/model/messages.d.ts +1253 -0
- package/dist/query/model/messages.d.ts.map +1 -0
- package/dist/query/model/refs.d.ts +92 -0
- package/dist/query/model/refs.d.ts.map +1 -0
- package/dist/query/model/slots.d.ts +213 -0
- package/dist/query/model/slots.d.ts.map +1 -0
- package/dist/query/model/summaries.d.ts +104 -0
- package/dist/query/model/summaries.d.ts.map +1 -0
- package/dist/query/model/words.d.ts +331 -0
- package/dist/query/model/words.d.ts.map +1 -0
- package/dist/query/one-shot.d.ts +266 -0
- package/dist/query/one-shot.d.ts.map +1 -0
- package/dist/query/open-query.d.ts +214 -0
- package/dist/query/open-query.d.ts.map +1 -0
- package/dist/query/parts.d.ts +115 -0
- package/dist/query/parts.d.ts.map +1 -0
- package/dist/query/plan-popover.d.ts +22 -0
- package/dist/query/plan-popover.d.ts.map +1 -0
- package/dist/query/plan.d.ts +353 -0
- package/dist/query/plan.d.ts.map +1 -0
- package/dist/query/query-east.d.ts +21 -0
- package/dist/query/query-east.d.ts.map +1 -0
- package/dist/query/query-tab.d.ts +21 -0
- package/dist/query/query-tab.d.ts.map +1 -0
- package/dist/query/results-table.d.ts +153 -0
- package/dist/query/results-table.d.ts.map +1 -0
- package/dist/query/results.d.ts +137 -0
- package/dist/query/results.d.ts.map +1 -0
- package/dist/query/run.d.ts +199 -0
- package/dist/query/run.d.ts.map +1 -0
- package/dist/query/save-popover.d.ts +29 -0
- package/dist/query/save-popover.d.ts.map +1 -0
- package/dist/query/session.d.ts +409 -0
- package/dist/query/session.d.ts.map +1 -0
- package/dist/query/shape-line.d.ts +21 -0
- package/dist/query/shape-line.d.ts.map +1 -0
- package/dist/query/source.d.ts +21 -0
- package/dist/query/source.d.ts.map +1 -0
- package/dist/query/status-line.d.ts +48 -0
- package/dist/query/status-line.d.ts.map +1 -0
- package/dist/query/step-card.d.ts +30 -0
- package/dist/query/step-card.d.ts.map +1 -0
- package/dist/query/steps/check.d.ts +162 -0
- package/dist/query/steps/check.d.ts.map +1 -0
- package/dist/query/steps/count.d.ts +49 -0
- package/dist/query/steps/count.d.ts.map +1 -0
- package/dist/query/steps/edit.d.ts +108 -0
- package/dist/query/steps/edit.d.ts.map +1 -0
- package/dist/query/steps/fields.d.ts +101 -0
- package/dist/query/steps/fields.d.ts.map +1 -0
- package/dist/query/steps/index.d.ts +22 -0
- package/dist/query/steps/index.d.ts.map +1 -0
- package/dist/query/steps/jq.d.ts +188 -0
- package/dist/query/steps/jq.d.ts.map +1 -0
- package/dist/query/steps/parse.d.ts +38 -0
- package/dist/query/steps/parse.d.ts.map +1 -0
- package/dist/query/steps/print.d.ts +195 -0
- package/dist/query/steps/print.d.ts.map +1 -0
- package/dist/query/steps/shape.d.ts +90 -0
- package/dist/query/steps/shape.d.ts.map +1 -0
- package/dist/query/steps/values.d.ts +85 -0
- package/dist/query/steps/values.d.ts.map +1 -0
- package/dist/query/toolbar.d.ts +56 -0
- package/dist/query/toolbar.d.ts.map +1 -0
- package/dist/query/use-query-editor.d.ts +153 -0
- package/dist/query/use-query-editor.d.ts.map +1 -0
- package/dist/query/use-query-session.d.ts +55 -0
- package/dist/query/use-query-session.d.ts.map +1 -0
- package/dist/query/words.d.ts +60 -0
- package/dist/query/words.d.ts.map +1 -0
- package/dist/query.cjs +16 -0
- package/dist/query.cjs.map +1 -0
- package/dist/query.js +16 -0
- package/dist/query.js.map +1 -0
- package/dist/shared/name-popover.d.ts +38 -0
- package/dist/shared/name-popover.d.ts.map +1 -0
- package/dist/studio/builder.d.ts +20 -0
- package/dist/studio/builder.d.ts.map +1 -0
- package/dist/studio/inspector.d.ts +18 -0
- package/dist/studio/inspector.d.ts.map +1 -0
- package/dist/studio/library.d.ts +20 -0
- package/dist/studio/library.d.ts.map +1 -0
- package/dist/studio/messages.d.ts +318 -0
- package/dist/studio/messages.d.ts.map +1 -0
- package/dist/studio/open-page.d.ts +13 -0
- package/dist/studio/open-page.d.ts.map +1 -0
- package/dist/studio/page.d.ts +61 -0
- package/dist/studio/page.d.ts.map +1 -0
- package/dist/studio/palette.d.ts +41 -0
- package/dist/studio/palette.d.ts.map +1 -0
- package/dist/studio/publish.d.ts +21 -0
- package/dist/studio/publish.d.ts.map +1 -0
- package/dist/studio/save-template.d.ts +18 -0
- package/dist/studio/save-template.d.ts.map +1 -0
- package/dist/studio/studio-east.d.ts +45 -0
- package/dist/studio/studio-east.d.ts.map +1 -0
- package/package.json +19 -14
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-query-editor.d.ts","sourceRoot":"","sources":["../../src/query/use-query-editor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA4BH,OAAO,EAAuC,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACxF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAwB,KAAK,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACpF,OAAO,KAAK,EAAkC,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAEH,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAClD,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAA4B,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAA4C,KAAK,UAAU,EAAE,MAA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|
+
import { QueryRoot } from './one-shot.js';
|
|
4
|
+
import { QueryOpen } from './open-query.js';
|
|
5
|
+
import { QueriesHandle, QueryBase, QueryEntry, SavedQueries } from './session.js';
|
|
6
|
+
/** What the open query's session needs. */
|
|
7
|
+
export interface QuerySessionOptions {
|
|
8
|
+
/** The saved queries record, bound with its patch. */
|
|
9
|
+
readonly handle: QueriesHandle;
|
|
10
|
+
/** The record as it reads now; `undefined` while it has not been read. */
|
|
11
|
+
readonly record: SavedQueries | undefined;
|
|
12
|
+
/** The root, or why it cannot be queried. */
|
|
13
|
+
readonly root: QueryRoot | string;
|
|
14
|
+
/** The open query. */
|
|
15
|
+
readonly open: QueryOpen;
|
|
16
|
+
/** Opens another query. */
|
|
17
|
+
readonly writeOpen: (next: QueryOpen) => void;
|
|
18
|
+
/** The builder's storage key: the session's view. */
|
|
19
|
+
readonly storageKey: string;
|
|
20
|
+
/** The words. */
|
|
21
|
+
readonly words: QueryWords;
|
|
22
|
+
}
|
|
23
|
+
/** The open query's session, and what the surfaces do through it. */
|
|
24
|
+
export interface QuerySessionState {
|
|
25
|
+
/** The session: its history, its drafts, its request. */
|
|
26
|
+
readonly session: EditSession<QueryEntry>;
|
|
27
|
+
/** Its session's source id. */
|
|
28
|
+
readonly sourceId: string;
|
|
29
|
+
/** What it began from; `undefined` while the record has not been read, or the open saved query is not in it. */
|
|
30
|
+
readonly base: QueryBase | undefined;
|
|
31
|
+
/** The query's entries as its drafts stand. */
|
|
32
|
+
readonly entries: readonly QueryEntry[] | undefined;
|
|
33
|
+
/** Whether a gesture may be recorded now. */
|
|
34
|
+
readonly available: boolean;
|
|
35
|
+
/** Moves with every change of the session. */
|
|
36
|
+
readonly version: number;
|
|
37
|
+
/** The query's entries as the drafts stand this moment — after a gesture in the same event, too. */
|
|
38
|
+
readonly current: () => readonly QueryEntry[] | undefined;
|
|
39
|
+
/** Records a gesture: the entries it leaves, as one transaction. */
|
|
40
|
+
readonly gesture: (next: readonly QueryEntry[], origin: Origin, label: string) => boolean;
|
|
41
|
+
/** Runs a history item's action. */
|
|
42
|
+
readonly onAction: (action: HistoryAction) => void;
|
|
43
|
+
/** Whether a query never saved has asked for its name, with Apply. */
|
|
44
|
+
readonly naming: boolean;
|
|
45
|
+
/** Asks for, or stops asking for, a name. */
|
|
46
|
+
readonly setNaming: (naming: boolean) => void;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The open query's editing session — see the module docs.
|
|
50
|
+
*
|
|
51
|
+
* @param options - The record, the root, the open query and the words
|
|
52
|
+
* @returns The session, and what the surfaces do through it
|
|
53
|
+
*/
|
|
54
|
+
export declare function useQuerySession(options: QuerySessionOptions): QuerySessionState;
|
|
55
|
+
//# sourceMappingURL=use-query-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-query-session.d.ts","sourceRoot":"","sources":["../../src/query/use-query-session.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoBH,OAAO,EAEkB,KAAK,WAAW,EAAwC,KAAK,aAAa,EAAE,KAAK,MAAM,EAC/G,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAGH,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,KAAK,YAAY,EACzE,MAAM,cAAc,CAAC;AAEtB,2CAA2C;AAC3C,MAAM,WAAW,mBAAmB;IAChC,sDAAsD;IACtD,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC;IAC1C,6CAA6C;IAC7C,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IAClC,sBAAsB;IACtB,QA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,mBAAmB,GAAG,iBAAiB,CAiH/E"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EditingWords } from '@elaraai/east-ui-components';
|
|
3
|
+
import { QueryMessages } from './model/messages.js';
|
|
4
|
+
import { QueryWords } from './model/words.js';
|
|
5
|
+
/**
|
|
6
|
+
* The message table in effect — {@link queryMessages} with every
|
|
7
|
+
* {@link QueryMessagesProvider} above overriding it.
|
|
8
|
+
*
|
|
9
|
+
* @returns The table
|
|
10
|
+
*/
|
|
11
|
+
export declare function useQueryMessages(): QueryMessages;
|
|
12
|
+
/** Props of {@link QueryMessagesProvider}. */
|
|
13
|
+
export interface QueryMessagesProviderProps {
|
|
14
|
+
/** The messages to override — any subset; the rest come from the table above. */
|
|
15
|
+
messages: Partial<QueryMessages>;
|
|
16
|
+
/** The subtree the overrides apply to. */
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Override the query builder's words for a subtree — a translation, or a
|
|
21
|
+
* house style. Providers nest: each overrides the table the one above it
|
|
22
|
+
* resolved.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* The overrides are read by identity: define them once (module scope, or a
|
|
26
|
+
* memo), as below.
|
|
27
|
+
*
|
|
28
|
+
* @param props - The overrides and the subtree
|
|
29
|
+
* @returns The provider
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* const GERMAN: Partial<QueryMessages> = {
|
|
34
|
+
* tab: ({ tab }) => (tab === "query" ? "Abfrage" : tab === "datasets" ? "Datensätze" : "Bibliothek"),
|
|
35
|
+
* save: () => "Speichern",
|
|
36
|
+
* };
|
|
37
|
+
*
|
|
38
|
+
* <I18nProvider locale="de-DE">
|
|
39
|
+
* <QueryMessagesProvider messages={GERMAN}>
|
|
40
|
+
* <EastChakraComponent value={builder} />
|
|
41
|
+
* </QueryMessagesProvider>
|
|
42
|
+
* </I18nProvider>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare function QueryMessagesProvider({ messages, children }: QueryMessagesProviderProps): import('react').FunctionComponentElement<import('react').ProviderProps<QueryMessages>>;
|
|
46
|
+
/**
|
|
47
|
+
* The words the builder says: the message table in effect, and the locale's
|
|
48
|
+
* formatters — what the model's functions take.
|
|
49
|
+
*
|
|
50
|
+
* @returns The words
|
|
51
|
+
*/
|
|
52
|
+
export declare function useQueryWords(): QueryWords;
|
|
53
|
+
/**
|
|
54
|
+
* The editing session's words, in the builder's: its history item's Apply is
|
|
55
|
+
* the builder's Save.
|
|
56
|
+
*
|
|
57
|
+
* @returns The words the history item speaks
|
|
58
|
+
*/
|
|
59
|
+
export declare function useQueryEditingWords(): EditingWords;
|
|
60
|
+
//# sourceMappingURL=words.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"words.d.ts","sourceRoot":"","sources":["../../src/query/words.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;GAWG;AAEH,OAAO,EAAqD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1F,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAiB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAc,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAI/D;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,CAEhD;AAED,8CAA8C;AAC9C,MAAM,WAAW,0BAA0B;IACvC,iFAAiF;IACjF,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACjC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,0BAA0B,0FAIvF;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAI1C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,YAAY,CAInD"}
|
package/dist/query.cjs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const inMemoryCall = require("./in-memory-call-_r5DJotS.cjs");
|
|
4
|
+
exports.createInMemoryQueryCall = inMemoryCall.createInMemoryQueryCall;
|
|
5
|
+
exports.createInMemorySourceStatus = inMemoryCall.createInMemorySourceStatus;
|
|
6
|
+
exports.createInMemorySplitCall = inMemoryCall.createInMemorySplitCall;
|
|
7
|
+
exports.draftPlan = inMemoryCall.draftPlan;
|
|
8
|
+
exports.planQuery = inMemoryCall.planQuery;
|
|
9
|
+
exports.prepareQuery = inMemoryCall.prepareQuery;
|
|
10
|
+
exports.programChecks = inMemoryCall.programChecks;
|
|
11
|
+
exports.queryResultOf = inMemoryCall.queryResultOf;
|
|
12
|
+
exports.queryRoot = inMemoryCall.queryRoot;
|
|
13
|
+
exports.rekeyCallRequests = inMemoryCall.rekeyCallRequests;
|
|
14
|
+
exports.splitCallRequest = inMemoryCall.splitCallRequest;
|
|
15
|
+
exports.weighPlan = inMemoryCall.weighPlan;
|
|
16
|
+
//# sourceMappingURL=query.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
package/dist/query.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { c, a, b, d, p, e, f, q, g, r, s, w } from "./in-memory-call-7_3frW52.js";
|
|
2
|
+
export {
|
|
3
|
+
c as createInMemoryQueryCall,
|
|
4
|
+
a as createInMemorySourceStatus,
|
|
5
|
+
b as createInMemorySplitCall,
|
|
6
|
+
d as draftPlan,
|
|
7
|
+
p as planQuery,
|
|
8
|
+
e as prepareQuery,
|
|
9
|
+
f as programChecks,
|
|
10
|
+
q as queryResultOf,
|
|
11
|
+
g as queryRoot,
|
|
12
|
+
r as rekeyCallRequests,
|
|
13
|
+
s as splitCallRequest,
|
|
14
|
+
w as weighPlan
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** Props of {@link NamePopover}. */
|
|
3
|
+
export interface NamePopoverProps {
|
|
4
|
+
/** Whether it is open. */
|
|
5
|
+
open: boolean;
|
|
6
|
+
/** Opens or closes it — its trigger, ×, Esc, a click outside, Cancel, or a write that was made. */
|
|
7
|
+
onOpenChange: (open: boolean) => void;
|
|
8
|
+
/** The button it hangs from, whatever opens it. */
|
|
9
|
+
trigger: ReactNode;
|
|
10
|
+
/** Its head — what it makes, and where. */
|
|
11
|
+
label: ReactNode;
|
|
12
|
+
/** The name field's placeholder, and its accessible name. */
|
|
13
|
+
placeholder: string;
|
|
14
|
+
/** The name it offers when it opens. */
|
|
15
|
+
initial: string;
|
|
16
|
+
/** The names its host holds — the new one must be none of them. */
|
|
17
|
+
taken: ReadonlySet<string>;
|
|
18
|
+
/** The hint while the name is empty. */
|
|
19
|
+
missing: string;
|
|
20
|
+
/** The field's error while its host holds the name — given the name, as typed and trimmed. */
|
|
21
|
+
nameTaken: (name: string) => string;
|
|
22
|
+
/** Its commit verb — the commit button's words. */
|
|
23
|
+
confirm: string;
|
|
24
|
+
/** The cancel button's words. */
|
|
25
|
+
cancel: string;
|
|
26
|
+
/** Further fields, under the name. */
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
/** Makes the thing under the name — resolves to what refused it, or `undefined` once it is made. */
|
|
29
|
+
onConfirm: (name: string) => Promise<string | undefined>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Renders the popover — see the module docs.
|
|
33
|
+
*
|
|
34
|
+
* @param props - What it names, in its host's words, and what it does with the name
|
|
35
|
+
* @returns The trigger, and the popover while open
|
|
36
|
+
*/
|
|
37
|
+
export declare function NamePopover({ open, onOpenChange, trigger, label, placeholder, initial, taken, missing, nameTaken, confirm, cancel, children, onConfirm, }: NamePopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
//# sourceMappingURL=name-popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"name-popover.d.ts","sourceRoot":"","sources":["../../src/shared/name-popover.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAMxD,oCAAoC;AACpC,MAAM,WAAW,gBAAgB;IAC7B,0BAA0B;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,mGAAmG;IACnG,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,mDAAmD;IACnD,OAAO,EAAE,SAAS,CAAC;IACnB,2CAA2C;IAC3C,KAAK,EAAE,SAAS,CAAC;IACjB,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,8FAA8F;IAC9F,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oGAAoG;IACpG,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC5D;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EACxB,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,GAC5H,EAAE,gBAAgB,2CAoElB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ValueTypeOf } from '@elaraai/east';
|
|
2
|
+
import { StudioBuilderComponent } from '@elaraai/e3-ui/internal';
|
|
3
|
+
/** The renderer's payload, decoded. */
|
|
4
|
+
type StudioBuilderValue = ValueTypeOf<typeof StudioBuilderComponent.schema>;
|
|
5
|
+
/** Props of {@link EastChakraStudioBuilder}. */
|
|
6
|
+
export interface EastChakraStudioBuilderProps {
|
|
7
|
+
/** The payload, decoded. */
|
|
8
|
+
value: StudioBuilderValue;
|
|
9
|
+
/** The structural storage key. */
|
|
10
|
+
storageKey: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Renders the builder — see the module docs.
|
|
14
|
+
*
|
|
15
|
+
* @param props - The payload and its storage key
|
|
16
|
+
* @returns The builder
|
|
17
|
+
*/
|
|
18
|
+
export declare const EastChakraStudioBuilder: import('react').NamedExoticComponent<EastChakraStudioBuilderProps>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/studio/builder.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAiCH,OAAO,EACoG,KAAK,WAAW,EAC1H,MAAM,eAAe,CAAC;AAEvB,OAAO,EACH,sBAAsB,EACzB,MAAM,yBAAyB,CAAC;AA0BjC,uCAAuC;AACvC,KAAK,kBAAkB,GAAG,WAAW,CAAC,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC;AA0B5E,gDAAgD;AAChD,MAAM,WAAW,4BAA4B;IACzC,4BAA4B;IAC5B,KAAK,EAAE,kBAAkB,CAAC;IAC1B,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,oEAiUlC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ValueTypeOf } from '@elaraai/east';
|
|
2
|
+
import { StudioInspectorPayloadType } from '@elaraai/e3-ui/internal';
|
|
3
|
+
/** The inspector, as the builder draws it. */
|
|
4
|
+
type StudioInspectorValue = ValueTypeOf<typeof StudioInspectorPayloadType>;
|
|
5
|
+
/** Props of {@link StudioInspector}. */
|
|
6
|
+
export interface StudioInspectorProps {
|
|
7
|
+
/** The selected placement, and where a layout edit goes. */
|
|
8
|
+
value: StudioInspectorValue;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Renders the builder's inspector body — see the module docs.
|
|
12
|
+
*
|
|
13
|
+
* @param props - The selected placement, and where a layout edit goes
|
|
14
|
+
* @returns The inspector's body
|
|
15
|
+
*/
|
|
16
|
+
export declare const StudioInspector: import('react').NamedExoticComponent<StudioInspectorProps>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=inspector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../src/studio/inspector.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AA0BH,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAEtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAOrE,8CAA8C;AAC9C,KAAK,oBAAoB,GAAG,WAAW,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAmB3E,wCAAwC;AACxC,MAAM,WAAW,oBAAoB;IACjC,4DAA4D;IAC5D,KAAK,EAAE,oBAAoB,CAAC;CAC/B;AA+CD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,4DAoK1B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ValueTypeOf } from '@elaraai/east';
|
|
2
|
+
import { StudioLibraryComponent } from '@elaraai/e3-ui/internal';
|
|
3
|
+
/** The renderer's payload, decoded. */
|
|
4
|
+
type StudioLibraryValue = ValueTypeOf<typeof StudioLibraryComponent.schema>;
|
|
5
|
+
/** Props of {@link EastChakraStudioLibrary}. */
|
|
6
|
+
export interface EastChakraStudioLibraryProps {
|
|
7
|
+
/** The payload, decoded. */
|
|
8
|
+
value: StudioLibraryValue;
|
|
9
|
+
/** The structural storage key. */
|
|
10
|
+
storageKey: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Renders the page library — see the module docs.
|
|
14
|
+
*
|
|
15
|
+
* @param props - The payload and its storage key
|
|
16
|
+
* @returns The page library
|
|
17
|
+
*/
|
|
18
|
+
export declare const EastChakraStudioLibrary: import('react').NamedExoticComponent<EastChakraStudioLibraryProps>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=library.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../src/studio/library.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AA6CH,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAkB,sBAAsB,EAAe,MAAM,yBAAyB,CAAC;AAa9F,uCAAuC;AACvC,KAAK,kBAAkB,GAAG,WAAW,CAAC,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC;AAsB5E,gDAAgD;AAChD,MAAM,WAAW,4BAA4B;IACzC,4BAA4B;IAC5B,KAAK,EAAE,kBAAkB,CAAC;IAC1B,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;CACtB;AAmDD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,oEAiXlC,CAAC"}
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The Studio's message table.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Numbers — `span`, `px`, the counts, a version's number — arrive already
|
|
7
|
+
* formatted for the locale; `np`, `nt` and `n` are the raw counts, for plurals.
|
|
8
|
+
*/
|
|
9
|
+
export interface StudioMessages {
|
|
10
|
+
/** The builder toolbar's status: never published. */
|
|
11
|
+
statusDraft: () => string;
|
|
12
|
+
/** Published, its draft its live layout. */
|
|
13
|
+
statusLive: () => string;
|
|
14
|
+
/** Published, its draft changed since. */
|
|
15
|
+
statusLiveEdited: () => string;
|
|
16
|
+
/** A template is open. */
|
|
17
|
+
statusTemplate: () => string;
|
|
18
|
+
/** The builder toolbar's Publish. */
|
|
19
|
+
publish: () => string;
|
|
20
|
+
/** The builder with no page of the project open — its heading. */
|
|
21
|
+
noPageOpen: () => string;
|
|
22
|
+
/** Under it, what to do. */
|
|
23
|
+
noPageOpenHint: (p: {
|
|
24
|
+
project: string;
|
|
25
|
+
page: string;
|
|
26
|
+
}) => string;
|
|
27
|
+
/** The palette's pane — its tab and its rail's name. */
|
|
28
|
+
components: () => string;
|
|
29
|
+
/** One component, and any other count — the palette's noun. */
|
|
30
|
+
componentNoun: () => {
|
|
31
|
+
singular: string;
|
|
32
|
+
plural: string;
|
|
33
|
+
};
|
|
34
|
+
/** One page, and any other count — the palette's noun. */
|
|
35
|
+
pageNoun: () => {
|
|
36
|
+
singular: string;
|
|
37
|
+
plural: string;
|
|
38
|
+
};
|
|
39
|
+
/** A palette card's lock. */
|
|
40
|
+
logicFixed: () => string;
|
|
41
|
+
/** The palette's grouping and filter facet. */
|
|
42
|
+
category: () => string;
|
|
43
|
+
/** The palette's tags facet. */
|
|
44
|
+
tags: () => string;
|
|
45
|
+
/** The palette's collections facet. */
|
|
46
|
+
collections: () => string;
|
|
47
|
+
/** The inspector's pane — its tab and its rail's name. */
|
|
48
|
+
inspector: () => string;
|
|
49
|
+
/** The inspector's rail badge — the selected placement's span, `8/12`. */
|
|
50
|
+
spanBadge: (p: {
|
|
51
|
+
span: string;
|
|
52
|
+
}) => string;
|
|
53
|
+
/** A placement whose component the surface does not list — its heading. */
|
|
54
|
+
noComponent: (p: {
|
|
55
|
+
key: string;
|
|
56
|
+
}) => string;
|
|
57
|
+
/** Under it. */
|
|
58
|
+
noComponentHint: () => string;
|
|
59
|
+
/** A placement whose key two listed components share — its heading. */
|
|
60
|
+
twoComponents: (p: {
|
|
61
|
+
key: string;
|
|
62
|
+
}) => string;
|
|
63
|
+
/** Under it. */
|
|
64
|
+
twoComponentsHint: () => string;
|
|
65
|
+
/** A page whose live version is asked for before it is published — its heading. */
|
|
66
|
+
notPublished: (p: {
|
|
67
|
+
page: string;
|
|
68
|
+
}) => string;
|
|
69
|
+
/** Under it. */
|
|
70
|
+
notPublishedHint: () => string;
|
|
71
|
+
/** A page the record does not hold — its heading. */
|
|
72
|
+
noPage: (p: {
|
|
73
|
+
page: string;
|
|
74
|
+
}) => string;
|
|
75
|
+
/** Under it. */
|
|
76
|
+
noPageHint: (p: {
|
|
77
|
+
project: string;
|
|
78
|
+
}) => string;
|
|
79
|
+
/** Blank grid's card — what it places. */
|
|
80
|
+
blankSummary: () => string;
|
|
81
|
+
/** A page card's count of placements — `3 components`. */
|
|
82
|
+
placements: (p: {
|
|
83
|
+
n: number;
|
|
84
|
+
count: string;
|
|
85
|
+
}) => string;
|
|
86
|
+
/** A page card's action. */
|
|
87
|
+
openInBuilder: () => string;
|
|
88
|
+
/** The Pages row's dashed last card. */
|
|
89
|
+
newPageFromTemplate: () => string;
|
|
90
|
+
/** The inspector's selection block — its eyebrow. */
|
|
91
|
+
selectedComponent: () => string;
|
|
92
|
+
/** The placement's component's code changed since the page went live. */
|
|
93
|
+
logicChanged: () => string;
|
|
94
|
+
/** The Data block's eyebrow. */
|
|
95
|
+
data: () => string;
|
|
96
|
+
/** A component whose code reads no dataset. */
|
|
97
|
+
readsNothing: () => string;
|
|
98
|
+
/** The Configuration block's eyebrow. */
|
|
99
|
+
configuration: () => string;
|
|
100
|
+
/** Beside it, what the lock says. */
|
|
101
|
+
fixedByDeveloper: () => string;
|
|
102
|
+
/** A component with no description. */
|
|
103
|
+
noDescription: () => string;
|
|
104
|
+
/** The Layout block's eyebrow. */
|
|
105
|
+
layout: () => string;
|
|
106
|
+
/** The span stepper's label. */
|
|
107
|
+
columnSpan: () => string;
|
|
108
|
+
/** The span as the stepper shows it — `8 / 12`. */
|
|
109
|
+
spanOf: (p: {
|
|
110
|
+
span: string;
|
|
111
|
+
}) => string;
|
|
112
|
+
/** The stepper's minus button. */
|
|
113
|
+
decreaseSpan: () => string;
|
|
114
|
+
/** The stepper's plus button. */
|
|
115
|
+
increaseSpan: () => string;
|
|
116
|
+
/** The row field's label. */
|
|
117
|
+
row: () => string;
|
|
118
|
+
/** The height field's label. */
|
|
119
|
+
height: () => string;
|
|
120
|
+
/** A height that is its content's own. */
|
|
121
|
+
auto: () => string;
|
|
122
|
+
/** A height in px — `240 px`. */
|
|
123
|
+
px: (p: {
|
|
124
|
+
px: string;
|
|
125
|
+
}) => string;
|
|
126
|
+
/** The alignment's label. */
|
|
127
|
+
align: () => string;
|
|
128
|
+
/** At the row's top. */
|
|
129
|
+
alignTop: () => string;
|
|
130
|
+
/** Centred in the row. */
|
|
131
|
+
alignCenter: () => string;
|
|
132
|
+
/** As tall as the row. */
|
|
133
|
+
alignStretch: () => string;
|
|
134
|
+
/** The inspector's footer. */
|
|
135
|
+
published: () => string;
|
|
136
|
+
/** The inspector with nothing selected — its heading. */
|
|
137
|
+
nothingSelected: () => string;
|
|
138
|
+
/** Under it, what to do. */
|
|
139
|
+
nothingSelectedHint: () => string;
|
|
140
|
+
/** The page library's search, counting what it searches — `Search 4 pages and 4 templates…`. */
|
|
141
|
+
searchLibrary: (p: {
|
|
142
|
+
pages: string;
|
|
143
|
+
templates: string;
|
|
144
|
+
np: number;
|
|
145
|
+
nt: number;
|
|
146
|
+
}) => string;
|
|
147
|
+
/** The search field's name. */
|
|
148
|
+
searchLabel: () => string;
|
|
149
|
+
/** The search's clear button. */
|
|
150
|
+
clearSearch: () => string;
|
|
151
|
+
/** The Sort menu's trigger. */
|
|
152
|
+
sortByName: () => string;
|
|
153
|
+
/** Name, A to Z. */
|
|
154
|
+
nameAz: () => string;
|
|
155
|
+
/** Name, Z to A. */
|
|
156
|
+
nameZa: () => string;
|
|
157
|
+
/** The primary action — `New page in Ops console`. */
|
|
158
|
+
newPageIn: (p: {
|
|
159
|
+
project: string;
|
|
160
|
+
}) => string;
|
|
161
|
+
/** The primary action, folded, and the New page popover's head. */
|
|
162
|
+
newPage: () => string;
|
|
163
|
+
/** The pane's projects caption. */
|
|
164
|
+
projects: () => string;
|
|
165
|
+
/** The pane's pages caption, and the Pages section's head. */
|
|
166
|
+
pages: () => string;
|
|
167
|
+
/** The legend's live status. */
|
|
168
|
+
live: () => string;
|
|
169
|
+
/** The legend's draft status. */
|
|
170
|
+
draft: () => string;
|
|
171
|
+
/** The Templates section's head. */
|
|
172
|
+
templates: () => string;
|
|
173
|
+
/** Beside it. */
|
|
174
|
+
cloneToStart: () => string;
|
|
175
|
+
/** Beside the Pages head — `4 in Ops console`, or `1 of 4 in Ops console` while the search narrows. */
|
|
176
|
+
pagesIn: (p: {
|
|
177
|
+
shown: string;
|
|
178
|
+
total: string;
|
|
179
|
+
project: string;
|
|
180
|
+
narrowed: boolean;
|
|
181
|
+
}) => string;
|
|
182
|
+
/** The New page popover's name field. */
|
|
183
|
+
pageName: () => string;
|
|
184
|
+
/** Under it, while it is empty. */
|
|
185
|
+
pageNameMissing: () => string;
|
|
186
|
+
/** The New page popover's template field. */
|
|
187
|
+
template: () => string;
|
|
188
|
+
/** Blank grid — no template. */
|
|
189
|
+
blankGrid: () => string;
|
|
190
|
+
/** The New page popover's commit. */
|
|
191
|
+
createPage: () => string;
|
|
192
|
+
/** A popover's cancel. */
|
|
193
|
+
cancel: () => string;
|
|
194
|
+
/** A name the project holds already. */
|
|
195
|
+
nameTaken: (p: {
|
|
196
|
+
name: string;
|
|
197
|
+
}) => string;
|
|
198
|
+
/** The builder toolbar's Save as template, and its popover's head. */
|
|
199
|
+
saveAsTemplate: () => string;
|
|
200
|
+
/** Its popover's name field. */
|
|
201
|
+
templateName: () => string;
|
|
202
|
+
/** Under it, while it is empty. */
|
|
203
|
+
templateNameMissing: () => string;
|
|
204
|
+
/** Its popover's commit. */
|
|
205
|
+
saveTemplate: () => string;
|
|
206
|
+
/** The name it offers — `Overview template`. */
|
|
207
|
+
templateNameFor: (p: {
|
|
208
|
+
page: string;
|
|
209
|
+
}) => string;
|
|
210
|
+
/** Why it is disabled while a template is open. */
|
|
211
|
+
templateOpen: () => string;
|
|
212
|
+
/** The publish preview's bar — `● Preview`. */
|
|
213
|
+
preview: () => string;
|
|
214
|
+
/** The device strip's accessible name. */
|
|
215
|
+
devices: () => string;
|
|
216
|
+
/** The device the page is drawn for. */
|
|
217
|
+
device: (p: {
|
|
218
|
+
device: "desktop" | "tablet" | "mobile";
|
|
219
|
+
}) => string;
|
|
220
|
+
/** The Env pill's label, before the environment's name. */
|
|
221
|
+
env: () => string;
|
|
222
|
+
/** Back to the builder. */
|
|
223
|
+
exit: () => string;
|
|
224
|
+
/** The aside's head while there is something to publish. */
|
|
225
|
+
readyToPublish: () => string;
|
|
226
|
+
/** The aside's head while the page is live as it stands. */
|
|
227
|
+
upToDate: () => string;
|
|
228
|
+
/** The aside's head while a template is open. */
|
|
229
|
+
templateNotPublished: () => string;
|
|
230
|
+
/** A version — `v4`. */
|
|
231
|
+
version: (p: {
|
|
232
|
+
version: string;
|
|
233
|
+
}) => string;
|
|
234
|
+
/** After the live version in the aside's head — `v4 live`. */
|
|
235
|
+
liveVersion: () => string;
|
|
236
|
+
/** After a template's name in the aside's head. */
|
|
237
|
+
templateKind: () => string;
|
|
238
|
+
/** The change list's head — `3 changes since v3`. */
|
|
239
|
+
changesSince: (p: {
|
|
240
|
+
n: number;
|
|
241
|
+
count: string;
|
|
242
|
+
version: string;
|
|
243
|
+
}) => string;
|
|
244
|
+
/** The change list's head on a first publish — `3 changes · first version`. */
|
|
245
|
+
changesFirst: (p: {
|
|
246
|
+
n: number;
|
|
247
|
+
count: string;
|
|
248
|
+
}) => string;
|
|
249
|
+
/** The change list's head while nothing changed — `No changes since v4`. */
|
|
250
|
+
noChangesSince: (p: {
|
|
251
|
+
version: string;
|
|
252
|
+
}) => string;
|
|
253
|
+
/** A change's verb, before the placement's name — `Added`, `Resized`. */
|
|
254
|
+
changeVerb: (p: {
|
|
255
|
+
change: "added" | "removed" | "moved" | "resized" | "height" | "aligned" | "retitled";
|
|
256
|
+
}) => string;
|
|
257
|
+
/** The banner while every placed component's code is as it went live. */
|
|
258
|
+
logicUnchanged: () => string;
|
|
259
|
+
/** The banner naming the components whose code changed since the live version, by name, in the order they are placed. */
|
|
260
|
+
logicChangedIn: (p: {
|
|
261
|
+
version: string;
|
|
262
|
+
components: readonly string[];
|
|
263
|
+
}) => string;
|
|
264
|
+
/** The Audience row's label. */
|
|
265
|
+
audience: () => string;
|
|
266
|
+
/** The Rollout row's label. */
|
|
267
|
+
rollout: () => string;
|
|
268
|
+
/** The footer's Apply. */
|
|
269
|
+
saveAsDraft: () => string;
|
|
270
|
+
/** The footer's publish — `Publish v4 to Staging`; with no environment, `Publish v4`; for a template, `Publish`. */
|
|
271
|
+
publishTo: (p: {
|
|
272
|
+
version?: string | undefined;
|
|
273
|
+
env?: string | undefined;
|
|
274
|
+
}) => string;
|
|
275
|
+
}
|
|
276
|
+
/** The Studio's English messages — the default table. */
|
|
277
|
+
export declare const studioMessages: StudioMessages;
|
|
278
|
+
/**
|
|
279
|
+
* The message table in effect — {@link studioMessages} with every
|
|
280
|
+
* {@link StudioMessagesProvider} above overriding it.
|
|
281
|
+
*
|
|
282
|
+
* @returns The table
|
|
283
|
+
*/
|
|
284
|
+
export declare function useStudioMessages(): StudioMessages;
|
|
285
|
+
/** Props of {@link StudioMessagesProvider}. */
|
|
286
|
+
export interface StudioMessagesProviderProps {
|
|
287
|
+
/** The messages to override — any subset; the rest come from the table above. */
|
|
288
|
+
messages: Partial<StudioMessages>;
|
|
289
|
+
/** The subtree the overrides apply to. */
|
|
290
|
+
children?: ReactNode;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Override the Studio's words for a subtree — a translation, or a house style.
|
|
294
|
+
* Providers nest: each overrides the table the one above it resolved.
|
|
295
|
+
*
|
|
296
|
+
* @remarks
|
|
297
|
+
* The overrides are read by identity: define them once (module scope, or a
|
|
298
|
+
* memo), as below.
|
|
299
|
+
*
|
|
300
|
+
* @param props - The overrides and the subtree
|
|
301
|
+
* @returns The provider
|
|
302
|
+
*
|
|
303
|
+
* @example
|
|
304
|
+
* ```tsx
|
|
305
|
+
* const GERMAN: Partial<StudioMessages> = {
|
|
306
|
+
* nothingSelected: () => "Nichts ausgewählt",
|
|
307
|
+
* columnSpan: () => "Spaltenbreite",
|
|
308
|
+
* };
|
|
309
|
+
*
|
|
310
|
+
* <I18nProvider locale="de-DE">
|
|
311
|
+
* <StudioMessagesProvider messages={GERMAN}>
|
|
312
|
+
* <EastChakraComponent value={builder} />
|
|
313
|
+
* </StudioMessagesProvider>
|
|
314
|
+
* </I18nProvider>
|
|
315
|
+
* ```
|
|
316
|
+
*/
|
|
317
|
+
export declare function StudioMessagesProvider({ messages, children }: StudioMessagesProviderProps): import('react').FunctionComponentElement<import('react').ProviderProps<StudioMessages>>;
|
|
318
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/studio/messages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAqD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1F;;;;;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AS,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,2BAA2B,2FAIzF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ValueTypeOf } from '@elaraai/east';
|
|
2
|
+
import { StudioKeyType } from '@elaraai/e3-ui/internal';
|
|
3
|
+
/** A page's key. */
|
|
4
|
+
export type StudioKey = ValueTypeOf<typeof StudioKeyType>;
|
|
5
|
+
/**
|
|
6
|
+
* The page open in the builder the key names, and a way to open another.
|
|
7
|
+
*
|
|
8
|
+
* @param key - The builder's open-page key
|
|
9
|
+
* @param first - The page it opens before any is written — its project's first
|
|
10
|
+
* @returns The open page, and the write that opens another
|
|
11
|
+
*/
|
|
12
|
+
export declare function useOpenPage(key: string, first: StudioKey): [StudioKey, (next: StudioKey) => void];
|
|
13
|
+
//# sourceMappingURL=open-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open-page.d.ts","sourceRoot":"","sources":["../../src/studio/open-page.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,OAAO,EAAoC,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,oBAAoB;AACpB,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;AAK1D;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAQjG"}
|