@plitzi/sdk-shared 0.39.1 → 0.39.2
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 +7 -0
- package/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/actions/access.mjs +1 -2
- package/dist/actions/cron.mjs +1 -2
- package/dist/actions/failureHandler.mjs +1 -2
- package/dist/actions/flowDelay.d.ts +6 -0
- package/dist/actions/flowDelay.mjs +3 -0
- package/dist/actions/functions.d.ts +6 -3
- package/dist/actions/functions.mjs +12 -8
- package/dist/actions/index.d.ts +2 -1
- package/dist/actions/index.mjs +10 -9
- package/dist/actions/jobs.mjs +1 -2
- package/dist/actions/smtp.mjs +1 -2
- package/dist/actions/triggerParams.mjs +1 -2
- package/dist/actions/triggers.mjs +1 -2
- package/dist/actions/validateDocument.mjs +133 -123
- package/dist/activity/describe.mjs +1 -2
- package/dist/activity/guard.mjs +1 -2
- package/dist/activity/types.mjs +1 -2
- package/dist/auth/failureChannel.mjs +1 -2
- package/dist/auth/visitorRoles.mjs +1 -2
- package/dist/authoring/builder.mjs +1 -2
- package/dist/authoring/declare.mjs +1 -2
- package/dist/authoring/elementCallbacks.mjs +1 -2
- package/dist/authoring/index.mjs +3 -3
- package/dist/authoring/paramSpec.mjs +1 -2
- package/dist/authoring/spaceCallbacks.mjs +1 -2
- package/dist/builder/contexts/BuilderContext.mjs +1 -2
- package/dist/builder/contexts/index.mjs +1 -2
- package/dist/conditions/dates.d.ts +2 -0
- package/dist/conditions/dates.mjs +12 -0
- package/dist/conditions/evaluateRuleGroup.d.ts +13 -0
- package/dist/conditions/evaluateRuleGroup.mjs +4 -0
- package/dist/conditions/evaluator.d.ts +39 -0
- package/dist/conditions/evaluator.mjs +75 -0
- package/dist/conditions/index.d.ts +10 -0
- package/dist/conditions/index.mjs +5 -0
- package/dist/conditions/rules.d.ts +3 -0
- package/dist/conditions/rules.mjs +3 -0
- package/dist/conditions/types.d.ts +44 -0
- package/dist/connectors/constants.mjs +1 -2
- package/dist/connectors/manifestTokens.mjs +1 -2
- package/dist/connectors/presets.mjs +1 -2
- package/dist/connectors/validateManifest.mjs +56 -57
- package/dist/dataSource/computed.mjs +16 -17
- package/dist/dataSource/getBindingsDetails.d.ts +5 -6
- package/dist/dataSource/getBindingsDetails.mjs +65 -40
- package/dist/dataSource/globalSources.d.ts +1 -1
- package/dist/dataSource/globalSources.mjs +1 -2
- package/dist/dataSource/helpers/getSourceName.mjs +1 -2
- package/dist/dataSource/index.mjs +5 -5
- package/dist/dataSource/utility/arrayMap.mjs +2 -2
- package/dist/dataSource/utility/capitalize.mjs +1 -2
- package/dist/dataSource/utility/checkboxParams.mjs +1 -2
- package/dist/dataSource/utility/dateConverter.mjs +0 -1
- package/dist/dataSource/utility/index.mjs +15 -16
- package/dist/dataSource/utility/not.mjs +1 -2
- package/dist/dataSource/utility/staticValue.mjs +0 -1
- package/dist/dataSource/utility/stringToArray.mjs +0 -1
- package/dist/dataSource/utility/styleSelector.mjs +1 -2
- package/dist/dataSource/utility/styleVariant.mjs +2 -3
- package/dist/dataSource/utility/truthiness.mjs +1 -2
- package/dist/dataSource/utility/twigTemplate.mjs +0 -1
- package/dist/dataSource/variables/resolveVariables.mjs +2 -3
- package/dist/dates/formatDate.mjs +29 -30
- package/dist/dates/isDate.mjs +1 -2
- package/dist/devTools/chrome.mjs +1 -2
- package/dist/devTools/debugCookie.mjs +1 -2
- package/dist/devTools/index.mjs +5 -5
- package/dist/devTools/interactionLog.mjs +1 -2
- package/dist/devTools/react/DevToolsContext.mjs +1 -2
- package/dist/devTools/sight/sight.mjs +1 -2
- package/dist/devTools/utils/PlitziConsole.mjs +1 -2
- package/dist/elements/ComponentContext.mjs +1 -2
- package/dist/flags/flagsCookie.mjs +5 -6
- package/dist/flags/index.d.ts +1 -0
- package/dist/flags/index.mjs +4 -3
- package/dist/flags/overrides.d.ts +36 -0
- package/dist/flags/overrides.mjs +13 -0
- package/dist/flags/react/useFlagResolution.mjs +5 -6
- package/dist/flags/resolveFlags.d.ts +1 -1
- package/dist/flags/resolveFlags.mjs +2 -3
- package/dist/flags/schemaFlag.mjs +1 -2
- package/dist/functions/contract.d.ts +326 -0
- package/dist/functions/contract.mjs +3 -0
- package/dist/functions/index.d.ts +15 -0
- package/dist/functions/index.mjs +9 -0
- package/dist/functions/kv.d.ts +80 -0
- package/dist/functions/kvChange.d.ts +67 -0
- package/dist/functions/kvChange.mjs +24 -0
- package/dist/functions/later.d.ts +18 -0
- package/dist/functions/messages.d.ts +4 -0
- package/dist/functions/messages.mjs +205 -0
- package/dist/functions/protocol.d.ts +416 -0
- package/dist/functions/protocol.mjs +37 -0
- package/dist/functions/rateLimit.d.ts +17 -0
- package/dist/functions/rateLimit.mjs +0 -0
- package/dist/functions/refusal.d.ts +26 -0
- package/dist/functions/refusal.mjs +11 -0
- package/dist/functions/runtime.d.ts +44 -0
- package/dist/functions/runtime.mjs +13 -0
- package/dist/functions/sizes.d.ts +27 -0
- package/dist/functions/sizes.mjs +7 -0
- package/dist/functions/wire.d.ts +11 -0
- package/dist/functions/wire.mjs +39 -0
- package/dist/helpers/canonicalJson.mjs +1 -2
- package/dist/helpers/clipboard.mjs +1 -2
- package/dist/helpers/cookies.mjs +1 -2
- package/dist/helpers/deepEqual/deepEqual.d.ts +5 -0
- package/dist/helpers/deepEqual/deepEqual.mjs +44 -0
- package/dist/helpers/deepEqual/index.d.ts +1 -0
- package/dist/helpers/deepEqual/index.mjs +1 -0
- package/dist/helpers/eventTarget.mjs +1 -2
- package/dist/helpers/fetchManifest.mjs +1 -2
- package/dist/helpers/images.mjs +1 -2
- package/dist/helpers/index.d.ts +4 -6
- package/dist/helpers/index.mjs +24 -20
- package/dist/helpers/interval.mjs +1 -2
- package/dist/helpers/isRecord.mjs +1 -2
- package/dist/helpers/keys.mjs +1 -2
- package/dist/helpers/lodash/camelCase.d.ts +1 -0
- package/dist/helpers/lodash/camelCase.mjs +7 -0
- package/dist/helpers/lodash/capitalize.d.ts +1 -0
- package/dist/helpers/lodash/capitalize.mjs +5 -0
- package/dist/helpers/lodash/cloneDeep.d.ts +8 -0
- package/dist/helpers/lodash/cloneDeep.mjs +53 -0
- package/dist/helpers/lodash/get.d.ts +11 -0
- package/dist/helpers/lodash/get.mjs +14 -0
- package/dist/helpers/lodash/has.d.ts +2 -0
- package/dist/helpers/lodash/has.mjs +12 -0
- package/dist/helpers/lodash/index.d.ts +11 -0
- package/dist/helpers/lodash/index.mjs +7 -0
- package/dist/helpers/lodash/omit.d.ts +4 -0
- package/dist/helpers/lodash/omit.mjs +35 -0
- package/dist/helpers/lodash/set.d.ts +2 -0
- package/dist/helpers/lodash/set.mjs +20 -0
- package/dist/helpers/lodash/shared.d.ts +2 -0
- package/dist/helpers/lodash/shared.mjs +37 -0
- package/dist/helpers/reducerOrigin.mjs +1 -2
- package/dist/helpers/replaceEqualDeep/index.d.ts +1 -0
- package/dist/helpers/replaceEqualDeep/index.mjs +1 -0
- package/dist/helpers/replaceEqualDeep/replaceEqualDeep.d.ts +12 -0
- package/dist/helpers/replaceEqualDeep/replaceEqualDeep.mjs +30 -0
- package/dist/helpers/resources.d.ts +21 -0
- package/dist/helpers/resources.mjs +40 -0
- package/dist/helpers/scroll.mjs +1 -2
- package/dist/helpers/security.d.ts +15 -0
- package/dist/helpers/security.mjs +8 -4
- package/dist/helpers/spaceRoot.mjs +1 -2
- package/dist/helpers/syntaxHighlight.mjs +1 -2
- package/dist/helpers/twigWrapper/Evaluator/Evaluator.mjs +75 -76
- package/dist/helpers/twigWrapper/Evaluator/helpers.mjs +1 -2
- package/dist/helpers/twigWrapper/Lexer/Lexer.mjs +1 -2
- package/dist/helpers/twigWrapper/Lexer/types.mjs +1 -2
- package/dist/helpers/twigWrapper/Parser/Cursor.mjs +1 -2
- package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +1 -2
- package/dist/helpers/twigWrapper/Parser/Parser.mjs +1 -2
- package/dist/helpers/twigWrapper/Parser/helpers.mjs +1 -2
- package/dist/helpers/twigWrapper/TemplateCache/TemplateCache.mjs +1 -2
- package/dist/helpers/twigWrapper/charClass.mjs +1 -2
- package/dist/helpers/twigWrapper/filters/arrays.mjs +1 -2
- package/dist/helpers/twigWrapper/filters/catalog/index.mjs +1 -2
- package/dist/helpers/twigWrapper/filters/dateParts.mjs +1 -2
- package/dist/helpers/twigWrapper/filters/dates.mjs +13 -14
- package/dist/helpers/twigWrapper/filters/filters.mjs +21 -22
- package/dist/helpers/twigWrapper/filters/hashing.mjs +1 -2
- package/dist/helpers/twigWrapper/filters/misc.mjs +27 -28
- package/dist/helpers/twigWrapper/filters/numbers.mjs +1 -2
- package/dist/helpers/twigWrapper/filters/objects.mjs +1 -2
- package/dist/helpers/twigWrapper/filters/raw.mjs +1 -2
- package/dist/helpers/twigWrapper/filters/strings.mjs +23 -24
- package/dist/helpers/twigWrapper/filters/types.mjs +1 -2
- package/dist/helpers/twigWrapper/filters/values.mjs +1 -2
- package/dist/helpers/twigWrapper/index.mjs +8 -8
- package/dist/helpers/twigWrapper/inspectTemplate.mjs +12 -13
- package/dist/helpers/twigWrapper/processTwig/helpers.mjs +1 -2
- package/dist/helpers/twigWrapper/processTwig/processTwig.mjs +1 -2
- package/dist/helpers/twigWrapper/processTwig/resolveStepParam.mjs +1 -2
- package/dist/helpers/twigWrapper/templateRoots.d.ts +3 -9
- package/dist/helpers/twigWrapper/templateRoots.mjs +14 -9
- package/dist/helpers/twigWrapper/tokens/hasTemplateSyntax.mjs +1 -2
- package/dist/helpers/twigWrapper/tokens/hasValidToken.mjs +1 -2
- package/dist/helpers/twigWrapper/tokens/tokenPatterns.mjs +1 -2
- package/dist/helpers/utils.mjs +2 -3
- package/dist/history/describe.mjs +1 -2
- package/dist/history/diff.mjs +1 -2
- package/dist/hooks/index.mjs +5 -5
- package/dist/hooks/useFontHead.mjs +1 -2
- package/dist/hooks/useNetwork.mjs +1 -2
- package/dist/hooks/usePlitzi.d.ts +7 -6
- package/dist/hooks/usePlitzi.mjs +1 -2
- package/dist/hooks/useStableValue.mjs +5 -6
- package/dist/navigation/index.mjs +3 -3
- package/dist/navigation/matchPath.mjs +19 -11
- package/dist/navigation/routes.mjs +57 -38
- package/dist/navigation/sitemap.mjs +9 -10
- package/dist/network/entitlements.d.ts +21 -0
- package/dist/network/entitlements.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddPluginMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpacePublishMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceRemoveElementMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceRemovePluginMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceRenameElementMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceRunE2eTestsMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceSetTestsMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementsMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSchemaMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSettingsMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceAddActionMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRemoveActionMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnBucketMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnBucketMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnBucketMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceAddComponentMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceDetachInstanceMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceRemoveComponentMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/components/SpaceUpdateComponentMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/connectors/SpaceAddConnectorMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/connectors/SpaceRemoveConnectorMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/connectors/SpaceUpdateConnectorMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceAddCredentialMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceRemoveCredentialMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceUpdateCredentialMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/data/SpaceSaveDataMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/flags/SpacePublishFlagsMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceAddPageFolderMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceRemovePageFolderMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceInstallTemplateFunctionsMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/jobs/SpaceControlJobMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceHomePageMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceRemovePageMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceUpdatePageMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceAddResourceMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceAddVariableMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceRemoveVariableMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceUpdateVariableMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/StyleUpdateMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/StyleUpdateSettingsMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleAddFontMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleRemoveFontMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/fonts/StyleUpdateFontMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleAddSelectorVariableMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleRemoveSelectorVariableMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleUpdateSelectorVariableMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleAddSelectorMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorsMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleUpdateSelectorMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleAddVariableMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleRemoveVariableMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleUpdateVariableMutation.mjs +1 -2
- package/dist/network/graphql/builder/Mutations/index.mjs +155 -156
- package/dist/network/graphql/builder/Queries/InitQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceActionEventsQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceActionTasksQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceActionsQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceChangesQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceCheckActionQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceConnectorsQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceCredentialsQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceDataQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceDeploymentsQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.d.ts +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.mjs +2 -3
- package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceJobsQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceLatestRevisionQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceQuotaQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceResourcesQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.d.ts +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.mjs +2 -3
- package/dist/network/graphql/builder/Queries/Space/SpaceTestsQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceVersionContentsQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.mjs +1 -2
- package/dist/network/graphql/builder/Queries/index.mjs +37 -38
- package/dist/network/graphql/builder/Subscriptions/SpaceEventSubscription.mjs +1 -2
- package/dist/network/graphql/builder/Subscriptions/index.mjs +1 -2
- package/dist/network/graphql/builder/fragments/cdnFields.mjs +1 -2
- package/dist/network/graphql/index.d.ts +0 -1
- package/dist/network/graphql/index.mjs +1 -3
- package/dist/network/index.d.ts +1 -5
- package/dist/network/index.mjs +7 -11
- package/dist/network/{NetworkContext.d.ts → react/NetworkContext.d.ts} +12 -11
- package/dist/network/{NetworkContext.mjs → react/NetworkContext.mjs} +1 -2
- package/dist/network/{NetworkInternalContext.d.ts → react/NetworkInternalContext.d.ts} +1 -1
- package/dist/network/react/NetworkInternalContext.mjs +4 -0
- package/dist/network/react/index.d.ts +5 -0
- package/dist/network/react/index.mjs +3 -0
- package/dist/network/spaceEvents.mjs +16 -17
- package/dist/plugins/bundle/bundle.mjs +1 -2
- package/dist/plugins/declaration.mjs +1 -2
- package/dist/plugins/react/ElementRegistryContext.d.ts +26 -0
- package/dist/plugins/react/ElementRegistryContext.mjs +17 -0
- package/dist/plugins/react/PluginAssetsContext.d.ts +11 -0
- package/dist/plugins/react/PluginAssetsContext.mjs +4 -0
- package/dist/plugins/react/PluginsContext.mjs +6 -3
- package/dist/plugins/react/index.d.ts +3 -0
- package/dist/plugins/react/index.mjs +4 -1
- package/dist/project/index.mjs +7 -7
- package/dist/project/layout/check.mjs +26 -27
- package/dist/project/layout/codes.mjs +1 -2
- package/dist/project/layout/contents.mjs +12 -13
- package/dist/project/layout/files.mjs +1 -2
- package/dist/project/layout/folders.mjs +43 -44
- package/dist/project/layout/index.mjs +3 -3
- package/dist/project/layout/plugins.mjs +56 -57
- package/dist/project/layout/vendor.mjs +14 -15
- package/dist/project/network.mjs +1 -2
- package/dist/project/pages/index.mjs +1 -2
- package/dist/project/paths/index.d.ts +8 -2
- package/dist/project/paths/index.mjs +3 -4
- package/dist/project/root.mjs +1 -2
- package/dist/queries/index.mjs +1 -2
- package/dist/queries/queryCache.mjs +1 -2
- package/dist/queries/serverQueries.mjs +1 -2
- package/dist/queries/useQuery.mjs +1 -2
- package/dist/queries/useServerQuery.mjs +1 -2
- package/dist/{helpers → react}/enclosingSpace.mjs +1 -2
- package/dist/react/generateFacade.d.ts +1 -0
- package/dist/{helpers → react}/generateFacade.mjs +4 -5
- package/dist/react/index.d.ts +8 -0
- package/dist/react/index.mjs +4 -0
- package/dist/{helpers → react}/sharedContext.mjs +0 -1
- package/dist/realtime/client.mjs +3 -4
- package/dist/realtime/index.mjs +4 -4
- package/dist/realtime/presence.mjs +1 -2
- package/dist/realtime/topics.mjs +1 -2
- package/dist/runs/index.mjs +1 -2
- package/dist/runs/report.mjs +1 -2
- package/dist/schema/anchor.mjs +1 -2
- package/dist/schema/index.mjs +18 -18
- package/dist/schema/layoutChain.mjs +1 -2
- package/dist/schema/markdownHeadings.mjs +1 -2
- package/dist/schema/motion.mjs +1 -2
- package/dist/schema/motionReveal.mjs +1 -2
- package/dist/schema/pageAccess.d.ts +9 -0
- package/dist/schema/pageAccess.mjs +42 -36
- package/dist/schema/pageElements.d.ts +3 -1
- package/dist/schema/pageElements.mjs +9 -3
- package/dist/schema/pageHead.d.ts +5 -2
- package/dist/schema/pageHead.mjs +3 -4
- package/dist/schema/providerAnswer.mjs +1 -2
- package/dist/schema/providerWhen.d.ts +1 -1
- package/dist/schema/providerWhen.mjs +6 -7
- package/dist/schema/react/SchemaContext.mjs +1 -2
- package/dist/schema/schemaConstants.mjs +1 -2
- package/dist/schema/schemaSettings.mjs +1 -2
- package/dist/schema/serverElements.d.ts +0 -24
- package/dist/schema/serverElements.mjs +60 -39
- package/dist/schema/serverInput.mjs +23 -24
- package/dist/schema/serverQuery.d.ts +15 -5
- package/dist/schema/serverQuery.mjs +47 -35
- package/dist/schema/snippet.mjs +1 -2
- package/dist/schema/wire.mjs +1 -2
- package/dist/security/index.d.ts +49 -0
- package/dist/security/index.mjs +44 -0
- package/dist/server/actions/useActionsSync.mjs +1 -2
- package/dist/server/actions/useImagesSync.mjs +1 -2
- package/dist/server/actions/useRealtimeSync.mjs +1 -2
- package/dist/server/index.mjs +7 -7
- package/dist/server/rsc/refreshRsc.mjs +23 -24
- package/dist/server/rsc/useRscRefresh.mjs +1 -2
- package/dist/server/rsc/useRscSync.mjs +1 -2
- package/dist/server/usePluginRoute.mjs +1 -2
- package/dist/source/export.d.ts +1 -1
- package/dist/source/export.mjs +1 -2
- package/dist/source/import.mjs +1 -2
- package/dist/source/index.mjs +4 -4
- package/dist/source/snapshot.mjs +1 -2
- package/dist/state/index.d.ts +0 -1
- package/dist/state/index.mjs +1 -3
- package/dist/state/paintedState.mjs +10 -11
- package/dist/store/actionRuns/actionRunsRecorder.mjs +1 -2
- package/dist/store/actionRuns/actionRunsStore.mjs +1 -2
- package/dist/store/actionRuns/index.mjs +3 -3
- package/dist/store/actionRuns/useActionRuns.mjs +5 -6
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.mjs +2 -1
- package/dist/store/renderSettings.d.ts +1 -1
- package/dist/store/renderSettings.mjs +1 -2
- package/dist/{state → store}/runtimeStatePersist.mjs +29 -30
- package/dist/store/storeHooks.d.ts +45 -45
- package/dist/store/storeHooks.mjs +1 -2
- package/dist/store/tracing/index.mjs +5 -5
- package/dist/store/tracing/preview.mjs +1 -2
- package/dist/store/tracing/tracingCollector.d.ts +2 -2
- package/dist/store/tracing/tracingCollector.mjs +79 -78
- package/dist/store/tracing/tracingMiddleware.mjs +1 -2
- package/dist/store/tracing/tracingStore.mjs +1 -2
- package/dist/store/tracing/useTracing.mjs +6 -7
- package/dist/style/breakpoints.mjs +1 -2
- package/dist/style/cssLayers.mjs +1 -2
- package/dist/style/displayModes.mjs +1 -2
- package/dist/style/fontAssets.mjs +1 -2
- package/dist/style/fontValidation.mjs +14 -15
- package/dist/style/fonts.d.ts +5 -3
- package/dist/style/fonts.mjs +23 -24
- package/dist/style/fontsFromCss.mjs +1 -2
- package/dist/style/index.mjs +18 -18
- package/dist/style/keyframes.mjs +1 -2
- package/dist/style/layoutGrid.mjs +1 -2
- package/dist/style/notifications.mjs +1 -2
- package/dist/style/react/useDisplayMode.mjs +1 -2
- package/dist/style/react/useElementSize.mjs +1 -2
- package/dist/style/runtimeStyle.d.ts +19 -21
- package/dist/style/runtimeStyle.mjs +4 -7
- package/dist/style/snippetStyle.mjs +5 -6
- package/dist/style/styleConditions.mjs +1 -2
- package/dist/style/styleConstants.mjs +1 -2
- package/dist/style/stylePseudos.mjs +1 -2
- package/dist/style/styleStates.mjs +1 -2
- package/dist/style/styleTarget.mjs +24 -25
- package/dist/theme/cookie/index.mjs +1 -1
- package/dist/theme/cookie/themeCookie.d.ts +21 -1
- package/dist/theme/cookie/themeCookie.mjs +19 -4
- package/dist/theme/index.d.ts +1 -9
- package/dist/theme/index.mjs +1 -6
- package/dist/theme/{ThemeProvider.d.ts → react/ThemeProvider.d.ts} +8 -2
- package/dist/theme/react/ThemeProvider.mjs +78 -0
- package/dist/theme/{ThemeScope.d.ts → react/ThemeScope.d.ts} +6 -2
- package/dist/theme/react/ThemeScope.mjs +9 -0
- package/dist/theme/react/index.d.ts +9 -0
- package/dist/theme/react/index.mjs +5 -0
- package/dist/theme/{themeStore.d.ts → react/themeStore.d.ts} +5 -5
- package/dist/theme/{themeStore.mjs → react/themeStore.mjs} +4 -4
- package/dist/theme/{useTheme.d.ts → react/useTheme.d.ts} +1 -1
- package/dist/theme/react/useTheme.mjs +19 -0
- package/dist/types/ActionTypes.d.ts +33 -0
- package/dist/types/AuthTypes.d.ts +6 -0
- package/dist/types/CommonTypes.d.ts +14 -3
- package/dist/types/DataSourceTypes.d.ts +1 -1
- package/dist/types/FunctionTypes.d.ts +16 -6
- package/dist/types/InteractionTypes.d.ts +1 -1
- package/dist/types/JobTypes.d.ts +56 -182
- package/dist/types/PluginTypes.d.ts +8 -1
- package/dist/types/SchemaTypes.d.ts +1 -1
- package/dist/types/SchemaTypes.mjs +1 -2
- package/dist/types/ServerAdapterTypes.d.ts +0 -326
- package/dist/types/ServerTypes.d.ts +0 -311
- package/dist/types/SpaceTypes.d.ts +5 -2
- package/dist/types/StoreTypes.d.ts +9 -3
- package/dist/types/StyleTypes.d.ts +6 -0
- package/dist/types/StyleTypes.mjs +1 -2
- package/dist/types/index.d.ts +0 -3
- package/dist/websockets/RTCodec.mjs +1 -2
- package/eslint.config.mjs +25 -0
- package/package.json +29 -18
- package/vite.config.ts +58 -0
- package/dist/helpers/generateFacade.d.ts +0 -2
- package/dist/helpers/ruleEvaluator.d.ts +0 -16
- package/dist/helpers/ruleEvaluator.mjs +0 -5
- package/dist/network/NetworkInternalContext.mjs +0 -5
- package/dist/network/graphql/sdk/Mutations/index.d.ts +0 -3
- package/dist/network/graphql/sdk/Mutations/index.mjs +0 -4
- package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +0 -16
- package/dist/network/graphql/sdk/Queries/InitQuery.mjs +0 -4
- package/dist/network/graphql/sdk/Queries/index.d.ts +0 -6
- package/dist/network/graphql/sdk/Queries/index.mjs +0 -5
- package/dist/network/graphql/sdk/index.d.ts +0 -5
- package/dist/network/graphql/sdk/index.mjs +0 -3
- package/dist/theme/ThemeProvider.mjs +0 -69
- package/dist/theme/ThemeScope.mjs +0 -10
- package/dist/theme/useTheme.mjs +0 -20
- package/dist/types/OAuthTypes.d.ts +0 -246
- package/dist/types/ServerConfigTypes.d.ts +0 -527
- package/dist/types/ServerLogTypes.d.ts +0 -119
- /package/dist/{types/OAuthTypes.mjs → conditions/types.mjs} +0 -0
- /package/dist/{types/ServerConfigTypes.mjs → functions/kv.mjs} +0 -0
- /package/dist/{types/ServerLogTypes.mjs → functions/later.mjs} +0 -0
- /package/dist/{helpers → react}/enclosingSpace.d.ts +0 -0
- /package/dist/{helpers → react}/sharedContext.d.ts +0 -0
- /package/dist/{state → store}/runtimeStatePersist.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isRecord as e } from "../helpers/isRecord.mjs";
|
|
2
|
-
|
|
2
|
+
// src/history/describe.ts
|
|
3
3
|
var t = (n, r, i = "") => e(n) && e(r) ? [.../* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(r)])].flatMap((e) => t(n[e], r[e], i ? `${i}.${e}` : e)) : JSON.stringify(n) === JSON.stringify(r) ? [] : [{
|
|
4
4
|
path: i,
|
|
5
5
|
...n === void 0 ? {} : { before: n },
|
|
@@ -92,5 +92,4 @@ var t = (n, r, i = "") => e(n) && e(r) ? [.../* @__PURE__ */ new Set([...Object.
|
|
|
92
92
|
}
|
|
93
93
|
return u.push(...e.filter(d).map(f)), p(u);
|
|
94
94
|
};
|
|
95
|
-
//#endregion
|
|
96
95
|
export { m as describeChange, t as fieldChanges, p as uniqueLines };
|
package/dist/history/diff.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/history/diff.ts
|
|
2
2
|
var e = (t, n) => {
|
|
3
3
|
if (t === n) return !0;
|
|
4
4
|
if (typeof t != "object" || typeof n != "object" || t === null || n === null || Array.isArray(t) !== Array.isArray(n)) return !1;
|
|
@@ -71,5 +71,4 @@ var e = (t, n) => {
|
|
|
71
71
|
})
|
|
72
72
|
];
|
|
73
73
|
};
|
|
74
|
-
//#endregion
|
|
75
74
|
export { s as diffSchema, d as diffStyle, t as jsonCopy, e as sameValue };
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
import
|
|
5
|
-
export {
|
|
1
|
+
import e from "./useFontHead.mjs";
|
|
2
|
+
import t from "./useNetwork.mjs";
|
|
3
|
+
import n, { PlitziContext as r, PlitziProvider as i } from "./usePlitzi.mjs";
|
|
4
|
+
import a from "./useStableValue.mjs";
|
|
5
|
+
export { r as PlitziContext, i as PlitziProvider, e as useFontHead, t as useNetwork, n as usePlitzi, a as useStableValue };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect as e } from "react";
|
|
2
|
-
|
|
2
|
+
// src/hooks/useFontHead.ts
|
|
3
3
|
var t = "data-plitzi-fonts", n = (n) => {
|
|
4
4
|
e(() => {
|
|
5
5
|
if (typeof document > "u") return;
|
|
@@ -19,5 +19,4 @@ var t = "data-plitzi-fonts", n = (n) => {
|
|
|
19
19
|
return () => r.forEach((e) => e.remove());
|
|
20
20
|
}, [n]);
|
|
21
21
|
};
|
|
22
|
-
//#endregion
|
|
23
22
|
export { n as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { authFailureFromResponse as e, reportAuthFailure as t } from "../auth/failureChannel.mjs";
|
|
2
2
|
import { useCallback as n, useState as r } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useNetwork.ts
|
|
4
4
|
var i = ({ initLoading: i = !1, server: a, webKey: o, internalUsage: s = !0, baseUrl: c }) => {
|
|
5
5
|
let [l, u] = r(i);
|
|
6
6
|
return {
|
|
@@ -42,5 +42,4 @@ var i = ({ initLoading: i = !1, server: a, webKey: o, internalUsage: s = !0, bas
|
|
|
42
42
|
])
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
//#endregion
|
|
46
45
|
export { i as default };
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { ColorScheme } from '../types';
|
|
2
1
|
import { ReactNode, RefObject } from 'react';
|
|
3
2
|
/**
|
|
4
3
|
* What the host rendering a space — the builder, the SDK, a shadow-rooted widget — tells every element: whether it is
|
|
5
|
-
* being edited or looked at,
|
|
6
|
-
*
|
|
4
|
+
* being edited or looked at, the window it paints in and the root it hangs from. Only what the host alone knows: a
|
|
5
|
+
* context of another package is imported from that package, never carried here.
|
|
6
|
+
*
|
|
7
|
+
* Only what holds for the life of the page. Every element reads this context, so a value that changes here draws every
|
|
8
|
+
* element again: it carried whether the page was still hydrating and its scheme, and the end of hydration drew a whole
|
|
9
|
+
* landing page a second time in one task. Those are read where they live — `useRenderSettings().isHydrating`,
|
|
10
|
+
* `useTheme().resolvedTheme` — by the elements that need them.
|
|
7
11
|
*/
|
|
8
12
|
export type PlitziContextValue = {
|
|
9
13
|
settings: {
|
|
10
|
-
isHydrating?: boolean;
|
|
11
14
|
previewMode?: boolean;
|
|
12
15
|
environment?: string;
|
|
13
16
|
[key: string]: unknown;
|
|
14
|
-
/** Already resolved: an element paints in one of two schemes and has no use for the word `system`. */
|
|
15
|
-
theme: ColorScheme;
|
|
16
17
|
};
|
|
17
18
|
root: {
|
|
18
19
|
baseElementId: string;
|
package/dist/hooks/usePlitzi.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sharedContext as e } from "../
|
|
1
|
+
import { sharedContext as e } from "../react/sharedContext.mjs";
|
|
2
2
|
import { use as t } from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
var r = e("PlitziContext", {}), i = () => {
|
|
@@ -12,5 +12,4 @@ var r = e("PlitziContext", {}), i = () => {
|
|
|
12
12
|
children: t
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
//#endregion
|
|
16
15
|
export { r as PlitziContext, a as PlitziProvider, i as default };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "
|
|
3
|
-
|
|
1
|
+
import { deepEqual as e } from "../helpers/deepEqual/deepEqual.mjs";
|
|
2
|
+
import { useRef as t } from "react";
|
|
3
|
+
// src/hooks/useStableValue.ts
|
|
4
4
|
var n = (n) => {
|
|
5
|
-
let r =
|
|
6
|
-
return r.current !== n && !
|
|
5
|
+
let r = t(n);
|
|
6
|
+
return r.current !== n && !e(r.current, n) && (r.current = n), r.current;
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { n as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { matchPath as e } from "./matchPath.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
2
|
+
import { SITEMAP_EXCLUSION_WORDS as t, sitemapExclusion as n, sitemapPaths as r } from "./sitemap.mjs";
|
|
3
|
+
import { NOT_FOUND_SLUG as i, getPageFullPath as a, getPaths as o, getRouteParams as s, getSlugParams as c, isAbsoluteUrl as l, isPageAuthored as u, matchRoutePath as d, navigationTarget as f, notFoundPageFor as p } from "./routes.mjs";
|
|
4
|
+
export { i as NOT_FOUND_SLUG, t as SITEMAP_EXCLUSION_WORDS, a as getPageFullPath, o as getPaths, s as getRouteParams, c as getSlugParams, l as isAbsoluteUrl, u as isPageAuthored, e as matchPath, d as matchRoutePath, f as navigationTarget, p as notFoundPageFor, n as sitemapExclusion, r as sitemapPaths };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/navigation/matchPath.ts
|
|
2
2
|
var e = (e, t, n) => {
|
|
3
3
|
let r = [], i = `^${e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
|
|
4
4
|
if (r.push({
|
|
@@ -12,16 +12,25 @@ var e = (e, t, n) => {
|
|
|
12
12
|
paramName: "*",
|
|
13
13
|
isOptional: !1
|
|
14
14
|
}), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
|
|
15
|
-
}, t =
|
|
16
|
-
let
|
|
17
|
-
|
|
15
|
+
}, t = 2e3, n = /* @__PURE__ */ new Map(), r = (r, i, a) => {
|
|
16
|
+
let o = `${i ? "c" : "i"}${a ? "e" : "p"}${r}`, s = n.get(o);
|
|
17
|
+
if (s) return s;
|
|
18
|
+
let c = e(r, i, a);
|
|
19
|
+
if (n.set(o, c), n.size > t) {
|
|
20
|
+
let [e] = n.keys();
|
|
21
|
+
n.delete(e);
|
|
22
|
+
}
|
|
23
|
+
return c;
|
|
24
|
+
}, i = (e, t) => {
|
|
25
|
+
let n = typeof e == "string" ? {
|
|
26
|
+
path: e,
|
|
18
27
|
caseSensitive: !1,
|
|
19
28
|
end: !0
|
|
20
29
|
} : {
|
|
21
|
-
path:
|
|
22
|
-
caseSensitive:
|
|
23
|
-
end:
|
|
24
|
-
}, [i, a] =
|
|
30
|
+
path: e.path,
|
|
31
|
+
caseSensitive: e.caseSensitive ?? !1,
|
|
32
|
+
end: e.end ?? !0
|
|
33
|
+
}, [i, a] = r(n.path, n.caseSensitive, n.end), o = t.match(i);
|
|
25
34
|
if (!o) return null;
|
|
26
35
|
let s = o[0], c = o.slice(1), l = s.replace(/(.)\/+$/, "$1");
|
|
27
36
|
return {
|
|
@@ -35,8 +44,7 @@ var e = (e, t, n) => {
|
|
|
35
44
|
}, {}),
|
|
36
45
|
pathname: s,
|
|
37
46
|
pathnameBase: l,
|
|
38
|
-
pattern:
|
|
47
|
+
pattern: n
|
|
39
48
|
};
|
|
40
49
|
};
|
|
41
|
-
|
|
42
|
-
export { t as matchPath };
|
|
50
|
+
export { i as matchPath };
|
|
@@ -1,64 +1,66 @@
|
|
|
1
1
|
import { matchPath as e } from "./matchPath.mjs";
|
|
2
2
|
import { pageWithheldOf as t } from "../schema/pageAccess.mjs";
|
|
3
|
-
|
|
4
|
-
var n = (e) => /^https?:\/\//i.test(e), r = "*", i = (e) => n(e) || e.includes("{{"), a = (e) => e.replaceAll(/\/+/g, "/"), o = (e) => a(e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/gi, ":$1")), s = (
|
|
3
|
+
// src/navigation/routes.ts
|
|
4
|
+
var n = (e) => /^https?:\/\//i.test(e), r = "*", i = (e) => n(e) || e.includes("{{"), a = (e) => e.replaceAll(/\/+/g, "/"), o = (e) => a(e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/gi, ":$1")), s = /* @__PURE__ */ new WeakMap(), c = (e) => {
|
|
5
|
+
let t = s.get(e);
|
|
6
|
+
if (t) return t;
|
|
7
|
+
let n = Object.fromEntries(e.map((e) => [e.id, e]));
|
|
8
|
+
return s.set(e, n), n;
|
|
9
|
+
}, l = (e, t) => {
|
|
5
10
|
if (!t || !e[t]) return "";
|
|
6
11
|
let { slug: n, parentId: r } = e[t];
|
|
7
|
-
return r ? `${
|
|
12
|
+
return r ? `${l(e, r)}/${n}` : n;
|
|
8
13
|
};
|
|
9
|
-
function
|
|
10
|
-
let i = n.replace(/^\/+/, ""), { slug:
|
|
14
|
+
function u(e, t, n, r = !1) {
|
|
15
|
+
let i = n.replace(/^\/+/, ""), { slug: s = "", folder: u, default: d } = e[i]?.attributes ?? {
|
|
11
16
|
slug: i,
|
|
12
17
|
folder: "",
|
|
13
18
|
default: !1
|
|
14
19
|
};
|
|
15
|
-
if (
|
|
20
|
+
if (d && !r) return {
|
|
16
21
|
"/": n,
|
|
17
22
|
[`/${n}`]: n
|
|
18
23
|
};
|
|
19
|
-
if (
|
|
20
|
-
if (!
|
|
21
|
-
[o(`/${
|
|
24
|
+
if (d && r) return "/";
|
|
25
|
+
if (!u && !r) return {
|
|
26
|
+
[o(`/${s}`)]: n,
|
|
22
27
|
[o(`/${n}`)]: n
|
|
23
28
|
};
|
|
24
|
-
if (!
|
|
25
|
-
if (!t.find((e) => e.id ===
|
|
26
|
-
[o(`/${
|
|
29
|
+
if (!u && r) return a(`/${s}`);
|
|
30
|
+
if (!t.find((e) => e.id === u)) return r ? a(`/${s}`) : {
|
|
31
|
+
[o(`/${s}`)]: n,
|
|
27
32
|
[o(`/${n}`)]: n
|
|
28
33
|
};
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
[
|
|
32
|
-
}), {}), l), c].filter(Boolean).join("/");
|
|
33
|
-
return r ? a(`/${d}`) : {
|
|
34
|
-
[o(`/${d}`)]: n,
|
|
34
|
+
let f = [l(c(t), u), s].filter(Boolean).join("/");
|
|
35
|
+
return r ? a(`/${f}`) : {
|
|
36
|
+
[o(`/${f}`)]: n,
|
|
35
37
|
[o(`/${n}`)]: n
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
|
-
var
|
|
40
|
+
var d = (e, t, n) => {
|
|
39
41
|
let r = n.indexOf("#");
|
|
40
|
-
if (r > 0) return `${
|
|
42
|
+
if (r > 0) return `${d(e, t, n.slice(0, r))}${n.slice(r)}`;
|
|
41
43
|
let i = e[n];
|
|
42
44
|
if (!i) return n;
|
|
43
45
|
let { slug: a, default: o } = i.attributes;
|
|
44
|
-
return typeof a == "string" ?
|
|
45
|
-
},
|
|
46
|
-
let { attributes: { accessLevel:
|
|
47
|
-
if (!
|
|
48
|
-
m &&= i(m) ? m :
|
|
49
|
-
let h =
|
|
50
|
-
pageId:
|
|
46
|
+
return typeof a == "string" ? u(e, t, n, !0) : o ? "/" : `/${n}`;
|
|
47
|
+
}, f = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated" || !t && e === "public" ? !0 : t && e === "public" ? !1 : !e, p = (e = {}, n = [], r, a = "", o = !0) => Object.keys(e).reduce((s, c) => {
|
|
48
|
+
let { attributes: { accessLevel: l, enabled: d = !0, unauthorizedBehaviour: p } } = e[c], m = e[c].attributes.unauthorizedPageRedirect;
|
|
49
|
+
if (!d && o) return s;
|
|
50
|
+
m &&= i(m) ? m : u(e, n, m, !0);
|
|
51
|
+
let h = u(e, n, c), g = e[c].attributes.slug === "*", _ = Object.keys(h).map((n) => ({
|
|
52
|
+
pageId: c,
|
|
51
53
|
path: `${a}${n}`.replaceAll("//", "/"),
|
|
52
|
-
accessLevel:
|
|
53
|
-
enabled:
|
|
54
|
-
isRaw: `/${
|
|
54
|
+
accessLevel: l,
|
|
55
|
+
enabled: d,
|
|
56
|
+
isRaw: `/${c}` === n,
|
|
55
57
|
unauthorizedBehaviour: p,
|
|
56
58
|
unauthorizedPageRedirect: m,
|
|
57
|
-
hasAccess:
|
|
59
|
+
hasAccess: f(l, r, o) && !(t(e[c].attributes) === "unauthenticated" && p === "redirect" && m),
|
|
58
60
|
...g ? { notFound: !0 } : {}
|
|
59
61
|
}));
|
|
60
62
|
return [...s, ..._];
|
|
61
|
-
}, []).sort((e, t) => !!e.notFound == !!t.notFound ? e.path === t.path ? e.accessLevel === "authenticated" ? -1 : 1 : e.path > t.path ? -1 : 1 : e.notFound ? 1 : -1),
|
|
63
|
+
}, []).sort((e, t) => !!e.notFound == !!t.notFound ? e.path === t.path ? e.accessLevel === "authenticated" ? -1 : 1 : e.path > t.path ? -1 : 1 : e.notFound ? 1 : -1), m = (t, n, r) => {
|
|
62
64
|
if (!n) return {
|
|
63
65
|
action: {
|
|
64
66
|
type: "accessDenied",
|
|
@@ -87,13 +89,31 @@ var l = (e, t, n) => {
|
|
|
87
89
|
pathMatch: void 0
|
|
88
90
|
};
|
|
89
91
|
let { pageId: s, matchResult: c, path: { hasAccess: l, unauthorizedBehaviour: u, unauthorizedPageRedirect: d, notFound: f } } = o;
|
|
90
|
-
|
|
92
|
+
if (!l && u === "redirect" && d) return {
|
|
91
93
|
action: {
|
|
92
94
|
type: "redirect",
|
|
93
95
|
path: d
|
|
94
96
|
},
|
|
95
97
|
pathMatch: void 0
|
|
96
|
-
}
|
|
98
|
+
};
|
|
99
|
+
if (!l && u === "notFound") {
|
|
100
|
+
let e = a(i.filter(({ path: e }) => e.notFound));
|
|
101
|
+
return e ? {
|
|
102
|
+
action: {
|
|
103
|
+
type: "notFound",
|
|
104
|
+
path: void 0
|
|
105
|
+
},
|
|
106
|
+
pathMatch: e.matchResult,
|
|
107
|
+
pageId: e.pageId
|
|
108
|
+
} : {
|
|
109
|
+
action: {
|
|
110
|
+
type: "notFound",
|
|
111
|
+
path: void 0
|
|
112
|
+
},
|
|
113
|
+
pathMatch: void 0
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
return l ? {
|
|
97
117
|
action: {
|
|
98
118
|
type: f ? "notFound" : "normal",
|
|
99
119
|
path: void 0
|
|
@@ -107,9 +127,8 @@ var l = (e, t, n) => {
|
|
|
107
127
|
},
|
|
108
128
|
pathMatch: void 0
|
|
109
129
|
};
|
|
110
|
-
},
|
|
130
|
+
}, h = (t, n) => t.find((t) => t.hasAccess && t.notFound && e({
|
|
111
131
|
path: t.path,
|
|
112
132
|
end: !0
|
|
113
|
-
}, n))?.pageId,
|
|
114
|
-
|
|
115
|
-
export { r as NOT_FOUND_SLUG, c as getPageFullPath, d as getPaths, m as getRouteParams, h as getSlugParams, n as isAbsoluteUrl, u as isPageAuthored, f as matchRoutePath, l as navigationTarget, p as notFoundPageFor };
|
|
133
|
+
}, n))?.pageId, g = (e) => !e || typeof e != "string" ? [] : (e.match(/:[a-zA-Z0-9-_:*]+/gim) || []).map((e) => e.replace(":", "")), _ = (e) => g(o(e));
|
|
134
|
+
export { r as NOT_FOUND_SLUG, u as getPageFullPath, p as getPaths, g as getRouteParams, _ as getSlugParams, n as isAbsoluteUrl, f as isPageAuthored, m as matchRoutePath, d as navigationTarget, h as notFoundPageFor };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { getPageFullPath as e, getSlugParams as t } from "./routes.mjs";
|
|
2
|
+
import { pageAccessOf as n } from "../schema/pageAccess.mjs";
|
|
3
|
+
// src/navigation/sitemap.ts
|
|
4
4
|
var r = {
|
|
5
5
|
signedIn: "Signed-in visitors only",
|
|
6
6
|
restricted: "Only for some roles",
|
|
@@ -8,18 +8,17 @@ var r = {
|
|
|
8
8
|
notFound: "The page of unknown addresses",
|
|
9
9
|
noindex: "Says noindex",
|
|
10
10
|
flagged: "Behind a feature flag"
|
|
11
|
-
}, i = (e) => typeof e == "string" ? e : "", a = (
|
|
12
|
-
let { attributes: r, definition: a } =
|
|
11
|
+
}, i = (e) => typeof e == "string" ? e : "", a = (e) => {
|
|
12
|
+
let { attributes: r, definition: a } = e;
|
|
13
13
|
if (r.accessLevel === "authenticated") return "signedIn";
|
|
14
|
-
if (
|
|
14
|
+
if (n(r)) return "restricted";
|
|
15
15
|
let o = i(r.slug);
|
|
16
|
-
return o === "*" || o.endsWith("/*") ? "notFound" :
|
|
16
|
+
return o === "*" || o.endsWith("/*") ? "notFound" : t(o).length > 0 || o.includes("*") ? "parameters" : r.seoEnabled === !0 && /\bnoindex\b/i.test(i(r.seoRobots)) ? "noindex" : a.flag ? "flagged" : void 0;
|
|
17
17
|
}, o = (e) => Object.fromEntries(e.pages.flatMap((t) => {
|
|
18
18
|
let n = e.flat[t];
|
|
19
19
|
return n ? [[t, n]] : [];
|
|
20
|
-
})), s = (
|
|
21
|
-
let n = o(
|
|
20
|
+
})), s = (t) => {
|
|
21
|
+
let n = o(t), r = t.pageFolders, i = Object.entries(n).filter(([, e]) => !a(e)).map(([t]) => e(n, r, t, !0));
|
|
22
22
|
return [...new Set(i)].sort((e, t) => e.localeCompare(t));
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { r as SITEMAP_EXCLUSION_WORDS, a as sitemapExclusion, s as sitemapPaths };
|
|
@@ -37,6 +37,27 @@ export type TSpaceEntitlements = {
|
|
|
37
37
|
/** The plan that plays more journeys on the server, when this one has a limit and one above plays more. */
|
|
38
38
|
moreServerRuns?: TMoreOf;
|
|
39
39
|
capabilities: Record<string, TCapability>;
|
|
40
|
+
/**
|
|
41
|
+
* What one run of the space may spend on the server that hosts it — what a project's own server does not hold it to,
|
|
42
|
+
* so the CLI can say before it goes up (`plitzi doctor`). Absent from a server that does not say.
|
|
43
|
+
*/
|
|
44
|
+
runs?: TSpaceRuns;
|
|
45
|
+
};
|
|
46
|
+
/** One run's budget on a hosting server: an action's, one invocation of the space's functions', and a section's. */
|
|
47
|
+
export type TSpaceRuns = {
|
|
48
|
+
action: {
|
|
49
|
+
timeoutMs: number;
|
|
50
|
+
maxRequests: number;
|
|
51
|
+
};
|
|
52
|
+
functions: {
|
|
53
|
+
cpuMs: number;
|
|
54
|
+
wallMs: number;
|
|
55
|
+
memoryMb: number;
|
|
56
|
+
outputBytes: number;
|
|
57
|
+
calls: number;
|
|
58
|
+
};
|
|
59
|
+
/** How long a section resolved on the server is waited for before its page is answered without it. */
|
|
60
|
+
sectionMs: number;
|
|
40
61
|
};
|
|
41
62
|
/**
|
|
42
63
|
* What a workspace's plan includes: its seats and how many are taken, its ceilings, and each capability
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/entitlements.ts
|
|
2
2
|
var e = (e, t) => e?.capabilities[t]?.included ?? !0, t = (e) => typeof e == "object" && !!e && "code" in e && e.code === "plan-required" && "upgradeUrl" in e && typeof e.upgradeUrl == "string", n = (e, t) => e === void 0 || e.permissions.includes(t), r = .8;
|
|
3
|
-
//#endregion
|
|
4
3
|
export { r as QUOTA_NEAR_RATIO, e as isIncluded, t as isPlanRefusal, n as mayDo };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceAddElementMutation(\n $environment: String!\n $element: Json!\n $to: String!\n $dropPosition: String!\n $initialItems: [Json]!\n $variables: [SpaceVariableInput]\n ) {\n SpaceAddElement(\n environment: $environment\n element: $element\n to: $to\n dropPosition: $dropPosition\n initialItems: $initialItems\n variables: $variables\n ) {\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";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceAddPluginMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceAddPluginMutation($environment: String!, $pluginType: String!, $resource: String!, $override: Boolean) {\n SpaceAddPlugin(environment: $environment, pluginType: $pluginType, resource: $resource, override: $override) {\n plugins {\n type\n resource\n settings\n }\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceAddSnippetMutation(\n $environment: String!\n $element: Json!\n $style: Json\n $dropPosition: String!\n $to: String!\n $initialItems: [Json]!\n $variables: [SpaceVariableInput]\n ) {\n SpaceAddSnippet(\n environment: $environment\n element: $element\n style: $style\n dropPosition: $dropPosition\n to: $to\n initialItems: $initialItems\n variables: $variables\n ) {\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";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceCloneElementMutation(\n $environment: String!\n $element: Json!\n $to: String!\n $dropPosition: String!\n $initialItems: [Json]!\n ) {\n SpaceCloneElement(\n environment: $environment\n element: $element\n to: $to\n dropPosition: $dropPosition\n initialItems: $initialItems\n ) {\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";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceDeployMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceDeployMutation($environment: String!, $domain: String!, $revision: Int, $credentialIdentifier: String) {\n SpaceDeploy(\n environment: $environment\n domain: $domain\n revision: $revision\n credentialIdentifier: $credentialIdentifier\n ) {\n id\n environment\n domain\n revision\n isVerified\n default\n credential {\n identifier\n }\n createdAt\n updatedAt\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceFixIssuesMutation($environment: String!) {\n SpaceFixIssues(environment: $environment) {\n applied {\n code\n elementId\n message\n }\n schema\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceMoveElementMutation(\n $environment: String!\n $elementId: String!\n $from: String!\n $to: String!\n $dropPosition: String!\n ) {\n SpaceMoveElement(\n environment: $environment\n elementId: $elementId\n from: $from\n to: $to\n dropPosition: $dropPosition\n ) {\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";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpacePublishMutation.ts
|
|
2
2
|
var e = "\n mutation SpacePublishMutation($environment: String!, $description: String!) {\n SpacePublish(environment: $environment, description: $description) {\n environment\n description\n revision\n publishedAt\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceRemoveElementMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceRemoveElementMutation($environment: String!, $elementId: String!) {\n SpaceRemoveElement(environment: $environment, elementId: $elementId) {\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";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceRemovePluginMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceRemovePluginMutation($environment: String!, $pluginType: String!) {\n SpaceRemovePlugin(environment: $environment, pluginType: $pluginType) {\n plugins {\n type\n resource\n settings\n }\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceRenameElementMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceRenameElementMutation($environment: String!, $elementId: String!, $id: String!) {\n SpaceRenameElement(environment: $environment, elementId: $elementId, id: $id)\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SPACE_SERVER_PLAYS_FIELDS as e } from "../../Queries/Space/SpaceTestsQuery.mjs";
|
|
2
|
-
|
|
2
|
+
// src/network/graphql/builder/Mutations/Space/SpaceRunE2eTestsMutation.ts
|
|
3
3
|
var t = `
|
|
4
4
|
mutation SpaceRunE2eTestsMutation($ids: [String!]) {
|
|
5
5
|
SpaceRunE2eTests(ids: $ids) {
|
|
@@ -9,5 +9,4 @@ var t = `
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
`;
|
|
12
|
-
//#endregion
|
|
13
12
|
export { t as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SPACE_TESTS_FIELDS as e } from "../../Queries/Space/SpaceTestsQuery.mjs";
|
|
2
|
-
|
|
2
|
+
// src/network/graphql/builder/Mutations/Space/SpaceSetTestsMutation.ts
|
|
3
3
|
var t = `
|
|
4
4
|
mutation SpaceSetTestsMutation($environment: String!, $tests: JsonObject!) {
|
|
5
5
|
SpaceSetTests(environment: $environment, tests: $tests) {
|
|
@@ -7,5 +7,4 @@ var t = `
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
`;
|
|
10
|
-
//#endregion
|
|
11
10
|
export { t as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceUpdateElementMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceUpdateElementMutation($environment: String!, $element: Json!) {\n SpaceUpdateElement(environment: $environment, element: $element) {\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";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceUpdateElementsMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceUpdateElementsMutation($environment: String!, $elements: [Json!]!) {\n SpaceUpdateElements(environment: $environment, elements: $elements) {\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";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceUpdateMutation($environment: String!, $schema: Json!, $styleId: String!, $style: Json!) {\n SpaceUpdateSchema(environment: $environment, schema: $schema) {\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 }\n }\n StyleUpdate(id: $styleId, environment: $environment, style: $style) {\n id\n platform\n cache\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceUpdatePluginMutation($environment: String!, $pluginType: String!, $resource: String, $settings: Json) {\n SpaceUpdatePlugin(environment: $environment, pluginType: $pluginType, resource: $resource, settings: $settings) {\n plugins {\n type\n resource\n settings\n }\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceUpdateSchemaMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceUpdateSchemaMutation($environment: String!, $schema: Json!) {\n SpaceUpdateSchema(environment: $environment, schema: $schema) {\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 }\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/SpaceUpdateSettingsMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceUpdateSettingsMutation($environment: String!, $value: Json, $path: String) {\n SpaceUpdateSettings(environment: $environment, value: $value, path: $path) {\n settings\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/actions/SpaceAddActionMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceAddActionMutation($name: String!, $document: Json!) {\n SpaceAddAction(name: $name, document: $document) {\n id\n identifier\n name\n document\n createdAt\n updatedAt\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/actions/SpaceRemoveActionMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceRemoveActionMutation($identifier: String!) {\n SpaceRemoveAction(identifier: $identifier) {\n id\n identifier\n name\n document\n createdAt\n updatedAt\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceRunActionMutation($identifier: String!, $input: Json, $trigger: String) {\n SpaceRunAction(identifier: $identifier, input: $input, trigger: $trigger) {\n runId\n status\n output\n trace\n steps\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.ts
|
|
2
2
|
var e = "\n mutation SpaceUpdateActionMutation($identifier: String!, $name: String!, $document: Json!) {\n SpaceUpdateAction(identifier: $identifier, name: $name, document: $document) {\n id\n identifier\n name\n document\n createdAt\n updatedAt\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CDN_FIELDS as e } from "../../../fragments/cdnFields.mjs";
|
|
2
|
-
|
|
2
|
+
// src/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnBucketMutation.ts
|
|
3
3
|
var t = `
|
|
4
4
|
mutation SpaceAddCdnBucketMutation(
|
|
5
5
|
$cdnIdentifier: String!
|
|
@@ -21,5 +21,4 @@ var t = `
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
`;
|
|
24
|
-
//#endregion
|
|
25
24
|
export { t as default };
|