@plitzi/sdk-shared 0.37.2 → 0.37.4
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 +1162 -0
- package/dist/actions/access.d.ts +12 -0
- package/dist/actions/access.mjs +13 -0
- package/dist/actions/functions.d.ts +27 -0
- package/dist/actions/functions.mjs +18 -0
- package/dist/actions/index.d.ts +4 -0
- package/dist/actions/index.mjs +9 -7
- package/dist/auth/index.d.ts +2 -1
- package/dist/auth/index.mjs +2 -2
- package/dist/auth/visitorRoles.d.ts +27 -0
- package/dist/auth/visitorRoles.mjs +48 -0
- package/dist/authoring/builder.mjs +1 -0
- package/dist/authoring/declare.d.ts +53 -0
- package/dist/authoring/declare.mjs +2 -2
- package/dist/authoring/index.mjs +5 -5
- package/dist/authoring/paramSpec.d.ts +1 -1
- package/dist/authoring/paramSpec.mjs +1 -0
- package/dist/authoring/spaceCallbacks.mjs +2 -2
- package/dist/dataSource/computed.d.ts +21 -0
- package/dist/dataSource/computed.mjs +45 -0
- package/dist/dataSource/getBindingsDetails.mjs +35 -34
- package/dist/dataSource/index.d.ts +1 -0
- package/dist/dataSource/index.mjs +7 -6
- package/dist/dataSource/utility/not.mjs +4 -7
- package/dist/dataSource/utility/stringToArray.mjs +1 -1
- package/dist/dataSource/utility/truthiness.d.ts +1 -0
- package/dist/dataSource/utility/truthiness.mjs +8 -0
- package/dist/dataSource/utility/twigTemplate.d.ts +2 -1
- package/dist/dataSource/utility/twigTemplate.mjs +29 -17
- package/dist/devTools/utils/PlitziConsole.mjs +22 -22
- package/dist/helpers/cookies.d.ts +10 -0
- package/dist/helpers/cookies.mjs +19 -0
- package/dist/helpers/fetchManifest.d.ts +9 -0
- package/dist/helpers/fetchManifest.mjs +3 -6
- package/dist/helpers/formatDate.d.ts +5 -3
- package/dist/helpers/formatDate.mjs +34 -36
- package/dist/helpers/index.d.ts +2 -1
- package/dist/helpers/index.mjs +17 -14
- package/dist/helpers/isDate.d.ts +7 -0
- package/dist/helpers/isDate.mjs +15 -0
- package/dist/helpers/keys.d.ts +42 -0
- package/dist/helpers/keys.mjs +91 -0
- package/dist/helpers/twigWrapper/AST.d.ts +2 -2
- package/dist/helpers/twigWrapper/Evaluator/Evaluator.d.ts +12 -2
- package/dist/helpers/twigWrapper/Evaluator/Evaluator.mjs +57 -34
- package/dist/helpers/twigWrapper/Evaluator/index.d.ts +1 -1
- package/dist/helpers/twigWrapper/Evaluator/index.mjs +2 -2
- package/dist/helpers/twigWrapper/Parser/ExpressionParser.d.ts +2 -2
- package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +147 -34
- package/dist/helpers/twigWrapper/Parser/Parser.d.ts +2 -1
- package/dist/helpers/twigWrapper/Parser/Parser.mjs +21 -20
- package/dist/helpers/twigWrapper/filters/filters.mjs +130 -112
- package/dist/helpers/twigWrapper/index.d.ts +5 -2
- package/dist/helpers/twigWrapper/index.mjs +7 -5
- package/dist/helpers/twigWrapper/inspectTemplate.d.ts +23 -0
- package/dist/helpers/twigWrapper/inspectTemplate.mjs +110 -0
- package/dist/helpers/twigWrapper/processTwig/helpers.d.ts +7 -0
- package/dist/helpers/twigWrapper/processTwig/helpers.mjs +2 -1
- package/dist/helpers/twigWrapper/processTwig/index.d.ts +2 -1
- package/dist/helpers/twigWrapper/processTwig/index.mjs +3 -2
- package/dist/helpers/twigWrapper/processTwig/processTwig.d.ts +28 -0
- package/dist/helpers/twigWrapper/processTwig/processTwig.mjs +73 -16
- package/dist/helpers/twigWrapper/processTwig/resolveStepParam.d.ts +17 -0
- package/dist/helpers/twigWrapper/processTwig/resolveStepParam.mjs +14 -0
- package/dist/helpers/twigWrapper/templateRoots.d.ts +11 -0
- package/dist/helpers/twigWrapper/templateRoots.mjs +4 -4
- package/dist/helpers/twigWrapper/tokens/hasTemplateSyntax.d.ts +1 -1
- package/dist/history/describe.d.ts +29 -0
- package/dist/history/describe.mjs +93 -0
- package/dist/history/diff.d.ts +33 -0
- package/dist/history/diff.mjs +73 -0
- package/dist/history/index.d.ts +3 -0
- package/dist/history/index.mjs +3 -0
- package/dist/history/types.d.ts +48 -0
- package/dist/history/types.mjs +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +76 -67
- package/dist/navigation/index.d.ts +1 -1
- package/dist/navigation/index.mjs +2 -2
- package/dist/navigation/routes.d.ts +11 -1
- package/dist/navigation/routes.mjs +15 -10
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/SegmentRemoveMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddPluginMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.d.ts +14 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.mjs +16 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpacePublishMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceRemoveElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceRemovePluginMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceRenameElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementsMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.mjs +3 -3
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSchemaMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSettingsMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceAddActionMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRemoveActionMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.mjs +2 -1
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/connectors/SpaceAddConnectorMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/connectors/SpaceRemoveConnectorMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/connectors/SpaceUpdateConnectorMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceAddCredentialMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceRemoveCredentialMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceUpdateCredentialMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceAddPageFolderMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceRemovePageFolderMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.d.ts +3 -0
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.mjs +9 -0
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation.d.ts +11 -0
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation.mjs +24 -0
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation.mjs +15 -0
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceHomePageMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceRemovePageMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceUpdatePageMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceAddResourceMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation.mjs +9 -0
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation.mjs +9 -0
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation.mjs +9 -0
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation.mjs +9 -0
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation.mjs +9 -0
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation.mjs +9 -0
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceAddVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceRemoveVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceUpdateVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Style/StyleUpdateMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/StyleUpdateSettingsMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleAddFontMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleRemoveFontMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleUpdateFontMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleAddSelectorVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleRemoveSelectorVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleUpdateSelectorVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleAddSelectorMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorsMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleUpdateSelectorMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleAddVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleRemoveVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleUpdateVariableMutation.mjs +1 -1
- package/dist/network/graphql/builder/Mutations/index.d.ts +28 -0
- package/dist/network/graphql/builder/Mutations/index.mjs +108 -84
- package/dist/network/graphql/builder/Queries/InitQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceActionEventsQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceActionTasksQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceActionsQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceChangesQuery.d.ts +23 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceChangesQuery.mjs +49 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceCheckActionQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceConnectorsQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceCredentialsQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceDeploymentsQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.d.ts +6 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.mjs +13 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.d.ts +17 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.mjs +22 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceLatestRevisionQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceQuotaQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceResourcesQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.d.ts +6 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.mjs +32 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.d.ts +6 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.mjs +16 -0
- package/dist/network/graphql/builder/Queries/index.d.ts +17 -3
- package/dist/network/graphql/builder/Queries/index.mjs +30 -22
- package/dist/network/graphql/builder/Subscriptions/SpaceEventSubscription.mjs +1 -1
- package/dist/network/graphql/sdk/Mutations/index.d.ts +1 -1
- package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +1 -1
- package/dist/network/graphql/sdk/Queries/InitQuery.mjs +2 -91
- package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.d.ts +1 -1
- package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.mjs +2 -44
- package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.d.ts +1 -1
- package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.mjs +2 -55
- package/dist/network/graphql/sdk/Queries/index.d.ts +1 -5
- package/dist/network/index.mjs +7 -7
- package/dist/network/spaceEvents.d.ts +33 -3
- package/dist/network/spaceEvents.mjs +102 -89
- package/dist/realtime/client.d.ts +46 -0
- package/dist/realtime/client.mjs +192 -0
- package/dist/realtime/index.d.ts +6 -0
- package/dist/realtime/index.mjs +4 -0
- package/dist/realtime/presence.d.ts +38 -0
- package/dist/realtime/presence.mjs +70 -0
- package/dist/realtime/topics.d.ts +36 -0
- package/dist/realtime/topics.mjs +25 -0
- package/dist/server/actions/useRealtimeSync.d.ts +9 -0
- package/dist/server/actions/useRealtimeSync.mjs +7 -0
- package/dist/state/index.d.ts +1 -0
- package/dist/state/index.mjs +3 -2
- package/dist/state/paintedState.d.ts +52 -0
- package/dist/state/paintedState.mjs +37 -0
- package/dist/state/runtimeStatePersist.d.ts +8 -1
- package/dist/state/runtimeStatePersist.mjs +79 -29
- package/dist/store/index.d.ts +45 -45
- package/dist/store/renderSettings.d.ts +6 -3
- package/dist/store/tracing/index.d.ts +1 -0
- package/dist/store/tracing/tracingCollector.d.ts +17 -1
- package/dist/store/tracing/tracingCollector.mjs +5 -0
- package/dist/style/index.d.ts +1 -0
- package/dist/style/index.mjs +3 -2
- package/dist/style/runtimeStyle.d.ts +29 -0
- package/dist/style/runtimeStyle.mjs +7 -0
- package/dist/style/styleConstants.d.ts +3 -2
- package/dist/style/styleConstants.mjs +2 -0
- package/dist/style/styleStates.d.ts +14 -1
- package/dist/style/styleStates.mjs +10 -7
- package/dist/theme/ThemeProvider.mjs +35 -29
- package/dist/theme/themeCookie.mjs +11 -15
- package/dist/types/ActionTypes.d.ts +4 -0
- package/dist/types/AuthTypes.d.ts +11 -1
- package/dist/types/CommonTypes.d.ts +6 -0
- package/dist/types/FunctionTypes.d.ts +52 -0
- package/dist/types/FunctionTypes.mjs +0 -0
- package/dist/types/PluginTypes.d.ts +0 -1
- package/dist/types/RealtimeTypes.d.ts +94 -0
- package/dist/types/RealtimeTypes.mjs +0 -0
- package/dist/types/SchemaTypes.d.ts +54 -0
- package/dist/types/SchemaTypes.mjs +8 -0
- package/dist/types/ServerTypes.d.ts +259 -15
- package/dist/types/SpaceTypes.d.ts +53 -0
- package/dist/types/StateTypes.d.ts +6 -0
- package/dist/types/StoreTypes.d.ts +11 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.mjs +3 -2
- package/package.json +180 -11
- package/vite.config.ts +0 -12
- package/dist/network/graphql/builder/Queries/PluginsQuery.d.ts +0 -9
- package/dist/network/graphql/builder/Queries/PluginsQuery.mjs +0 -54
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import { TInitQuery } from './InitQuery';
|
|
2
|
-
import { TPluginsQuery } from './PluginsQuery';
|
|
3
2
|
import { TSegmentQuery } from './Segment/SegmentQuery';
|
|
4
3
|
import { TSegmentsQuery } from './Segment/SegmentsQuery';
|
|
5
4
|
import { TSpaceActionEventsQuery } from './Space/SpaceActionEventsQuery';
|
|
6
5
|
import { TSpaceActionsQuery } from './Space/SpaceActionsQuery';
|
|
7
6
|
import { TSpaceActionTasksQuery } from './Space/SpaceActionTasksQuery';
|
|
8
7
|
import { TSpaceCdnsQuery } from './Space/SpaceCdnsQuery';
|
|
8
|
+
import { TSpaceChangesQuery } from './Space/SpaceChangesQuery';
|
|
9
9
|
import { TSpaceCheckActionQuery } from './Space/SpaceCheckActionQuery';
|
|
10
10
|
import { TSpaceConnectorsQuery } from './Space/SpaceConnectorsQuery';
|
|
11
11
|
import { TSpaceCredentialsQuery } from './Space/SpaceCredentialsQuery';
|
|
12
12
|
import { TSpaceDeploymentsQuery } from './Space/SpaceDeploymentsQuery';
|
|
13
|
+
import { TSpaceFunctionsQuery } from './Space/SpaceFunctionsQuery';
|
|
14
|
+
import { TSpaceIssuesQuery } from './Space/SpaceIssuesQuery';
|
|
13
15
|
import { TSpaceLatestRevisionQuery } from './Space/SpaceLatestRevisionQuery';
|
|
14
16
|
import { TSpaceQuotaQuery } from './Space/SpaceQuotaQuery';
|
|
15
17
|
import { TSpaceResourcesQuery } from './Space/SpaceResourcesQuery';
|
|
18
|
+
import { TSpaceRuntimeQuery } from './Space/SpaceRuntimeQuery';
|
|
19
|
+
import { TSpaceVisitorsQuery } from './Space/SpaceVisitorsQuery';
|
|
16
20
|
export type { TQuotaPlane, TSpaceQuota } from './Space/SpaceQuotaQuery';
|
|
21
|
+
export type { TSpaceIssue, TSpaceIssues } from './Space/SpaceIssuesQuery';
|
|
22
|
+
export type { TSnapshotMarker, TSpaceChanges } from './Space/SpaceChangesQuery';
|
|
17
23
|
export type BuilderQueriesMap = {
|
|
18
24
|
Init: TInitQuery;
|
|
19
25
|
SpaceLatestRevision: TSpaceLatestRevisionQuery;
|
|
20
26
|
SpaceQuota: TSpaceQuotaQuery;
|
|
27
|
+
SpaceIssues: TSpaceIssuesQuery;
|
|
28
|
+
SpaceChanges: TSpaceChangesQuery;
|
|
21
29
|
SpaceResources: TSpaceResourcesQuery;
|
|
22
30
|
SpaceDeployments: TSpaceDeploymentsQuery;
|
|
23
31
|
SpaceCdns: TSpaceCdnsQuery;
|
|
@@ -25,9 +33,11 @@ export type BuilderQueriesMap = {
|
|
|
25
33
|
SpaceActionEvents: TSpaceActionEventsQuery;
|
|
26
34
|
SpaceCheckAction: TSpaceCheckActionQuery;
|
|
27
35
|
SpaceActionTasks: TSpaceActionTasksQuery;
|
|
36
|
+
SpaceFunctions: TSpaceFunctionsQuery;
|
|
28
37
|
SpaceConnectors: TSpaceConnectorsQuery;
|
|
29
38
|
SpaceCredentials: TSpaceCredentialsQuery;
|
|
30
|
-
|
|
39
|
+
SpaceVisitors: TSpaceVisitorsQuery;
|
|
40
|
+
SpaceRuntime: TSpaceRuntimeQuery;
|
|
31
41
|
Segment: TSegmentQuery;
|
|
32
42
|
Segments: TSegmentsQuery;
|
|
33
43
|
};
|
|
@@ -35,6 +45,8 @@ declare const BuilderQueries: {
|
|
|
35
45
|
Init: import('graphql').DocumentNode;
|
|
36
46
|
SpaceLatestRevision: import('graphql').DocumentNode;
|
|
37
47
|
SpaceQuota: import('graphql').DocumentNode;
|
|
48
|
+
SpaceIssues: import('graphql').DocumentNode;
|
|
49
|
+
SpaceChanges: import('graphql').DocumentNode;
|
|
38
50
|
SpaceResources: import('graphql').DocumentNode;
|
|
39
51
|
SpaceDeployments: import('graphql').DocumentNode;
|
|
40
52
|
SpaceCdns: import('graphql').DocumentNode;
|
|
@@ -42,9 +54,11 @@ declare const BuilderQueries: {
|
|
|
42
54
|
SpaceActionEvents: import('graphql').DocumentNode;
|
|
43
55
|
SpaceCheckAction: import('graphql').DocumentNode;
|
|
44
56
|
SpaceActionTasks: import('graphql').DocumentNode;
|
|
57
|
+
SpaceFunctions: import('graphql').DocumentNode;
|
|
45
58
|
SpaceConnectors: import('graphql').DocumentNode;
|
|
46
59
|
SpaceCredentials: import('graphql').DocumentNode;
|
|
47
|
-
|
|
60
|
+
SpaceVisitors: import('graphql').DocumentNode;
|
|
61
|
+
SpaceRuntime: import('graphql').DocumentNode;
|
|
48
62
|
Segment: import('graphql').DocumentNode;
|
|
49
63
|
Segments: import('graphql').DocumentNode;
|
|
50
64
|
};
|
|
@@ -1,35 +1,43 @@
|
|
|
1
1
|
import e from "./InitQuery.mjs";
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./Segment/
|
|
4
|
-
import r from "./
|
|
5
|
-
import i from "./Space/
|
|
6
|
-
import a from "./Space/
|
|
7
|
-
import o from "./Space/
|
|
8
|
-
import s from "./Space/
|
|
2
|
+
import t from "./Segment/SegmentQuery.mjs";
|
|
3
|
+
import n from "./Segment/SegmentsQuery.mjs";
|
|
4
|
+
import r from "./Space/SpaceActionEventsQuery.mjs";
|
|
5
|
+
import i from "./Space/SpaceActionsQuery.mjs";
|
|
6
|
+
import a from "./Space/SpaceActionTasksQuery.mjs";
|
|
7
|
+
import o from "./Space/SpaceCdnsQuery.mjs";
|
|
8
|
+
import s from "./Space/SpaceChangesQuery.mjs";
|
|
9
9
|
import c from "./Space/SpaceCheckActionQuery.mjs";
|
|
10
10
|
import l from "./Space/SpaceConnectorsQuery.mjs";
|
|
11
11
|
import u from "./Space/SpaceCredentialsQuery.mjs";
|
|
12
12
|
import d from "./Space/SpaceDeploymentsQuery.mjs";
|
|
13
|
-
import f from "./Space/
|
|
14
|
-
import p from "./Space/
|
|
15
|
-
import m from "./Space/
|
|
13
|
+
import f from "./Space/SpaceFunctionsQuery.mjs";
|
|
14
|
+
import p from "./Space/SpaceIssuesQuery.mjs";
|
|
15
|
+
import m from "./Space/SpaceLatestRevisionQuery.mjs";
|
|
16
|
+
import h from "./Space/SpaceQuotaQuery.mjs";
|
|
17
|
+
import g from "./Space/SpaceResourcesQuery.mjs";
|
|
18
|
+
import _ from "./Space/SpaceRuntimeQuery.mjs";
|
|
19
|
+
import v from "./Space/SpaceVisitorsQuery.mjs";
|
|
16
20
|
//#region src/network/graphql/builder/Queries/index.ts
|
|
17
|
-
var
|
|
21
|
+
var y = {
|
|
18
22
|
Init: e,
|
|
19
|
-
SpaceLatestRevision:
|
|
20
|
-
SpaceQuota:
|
|
21
|
-
|
|
23
|
+
SpaceLatestRevision: m,
|
|
24
|
+
SpaceQuota: h,
|
|
25
|
+
SpaceIssues: p,
|
|
26
|
+
SpaceChanges: s,
|
|
27
|
+
SpaceResources: g,
|
|
22
28
|
SpaceDeployments: d,
|
|
23
|
-
SpaceCdns:
|
|
24
|
-
SpaceActions:
|
|
25
|
-
SpaceActionEvents:
|
|
29
|
+
SpaceCdns: o,
|
|
30
|
+
SpaceActions: i,
|
|
31
|
+
SpaceActionEvents: r,
|
|
26
32
|
SpaceCheckAction: c,
|
|
27
|
-
SpaceActionTasks:
|
|
33
|
+
SpaceActionTasks: a,
|
|
34
|
+
SpaceFunctions: f,
|
|
28
35
|
SpaceConnectors: l,
|
|
29
36
|
SpaceCredentials: u,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
37
|
+
SpaceVisitors: v,
|
|
38
|
+
SpaceRuntime: _,
|
|
39
|
+
Segment: t,
|
|
40
|
+
Segments: n
|
|
33
41
|
};
|
|
34
42
|
//#endregion
|
|
35
|
-
export {
|
|
43
|
+
export { y as default };
|
|
@@ -11,5 +11,5 @@ export type TInitQuery = {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
declare const InitQuery:
|
|
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 }\n attributes\n }\n pages\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 segments {\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 cache\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
15
|
export default InitQuery;
|
|
@@ -1,93 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "graphql-tag";
|
|
2
1
|
//#region src/network/graphql/sdk/Queries/InitQuery.ts
|
|
3
|
-
var
|
|
4
|
-
query InitQuery($environment: String!, $revision: Int) {
|
|
5
|
-
Space(environment: $environment, revision: $revision) {
|
|
6
|
-
schema {
|
|
7
|
-
settings
|
|
8
|
-
flat {
|
|
9
|
-
id
|
|
10
|
-
definition {
|
|
11
|
-
label
|
|
12
|
-
type
|
|
13
|
-
initialState
|
|
14
|
-
styleSelectors
|
|
15
|
-
bindings
|
|
16
|
-
interactions
|
|
17
|
-
parentId
|
|
18
|
-
rootId
|
|
19
|
-
items
|
|
20
|
-
}
|
|
21
|
-
attributes
|
|
22
|
-
}
|
|
23
|
-
pages
|
|
24
|
-
pageFolders {
|
|
25
|
-
id
|
|
26
|
-
name
|
|
27
|
-
slug
|
|
28
|
-
parentId
|
|
29
|
-
}
|
|
30
|
-
variables {
|
|
31
|
-
name
|
|
32
|
-
type
|
|
33
|
-
value
|
|
34
|
-
subValues {
|
|
35
|
-
when
|
|
36
|
-
value
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
segments {
|
|
41
|
-
id
|
|
42
|
-
identifier
|
|
43
|
-
definition
|
|
44
|
-
schema {
|
|
45
|
-
variables {
|
|
46
|
-
name
|
|
47
|
-
category
|
|
48
|
-
type
|
|
49
|
-
value
|
|
50
|
-
subValues {
|
|
51
|
-
value
|
|
52
|
-
when
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
flat {
|
|
56
|
-
id
|
|
57
|
-
definition {
|
|
58
|
-
label
|
|
59
|
-
type
|
|
60
|
-
initialState
|
|
61
|
-
styleSelectors
|
|
62
|
-
bindings
|
|
63
|
-
interactions
|
|
64
|
-
parentId
|
|
65
|
-
rootId
|
|
66
|
-
items
|
|
67
|
-
}
|
|
68
|
-
attributes
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
style {
|
|
72
|
-
cache
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
plugins {
|
|
76
|
-
type
|
|
77
|
-
resource
|
|
78
|
-
settings
|
|
79
|
-
}
|
|
80
|
-
style {
|
|
81
|
-
variables
|
|
82
|
-
cache
|
|
83
|
-
}
|
|
84
|
-
# The schema fetch is the one moment a client-side render hears from the server at all, so the decision it
|
|
85
|
-
# would have been handed in an SSR bootstrap travels here instead.
|
|
86
|
-
render {
|
|
87
|
-
overQuota
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
`;
|
|
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 }\n attributes\n }\n pages\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 segments {\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 cache\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";
|
|
92
3
|
//#endregion
|
|
93
|
-
export {
|
|
4
|
+
export { e as default };
|
|
@@ -2,5 +2,5 @@ import { SegmentRaw } from '../../../../../types';
|
|
|
2
2
|
export type TSegmentQuery = {
|
|
3
3
|
Segment: SegmentRaw;
|
|
4
4
|
};
|
|
5
|
-
declare const SegmentQuery:
|
|
5
|
+
declare const SegmentQuery = "\n query SegmentQuery($id: String, $identifier: String, $environment: String!) {\n Segment(id: $id, identifier: $identifier, environment: $environment) {\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 platform\n cache\n }\n createdAt\n updatedAt\n }\n }\n";
|
|
6
6
|
export default SegmentQuery;
|
|
@@ -1,46 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "graphql-tag";
|
|
2
1
|
//#region src/network/graphql/sdk/Queries/Segment/SegmentQuery.ts
|
|
3
|
-
var
|
|
4
|
-
query SegmentQuery($id: String, $identifier: String, $environment: String!) {
|
|
5
|
-
Segment(id: $id, identifier: $identifier, environment: $environment) {
|
|
6
|
-
id
|
|
7
|
-
identifier
|
|
8
|
-
definition
|
|
9
|
-
schema {
|
|
10
|
-
variables {
|
|
11
|
-
name
|
|
12
|
-
category
|
|
13
|
-
type
|
|
14
|
-
value
|
|
15
|
-
subValues {
|
|
16
|
-
value
|
|
17
|
-
when
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
flat {
|
|
21
|
-
id
|
|
22
|
-
definition {
|
|
23
|
-
label
|
|
24
|
-
type
|
|
25
|
-
initialState
|
|
26
|
-
styleSelectors
|
|
27
|
-
bindings
|
|
28
|
-
interactions
|
|
29
|
-
parentId
|
|
30
|
-
rootId
|
|
31
|
-
items
|
|
32
|
-
}
|
|
33
|
-
attributes
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
style {
|
|
37
|
-
platform
|
|
38
|
-
cache
|
|
39
|
-
}
|
|
40
|
-
createdAt
|
|
41
|
-
updatedAt
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
2
|
+
var e = "\n query SegmentQuery($id: String, $identifier: String, $environment: String!) {\n Segment(id: $id, identifier: $identifier, environment: $environment) {\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 platform\n cache\n }\n createdAt\n updatedAt\n }\n }\n";
|
|
45
3
|
//#endregion
|
|
46
|
-
export {
|
|
4
|
+
export { e as default };
|
|
@@ -5,5 +5,5 @@ export type TSegmentsQuery = {
|
|
|
5
5
|
pageInfo: PageInfo;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
declare const SegmentsQuery:
|
|
8
|
+
declare const SegmentsQuery = "\n query SegmentsQuery($environment: String!, $filter: JsonObject, $cursor: String, $limit: Int) {\n Segments(environment: $environment, filter: $filter, cursor: $cursor, limit: $limit) {\n edges {\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 platform\n cache\n }\n createdAt\n updatedAt\n }\n pageInfo {\n hasPrevPage\n hasNextPage\n prevCursor\n nextCursor\n from\n to\n total\n }\n }\n }\n";
|
|
9
9
|
export default SegmentsQuery;
|
|
@@ -1,57 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "graphql-tag";
|
|
2
1
|
//#region src/network/graphql/sdk/Queries/Segment/SegmentsQuery.ts
|
|
3
|
-
var
|
|
4
|
-
query SegmentsQuery($environment: String!, $filter: JsonObject, $cursor: String, $limit: Int) {
|
|
5
|
-
Segments(environment: $environment, filter: $filter, cursor: $cursor, limit: $limit) {
|
|
6
|
-
edges {
|
|
7
|
-
id
|
|
8
|
-
identifier
|
|
9
|
-
definition
|
|
10
|
-
schema {
|
|
11
|
-
variables {
|
|
12
|
-
name
|
|
13
|
-
category
|
|
14
|
-
type
|
|
15
|
-
value
|
|
16
|
-
subValues {
|
|
17
|
-
value
|
|
18
|
-
when
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
flat {
|
|
22
|
-
id
|
|
23
|
-
definition {
|
|
24
|
-
label
|
|
25
|
-
type
|
|
26
|
-
initialState
|
|
27
|
-
styleSelectors
|
|
28
|
-
bindings
|
|
29
|
-
interactions
|
|
30
|
-
parentId
|
|
31
|
-
rootId
|
|
32
|
-
items
|
|
33
|
-
}
|
|
34
|
-
attributes
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
style {
|
|
38
|
-
platform
|
|
39
|
-
cache
|
|
40
|
-
}
|
|
41
|
-
createdAt
|
|
42
|
-
updatedAt
|
|
43
|
-
}
|
|
44
|
-
pageInfo {
|
|
45
|
-
hasPrevPage
|
|
46
|
-
hasNextPage
|
|
47
|
-
prevCursor
|
|
48
|
-
nextCursor
|
|
49
|
-
from
|
|
50
|
-
to
|
|
51
|
-
total
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
`;
|
|
2
|
+
var e = "\n query SegmentsQuery($environment: String!, $filter: JsonObject, $cursor: String, $limit: Int) {\n Segments(environment: $environment, filter: $filter, cursor: $cursor, limit: $limit) {\n edges {\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 platform\n cache\n }\n createdAt\n updatedAt\n }\n pageInfo {\n hasPrevPage\n hasNextPage\n prevCursor\n nextCursor\n from\n to\n total\n }\n }\n }\n";
|
|
56
3
|
//#endregion
|
|
57
|
-
export {
|
|
4
|
+
export { e as default };
|
|
@@ -6,9 +6,5 @@ export type SdkQueriesMap = {
|
|
|
6
6
|
Segment: TSegmentQuery;
|
|
7
7
|
Segments: TSegmentsQuery;
|
|
8
8
|
};
|
|
9
|
-
declare const SdkQueries:
|
|
10
|
-
Init: import('graphql').DocumentNode;
|
|
11
|
-
Segment: import('graphql').DocumentNode;
|
|
12
|
-
Segments: import('graphql').DocumentNode;
|
|
13
|
-
};
|
|
9
|
+
declare const SdkQueries: Record<keyof SdkQueriesMap, string>;
|
|
14
10
|
export default SdkQueries;
|
package/dist/network/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import e from "./NetworkContext.mjs";
|
|
2
2
|
import t from "./NetworkInternalContext.mjs";
|
|
3
|
-
import { SpaceEvents as n,
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
export {
|
|
3
|
+
import { SpaceEvents as n, schemaFromWire as r, schemaToWire as i, spaceEventSchemas as a, validateSpaceEvent as o } from "./spaceEvents.mjs";
|
|
4
|
+
import s from "./graphql/builder/Mutations/index.mjs";
|
|
5
|
+
import c from "./graphql/builder/Queries/index.mjs";
|
|
6
|
+
import l from "./graphql/builder/Subscriptions/index.mjs";
|
|
7
|
+
import u from "./graphql/sdk/Mutations/index.mjs";
|
|
8
|
+
import d from "./graphql/sdk/Queries/index.mjs";
|
|
9
|
+
export { s as BuilderMutations, c as BuilderQueries, e as NetworkContext, t as NetworkInternalContext, u as SdkMutations, d as SdkQueries, l as SpaceEventSubscription, n as SpaceEvents, r as schemaFromWire, i as schemaToWire, a as spaceEventSchemas, o as validateSpaceEvent };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { StyleVariableCategory } from '../types/StyleTypes';
|
|
3
|
-
import { DropPosition, Element, PageFolder, SchemaRaw, SchemaVariable, SpaceFont, Style, StyleCategory, StyleItem, StyleVariableValue } from '../types';
|
|
3
|
+
import { DropPosition, Element, PageFolder, Schema, SchemaRaw, SchemaVariable, SpaceFont, Style, StyleCategory, StyleItem, StyleVariableValue } from '../types';
|
|
4
|
+
/** A schema as the channel carries it: `flat` as a list. What every publisher of a whole schema sends. */
|
|
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;
|
|
4
8
|
export declare const spaceEventSchemas: {
|
|
5
9
|
readonly SPACE_UPDATED: z.ZodObject<{
|
|
6
10
|
schema: z.ZodCustom<SchemaRaw, SchemaRaw>;
|
|
@@ -80,6 +84,28 @@ export declare const spaceEventSchemas: {
|
|
|
80
84
|
initialItems: z.ZodOptional<z.ZodArray<z.ZodCustom<Element, Element>>>;
|
|
81
85
|
variables: z.ZodOptional<z.ZodArray<z.ZodCustom<SchemaVariable, SchemaVariable>>>;
|
|
82
86
|
}, z.core.$strip>;
|
|
87
|
+
/**
|
|
88
|
+
* A plugin installed — or installed again at a new address, which is how a new version arrives: from the builder,
|
|
89
|
+
* or from `plitzi upload plugin` with no builder open. An open builder loads it without a reload.
|
|
90
|
+
*/
|
|
91
|
+
readonly SPACE_ADD_PLUGIN: z.ZodObject<{
|
|
92
|
+
plugin: z.ZodObject<{
|
|
93
|
+
type: z.ZodString;
|
|
94
|
+
resource: z.ZodString;
|
|
95
|
+
settings: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
/** Its address or its settings changed. */
|
|
99
|
+
readonly SPACE_UPDATE_PLUGIN: z.ZodObject<{
|
|
100
|
+
plugin: z.ZodObject<{
|
|
101
|
+
type: z.ZodString;
|
|
102
|
+
resource: z.ZodString;
|
|
103
|
+
settings: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
readonly SPACE_REMOVE_PLUGIN: z.ZodObject<{
|
|
107
|
+
pluginType: z.ZodString;
|
|
108
|
+
}, z.core.$strip>;
|
|
83
109
|
readonly SPACE_UPDATE_SETTINGS: z.ZodObject<{
|
|
84
110
|
path: z.ZodString;
|
|
85
111
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
@@ -94,8 +120,8 @@ export declare const spaceEventSchemas: {
|
|
|
94
120
|
path: z.ZodOptional<z.ZodCustom<StyleCategory, StyleCategory>>;
|
|
95
121
|
type: z.ZodEnum<{
|
|
96
122
|
id: "id";
|
|
97
|
-
class: "class";
|
|
98
123
|
element: "element";
|
|
124
|
+
class: "class";
|
|
99
125
|
}>;
|
|
100
126
|
style: z.ZodOptional<z.ZodCustom<import('..').StyleAttributes, import('..').StyleAttributes>>;
|
|
101
127
|
params: z.ZodObject<{
|
|
@@ -110,6 +136,7 @@ export declare const spaceEventSchemas: {
|
|
|
110
136
|
disabled: "disabled";
|
|
111
137
|
checked: "checked";
|
|
112
138
|
visited: "visited";
|
|
139
|
+
hidden: "hidden";
|
|
113
140
|
}>>;
|
|
114
141
|
styleVariant: z.ZodOptional<z.ZodString>;
|
|
115
142
|
styleAncestor: z.ZodOptional<z.ZodString>;
|
|
@@ -135,6 +162,7 @@ export declare const spaceEventSchemas: {
|
|
|
135
162
|
disabled: "disabled";
|
|
136
163
|
checked: "checked";
|
|
137
164
|
visited: "visited";
|
|
165
|
+
hidden: "hidden";
|
|
138
166
|
}>>;
|
|
139
167
|
styleVariant: z.ZodOptional<z.ZodString>;
|
|
140
168
|
styleAncestor: z.ZodOptional<z.ZodString>;
|
|
@@ -288,8 +316,8 @@ export declare const spaceEventSchemas: {
|
|
|
288
316
|
selector: z.ZodString;
|
|
289
317
|
type: z.ZodEnum<{
|
|
290
318
|
id: "id";
|
|
291
|
-
class: "class";
|
|
292
319
|
element: "element";
|
|
320
|
+
class: "class";
|
|
293
321
|
}>;
|
|
294
322
|
path: z.ZodOptional<z.ZodCustom<StyleCategory, StyleCategory>>;
|
|
295
323
|
style: z.ZodOptional<z.ZodCustom<import('..').StyleAttributes, import('..').StyleAttributes>>;
|
|
@@ -305,6 +333,7 @@ export declare const spaceEventSchemas: {
|
|
|
305
333
|
disabled: "disabled";
|
|
306
334
|
checked: "checked";
|
|
307
335
|
visited: "visited";
|
|
336
|
+
hidden: "hidden";
|
|
308
337
|
}>>;
|
|
309
338
|
styleVariant: z.ZodOptional<z.ZodString>;
|
|
310
339
|
styleAncestor: z.ZodOptional<z.ZodString>;
|
|
@@ -331,6 +360,7 @@ export declare const spaceEventSchemas: {
|
|
|
331
360
|
disabled: "disabled";
|
|
332
361
|
checked: "checked";
|
|
333
362
|
visited: "visited";
|
|
363
|
+
hidden: "hidden";
|
|
334
364
|
}>>;
|
|
335
365
|
styleVariant: z.ZodOptional<z.ZodString>;
|
|
336
366
|
styleAncestor: z.ZodOptional<z.ZodString>;
|