@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,105 @@
|
|
|
1
|
+
import { Style, StyleCategory, StyleValue } from '../types';
|
|
2
|
+
export declare const EMPTY_STYLE_SCHEMA: Style;
|
|
3
|
+
declare const styleConstants: {
|
|
4
|
+
readonly DISPLAY: "display";
|
|
5
|
+
readonly FLEX_WRAP: "flex-wrap";
|
|
6
|
+
readonly FLEX_DIRECTION: "flex-direction";
|
|
7
|
+
readonly ALIGN_ITEMS: "align-items";
|
|
8
|
+
readonly JUSTIFY_CONTENT: "justify-content";
|
|
9
|
+
readonly ALIGN_CONTENT: "align-content";
|
|
10
|
+
readonly ROW_GAP: "row-gap";
|
|
11
|
+
readonly COLUMN_GAP: "column-gap";
|
|
12
|
+
readonly GRID_ROW_GAP: "grid-row-gap";
|
|
13
|
+
readonly GRID_COLUMN_GAP: "grid-column-gap";
|
|
14
|
+
readonly GRID_TEMPLATE_AREAS: "grid-template-areas";
|
|
15
|
+
readonly GRID_TEMPLATE_COLUMNS: "grid-template-columns";
|
|
16
|
+
readonly GRID_TEMPLATE_ROWS: "grid-template-rows";
|
|
17
|
+
readonly GRID_AUTO_FLOW: "grid-auto-flow";
|
|
18
|
+
readonly GRID_AUTO_ROWS: "grid-auto-rows";
|
|
19
|
+
readonly GRID_AUTO_COLUMNS: "grid-auto-columns";
|
|
20
|
+
readonly ALIGN_SELF: "align-self";
|
|
21
|
+
readonly ORDER: "order";
|
|
22
|
+
readonly FLEX_GROW: "flex-grow";
|
|
23
|
+
readonly FLEX_SHRINK: "flex-shrink";
|
|
24
|
+
readonly FLEX_BASIS: "flex-basis";
|
|
25
|
+
readonly LIST_STYLE: "list-style";
|
|
26
|
+
readonly LIST_STYLE_TYPE: "list-style-type";
|
|
27
|
+
readonly BACKGROUND_COLOR: "background-color";
|
|
28
|
+
readonly BACKGROUND_IMAGE: "background-image";
|
|
29
|
+
readonly BACKGROUND_POSITION: "background-position";
|
|
30
|
+
readonly BACKGROUND_SIZE: "background-size";
|
|
31
|
+
readonly BACKGROUND_REPEAT: "background-repeat";
|
|
32
|
+
readonly BACKGROUND_CLIP: "background-clip";
|
|
33
|
+
readonly BACKGROUND_ATTACHMENT: "background-attachment";
|
|
34
|
+
readonly MASK_IMAGE: "mask-image";
|
|
35
|
+
readonly BORDER_TOP_STYLE: "border-top-style";
|
|
36
|
+
readonly BORDER_TOP_WIDTH: "border-top-width";
|
|
37
|
+
readonly BORDER_TOP_COLOR: "border-top-color";
|
|
38
|
+
readonly BORDER_BOTTOM_STYLE: "border-bottom-style";
|
|
39
|
+
readonly BORDER_BOTTOM_WIDTH: "border-bottom-width";
|
|
40
|
+
readonly BORDER_BOTTOM_COLOR: "border-bottom-color";
|
|
41
|
+
readonly BORDER_LEFT_STYLE: "border-left-style";
|
|
42
|
+
readonly BORDER_LEFT_WIDTH: "border-left-width";
|
|
43
|
+
readonly BORDER_LEFT_COLOR: "border-left-color";
|
|
44
|
+
readonly BORDER_RIGHT_STYLE: "border-right-style";
|
|
45
|
+
readonly BORDER_RIGHT_WIDTH: "border-right-width";
|
|
46
|
+
readonly BORDER_RIGHT_COLOR: "border-right-color";
|
|
47
|
+
readonly BORDER_TOP_LEFT_RADIUS: "border-top-left-radius";
|
|
48
|
+
readonly BORDER_TOP_RIGHT_RADIUS: "border-top-right-radius";
|
|
49
|
+
readonly BORDER_BOTTOM_LEFT_RADIUS: "border-bottom-left-radius";
|
|
50
|
+
readonly BORDER_BOTTOM_RIGHT_RADIUS: "border-bottom-right-radius";
|
|
51
|
+
readonly OPACITY: "opacity";
|
|
52
|
+
readonly CURSOR: "cursor";
|
|
53
|
+
readonly TRANSITION: "transition";
|
|
54
|
+
readonly BOX_SHADOW: "box-shadow";
|
|
55
|
+
readonly FILTER: "filter";
|
|
56
|
+
readonly TRANSFORM: "transform";
|
|
57
|
+
readonly POSITION: "position";
|
|
58
|
+
readonly FLOAT: "float";
|
|
59
|
+
readonly CLEAR: "clear";
|
|
60
|
+
readonly Z_INDEX: "z-index";
|
|
61
|
+
readonly TOP: "top";
|
|
62
|
+
readonly BOTTOM: "bottom";
|
|
63
|
+
readonly LEFT: "left";
|
|
64
|
+
readonly RIGHT: "right";
|
|
65
|
+
readonly WIDTH: "width";
|
|
66
|
+
readonly HEIGHT: "height";
|
|
67
|
+
readonly MIN_WIDTH: "min-width";
|
|
68
|
+
readonly MIN_HEIGHT: "min-height";
|
|
69
|
+
readonly MAX_WIDTH: "max-width";
|
|
70
|
+
readonly MAX_HEIGHT: "max-height";
|
|
71
|
+
readonly OVERFLOW: "overflow";
|
|
72
|
+
readonly OBJECT_FIT: "object-fit";
|
|
73
|
+
readonly OBJECT_POSITION: "object-position";
|
|
74
|
+
readonly MARGIN_TOP: "margin-top";
|
|
75
|
+
readonly MARGIN_BOTTOM: "margin-bottom";
|
|
76
|
+
readonly MARGIN_LEFT: "margin-left";
|
|
77
|
+
readonly MARGIN_RIGHT: "margin-right";
|
|
78
|
+
readonly PADDING_TOP: "padding-top";
|
|
79
|
+
readonly PADDING_BOTTOM: "padding-bottom";
|
|
80
|
+
readonly PADDING_LEFT: "padding-left";
|
|
81
|
+
readonly PADDING_RIGHT: "padding-right";
|
|
82
|
+
readonly FONT_FAMILY: "font-family";
|
|
83
|
+
readonly FONT_WEIGHT: "font-weight";
|
|
84
|
+
readonly FONT_SIZE: "font-size";
|
|
85
|
+
readonly LINE_HEIGHT: "line-height";
|
|
86
|
+
readonly COLOR: "color";
|
|
87
|
+
readonly TEXT_ALIGN: "text-align";
|
|
88
|
+
readonly FONT_STYLE: "font-style";
|
|
89
|
+
readonly TEXT_DECORATION: "text-decoration";
|
|
90
|
+
readonly LETTER_SPACING: "letter-spacing";
|
|
91
|
+
readonly TEXT_INDENT: "text-indent";
|
|
92
|
+
readonly TEXT_TRANSFORM: "text-transform";
|
|
93
|
+
readonly DIRECTION: "direction";
|
|
94
|
+
readonly WHITE_SPACE: "white-space";
|
|
95
|
+
readonly TEXT_WRAP: "text-wrap";
|
|
96
|
+
readonly TEXT_OVERFLOW: "text-overflow";
|
|
97
|
+
readonly TEXT_SHADOW: "text-shadow";
|
|
98
|
+
};
|
|
99
|
+
export declare const inheritableAttributesBase: StyleCategory[];
|
|
100
|
+
export declare const StyleBindingsAllowed: {
|
|
101
|
+
path: "display" | "flex-wrap" | "flex-direction" | "align-items" | "justify-content" | "align-content" | "row-gap" | "column-gap" | "grid-row-gap" | "grid-column-gap" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows" | "grid-auto-flow" | "grid-auto-rows" | "grid-auto-columns" | "align-self" | "order" | "flex-grow" | "flex-shrink" | "flex-basis" | "list-style" | "list-style-type" | "background-color" | "background-image" | "background-position" | "background-size" | "background-repeat" | "background-clip" | "background-attachment" | "mask-image" | "border-top-style" | "border-top-width" | "border-top-color" | "border-bottom-style" | "border-bottom-width" | "border-bottom-color" | "border-left-style" | "border-left-width" | "border-left-color" | "border-right-style" | "border-right-width" | "border-right-color" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "opacity" | "cursor" | "transition" | "box-shadow" | "filter" | "transform" | "position" | "float" | "clear" | "z-index" | "top" | "bottom" | "left" | "right" | "width" | "height" | "min-width" | "min-height" | "max-width" | "max-height" | "overflow" | "object-fit" | "object-position" | "margin-top" | "margin-bottom" | "margin-left" | "margin-right" | "padding-top" | "padding-bottom" | "padding-left" | "padding-right" | "font-family" | "font-weight" | "font-size" | "line-height" | "color" | "text-align" | "font-style" | "text-decoration" | "letter-spacing" | "text-indent" | "text-transform" | "direction" | "white-space" | "text-wrap" | "text-overflow" | "text-shadow";
|
|
102
|
+
label: "display" | "flex-wrap" | "flex-direction" | "align-items" | "justify-content" | "align-content" | "row-gap" | "column-gap" | "grid-row-gap" | "grid-column-gap" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows" | "grid-auto-flow" | "grid-auto-rows" | "grid-auto-columns" | "align-self" | "order" | "flex-grow" | "flex-shrink" | "flex-basis" | "list-style" | "list-style-type" | "background-color" | "background-image" | "background-position" | "background-size" | "background-repeat" | "background-clip" | "background-attachment" | "mask-image" | "border-top-style" | "border-top-width" | "border-top-color" | "border-bottom-style" | "border-bottom-width" | "border-bottom-color" | "border-left-style" | "border-left-width" | "border-left-color" | "border-right-style" | "border-right-width" | "border-right-color" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "opacity" | "cursor" | "transition" | "box-shadow" | "filter" | "transform" | "position" | "float" | "clear" | "z-index" | "top" | "bottom" | "left" | "right" | "width" | "height" | "min-width" | "min-height" | "max-width" | "max-height" | "overflow" | "object-fit" | "object-position" | "margin-top" | "margin-bottom" | "margin-left" | "margin-right" | "padding-top" | "padding-bottom" | "padding-left" | "padding-right" | "font-family" | "font-weight" | "font-size" | "line-height" | "color" | "text-align" | "font-style" | "text-decoration" | "letter-spacing" | "text-indent" | "text-transform" | "direction" | "white-space" | "text-wrap" | "text-overflow" | "text-shadow";
|
|
103
|
+
}[];
|
|
104
|
+
export declare const baseDefaultValue: Record<StyleCategory, StyleValue>;
|
|
105
|
+
export default styleConstants;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
//#region src/style/styleConstants.ts
|
|
2
|
+
var e = {
|
|
3
|
+
platform: {
|
|
4
|
+
desktop: {},
|
|
5
|
+
tablet: {},
|
|
6
|
+
mobile: {}
|
|
7
|
+
},
|
|
8
|
+
mode: "desktop-first",
|
|
9
|
+
theme: {
|
|
10
|
+
default: "system",
|
|
11
|
+
schemes: ["light", "dark"]
|
|
12
|
+
},
|
|
13
|
+
variables: {},
|
|
14
|
+
cache: ""
|
|
15
|
+
}, t = {
|
|
16
|
+
DISPLAY: "display",
|
|
17
|
+
FLEX_WRAP: "flex-wrap",
|
|
18
|
+
FLEX_DIRECTION: "flex-direction",
|
|
19
|
+
ALIGN_ITEMS: "align-items",
|
|
20
|
+
JUSTIFY_CONTENT: "justify-content",
|
|
21
|
+
ALIGN_CONTENT: "align-content",
|
|
22
|
+
ROW_GAP: "row-gap",
|
|
23
|
+
COLUMN_GAP: "column-gap",
|
|
24
|
+
GRID_ROW_GAP: "grid-row-gap",
|
|
25
|
+
GRID_COLUMN_GAP: "grid-column-gap",
|
|
26
|
+
GRID_TEMPLATE_AREAS: "grid-template-areas",
|
|
27
|
+
GRID_TEMPLATE_COLUMNS: "grid-template-columns",
|
|
28
|
+
GRID_TEMPLATE_ROWS: "grid-template-rows",
|
|
29
|
+
GRID_AUTO_FLOW: "grid-auto-flow",
|
|
30
|
+
GRID_AUTO_ROWS: "grid-auto-rows",
|
|
31
|
+
GRID_AUTO_COLUMNS: "grid-auto-columns",
|
|
32
|
+
ALIGN_SELF: "align-self",
|
|
33
|
+
ORDER: "order",
|
|
34
|
+
FLEX_GROW: "flex-grow",
|
|
35
|
+
FLEX_SHRINK: "flex-shrink",
|
|
36
|
+
FLEX_BASIS: "flex-basis",
|
|
37
|
+
LIST_STYLE: "list-style",
|
|
38
|
+
LIST_STYLE_TYPE: "list-style-type",
|
|
39
|
+
BACKGROUND_COLOR: "background-color",
|
|
40
|
+
BACKGROUND_IMAGE: "background-image",
|
|
41
|
+
BACKGROUND_POSITION: "background-position",
|
|
42
|
+
BACKGROUND_SIZE: "background-size",
|
|
43
|
+
BACKGROUND_REPEAT: "background-repeat",
|
|
44
|
+
BACKGROUND_CLIP: "background-clip",
|
|
45
|
+
BACKGROUND_ATTACHMENT: "background-attachment",
|
|
46
|
+
MASK_IMAGE: "mask-image",
|
|
47
|
+
BORDER_TOP_STYLE: "border-top-style",
|
|
48
|
+
BORDER_TOP_WIDTH: "border-top-width",
|
|
49
|
+
BORDER_TOP_COLOR: "border-top-color",
|
|
50
|
+
BORDER_BOTTOM_STYLE: "border-bottom-style",
|
|
51
|
+
BORDER_BOTTOM_WIDTH: "border-bottom-width",
|
|
52
|
+
BORDER_BOTTOM_COLOR: "border-bottom-color",
|
|
53
|
+
BORDER_LEFT_STYLE: "border-left-style",
|
|
54
|
+
BORDER_LEFT_WIDTH: "border-left-width",
|
|
55
|
+
BORDER_LEFT_COLOR: "border-left-color",
|
|
56
|
+
BORDER_RIGHT_STYLE: "border-right-style",
|
|
57
|
+
BORDER_RIGHT_WIDTH: "border-right-width",
|
|
58
|
+
BORDER_RIGHT_COLOR: "border-right-color",
|
|
59
|
+
BORDER_TOP_LEFT_RADIUS: "border-top-left-radius",
|
|
60
|
+
BORDER_TOP_RIGHT_RADIUS: "border-top-right-radius",
|
|
61
|
+
BORDER_BOTTOM_LEFT_RADIUS: "border-bottom-left-radius",
|
|
62
|
+
BORDER_BOTTOM_RIGHT_RADIUS: "border-bottom-right-radius",
|
|
63
|
+
OPACITY: "opacity",
|
|
64
|
+
CURSOR: "cursor",
|
|
65
|
+
TRANSITION: "transition",
|
|
66
|
+
BOX_SHADOW: "box-shadow",
|
|
67
|
+
FILTER: "filter",
|
|
68
|
+
TRANSFORM: "transform",
|
|
69
|
+
POSITION: "position",
|
|
70
|
+
FLOAT: "float",
|
|
71
|
+
CLEAR: "clear",
|
|
72
|
+
Z_INDEX: "z-index",
|
|
73
|
+
TOP: "top",
|
|
74
|
+
BOTTOM: "bottom",
|
|
75
|
+
LEFT: "left",
|
|
76
|
+
RIGHT: "right",
|
|
77
|
+
WIDTH: "width",
|
|
78
|
+
HEIGHT: "height",
|
|
79
|
+
MIN_WIDTH: "min-width",
|
|
80
|
+
MIN_HEIGHT: "min-height",
|
|
81
|
+
MAX_WIDTH: "max-width",
|
|
82
|
+
MAX_HEIGHT: "max-height",
|
|
83
|
+
OVERFLOW: "overflow",
|
|
84
|
+
OBJECT_FIT: "object-fit",
|
|
85
|
+
OBJECT_POSITION: "object-position",
|
|
86
|
+
MARGIN_TOP: "margin-top",
|
|
87
|
+
MARGIN_BOTTOM: "margin-bottom",
|
|
88
|
+
MARGIN_LEFT: "margin-left",
|
|
89
|
+
MARGIN_RIGHT: "margin-right",
|
|
90
|
+
PADDING_TOP: "padding-top",
|
|
91
|
+
PADDING_BOTTOM: "padding-bottom",
|
|
92
|
+
PADDING_LEFT: "padding-left",
|
|
93
|
+
PADDING_RIGHT: "padding-right",
|
|
94
|
+
FONT_FAMILY: "font-family",
|
|
95
|
+
FONT_WEIGHT: "font-weight",
|
|
96
|
+
FONT_SIZE: "font-size",
|
|
97
|
+
LINE_HEIGHT: "line-height",
|
|
98
|
+
COLOR: "color",
|
|
99
|
+
TEXT_ALIGN: "text-align",
|
|
100
|
+
FONT_STYLE: "font-style",
|
|
101
|
+
TEXT_DECORATION: "text-decoration",
|
|
102
|
+
LETTER_SPACING: "letter-spacing",
|
|
103
|
+
TEXT_INDENT: "text-indent",
|
|
104
|
+
TEXT_TRANSFORM: "text-transform",
|
|
105
|
+
DIRECTION: "direction",
|
|
106
|
+
WHITE_SPACE: "white-space",
|
|
107
|
+
TEXT_WRAP: "text-wrap",
|
|
108
|
+
TEXT_OVERFLOW: "text-overflow",
|
|
109
|
+
TEXT_SHADOW: "text-shadow"
|
|
110
|
+
}, n = [
|
|
111
|
+
t.TEXT_DECORATION,
|
|
112
|
+
t.LINE_HEIGHT,
|
|
113
|
+
t.LETTER_SPACING,
|
|
114
|
+
t.COLOR,
|
|
115
|
+
t.DIRECTION,
|
|
116
|
+
t.FONT_FAMILY,
|
|
117
|
+
t.FONT_WEIGHT,
|
|
118
|
+
t.FONT_SIZE,
|
|
119
|
+
t.TEXT_ALIGN,
|
|
120
|
+
t.TEXT_INDENT,
|
|
121
|
+
t.TEXT_SHADOW,
|
|
122
|
+
t.TEXT_TRANSFORM,
|
|
123
|
+
t.WHITE_SPACE,
|
|
124
|
+
t.TEXT_WRAP,
|
|
125
|
+
t.TEXT_OVERFLOW
|
|
126
|
+
], r = Object.values(t).map((e) => ({
|
|
127
|
+
path: e,
|
|
128
|
+
label: e
|
|
129
|
+
})), i = {
|
|
130
|
+
[t.DISPLAY]: "block",
|
|
131
|
+
[t.FLEX_WRAP]: "nowrap",
|
|
132
|
+
[t.FLEX_DIRECTION]: "row",
|
|
133
|
+
[t.ALIGN_ITEMS]: "stretch",
|
|
134
|
+
[t.JUSTIFY_CONTENT]: "flex-start",
|
|
135
|
+
[t.ALIGN_CONTENT]: "flex-start",
|
|
136
|
+
[t.ROW_GAP]: "0px",
|
|
137
|
+
[t.COLUMN_GAP]: "0px",
|
|
138
|
+
[t.GRID_ROW_GAP]: "0px",
|
|
139
|
+
[t.GRID_COLUMN_GAP]: "0px",
|
|
140
|
+
[t.GRID_TEMPLATE_AREAS]: "none",
|
|
141
|
+
[t.GRID_TEMPLATE_COLUMNS]: "none",
|
|
142
|
+
[t.GRID_TEMPLATE_ROWS]: "none",
|
|
143
|
+
[t.GRID_AUTO_FLOW]: "row",
|
|
144
|
+
[t.GRID_AUTO_ROWS]: "auto",
|
|
145
|
+
[t.GRID_AUTO_COLUMNS]: "auto",
|
|
146
|
+
[t.ALIGN_SELF]: "auto",
|
|
147
|
+
[t.ORDER]: "0",
|
|
148
|
+
[t.FLEX_GROW]: "0",
|
|
149
|
+
[t.FLEX_SHRINK]: "1",
|
|
150
|
+
[t.FLEX_BASIS]: "auto",
|
|
151
|
+
[t.LIST_STYLE]: "disc",
|
|
152
|
+
[t.LIST_STYLE_TYPE]: "disc",
|
|
153
|
+
[t.BACKGROUND_COLOR]: "transparent",
|
|
154
|
+
[t.BACKGROUND_IMAGE]: "url(\"https://cdn.plitzi.com/resources/img/background-image.svg\")",
|
|
155
|
+
[t.BACKGROUND_POSITION]: "0px 0px",
|
|
156
|
+
[t.BACKGROUND_SIZE]: "auto",
|
|
157
|
+
[t.BACKGROUND_CLIP]: "border-box",
|
|
158
|
+
[t.BACKGROUND_REPEAT]: "repeat",
|
|
159
|
+
[t.BACKGROUND_ATTACHMENT]: "scroll",
|
|
160
|
+
[t.MASK_IMAGE]: "none",
|
|
161
|
+
[t.BORDER_TOP_STYLE]: "solid",
|
|
162
|
+
[t.BORDER_TOP_WIDTH]: "0px",
|
|
163
|
+
[t.BORDER_TOP_COLOR]: "#000000",
|
|
164
|
+
[t.BORDER_BOTTOM_STYLE]: "solid",
|
|
165
|
+
[t.BORDER_BOTTOM_WIDTH]: "0px",
|
|
166
|
+
[t.BORDER_BOTTOM_COLOR]: "#000000",
|
|
167
|
+
[t.BORDER_LEFT_STYLE]: "solid",
|
|
168
|
+
[t.BORDER_LEFT_WIDTH]: "0px",
|
|
169
|
+
[t.BORDER_LEFT_COLOR]: "#000000",
|
|
170
|
+
[t.BORDER_RIGHT_STYLE]: "solid",
|
|
171
|
+
[t.BORDER_RIGHT_WIDTH]: "0px",
|
|
172
|
+
[t.BORDER_RIGHT_COLOR]: "#000000",
|
|
173
|
+
[t.BORDER_TOP_LEFT_RADIUS]: "0px",
|
|
174
|
+
[t.BORDER_TOP_RIGHT_RADIUS]: "0px",
|
|
175
|
+
[t.BORDER_BOTTOM_LEFT_RADIUS]: "0px",
|
|
176
|
+
[t.BORDER_BOTTOM_RIGHT_RADIUS]: "0px",
|
|
177
|
+
[t.OPACITY]: "1",
|
|
178
|
+
[t.CURSOR]: "auto",
|
|
179
|
+
[t.TRANSITION]: "opacity 200ms ease 0ms",
|
|
180
|
+
[t.BOX_SHADOW]: "1px 1px 3px 1px black",
|
|
181
|
+
[t.FILTER]: "blur(5px)",
|
|
182
|
+
[t.TRANSFORM]: "translate3d(0px, 0px, 0px)",
|
|
183
|
+
[t.POSITION]: "static",
|
|
184
|
+
[t.FLOAT]: "none",
|
|
185
|
+
[t.CLEAR]: "none",
|
|
186
|
+
[t.Z_INDEX]: "0",
|
|
187
|
+
[t.TOP]: "auto",
|
|
188
|
+
[t.BOTTOM]: "auto",
|
|
189
|
+
[t.LEFT]: "auto",
|
|
190
|
+
[t.RIGHT]: "auto",
|
|
191
|
+
[t.WIDTH]: "auto",
|
|
192
|
+
[t.HEIGHT]: "auto",
|
|
193
|
+
[t.MIN_WIDTH]: "0px",
|
|
194
|
+
[t.MIN_HEIGHT]: "0px",
|
|
195
|
+
[t.MAX_WIDTH]: "none",
|
|
196
|
+
[t.MAX_HEIGHT]: "none",
|
|
197
|
+
[t.OVERFLOW]: "visible",
|
|
198
|
+
[t.OBJECT_FIT]: "fill",
|
|
199
|
+
[t.OBJECT_POSITION]: "50% 50%",
|
|
200
|
+
[t.MARGIN_TOP]: "0px",
|
|
201
|
+
[t.MARGIN_BOTTOM]: "0px",
|
|
202
|
+
[t.MARGIN_LEFT]: "0px",
|
|
203
|
+
[t.MARGIN_RIGHT]: "0px",
|
|
204
|
+
[t.PADDING_TOP]: "0px",
|
|
205
|
+
[t.PADDING_BOTTOM]: "0px",
|
|
206
|
+
[t.PADDING_LEFT]: "0px",
|
|
207
|
+
[t.PADDING_RIGHT]: "0px",
|
|
208
|
+
[t.FONT_FAMILY]: "Arial",
|
|
209
|
+
[t.FONT_WEIGHT]: 400,
|
|
210
|
+
[t.FONT_SIZE]: "0px",
|
|
211
|
+
[t.LINE_HEIGHT]: "0px",
|
|
212
|
+
[t.COLOR]: "#000000",
|
|
213
|
+
[t.TEXT_ALIGN]: "left",
|
|
214
|
+
[t.FONT_STYLE]: "normal",
|
|
215
|
+
[t.TEXT_DECORATION]: "none",
|
|
216
|
+
[t.LETTER_SPACING]: "0px",
|
|
217
|
+
[t.TEXT_INDENT]: "0px",
|
|
218
|
+
[t.TEXT_TRANSFORM]: "none",
|
|
219
|
+
[t.DIRECTION]: "ltr",
|
|
220
|
+
[t.WHITE_SPACE]: "normal",
|
|
221
|
+
[t.TEXT_WRAP]: "wrap",
|
|
222
|
+
[t.TEXT_OVERFLOW]: "clip",
|
|
223
|
+
[t.TEXT_SHADOW]: ""
|
|
224
|
+
};
|
|
225
|
+
//#endregion
|
|
226
|
+
export { e as EMPTY_STYLE_SCHEMA, r as StyleBindingsAllowed, i as baseDefaultValue, t as default, n as inheritableAttributesBase };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Theme, ThemeContextValue } from '../types';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
declare const ThemeContext: import('react').Context<ThemeContextValue>;
|
|
4
|
+
export type ThemeProviderProps = {
|
|
5
|
+
defaultTheme?: Theme;
|
|
6
|
+
storageKey?: string;
|
|
7
|
+
storageType?: 'localStorage' | 'sessionStorage';
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
declare const ThemeProvider: ({ defaultTheme, storageKey, storageType, children }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { ThemeContext };
|
|
12
|
+
export default ThemeProvider;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { createContext as e, useCallback as t, useEffect as n, useMemo as r } from "react";
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import a from "@plitzi/plitzi-ui/hooks/useStorage";
|
|
4
|
+
//#region src/theme/ThemeProvider.tsx
|
|
5
|
+
var o = e({
|
|
6
|
+
theme: "dark",
|
|
7
|
+
toggleTheme: () => {}
|
|
8
|
+
});
|
|
9
|
+
o.displayName = "ThemeContext";
|
|
10
|
+
var s = ({ defaultTheme: e = "dark", storageKey: s = "theme", storageType: c = "localStorage", children: l }) => {
|
|
11
|
+
let [u, d] = a(s, e, c);
|
|
12
|
+
n(() => {
|
|
13
|
+
if (typeof document > "u" || typeof window > "u") return;
|
|
14
|
+
let e = new MutationObserver(() => d(document.documentElement.classList.contains("dark") ? "dark" : "light"));
|
|
15
|
+
e.observe(document.documentElement, {
|
|
16
|
+
attributes: !0,
|
|
17
|
+
attributeFilter: ["class"]
|
|
18
|
+
});
|
|
19
|
+
let t = window.matchMedia("(prefers-color-scheme: dark)"), n = (e) => d(e.matches ? "dark" : "light");
|
|
20
|
+
return t.addEventListener("change", n), () => {
|
|
21
|
+
e.disconnect(), t.removeEventListener("change", n);
|
|
22
|
+
};
|
|
23
|
+
}, []), n(() => {
|
|
24
|
+
if (typeof document > "u") return;
|
|
25
|
+
let e = document.documentElement;
|
|
26
|
+
u === "dark" ? e.classList.add("dark") : e.classList.remove("dark");
|
|
27
|
+
}, [u]);
|
|
28
|
+
let f = t(() => {
|
|
29
|
+
d((e) => e === "dark" ? "light" : "dark");
|
|
30
|
+
}, [d]);
|
|
31
|
+
return /* @__PURE__ */ i(o, {
|
|
32
|
+
value: r(() => ({
|
|
33
|
+
theme: u,
|
|
34
|
+
toggleTheme: f
|
|
35
|
+
}), [u, f]),
|
|
36
|
+
children: l
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { o as ThemeContext, s as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type User = {
|
|
2
|
+
id: number;
|
|
3
|
+
username: string;
|
|
4
|
+
email: string;
|
|
5
|
+
verified: boolean;
|
|
6
|
+
permissions: string[];
|
|
7
|
+
roles: string[];
|
|
8
|
+
};
|
|
9
|
+
export type TokenResult = {
|
|
10
|
+
errors?: Record<string, unknown>;
|
|
11
|
+
accessToken: string;
|
|
12
|
+
expiresAt: number | null;
|
|
13
|
+
refreshToken: string | null;
|
|
14
|
+
};
|
|
15
|
+
export type AuthContextValue = {
|
|
16
|
+
login: (...args: unknown[]) => Promise<TokenResult | undefined>;
|
|
17
|
+
refresh: (...args: unknown[]) => Promise<TokenResult | undefined>;
|
|
18
|
+
can: (permission: string) => boolean;
|
|
19
|
+
logout: (...args: unknown[]) => Promise<void>;
|
|
20
|
+
authenticated: boolean;
|
|
21
|
+
user?: {
|
|
22
|
+
details?: {
|
|
23
|
+
id: number;
|
|
24
|
+
username: string;
|
|
25
|
+
email: string;
|
|
26
|
+
verified: boolean;
|
|
27
|
+
permissions: string[];
|
|
28
|
+
roles: string[];
|
|
29
|
+
};
|
|
30
|
+
accessToken?: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Schema } from './SchemaTypes';
|
|
2
|
+
import { Style } from './StyleTypes';
|
|
3
|
+
export type Template = {
|
|
4
|
+
id?: string;
|
|
5
|
+
definition: {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
baseElementId: Element['id'];
|
|
9
|
+
};
|
|
10
|
+
schema: Schema;
|
|
11
|
+
style: Style;
|
|
12
|
+
};
|
|
13
|
+
export type SubscriptionCollaborator = {
|
|
14
|
+
color: string;
|
|
15
|
+
user: {
|
|
16
|
+
firstName: string;
|
|
17
|
+
surName: string;
|
|
18
|
+
};
|
|
19
|
+
instanceId: string;
|
|
20
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export type PageInfo = {
|
|
2
|
+
hasPrevPage: boolean;
|
|
3
|
+
hasNextPage: boolean;
|
|
4
|
+
prevCursor: string;
|
|
5
|
+
nextCursor: string;
|
|
6
|
+
from: number;
|
|
7
|
+
to: number;
|
|
8
|
+
total: number;
|
|
9
|
+
};
|
|
10
|
+
export type CollectionField = {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
machineName: string;
|
|
14
|
+
type: 'text' | 'richText' | 'image' | 'multiImage' | 'video' | 'link' | 'email' | 'phone' | 'number' | 'date' | 'switch' | 'color' | 'option' | 'file';
|
|
15
|
+
params: {
|
|
16
|
+
primary: boolean;
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type CollectionRecord = {
|
|
21
|
+
id: string;
|
|
22
|
+
values: Record<string, string | number | boolean>;
|
|
23
|
+
status: 'draft' | 'published' | 'archived';
|
|
24
|
+
createdAt: number;
|
|
25
|
+
updatedAt: number;
|
|
26
|
+
publishedAt?: number;
|
|
27
|
+
};
|
|
28
|
+
export type Collection = {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
namePlural: string;
|
|
32
|
+
description: string;
|
|
33
|
+
privacy: 'public' | 'private';
|
|
34
|
+
fields: Record<string, CollectionField>;
|
|
35
|
+
records: CollectionRecord[];
|
|
36
|
+
};
|
|
37
|
+
export type BuilderCollectionContextValue = {
|
|
38
|
+
collections: Record<string, Collection>;
|
|
39
|
+
fetchCollections: (filter: string, cursor?: string, limit?: number, append?: Collection[], store?: boolean) => Promise<{
|
|
40
|
+
edges: CollectionRaw[];
|
|
41
|
+
pageInfo: PageInfo;
|
|
42
|
+
} | undefined>;
|
|
43
|
+
fetchCollection: (id: string, recordsFilter: string, store?: boolean) => Promise<CollectionRaw | undefined>;
|
|
44
|
+
addCollection: (name: string, namePlural: string, description: string, privacy: Collection['privacy'], fields: Collection['fields']) => Promise<Collection | undefined>;
|
|
45
|
+
updateCollection: (id: string, name: string, namePlural: string, description: string, privacy: Collection['privacy'], fields: Collection['fields']) => Promise<Collection | undefined>;
|
|
46
|
+
removeCollection: (id: string) => Promise<boolean>;
|
|
47
|
+
fetchRecords: (collectionId: string, filter?: string | object, cursor?: string, limit?: number, append?: CollectionRecord[], store?: boolean) => Promise<{
|
|
48
|
+
pageInfo: PageInfo;
|
|
49
|
+
edges: CollectionRecord[];
|
|
50
|
+
} | undefined>;
|
|
51
|
+
fetchRecord: (collectionId: string, id: string, store?: boolean) => Promise<CollectionRecord | undefined>;
|
|
52
|
+
addRecord: (collectionId: string, status: CollectionRecord['status'], values: CollectionRecord['values'], updateStore?: boolean) => Promise<CollectionRecord | undefined>;
|
|
53
|
+
updateRecord: (collectionId: string, recordId: string, status: CollectionRecord['status'], values: CollectionRecord['values'], updateStore?: boolean) => Promise<CollectionRecord | undefined>;
|
|
54
|
+
removeRecord: (collectionId: string, recordId: string, updateStore?: boolean) => Promise<boolean>;
|
|
55
|
+
};
|
|
56
|
+
export type SdkCollectionContextValue = {
|
|
57
|
+
collections: Record<string, Collection>;
|
|
58
|
+
fetchCollections: (filter: string, cursor?: string, limit?: number) => Promise<{
|
|
59
|
+
edges: CollectionRaw[];
|
|
60
|
+
pageInfo: PageInfo;
|
|
61
|
+
} | undefined>;
|
|
62
|
+
fetchCollection: (id: string, recordsFilter: string) => Promise<CollectionRaw | undefined>;
|
|
63
|
+
fetchRecords: (collectionId: string, filter?: string | object, cursor?: string, limit?: number) => Promise<{
|
|
64
|
+
pageInfo: PageInfo;
|
|
65
|
+
edges: CollectionRecord[];
|
|
66
|
+
} | undefined>;
|
|
67
|
+
fetchRecord: (collectionId: string, id: string) => Promise<CollectionRecord | undefined>;
|
|
68
|
+
addRecord: (collectionId: string, status: CollectionRecord['status'], values: CollectionRecord['values'], updateStore?: boolean) => Promise<CollectionRecord | undefined>;
|
|
69
|
+
updateRecord: (collectionId: string, recordId: string, status: CollectionRecord['status'], values: CollectionRecord['values'], updateStore?: boolean) => Promise<CollectionRecord | undefined>;
|
|
70
|
+
removeRecord: (collectionId: string, recordId: string, updateStore?: boolean) => Promise<boolean>;
|
|
71
|
+
};
|
|
72
|
+
export type CollectionContextValue<T extends 'builder' | 'sdk' = 'sdk'> = T extends 'builder' ? BuilderCollectionContextValue : SdkCollectionContextValue;
|
|
73
|
+
export type CollectionRaw = {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
namePlural: string;
|
|
77
|
+
description: string;
|
|
78
|
+
privacy: 'public' | 'private';
|
|
79
|
+
fields: Record<string, CollectionField>;
|
|
80
|
+
records: {
|
|
81
|
+
pageInfo: PageInfo;
|
|
82
|
+
edges: CollectionRecord[];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { User } from './AuthTypes';
|
|
2
|
+
import { SSRRscData } from './ServerTypes';
|
|
3
|
+
export type Environment = 'production' | 'staging' | 'development' | 'main';
|
|
4
|
+
export type Server<T extends Record<string, unknown> = Record<string, unknown>> = {
|
|
5
|
+
apiServer: string;
|
|
6
|
+
ssrServer: string;
|
|
7
|
+
basePath?: string;
|
|
8
|
+
host?: string;
|
|
9
|
+
domain?: string;
|
|
10
|
+
requestUrl?: string;
|
|
11
|
+
nodeServer: string;
|
|
12
|
+
graphqlServer: string;
|
|
13
|
+
websocketServer: string;
|
|
14
|
+
subscriptionServer: string;
|
|
15
|
+
location?: Location;
|
|
16
|
+
authenticated?: boolean;
|
|
17
|
+
skipAuth?: boolean;
|
|
18
|
+
user?: {
|
|
19
|
+
details?: User;
|
|
20
|
+
accessToken?: string | Promise<string>;
|
|
21
|
+
};
|
|
22
|
+
rscData?: SSRRscData;
|
|
23
|
+
} & T;
|
|
24
|
+
export type RenderMode = 'raw' | 'iframe' | 'shadow' | 'widget';
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ComponentDefinition, InternalPropsSTG1 } from './ElementTypes';
|
|
2
|
+
import { Asset } from './PluginTypes';
|
|
3
|
+
import { FC, ReactNode, RefObject } from 'react';
|
|
4
|
+
export type ComponentOrigin = 'local' | 'local-custom' | 'remote';
|
|
5
|
+
export type ComponentPluginFC<T = unknown> = FC<T & {
|
|
6
|
+
className?: string;
|
|
7
|
+
plitziJsxSkipHOC?: boolean;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
extraProps?: Record<string, unknown>;
|
|
10
|
+
}>;
|
|
11
|
+
export type ComponentPlugin<T = unknown> = ComponentPluginFC<T> & {
|
|
12
|
+
content: ComponentDefinition;
|
|
13
|
+
type: string;
|
|
14
|
+
assets: Asset[];
|
|
15
|
+
assetsSettings: Omit<Asset, 'isMain'>[];
|
|
16
|
+
plugins?: Record<string, ComponentPlugin<T>>;
|
|
17
|
+
origin: ComponentOrigin;
|
|
18
|
+
extraProps?: Record<string, unknown>;
|
|
19
|
+
pluginSettings?: FC<any>;
|
|
20
|
+
version?: string;
|
|
21
|
+
initialItems?: string[];
|
|
22
|
+
};
|
|
23
|
+
export type ComponentPluginWithHOC<T = unknown> = ComponentPluginFC<T & {
|
|
24
|
+
internalProps: InternalPropsSTG1;
|
|
25
|
+
}> & {
|
|
26
|
+
content: ComponentDefinition;
|
|
27
|
+
type: string;
|
|
28
|
+
assets: Asset[];
|
|
29
|
+
assetsSettings: Omit<Asset, 'isMain'>[];
|
|
30
|
+
plugins?: Record<string, ComponentPluginWithHOC<T>>;
|
|
31
|
+
origin: ComponentOrigin;
|
|
32
|
+
extraProps?: Record<string, unknown>;
|
|
33
|
+
pluginSettings?: FC<any>;
|
|
34
|
+
version?: string;
|
|
35
|
+
initialItems?: string[];
|
|
36
|
+
};
|
|
37
|
+
export type ComponentContextValue = {
|
|
38
|
+
components: RefObject<Record<string, ComponentPluginWithHOC>>;
|
|
39
|
+
componentDefinitions: RefObject<Record<string, ComponentDefinition>>;
|
|
40
|
+
getComponent: (componentTypes: string | string[], withPlugins?: boolean) => ComponentPluginWithHOC | Record<string, ComponentPluginWithHOC>;
|
|
41
|
+
register: (components: ComponentPluginWithHOC[] | ComponentPluginWithHOC) => Record<string, ComponentPluginWithHOC>;
|
|
42
|
+
unregister: (componentTypes: string[] | string) => string[];
|
|
43
|
+
unregisterDefinition: (pluginType: string) => void;
|
|
44
|
+
registerDefinition: (plugins: Record<string, ComponentDefinition>) => void;
|
|
45
|
+
};
|
|
File without changes
|