@plitzi/sdk-shared 0.39.0 → 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 +14 -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.d.ts +1 -1
- package/dist/schema/schemaSettings.mjs +2 -3
- 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.d.ts +20 -4
- package/dist/state/paintedState.mjs +21 -21
- 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/store/runtimeStatePersist.mjs +171 -0
- 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 +8 -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/state/runtimeStatePersist.mjs +0 -119
- 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,16 +0,0 @@
|
|
|
1
|
-
import { RuleGroup, RuleValue } from '@plitzi/plitzi-ui/QueryBuilder/evaluator';
|
|
2
|
-
/**
|
|
3
|
-
* Evaluates a `when` rule group against a value bag.
|
|
4
|
-
*
|
|
5
|
-
* A rule group has to be evaluated on both sides — the browser for an interaction, the server for an action — and
|
|
6
|
-
* the only implementation lives in `plitzi-ui`. This wrapper exists for two reasons beyond naming:
|
|
7
|
-
*
|
|
8
|
-
* - the `@plitzi/plitzi-ui/QueryBuilder` BARREL pulls the React components with it, and `/QueryBuilder/helpers` the
|
|
9
|
-
* SQL and MongoDB formatters; `/QueryBuilder/evaluator` is the evaluator alone, which is all a server loads;
|
|
10
|
-
* - it keeps `plitzi-ui` out of the server's dependency list. `sdk-shared` already depends on it, so the chain is
|
|
11
|
-
* declared in exactly one place.
|
|
12
|
-
*/
|
|
13
|
-
export declare const evaluateRuleGroup: (group: RuleGroup, values: Record<string, RuleValue>) => boolean;
|
|
14
|
-
/** A value bag as a rule group reads it: what no rule can compare — a function, a symbol — left out. */
|
|
15
|
-
export declare const ruleValuesOf: (values: Record<string, unknown>) => Record<string, RuleValue>;
|
|
16
|
-
export type { Rule, RuleGroup, RuleValue } from '@plitzi/plitzi-ui/QueryBuilder/evaluator';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { QueryBuilderEvaluator as e } from "@plitzi/plitzi-ui/QueryBuilder/evaluator";
|
|
2
|
-
//#region src/helpers/ruleEvaluator.ts
|
|
3
|
-
var t = (t, n) => !!e(t, n), n = (e) => typeof e != "function" && typeof e != "symbol" && typeof e != "bigint", r = (e) => Object.fromEntries(Object.entries(e).filter((e) => n(e[1])));
|
|
4
|
-
//#endregion
|
|
5
|
-
export { t as evaluateRuleGroup, r as ruleValuesOf };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PluginRaw, SchemaRaw, Style } from '../../../../types';
|
|
2
|
-
export type TInitQuery = {
|
|
3
|
-
Space?: {
|
|
4
|
-
plugins: PluginRaw[];
|
|
5
|
-
schema: SchemaRaw;
|
|
6
|
-
style: Style;
|
|
7
|
-
/** What the server decided about this render. Server-side facts the space cannot author away. */
|
|
8
|
-
render?: {
|
|
9
|
-
overQuota: boolean;
|
|
10
|
-
quotaNear?: boolean;
|
|
11
|
-
badge?: boolean;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
declare const InitQuery = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n rsc\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n runtime\n loadStrategy\n flag {\n name\n is\n }\n anchor\n motion {\n enter\n on\n duration\n delay\n stagger\n loop\n }\n }\n attributes\n }\n pages\n components\n flags\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n quotaNear\n badge\n }\n }\n }\n";
|
|
16
|
-
export default InitQuery;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region src/network/graphql/sdk/Queries/InitQuery.ts
|
|
2
|
-
var e = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n rsc\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n runtime\n loadStrategy\n flag {\n name\n is\n }\n anchor\n motion {\n enter\n on\n duration\n delay\n stagger\n loop\n }\n }\n attributes\n }\n pages\n components\n flags\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n quotaNear\n badge\n }\n }\n }\n";
|
|
3
|
-
//#endregion
|
|
4
|
-
export { e as default };
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { isRecord as e } from "../helpers/isRecord.mjs";
|
|
2
|
-
import { pConsole as t } from "../devTools/utils/PlitziConsole.mjs";
|
|
3
|
-
import { clearPaintedEntry as n, paintedKeys as r, paintedStateCookieName as i, pickPainted as a, readPaintedEntry as o, writePaintedEntry as s } from "./paintedState.mjs";
|
|
4
|
-
import { persistMiddleware as c } from "@plitzi/nexus";
|
|
5
|
-
//#region src/state/runtimeStatePersist.ts
|
|
6
|
-
var l = /* @__PURE__ */ new Set([
|
|
7
|
-
"init",
|
|
8
|
-
"initLoading",
|
|
9
|
-
"authenticating"
|
|
10
|
-
]), u = (e) => {
|
|
11
|
-
let t = e.runtime?.sources.auth;
|
|
12
|
-
if (t) {
|
|
13
|
-
if (t.status === void 0) return { kind: "browser" };
|
|
14
|
-
if (!l.has(t.status)) return t.isAuthenticated && t.details?.id !== void 0 ? {
|
|
15
|
-
kind: "account",
|
|
16
|
-
id: String(t.details.id)
|
|
17
|
-
} : { kind: "guest" };
|
|
18
|
-
}
|
|
19
|
-
}, d = (e) => {
|
|
20
|
-
switch (e.kind) {
|
|
21
|
-
case "account": return `user:${e.id}`;
|
|
22
|
-
case "guest": return "guest";
|
|
23
|
-
case "browser": return "";
|
|
24
|
-
}
|
|
25
|
-
}, f = (e, t) => ({
|
|
26
|
-
getItem: (n) => {
|
|
27
|
-
let r = e.getItem(n);
|
|
28
|
-
if (r === null) return null;
|
|
29
|
-
try {
|
|
30
|
-
let e = JSON.parse(r);
|
|
31
|
-
if (e.owner === t && typeof e.payload == "string") return e.payload;
|
|
32
|
-
} catch {}
|
|
33
|
-
return e.removeItem(n), null;
|
|
34
|
-
},
|
|
35
|
-
setItem: (n, r) => e.setItem(n, JSON.stringify({
|
|
36
|
-
owner: t,
|
|
37
|
-
payload: r
|
|
38
|
-
})),
|
|
39
|
-
removeItem: (t) => e.removeItem(t)
|
|
40
|
-
}), p = "runtime.state", m = (e, t) => Object.fromEntries(Object.entries(e).filter(([e]) => !t.has(e))), h = (e) => e.schema?.settings, g = (e) => new Set(Array.isArray(e) ? e.filter((e) => typeof e == "string" && e !== "") : []), _ = (e) => {
|
|
41
|
-
let t = g(e?.keptState);
|
|
42
|
-
if (t.size > 0) return (e) => t.has(e);
|
|
43
|
-
let n = g(e?.transientState);
|
|
44
|
-
return (e) => !n.has(e);
|
|
45
|
-
}, v = (t, n) => e(t) ? Object.fromEntries(Object.entries(t).filter(([e]) => n(e))) : {}, y = (e) => {
|
|
46
|
-
try {
|
|
47
|
-
return e === "session" ? globalThis.sessionStorage : globalThis.localStorage;
|
|
48
|
-
} catch {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
}, b = (c, l) => {
|
|
52
|
-
let f = i(l, typeof window > "u" ? void 0 : window.location.host), p = !1, g;
|
|
53
|
-
return () => {
|
|
54
|
-
let i = c.getState();
|
|
55
|
-
if (typeof document > "u" || i.render?.isHydrating && !i.render.hydrated) return;
|
|
56
|
-
let l = h(i), _ = r(l), v = u(i);
|
|
57
|
-
if (!l?.keepState || _.size === 0 || v === void 0) return;
|
|
58
|
-
let y = d(v), b = i.runtime?.state;
|
|
59
|
-
if (!p) {
|
|
60
|
-
p = !0;
|
|
61
|
-
let t = o(f);
|
|
62
|
-
if (t && t.owner !== y && (n(f), e(b) && [..._].some((e) => e in b))) {
|
|
63
|
-
c.setState("runtime.state", m(b, _));
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
g = t?.owner === y ? JSON.stringify(a(t.values, _)) : void 0;
|
|
67
|
-
}
|
|
68
|
-
let x = a(b, _), S = JSON.stringify(x);
|
|
69
|
-
S !== g && (g = S, Object.keys(x).length === 0 ? n(f) : s(f, {
|
|
70
|
-
owner: y,
|
|
71
|
-
values: x
|
|
72
|
-
}) === "too-large" && t.warning("store", `settings.paintedState holds more than a cookie can carry — the first paint uses the space's defaults for ${[..._].join(", ")}. Declare only what the first paint shows.`, {
|
|
73
|
-
storeName: "runtime",
|
|
74
|
-
path: "runtime.state",
|
|
75
|
-
prev: void 0,
|
|
76
|
-
next: x
|
|
77
|
-
}));
|
|
78
|
-
};
|
|
79
|
-
}, x = (t) => {
|
|
80
|
-
let n = c({
|
|
81
|
-
key: `plitzi_${t}_state`,
|
|
82
|
-
paths: [p],
|
|
83
|
-
partializePath: (t, n, r) => {
|
|
84
|
-
let i = _(h(r));
|
|
85
|
-
return e(n) ? v(n, i) : n;
|
|
86
|
-
},
|
|
87
|
-
mergePath: (t, n, r, i) => {
|
|
88
|
-
let a = _(h(i));
|
|
89
|
-
return e(n) ? {
|
|
90
|
-
...v(n, a),
|
|
91
|
-
...v(r, (e) => !a(e))
|
|
92
|
-
} : n;
|
|
93
|
-
},
|
|
94
|
-
storage: (e) => {
|
|
95
|
-
let { render: t } = e;
|
|
96
|
-
if (t?.isHydrating && !t.hydrated) return !1;
|
|
97
|
-
let n = h(e), r = u(e);
|
|
98
|
-
if (!n?.keepState || r === void 0) return !1;
|
|
99
|
-
let i = y(n.stateStorage === "sessionStorage" ? "session" : "local");
|
|
100
|
-
return i ? f(i, d(r)) : !1;
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
return (i) => {
|
|
104
|
-
let a = n(i), o = i.getState().runtime?.state, s = u(i.getState()), c = b(i, t);
|
|
105
|
-
return {
|
|
106
|
-
...a,
|
|
107
|
-
onChange: (t) => {
|
|
108
|
-
let n = s, l = u(i.getState());
|
|
109
|
-
if (l !== void 0 && (s = l), n?.kind === "account" && l !== void 0 && d(l) !== d(n)) {
|
|
110
|
-
let t = e(o) ? m(o, r(h(i.getState()))) : o;
|
|
111
|
-
i.setState("runtime.state", t);
|
|
112
|
-
}
|
|
113
|
-
a?.onChange?.(t), c();
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
//#endregion
|
|
119
|
-
export { x as runtimeStatePersist, u as stateOwner };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { useCommonStoreSync as e } from "../store/storeHooks.mjs";
|
|
2
|
-
import { THEME_COOKIE_NAME as t, applyThemeClass as n, readThemeCookie as r, writeThemeCookie as i } from "./cookie/themeCookie.mjs";
|
|
3
|
-
import a, { createThemeStore as o, resolveScheme as s, setMachineScheme as c, setThemeMode as l } from "./themeStore.mjs";
|
|
4
|
-
import u, { ThemeStartContext as d, useThemeState as f } from "./ThemeScope.mjs";
|
|
5
|
-
import { use as p, useEffect as m, useId as h, useRef as g, useState as _ } from "react";
|
|
6
|
-
import { StoreContext as v, useIsomorphicLayoutEffect as y } from "@plitzi/nexus/react";
|
|
7
|
-
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
8
|
-
//#region src/theme/ThemeProvider.tsx
|
|
9
|
-
var S = "(prefers-color-scheme: dark)", C = () => window.matchMedia(S).matches ? "dark" : "light", w = ({ store: t }) => {
|
|
10
|
-
let n = f(t);
|
|
11
|
-
return e([
|
|
12
|
-
"theme.mode",
|
|
13
|
-
"theme.resolved",
|
|
14
|
-
"theme.areas"
|
|
15
|
-
], [
|
|
16
|
-
n.mode,
|
|
17
|
-
s(n.mode, n.scheme),
|
|
18
|
-
n.areas
|
|
19
|
-
]), null;
|
|
20
|
-
}, T = ({ defaultTheme: e = "system", theme: s, scope: f = "document", cookieName: T = t, children: E }) => {
|
|
21
|
-
let D = f === "container", O = h(), [k] = _(() => D ? o(`theme${O}`) : void 0), A = k ?? a, j = g({
|
|
22
|
-
mode: e,
|
|
23
|
-
remembered: !1
|
|
24
|
-
});
|
|
25
|
-
y(() => {
|
|
26
|
-
let t = D ? void 0 : r(T), n = s ?? t ?? e;
|
|
27
|
-
j.current = {
|
|
28
|
-
mode: n,
|
|
29
|
-
remembered: t !== void 0
|
|
30
|
-
}, A.batch(() => {
|
|
31
|
-
c(C(), A), l(n, A);
|
|
32
|
-
});
|
|
33
|
-
}, [
|
|
34
|
-
e,
|
|
35
|
-
s,
|
|
36
|
-
T,
|
|
37
|
-
D,
|
|
38
|
-
A
|
|
39
|
-
]);
|
|
40
|
-
let M = s ?? e, N = p(v) !== void 0;
|
|
41
|
-
m(() => {
|
|
42
|
-
let e = window.matchMedia(S), t = () => c(e.matches ? "dark" : "light", A);
|
|
43
|
-
return e.addEventListener("change", t), t(), () => e.removeEventListener("change", t);
|
|
44
|
-
}, [A]), m(() => {
|
|
45
|
-
if (D) return;
|
|
46
|
-
let e = () => {
|
|
47
|
-
let { mode: e } = A.getState();
|
|
48
|
-
(j.current.remembered || e !== j.current.mode) && (i(e, T), j.current.remembered = !0), n(e, document.documentElement);
|
|
49
|
-
};
|
|
50
|
-
return e(), A.subscribe(e);
|
|
51
|
-
}, [
|
|
52
|
-
T,
|
|
53
|
-
D,
|
|
54
|
-
A
|
|
55
|
-
]);
|
|
56
|
-
let P = N ? /* @__PURE__ */ b(w, { store: A }) : null;
|
|
57
|
-
return D ? /* @__PURE__ */ b(u, {
|
|
58
|
-
value: k,
|
|
59
|
-
children: /* @__PURE__ */ x(d, {
|
|
60
|
-
value: M,
|
|
61
|
-
children: [P, E]
|
|
62
|
-
})
|
|
63
|
-
}) : /* @__PURE__ */ x(d, {
|
|
64
|
-
value: M,
|
|
65
|
-
children: [P, E]
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
//#endregion
|
|
69
|
-
export { T as default };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { sharedContext as e } from "../helpers/sharedContext.mjs";
|
|
2
|
-
import t, { startingThemeState as n } from "./themeStore.mjs";
|
|
3
|
-
import { use as r, useMemo as i, useSyncExternalStore as a } from "react";
|
|
4
|
-
//#region src/theme/ThemeScope.ts
|
|
5
|
-
var o = e("ThemeScopeContext", void 0), s = () => r(o) ?? t, c = e("ThemeStartContext", void 0), l = (e) => {
|
|
6
|
-
let t = r(c), o = i(() => t === void 0 ? void 0 : n(t), [t]);
|
|
7
|
-
return a(e.subscribe, e.getState, () => o ?? e.getState());
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
10
|
-
export { c as ThemeStartContext, o as default, l as useThemeState, s as useThemeStore };
|
package/dist/theme/useTheme.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { resolveScheme as e, setAreaTheme as t, setThemeMode as n, themeFor as r } from "./themeStore.mjs";
|
|
2
|
-
import { useThemeState as i, useThemeStore as a } from "./ThemeScope.mjs";
|
|
3
|
-
import { useCallback as o, useMemo as s } from "react";
|
|
4
|
-
//#region src/theme/useTheme.ts
|
|
5
|
-
var c = "canvas", l = (c) => {
|
|
6
|
-
let l = a(), u = i(l), d = r(u, c), f = e(d, u.scheme), p = o((e) => c ? t(c, e, l) : n(e, l), [c, l]), m = o(() => p(f === "dark" ? "light" : "dark"), [f, p]);
|
|
7
|
-
return s(() => ({
|
|
8
|
-
theme: d,
|
|
9
|
-
resolvedTheme: f,
|
|
10
|
-
setTheme: p,
|
|
11
|
-
toggleTheme: m
|
|
12
|
-
}), [
|
|
13
|
-
d,
|
|
14
|
-
f,
|
|
15
|
-
p,
|
|
16
|
-
m
|
|
17
|
-
]);
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { c as SPACE_THEME_AREA, l as default };
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import { SSRRequest, SSRResponseHelpers } from './ServerTypes';
|
|
2
|
-
/** A key/value store with per-entry expiry, backing the OAuth layer's short-lived protocol state (registered
|
|
3
|
-
* clients, authorization codes, refresh grants). Values are opaque strings the SDK serialises itself. A
|
|
4
|
-
* multi-replica deployment MUST inject a shared implementation — a code minted on one replica is redeemed on
|
|
5
|
-
* whichever replica the token request lands on. */
|
|
6
|
-
export type OAuthStore = {
|
|
7
|
-
put: (key: string, value: string, ttlSeconds: number) => void | Promise<void>;
|
|
8
|
-
get: (key: string) => (string | undefined) | Promise<string | undefined>;
|
|
9
|
-
drop: (key: string) => void | Promise<void>;
|
|
10
|
-
};
|
|
11
|
-
/** Someone who got through {@link OAuthAdapters.authenticate}. `id` is what the other adapters key off; `label`
|
|
12
|
-
* is shown back on the consent screen so the user can see who they are about to grant access as. */
|
|
13
|
-
export type OAuthUser = {
|
|
14
|
-
id: string;
|
|
15
|
-
label: string;
|
|
16
|
-
};
|
|
17
|
-
/** One thing the user may grant the client access to — a Plitzi space, or whatever else a deployment scopes its
|
|
18
|
-
* tokens by. `value` is the opaque handle the SDK round-trips back to {@link OAuthAdapters.issueToken}; only the
|
|
19
|
-
* consumer interprets it. A deployment whose public surface is useful on its own (plitzi_render needs no space)
|
|
20
|
-
* can offer a target that grants nothing, so the user is never forced to pick one. */
|
|
21
|
-
export type OAuthGrantTarget = {
|
|
22
|
-
value: string;
|
|
23
|
-
label: string;
|
|
24
|
-
description?: string;
|
|
25
|
-
};
|
|
26
|
-
/** What the OAuth layer cannot resolve on its own: who the user is, what they may grant, and the bearer to mint
|
|
27
|
-
* for them. The SDK owns the protocol (discovery, registration, PKCE, code exchange); the consumer owns identity
|
|
28
|
-
* and issues a token its own `adapters.getGrant` will accept back. */
|
|
29
|
-
export type OAuthAdapters = {
|
|
30
|
-
/**
|
|
31
|
-
* Who the browser making this request already is, from whatever session it carries.
|
|
32
|
-
*
|
|
33
|
-
* This server has no sign-in of its own: it reads an existing session and sends anyone it cannot identify to
|
|
34
|
-
* {@link OAuthConfig.signInUrl}, which brings them back. That is what lets a deployment have ONE sign-in screen
|
|
35
|
-
* for every surface — and it is what makes SSO somebody else's problem, because whatever established the
|
|
36
|
-
* session is no longer this flow's business.
|
|
37
|
-
*
|
|
38
|
-
* It replaced a username/password form this server used to render and check itself. Two sign-ins against one
|
|
39
|
-
* account store is two places to add a provider, to rate-limit, and to get a password check subtly wrong.
|
|
40
|
-
*
|
|
41
|
-
* Return undefined for "nobody is signed in". Never throw for that — an unreadable session is the ordinary
|
|
42
|
-
* first visit.
|
|
43
|
-
*/
|
|
44
|
-
identify: (req: SSRRequest) => Promise<OAuthUser | undefined>;
|
|
45
|
-
/**
|
|
46
|
-
* What this user may grant access to. An empty list ends the flow with `access_denied`.
|
|
47
|
-
*
|
|
48
|
-
* `request.scope` is what the client asked for, so one deployment can offer different choices to different
|
|
49
|
-
* clients — a native client signing in as the person, and the same client asking which space to work in.
|
|
50
|
-
*/
|
|
51
|
-
grantTargets: (user: OAuthUser, request: {
|
|
52
|
-
scope?: string;
|
|
53
|
-
}) => Promise<OAuthGrantTarget[]>;
|
|
54
|
-
/**
|
|
55
|
-
* End whatever session {@link OAuthAdapters.identify} was reading, so the person can connect as somebody else.
|
|
56
|
-
*
|
|
57
|
-
* Optional, and its absence is what takes the offer off the grant screen: a deployment that cannot end a session
|
|
58
|
-
* from here should not show a button that pretends to. Clear the cookies on `res` and revoke at the source —
|
|
59
|
-
* forgetting the cookie alone leaves the credential working for anyone who already copied it.
|
|
60
|
-
*
|
|
61
|
-
* Whoever reaches that screen arrived from another application, so this is the only way out of the wrong account
|
|
62
|
-
* that does not mean abandoning the connection and starting over from the host.
|
|
63
|
-
*/
|
|
64
|
-
signOut?: (req: SSRRequest, res: SSRResponseHelpers) => void | Promise<void>;
|
|
65
|
-
/** Mint the bearer the client will send on every request. Return undefined to deny the grant. */
|
|
66
|
-
issueToken: (user: OAuthUser, target: OAuthGrantTarget, context: OAuthIssueContext) => Promise<{
|
|
67
|
-
token: string;
|
|
68
|
-
expiresInSeconds?: number;
|
|
69
|
-
} | undefined>;
|
|
70
|
-
/**
|
|
71
|
-
* End a credential {@link OAuthAdapters.issueToken} minted, when its grant is revoked (RFC 7009).
|
|
72
|
-
*
|
|
73
|
-
* Optional, for a credential that ends on its own. Without it, revoking a grant stops it being RENEWED, and what
|
|
74
|
-
* was already issued keeps working until it expires — which a person who just signed a device out reads as the
|
|
75
|
-
* sign-out not having happened, because the device is still there in their list.
|
|
76
|
-
*/
|
|
77
|
-
revokeToken?: (credential: string) => Promise<void>;
|
|
78
|
-
store: OAuthStore;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Who a credential is being issued to, beyond the person: which application, from where, and — on a renewal — which
|
|
82
|
-
* credential it takes the place of.
|
|
83
|
-
*
|
|
84
|
-
* This is what lets a deployment tell its user WHICH of their devices a credential lives on. The application names
|
|
85
|
-
* itself when it registers (RFC 7591 `client_name`, `software_id`); the request is the one the credential is being
|
|
86
|
-
* issued on — at consent, the person's browser, which for a loopback client is the same machine.
|
|
87
|
-
*/
|
|
88
|
-
export type OAuthIssueContext = {
|
|
89
|
-
client: {
|
|
90
|
-
clientId: string;
|
|
91
|
-
/** What the application registered as: `Plitzi CLI on dev-laptop`, `Claude`. */
|
|
92
|
-
name: string;
|
|
93
|
-
/** RFC 7591 `software_id`, when it sent one: a stable name for the SOFTWARE, the same on every machine. */
|
|
94
|
-
softwareId?: string;
|
|
95
|
-
};
|
|
96
|
-
request?: {
|
|
97
|
-
userAgent?: string;
|
|
98
|
-
ip?: string;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Where the code of THIS grant is sent: the `redirect_uri` of the authorization request, at consent. A deployment
|
|
102
|
-
* whose credential is only good at certain addresses checks it here — registering a client is open to anybody, and
|
|
103
|
-
* the address it names is the one thing that says who will receive what the person agreed to. Absent on a renewal.
|
|
104
|
-
*/
|
|
105
|
-
redirectUri?: string;
|
|
106
|
-
/**
|
|
107
|
-
* The credential this grant last issued, on a renewal. A deployment that keeps a row per credential updates that
|
|
108
|
-
* row rather than adding one, so a device renewing every hour stays one device.
|
|
109
|
-
*/
|
|
110
|
-
replaces?: string;
|
|
111
|
-
};
|
|
112
|
-
/** A connection a visitor may take WITHOUT signing in, for a server whose public surface needs no identity — the
|
|
113
|
-
* MCP App, the tool and resource listings, the guide. The consent screen offers it as a second button beside the
|
|
114
|
-
* sign-in, and the grant is whatever `target` grants: point it at a target that carries no space, never at one
|
|
115
|
-
* that does, since nobody proved who they are. */
|
|
116
|
-
export type OAuthGuestConfig = {
|
|
117
|
-
/** Handed straight to {@link OAuthAdapters.issueToken} when a visitor takes the guest connection. */
|
|
118
|
-
target: OAuthGrantTarget;
|
|
119
|
-
/** Button text. Defaults to 'Continue without an account'. */
|
|
120
|
-
label?: string;
|
|
121
|
-
/** Who the grant is issued as. Defaults to `{ id: 'guest', label: 'Guest' }`. */
|
|
122
|
-
user?: OAuthUser;
|
|
123
|
-
};
|
|
124
|
-
/** What the grant screen shows around the form. */
|
|
125
|
-
export type OAuthBranding = {
|
|
126
|
-
/** Shown as the heading, e.g. 'Plitzi'. Defaults to 'Plitzi'. */
|
|
127
|
-
productName?: string;
|
|
128
|
-
/** Absolute or same-origin URL of a logo to show above the heading. */
|
|
129
|
-
logoUrl?: string;
|
|
130
|
-
/** Extra CSS appended to the page's own, for a deployment that wants its own look without replacing the page. */
|
|
131
|
-
css?: string;
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* Everything the GRANT screen needs to render itself.
|
|
135
|
-
*
|
|
136
|
-
* One screen, and deliberately only one: this server asks what to connect, never who somebody is. Signing in
|
|
137
|
-
* happens on {@link OAuthConfig.signInUrl}, wherever the deployment keeps it.
|
|
138
|
-
*/
|
|
139
|
-
export type OAuthConsentView = {
|
|
140
|
-
/** Where the form must POST to (the authorize endpoint). */
|
|
141
|
-
action: string;
|
|
142
|
-
/** Hidden fields the form MUST round-trip verbatim, or the flow cannot be resumed. */
|
|
143
|
-
hidden: Record<string, string>;
|
|
144
|
-
/** What this account may grant. Empty for a visitor who has not signed in, who is offered `guest` instead. */
|
|
145
|
-
targets: OAuthGrantTarget[];
|
|
146
|
-
/**
|
|
147
|
-
* Offered when the deployment allows a guest connection. The form submits a `guest` field for it (any non-empty
|
|
148
|
-
* value), which is what tells the server to grant the guest target rather than a chosen one.
|
|
149
|
-
*
|
|
150
|
-
* It is the reason an unidentified visitor is shown this screen at all rather than being sent straight to
|
|
151
|
-
* sign-in: a guest has no session and never will, so a redirect they cannot come back from would take the
|
|
152
|
-
* option away entirely.
|
|
153
|
-
*/
|
|
154
|
-
guest?: {
|
|
155
|
-
label: string;
|
|
156
|
-
description?: string;
|
|
157
|
-
};
|
|
158
|
-
/** Who is signed in. Absent for a visitor taking the guest connection. */
|
|
159
|
-
user?: OAuthUser;
|
|
160
|
-
/** Where to send somebody who wants to sign in first. Shown when `user` is absent. */
|
|
161
|
-
signInUrl?: string;
|
|
162
|
-
/**
|
|
163
|
-
* Whether to offer "use another account" — shown only when the deployment can act on it, which means it supplied
|
|
164
|
-
* {@link OAuthAdapters.signOut}.
|
|
165
|
-
*
|
|
166
|
-
* A submit BUTTON in the same form rather than a link, and that is not decoration. Ending a session is a state
|
|
167
|
-
* change, so it may not hang off a URL anything can navigate to: a `<img src>` on any page on the internet would
|
|
168
|
-
* then be able to sign a visitor out. Posting it here keeps it a same-origin form submission carrying the request
|
|
169
|
-
* back, exactly like granting does.
|
|
170
|
-
*/
|
|
171
|
-
canSwitchUser?: boolean;
|
|
172
|
-
/** A message to show the user. */
|
|
173
|
-
error?: string;
|
|
174
|
-
/**
|
|
175
|
-
* Who is asking, and where the grant goes if the person says yes.
|
|
176
|
-
*
|
|
177
|
-
* Anybody can register a client, call it anything and send somebody this screen on the deployment's own domain, so
|
|
178
|
-
* the name alone proves nothing. The host the code is sent back to is the one fact the requester cannot choose
|
|
179
|
-
* freely, and it is what tells "the app I just opened" apart from a stranger's server.
|
|
180
|
-
*/
|
|
181
|
-
client: {
|
|
182
|
-
/** What the client registered itself as. Chosen by the client, so it is shown as a claim. */
|
|
183
|
-
name: string;
|
|
184
|
-
/** The host of the `redirect_uri` the grant is delivered to. */
|
|
185
|
-
redirectHost: string;
|
|
186
|
-
/** The grant goes back to an app listening on this computer (RFC 8252 loopback), not to a server. */
|
|
187
|
-
loopback: boolean;
|
|
188
|
-
};
|
|
189
|
-
branding: OAuthBranding;
|
|
190
|
-
};
|
|
191
|
-
/** OAuth 2.1 authorization for the MCP server (RFC 9728 discovery + RFC 7591 dynamic client registration +
|
|
192
|
-
* authorization code with PKCE). ENTIRELY OPTIONAL: without this config no endpoint is mounted, discovery keeps
|
|
193
|
-
* answering 404 and the server stays anonymous, which is a working setup — the public surface (handshake, tool
|
|
194
|
-
* and resource listing, the guide, plitzi_render) never needed a token. Configure it only to let a remote host
|
|
195
|
-
* that cannot send custom headers — Claude Desktop, ChatGPT — obtain a space-scoped one.
|
|
196
|
-
*
|
|
197
|
-
* Configuring it also protects the MCP endpoint: a JSON-RPC call that presents no verifiable bearer is answered
|
|
198
|
-
* with RFC 6750's 401 challenge rather than the anonymous surface, because that 401 is the only thing a host runs
|
|
199
|
-
* its flow off — it ignores a `WWW-Authenticate` header on a 200, and a server that never sends one is treated as
|
|
200
|
-
* needing no authorization at all, leaving a completed grant with nowhere to attach. Offer a grant target that
|
|
201
|
-
* carries no space ({@link OAuthGrantTarget}) so the public surface stays one consent away. */
|
|
202
|
-
export type OAuthConfig = {
|
|
203
|
-
adapters: OAuthAdapters;
|
|
204
|
-
/** The issuer/resource identifier published in the metadata documents. Defaults to the origin the request came
|
|
205
|
-
* in on, which is correct whenever the server owns its sub-domain; set it when a proxy rewrites the host. */
|
|
206
|
-
issuer?: string;
|
|
207
|
-
/** Scope names advertised and echoed back on the token. Defaults to ['plitzi']. */
|
|
208
|
-
scopes?: string[];
|
|
209
|
-
/** How long an authorization code stays redeemable, in seconds. Default 60 — codes are one-shot and redeemed
|
|
210
|
-
* immediately. */
|
|
211
|
-
codeTtlSeconds?: number;
|
|
212
|
-
/** How long a refresh grant lives, in seconds. Default 30 days. Set 0 to issue no refresh tokens. */
|
|
213
|
-
refreshTtlSeconds?: number;
|
|
214
|
-
/** Offer a connection that needs no account — see {@link OAuthGuestConfig}. Omit to require sign-in. */
|
|
215
|
-
guest?: OAuthGuestConfig;
|
|
216
|
-
branding?: OAuthBranding;
|
|
217
|
-
/**
|
|
218
|
-
* The sign-in screen this server sends unidentified visitors to.
|
|
219
|
-
*
|
|
220
|
-
* The whole authorization request rides along as a `redirect` query param, so signing in is an ordinary
|
|
221
|
-
* navigation that lands back on the `/authorize` it left — this server keeps no session of its own for a flow
|
|
222
|
-
* that is one page long.
|
|
223
|
-
*
|
|
224
|
-
* Required, because {@link OAuthAdapters.identify} is: a server that does not check passwords and has nowhere
|
|
225
|
-
* to send somebody who has not signed in cannot start the flow at all.
|
|
226
|
-
*/
|
|
227
|
-
signInUrl: string;
|
|
228
|
-
/**
|
|
229
|
-
* Hand the client the credential `issueToken` minted, instead of an opaque handle to it.
|
|
230
|
-
*
|
|
231
|
-
* Off by default, which is right whenever the credential is worth more than the connection — a space token
|
|
232
|
-
* reaches the platform, and a client that never holds one cannot leak one. Turn it ON when the credential IS
|
|
233
|
-
* what the client should hold: a native app granted the person's own session is holding exactly what a browser
|
|
234
|
-
* holds, and wrapping it costs a store read on every request and gives a second thing to revoke.
|
|
235
|
-
*/
|
|
236
|
-
directTokens?: boolean;
|
|
237
|
-
/**
|
|
238
|
-
* Accept only loopback `redirect_uri`s (`http://127.0.0.1:<port>/…`, RFC 8252 §7.3), at registration and again at
|
|
239
|
-
* `/authorize`.
|
|
240
|
-
*
|
|
241
|
-
* Turn it on when every client is a native app on the person's own machine — a CLI, a desktop app — and above all
|
|
242
|
-
* with {@link directTokens}, where the grant IS the person's session. Registration is open to anybody, so with https
|
|
243
|
-
* redirects allowed a stranger's server can register, send somebody the link, and collect what they approve.
|
|
244
|
-
*/
|
|
245
|
-
loopbackRedirectsOnly?: boolean;
|
|
246
|
-
};
|