@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
package/dist/index.mjs
CHANGED
|
@@ -1,68 +1,77 @@
|
|
|
1
1
|
import { authFailureFromResponse as e, onAuthFailure as t, reportAuthFailure as n, sameRegistrableDomain as r } from "./auth/failureChannel.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { filters as
|
|
4
|
-
import { processTwig as
|
|
5
|
-
import { hasTemplateSyntax as
|
|
6
|
-
import { hasValidToken as
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import Q from "./
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import {
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import {
|
|
42
|
-
import
|
|
43
|
-
import {
|
|
44
|
-
import
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import {
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import Ot from "./
|
|
64
|
-
import kt
|
|
65
|
-
import Mt from "./
|
|
66
|
-
import
|
|
67
|
-
import {
|
|
68
|
-
|
|
2
|
+
import { VISITOR_NAME as i, checkVisitorRoles as a, visitorAccess as o } from "./auth/visitorRoles.mjs";
|
|
3
|
+
import { filters as s } from "./helpers/twigWrapper/filters/filters.mjs";
|
|
4
|
+
import { processTwig as c, processTwigParam as l, processTwigValue as u } from "./helpers/twigWrapper/processTwig/processTwig.mjs";
|
|
5
|
+
import { hasTemplateSyntax as d } from "./helpers/twigWrapper/tokens/hasTemplateSyntax.mjs";
|
|
6
|
+
import { hasValidToken as f } from "./helpers/twigWrapper/tokens/hasValidToken.mjs";
|
|
7
|
+
import { MAX_PARAM_PASSES as p, resolveStepParam as m } from "./helpers/twigWrapper/processTwig/resolveStepParam.mjs";
|
|
8
|
+
import { inspectTemplate as h } from "./helpers/twigWrapper/inspectTemplate.mjs";
|
|
9
|
+
import { templatePaths as g, templateRootNames as _ } from "./helpers/twigWrapper/templateRoots.mjs";
|
|
10
|
+
import v from "./builder/contexts/BuilderContext.mjs";
|
|
11
|
+
import { contexts_exports as y } from "./builder/contexts/index.mjs";
|
|
12
|
+
import { BODYLESS_METHODS as b, CONNECTOR_HTTP_METHODS as x, DEFAULT_READ_ENDPOINT as S, EMPTY_RESPONSE_METHODS as C, READ_ENDPOINT_NAMES as w, WRITE_ENDPOINT_NAMES as T } from "./connectors/constants.mjs";
|
|
13
|
+
import { connectorTokens as E, getConnectorTokens as D } from "./connectors/manifestTokens.mjs";
|
|
14
|
+
import { connectorPresets as O, emptyManifest as k } from "./connectors/presets.mjs";
|
|
15
|
+
import { validateConnectorManifest as A } from "./connectors/validateManifest.mjs";
|
|
16
|
+
import { evaluateComputed as j, liveSources as M } from "./dataSource/computed.mjs";
|
|
17
|
+
import N from "./helpers/fetchManifest.mjs";
|
|
18
|
+
import P from "./helpers/generateFacade.mjs";
|
|
19
|
+
import F from "./helpers/syntaxHighlight.mjs";
|
|
20
|
+
import { cookieFromHeader as I, documentCookies as L } from "./helpers/cookies.mjs";
|
|
21
|
+
import { formatDate as R, formatDateUTC as z, formatFromNow as B, formatUTCToLocal as V, getDurationMs as H, isValidFormat as U, parseDate as W, toUnixSeconds as G } from "./helpers/formatDate.mjs";
|
|
22
|
+
import { isDate as K } from "./helpers/isDate.mjs";
|
|
23
|
+
import { isUserEdit as q } from "./helpers/reducerOrigin.mjs";
|
|
24
|
+
import { evaluateRuleGroup as J } from "./helpers/ruleEvaluator.mjs";
|
|
25
|
+
import { ParamsFromURL as Y, delay as X, emptyObject as Z, getDisplayName as Q, getKeyDecoded as $, getPathsFromObeject as ee, hexToRGB as te, isInViewport as ne, makeId as re } from "./helpers/utils.mjs";
|
|
26
|
+
import { disableReactDevTools as ie } from "./helpers/security.mjs";
|
|
27
|
+
import ae, { utilityOptions as oe } from "./dataSource/utility/index.mjs";
|
|
28
|
+
import se from "./dataSource/getBindingsDetails.mjs";
|
|
29
|
+
import ce from "./dataSource/helpers/getSourceName.mjs";
|
|
30
|
+
import le from "./dataSource/hooks/useRegisterSource.mjs";
|
|
31
|
+
import ue from "./dataSource/resolveVariables.mjs";
|
|
32
|
+
import de from "./devTools/DevToolsContext.mjs";
|
|
33
|
+
import { debugCookieName as fe } from "./devTools/debugCookie.mjs";
|
|
34
|
+
import pe from "./devTools/interactionLog.mjs";
|
|
35
|
+
import me, { createStoreDevToolsLogger as he, pConsole as ge } from "./devTools/utils/PlitziConsole.mjs";
|
|
36
|
+
import _e from "./elements/ComponentContext.mjs";
|
|
37
|
+
import { describeChange as ve, fieldChanges as ye, uniqueLines as be } from "./history/describe.mjs";
|
|
38
|
+
import { diffSchema as xe, diffStyle as Se, jsonCopy as Ce, sameValue as we } from "./history/diff.mjs";
|
|
39
|
+
import Te from "./hooks/useFontHead.mjs";
|
|
40
|
+
import Ee from "./hooks/useNetwork.mjs";
|
|
41
|
+
import De, { PlitziServiceContext as Oe, PlitziServiceProvider as ke } from "./hooks/usePlitziServiceContext.mjs";
|
|
42
|
+
import Ae from "./hooks/useStableValue.mjs";
|
|
43
|
+
import { WHILE_RUNNING_MODES as je } from "./types/SchemaTypes.mjs";
|
|
44
|
+
import { StyleVariableCategory as Me } from "./types/StyleTypes.mjs";
|
|
45
|
+
import Ne, { EMPTY_STYLE_SCHEMA as Pe, StyleBindingsAllowed as Fe, baseDefaultValue as Ie, inheritableAttributesBase as Le } from "./style/styleConstants.mjs";
|
|
46
|
+
import { fontLinkAssets as Re } from "./style/fontAssets.mjs";
|
|
47
|
+
import { SYSTEM_FONTS as ze, availableFonts as Be, familiesInCss as Ve, fontFamilyStack as He, fontUrlResolver as Ue, fontsToHead as We, googleCss2Url as Ge, googleTextSubsetUrl as Ke, isSafeFontUrl as qe, primaryFamily as Je } from "./style/fonts.mjs";
|
|
48
|
+
import { FontValidationError as Ye, parseSpaceFont as Xe } from "./style/fontValidation.mjs";
|
|
49
|
+
import { fallbackForFamily as Ze, fontsFromCss as Qe } from "./style/fontsFromCss.mjs";
|
|
50
|
+
import { RUNTIME_STYLE_ID as $e, markStyleCache as et, styleCacheFromDocument as tt, styleCacheTravelsInDocument as nt } from "./style/runtimeStyle.mjs";
|
|
51
|
+
import { HIDDEN_CLASS as rt, STYLE_STATES as it, STYLE_STATE_LABELS as at, inCascadeOrder as ot, isKnownState as st, isStartingState as ct, stateSuffix as lt } from "./style/styleStates.mjs";
|
|
52
|
+
import ut from "./schema/SchemaContext.mjs";
|
|
53
|
+
import { EMPTY_SCHEMA as dt, VARIABLE_REGEX as ft } from "./schema/schemaConstants.mjs";
|
|
54
|
+
import { findLayoutCycle as pt, resolveLayoutChain as mt } from "./schema/layoutChain.mjs";
|
|
55
|
+
import { collectServerElements as ht, hasServerElements as gt } from "./schema/serverElements.mjs";
|
|
56
|
+
import _t from "./network/NetworkContext.mjs";
|
|
57
|
+
import vt from "./network/NetworkInternalContext.mjs";
|
|
58
|
+
import { SpaceEvents as yt, schemaFromWire as bt, schemaToWire as xt, spaceEventSchemas as St, validateSpaceEvent as Ct } from "./network/spaceEvents.mjs";
|
|
59
|
+
import wt from "./network/graphql/builder/Mutations/index.mjs";
|
|
60
|
+
import Tt from "./network/graphql/builder/Queries/index.mjs";
|
|
61
|
+
import Et from "./network/graphql/builder/Subscriptions/index.mjs";
|
|
62
|
+
import Dt from "./network/graphql/sdk/Mutations/index.mjs";
|
|
63
|
+
import Ot from "./network/graphql/sdk/Queries/index.mjs";
|
|
64
|
+
import kt from "./segments/SegmentsContext.mjs";
|
|
65
|
+
import At, { RTEvent as jt, RTEventCloseCode as Mt, getInstance as Nt, isRTEvent as Pt, setInstance as Ft } from "./websockets/RTCodec.mjs";
|
|
66
|
+
import { THEME_CLASSES as It, THEME_COOKIE_NAME as Lt, applyThemeClass as Rt, isTheme as zt, readThemeCookie as Bt, themeFromCookies as Vt, writeThemeCookie as Ht } from "./theme/themeCookie.mjs";
|
|
67
|
+
import Ut, { createThemeState as Wt, createThemeStore as Gt, resolveScheme as Kt, setAreaTheme as qt, setMachineScheme as Jt, setThemeMode as Yt, themeFor as Xt } from "./theme/themeStore.mjs";
|
|
68
|
+
import { useThemeStore as Zt } from "./theme/ThemeScope.mjs";
|
|
69
|
+
import Qt from "./theme/ThemeProvider.mjs";
|
|
70
|
+
import $t, { SPACE_THEME_AREA as en } from "./theme/useTheme.mjs";
|
|
71
|
+
import tn from "./server/actions/useActionsSync.mjs";
|
|
72
|
+
import nn, { currentRscLocation as rn, rscDataPath as an } from "./server/rsc/refreshRsc.mjs";
|
|
73
|
+
import on from "./server/rsc/useRscRefresh.mjs";
|
|
74
|
+
import sn from "./server/rsc/useRscSync.mjs";
|
|
75
|
+
import { PAINTED_STATE_BUDGET as cn, clearPaintedEntry as ln, paintedEntryFromCookies as un, paintedKeys as dn, paintedStateCookieName as fn, paintedStateFor as pn, pickPainted as mn, readPaintedEntry as hn, writePaintedEntry as gn } from "./state/paintedState.mjs";
|
|
76
|
+
import { runtimeStatePersist as _n, stateOwner as vn } from "./state/runtimeStatePersist.mjs";
|
|
77
|
+
export { b as BODYLESS_METHODS, v as BuilderContext, wt as BuilderMutations, Tt as BuilderQueries, x as CONNECTOR_HTTP_METHODS, _e as ComponentContext, S as DEFAULT_READ_ENDPOINT, de as DevToolsContext, C as EMPTY_RESPONSE_METHODS, dt as EMPTY_SCHEMA, Pe as EMPTY_STYLE_SCHEMA, Ye as FontValidationError, rt as HIDDEN_CLASS, p as MAX_PARAM_PASSES, _t as NetworkContext, vt as NetworkInternalContext, cn as PAINTED_STATE_BUDGET, Y as ParamsFromURL, me as PlitziConsole, Oe as PlitziServiceContext, ke as PlitziServiceProvider, w as READ_ENDPOINT_NAMES, At as RTCodec, jt as RTEvent, Mt as RTEventCloseCode, $e as RUNTIME_STYLE_ID, en as SPACE_THEME_AREA, it as STYLE_STATES, at as STYLE_STATE_LABELS, ze as SYSTEM_FONTS, ut as SchemaContext, Dt as SdkMutations, Ot as SdkQueries, kt as SegmentsContext, Et as SpaceEventSubscription, yt as SpaceEvents, Fe as StyleBindingsAllowed, Me as StyleVariableCategory, It as THEME_CLASSES, Lt as THEME_COOKIE_NAME, Qt as ThemeProvider, ft as VARIABLE_REGEX, i as VISITOR_NAME, je as WHILE_RUNNING_MODES, T as WRITE_ENDPOINT_NAMES, Rt as applyThemeClass, e as authFailureFromResponse, Be as availableFonts, Ie as baseDefaultValue, a as checkVisitorRoles, ln as clearPaintedEntry, ht as collectServerElements, O as connectorPresets, E as connectorTokens, y as contexts, I as cookieFromHeader, he as createStoreDevToolsLogger, Wt as createThemeState, Gt as createThemeStore, rn as currentRscLocation, fe as debugCookieName, X as delay, ve as describeChange, xe as diffSchema, Se as diffStyle, ie as disableReactDevTools, L as documentCookies, k as emptyManifest, Z as emptyObject, j as evaluateComputed, J as evaluateRuleGroup, Ze as fallbackForFamily, Ve as familiesInCss, N as fetchManifest, ye as fieldChanges, s as filters, pt as findLayoutCycle, He as fontFamilyStack, Re as fontLinkAssets, Ue as fontUrlResolver, Qe as fontsFromCss, We as fontsToHead, R as formatDate, z as formatDateUTC, B as formatFromNow, V as formatUTCToLocal, P as generateFacade, se as getBindingsDetails, D as getConnectorTokens, Q as getDisplayName, H as getDurationMs, Nt as getInstance, $ as getKeyDecoded, ee as getPathsFromObeject, ce as getSourceName, Ge as googleCss2Url, Ke as googleTextSubsetUrl, gt as hasServerElements, d as hasTemplateSyntax, f as hasValidToken, te as hexToRGB, ot as inCascadeOrder, Le as inheritableAttributesBase, h as inspectTemplate, K as isDate, ne as isInViewport, pe as isInteractionFlow, st as isKnownState, Pt as isRTEvent, qe as isSafeFontUrl, ct as isStartingState, zt as isTheme, q as isUserEdit, U as isValidFormat, Ce as jsonCopy, M as liveSources, re as makeId, et as markStyleCache, t as onAuthFailure, ge as pConsole, un as paintedEntryFromCookies, dn as paintedKeys, fn as paintedStateCookieName, pn as paintedStateFor, W as parseDate, Xe as parseSpaceFont, mn as pickPainted, Je as primaryFamily, c as processTwig, l as processTwigParam, u as processTwigValue, hn as readPaintedEntry, Bt as readThemeCookie, nn as refreshRsc, n as reportAuthFailure, mt as resolveLayoutChain, Kt as resolveScheme, m as resolveStepParam, ue as resolveVariables, an as rscDataPath, _n as runtimeStatePersist, r as sameRegistrableDomain, we as sameValue, bt as schemaFromWire, xt as schemaToWire, qt as setAreaTheme, Ft as setInstance, Jt as setMachineScheme, Yt as setThemeMode, St as spaceEventSchemas, vn as stateOwner, lt as stateSuffix, tt as styleCacheFromDocument, nt as styleCacheTravelsInDocument, Ne as styleConstants, F as syntaxHighlight, g as templatePaths, _ as templateRootNames, Xt as themeFor, Vt as themeFromCookies, Ut as themeStore, G as toUnixSeconds, be as uniqueLines, tn as useActionsSync, Te as useFontHead, Ee as useNetwork, De as usePlitziServiceContext, le as useRegisterSource, on as useRscRefresh, sn as useRscSync, Ae as useStableValue, $t as useTheme, Zt as useThemeStore, ae as utility, oe as utilityOptions, A as validateConnectorManifest, Ct as validateSpaceEvent, o as visitorAccess, gn as writePaintedEntry, Ht as writeThemeCookie };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { matchPath } from './matchPath';
|
|
2
|
-
export { getPageFullPath, getPaths, isAbsoluteUrl, isPageAuthored, matchRoutePath, getRouteParams } from './routes';
|
|
2
|
+
export { getPageFullPath, getPaths, isAbsoluteUrl, isPageAuthored, matchRoutePath, getRouteParams, getSlugParams, navigationTarget } from './routes';
|
|
3
3
|
export type { PathMatch, PathPattern } from './matchPath';
|
|
4
4
|
export type { NavigationAccessLevel, NavigationAction, Path } from './routes';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { matchPath as e } from "./matchPath.mjs";
|
|
2
|
-
import { getPageFullPath as t, getPaths as n, getRouteParams as r,
|
|
3
|
-
export { t as getPageFullPath, n as getPaths, r as getRouteParams, i as
|
|
2
|
+
import { getPageFullPath as t, getPaths as n, getRouteParams as r, getSlugParams as i, isAbsoluteUrl as a, isPageAuthored as o, matchRoutePath as s, navigationTarget as c } from "./routes.mjs";
|
|
3
|
+
export { t as getPageFullPath, n as getPaths, r as getRouteParams, i as getSlugParams, a as isAbsoluteUrl, o as isPageAuthored, e as matchPath, s as matchRoutePath, c as navigationTarget };
|
|
@@ -22,6 +22,14 @@ export type Path = {
|
|
|
22
22
|
export declare const isAbsoluteUrl: (url: string) => boolean;
|
|
23
23
|
declare function getPageFullPath(pages: Record<string, Element>, pageFolders: PageFolder[], pageId: string, asString: true): string;
|
|
24
24
|
declare function getPageFullPath(pages: Record<string, Element>, pageFolders: PageFolder[], pageId: string, asString?: false): Record<string, string>;
|
|
25
|
+
/**
|
|
26
|
+
* Where a navigation to `target` goes: a page id resolves to that page's full path — its folders' slugs before its own,
|
|
27
|
+
* exactly what a link to it resolves to — and anything else (a path, a slug) is taken as the path it already is.
|
|
28
|
+
*
|
|
29
|
+
* The router's navigation and a link used to disagree about a page in a folder: the link went to `/account/security`,
|
|
30
|
+
* a flow's `navigate` to `/security`, and to the home page for a folder's index — whose own slug is empty.
|
|
31
|
+
*/
|
|
32
|
+
declare const navigationTarget: (pages: Record<string, Element>, pageFolders: PageFolder[], target: string) => string;
|
|
25
33
|
declare const isPageAuthored: (accessLevel?: NavigationAccessLevel, authenticated?: boolean, previewMode?: boolean) => boolean;
|
|
26
34
|
declare const getPaths: (pages?: Record<string, Element>, pageFolders?: PageFolder[], authenticated?: boolean, basePath?: string, previewMode?: boolean, strictMode?: boolean) => Path[];
|
|
27
35
|
declare const matchRoutePath: (paths: Path[], pathName: string, authenticated: boolean) => {
|
|
@@ -33,4 +41,6 @@ declare const matchRoutePath: (paths: Path[], pathName: string, authenticated: b
|
|
|
33
41
|
pageId?: string;
|
|
34
42
|
};
|
|
35
43
|
declare const getRouteParams: (path: string) => string[];
|
|
36
|
-
|
|
44
|
+
/** The params a page's slug declares, in either spelling a slug accepts: `post/{{slug}}` and `:spaceId/update`. */
|
|
45
|
+
declare const getSlugParams: (slug: string) => string[];
|
|
46
|
+
export { getPageFullPath, getPaths, matchRoutePath, isPageAuthored, getRouteParams, getSlugParams, navigationTarget };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { matchPath as e } from "./matchPath.mjs";
|
|
2
2
|
//#region src/navigation/routes.ts
|
|
3
|
-
var t = (e) => /^https?:\/\//i.test(e), n = (e) => t(e) || e.includes("{{"), r = (e) => e.replaceAll(/\/+/g, "/"), i = (e) => r(e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/
|
|
3
|
+
var t = (e) => /^https?:\/\//i.test(e), n = (e) => t(e) || e.includes("{{"), r = (e) => e.replaceAll(/\/+/g, "/"), i = (e) => r(e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/gi, ":$1")), a = (e, t) => {
|
|
4
4
|
if (!t || !e[t]) return "";
|
|
5
5
|
let { slug: n, parentId: r } = e[t];
|
|
6
6
|
return r ? `${a(e, r)}/${n}` : n;
|
|
@@ -34,10 +34,15 @@ function o(e, t, n, o = !1) {
|
|
|
34
34
|
[i(`/${n}`)]: n
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
var s = (e, t, n
|
|
38
|
-
let
|
|
37
|
+
var s = (e, t, n) => {
|
|
38
|
+
let r = e[n];
|
|
39
|
+
if (!r) return n;
|
|
40
|
+
let { slug: i, default: a } = r.attributes;
|
|
41
|
+
return typeof i == "string" ? o(e, t, n, !0) : a ? "/" : `/${n}`;
|
|
42
|
+
}, c = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated" || !t && e === "public" ? !0 : t && e === "public" ? !1 : !e, l = (e = {}, t = [], r, i = "", a = !0, s = !0) => {
|
|
43
|
+
let l = Object.keys(e).reduce((s, l) => {
|
|
39
44
|
let { attributes: { accessLevel: u, enabled: d = !0, unauthorizedBehaviour: f } } = e[l], p = e[l].attributes.unauthorizedPageRedirect;
|
|
40
|
-
if (!d && a) return
|
|
45
|
+
if (!d && a) return s;
|
|
41
46
|
p &&= n(p) ? p : o(e, t, p, !0);
|
|
42
47
|
let m = o(e, t, l), h = Object.keys(m).map((e) => ({
|
|
43
48
|
pageId: l,
|
|
@@ -47,11 +52,11 @@ var s = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated"
|
|
|
47
52
|
isRaw: `/${l}` === e,
|
|
48
53
|
unauthorizedBehaviour: f,
|
|
49
54
|
unauthorizedPageRedirect: p,
|
|
50
|
-
hasAccess:
|
|
55
|
+
hasAccess: c(u, r, a)
|
|
51
56
|
}));
|
|
52
|
-
return [...
|
|
57
|
+
return [...s, ...h];
|
|
53
58
|
}, []).filter((e) => e.path !== "*" || e.hasAccess).sort((e, t) => e.path === t.path ? e.accessLevel === "authenticated" ? -1 : 1 : e.path > t.path ? -1 : 1);
|
|
54
|
-
if (!l.find((e) => e.path === "*") && !
|
|
59
|
+
if (!l.find((e) => e.path === "*") && !s) {
|
|
55
60
|
let e = l.find((e) => e.path === "/" && e.hasAccess);
|
|
56
61
|
e && e.unauthorizedBehaviour === "redirect" && e.unauthorizedPageRedirect && l.push({
|
|
57
62
|
...e,
|
|
@@ -63,7 +68,7 @@ var s = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated"
|
|
|
63
68
|
});
|
|
64
69
|
}
|
|
65
70
|
return l;
|
|
66
|
-
},
|
|
71
|
+
}, u = (t, n, r) => {
|
|
67
72
|
if (!n) return {
|
|
68
73
|
action: {
|
|
69
74
|
type: "accessDenied",
|
|
@@ -119,6 +124,6 @@ var s = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated"
|
|
|
119
124
|
},
|
|
120
125
|
pathMatch: void 0
|
|
121
126
|
};
|
|
122
|
-
},
|
|
127
|
+
}, d = (e) => !e || typeof e != "string" ? [] : (e.match(/:[a-zA-Z0-9-_:*]+/gim) || []).map((e) => e.replace(":", "")), f = (e) => d(i(e));
|
|
123
128
|
//#endregion
|
|
124
|
-
export { o as getPageFullPath,
|
|
129
|
+
export { o as getPageFullPath, l as getPaths, d as getRouteParams, f as getSlugParams, t as isAbsoluteUrl, c as isPageAuthored, u as matchRoutePath, s as navigationTarget };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SegmentPublish($environment: String!, $description: String!, $contextId: String!) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SegmentRemoveElementMutation($environment: String!, $elementId: String!, $contextId: String!) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SegmentRenameElementMutation($environment: String!, $elementId: String!, $id: String!, $contextId: String!) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SegmentUpdateElementMutation($environment: String!, $element: Json!, $contextId: String!) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SegmentUpdateElementsMutation($environment: String!, $elements: [Json!]!, $contextId: String!) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SegmentSpaceRemoveVariableMutation($environment: String!, $contextId: String!, $name: String!) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SegmentStyleAddSelectorVariableMutation(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SegmentStyleRemoveSelectorVariableMutation(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SegmentStyleUpdateSelectorVariableMutation(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SegmentStyleRemoveSelectorMutation($environment: String!, $selector: String!, $contextId: String!) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SegmentStyleRemoveSelectorsMutation($environment: String!, $selectors: [String!]!, $contextId: String!) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Space/SpaceAddPluginMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SpaceAddPluginMutation($environment: String!, $pluginType: String!, $resource: String!, $override: Boolean) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Space/SpaceDeployMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SpaceDeploy($environment: String!, $domain: String!, $revision: Int, $credentialIdentifier: String) {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SchemaRaw } from '../../../../../types';
|
|
2
|
+
/** One change the fix made, keyed by the issue it settles. */
|
|
3
|
+
export type TSpaceFix = {
|
|
4
|
+
code: string;
|
|
5
|
+
elementId: string | null;
|
|
6
|
+
message: string;
|
|
7
|
+
};
|
|
8
|
+
/** What was changed, and the schema as it is now stored — `flat` as a list, the shape the live channel carries. */
|
|
9
|
+
export type TSpaceFixIssuesMutation = {
|
|
10
|
+
applied: TSpaceFix[];
|
|
11
|
+
schema: SchemaRaw;
|
|
12
|
+
};
|
|
13
|
+
declare const SpaceFixIssuesMutation: import('graphql').DocumentNode;
|
|
14
|
+
export default SpaceFixIssuesMutation;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
|
+
//#region src/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.ts
|
|
3
|
+
var t = e`
|
|
4
|
+
mutation SpaceFixIssues($environment: String!) {
|
|
5
|
+
SpaceFixIssues(environment: $environment) {
|
|
6
|
+
applied {
|
|
7
|
+
code
|
|
8
|
+
elementId
|
|
9
|
+
message
|
|
10
|
+
}
|
|
11
|
+
schema
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Space/SpaceRenameElementMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SpaceRenameElementMutation($environment: String!, $elementId: String!, $id: String!) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gql as e } from "
|
|
1
|
+
import { gql as e } from "graphql-tag";
|
|
2
2
|
//#region src/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.ts
|
|
3
3
|
var t = e`
|
|
4
4
|
mutation SpaceUpdate($environment: String!, $schema: Json!, $styleId: String!, $style: Json!) {
|