@plitzi/sdk-shared 0.37.8 → 0.37.9
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/CHANGELOG.md +232 -0
- package/dist/actions/functions.d.ts +12 -3
- package/dist/actions/functions.mjs +8 -5
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.mjs +6 -6
- package/dist/auth/failureChannel.d.ts +8 -2
- package/dist/auth/failureChannel.mjs +1 -3
- package/dist/builder/contexts/BuilderContext.d.ts +1 -1
- package/dist/builder/contexts/BuilderContext.mjs +2 -3
- package/dist/devTools/DevToolsContext.mjs +2 -3
- package/dist/elements/ComponentContext.mjs +2 -3
- package/dist/helpers/sharedContext.d.ts +14 -0
- package/dist/helpers/sharedContext.mjs +9 -0
- package/dist/helpers/twigWrapper/Evaluator/Evaluator.d.ts +9 -1
- package/dist/helpers/twigWrapper/Evaluator/Evaluator.mjs +13 -8
- package/dist/helpers/twigWrapper/Evaluator/index.d.ts +1 -1
- package/dist/helpers/twigWrapper/index.d.ts +1 -0
- package/dist/helpers/twigWrapper/processTwig/processTwig.d.ts +2 -1
- package/dist/helpers/twigWrapper/processTwig/processTwig.mjs +3 -3
- package/dist/helpers/utils.mjs +4 -2
- package/dist/history/describe.mjs +1 -0
- package/dist/history/diff.d.ts +1 -1
- package/dist/history/diff.mjs +10 -9
- package/dist/history/types.d.ts +1 -1
- package/dist/hooks/usePlitziServiceContext.d.ts +1 -2
- package/dist/hooks/usePlitziServiceContext.mjs +3 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +12 -13
- package/dist/network/NetworkContext.mjs +2 -3
- package/dist/network/NetworkInternalContext.d.ts +2 -4
- package/dist/network/NetworkInternalContext.mjs +2 -3
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceAddComponentMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceAddComponentMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceDetachInstanceMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceDetachInstanceMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceRemoveComponentMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceRemoveComponentMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceUpdateComponentMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceUpdateComponentMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/index.d.ts +8 -29
- package/dist/network/graphql/builder/Mutations/index.mjs +158 -200
- package/dist/network/graphql/builder/Queries/InitQuery.d.ts +2 -3
- package/dist/network/graphql/builder/Queries/InitQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceActionTasksQuery.d.ts +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceActionTasksQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceVersionContentsQuery.d.ts +7 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceVersionContentsQuery.mjs +4 -0
- package/dist/network/graphql/builder/Queries/index.d.ts +2 -4
- package/dist/network/graphql/builder/Queries/index.mjs +36 -38
- package/dist/network/graphql/builder/Subscriptions/SpaceEventSubscription.d.ts +1 -1
- package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +2 -3
- package/dist/network/graphql/sdk/Queries/InitQuery.mjs +1 -1
- package/dist/network/graphql/sdk/Queries/index.d.ts +0 -4
- package/dist/network/graphql/sdk/Queries/index.mjs +2 -8
- package/dist/network/spaceEvents.d.ts +14 -190
- package/dist/network/spaceEvents.mjs +48 -132
- package/dist/schema/SchemaContext.mjs +2 -3
- package/dist/schema/index.mjs +4 -4
- package/dist/schema/schemaConstants.d.ts +2 -0
- package/dist/schema/schemaConstants.mjs +4 -3
- package/dist/server/rsc/refreshRsc.d.ts +3 -1
- package/dist/server/rsc/refreshRsc.mjs +15 -14
- package/dist/source/export.d.ts +107 -0
- package/dist/source/export.mjs +4 -0
- package/dist/source/index.d.ts +4 -0
- package/dist/source/index.mjs +3 -0
- package/dist/source/snapshot.d.ts +51 -0
- package/dist/source/snapshot.mjs +80 -0
- package/dist/store/index.d.ts +45 -45
- package/dist/store/renderSettings.d.ts +1 -0
- package/dist/store/renderSettings.mjs +9 -5
- package/dist/theme/ThemeScope.mjs +4 -3
- package/dist/types/ActionTypes.d.ts +5 -0
- package/dist/types/ElementTypes.d.ts +6 -5
- package/dist/types/EventBridgeTypes.d.ts +2 -2
- package/dist/types/FunctionTypes.d.ts +13 -0
- package/dist/types/InteractionTypes.d.ts +5 -0
- package/dist/types/SchemaTypes.d.ts +38 -0
- package/dist/types/SdkTypes.d.ts +0 -2
- package/dist/types/SpaceTypes.d.ts +36 -0
- package/dist/types/StoreTypes.d.ts +14 -3
- package/dist/types/index.d.ts +0 -1
- package/package.json +43 -134
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.d.ts +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.d.ts +0 -8
- package/dist/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/SegmentRemoveMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/SegmentRemoveMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.d.ts +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.d.ts +0 -3
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation.mjs +0 -4
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation.mjs +0 -4
- package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.d.ts +0 -6
- package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.mjs +0 -4
- package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.d.ts +0 -9
- package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.mjs +0 -4
- package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.d.ts +0 -6
- package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.mjs +0 -4
- package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.d.ts +0 -9
- package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.mjs +0 -4
- package/dist/segments/SegmentsContext.d.ts +0 -2
- package/dist/segments/SegmentsContext.mjs +0 -6
- package/dist/segments/index.d.ts +0 -3
- package/dist/segments/index.mjs +0 -2
- package/dist/types/SegmentTypes.d.ts +0 -41
- package/dist/types/SegmentTypes.mjs +0 -0
|
@@ -9,9 +9,10 @@ var n = {
|
|
|
9
9
|
isHydrating: !1,
|
|
10
10
|
hydrated: !1,
|
|
11
11
|
overQuota: !1,
|
|
12
|
-
testAttributes: !0
|
|
12
|
+
testAttributes: !0,
|
|
13
|
+
ownsHead: !0
|
|
13
14
|
}, r = () => {
|
|
14
|
-
let [[r, i, a, o, s, c, l, u]] = e([
|
|
15
|
+
let [[r, i, a, o, s, c, l, u, d]] = e([
|
|
15
16
|
"render.previewMode",
|
|
16
17
|
"render.debugMode",
|
|
17
18
|
"render.renderMode",
|
|
@@ -19,7 +20,8 @@ var n = {
|
|
|
19
20
|
"render.isHydrating",
|
|
20
21
|
"render.hydrated",
|
|
21
22
|
"render.overQuota",
|
|
22
|
-
"render.testAttributes"
|
|
23
|
+
"render.testAttributes",
|
|
24
|
+
"render.ownsHead"
|
|
23
25
|
]);
|
|
24
26
|
return t(() => ({
|
|
25
27
|
previewMode: r ?? n.previewMode,
|
|
@@ -29,7 +31,8 @@ var n = {
|
|
|
29
31
|
isHydrating: s ?? n.isHydrating,
|
|
30
32
|
hydrated: c ?? n.hydrated,
|
|
31
33
|
overQuota: l ?? n.overQuota,
|
|
32
|
-
testAttributes: u ?? n.testAttributes
|
|
34
|
+
testAttributes: u ?? n.testAttributes,
|
|
35
|
+
ownsHead: d ?? n.ownsHead
|
|
33
36
|
}), [
|
|
34
37
|
r,
|
|
35
38
|
i,
|
|
@@ -38,7 +41,8 @@ var n = {
|
|
|
38
41
|
s,
|
|
39
42
|
c,
|
|
40
43
|
l,
|
|
41
|
-
u
|
|
44
|
+
u,
|
|
45
|
+
d
|
|
42
46
|
]);
|
|
43
47
|
}, i = (e) => {
|
|
44
48
|
let n = r();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
1
|
+
import { sharedContext as e } from "../helpers/sharedContext.mjs";
|
|
2
|
+
import t from "./themeStore.mjs";
|
|
3
|
+
import { use as n } from "react";
|
|
3
4
|
//#region src/theme/ThemeScope.ts
|
|
4
|
-
var r =
|
|
5
|
+
var r = e("ThemeScopeContext", void 0), i = () => n(r) ?? t;
|
|
5
6
|
//#endregion
|
|
6
7
|
export { r as default, i as useThemeStore };
|
|
@@ -208,6 +208,11 @@ export type ActionTaskDescriptor = {
|
|
|
208
208
|
action: string;
|
|
209
209
|
title: string;
|
|
210
210
|
description?: string;
|
|
211
|
+
/**
|
|
212
|
+
* Whose step it is: the deployment's (`http.request`, `kv.get`…) or one of the space's own functions. A run treats
|
|
213
|
+
* both alike; the editor lists them apart.
|
|
214
|
+
*/
|
|
215
|
+
origin: 'deployment' | 'space';
|
|
211
216
|
params: Record<string, unknown>;
|
|
212
217
|
};
|
|
213
218
|
/**
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { Asset, PluginManifest, PluginSchema } from './PluginTypes';
|
|
2
2
|
import { Element } from './SchemaTypes';
|
|
3
|
-
export type ElementLayoutType = 'layout' | '
|
|
3
|
+
export type ElementLayoutType = 'layout' | 'component';
|
|
4
4
|
/**
|
|
5
|
-
* Which shell an element is rendered inside, and which of its containers
|
|
5
|
+
* Which shell an element is rendered inside, and which of its containers are slots.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* A layout has one slot, where the page goes; a component instance has the slots its component declares, each filled
|
|
8
|
+
* with the instance's children that name it. Every element of the shell carries this, so it holds nothing that changes
|
|
9
|
+
* with what fills the slots: that reaches each slot through `LayoutBody` in `@plitzi/sdk-elements`.
|
|
9
10
|
*/
|
|
10
11
|
export type ElementLayout = {
|
|
11
|
-
|
|
12
|
+
slots: Element['id'][];
|
|
12
13
|
rootId: string;
|
|
13
14
|
type: ElementLayoutType;
|
|
14
15
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type EventBridgeContextValue<T = any> = {
|
|
2
2
|
eventBridge: T;
|
|
3
3
|
};
|
|
4
|
-
export type EventBridgeModule = 'main' | 'builder' | '
|
|
5
|
-
export type EventBridgeEvent = 'schemaAddPage' | 'schemaHomePage' | 'schemaUpdatePage' | 'schemaRemovePage' | 'schemaAddPageFolder' | 'schemaUpdatePageFolder' | 'schemaRemovePageFolder' | 'schemaUpdateSettings' | 'schemaUpdate' | 'schemaAddElement' | 'schemaUpdateElement' | 'schemaRenameElement' | 'schemaUpdateElements' | 'schemaRemoveElement' | 'schemaMoveElement' | 'schemaCloneElement' | 'schemaAddVariable' | 'schemaUpdateVariable' | 'schemaRemoveVariable' | 'schemaAddTemplate' | 'styleUpdate' | 'styleAddSelector' | 'styleUpdateSelector' | 'styleRemoveSelector' | 'styleRemoveSelectors' | 'styleAddSelectorVariable' | 'styleUpdateSelectorVariable' | 'styleRemoveSelectorVariable' | 'styleAddVariable' | 'styleUpdateVariable' | 'styleRemoveVariable' | 'styleAddFont' | 'styleUpdateFont' | 'styleRemoveFont' | 'styleAddTemplate' | 'styleUpdateSettings' | 'builderSetBaseContext' | 'builderSetSelected' | 'builderSetHovered';
|
|
4
|
+
export type EventBridgeModule = 'main' | 'builder' | 'template' | 'interaction' | 'element';
|
|
5
|
+
export type EventBridgeEvent = 'schemaAddPage' | 'schemaHomePage' | 'schemaUpdatePage' | 'schemaRemovePage' | 'schemaAddPageFolder' | 'schemaUpdatePageFolder' | 'schemaRemovePageFolder' | 'schemaUpdateSettings' | 'schemaUpdate' | 'schemaAddElement' | 'schemaUpdateElement' | 'schemaRenameElement' | 'schemaUpdateElements' | 'schemaRemoveElement' | 'schemaMoveElement' | 'schemaCloneElement' | 'schemaAddVariable' | 'schemaUpdateVariable' | 'schemaRemoveVariable' | 'schemaAddTemplate' | 'schemaAddComponent' | 'schemaUpdateComponent' | 'schemaRemoveComponent' | 'schemaDetachInstance' | 'styleUpdate' | 'styleAddSelector' | 'styleUpdateSelector' | 'styleRemoveSelector' | 'styleRemoveSelectors' | 'styleAddSelectorVariable' | 'styleUpdateSelectorVariable' | 'styleRemoveSelectorVariable' | 'styleAddVariable' | 'styleUpdateVariable' | 'styleRemoveVariable' | 'styleAddFont' | 'styleUpdateFont' | 'styleRemoveFont' | 'styleAddTemplate' | 'styleUpdateSettings' | 'builderSetBaseContext' | 'builderSetSelected' | 'builderSetHovered';
|
|
@@ -3,6 +3,15 @@ import { InteractionCallbackParam } from './InteractionTypes';
|
|
|
3
3
|
* A space's own functions, as everything outside the runner sees them: the builder, the CLI, the MCP and the
|
|
4
4
|
* platform that stores them. The contract the code itself is written against is `@plitzi/sdk-server/functions`.
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* What a task — or every task and route, declared once for all of them — asks to be given beyond an invocation's
|
|
8
|
+
* default: CPU time, awaits not counted, and wall time, from the moment it starts. Never more than the server allows;
|
|
9
|
+
* asking for more is a problem when the functions are saved.
|
|
10
|
+
*/
|
|
11
|
+
export type FunctionTimeLimits = {
|
|
12
|
+
cpuMs?: number;
|
|
13
|
+
wallMs?: number;
|
|
14
|
+
};
|
|
6
15
|
/** One task the functions declare: everything but its code — what the catalog shows and a step is drawn from. */
|
|
7
16
|
export type FunctionTaskManifest = {
|
|
8
17
|
namespace: string;
|
|
@@ -10,6 +19,8 @@ export type FunctionTaskManifest = {
|
|
|
10
19
|
title: string;
|
|
11
20
|
description?: string;
|
|
12
21
|
params: Record<string, InteractionCallbackParam<Record<string, unknown>>>;
|
|
22
|
+
/** What it asks for beyond the default — over what the functions ask for all of their tasks. */
|
|
23
|
+
limits?: FunctionTimeLimits;
|
|
13
24
|
};
|
|
14
25
|
/** What a space's functions declare, read from the bundle when it is saved: its tasks, routes and reachable hosts. */
|
|
15
26
|
export type FunctionsManifest = {
|
|
@@ -17,6 +28,8 @@ export type FunctionsManifest = {
|
|
|
17
28
|
tasks: FunctionTaskManifest[];
|
|
18
29
|
/** The route keys, `'GET /board-assets/:board/:asset'`, as declared. */
|
|
19
30
|
routes: string[];
|
|
31
|
+
/** What every task and route asks for beyond the default, unless a task asks for its own. */
|
|
32
|
+
limits?: FunctionTimeLimits;
|
|
20
33
|
};
|
|
21
34
|
/** One reason functions were not saved, where it is — what an editor underlines. */
|
|
22
35
|
export type FunctionsProblem = {
|
|
@@ -92,6 +92,11 @@ export type InteractionCallback<T extends Record<string, unknown> = Record<strin
|
|
|
92
92
|
action: string;
|
|
93
93
|
title: string;
|
|
94
94
|
type: InteractionCallbackType;
|
|
95
|
+
/**
|
|
96
|
+
* The heading the editor's picker lists it under, when that is not its type's: a space's own functions are tasks to
|
|
97
|
+
* the run, and a category of their own to whoever picks a step.
|
|
98
|
+
*/
|
|
99
|
+
group?: string;
|
|
95
100
|
enabled?: boolean;
|
|
96
101
|
params: Record<keyof T, InteractionCallbackParam<T>> | ((params: InteractionCallbackParamValues<T>) => Record<keyof T, InteractionCallbackParam<T>>);
|
|
97
102
|
callback?: (params: InteractionCallbackParamValues<T>, context?: InteractionCallbackContext) => unknown;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InteractionCallbackParamValues, InteractionCallbackType } from './InteractionTypes';
|
|
2
2
|
import { ChannelDeclarations } from './RealtimeTypes';
|
|
3
3
|
import { Style } from './StyleTypes';
|
|
4
|
+
import { BuiltinParam } from '../authoring/paramSpec';
|
|
4
5
|
import { RuleGroup } from '@plitzi/plitzi-ui/QueryBuilder';
|
|
5
6
|
export type ElementRuntime = 'server' | 'client' | 'shared';
|
|
6
7
|
/**
|
|
@@ -125,6 +126,34 @@ export type PageFolder = {
|
|
|
125
126
|
slug: string;
|
|
126
127
|
parentId?: PageFolder['id'];
|
|
127
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* A prop a component declares, as the document stores it: the part of a `BuiltinParam` that survives JSON — no `when`
|
|
131
|
+
* guard and no `builderType` worked out from other params, which are functions and only ever live in code.
|
|
132
|
+
*/
|
|
133
|
+
export type ComponentProp = Pick<BuiltinParam, 'type' | 'description' | 'default' | 'options' | 'required' | 'label' | 'optionLabels' | 'elementType'>;
|
|
134
|
+
/**
|
|
135
|
+
* A reusable subtree of the space: declared once, placed on any page as an instance (a `reference` element with
|
|
136
|
+
* `referenceType: 'component'`), and versioned, published and copied with the space because it is part of it.
|
|
137
|
+
*
|
|
138
|
+
* Its tree is a `flat` of its own rather than roots inside `schema.flat`: that one is the tree of the pages, and a
|
|
139
|
+
* component belongs to none. Ids are still one namespace across every tree, so an id alone says which tree it is in.
|
|
140
|
+
*/
|
|
141
|
+
export type SpaceComponent = {
|
|
142
|
+
/** The key it is stored under, and what an instance names in `referenceId`. */
|
|
143
|
+
id: string;
|
|
144
|
+
label?: string;
|
|
145
|
+
/** The page folder the builder files it under. It routes nothing: a component has no URL of its own. */
|
|
146
|
+
folder?: string;
|
|
147
|
+
/** What an instance hands in, each as an attribute of the instance; read inside as `{{ props.<name> }}`. */
|
|
148
|
+
props?: Record<string, ComponentProp>;
|
|
149
|
+
/** Elements of `flat` an instance fills with its children, each child naming the one it goes in (`slot`). */
|
|
150
|
+
slots?: Element['id'][];
|
|
151
|
+
rootId: Element['id'];
|
|
152
|
+
/** `rootId` with no parent, and everything under it. */
|
|
153
|
+
flat: Record<Element['id'], Element>;
|
|
154
|
+
};
|
|
155
|
+
/** What a component declares, apart from its tree: the part an update may change. */
|
|
156
|
+
export type SpaceComponentDeclaration = Pick<SpaceComponent, 'label' | 'folder' | 'props' | 'slots'>;
|
|
128
157
|
export type Schema = {
|
|
129
158
|
flat: Record<string, Element>;
|
|
130
159
|
definition: {
|
|
@@ -225,6 +254,7 @@ export type Schema = {
|
|
|
225
254
|
rsc?: SchemaRsc;
|
|
226
255
|
pages: Element['id'][];
|
|
227
256
|
pageFolders: PageFolder[];
|
|
257
|
+
components: Record<SpaceComponent['id'], SpaceComponent>;
|
|
228
258
|
};
|
|
229
259
|
export type SchemaContextValue = {
|
|
230
260
|
definition?: {
|
|
@@ -239,6 +269,13 @@ export type SchemaContextValue = {
|
|
|
239
269
|
schemaMoveElement?: (from: string, to: string, elementId: string, dropPosition?: DropPosition, fromSubscriptions?: boolean) => void;
|
|
240
270
|
schemaCloneElement?: (elementId: string, targetId?: string, fromSubscriptions?: boolean) => void;
|
|
241
271
|
schemaRemoveElement?: (elementId: string, fromSubscriptions?: boolean) => void;
|
|
272
|
+
schemaAddComponent?: (component: SpaceComponent, from?: {
|
|
273
|
+
elementId: Element['id'];
|
|
274
|
+
instanceId: Element['id'];
|
|
275
|
+
}, fromSubscriptions?: boolean) => void;
|
|
276
|
+
schemaUpdateComponent?: (componentId: SpaceComponent['id'], declaration: SpaceComponentDeclaration, fromSubscriptions?: boolean) => void;
|
|
277
|
+
schemaRemoveComponent?: (componentId: SpaceComponent['id'], fromSubscriptions?: boolean) => void;
|
|
278
|
+
schemaDetachInstance?: (instanceId: Element['id'], fromSubscriptions?: boolean) => void;
|
|
242
279
|
schemaAddPage?: (page: Element, fromSubscriptions?: boolean) => Promise<void>;
|
|
243
280
|
schemaHomePage?: (pageId: string, fromSubscriptions?: boolean) => void;
|
|
244
281
|
schemaUpdatePage?: (page: Element, fromSubscriptions?: boolean) => void;
|
|
@@ -260,5 +297,6 @@ export type SchemaRaw = {
|
|
|
260
297
|
rsc?: Schema['rsc'];
|
|
261
298
|
pages: Element['id'][];
|
|
262
299
|
pageFolders: PageFolder[];
|
|
300
|
+
components: Schema['components'];
|
|
263
301
|
};
|
|
264
302
|
export {};
|
package/dist/types/SdkTypes.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { ComponentDefinition } from './ElementTypes';
|
|
2
2
|
import { PluginRaw } from './PluginTypes';
|
|
3
3
|
import { Schema } from './SchemaTypes';
|
|
4
|
-
import { Segment } from './SegmentTypes';
|
|
5
4
|
import { Style } from './StyleTypes';
|
|
6
5
|
export type OfflineDataRaw = {
|
|
7
6
|
schema: Schema;
|
|
8
7
|
style: Style;
|
|
9
8
|
plugins?: PluginRaw[];
|
|
10
|
-
segments?: Record<string, Segment>;
|
|
11
9
|
};
|
|
12
10
|
export type OfflineData = Omit<OfflineDataRaw, 'plugins'> & {
|
|
13
11
|
plugins: Record<string, ComponentDefinition>;
|
|
@@ -108,3 +108,39 @@ export type SpaceDeployment = {
|
|
|
108
108
|
createdAt: number;
|
|
109
109
|
updatedAt: number;
|
|
110
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* What one version of a space is made of: the draft (`main`) a snapshot would freeze, or a snapshot as it was frozen.
|
|
113
|
+
* Counts and names, never contents — what the builder shows before a snapshot is made, and what `plitzi create --from`
|
|
114
|
+
* says it is taking out.
|
|
115
|
+
*/
|
|
116
|
+
export type SpaceVersionContents = {
|
|
117
|
+
environment: Environment;
|
|
118
|
+
/** 0 for the draft. */
|
|
119
|
+
revision: number;
|
|
120
|
+
/** A snapshot's own words and moment; none for the draft. */
|
|
121
|
+
snapshot: {
|
|
122
|
+
description: string;
|
|
123
|
+
publishedAt: string;
|
|
124
|
+
} | null;
|
|
125
|
+
pages: number;
|
|
126
|
+
layouts: number;
|
|
127
|
+
/** The space's components, each its own tree — frozen with the version like the pages. */
|
|
128
|
+
components: number;
|
|
129
|
+
elements: number;
|
|
130
|
+
/** Every plugin installed, and whether the source it was built from is kept with this version. */
|
|
131
|
+
plugins: {
|
|
132
|
+
type: string;
|
|
133
|
+
source: boolean;
|
|
134
|
+
}[];
|
|
135
|
+
actions: number;
|
|
136
|
+
connectors: number;
|
|
137
|
+
/** What the space's functions declare, or none when it has none. */
|
|
138
|
+
functions: {
|
|
139
|
+
tasks: number;
|
|
140
|
+
routes: number;
|
|
141
|
+
} | null;
|
|
142
|
+
/** Its runtime, and whether the source it was packed from is kept with this version — none when it has none. */
|
|
143
|
+
runtime: {
|
|
144
|
+
source: boolean;
|
|
145
|
+
} | null;
|
|
146
|
+
};
|
|
@@ -5,7 +5,6 @@ import { Source } from './DataSourceTypes';
|
|
|
5
5
|
import { QueryParams, RouteParams } from './NavigationTypes';
|
|
6
6
|
import { RealtimeTransport } from './RealtimeTypes';
|
|
7
7
|
import { Schema, Element } from './SchemaTypes';
|
|
8
|
-
import { Segment } from './SegmentTypes';
|
|
9
8
|
import { SpaceConnector } from './SpaceTypes';
|
|
10
9
|
import { DisplayMode, Style, StyleState } from './StyleTypes';
|
|
11
10
|
import { ColorScheme, Theme } from './ThemeTypes';
|
|
@@ -24,11 +23,9 @@ export type RuntimeSourceValues = {
|
|
|
24
23
|
};
|
|
25
24
|
};
|
|
26
25
|
export type CommonState = {
|
|
27
|
-
prevSchema?: Schema;
|
|
28
26
|
schema: Schema;
|
|
29
27
|
pageDefinitions: Record<string, Element>;
|
|
30
28
|
style: Style;
|
|
31
|
-
segments: Record<string, Segment>;
|
|
32
29
|
runtime?: {
|
|
33
30
|
sources: RuntimeSourceValues & Record<string, unknown>;
|
|
34
31
|
state?: Record<string, unknown>;
|
|
@@ -127,6 +124,15 @@ export type RenderSettings = {
|
|
|
127
124
|
* has to keep in step with the document by hand.
|
|
128
125
|
*/
|
|
129
126
|
testAttributes?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Whether the page may write the document's head — its SEO title and description. On, as a page's own document is.
|
|
129
|
+
*
|
|
130
|
+
* Off where the page is drawn in a frame of a host whose document is not the page's: the builder's canvas. A head
|
|
131
|
+
* manager writes the head of the document its code runs in, which there is the editor's — and the builder is itself
|
|
132
|
+
* mounted in a page that manages that head, so a second manager under it rewrote the host's tags and took the
|
|
133
|
+
* builder's own stylesheet away the moment a preview showed a page with SEO.
|
|
134
|
+
*/
|
|
135
|
+
ownsHead?: boolean;
|
|
130
136
|
};
|
|
131
137
|
/** Absent `endpoint` is the whole feature switch: a render with no server tier leaves every `serverAction` step
|
|
132
138
|
* inert instead of letting each click discover a 404. */
|
|
@@ -217,6 +223,11 @@ export type BuilderState = CommonState & {
|
|
|
217
223
|
styleAncestor?: string;
|
|
218
224
|
elementHovered?: string;
|
|
219
225
|
elementSelected?: string;
|
|
226
|
+
/**
|
|
227
|
+
* The component open in the canvas instead of a page, by id. Editor-only: what the author is editing, never part
|
|
228
|
+
* of the document — the canvas, the layers and the element tools then read the component's tree.
|
|
229
|
+
*/
|
|
230
|
+
componentOpen?: string;
|
|
220
231
|
setHovered: (elementId?: string) => void;
|
|
221
232
|
setSelected: (elementId?: string, iframeDOM?: HTMLIFrameElement | null, force?: boolean) => void;
|
|
222
233
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from './PluginTypes';
|
|
|
6
6
|
export * from './ElementTypes';
|
|
7
7
|
export * from './DataSourceTypes';
|
|
8
8
|
export * from './EventBridgeTypes';
|
|
9
|
-
export * from './SegmentTypes';
|
|
10
9
|
export * from './BuilderTypes';
|
|
11
10
|
export * from './NavigationTypes';
|
|
12
11
|
export * from './CollectionTypes';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-shared",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.9",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -322,6 +322,10 @@
|
|
|
322
322
|
"types": "./dist/helpers/security.d.ts",
|
|
323
323
|
"import": "./dist/helpers/security.mjs"
|
|
324
324
|
},
|
|
325
|
+
"./helpers/sharedContext": {
|
|
326
|
+
"types": "./dist/helpers/sharedContext.d.ts",
|
|
327
|
+
"import": "./dist/helpers/sharedContext.mjs"
|
|
328
|
+
},
|
|
325
329
|
"./helpers/stripTypename": {
|
|
326
330
|
"types": "./dist/helpers/stripTypename.d.ts",
|
|
327
331
|
"import": "./dist/helpers/stripTypename.mjs"
|
|
@@ -559,106 +563,6 @@
|
|
|
559
563
|
"types": "./dist/network/graphql/builder/Mutations/index.d.ts",
|
|
560
564
|
"import": "./dist/network/graphql/builder/Mutations/index.mjs"
|
|
561
565
|
},
|
|
562
|
-
"./network/graphql/builder/Mutations/Segment/SegmentAddMutation": {
|
|
563
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.d.ts",
|
|
564
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.mjs"
|
|
565
|
-
},
|
|
566
|
-
"./network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation": {
|
|
567
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.d.ts",
|
|
568
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.mjs"
|
|
569
|
-
},
|
|
570
|
-
"./network/graphql/builder/Mutations/Segment/SegmentPublishMutation": {
|
|
571
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.d.ts",
|
|
572
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.mjs"
|
|
573
|
-
},
|
|
574
|
-
"./network/graphql/builder/Mutations/Segment/SegmentRemoveMutation": {
|
|
575
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/SegmentRemoveMutation.d.ts",
|
|
576
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/SegmentRemoveMutation.mjs"
|
|
577
|
-
},
|
|
578
|
-
"./network/graphql/builder/Mutations/Segment/SegmentUpdateMutation": {
|
|
579
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.d.ts",
|
|
580
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.mjs"
|
|
581
|
-
},
|
|
582
|
-
"./network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation": {
|
|
583
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.d.ts",
|
|
584
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.mjs"
|
|
585
|
-
},
|
|
586
|
-
"./network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation": {
|
|
587
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.d.ts",
|
|
588
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.mjs"
|
|
589
|
-
},
|
|
590
|
-
"./network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation": {
|
|
591
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.d.ts",
|
|
592
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.mjs"
|
|
593
|
-
},
|
|
594
|
-
"./network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation": {
|
|
595
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.d.ts",
|
|
596
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.mjs"
|
|
597
|
-
},
|
|
598
|
-
"./network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation": {
|
|
599
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.d.ts",
|
|
600
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.mjs"
|
|
601
|
-
},
|
|
602
|
-
"./network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation": {
|
|
603
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.d.ts",
|
|
604
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.mjs"
|
|
605
|
-
},
|
|
606
|
-
"./network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation": {
|
|
607
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.d.ts",
|
|
608
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.mjs"
|
|
609
|
-
},
|
|
610
|
-
"./network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation": {
|
|
611
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation.d.ts",
|
|
612
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation.mjs"
|
|
613
|
-
},
|
|
614
|
-
"./network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation": {
|
|
615
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.d.ts",
|
|
616
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.mjs"
|
|
617
|
-
},
|
|
618
|
-
"./network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation": {
|
|
619
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation.d.ts",
|
|
620
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation.mjs"
|
|
621
|
-
},
|
|
622
|
-
"./network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation": {
|
|
623
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.d.ts",
|
|
624
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.mjs"
|
|
625
|
-
},
|
|
626
|
-
"./network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation": {
|
|
627
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.d.ts",
|
|
628
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.mjs"
|
|
629
|
-
},
|
|
630
|
-
"./network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation": {
|
|
631
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.d.ts",
|
|
632
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.mjs"
|
|
633
|
-
},
|
|
634
|
-
"./network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation": {
|
|
635
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation.d.ts",
|
|
636
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation.mjs"
|
|
637
|
-
},
|
|
638
|
-
"./network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation": {
|
|
639
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.d.ts",
|
|
640
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.mjs"
|
|
641
|
-
},
|
|
642
|
-
"./network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation": {
|
|
643
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation.d.ts",
|
|
644
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation.mjs"
|
|
645
|
-
},
|
|
646
|
-
"./network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation": {
|
|
647
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation.d.ts",
|
|
648
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation.mjs"
|
|
649
|
-
},
|
|
650
|
-
"./network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation": {
|
|
651
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation.d.ts",
|
|
652
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation.mjs"
|
|
653
|
-
},
|
|
654
|
-
"./network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation": {
|
|
655
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation.d.ts",
|
|
656
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation.mjs"
|
|
657
|
-
},
|
|
658
|
-
"./network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation": {
|
|
659
|
-
"types": "./dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation.d.ts",
|
|
660
|
-
"import": "./dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation.mjs"
|
|
661
|
-
},
|
|
662
566
|
"./network/graphql/builder/Mutations/Space/SpaceAddElementMutation": {
|
|
663
567
|
"types": "./dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.d.ts",
|
|
664
568
|
"import": "./dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.mjs"
|
|
@@ -771,6 +675,22 @@
|
|
|
771
675
|
"types": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.d.ts",
|
|
772
676
|
"import": "./dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.mjs"
|
|
773
677
|
},
|
|
678
|
+
"./network/graphql/builder/Mutations/Space/components/SpaceAddComponentMutation": {
|
|
679
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/components/SpaceAddComponentMutation.d.ts",
|
|
680
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/components/SpaceAddComponentMutation.mjs"
|
|
681
|
+
},
|
|
682
|
+
"./network/graphql/builder/Mutations/Space/components/SpaceDetachInstanceMutation": {
|
|
683
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/components/SpaceDetachInstanceMutation.d.ts",
|
|
684
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/components/SpaceDetachInstanceMutation.mjs"
|
|
685
|
+
},
|
|
686
|
+
"./network/graphql/builder/Mutations/Space/components/SpaceRemoveComponentMutation": {
|
|
687
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/components/SpaceRemoveComponentMutation.d.ts",
|
|
688
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/components/SpaceRemoveComponentMutation.mjs"
|
|
689
|
+
},
|
|
690
|
+
"./network/graphql/builder/Mutations/Space/components/SpaceUpdateComponentMutation": {
|
|
691
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/components/SpaceUpdateComponentMutation.d.ts",
|
|
692
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/components/SpaceUpdateComponentMutation.mjs"
|
|
693
|
+
},
|
|
774
694
|
"./network/graphql/builder/Mutations/Space/connectors/SpaceAddConnectorMutation": {
|
|
775
695
|
"types": "./dist/network/graphql/builder/Mutations/Space/connectors/SpaceAddConnectorMutation.d.ts",
|
|
776
696
|
"import": "./dist/network/graphql/builder/Mutations/Space/connectors/SpaceAddConnectorMutation.mjs"
|
|
@@ -967,14 +887,6 @@
|
|
|
967
887
|
"types": "./dist/network/graphql/builder/Queries/InitQuery.d.ts",
|
|
968
888
|
"import": "./dist/network/graphql/builder/Queries/InitQuery.mjs"
|
|
969
889
|
},
|
|
970
|
-
"./network/graphql/builder/Queries/Segment/SegmentQuery": {
|
|
971
|
-
"types": "./dist/network/graphql/builder/Queries/Segment/SegmentQuery.d.ts",
|
|
972
|
-
"import": "./dist/network/graphql/builder/Queries/Segment/SegmentQuery.mjs"
|
|
973
|
-
},
|
|
974
|
-
"./network/graphql/builder/Queries/Segment/SegmentsQuery": {
|
|
975
|
-
"types": "./dist/network/graphql/builder/Queries/Segment/SegmentsQuery.d.ts",
|
|
976
|
-
"import": "./dist/network/graphql/builder/Queries/Segment/SegmentsQuery.mjs"
|
|
977
|
-
},
|
|
978
890
|
"./network/graphql/builder/Queries/Space/SpaceActionEventsQuery": {
|
|
979
891
|
"types": "./dist/network/graphql/builder/Queries/Space/SpaceActionEventsQuery.d.ts",
|
|
980
892
|
"import": "./dist/network/graphql/builder/Queries/Space/SpaceActionEventsQuery.mjs"
|
|
@@ -1035,6 +947,10 @@
|
|
|
1035
947
|
"types": "./dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.d.ts",
|
|
1036
948
|
"import": "./dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.mjs"
|
|
1037
949
|
},
|
|
950
|
+
"./network/graphql/builder/Queries/Space/SpaceVersionContentsQuery": {
|
|
951
|
+
"types": "./dist/network/graphql/builder/Queries/Space/SpaceVersionContentsQuery.d.ts",
|
|
952
|
+
"import": "./dist/network/graphql/builder/Queries/Space/SpaceVersionContentsQuery.mjs"
|
|
953
|
+
},
|
|
1038
954
|
"./network/graphql/builder/Queries/Space/SpaceVisitorsQuery": {
|
|
1039
955
|
"types": "./dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.d.ts",
|
|
1040
956
|
"import": "./dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.mjs"
|
|
@@ -1087,14 +1003,6 @@
|
|
|
1087
1003
|
"types": "./dist/network/graphql/sdk/Queries/InitQuery.d.ts",
|
|
1088
1004
|
"import": "./dist/network/graphql/sdk/Queries/InitQuery.mjs"
|
|
1089
1005
|
},
|
|
1090
|
-
"./network/graphql/sdk/Queries/Segment/SegmentQuery": {
|
|
1091
|
-
"types": "./dist/network/graphql/sdk/Queries/Segment/SegmentQuery.d.ts",
|
|
1092
|
-
"import": "./dist/network/graphql/sdk/Queries/Segment/SegmentQuery.mjs"
|
|
1093
|
-
},
|
|
1094
|
-
"./network/graphql/sdk/Queries/Segment/SegmentsQuery": {
|
|
1095
|
-
"types": "./dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.d.ts",
|
|
1096
|
-
"import": "./dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.mjs"
|
|
1097
|
-
},
|
|
1098
1006
|
"./network/graphql/sdk/Queries/index": {
|
|
1099
1007
|
"types": "./dist/network/graphql/sdk/Queries/index.d.ts",
|
|
1100
1008
|
"import": "./dist/network/graphql/sdk/Queries/index.mjs"
|
|
@@ -1171,18 +1079,6 @@
|
|
|
1171
1079
|
"types": "./dist/schema/serverElements.d.ts",
|
|
1172
1080
|
"import": "./dist/schema/serverElements.mjs"
|
|
1173
1081
|
},
|
|
1174
|
-
"./segments": {
|
|
1175
|
-
"types": "./dist/segments/index.d.ts",
|
|
1176
|
-
"import": "./dist/segments/index.mjs"
|
|
1177
|
-
},
|
|
1178
|
-
"./segments/SegmentsContext": {
|
|
1179
|
-
"types": "./dist/segments/SegmentsContext.d.ts",
|
|
1180
|
-
"import": "./dist/segments/SegmentsContext.mjs"
|
|
1181
|
-
},
|
|
1182
|
-
"./segments/index": {
|
|
1183
|
-
"types": "./dist/segments/index.d.ts",
|
|
1184
|
-
"import": "./dist/segments/index.mjs"
|
|
1185
|
-
},
|
|
1186
1082
|
"./server": {
|
|
1187
1083
|
"types": "./dist/server/index.d.ts",
|
|
1188
1084
|
"import": "./dist/server/index.mjs"
|
|
@@ -1211,6 +1107,22 @@
|
|
|
1211
1107
|
"types": "./dist/server/rsc/useRscSync.d.ts",
|
|
1212
1108
|
"import": "./dist/server/rsc/useRscSync.mjs"
|
|
1213
1109
|
},
|
|
1110
|
+
"./source": {
|
|
1111
|
+
"types": "./dist/source/index.d.ts",
|
|
1112
|
+
"import": "./dist/source/index.mjs"
|
|
1113
|
+
},
|
|
1114
|
+
"./source/export": {
|
|
1115
|
+
"types": "./dist/source/export.d.ts",
|
|
1116
|
+
"import": "./dist/source/export.mjs"
|
|
1117
|
+
},
|
|
1118
|
+
"./source/index": {
|
|
1119
|
+
"types": "./dist/source/index.d.ts",
|
|
1120
|
+
"import": "./dist/source/index.mjs"
|
|
1121
|
+
},
|
|
1122
|
+
"./source/snapshot": {
|
|
1123
|
+
"types": "./dist/source/snapshot.d.ts",
|
|
1124
|
+
"import": "./dist/source/snapshot.mjs"
|
|
1125
|
+
},
|
|
1214
1126
|
"./state": {
|
|
1215
1127
|
"types": "./dist/state/index.d.ts",
|
|
1216
1128
|
"import": "./dist/state/index.mjs"
|
|
@@ -1419,9 +1331,6 @@
|
|
|
1419
1331
|
"./types/SdkTypes": {
|
|
1420
1332
|
"types": "./dist/types/SdkTypes.d.ts"
|
|
1421
1333
|
},
|
|
1422
|
-
"./types/SegmentTypes": {
|
|
1423
|
-
"types": "./dist/types/SegmentTypes.d.ts"
|
|
1424
|
-
},
|
|
1425
1334
|
"./types/ServerTypes": {
|
|
1426
1335
|
"types": "./dist/types/ServerTypes.d.ts"
|
|
1427
1336
|
},
|
|
@@ -1474,8 +1383,8 @@
|
|
|
1474
1383
|
},
|
|
1475
1384
|
"dependencies": {
|
|
1476
1385
|
"@modelcontextprotocol/sdk": "^1.30.1",
|
|
1477
|
-
"@plitzi/nexus": "^1.
|
|
1478
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
1386
|
+
"@plitzi/nexus": "^1.4.0",
|
|
1387
|
+
"@plitzi/plitzi-ui": "^1.6.26",
|
|
1479
1388
|
"date-fns": "^4.4.0",
|
|
1480
1389
|
"immer": "^11.1.18",
|
|
1481
1390
|
"zod": "^4.6.5"
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { SegmentRaw } from '../../../../../types';
|
|
2
|
-
export type TSegmentAddMutation = SegmentRaw;
|
|
3
|
-
declare const SegmentAddMutation = "\n mutation SegmentAddMutation(\n $name: String!\n $description: String!\n $baseElementId: String\n $elements: Json\n $style: Json\n $variables: [SpaceVariableInput]\n ) {\n SegmentAdd(\n name: $name\n description: $description\n baseElementId: $baseElementId\n elements: $elements\n style: $style\n variables: $variables\n ) {\n id\n identifier\n definition\n schema {\n variables {\n name\n category\n type\n value\n subValues {\n value\n when\n }\n }\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n }\n attributes\n }\n }\n style {\n variables\n platform\n cache\n }\n }\n }\n";
|
|
4
|
-
export default SegmentAddMutation;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region src/network/graphql/builder/Mutations/Segment/SegmentAddMutation.ts
|
|
2
|
-
var e = "\n mutation SegmentAddMutation(\n $name: String!\n $description: String!\n $baseElementId: String\n $elements: Json\n $style: Json\n $variables: [SpaceVariableInput]\n ) {\n SegmentAdd(\n name: $name\n description: $description\n baseElementId: $baseElementId\n elements: $elements\n style: $style\n variables: $variables\n ) {\n id\n identifier\n definition\n schema {\n variables {\n name\n category\n type\n value\n subValues {\n value\n when\n }\n }\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n }\n attributes\n }\n }\n style {\n variables\n platform\n cache\n }\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
|
-
export { e as default };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const SegmentAddTemplateMutation = "\n mutation SegmentAddTemplateMutation(\n $environment: String!\n $element: Json!\n $style: Json\n $dropPosition: String!\n $to: String!\n $initialItems: [Json]!\n $variables: [SpaceVariableInput]\n $contextId: String!\n ) {\n SegmentAddTemplate(\n environment: $environment\n element: $element\n style: $style\n dropPosition: $dropPosition\n to: $to\n initialItems: $initialItems\n variables: $variables\n contextId: $contextId\n ) {\n id\n identifier\n definition\n schema {\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n }\n attributes\n }\n }\n style {\n variables\n platform\n cache\n }\n }\n }\n";
|
|
2
|
-
export default SegmentAddTemplateMutation;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region src/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.ts
|
|
2
|
-
var e = "\n mutation SegmentAddTemplateMutation(\n $environment: String!\n $element: Json!\n $style: Json\n $dropPosition: String!\n $to: String!\n $initialItems: [Json]!\n $variables: [SpaceVariableInput]\n $contextId: String!\n ) {\n SegmentAddTemplate(\n environment: $environment\n element: $element\n style: $style\n dropPosition: $dropPosition\n to: $to\n initialItems: $initialItems\n variables: $variables\n contextId: $contextId\n ) {\n id\n identifier\n definition\n schema {\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n }\n attributes\n }\n }\n style {\n variables\n platform\n cache\n }\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
|
-
export { e as default };
|