@plitzi/sdk-shared 0.37.8 → 0.37.10
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 +817 -0
- package/dist/actions/functions.d.ts +12 -3
- package/dist/actions/functions.mjs +8 -5
- package/dist/actions/index.d.ts +2 -2
- package/dist/actions/index.mjs +6 -6
- package/dist/actions/triggerParams.mjs +7 -6
- package/dist/actions/validateDocument.d.ts +3 -0
- package/dist/actions/validateDocument.mjs +89 -88
- package/dist/auth/failureChannel.d.ts +8 -2
- package/dist/auth/failureChannel.mjs +1 -3
- package/dist/authoring/elementCallbacks.d.ts +65 -0
- package/dist/authoring/elementCallbacks.mjs +72 -8
- package/dist/authoring/index.mjs +3 -3
- package/dist/builder/contexts/BuilderContext.d.ts +18 -7
- package/dist/builder/contexts/BuilderContext.mjs +2 -3
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.mjs +2 -2
- package/dist/connectors/validateManifest.d.ts +3 -0
- package/dist/connectors/validateManifest.mjs +77 -76
- package/dist/dataSource/computed.mjs +25 -29
- package/dist/dataSource/globalSources.d.ts +15 -0
- package/dist/dataSource/globalSources.mjs +13 -0
- package/dist/dataSource/index.d.ts +2 -0
- package/dist/dataSource/index.mjs +8 -7
- package/dist/devTools/DevToolsContext.mjs +2 -3
- package/dist/devTools/utils/PlitziConsole.d.ts +9 -0
- package/dist/devTools/utils/PlitziConsole.mjs +27 -7
- package/dist/elements/ComponentContext.mjs +2 -3
- package/dist/flags/flagsCookie.d.ts +26 -0
- package/dist/flags/flagsCookie.mjs +20 -0
- package/dist/flags/index.d.ts +3 -0
- package/dist/flags/index.mjs +4 -0
- package/dist/flags/resolveFlags.d.ts +60 -0
- package/dist/flags/resolveFlags.mjs +38 -0
- package/dist/flags/schemaFlag.d.ts +11 -0
- package/dist/flags/schemaFlag.mjs +9 -0
- package/dist/flags/useFlagResolution.d.ts +13 -0
- package/dist/flags/useFlagResolution.mjs +43 -0
- package/dist/helpers/eventTarget.d.ts +10 -0
- package/dist/helpers/eventTarget.mjs +4 -0
- package/dist/helpers/images.d.ts +18 -0
- package/dist/helpers/images.mjs +13 -0
- package/dist/helpers/index.d.ts +3 -0
- package/dist/helpers/index.mjs +21 -18
- package/dist/helpers/interval.d.ts +18 -0
- package/dist/helpers/interval.mjs +7 -0
- package/dist/helpers/isRecord.d.ts +2 -0
- package/dist/helpers/isRecord.mjs +4 -0
- package/dist/helpers/scroll.d.ts +42 -0
- package/dist/helpers/scroll.mjs +30 -0
- 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/TemplateCache/TemplateCache.mjs +1 -1
- package/dist/helpers/twigWrapper/filters/filters.mjs +38 -2
- 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 +4 -1
- package/dist/history/diff.d.ts +1 -1
- package/dist/history/diff.mjs +11 -9
- package/dist/history/types.d.ts +1 -1
- package/dist/hooks/index.mjs +5 -5
- package/dist/hooks/usePlitziServiceContext.d.ts +1 -2
- package/dist/hooks/usePlitziServiceContext.mjs +3 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +90 -77
- package/dist/navigation/routes.mjs +6 -4
- 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/SpaceAddSnippetMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation.mjs +4 -0
- 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/Space/flags/SpacePublishFlagsMutation.d.ts +12 -0
- package/dist/network/graphql/builder/Mutations/Space/flags/SpacePublishFlagsMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation.d.ts +3 -0
- package/dist/network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/index.d.ts +13 -30
- package/dist/network/graphql/builder/Mutations/index.mjs +164 -200
- package/dist/network/graphql/builder/Queries/InitQuery.d.ts +4 -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/SpaceIssuesQuery.d.ts +16 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.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 +3 -5
- 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/index.mjs +8 -7
- package/dist/network/spaceEvents.d.ts +25 -195
- package/dist/network/spaceEvents.mjs +156 -241
- package/dist/realtime/client.mjs +123 -95
- package/dist/realtime/topics.mjs +18 -17
- package/dist/schema/SchemaContext.mjs +2 -3
- package/dist/schema/anchor.d.ts +8 -0
- package/dist/schema/anchor.mjs +4 -0
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.mjs +6 -4
- package/dist/schema/schemaConstants.d.ts +2 -0
- package/dist/schema/schemaConstants.mjs +4 -3
- package/dist/schema/serverElements.d.ts +6 -2
- package/dist/schema/serverElements.mjs +17 -16
- package/dist/schema/snippet.d.ts +7 -0
- package/dist/schema/snippet.mjs +9 -0
- package/dist/schema/wire.d.ts +11 -0
- package/dist/schema/wire.mjs +27 -0
- package/dist/server/actions/useImagesSync.d.ts +9 -0
- package/dist/server/actions/useImagesSync.mjs +7 -0
- package/dist/server/rsc/refreshRsc.d.ts +3 -1
- package/dist/server/rsc/refreshRsc.mjs +17 -16
- 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 +81 -0
- package/dist/state/paintedState.mjs +13 -12
- package/dist/state/runtimeStatePersist.mjs +50 -49
- 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/style/breakpoints.d.ts +11 -0
- package/dist/style/breakpoints.mjs +8 -0
- package/dist/style/displayModes.d.ts +5 -0
- package/dist/style/displayModes.mjs +8 -0
- package/dist/style/fontValidation.mjs +52 -51
- package/dist/style/fonts.d.ts +0 -12
- package/dist/style/fonts.mjs +11 -11
- package/dist/style/index.d.ts +4 -0
- package/dist/style/index.mjs +11 -7
- package/dist/style/layoutGrid.d.ts +30 -0
- package/dist/style/layoutGrid.mjs +33 -0
- package/dist/style/notifications.d.ts +52 -0
- package/dist/style/notifications.mjs +55 -0
- package/dist/style/snippetStyle.d.ts +23 -0
- package/dist/style/snippetStyle.mjs +32 -0
- package/dist/style/styleConstants.d.ts +7 -2
- package/dist/style/styleConstants.mjs +10 -0
- package/dist/style/styleStates.d.ts +11 -2
- package/dist/style/styleStates.mjs +12 -9
- package/dist/theme/ThemeProvider.mjs +20 -20
- package/dist/theme/ThemeScope.mjs +4 -3
- package/dist/types/ActionTypes.d.ts +5 -0
- package/dist/types/CommonTypes.d.ts +3 -0
- package/dist/types/DevToolsTypes.d.ts +29 -4
- 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/PluginTypes.d.ts +1 -1
- package/dist/types/ResourceTypes.d.ts +2 -2
- package/dist/types/SchemaTypes.d.ts +100 -3
- package/dist/types/SdkTypes.d.ts +0 -2
- package/dist/types/ServerTypes.d.ts +47 -0
- package/dist/types/SnippetTypes.d.ts +28 -0
- package/dist/types/SpaceTypes.d.ts +36 -0
- package/dist/types/StoreTypes.d.ts +39 -3
- package/dist/types/StyleTypes.d.ts +1 -1
- package/dist/types/index.d.ts +1 -2
- package/package.json +143 -138
- package/tailwind.config.js +1 -6
- package/vite.config.ts +16 -4
- 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/Mutations/Space/SpaceAddTemplateMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.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/TemplateTypes.d.ts +0 -20
- package/dist/types/TemplateTypes.mjs +0 -0
- /package/dist/types/{SegmentTypes.mjs → SnippetTypes.mjs} +0 -0
|
@@ -4,14 +4,28 @@ export type TSpaceIssue = {
|
|
|
4
4
|
message: string;
|
|
5
5
|
elementId: string | null;
|
|
6
6
|
fixable: boolean;
|
|
7
|
+
/** What to write instead, from the row of its code — Markdown with `code` in backticks; null when it has no row. */
|
|
8
|
+
fix: string | null;
|
|
7
9
|
};
|
|
8
|
-
/**
|
|
10
|
+
/** A shorter way to the same page — not a problem: the space renders as written. */
|
|
11
|
+
export type TSpaceSuggestion = {
|
|
12
|
+
code: string;
|
|
13
|
+
message: string;
|
|
14
|
+
/** The elements it is about — the copies, the buttons. */
|
|
15
|
+
elementIds: string[];
|
|
16
|
+
/** How many elements taking it would save. */
|
|
17
|
+
saves: number;
|
|
18
|
+
/** The short way, from the row of its code — Markdown with `code` in backticks. */
|
|
19
|
+
fix: string | null;
|
|
20
|
+
};
|
|
21
|
+
/** `errors` block publishing; `warnings` render, but most likely not as meant; `suggestions` are a shorter way. */
|
|
9
22
|
export type TSpaceIssues = {
|
|
10
23
|
errors: TSpaceIssue[];
|
|
11
24
|
warnings: TSpaceIssue[];
|
|
25
|
+
suggestions: TSpaceSuggestion[];
|
|
12
26
|
};
|
|
13
27
|
export type TSpaceIssuesQuery = {
|
|
14
28
|
SpaceIssues: TSpaceIssues | null;
|
|
15
29
|
};
|
|
16
|
-
declare const SpaceIssuesQuery = "\n query SpaceIssuesQuery($environment: String!) {\n SpaceIssues(environment: $environment) {\n errors {\n code\n message\n elementId\n fixable\n }\n warnings {\n code\n message\n elementId\n fixable\n }\n }\n }\n";
|
|
30
|
+
declare const SpaceIssuesQuery = "\n query SpaceIssuesQuery($environment: String!) {\n SpaceIssues(environment: $environment) {\n errors {\n code\n message\n elementId\n fixable\n fix\n }\n warnings {\n code\n message\n elementId\n fixable\n fix\n }\n suggestions {\n code\n message\n elementIds\n saves\n fix\n }\n }\n }\n";
|
|
17
31
|
export default SpaceIssuesQuery;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/builder/Queries/Space/SpaceIssuesQuery.ts
|
|
2
|
-
var e = "\n query SpaceIssuesQuery($environment: String!) {\n SpaceIssues(environment: $environment) {\n errors {\n code\n message\n elementId\n fixable\n }\n warnings {\n code\n message\n elementId\n fixable\n }\n }\n }\n";
|
|
2
|
+
var e = "\n query SpaceIssuesQuery($environment: String!) {\n SpaceIssues(environment: $environment) {\n errors {\n code\n message\n elementId\n fixable\n fix\n }\n warnings {\n code\n message\n elementId\n fixable\n fix\n }\n suggestions {\n code\n message\n elementIds\n saves\n fix\n }\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpaceVersionContents } from '../../../../../types';
|
|
2
|
+
export type TSpaceVersionContentsQuery = {
|
|
3
|
+
SpaceVersionContents: SpaceVersionContents | null;
|
|
4
|
+
};
|
|
5
|
+
/** What one version of the space is made of: the draft a snapshot would freeze, or a snapshot (its latest by default). */
|
|
6
|
+
declare const SpaceVersionContentsQuery = "\n query SpaceVersionContentsQuery($environment: String!, $revision: Int) {\n SpaceVersionContents(environment: $environment, revision: $revision) {\n environment\n revision\n snapshot {\n description\n publishedAt\n }\n pages\n layouts\n components\n elements\n plugins {\n type\n source\n }\n actions\n connectors\n functions {\n tasks\n routes\n }\n runtime {\n source\n }\n }\n }\n";
|
|
7
|
+
export default SpaceVersionContentsQuery;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/network/graphql/builder/Queries/Space/SpaceVersionContentsQuery.ts
|
|
2
|
+
var e = "\n query SpaceVersionContentsQuery($environment: String!, $revision: Int) {\n SpaceVersionContents(environment: $environment, revision: $revision) {\n environment\n revision\n snapshot {\n description\n publishedAt\n }\n pages\n layouts\n components\n elements\n plugins {\n type\n source\n }\n actions\n connectors\n functions {\n tasks\n routes\n }\n runtime {\n source\n }\n }\n }\n";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as default };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { TInitQuery } from './InitQuery';
|
|
2
|
-
import { TSegmentQuery } from './Segment/SegmentQuery';
|
|
3
|
-
import { TSegmentsQuery } from './Segment/SegmentsQuery';
|
|
4
2
|
import { TSpaceActionEventsQuery } from './Space/SpaceActionEventsQuery';
|
|
5
3
|
import { TSpaceActionsQuery } from './Space/SpaceActionsQuery';
|
|
6
4
|
import { TSpaceActionTasksQuery } from './Space/SpaceActionTasksQuery';
|
|
@@ -16,9 +14,10 @@ import { TSpaceLatestRevisionQuery } from './Space/SpaceLatestRevisionQuery';
|
|
|
16
14
|
import { TSpaceQuotaQuery } from './Space/SpaceQuotaQuery';
|
|
17
15
|
import { TSpaceResourcesQuery } from './Space/SpaceResourcesQuery';
|
|
18
16
|
import { TSpaceRuntimeQuery } from './Space/SpaceRuntimeQuery';
|
|
17
|
+
import { TSpaceVersionContentsQuery } from './Space/SpaceVersionContentsQuery';
|
|
19
18
|
import { TSpaceVisitorsQuery } from './Space/SpaceVisitorsQuery';
|
|
20
19
|
export type { TQuotaPlane, TSpaceQuota } from './Space/SpaceQuotaQuery';
|
|
21
|
-
export type { TSpaceIssue, TSpaceIssues } from './Space/SpaceIssuesQuery';
|
|
20
|
+
export type { TSpaceIssue, TSpaceIssues, TSpaceSuggestion } from './Space/SpaceIssuesQuery';
|
|
22
21
|
export type { TSnapshotMarker, TSpaceChanges } from './Space/SpaceChangesQuery';
|
|
23
22
|
export type BuilderQueriesMap = {
|
|
24
23
|
Init: TInitQuery;
|
|
@@ -36,10 +35,9 @@ export type BuilderQueriesMap = {
|
|
|
36
35
|
SpaceFunctions: TSpaceFunctionsQuery;
|
|
37
36
|
SpaceConnectors: TSpaceConnectorsQuery;
|
|
38
37
|
SpaceCredentials: TSpaceCredentialsQuery;
|
|
38
|
+
SpaceVersionContents: TSpaceVersionContentsQuery;
|
|
39
39
|
SpaceVisitors: TSpaceVisitorsQuery;
|
|
40
40
|
SpaceRuntime: TSpaceRuntimeQuery;
|
|
41
|
-
Segment: TSegmentQuery;
|
|
42
|
-
Segments: TSegmentsQuery;
|
|
43
41
|
};
|
|
44
42
|
declare const BuilderQueries: Record<keyof BuilderQueriesMap, string>;
|
|
45
43
|
export default BuilderQueries;
|
|
@@ -1,43 +1,41 @@
|
|
|
1
1
|
import e from "./InitQuery.mjs";
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
import r from "./Space/
|
|
5
|
-
import i from "./Space/
|
|
6
|
-
import a from "./Space/
|
|
7
|
-
import o from "./Space/
|
|
8
|
-
import s from "./Space/
|
|
9
|
-
import c from "./Space/
|
|
10
|
-
import l from "./Space/
|
|
11
|
-
import u from "./Space/
|
|
12
|
-
import d from "./Space/
|
|
13
|
-
import f from "./Space/
|
|
14
|
-
import p from "./Space/
|
|
15
|
-
import m from "./Space/
|
|
16
|
-
import h from "./Space/
|
|
17
|
-
import g from "./Space/
|
|
18
|
-
import _ from "./Space/
|
|
19
|
-
import v from "./Space/SpaceVisitorsQuery.mjs";
|
|
2
|
+
import t from "./Space/SpaceActionEventsQuery.mjs";
|
|
3
|
+
import n from "./Space/SpaceActionsQuery.mjs";
|
|
4
|
+
import r from "./Space/SpaceActionTasksQuery.mjs";
|
|
5
|
+
import i from "./Space/SpaceCdnsQuery.mjs";
|
|
6
|
+
import a from "./Space/SpaceChangesQuery.mjs";
|
|
7
|
+
import o from "./Space/SpaceCheckActionQuery.mjs";
|
|
8
|
+
import s from "./Space/SpaceConnectorsQuery.mjs";
|
|
9
|
+
import c from "./Space/SpaceCredentialsQuery.mjs";
|
|
10
|
+
import l from "./Space/SpaceDeploymentsQuery.mjs";
|
|
11
|
+
import u from "./Space/SpaceFunctionsQuery.mjs";
|
|
12
|
+
import d from "./Space/SpaceIssuesQuery.mjs";
|
|
13
|
+
import f from "./Space/SpaceLatestRevisionQuery.mjs";
|
|
14
|
+
import p from "./Space/SpaceQuotaQuery.mjs";
|
|
15
|
+
import m from "./Space/SpaceResourcesQuery.mjs";
|
|
16
|
+
import h from "./Space/SpaceRuntimeQuery.mjs";
|
|
17
|
+
import g from "./Space/SpaceVersionContentsQuery.mjs";
|
|
18
|
+
import _ from "./Space/SpaceVisitorsQuery.mjs";
|
|
20
19
|
//#region src/network/graphql/builder/Queries/index.ts
|
|
21
|
-
var
|
|
20
|
+
var v = {
|
|
22
21
|
Init: e,
|
|
23
|
-
SpaceLatestRevision:
|
|
24
|
-
SpaceQuota:
|
|
25
|
-
SpaceIssues:
|
|
26
|
-
SpaceChanges:
|
|
27
|
-
SpaceResources:
|
|
28
|
-
SpaceDeployments:
|
|
29
|
-
SpaceCdns:
|
|
30
|
-
SpaceActions:
|
|
31
|
-
SpaceActionEvents:
|
|
32
|
-
SpaceCheckAction:
|
|
33
|
-
SpaceActionTasks:
|
|
34
|
-
SpaceFunctions:
|
|
35
|
-
SpaceConnectors:
|
|
36
|
-
SpaceCredentials:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Segments: n
|
|
22
|
+
SpaceLatestRevision: f,
|
|
23
|
+
SpaceQuota: p,
|
|
24
|
+
SpaceIssues: d,
|
|
25
|
+
SpaceChanges: a,
|
|
26
|
+
SpaceResources: m,
|
|
27
|
+
SpaceDeployments: l,
|
|
28
|
+
SpaceCdns: i,
|
|
29
|
+
SpaceActions: n,
|
|
30
|
+
SpaceActionEvents: t,
|
|
31
|
+
SpaceCheckAction: o,
|
|
32
|
+
SpaceActionTasks: r,
|
|
33
|
+
SpaceFunctions: u,
|
|
34
|
+
SpaceConnectors: s,
|
|
35
|
+
SpaceCredentials: c,
|
|
36
|
+
SpaceVersionContents: g,
|
|
37
|
+
SpaceVisitors: _,
|
|
38
|
+
SpaceRuntime: h
|
|
41
39
|
};
|
|
42
40
|
//#endregion
|
|
43
|
-
export {
|
|
41
|
+
export { v as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpaceEventName } from '../../../spaceEvents';
|
|
2
2
|
/**
|
|
3
|
-
* The single live channel of a space. Every edit — elements, pages, variables, styles
|
|
3
|
+
* The single live channel of a space. Every edit — elements, pages, variables, styles — arrives on this
|
|
4
4
|
* one subscription and is told apart by `event`, instead of one operation (and one Redis channel, and one websocket
|
|
5
5
|
* subscription) per kind of edit.
|
|
6
6
|
*
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { PluginRaw, SchemaRaw,
|
|
1
|
+
import { PluginRaw, SchemaRaw, Style } from '../../../../types';
|
|
2
2
|
export type TInitQuery = {
|
|
3
3
|
Space?: {
|
|
4
4
|
plugins: PluginRaw[];
|
|
5
5
|
schema: SchemaRaw;
|
|
6
6
|
style: Style;
|
|
7
|
-
segments?: SegmentRaw[];
|
|
8
7
|
/** What the server decided about this render. Server-side facts the space cannot author away. */
|
|
9
8
|
render?: {
|
|
10
9
|
overQuota: boolean;
|
|
11
10
|
};
|
|
12
11
|
};
|
|
13
12
|
};
|
|
14
|
-
declare const InitQuery = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\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
|
|
13
|
+
declare const InitQuery = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n rsc\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 runtime\n loadStrategy\n flag {\n name\n is\n }\n anchor\n }\n attributes\n }\n pages\n components\n flags\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n }\n }\n }\n";
|
|
15
14
|
export default InitQuery;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
//#region src/network/graphql/sdk/Queries/InitQuery.ts
|
|
2
|
-
var e = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\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
|
|
2
|
+
var e = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n rsc\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 runtime\n loadStrategy\n flag {\n name\n is\n }\n anchor\n }\n attributes\n }\n pages\n components\n flags\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n }\n }\n }\n";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as default };
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { TInitQuery } from './InitQuery';
|
|
2
|
-
import { TSegmentQuery } from './Segment/SegmentQuery';
|
|
3
|
-
import { TSegmentsQuery } from './Segment/SegmentsQuery';
|
|
4
2
|
export type SdkQueriesMap = {
|
|
5
3
|
Init: TInitQuery;
|
|
6
|
-
Segment: TSegmentQuery;
|
|
7
|
-
Segments: TSegmentsQuery;
|
|
8
4
|
};
|
|
9
5
|
declare const SdkQueries: Record<keyof SdkQueriesMap, string>;
|
|
10
6
|
export default SdkQueries;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import e from "./InitQuery.mjs";
|
|
2
|
-
import t from "./Segment/SegmentQuery.mjs";
|
|
3
|
-
import n from "./Segment/SegmentsQuery.mjs";
|
|
4
2
|
//#region src/network/graphql/sdk/Queries/index.ts
|
|
5
|
-
var
|
|
6
|
-
Init: e,
|
|
7
|
-
Segment: t,
|
|
8
|
-
Segments: n
|
|
9
|
-
};
|
|
3
|
+
var t = { Init: e };
|
|
10
4
|
//#endregion
|
|
11
|
-
export {
|
|
5
|
+
export { t as default };
|
package/dist/network/index.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import e from "./NetworkContext.mjs";
|
|
2
2
|
import t from "./NetworkInternalContext.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import s from "./
|
|
5
|
-
import c from "./graphql/builder/
|
|
6
|
-
import l from "./graphql/builder/
|
|
7
|
-
import u from "./graphql/
|
|
8
|
-
import d from "./graphql/sdk/
|
|
9
|
-
|
|
3
|
+
import { elementFromWire as n, schemaFromWire as r, schemaToWire as i } from "../schema/wire.mjs";
|
|
4
|
+
import { SpaceEvents as a, spaceEventSchemas as o, validateSpaceEvent as s } from "./spaceEvents.mjs";
|
|
5
|
+
import c from "./graphql/builder/Mutations/index.mjs";
|
|
6
|
+
import l from "./graphql/builder/Queries/index.mjs";
|
|
7
|
+
import u from "./graphql/builder/Subscriptions/index.mjs";
|
|
8
|
+
import d from "./graphql/sdk/Mutations/index.mjs";
|
|
9
|
+
import f from "./graphql/sdk/Queries/index.mjs";
|
|
10
|
+
export { c as BuilderMutations, l as BuilderQueries, e as NetworkContext, t as NetworkInternalContext, d as SdkMutations, f as SdkQueries, u as SpaceEventSubscription, a as SpaceEvents, n as elementFromWire, r as schemaFromWire, i as schemaToWire, o as spaceEventSchemas, s as validateSpaceEvent };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { StyleVariableCategory } from '../types/StyleTypes';
|
|
3
|
-
import { DropPosition, Element, PageFolder,
|
|
4
|
-
|
|
5
|
-
export declare const schemaToWire: (schema: Schema) => SchemaRaw;
|
|
6
|
-
/** A schema off the channel, keyed again by element id: what a receiver stores. */
|
|
7
|
-
export declare const schemaFromWire: (raw: SchemaRaw) => Schema;
|
|
3
|
+
import { DropPosition, Element, PageFolder, SchemaFlag, SchemaRaw, SchemaVariable, SpaceComponent, SpaceComponentDeclaration, SpaceFont, Style, StyleCategory, StyleItem, StyleVariableValue } from '../types';
|
|
4
|
+
export { elementFromWire, schemaFromWire, schemaToWire } from '../schema/wire';
|
|
8
5
|
export declare const spaceEventSchemas: {
|
|
9
6
|
readonly SPACE_UPDATED: z.ZodObject<{
|
|
10
7
|
schema: z.ZodCustom<SchemaRaw, SchemaRaw>;
|
|
@@ -44,6 +41,13 @@ export declare const spaceEventSchemas: {
|
|
|
44
41
|
readonly SPACE_REMOVE_VARIABLE: z.ZodObject<{
|
|
45
42
|
name: z.ZodString;
|
|
46
43
|
}, z.core.$strip>;
|
|
44
|
+
readonly SPACE_SET_FLAG: z.ZodObject<{
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
flag: z.ZodCustom<SchemaFlag, SchemaFlag>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
readonly SPACE_REMOVE_FLAG: z.ZodObject<{
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
}, z.core.$strip>;
|
|
47
51
|
readonly SPACE_ADD_ELEMENT: z.ZodObject<{
|
|
48
52
|
element: z.ZodCustom<Element, Element>;
|
|
49
53
|
dropPosition: z.ZodCustom<DropPosition, DropPosition>;
|
|
@@ -76,7 +80,7 @@ export declare const spaceEventSchemas: {
|
|
|
76
80
|
dropPosition: z.ZodCustom<DropPosition, DropPosition>;
|
|
77
81
|
initialItems: z.ZodArray<z.ZodCustom<Element, Element>>;
|
|
78
82
|
}, z.core.$strip>;
|
|
79
|
-
readonly
|
|
83
|
+
readonly SPACE_ADD_SNIPPET: z.ZodObject<{
|
|
80
84
|
element: z.ZodCustom<Element, Element>;
|
|
81
85
|
style: z.ZodCustom<Style, Style>;
|
|
82
86
|
to: z.ZodString;
|
|
@@ -136,6 +140,7 @@ export declare const spaceEventSchemas: {
|
|
|
136
140
|
disabled: "disabled";
|
|
137
141
|
checked: "checked";
|
|
138
142
|
visited: "visited";
|
|
143
|
+
current: "current";
|
|
139
144
|
hidden: "hidden";
|
|
140
145
|
}>>;
|
|
141
146
|
styleVariant: z.ZodOptional<z.ZodString>;
|
|
@@ -162,6 +167,7 @@ export declare const spaceEventSchemas: {
|
|
|
162
167
|
disabled: "disabled";
|
|
163
168
|
checked: "checked";
|
|
164
169
|
visited: "visited";
|
|
170
|
+
current: "current";
|
|
165
171
|
hidden: "hidden";
|
|
166
172
|
}>>;
|
|
167
173
|
styleVariant: z.ZodOptional<z.ZodString>;
|
|
@@ -245,198 +251,22 @@ export declare const spaceEventSchemas: {
|
|
|
245
251
|
readonly STYLE_REMOVE_FONT: z.ZodObject<{
|
|
246
252
|
family: z.ZodString;
|
|
247
253
|
}, z.core.$strip>;
|
|
248
|
-
readonly
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
contextId: z.ZodString;
|
|
255
|
-
}, z.core.$strip>;
|
|
256
|
-
readonly SEGMENT_UPDATE_ELEMENT: z.ZodObject<{
|
|
257
|
-
element: z.ZodCustom<Element, Element>;
|
|
258
|
-
contextId: z.ZodString;
|
|
259
|
-
}, z.core.$strip>;
|
|
260
|
-
readonly SEGMENT_RENAME_ELEMENT: z.ZodObject<{
|
|
261
|
-
elementId: z.ZodString;
|
|
262
|
-
id: z.ZodString;
|
|
263
|
-
contextId: z.ZodString;
|
|
264
|
-
}, z.core.$strip>;
|
|
265
|
-
readonly SEGMENT_UPDATE_ELEMENTS: z.ZodObject<{
|
|
266
|
-
elements: z.ZodArray<z.ZodCustom<Element, Element>>;
|
|
267
|
-
contextId: z.ZodString;
|
|
268
|
-
}, z.core.$strip>;
|
|
269
|
-
readonly SEGMENT_REMOVE_ELEMENT: z.ZodObject<{
|
|
270
|
-
elementId: z.ZodString;
|
|
271
|
-
contextId: z.ZodString;
|
|
272
|
-
}, z.core.$strip>;
|
|
273
|
-
readonly SEGMENT_MOVE_ELEMENT: z.ZodObject<{
|
|
274
|
-
elementId: z.ZodString;
|
|
275
|
-
from: z.ZodString;
|
|
276
|
-
to: z.ZodString;
|
|
277
|
-
dropPosition: z.ZodCustom<DropPosition, DropPosition>;
|
|
278
|
-
contextId: z.ZodString;
|
|
254
|
+
readonly SPACE_ADD_COMPONENT: z.ZodObject<{
|
|
255
|
+
component: z.ZodCustom<SpaceComponent, SpaceComponent>;
|
|
256
|
+
from: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
elementId: z.ZodString;
|
|
258
|
+
instanceId: z.ZodString;
|
|
259
|
+
}, z.core.$strip>>;
|
|
279
260
|
}, z.core.$strip>;
|
|
280
|
-
readonly
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
to: z.ZodString;
|
|
284
|
-
initialItems: z.ZodOptional<z.ZodArray<z.ZodCustom<Element, Element>>>;
|
|
285
|
-
contextId: z.ZodString;
|
|
261
|
+
readonly SPACE_UPDATE_COMPONENT: z.ZodObject<{
|
|
262
|
+
componentId: z.ZodString;
|
|
263
|
+
declaration: z.ZodCustom<SpaceComponentDeclaration, SpaceComponentDeclaration>;
|
|
286
264
|
}, z.core.$strip>;
|
|
287
|
-
readonly
|
|
288
|
-
|
|
289
|
-
style: z.ZodCustom<Style, Style>;
|
|
290
|
-
to: z.ZodString;
|
|
291
|
-
dropPosition: z.ZodCustom<DropPosition, DropPosition>;
|
|
292
|
-
initialItems: z.ZodOptional<z.ZodArray<z.ZodCustom<Element, Element>>>;
|
|
293
|
-
variables: z.ZodOptional<z.ZodArray<z.ZodCustom<SchemaVariable, SchemaVariable>>>;
|
|
294
|
-
contextId: z.ZodString;
|
|
265
|
+
readonly SPACE_REMOVE_COMPONENT: z.ZodObject<{
|
|
266
|
+
componentId: z.ZodString;
|
|
295
267
|
}, z.core.$strip>;
|
|
296
|
-
readonly
|
|
297
|
-
|
|
298
|
-
contextId: z.ZodString;
|
|
299
|
-
}, z.core.$strip>;
|
|
300
|
-
readonly SEGMENT_SPACE_UPDATE_VARIABLE: z.ZodObject<{
|
|
301
|
-
variable: z.ZodCustom<SchemaVariable, SchemaVariable>;
|
|
302
|
-
contextId: z.ZodString;
|
|
303
|
-
}, z.core.$strip>;
|
|
304
|
-
readonly SEGMENT_SPACE_REMOVE_VARIABLE: z.ZodObject<{
|
|
305
|
-
variable: z.ZodObject<{
|
|
306
|
-
name: z.ZodString;
|
|
307
|
-
}, z.core.$strip>;
|
|
308
|
-
contextId: z.ZodString;
|
|
309
|
-
}, z.core.$strip>;
|
|
310
|
-
readonly SEGMENT_STYLE_ADD_SELECTOR: z.ZodObject<{
|
|
311
|
-
displayMode: z.ZodEnum<{
|
|
312
|
-
desktop: "desktop";
|
|
313
|
-
tablet: "tablet";
|
|
314
|
-
mobile: "mobile";
|
|
315
|
-
}>;
|
|
316
|
-
selector: z.ZodString;
|
|
317
|
-
type: z.ZodEnum<{
|
|
318
|
-
id: "id";
|
|
319
|
-
element: "element";
|
|
320
|
-
class: "class";
|
|
321
|
-
}>;
|
|
322
|
-
path: z.ZodOptional<z.ZodCustom<StyleCategory, StyleCategory>>;
|
|
323
|
-
style: z.ZodOptional<z.ZodCustom<import('..').StyleAttributes, import('..').StyleAttributes>>;
|
|
324
|
-
params: z.ZodObject<{
|
|
325
|
-
componentType: z.ZodOptional<z.ZodString>;
|
|
326
|
-
styleSelector: z.ZodOptional<z.ZodString>;
|
|
327
|
-
styleState: z.ZodOptional<z.ZodEnum<{
|
|
328
|
-
hover: "hover";
|
|
329
|
-
focus: "focus";
|
|
330
|
-
"focus-visible": "focus-visible";
|
|
331
|
-
"focus-within": "focus-within";
|
|
332
|
-
active: "active";
|
|
333
|
-
disabled: "disabled";
|
|
334
|
-
checked: "checked";
|
|
335
|
-
visited: "visited";
|
|
336
|
-
hidden: "hidden";
|
|
337
|
-
}>>;
|
|
338
|
-
styleVariant: z.ZodOptional<z.ZodString>;
|
|
339
|
-
styleAncestor: z.ZodOptional<z.ZodString>;
|
|
340
|
-
}, z.core.$strip>;
|
|
341
|
-
contextId: z.ZodString;
|
|
342
|
-
}, z.core.$strip>;
|
|
343
|
-
readonly SEGMENT_STYLE_UPDATE_SELECTOR: z.ZodObject<{
|
|
344
|
-
displayMode: z.ZodEnum<{
|
|
345
|
-
desktop: "desktop";
|
|
346
|
-
tablet: "tablet";
|
|
347
|
-
mobile: "mobile";
|
|
348
|
-
}>;
|
|
349
|
-
selector: z.ZodString;
|
|
350
|
-
path: z.ZodOptional<z.ZodCustom<StyleCategory, StyleCategory>>;
|
|
351
|
-
style: z.ZodOptional<z.ZodCustom<import('..').StyleAttributes, import('..').StyleAttributes>>;
|
|
352
|
-
params: z.ZodObject<{
|
|
353
|
-
componentType: z.ZodOptional<z.ZodString>;
|
|
354
|
-
styleState: z.ZodOptional<z.ZodEnum<{
|
|
355
|
-
hover: "hover";
|
|
356
|
-
focus: "focus";
|
|
357
|
-
"focus-visible": "focus-visible";
|
|
358
|
-
"focus-within": "focus-within";
|
|
359
|
-
active: "active";
|
|
360
|
-
disabled: "disabled";
|
|
361
|
-
checked: "checked";
|
|
362
|
-
visited: "visited";
|
|
363
|
-
hidden: "hidden";
|
|
364
|
-
}>>;
|
|
365
|
-
styleVariant: z.ZodOptional<z.ZodString>;
|
|
366
|
-
styleAncestor: z.ZodOptional<z.ZodString>;
|
|
367
|
-
styleSelector: z.ZodString;
|
|
368
|
-
}, z.core.$strip>;
|
|
369
|
-
contextId: z.ZodString;
|
|
370
|
-
}, z.core.$strip>;
|
|
371
|
-
readonly SEGMENT_STYLE_REMOVE_SELECTOR: z.ZodObject<{
|
|
372
|
-
displayMode: z.ZodEnum<{
|
|
373
|
-
desktop: "desktop";
|
|
374
|
-
tablet: "tablet";
|
|
375
|
-
mobile: "mobile";
|
|
376
|
-
}>;
|
|
377
|
-
selector: z.ZodString;
|
|
378
|
-
contextId: z.ZodString;
|
|
379
|
-
}, z.core.$strip>;
|
|
380
|
-
readonly SEGMENT_STYLE_REMOVE_SELECTORS: z.ZodObject<{
|
|
381
|
-
displayMode: z.ZodEnum<{
|
|
382
|
-
desktop: "desktop";
|
|
383
|
-
tablet: "tablet";
|
|
384
|
-
mobile: "mobile";
|
|
385
|
-
}>;
|
|
386
|
-
selectors: z.ZodArray<z.ZodString>;
|
|
387
|
-
contextId: z.ZodString;
|
|
388
|
-
}, z.core.$strip>;
|
|
389
|
-
readonly SEGMENT_STYLE_ADD_SELECTOR_VARIABLE: z.ZodObject<{
|
|
390
|
-
displayMode: z.ZodEnum<{
|
|
391
|
-
desktop: "desktop";
|
|
392
|
-
tablet: "tablet";
|
|
393
|
-
mobile: "mobile";
|
|
394
|
-
}>;
|
|
395
|
-
selector: z.ZodString;
|
|
396
|
-
category: z.ZodEnum<typeof StyleVariableCategory>;
|
|
397
|
-
name: z.ZodString;
|
|
398
|
-
value: z.ZodCustom<StyleVariableValue, StyleVariableValue>;
|
|
399
|
-
contextId: z.ZodString;
|
|
400
|
-
}, z.core.$strip>;
|
|
401
|
-
readonly SEGMENT_STYLE_UPDATE_SELECTOR_VARIABLE: z.ZodObject<{
|
|
402
|
-
displayMode: z.ZodEnum<{
|
|
403
|
-
desktop: "desktop";
|
|
404
|
-
tablet: "tablet";
|
|
405
|
-
mobile: "mobile";
|
|
406
|
-
}>;
|
|
407
|
-
selector: z.ZodString;
|
|
408
|
-
category: z.ZodEnum<typeof StyleVariableCategory>;
|
|
409
|
-
name: z.ZodString;
|
|
410
|
-
value: z.ZodCustom<StyleVariableValue, StyleVariableValue>;
|
|
411
|
-
contextId: z.ZodString;
|
|
412
|
-
}, z.core.$strip>;
|
|
413
|
-
readonly SEGMENT_STYLE_REMOVE_SELECTOR_VARIABLE: z.ZodObject<{
|
|
414
|
-
displayMode: z.ZodEnum<{
|
|
415
|
-
desktop: "desktop";
|
|
416
|
-
tablet: "tablet";
|
|
417
|
-
mobile: "mobile";
|
|
418
|
-
}>;
|
|
419
|
-
selector: z.ZodString;
|
|
420
|
-
category: z.ZodEnum<typeof StyleVariableCategory>;
|
|
421
|
-
name: z.ZodString;
|
|
422
|
-
contextId: z.ZodString;
|
|
423
|
-
}, z.core.$strip>;
|
|
424
|
-
readonly SEGMENT_STYLE_ADD_VARIABLE: z.ZodObject<{
|
|
425
|
-
category: z.ZodEnum<typeof StyleVariableCategory>;
|
|
426
|
-
name: z.ZodString;
|
|
427
|
-
value: z.ZodCustom<StyleVariableValue, StyleVariableValue>;
|
|
428
|
-
contextId: z.ZodString;
|
|
429
|
-
}, z.core.$strip>;
|
|
430
|
-
readonly SEGMENT_STYLE_UPDATE_VARIABLE: z.ZodObject<{
|
|
431
|
-
category: z.ZodEnum<typeof StyleVariableCategory>;
|
|
432
|
-
name: z.ZodString;
|
|
433
|
-
value: z.ZodCustom<StyleVariableValue, StyleVariableValue>;
|
|
434
|
-
contextId: z.ZodString;
|
|
435
|
-
}, z.core.$strip>;
|
|
436
|
-
readonly SEGMENT_STYLE_REMOVE_VARIABLE: z.ZodObject<{
|
|
437
|
-
category: z.ZodEnum<typeof StyleVariableCategory>;
|
|
438
|
-
name: z.ZodString;
|
|
439
|
-
contextId: z.ZodString;
|
|
268
|
+
readonly SPACE_DETACH_INSTANCE: z.ZodObject<{
|
|
269
|
+
instanceId: z.ZodString;
|
|
440
270
|
}, z.core.$strip>;
|
|
441
271
|
};
|
|
442
272
|
export type SpaceEventName = keyof typeof spaceEventSchemas;
|