@plitzi/sdk-shared 0.30.19
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 +1015 -0
- package/dist/_virtual/_rolldown/runtime.mjs +11 -0
- package/dist/builder/contexts/BuilderContext.d.ts +61 -0
- package/dist/builder/contexts/BuilderContext.mjs +5 -0
- package/dist/builder/contexts/index.d.ts +3 -0
- package/dist/builder/contexts/index.mjs +6 -0
- package/dist/builder/index.d.ts +3 -0
- package/dist/builder/index.mjs +3 -0
- package/dist/collections/CollectionContext.d.ts +2 -0
- package/dist/collections/CollectionContext.mjs +5 -0
- package/dist/collections/index.d.ts +3 -0
- package/dist/collections/index.mjs +2 -0
- package/dist/dataSource/DataSourceContext.d.ts +3 -0
- package/dist/dataSource/DataSourceContext.mjs +5 -0
- package/dist/dataSource/hooks/index.d.ts +3 -0
- package/dist/dataSource/hooks/index.mjs +2 -0
- package/dist/dataSource/hooks/useDataSource.d.ts +20 -0
- package/dist/dataSource/hooks/useDataSource.mjs +45 -0
- package/dist/dataSource/index.d.ts +2 -0
- package/dist/dataSource/index.mjs +2 -0
- package/dist/devTools/DevToolsContext.d.ts +11 -0
- package/dist/devTools/DevToolsContext.mjs +8 -0
- package/dist/devTools/index.d.ts +5 -0
- package/dist/devTools/index.mjs +3 -0
- package/dist/devTools/utils/PlitziConsole.d.ts +39 -0
- package/dist/devTools/utils/PlitziConsole.mjs +97 -0
- package/dist/elements/ComponentContext.d.ts +3 -0
- package/dist/elements/ComponentContext.mjs +5 -0
- package/dist/elements/ElementContext.d.ts +19 -0
- package/dist/elements/ElementContext.mjs +6 -0
- package/dist/elements/hooks/useElement.d.ts +3 -0
- package/dist/elements/hooks/useElement.mjs +10 -0
- package/dist/elements/index.d.ts +7 -0
- package/dist/elements/index.mjs +4 -0
- package/dist/helpers/fetchManifest.d.ts +2 -0
- package/dist/helpers/fetchManifest.mjs +14 -0
- package/dist/helpers/formatDate.d.ts +56 -0
- package/dist/helpers/formatDate.mjs +54 -0
- package/dist/helpers/generateFacade.d.ts +2 -0
- package/dist/helpers/generateFacade.mjs +35 -0
- package/dist/helpers/index.d.ts +12 -0
- package/dist/helpers/index.mjs +9 -0
- package/dist/helpers/security.d.ts +6 -0
- package/dist/helpers/security.mjs +10 -0
- package/dist/helpers/stripTypename.d.ts +15 -0
- package/dist/helpers/stripTypename.mjs +41 -0
- package/dist/helpers/syntaxHighlight.d.ts +2 -0
- package/dist/helpers/syntaxHighlight.mjs +7 -0
- package/dist/helpers/twigWrapper.d.ts +4 -0
- package/dist/helpers/twigWrapper.mjs +33 -0
- package/dist/helpers/utils.d.ts +18 -0
- package/dist/helpers/utils.mjs +62 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.mjs +3 -0
- package/dist/hooks/useNetwork.d.ts +12 -0
- package/dist/hooks/useNetwork.mjs +45 -0
- package/dist/hooks/usePlitziServiceContext.d.ts +42 -0
- package/dist/hooks/usePlitziServiceContext.mjs +17 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.mjs +37 -0
- package/dist/network/NetworkContext.d.ts +31 -0
- package/dist/network/NetworkContext.mjs +20 -0
- package/dist/network/NetworkInternalContext.d.ts +7 -0
- package/dist/network/NetworkInternalContext.mjs +6 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionAddMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionAddMutation.mjs +24 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionAddRecordMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionAddRecordMutation.mjs +16 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionRemoveMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionRemoveMutation.mjs +17 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionRemoveRecordMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionRemoveRecordMutation.mjs +14 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionUpdateMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionUpdateMutation.mjs +32 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionUpdateRecordMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Collection/CollectionUpdateRecordMutation.mjs +16 -0
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.mjs +59 -0
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.mjs +53 -0
- package/dist/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.d.ts +8 -0
- package/dist/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.mjs +14 -0
- package/dist/network/graphql/builder/Mutations/Segment/SegmentRemoveMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/SegmentRemoveMutation.mjs +12 -0
- package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.mjs +35 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.mjs +39 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.mjs +37 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.mjs +37 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.mjs +23 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.mjs +23 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation.mjs +34 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.mjs +18 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation.mjs +34 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.mjs +32 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.mjs +29 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.mjs +32 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation.mjs +34 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.mjs +12 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation.mjs +32 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation.mjs +26 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation.mjs +18 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation.mjs +26 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.mjs +37 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddPluginMutation.d.ts +6 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddPluginMutation.mjs +15 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.mjs +39 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.mjs +35 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.mjs +26 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.mjs +35 -0
- package/dist/network/graphql/builder/Mutations/Space/SpacePublishMutation.d.ts +8 -0
- package/dist/network/graphql/builder/Mutations/Space/SpacePublishMutation.mjs +14 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceRemoveElementMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceRemoveElementMutation.mjs +23 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceRemovePluginMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceRemovePluginMutation.mjs +15 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementMutation.mjs +23 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.mjs +34 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.d.ts +6 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.mjs +15 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSchemaMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSchemaMutation.mjs +29 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSettingsMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSettingsMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceAddCdnMutation.mjs +34 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceRemoveCdnMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceSetCdnCredentialMutation.mjs +20 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/cdns/SpaceUpdateCdnMutation.mjs +36 -0
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceAddCredentialMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceAddCredentialMutation.mjs +18 -0
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceRemoveCredentialMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceRemoveCredentialMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceUpdateCredentialMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/credentials/SpaceUpdateCredentialMutation.mjs +18 -0
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceAddPageFolderMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceAddPageFolderMutation.mjs +14 -0
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceRemovePageFolderMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceRemovePageFolderMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.mjs +14 -0
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.mjs +13 -0
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceHomePageMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceHomePageMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceRemovePageMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceRemovePageMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceUpdatePageMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/pages/SpaceUpdatePageMutation.mjs +13 -0
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceAddResourceMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceAddResourceMutation.mjs +27 -0
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceMoveResourceMutation.mjs +15 -0
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.d.ts +4 -0
- package/dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceAddVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceAddVariableMutation.mjs +32 -0
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceRemoveVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceRemoveVariableMutation.mjs +11 -0
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceUpdateVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/variables/SpaceUpdateVariableMutation.mjs +18 -0
- package/dist/network/graphql/builder/Mutations/Style/StyleUpdateMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/StyleUpdateMutation.mjs +15 -0
- package/dist/network/graphql/builder/Mutations/Style/StyleUpdateSettingsMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/StyleUpdateSettingsMutation.mjs +15 -0
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleAddSelectorVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleAddSelectorVariableMutation.mjs +29 -0
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleRemoveSelectorVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleRemoveSelectorVariableMutation.mjs +26 -0
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleUpdateSelectorVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/selectorVariables/StyleUpdateSelectorVariableMutation.mjs +29 -0
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleAddSelectorMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleAddSelectorMutation.mjs +32 -0
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorMutation.mjs +12 -0
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleUpdateSelectorMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/selectors/StyleUpdateSelectorMutation.mjs +30 -0
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleAddVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleAddVariableMutation.mjs +13 -0
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleRemoveVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleRemoveVariableMutation.mjs +12 -0
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleUpdateVariableMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Style/variables/StyleUpdateVariableMutation.mjs +13 -0
- package/dist/network/graphql/builder/Mutations/index.d.ts +178 -0
- package/dist/network/graphql/builder/Mutations/index.mjs +151 -0
- package/dist/network/graphql/builder/Queries/Collection/CollectionQuery.d.ts +6 -0
- package/dist/network/graphql/builder/Queries/Collection/CollectionQuery.mjs +35 -0
- package/dist/network/graphql/builder/Queries/Collection/CollectionRecordQuery.d.ts +6 -0
- package/dist/network/graphql/builder/Queries/Collection/CollectionRecordQuery.mjs +16 -0
- package/dist/network/graphql/builder/Queries/Collection/CollectionRecordsQuery.d.ts +9 -0
- package/dist/network/graphql/builder/Queries/Collection/CollectionRecordsQuery.mjs +27 -0
- package/dist/network/graphql/builder/Queries/Collection/CollectionsQuery.d.ts +9 -0
- package/dist/network/graphql/builder/Queries/Collection/CollectionsQuery.mjs +37 -0
- package/dist/network/graphql/builder/Queries/InitQuery.d.ts +15 -0
- package/dist/network/graphql/builder/Queries/InitQuery.mjs +130 -0
- package/dist/network/graphql/builder/Queries/PluginsQuery.d.ts +9 -0
- package/dist/network/graphql/builder/Queries/PluginsQuery.mjs +54 -0
- package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.d.ts +6 -0
- package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.mjs +47 -0
- package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.d.ts +9 -0
- package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.mjs +58 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.d.ts +9 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.mjs +32 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceCredentialsQuery.d.ts +9 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceCredentialsQuery.mjs +29 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceDeploymentsQuery.d.ts +9 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceDeploymentsQuery.mjs +30 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceLatestRevisionQuery.d.ts +11 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceLatestRevisionQuery.mjs +15 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceResourcesQuery.d.ts +8 -0
- package/dist/network/graphql/builder/Queries/Space/SpaceResourcesQuery.mjs +20 -0
- package/dist/network/graphql/builder/Queries/index.d.ts +44 -0
- package/dist/network/graphql/builder/Queries/index.mjs +31 -0
- package/dist/network/graphql/builder/Subscriptions/Collaborator/CollaboratorConnectedSubscription.d.ts +11 -0
- package/dist/network/graphql/builder/Subscriptions/Collaborator/CollaboratorConnectedSubscription.mjs +17 -0
- package/dist/network/graphql/builder/Subscriptions/Collaborator/CollaboratorDisconnectedSubscription.d.ts +11 -0
- package/dist/network/graphql/builder/Subscriptions/Collaborator/CollaboratorDisconnectedSubscription.mjs +17 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/SegmentAddTemplateSubscription.d.ts +2 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/SegmentAddTemplateSubscription.mjs +40 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentAddElementSubscription.d.ts +11 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentAddElementSubscription.mjs +39 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentCloneElementSubscription.d.ts +10 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentCloneElementSubscription.mjs +29 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentMoveElementSubscription.d.ts +10 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentMoveElementSubscription.mjs +15 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentRemoveElementSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentRemoveElementSubscription.mjs +12 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentUpdateElementSubscription.d.ts +11 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentUpdateElementSubscription.mjs +26 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceAddVariableSubscription.d.ts +7 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceAddVariableSubscription.mjs +21 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceRemoveVariableSubscription.d.ts +7 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceRemoveVariableSubscription.mjs +14 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceUpdateVariableSubscription.d.ts +7 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/space/variables/SegmentSpaceUpdateVariableSubscription.mjs +21 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableSubscription.d.ts +11 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableSubscription.mjs +16 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableSubscription.d.ts +10 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableSubscription.mjs +15 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableSubscription.d.ts +11 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableSubscription.mjs +16 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleAddSelectorSubscription.d.ts +17 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleAddSelectorSubscription.mjs +17 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleRemoveSelectorSubscription.d.ts +8 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleRemoveSelectorSubscription.mjs +13 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleUpdateSelectorSubscription.d.ts +16 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleUpdateSelectorSubscription.mjs +17 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleAddVariableSubscription.d.ts +9 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleAddVariableSubscription.mjs +14 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleRemoveVariableSubscription.d.ts +8 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleRemoveVariableSubscription.mjs +13 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleUpdateVariableSubscription.d.ts +9 -0
- package/dist/network/graphql/builder/Subscriptions/Segment/style/variables/SegmentStyleUpdateVariableSubscription.mjs +14 -0
- package/dist/network/graphql/builder/Subscriptions/Space/SpaceAddTemplateSubscription.d.ts +11 -0
- package/dist/network/graphql/builder/Subscriptions/Space/SpaceAddTemplateSubscription.mjs +39 -0
- package/dist/network/graphql/builder/Subscriptions/Space/SpaceUpdateSettingsSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Space/SpaceUpdateSettingsSubscription.mjs +12 -0
- package/dist/network/graphql/builder/Subscriptions/Space/SpaceUpdatedSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Space/SpaceUpdatedSubscription.mjs +28 -0
- package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceAddElementSubscription.d.ts +10 -0
- package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceAddElementSubscription.mjs +38 -0
- package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceCloneElementSubscription.d.ts +9 -0
- package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceCloneElementSubscription.mjs +28 -0
- package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceMoveElementSubscription.d.ts +9 -0
- package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceMoveElementSubscription.mjs +14 -0
- package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceRemoveElementSubscription.d.ts +5 -0
- package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceRemoveElementSubscription.mjs +11 -0
- package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceUpdateElementSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceUpdateElementSubscription.mjs +25 -0
- package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceAddPageFolderSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceAddPageFolderSubscription.mjs +16 -0
- package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceRemovePageFolderSubscription.d.ts +5 -0
- package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceRemovePageFolderSubscription.mjs +11 -0
- package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceUpdatePageFolderSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Space/folders/SpaceUpdatePageFolderSubscription.mjs +16 -0
- package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceAddPageSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceAddPageSubscription.mjs +25 -0
- package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceHomePageSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceHomePageSubscription.mjs +25 -0
- package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceRemovePageSubscription.d.ts +5 -0
- package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceRemovePageSubscription.mjs +11 -0
- package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceUpdatePageSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceUpdatePageSubscription.mjs +25 -0
- package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceAddVariableSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceAddVariableSubscription.mjs +20 -0
- package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceRemoveVariableSubscription.d.ts +5 -0
- package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceRemoveVariableSubscription.mjs +11 -0
- package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceUpdateVariableSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Space/variables/SpaceUpdateVariableSubscription.mjs +20 -0
- package/dist/network/graphql/builder/Subscriptions/Style/StyleUpdateSettingsSubscription.d.ts +6 -0
- package/dist/network/graphql/builder/Subscriptions/Style/StyleUpdateSettingsSubscription.mjs +12 -0
- package/dist/network/graphql/builder/Subscriptions/Style/StyleUpdatedSubscription.d.ts +4 -0
- package/dist/network/graphql/builder/Subscriptions/Style/StyleUpdatedSubscription.mjs +13 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleAddSelectorSubscription.d.ts +16 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleAddSelectorSubscription.mjs +16 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleRemoveSelectorSubscription.d.ts +7 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleRemoveSelectorSubscription.mjs +12 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleUpdateSelectorSubscription.d.ts +15 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleUpdateSelectorSubscription.mjs +16 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleAddSelectorVariableSubscription.d.ts +10 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleAddSelectorVariableSubscription.mjs +15 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleRemoveSelectorVariableSubscription.d.ts +9 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleRemoveSelectorVariableSubscription.mjs +14 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleUpdateSelectorVariableSubscription.d.ts +10 -0
- package/dist/network/graphql/builder/Subscriptions/Style/selectorVariables/StyleUpdateSelectorVariableSubscription.mjs +15 -0
- package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleAddVariableSubscription.d.ts +8 -0
- package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleAddVariableSubscription.mjs +13 -0
- package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleRemoveVariableSubscription.d.ts +7 -0
- package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleRemoveVariableSubscription.mjs +12 -0
- package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleUpdateVariableSubscription.d.ts +8 -0
- package/dist/network/graphql/builder/Subscriptions/Style/variables/StyleUpdateVariableSubscription.mjs +13 -0
- package/dist/network/graphql/builder/Subscriptions/index.d.ts +151 -0
- package/dist/network/graphql/builder/Subscriptions/index.mjs +103 -0
- package/dist/network/graphql/builder/index.d.ts +7 -0
- package/dist/network/graphql/builder/index.mjs +4 -0
- package/dist/network/graphql/index.d.ts +2 -0
- package/dist/network/graphql/index.mjs +6 -0
- package/dist/network/graphql/sdk/Mutations/Collection/CollectionAddMutation.d.ts +2 -0
- package/dist/network/graphql/sdk/Mutations/Collection/CollectionAddRecordMutation.d.ts +4 -0
- package/dist/network/graphql/sdk/Mutations/Collection/CollectionAddRecordMutation.mjs +16 -0
- package/dist/network/graphql/sdk/Mutations/Collection/CollectionRemoveMutation.d.ts +2 -0
- package/dist/network/graphql/sdk/Mutations/Collection/CollectionRemoveRecordMutation.d.ts +4 -0
- package/dist/network/graphql/sdk/Mutations/Collection/CollectionRemoveRecordMutation.mjs +14 -0
- package/dist/network/graphql/sdk/Mutations/Collection/CollectionUpdateMutation.d.ts +2 -0
- package/dist/network/graphql/sdk/Mutations/Collection/CollectionUpdateRecordMutation.d.ts +4 -0
- package/dist/network/graphql/sdk/Mutations/Collection/CollectionUpdateRecordMutation.mjs +16 -0
- package/dist/network/graphql/sdk/Mutations/index.d.ts +14 -0
- package/dist/network/graphql/sdk/Mutations/index.mjs +11 -0
- package/dist/network/graphql/sdk/Queries/Collection/CollectionQuery.d.ts +6 -0
- package/dist/network/graphql/sdk/Queries/Collection/CollectionQuery.mjs +32 -0
- package/dist/network/graphql/sdk/Queries/Collection/CollectionRecordQuery.d.ts +6 -0
- package/dist/network/graphql/sdk/Queries/Collection/CollectionRecordQuery.mjs +14 -0
- package/dist/network/graphql/sdk/Queries/Collection/CollectionRecordsQuery.d.ts +9 -0
- package/dist/network/graphql/sdk/Queries/Collection/CollectionRecordsQuery.mjs +25 -0
- package/dist/network/graphql/sdk/Queries/Collection/CollectionsQuery.d.ts +9 -0
- package/dist/network/graphql/sdk/Queries/Collection/CollectionsQuery.mjs +25 -0
- package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +14 -0
- package/dist/network/graphql/sdk/Queries/InitQuery.mjs +100 -0
- package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.d.ts +6 -0
- package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.mjs +46 -0
- package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.d.ts +9 -0
- package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.mjs +57 -0
- package/dist/network/graphql/sdk/Queries/index.d.ts +26 -0
- package/dist/network/graphql/sdk/Queries/index.mjs +19 -0
- package/dist/network/graphql/sdk/index.d.ts +5 -0
- package/dist/network/graphql/sdk/index.mjs +3 -0
- package/dist/network/index.d.ts +6 -0
- package/dist/network/index.mjs +8 -0
- package/dist/schema/SchemaContext.d.ts +3 -0
- package/dist/schema/SchemaContext.mjs +5 -0
- package/dist/schema/index.d.ts +4 -0
- package/dist/schema/index.mjs +3 -0
- package/dist/schema/schemaConstants.d.ts +9 -0
- package/dist/schema/schemaConstants.mjs +19 -0
- package/dist/segments/SegmentsContext.d.ts +2 -0
- package/dist/segments/SegmentsContext.mjs +6 -0
- package/dist/segments/index.d.ts +3 -0
- package/dist/segments/index.mjs +2 -0
- package/dist/server/hooks/useRscData.d.ts +14 -0
- package/dist/server/hooks/useRscData.mjs +16 -0
- package/dist/server/index.d.ts +7 -0
- package/dist/server/index.mjs +4 -0
- package/dist/server/rsc/RscContext.d.ts +13 -0
- package/dist/server/rsc/RscContext.mjs +5 -0
- package/dist/server/rsc/RscProvider.d.ts +13 -0
- package/dist/server/rsc/RscProvider.mjs +42 -0
- package/dist/style/index.d.ts +3 -0
- package/dist/style/index.mjs +2 -0
- package/dist/style/styleConstants.d.ts +105 -0
- package/dist/style/styleConstants.mjs +226 -0
- package/dist/theme/ThemeProvider.d.ts +12 -0
- package/dist/theme/ThemeProvider.mjs +40 -0
- package/dist/theme/index.d.ts +3 -0
- package/dist/theme/index.mjs +2 -0
- package/dist/types/AuthTypes.d.ts +32 -0
- package/dist/types/AuthTypes.mjs +0 -0
- package/dist/types/BuilderTypes.d.ts +20 -0
- package/dist/types/BuilderTypes.mjs +0 -0
- package/dist/types/CollectionTypes.d.ts +84 -0
- package/dist/types/CollectionTypes.mjs +0 -0
- package/dist/types/CommonTypes.d.ts +24 -0
- package/dist/types/CommonTypes.mjs +0 -0
- package/dist/types/ComponentTypes.d.ts +45 -0
- package/dist/types/ComponentTypes.mjs +0 -0
- package/dist/types/DataSourceTypes.d.ts +56 -0
- package/dist/types/DataSourceTypes.mjs +0 -0
- package/dist/types/DevToolsTypes.d.ts +44 -0
- package/dist/types/DevToolsTypes.mjs +0 -0
- package/dist/types/ElementTypes.d.ts +35 -0
- package/dist/types/ElementTypes.mjs +0 -0
- package/dist/types/EventBridgeTypes.d.ts +5 -0
- package/dist/types/EventBridgeTypes.mjs +0 -0
- package/dist/types/InteractionTypes.d.ts +101 -0
- package/dist/types/InteractionTypes.mjs +0 -0
- package/dist/types/McpTypes.d.ts +164 -0
- package/dist/types/McpTypes.mjs +0 -0
- package/dist/types/NavigationTypes.d.ts +13 -0
- package/dist/types/NavigationTypes.mjs +0 -0
- package/dist/types/PluginTypes.d.ts +121 -0
- package/dist/types/PluginTypes.mjs +0 -0
- package/dist/types/ResourceTypes.d.ts +40 -0
- package/dist/types/ResourceTypes.mjs +0 -0
- package/dist/types/SchemaTypes.d.ts +152 -0
- package/dist/types/SchemaTypes.mjs +0 -0
- package/dist/types/SdkTypes.d.ts +16 -0
- package/dist/types/SdkTypes.mjs +0 -0
- package/dist/types/SegmentTypes.d.ts +41 -0
- package/dist/types/SegmentTypes.mjs +0 -0
- package/dist/types/ServerTypes.d.ts +200 -0
- package/dist/types/ServerTypes.mjs +0 -0
- package/dist/types/SpaceTypes.d.ts +25 -0
- package/dist/types/SpaceTypes.mjs +0 -0
- package/dist/types/StateTypes.d.ts +7 -0
- package/dist/types/StateTypes.mjs +0 -0
- package/dist/types/StoreTypes.d.ts +22 -0
- package/dist/types/StoreTypes.mjs +0 -0
- package/dist/types/StyleTypes.d.ts +59 -0
- package/dist/types/StyleTypes.mjs +6 -0
- package/dist/types/ThemeTypes.d.ts +5 -0
- package/dist/types/ThemeTypes.mjs +0 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/index.mjs +2 -0
- package/dist/websockets/RTCodec.d.ts +134 -0
- package/dist/websockets/RTCodec.mjs +35 -0
- package/dist/websockets/index.d.ts +3 -0
- package/dist/websockets/index.mjs +2 -0
- package/eslint.config.mjs +85 -0
- package/package.json +1063 -0
- package/setupTests.ts +29 -0
- package/tailwind.config.js +29 -0
- package/vite.config.ts +163 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { InteractionCallback, InteractionCallbackParamValues, InteractionCallbackType } from './InteractionTypes';
|
|
2
|
+
import { Style } from './StyleTypes';
|
|
3
|
+
import { RuleGroup } from '@plitzi/plitzi-ui/QueryBuilder';
|
|
4
|
+
export type ElementRuntime = 'server' | 'client' | 'shared';
|
|
5
|
+
export type ElementLoadStrategy = 'eager' | 'lazy' | 'visible';
|
|
6
|
+
export type SchemaRsc = {
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
/** Wire protocol for RSC updates. 'json' is the default (data-only). 'stream' uses the RSC wire format (requires react-server condition). */
|
|
9
|
+
transport?: 'json' | 'stream';
|
|
10
|
+
/** Path for the RSC endpoint. Defaults to '/_rsc'. */
|
|
11
|
+
path?: string;
|
|
12
|
+
};
|
|
13
|
+
export type DropPosition = 'top' | 'bottom' | 'left' | 'right' | 'inside' | 'custom';
|
|
14
|
+
export type BindingCategory = 'attributes' | 'style' | 'initialState';
|
|
15
|
+
export type BindingTransformer = {
|
|
16
|
+
type: 'utility' | 'unknown';
|
|
17
|
+
action: string;
|
|
18
|
+
params: {
|
|
19
|
+
valueType: string;
|
|
20
|
+
value: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type ElementBinding = {
|
|
24
|
+
id: string;
|
|
25
|
+
source: string;
|
|
26
|
+
fromPath?: string;
|
|
27
|
+
transformers?: BindingTransformer[];
|
|
28
|
+
when?: RuleGroup;
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
toPath: string;
|
|
31
|
+
};
|
|
32
|
+
export type ElementInteraction<T extends Record<keyof InteractionCallback['params'], unknown> = Record<string, unknown>> = {
|
|
33
|
+
id: string;
|
|
34
|
+
title: string;
|
|
35
|
+
type: InteractionCallbackType;
|
|
36
|
+
action: string;
|
|
37
|
+
params: InteractionCallbackParamValues<T>;
|
|
38
|
+
preview: Record<string, unknown>;
|
|
39
|
+
elementId: Element['id'];
|
|
40
|
+
beforeNode: string;
|
|
41
|
+
afterNode: string;
|
|
42
|
+
flowId: string;
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
when?: RuleGroup;
|
|
45
|
+
};
|
|
46
|
+
export type ElementDefinition = {
|
|
47
|
+
rootId: Element['id'];
|
|
48
|
+
label: string;
|
|
49
|
+
type: string;
|
|
50
|
+
parentId?: Element['id'];
|
|
51
|
+
items?: Element['id'][];
|
|
52
|
+
styleSelectors: {
|
|
53
|
+
base: string;
|
|
54
|
+
} & Omit<Record<string, string>, 'base'>;
|
|
55
|
+
bindings?: Partial<Record<BindingCategory, ElementBinding[]>>;
|
|
56
|
+
interactions?: Record<string, ElementInteraction>;
|
|
57
|
+
initialState?: {
|
|
58
|
+
styleVariant?: Partial<Record<string, Partial<Record<string, string | string[]>>>>;
|
|
59
|
+
styleSelectors?: ElementDefinition['styleSelectors'];
|
|
60
|
+
visibility?: boolean;
|
|
61
|
+
[key: string]: unknown;
|
|
62
|
+
};
|
|
63
|
+
/** Where this element is rendered. 'server' = SSR only, 'client' = browser only, 'shared' = both (default). */
|
|
64
|
+
runtime?: ElementRuntime;
|
|
65
|
+
/** Controls when the element is loaded/rendered. */
|
|
66
|
+
loadStrategy?: ElementLoadStrategy;
|
|
67
|
+
};
|
|
68
|
+
export type Element<TAttributes extends Record<string, unknown> = Omit<{
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
}, 'subType'>> = {
|
|
71
|
+
id: string;
|
|
72
|
+
attributes: TAttributes & {
|
|
73
|
+
subType?: string;
|
|
74
|
+
};
|
|
75
|
+
definition: ElementDefinition;
|
|
76
|
+
};
|
|
77
|
+
export type SchemaVariable = {
|
|
78
|
+
name: string;
|
|
79
|
+
category: string;
|
|
80
|
+
type: 'text' | 'number' | 'email' | 'password' | 'select' | 'select2' | 'checkbox' | 'textarea' | 'color' | 'switch';
|
|
81
|
+
value: string;
|
|
82
|
+
subValues: {
|
|
83
|
+
when: RuleGroup;
|
|
84
|
+
value: string;
|
|
85
|
+
}[];
|
|
86
|
+
};
|
|
87
|
+
export type PageFolder = {
|
|
88
|
+
id: string;
|
|
89
|
+
name: string;
|
|
90
|
+
slug: string;
|
|
91
|
+
parentId?: PageFolder['id'];
|
|
92
|
+
};
|
|
93
|
+
export type Schema = {
|
|
94
|
+
flat: Record<string, Element>;
|
|
95
|
+
definition: {
|
|
96
|
+
name: string;
|
|
97
|
+
permanentUrl: string;
|
|
98
|
+
};
|
|
99
|
+
variables: SchemaVariable[];
|
|
100
|
+
settings: {
|
|
101
|
+
keepState?: boolean;
|
|
102
|
+
stateStorage?: 'localStorage' | 'sessionStorage';
|
|
103
|
+
customCss: string;
|
|
104
|
+
userProvider?: 'auth0' | 'basic' | 'custom' | '';
|
|
105
|
+
auth0Domain?: string;
|
|
106
|
+
auth0ClientId?: string;
|
|
107
|
+
tokenStorage?: 'localStorage' | 'sessionStorage' | '';
|
|
108
|
+
loginUrl?: string;
|
|
109
|
+
userUrl?: string;
|
|
110
|
+
refreshUrl?: string;
|
|
111
|
+
logoutUrl?: string;
|
|
112
|
+
detailsPath?: string;
|
|
113
|
+
tokenPath?: string;
|
|
114
|
+
expirationTimePath?: string;
|
|
115
|
+
};
|
|
116
|
+
rsc?: SchemaRsc;
|
|
117
|
+
pages: Element['id'][];
|
|
118
|
+
pageFolders: PageFolder[];
|
|
119
|
+
};
|
|
120
|
+
export type SchemaContextValue = {
|
|
121
|
+
definition?: {
|
|
122
|
+
rootId: string;
|
|
123
|
+
};
|
|
124
|
+
dispatchSchema?: unknown;
|
|
125
|
+
schemaUpdate?: (newSchema: SchemaRaw, fromSubscriptions?: boolean) => void;
|
|
126
|
+
schemaAddElement?: (to: string, data: Element, dropPosition?: DropPosition, initialItems?: Record<string, Element>, variables?: SchemaVariable[], fromSubscriptions?: boolean) => void;
|
|
127
|
+
schemaUpdateElement?: (element: Element, fromSubscriptions?: boolean) => void;
|
|
128
|
+
schemaMoveElement?: (from: string, to: string, elementId: string, dropPosition?: DropPosition, fromSubscriptions?: boolean) => void;
|
|
129
|
+
schemaCloneElement?: (elementId: string, targetId?: string, fromSubscriptions?: boolean) => void;
|
|
130
|
+
schemaRemoveElement?: (elementId: string, fromSubscriptions?: boolean) => void;
|
|
131
|
+
schemaAddPage?: (page: Element, fromSubscriptions?: boolean) => Promise<void>;
|
|
132
|
+
schemaHomePage?: (pageId: string, fromSubscriptions?: boolean) => void;
|
|
133
|
+
schemaUpdatePage?: (page: Element, fromSubscriptions?: boolean) => void;
|
|
134
|
+
schemaRemovePage?: (pageId: string, fromSubscriptions?: boolean) => void;
|
|
135
|
+
schemaAddPageFolder?: (pageFolder: PageFolder, fromSubscriptions?: boolean) => Promise<void>;
|
|
136
|
+
schemaUpdatePageFolder?: (pageFolder: PageFolder, fromSubscriptions?: boolean) => void;
|
|
137
|
+
schemaRemovePageFolder?: (pageFolderId: string, fromSubscriptions?: boolean) => void;
|
|
138
|
+
schemaAddVariable?: (variable: SchemaVariable, fromSubscriptions?: boolean) => void;
|
|
139
|
+
schemaUpdateVariable?: (variable: SchemaVariable, fromSubscriptions?: boolean) => void;
|
|
140
|
+
schemaRemoveVariable?: (name: string, fromSubscriptions?: boolean) => void;
|
|
141
|
+
schemaAddTemplate?: (to: string, data: Element, dropPosition?: DropPosition, initialItems?: Record<string, Element>, templatePlatform?: Style, variables?: SchemaVariable[], fromSubscriptions?: boolean) => void;
|
|
142
|
+
schemaUpdateSettings?: (value: string | number | boolean, path?: string, fromSubscriptions?: boolean) => void;
|
|
143
|
+
};
|
|
144
|
+
export type SchemaRaw = {
|
|
145
|
+
definition: Schema['definition'];
|
|
146
|
+
flat: Element[];
|
|
147
|
+
variables: SchemaVariable[];
|
|
148
|
+
settings: Schema['settings'];
|
|
149
|
+
rsc?: Schema['rsc'];
|
|
150
|
+
pages: Element['id'][];
|
|
151
|
+
pageFolders: PageFolder[];
|
|
152
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Collection } from './CollectionTypes';
|
|
2
|
+
import { ComponentDefinition } from './ElementTypes';
|
|
3
|
+
import { PluginRaw } from './PluginTypes';
|
|
4
|
+
import { Schema } from './SchemaTypes';
|
|
5
|
+
import { Segment } from './SegmentTypes';
|
|
6
|
+
import { Style } from './StyleTypes';
|
|
7
|
+
export type OfflineDataRaw = {
|
|
8
|
+
schema: Schema;
|
|
9
|
+
style: Style;
|
|
10
|
+
plugins?: PluginRaw[];
|
|
11
|
+
segments?: Record<string, Segment>;
|
|
12
|
+
collections?: Record<string, Collection>;
|
|
13
|
+
};
|
|
14
|
+
export type OfflineData = Omit<OfflineDataRaw, 'plugins'> & {
|
|
15
|
+
plugins: Record<string, ComponentDefinition>;
|
|
16
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PageInfo } from './CollectionTypes';
|
|
2
|
+
import { Element, Schema, SchemaRaw, SchemaVariable } from './SchemaTypes';
|
|
3
|
+
import { Style } from './StyleTypes';
|
|
4
|
+
export type Segment = {
|
|
5
|
+
id: string;
|
|
6
|
+
definition: {
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
baseElementId: Element['id'];
|
|
10
|
+
};
|
|
11
|
+
environment: 'main' | 'development' | 'staging' | 'production';
|
|
12
|
+
schema: Schema;
|
|
13
|
+
style: Style;
|
|
14
|
+
identifier: string;
|
|
15
|
+
};
|
|
16
|
+
export type BuilderSegmentsContextValue = {
|
|
17
|
+
dispatchSegments?: unknown;
|
|
18
|
+
segmentGet: (identifier: string) => Promise<Segment | undefined>;
|
|
19
|
+
segmentsFetch: (filter?: string | object, cursor?: string, limit?: number) => Promise<{
|
|
20
|
+
edges: Segment[];
|
|
21
|
+
pageInfo: PageInfo;
|
|
22
|
+
} | undefined | null>;
|
|
23
|
+
segmentsAdd: (segment: Segment) => void;
|
|
24
|
+
segmentsUpdate: (segment: Segment) => void;
|
|
25
|
+
segmentsRemove: (id: Segment['id']) => void;
|
|
26
|
+
elementAsSegment: (schema: Schema, style: Style, name: string, description: string, element: Element) => Promise<void>;
|
|
27
|
+
segmentAddMutation: (name: string, description: string, schema?: Schema, style?: Style, variables?: SchemaVariable[]) => Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
export type SegmentsContextValue<T extends 'builder' | 'sdk' = 'sdk'> = T extends 'builder' ? BuilderSegmentsContextValue : Pick<BuilderSegmentsContextValue, 'segmentGet'>;
|
|
30
|
+
export type SegmentRaw = {
|
|
31
|
+
id: string;
|
|
32
|
+
definition: {
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
baseElementId: Element['id'];
|
|
36
|
+
};
|
|
37
|
+
environment: 'main' | 'development' | 'staging' | 'production';
|
|
38
|
+
schema: SchemaRaw;
|
|
39
|
+
style: Style;
|
|
40
|
+
identifier: string;
|
|
41
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { Environment } from './CommonTypes';
|
|
2
|
+
import { McpServerConfig } from './McpTypes';
|
|
3
|
+
import { OfflineDataRaw } from './SdkTypes';
|
|
4
|
+
import { IncomingHttpHeaders } from 'node:http';
|
|
5
|
+
import { FC } from 'react';
|
|
6
|
+
export type ServerEnvironment = 'development' | 'production' | 'staging' | 'local';
|
|
7
|
+
export type SSRHeaders = IncomingHttpHeaders & {
|
|
8
|
+
':authority'?: string;
|
|
9
|
+
':method'?: string;
|
|
10
|
+
':path'?: string;
|
|
11
|
+
':scheme'?: string;
|
|
12
|
+
};
|
|
13
|
+
export type SSRRequest = {
|
|
14
|
+
method: string;
|
|
15
|
+
path: string;
|
|
16
|
+
search: string;
|
|
17
|
+
url: string;
|
|
18
|
+
hostname: string;
|
|
19
|
+
protocol: 'http' | 'https';
|
|
20
|
+
headers: SSRHeaders;
|
|
21
|
+
query: Record<string, string>;
|
|
22
|
+
ctx: SSRContext;
|
|
23
|
+
};
|
|
24
|
+
export type SSRResponseHelpers = {
|
|
25
|
+
status: number;
|
|
26
|
+
headers: Record<string, string>;
|
|
27
|
+
setHeader: (name: string, value: string) => void;
|
|
28
|
+
setStatus: (code: number) => void;
|
|
29
|
+
send: (body: string) => void;
|
|
30
|
+
write: (chunk: string | Buffer) => void;
|
|
31
|
+
end: () => void;
|
|
32
|
+
};
|
|
33
|
+
export type SSRCredential = {
|
|
34
|
+
provider: string;
|
|
35
|
+
data: unknown;
|
|
36
|
+
};
|
|
37
|
+
export type PluginAction = 'copy' | 'compile' | 'download';
|
|
38
|
+
export type PluginSourceFile<T = Record<string, unknown>> = {
|
|
39
|
+
js: string;
|
|
40
|
+
css?: string;
|
|
41
|
+
action?: PluginAction;
|
|
42
|
+
version?: string;
|
|
43
|
+
props?: T;
|
|
44
|
+
};
|
|
45
|
+
export type PluginSourceComponent<T = Record<string, unknown>> = {
|
|
46
|
+
component: unknown;
|
|
47
|
+
js?: string;
|
|
48
|
+
css?: string;
|
|
49
|
+
version?: string;
|
|
50
|
+
props?: T;
|
|
51
|
+
};
|
|
52
|
+
export type PluginSource<T = Record<string, unknown>> = PluginSourceFile<T> | PluginSourceComponent<T>;
|
|
53
|
+
export type PluginEntry = {
|
|
54
|
+
name: string;
|
|
55
|
+
/** JS-safe identifier for the import statement (hyphens/dots replaced with underscores, no @version). */
|
|
56
|
+
varName: string;
|
|
57
|
+
/** SDK lookup key used as the object property (base name without @version). */
|
|
58
|
+
keyName: string;
|
|
59
|
+
/** Browser-facing URL served by the SSR server (e.g. /sdk-plugins/name@ver/index.js). */
|
|
60
|
+
js?: string;
|
|
61
|
+
/** Absolute filesystem path used for server-side dynamic import() during SSR. */
|
|
62
|
+
filePath?: string;
|
|
63
|
+
css?: string;
|
|
64
|
+
props: Record<string, unknown>;
|
|
65
|
+
};
|
|
66
|
+
export type SSRTemplateProps = {
|
|
67
|
+
title?: string;
|
|
68
|
+
jsPath?: string;
|
|
69
|
+
cssPath?: string;
|
|
70
|
+
builderJsPath?: string;
|
|
71
|
+
builderCssPath?: string;
|
|
72
|
+
plugins?: PluginEntry[];
|
|
73
|
+
react?: string;
|
|
74
|
+
reactJsx?: string;
|
|
75
|
+
reactDom?: string;
|
|
76
|
+
reactDomClient?: string;
|
|
77
|
+
/** When true the client-side <script> block is omitted — useful for inspecting raw SSR HTML. */
|
|
78
|
+
ssrOnly?: boolean;
|
|
79
|
+
debugMode?: boolean;
|
|
80
|
+
};
|
|
81
|
+
export type SSRPlugin = {
|
|
82
|
+
component: FC;
|
|
83
|
+
props: Record<string, unknown>;
|
|
84
|
+
};
|
|
85
|
+
export type SSRUser = {
|
|
86
|
+
token: string;
|
|
87
|
+
id: number;
|
|
88
|
+
username: string;
|
|
89
|
+
email: string;
|
|
90
|
+
verified: boolean;
|
|
91
|
+
permissions: string[];
|
|
92
|
+
roles: string[];
|
|
93
|
+
};
|
|
94
|
+
export type SSRSpaceDeployment = {
|
|
95
|
+
environment?: Environment;
|
|
96
|
+
credential?: SSRCredential;
|
|
97
|
+
spaceId?: number | null;
|
|
98
|
+
revision?: number;
|
|
99
|
+
templateProps?: SSRTemplateProps;
|
|
100
|
+
pluginNames?: string[];
|
|
101
|
+
pluginSources?: Record<string, PluginSource>;
|
|
102
|
+
error?: {
|
|
103
|
+
code: number;
|
|
104
|
+
message: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export type SSRTemplateFn = (params: SSRTemplateProps & {
|
|
108
|
+
html: string;
|
|
109
|
+
offlineData: string;
|
|
110
|
+
}) => string;
|
|
111
|
+
export type SSRRscData = {
|
|
112
|
+
/** Per-element server data keyed by schema element ID. Each element reads its own slice via its id prop. */
|
|
113
|
+
serverData?: Record<string, unknown>;
|
|
114
|
+
};
|
|
115
|
+
export type SSRAdapters = {
|
|
116
|
+
getOfflineData: (spaceId: number, environment: string, revision?: number) => Promise<OfflineDataRaw | undefined>;
|
|
117
|
+
getSpaceDeployment: (req: SSRRequest) => Promise<SSRSpaceDeployment>;
|
|
118
|
+
getUser?: (req: SSRRequest) => Promise<SSRUser | undefined>;
|
|
119
|
+
onLogin?: (req: SSRRequest) => Promise<boolean>;
|
|
120
|
+
onLogout?: (req: SSRRequest) => Promise<void>;
|
|
121
|
+
/** Called by the RSC endpoint to fetch server-side data for server components.
|
|
122
|
+
* When `ids` is provided the adapter should return data only for those element IDs.
|
|
123
|
+
* Omitting `ids` (initial SSR fetch or full refresh) must return data for all elements. */
|
|
124
|
+
getRscData?: (req: SSRRequest, spaceId: number, environment: Environment, revision: number, user: SSRUser | undefined, ids?: string[]) => Promise<SSRRscData>;
|
|
125
|
+
};
|
|
126
|
+
export type SSRRscConfig = {
|
|
127
|
+
/** Whether the RSC endpoint is active. Defaults to true when adapters.getRscData is provided. */
|
|
128
|
+
enabled?: boolean;
|
|
129
|
+
/** URL path for the RSC endpoint. Defaults to '/_rsc'. */
|
|
130
|
+
path?: string;
|
|
131
|
+
/** Server-side cache TTL for RSC responses in milliseconds. Defaults to 30 000. Set to 0 to disable. */
|
|
132
|
+
cacheTtlMs?: number;
|
|
133
|
+
};
|
|
134
|
+
export type SSRServerConfig = {
|
|
135
|
+
port?: number;
|
|
136
|
+
host?: string;
|
|
137
|
+
httpVersion?: 1 | 2 | 3;
|
|
138
|
+
tls?: {
|
|
139
|
+
key: Buffer | string;
|
|
140
|
+
cert: Buffer | string;
|
|
141
|
+
minVersion?: 'TLSv1' | 'TLSv1.1' | 'TLSv1.2' | 'TLSv1.3';
|
|
142
|
+
};
|
|
143
|
+
environment?: ServerEnvironment;
|
|
144
|
+
publicDir?: string;
|
|
145
|
+
static?: Record<string, string>;
|
|
146
|
+
devMode?: boolean;
|
|
147
|
+
cacheTtlMs?: number;
|
|
148
|
+
loginPath?: string | false;
|
|
149
|
+
middlewares?: SSRMiddleware[];
|
|
150
|
+
logoutPath?: string | false;
|
|
151
|
+
templateFn?: SSRTemplateFn;
|
|
152
|
+
plugins?: Record<string, PluginSource>;
|
|
153
|
+
pluginsCacheDir?: string;
|
|
154
|
+
pluginsTtlMs?: number;
|
|
155
|
+
/** Auto-download and cache plugins declared in the schema's offlineData.plugins list. Default: true. */
|
|
156
|
+
autoLoadSchemaPlugins?: boolean;
|
|
157
|
+
/** Omit client-side JS from the rendered page — useful for verifying SSR HTML without hydration. Default: false. */
|
|
158
|
+
ssrOnly?: boolean;
|
|
159
|
+
/** Stream HTML to the client as React renders, reducing TTFB. Default: false. */
|
|
160
|
+
streaming?: boolean;
|
|
161
|
+
/** Controls iframe embedding via CSP frame-ancestors (and X-Frame-Options for legacy browsers).
|
|
162
|
+
* 'DENY' — no site may embed this server (default).
|
|
163
|
+
* 'SAMEORIGIN' — only the same origin may embed it.
|
|
164
|
+
* string[] — explicit list of allowed origins, e.g. ['https://app.example.com', 'https://preview.example.com'].
|
|
165
|
+
* false — no restriction; headers are omitted. */
|
|
166
|
+
frameOptions?: 'DENY' | 'SAMEORIGIN' | string[] | false;
|
|
167
|
+
/** RSC (React Server Components) endpoint configuration. */
|
|
168
|
+
rsc?: SSRRscConfig;
|
|
169
|
+
/** MCP (Model Context Protocol) server configuration — exposes schema tools to Claude. */
|
|
170
|
+
mcp?: McpServerConfig;
|
|
171
|
+
adapters: SSRAdapters;
|
|
172
|
+
/** Cache-buster appended as ?v=<assetVersion> to all default SDK asset URLs (jsPath, cssPath, react vendor). Compute from file mtime or package version at startup. */
|
|
173
|
+
assetVersion?: string;
|
|
174
|
+
};
|
|
175
|
+
export type PluginRegistry = {
|
|
176
|
+
register: (name: string, source: PluginSource) => void;
|
|
177
|
+
invalidate: (name?: string, version?: string) => Promise<void>;
|
|
178
|
+
};
|
|
179
|
+
export type CacheFilter = {
|
|
180
|
+
spaceId?: number;
|
|
181
|
+
environment?: string;
|
|
182
|
+
hostname?: string;
|
|
183
|
+
};
|
|
184
|
+
export type CacheManager = {
|
|
185
|
+
invalidate: (filter?: CacheFilter) => number;
|
|
186
|
+
clear: () => void;
|
|
187
|
+
readonly size: number;
|
|
188
|
+
};
|
|
189
|
+
export type SSRMiddlewareNext = () => Promise<void> | void;
|
|
190
|
+
export type SSRMiddleware = (req: SSRRequest, res: SSRResponseHelpers, next: SSRMiddlewareNext) => Promise<void> | void;
|
|
191
|
+
export type SSRContext = {
|
|
192
|
+
spaceDeployment?: SSRSpaceDeployment;
|
|
193
|
+
user?: SSRUser;
|
|
194
|
+
};
|
|
195
|
+
export type SSRServer = {
|
|
196
|
+
listen: (port: number, host?: string) => void;
|
|
197
|
+
close: () => Promise<void>;
|
|
198
|
+
readonly cache: CacheManager | null;
|
|
199
|
+
readonly plugins: PluginRegistry;
|
|
200
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Environment } from './CommonTypes';
|
|
2
|
+
export type SpaceCredentialProvider = 's3' | 'r2' | 'ssr';
|
|
3
|
+
export type SpaceCredential = {
|
|
4
|
+
identifier: string;
|
|
5
|
+
name: string;
|
|
6
|
+
provider: SpaceCredentialProvider;
|
|
7
|
+
inUse: boolean;
|
|
8
|
+
usedIn: {
|
|
9
|
+
usedFrom: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}[];
|
|
12
|
+
createdAt: number;
|
|
13
|
+
updatedAt: number;
|
|
14
|
+
};
|
|
15
|
+
export type SpaceDeployment = {
|
|
16
|
+
id: number;
|
|
17
|
+
environment: Environment;
|
|
18
|
+
revision: number | null;
|
|
19
|
+
domain: string;
|
|
20
|
+
isVerified: boolean;
|
|
21
|
+
default: boolean;
|
|
22
|
+
credential: SpaceCredential | null;
|
|
23
|
+
createdAt: number;
|
|
24
|
+
updatedAt: number;
|
|
25
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
export type StateManagerContextValue = {
|
|
3
|
+
state: Record<string, unknown>;
|
|
4
|
+
setState: Dispatch<SetStateAction<Record<string, unknown>>>;
|
|
5
|
+
setStateByKey: (key: string, value: unknown, storeMode?: string) => void;
|
|
6
|
+
clearCache: (storeMode?: string) => void;
|
|
7
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Schema, Element } from './SchemaTypes';
|
|
2
|
+
import { Segment } from './SegmentTypes';
|
|
3
|
+
import { DisplayMode, Style, StyleState } from './StyleTypes';
|
|
4
|
+
export type CommonState = {
|
|
5
|
+
prevSchema?: Schema;
|
|
6
|
+
schema: Schema;
|
|
7
|
+
pageDefinitions: Record<string, Element>;
|
|
8
|
+
style: Style;
|
|
9
|
+
segments: Record<string, Segment>;
|
|
10
|
+
};
|
|
11
|
+
export type BuilderState = CommonState & {
|
|
12
|
+
displayMode: DisplayMode;
|
|
13
|
+
selector?: string;
|
|
14
|
+
styleSelector?: string;
|
|
15
|
+
styleVariant?: string;
|
|
16
|
+
styleState?: StyleState;
|
|
17
|
+
elementHovered?: string;
|
|
18
|
+
elementSelected?: string;
|
|
19
|
+
setHovered: (elementId?: string) => void;
|
|
20
|
+
setSelected: (elementId?: string, iframeDOM?: HTMLIFrameElement | null, force?: boolean) => void;
|
|
21
|
+
};
|
|
22
|
+
export type SdkState = CommonState & {};
|
|
File without changes
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { default as styleConstants } from '../style/styleConstants';
|
|
2
|
+
export type TagType = 'class' | 'element' | 'id';
|
|
3
|
+
export type DisplayMode = 'desktop' | 'tablet' | 'mobile';
|
|
4
|
+
export type StyleMode = 'mobile-first' | 'desktop-first';
|
|
5
|
+
export type StyleState = 'hover' | 'active' | 'focus' | 'disabled' | 'checked' | 'visited';
|
|
6
|
+
export type StyleValue = number | string;
|
|
7
|
+
export type StyleThemeMode = 'system' | 'light' | 'dark';
|
|
8
|
+
export type StyleCategory = (typeof styleConstants)[keyof typeof styleConstants];
|
|
9
|
+
export declare enum StyleVariableCategory {
|
|
10
|
+
COLOR = "color",
|
|
11
|
+
SPACING = "spacing",
|
|
12
|
+
SHADOW = "shadow",
|
|
13
|
+
CUSTOM = "custom"
|
|
14
|
+
}
|
|
15
|
+
export type StyleThemeValue = Partial<Record<Exclude<StyleThemeMode, 'system'> | 'default', string>>;
|
|
16
|
+
export type StyleVariableValue = string | number | StyleThemeValue;
|
|
17
|
+
export type StyleVariableGroup = Record<string, StyleVariableValue>;
|
|
18
|
+
export type StyleVariables = Record<StyleVariableCategory, StyleVariableGroup>;
|
|
19
|
+
export type StyleObject = Partial<Record<StyleCategory, StyleValue>>;
|
|
20
|
+
export type StyleStates = Partial<Record<StyleState, StyleObject>>;
|
|
21
|
+
export type StyleVariants = Record<string, Omit<StyleBlock, 'variants'>>;
|
|
22
|
+
export type StyleBlock = {
|
|
23
|
+
default?: StyleObject;
|
|
24
|
+
states?: StyleStates;
|
|
25
|
+
variants?: StyleVariants;
|
|
26
|
+
};
|
|
27
|
+
export type StyleAttributes = Record<string, StyleBlock>;
|
|
28
|
+
export type StyleItem = {
|
|
29
|
+
name: string;
|
|
30
|
+
type: TagType;
|
|
31
|
+
variables?: Partial<StyleVariables>;
|
|
32
|
+
attributes: StyleAttributes;
|
|
33
|
+
cache: string;
|
|
34
|
+
componentType?: string;
|
|
35
|
+
};
|
|
36
|
+
export type Style = {
|
|
37
|
+
platform: Record<DisplayMode, Record<string, StyleItem>>;
|
|
38
|
+
mode?: StyleMode;
|
|
39
|
+
theme: {
|
|
40
|
+
default: StyleThemeMode;
|
|
41
|
+
schemes: StyleThemeMode[];
|
|
42
|
+
};
|
|
43
|
+
variables: Partial<StyleVariables>;
|
|
44
|
+
cache: string;
|
|
45
|
+
};
|
|
46
|
+
export type StyleContextValue = {
|
|
47
|
+
styleUpdate?: unknown;
|
|
48
|
+
styleAddSelector?: unknown;
|
|
49
|
+
styleUpdateSelector?: unknown;
|
|
50
|
+
styleRemoveSelector?: unknown;
|
|
51
|
+
styleAddSelectorVariable?: unknown;
|
|
52
|
+
styleUpdateSelectorVariable?: unknown;
|
|
53
|
+
styleRemoveSelectorVariable?: unknown;
|
|
54
|
+
styleAddVariable?: unknown;
|
|
55
|
+
styleUpdateVariable?: unknown;
|
|
56
|
+
styleRemoveVariable?: unknown;
|
|
57
|
+
styleAddTemplate?: unknown;
|
|
58
|
+
styleUpdateSettings?: unknown;
|
|
59
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './SchemaTypes';
|
|
2
|
+
export * from './StyleTypes';
|
|
3
|
+
export * from './InteractionTypes';
|
|
4
|
+
export * from './PluginTypes';
|
|
5
|
+
export * from './ElementTypes';
|
|
6
|
+
export * from './DataSourceTypes';
|
|
7
|
+
export * from './EventBridgeTypes';
|
|
8
|
+
export * from './SegmentTypes';
|
|
9
|
+
export * from './BuilderTypes';
|
|
10
|
+
export * from './NavigationTypes';
|
|
11
|
+
export * from './CollectionTypes';
|
|
12
|
+
export * from './ComponentTypes';
|
|
13
|
+
export * from './StateTypes';
|
|
14
|
+
export * from './CommonTypes';
|
|
15
|
+
export * from './AuthTypes';
|
|
16
|
+
export * from './ResourceTypes';
|
|
17
|
+
export * from './SdkTypes';
|
|
18
|
+
export * from './SpaceTypes';
|
|
19
|
+
export * from './DevToolsTypes';
|
|
20
|
+
export * from './StoreTypes';
|
|
21
|
+
export * from './ThemeTypes';
|
|
22
|
+
export * from './McpTypes';
|
|
23
|
+
export * from './ServerTypes';
|