@supernova-studio/supernova-sdk-beta 0.7.17
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/LICENSE +21 -0
- package/README.md +135 -0
- package/build/sdk-typescript/.eslintrc.d.cts +41 -0
- package/build/sdk-typescript/src/browser-bundle.d.ts +1 -0
- package/build/sdk-typescript/src/core/SDKSupernova.d.ts +77 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaAssets.d.ts +46 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaAutomation.d.ts +233 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaBrands.d.ts +35 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaBulkOperations.d.ts +68 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaComponents.d.ts +162 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +54 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDesignSystems.d.ts +104 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +179 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaIntegrations.d.ts +91 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaMe.d.ts +22 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaMultiplayer.d.ts +10 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaNetwork.d.ts +9 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaResources.d.ts +46 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaStorage.d.ts +23 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaTokenValues.d.ts +136 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaTokens.d.ts +225 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaUsers.d.ts +6 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaVersions.d.ts +35 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +230 -0
- package/build/sdk-typescript/src/core/areas/SDKRemoteIdentifiers.d.ts +25 -0
- package/build/sdk-typescript/src/core/data/SDKConfiguration.d.ts +6 -0
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +55 -0
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +508 -0
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +232 -0
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreRenderRequests.d.ts +18 -0
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +237 -0
- package/build/sdk-typescript/src/core/errors/SDKSupernovaError.d.ts +47 -0
- package/build/sdk-typescript/src/core/resolvers/SDKAssetGroupResolver.d.ts +18 -0
- package/build/sdk-typescript/src/core/resolvers/SDKComponentGroupResolver.d.ts +13 -0
- package/build/sdk-typescript/src/core/resolvers/SDKComponentResolver.d.ts +7 -0
- package/build/sdk-typescript/src/core/resolvers/SDKDesignComponentGroupResolver.d.ts +10 -0
- package/build/sdk-typescript/src/core/resolvers/SDKDocsEntityMultiplayerItemResolver.d.ts +7 -0
- package/build/sdk-typescript/src/core/resolvers/SDKDocumentationItemResolver.d.ts +31 -0
- package/build/sdk-typescript/src/core/resolvers/SDKTokenGroupResolver.d.ts +10 -0
- package/build/sdk-typescript/src/core/resolvers/SDKTokenResolver.d.ts +105 -0
- package/build/sdk-typescript/src/exports-pulsar.d.ts +228 -0
- package/build/sdk-typescript/src/exports.d.ts +291 -0
- package/build/sdk-typescript/src/index.d.ts +5 -0
- package/build/sdk-typescript/src/model/acl/SDKAcl.d.ts +51 -0
- package/build/sdk-typescript/src/model/assets/SDKAsset.d.ts +17 -0
- package/build/sdk-typescript/src/model/assets/SDKRenderedAsset.d.ts +28 -0
- package/build/sdk-typescript/src/model/base/SDKBrand.d.ts +34 -0
- package/build/sdk-typescript/src/model/base/SDKDesignSystem.d.ts +54 -0
- package/build/sdk-typescript/src/model/base/SDKDesignSystemVersion.d.ts +45 -0
- package/build/sdk-typescript/src/model/base/SDKDocumentationLegacy.d.ts +10 -0
- package/build/sdk-typescript/src/model/components/SDKComponent.d.ts +32 -0
- package/build/sdk-typescript/src/model/components/SDKDesignComponent.d.ts +34 -0
- package/build/sdk-typescript/src/model/docs/SDKDocsConfiguration.d.ts +13 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockBehavior.d.ts +36 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockDefinition.d.ts +47 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockItemDefinition.d.ts +20 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockLayout.d.ts +19 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockOnboarding.d.ts +11 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockVariant.d.ts +35 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/assets/SDKDocsBlockActualAssets.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/blockquote/SDKDocsBlockActualBlockquote.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/callout/SDKDocsBlockActualCallout.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/code/SDKDocsBlockActualCode.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/code-react/SDKDocsBlockActualCodeReact.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/color-accessibility-grid/SDKDocsBlockActualAccessibilityGrid.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/color-ramps/SDKDocsBlockActualColorRamps.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/component-checklist/SDKDocsBlockActualComponentChecklist.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/component-checklist-all/SDKDocsBlockActualComponentChecklistAll.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/component-health/SDKDocsBlockActualComponentHealth.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/design-tokens/SDKDocsBlockActualDesignTokens.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/divider/SDKDocsBlockActualDivider.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed/SDKDocsBlockActualEmbed.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-figma/SDKDocsBlockActualEmbedFigma.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-lottie/SDKDocsBlockActualEmbedLottie.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-youtube/SDKDocsBlockActualEmbedYoutube.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/figma-frames/SDKDocsBlockActualFigmaFrames.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/image/SDKDocsBlockActualImage.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/link/SDKDocsBlockActualLink.d.ts +8 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/markdown/SDKDocsBlockActualMarkdown.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/omni-multi-item/SDKDocsBlockActualOmniMultiItem.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/omni-single-item/SDKDocsBlockActualOmniSingleItem.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/ordered-list/SDKDocsBlockActualOrderedList.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/release-notes/SDKDocsBlockActualReleaseNotes.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/rich-text/SDKDocsBlockActualRichText.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/shortcut-links/SDKDocsBlockActualShortcutLinks.d.ts +8 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/storybook/SDKDocsBlockActualStorybook.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/table/SDKDocsBlockActualTable.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title1/SDKDocsBlockActualTitle1.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title2/SDKDocsBlockActualTitle2.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title3/SDKDocsBlockActualTitle3.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title4/SDKDocsBlockActualTitle4.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title5/SDKDocsBlockActualTitle5.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-detail/SDKDocsBlockActualTokenDetail.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-list/SDKDocsBlockActualTokenList.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/unordered-list/SDKDocsBlockActualUnorderedList.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +29 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty.d.ts +12 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockBooleanProperty.d.ts +18 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +16 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +21 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockColorProperty.d.ts +13 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +23 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty.d.ts +12 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockDividerProperty.d.ts +12 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +25 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty.d.ts +30 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +25 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMarkdownProperty.d.ts +15 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMultiRichTextProperty.d.ts +19 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMultiSelectProperty.d.ts +21 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockNumberProperty.d.ts +23 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockProperty.d.ts +30 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +23 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty.d.ts +27 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +24 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTableProperty.d.ts +38 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +23 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +36 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty.d.ts +12 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty.d.ts +15 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockUrlProperty.d.ts +14 -0
- package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsColorRef.d.ts +3 -0
- package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsImageRef.d.ts +26 -0
- package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsLinkRef.d.ts +24 -0
- package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsSizeRef.d.ts +8 -0
- package/build/sdk-typescript/src/model/docs/blocks/usage/SDKDocsBlock.d.ts +47 -0
- package/build/sdk-typescript/src/model/docs/blocks/usage/SDKDocsBlockItem.d.ts +16 -0
- package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntity.d.ts +30 -0
- package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityConfiguration.d.ts +15 -0
- package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityGroup.d.ts +51 -0
- package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityHeader.d.ts +29 -0
- package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityPage.d.ts +39 -0
- package/build/sdk-typescript/src/model/docs/sections/SDKDocsSection.d.ts +47 -0
- package/build/sdk-typescript/src/model/docs/sections/SDKDocsSectionColumn.d.ts +15 -0
- package/build/sdk-typescript/src/model/docs/sections/SDKDocsSectionItem.d.ts +15 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyConfiguration.d.ts +22 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyGroup.d.ts +40 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyItem.d.ts +26 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPage.d.ts +34 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPageAsset.d.ts +21 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPageBlock.d.ts +30 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyRichText.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyRichTextSpan.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyRichTextSpanAttribute.d.ts +14 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockAsset.d.ts +15 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockAssets.d.ts +22 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockCallout.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockCode.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockColumn.d.ts +4 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockColumnItem.d.ts +9 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockCustom.d.ts +15 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockDivider.d.ts +4 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedFigma.d.ts +4 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedGeneric.d.ts +13 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedLink.d.ts +15 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedStorybook.d.ts +4 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedYoutube.d.ts +4 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFrame.d.ts +21 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFrames.d.ts +24 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockHeading.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockImage.d.ts +16 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockOrderedList.d.ts +4 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockQuote.d.ts +4 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockRenderCode.d.ts +33 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockShortcut.d.ts +35 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockShortcuts.d.ts +9 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTab.d.ts +4 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTabItem.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTable.d.ts +21 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTableCell.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTableColumn.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTableRow.d.ts +4 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockText.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockToken.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTokenGroup.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTokenList.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockUnorderedList.d.ts +4 -0
- package/build/sdk-typescript/src/model/documentation/builder/SDKDocumentationLegacyBlockBuilder.d.ts +6 -0
- package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationLegacyItemConfiguration.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationLegacyItemHeader.d.ts +36 -0
- package/build/sdk-typescript/src/model/elements/SDKElementDataView.d.ts +30 -0
- package/build/sdk-typescript/src/model/elements/SDKElementDataViewColumn.d.ts +37 -0
- package/build/sdk-typescript/src/model/elements/SDKElementProperty.d.ts +73 -0
- package/build/sdk-typescript/src/model/elements/SDKElementPropertyOption.d.ts +45 -0
- package/build/sdk-typescript/src/model/elements/values/SDKElementPropertyValue.d.ts +15 -0
- package/build/sdk-typescript/src/model/enums/SDKAlignment.d.ts +10 -0
- package/build/sdk-typescript/src/model/enums/SDKAssetFormat.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKAssetScale.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKAssetScaleType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKBlurType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKBorderPosition.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKBorderStyle.d.ts +7 -0
- package/build/sdk-typescript/src/model/enums/SDKCloudWarningType.d.ts +14 -0
- package/build/sdk-typescript/src/model/enums/SDKCodeLanguage.d.ts +34 -0
- package/build/sdk-typescript/src/model/enums/SDKConnectionProviders.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKCustomDomainErrorCode.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKCustomDomainState.d.ts +9 -0
- package/build/sdk-typescript/src/model/enums/SDKDocBlockMode.d.ts +8 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockBehaviorDataType.d.ts +12 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockBehaviorSelectionType.d.ts +8 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockCategory.d.ts +26 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockContainerSize.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockImagePropertyAspectRatio.d.ts +12 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockImagePropertyWidth.d.ts +14 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemEntityType.d.ts +14 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyOptionRenderingStyle.d.ts +10 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyRichTextStyle.d.ts +20 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyTextStyle.d.ts +8 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyType.d.ts +55 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutAlign.d.ts +8 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutColumnResizing.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutGap.d.ts +10 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutType.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutWidth.d.ts +26 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockMultiRichTextPropertyStyle.d.ts +8 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockOptionRenderStyle.d.ts +10 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockRichTextPropertyStyle.d.ts +18 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockTextPropertyColor.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockTextPropertyStyle.d.ts +26 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsEntityGroupBehavior.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsEntityType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsPublishStatus.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsSectionType.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationEnvironment.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyCalloutType.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyGroupBehavior.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyHeadingType.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyItemType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyPageAssetType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyPageBlockThemeType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +31 -0
- package/build/sdk-typescript/src/model/enums/SDKFrameAlignment.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKFrameLayout.d.ts +11 -0
- package/build/sdk-typescript/src/model/enums/SDKGradientType.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKImportJobOperation.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKImportJobState.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKIntegrationService.d.ts +7 -0
- package/build/sdk-typescript/src/model/enums/SDKRichTextSpanAttributeType.d.ts +7 -0
- package/build/sdk-typescript/src/model/enums/SDKShadowType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKSourceType.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKTextCase.d.ts +7 -0
- package/build/sdk-typescript/src/model/enums/SDKTextDecoration.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +49 -0
- package/build/sdk-typescript/src/model/enums/SDKUnit.d.ts +17 -0
- package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +8 -0
- package/build/sdk-typescript/src/model/enums/SDKVisibilityType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceNPMRegistryAuthType.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceNPMRegistryType.d.ts +12 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionPlanInterval.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionProduct.d.ts +12 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatus.d.ts +10 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAccount.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureBranch.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureOrganization.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureProject.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenAzureRepository.d.ts +11 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketBranch.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketProject.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketRepository.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBitbucketWorkspace.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/CodegenBranch.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/CodegenConnection.d.ts +10 -0
- package/build/sdk-typescript/src/model/exporters/CodegenGitlabBranch.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/CodegenGitlabGroup.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/CodegenGitlabRepository.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/CodegenRepository.d.ts +15 -0
- package/build/sdk-typescript/src/model/exporters/SDKConnections.d.ts +17 -0
- package/build/sdk-typescript/src/model/exporters/SDKExporter.d.ts +83 -0
- package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +113 -0
- package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlock.d.ts +23 -0
- package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlockProperty.d.ts +32 -0
- package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlockVariant.d.ts +12 -0
- package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterConfigurationProperty.d.ts +38 -0
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuild.d.ts +115 -0
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuildResults.d.ts +84 -0
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportDestinations.d.ts +126 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenBranchModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenOrganizationModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenProjectModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenRepositoryModel.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenBranchModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenProjectModel.d.ts +4 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenRepositoryModel.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenWorkspaceModel.d.ts +4 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenAccountModel.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenBranchModel.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenConnectionModel.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenRepositoryModel.d.ts +17 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteConnectionsModel.d.ts +9 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenBranchModel.d.ts +5 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenGroupModel.d.ts +4 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenRepositoryModel.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemotePipelineModel.d.ts +57 -0
- package/build/sdk-typescript/src/model/groups/SDKAssetGroup.d.ts +24 -0
- package/build/sdk-typescript/src/model/groups/SDKComponentGroup.d.ts +40 -0
- package/build/sdk-typescript/src/model/groups/SDKDesignComponentGroup.d.ts +33 -0
- package/build/sdk-typescript/src/model/groups/SDKTokenGroup.d.ts +43 -0
- package/build/sdk-typescript/src/model/jobs/SDKImportJob.d.ts +34 -0
- package/build/sdk-typescript/src/model/membership/SDKMembership.d.ts +16 -0
- package/build/sdk-typescript/src/model/resources/SDKResource.d.ts +26 -0
- package/build/sdk-typescript/src/model/resources/SDKResourceAsset.d.ts +6 -0
- package/build/sdk-typescript/src/model/resources/SDKResourceFont.d.ts +25 -0
- package/build/sdk-typescript/src/model/support/SDKCustomDomain.d.ts +21 -0
- package/build/sdk-typescript/src/model/support/SDKDesignComponentOrigin.d.ts +23 -0
- package/build/sdk-typescript/src/model/support/SDKFigmaFrame.d.ts +22 -0
- package/build/sdk-typescript/src/model/support/SDKFigmaStructure.d.ts +27 -0
- package/build/sdk-typescript/src/model/support/SDKFigmaStructureDetail.d.ts +30 -0
- package/build/sdk-typescript/src/model/support/SDKFrameOrigin.d.ts +25 -0
- package/build/sdk-typescript/src/model/support/SDKLogger.d.ts +4 -0
- package/build/sdk-typescript/src/model/support/SDKSize.d.ts +9 -0
- package/build/sdk-typescript/src/model/support/SDKSource.d.ts +150 -0
- package/build/sdk-typescript/src/model/support/SDKTokenOrigin.d.ts +18 -0
- package/build/sdk-typescript/src/model/themes/SDKThemeUtilities.d.ts +11 -0
- package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +55 -0
- package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +46 -0
- package/build/sdk-typescript/src/model/tokens/SDKBlurToken.d.ts +22 -0
- package/build/sdk-typescript/src/model/tokens/SDKBorderToken.d.ts +24 -0
- package/build/sdk-typescript/src/model/tokens/SDKColorToken.d.ts +34 -0
- package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +104 -0
- package/build/sdk-typescript/src/model/tokens/SDKGradientToken.d.ts +26 -0
- package/build/sdk-typescript/src/model/tokens/SDKShadowToken.d.ts +26 -0
- package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +61 -0
- package/build/sdk-typescript/src/model/tokens/SDKTextCaseToken.d.ts +23 -0
- package/build/sdk-typescript/src/model/tokens/SDKTextDecorationToken.d.ts +26 -0
- package/build/sdk-typescript/src/model/tokens/SDKToken.d.ts +33 -0
- package/build/sdk-typescript/src/model/tokens/SDKTokenCompator.d.ts +20 -0
- package/build/sdk-typescript/src/model/tokens/SDKTokenValue.d.ts +201 -0
- package/build/sdk-typescript/src/model/tokens/SDKTypographyToken.d.ts +20 -0
- package/build/sdk-typescript/src/model/tokens/SDKVisibilityToken.d.ts +18 -0
- package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenData.d.ts +105 -0
- package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenModel.d.ts +64 -0
- package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenValue.d.ts +111 -0
- package/build/sdk-typescript/src/model/users/SDKUser.d.ts +53 -0
- package/build/sdk-typescript/src/model/users/SDKUserMembership.d.ts +18 -0
- package/build/sdk-typescript/src/model/users/SDKUserProfile.d.ts +55 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +22 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceIPWhitelistSettings.d.ts +26 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +35 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvoice.d.ts +38 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceNPMRegistryAccessToken.d.ts +15 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceNPMRegistrySettings.d.ts +34 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceOnboarding.d.ts +30 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProduct.d.ts +21 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductFeatures.d.ts +32 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductPrice.d.ts +40 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProfile.d.ts +68 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSSOSettings.d.ts +19 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +85 -0
- package/build/sdk-typescript/src/pulsar-interfaces.d.ts +40 -0
- package/build/sdk-typescript/src/tests/Areas/AreaAssets.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Areas/AreaBatchUpdates.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Areas/AreaBrands.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Areas/AreaDesignSystems.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Areas/AreaDocumentation.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Areas/AreaMe.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Areas/AreaStorage.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Areas/AreaTokens.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Areas/AreaWorkspace.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/FigmaTokensDataLoader.d.ts +33 -0
- package/build/sdk-typescript/src/tests/Serialization/User.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Serialization/Workspace.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Serialization/WorkspaceIPWhitelistSettings.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Serialization/WorkspaceNPMRegistrySettings.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Serialization/WorkspaceOnboarding.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Serialization/WorkspaceSSOSettings.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Tooling/PluginFigmaTokens.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Tooling/PluginJSONBuilder.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Tooling/ReadTokens.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Tooling/TokensModel.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Tooling/ToolDocSearch.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Tooling/ToolMarkdownTransform.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/helpers.d.ts +7 -0
- package/build/sdk-typescript/src/tests/validators.d.ts +86 -0
- package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +56 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +39 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONGroupBuilder.d.ts +23 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +28 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +44 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +39 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapResolver.d.ts +7 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTThemeMerger.d.ts +15 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenGroupTreeMerger.d.ts +23 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenMerger.d.ts +16 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +48 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenSetResolver.d.ts +11 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/collection/SDKDTTokenCollection.d.ts +13 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/expression/SDKDTExpressionParser.d.ts +5 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTree.d.ts +12 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTreeNode.d.ts +17 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTParentChildMapping.d.ts +5 -0
- package/build/sdk-typescript/src/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +409 -0
- package/build/sdk-typescript/src/tools/json-builder/SDKToolsJSONBuilder.d.ts +58 -0
- package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementFigmaTokensTransformer.d.ts +37 -0
- package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementStyleDictionaryTransformer.d.ts +26 -0
- package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +68 -0
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +22 -0
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +75 -0
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +22 -0
- package/build/sdk-typescript/src/tools/search-index/SDKToolsDocSearch.d.ts +47 -0
- package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewGenerator.d.ts +20 -0
- package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewMetadataGenerator.d.ts +8 -0
- package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewReferenceInfoGenerator.d.ts +9 -0
- package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewSegmentGenerator.d.ts +7 -0
- package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewStyleGenerator.d.ts +8 -0
- package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewTypes.d.ts +68 -0
- package/build/sdk-typescript/src/tools/token-transform/SDKToolsTokenTransform.d.ts +42 -0
- package/build/sdk-typescript/src/utils/CommonUtils.d.ts +5 -0
- package/build/sdk-typescript/src/utils/ComponentUtils.d.ts +12 -0
- package/build/sdk-typescript/src/utils/FlowUtils.d.ts +5 -0
- package/build/sdk-typescript/src/utils/StringUtils.d.ts +72 -0
- package/build/sdk-typescript/src/utils/TokenUtils.d.ts +294 -0
- package/build/sdk-typescript/src/utils/UnreachableCaseError.d.ts +3 -0
- package/build/sdk-typescript/src/utils/deepPartial.d.ts +3 -0
- package/build/supernova-sdk-typescript.js +3 -0
- package/build/supernova-sdk-typescript.js.LICENSE.txt +8 -0
- package/build/supernova-sdk-typescript.js.map +1 -0
- package/package.json +127 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { TokenClassTypeMapToken } from "../../utils/TokenUtils";
|
|
3
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
4
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
5
|
+
import { DimensionTokenType, TokenType } from "../enums/SDKTokenType";
|
|
6
|
+
import { Unit } from "../enums/SDKUnit";
|
|
7
|
+
import { DimensionTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
8
|
+
import { AnyDimensionTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
9
|
+
import { Token } from "./SDKToken";
|
|
10
|
+
import { AnyDimensionTokenValue, BorderWidthTokenValue, DimensionTokenValue, DurationTokenValue, FontSizeTokenValue, LetterSpacingTokenValue, LineHeightTokenValue, OpacityTokenValue, ParagraphSpacingTokenValue, RadiusTokenValue, SizeTokenValue, SpaceTokenValue, ZIndexTokenValue } from "./SDKTokenValue";
|
|
11
|
+
export declare class DimensionCategoryToken<T extends AnyDimensionTokenValue> extends Token {
|
|
12
|
+
value: T;
|
|
13
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: T, alias: DimensionCategoryToken<T> | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
14
|
+
static create<TValue extends AnyDimensionTokenValue, TToken extends DimensionCategoryToken<TValue>>(this: new (...args: any[]) => TToken, type: DimensionTokenType, versionId: string, brandId: string, name: string, description: string, value: string | number, alias: TToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): TToken;
|
|
15
|
+
static getCompatibleUnit(unit: Unit, type: DimensionTokenType): Unit;
|
|
16
|
+
static getCompatibleMeasure(unit: Unit, type: DimensionTokenType, measure: number): number;
|
|
17
|
+
static getDefaultUnit(type: DimensionTokenType, parsedDefinition?: number): Unit.pixels | Unit.ms | Unit.raw;
|
|
18
|
+
static dimensionValueFromDefinition(definition: string | number, type: DimensionTokenType): OpacityTokenValue;
|
|
19
|
+
static parseDimension(definition: string, type: DimensionTokenType): {
|
|
20
|
+
measure: number;
|
|
21
|
+
unit: Unit;
|
|
22
|
+
};
|
|
23
|
+
static dimensionValueFromDefinitionOrReference(definition: any, referenceResolver: DTTokenReferenceResolver, tokenType: DimensionTokenType): BorderWidthTokenValue;
|
|
24
|
+
toString(): string;
|
|
25
|
+
static valueToString(value: AnyDimensionTokenValue, options?: {
|
|
26
|
+
maxNumberOfDecimals?: number;
|
|
27
|
+
clipTrailingZeroes?: boolean;
|
|
28
|
+
}): string;
|
|
29
|
+
static numberToString(value: number, options?: {
|
|
30
|
+
maxNumberOfDecimals?: number;
|
|
31
|
+
clipTrailingZeroes?: boolean;
|
|
32
|
+
}): string;
|
|
33
|
+
static unitToString(unit: Unit): string;
|
|
34
|
+
toWriteObject(): DimensionTokenRemoteModel;
|
|
35
|
+
static valueToWriteObject(value: AnyDimensionTokenValue): {
|
|
36
|
+
aliasTo: string | undefined;
|
|
37
|
+
value: AnyDimensionTokenRemoteValue;
|
|
38
|
+
};
|
|
39
|
+
static valueToInternalWriteObject(value: AnyDimensionTokenValue | null): AnyDimensionTokenValue | null;
|
|
40
|
+
}
|
|
41
|
+
export declare class DimensionToken extends DimensionCategoryToken<DimensionTokenValue> {
|
|
42
|
+
tokenType: TokenType.dimension;
|
|
43
|
+
}
|
|
44
|
+
export declare class SizeToken extends DimensionCategoryToken<SizeTokenValue> {
|
|
45
|
+
tokenType: TokenType.size;
|
|
46
|
+
}
|
|
47
|
+
export declare class SpaceToken extends DimensionCategoryToken<SpaceTokenValue> {
|
|
48
|
+
tokenType: TokenType.space;
|
|
49
|
+
}
|
|
50
|
+
export declare class OpacityToken extends DimensionCategoryToken<OpacityTokenValue> {
|
|
51
|
+
tokenType: TokenType.opacity;
|
|
52
|
+
}
|
|
53
|
+
export declare class FontSizeToken extends DimensionCategoryToken<FontSizeTokenValue> {
|
|
54
|
+
tokenType: TokenType.fontSize;
|
|
55
|
+
}
|
|
56
|
+
export declare class LineHeightToken extends DimensionCategoryToken<LineHeightTokenValue> {
|
|
57
|
+
tokenType: TokenType.lineHeight;
|
|
58
|
+
}
|
|
59
|
+
export declare class LetterSpacingToken extends DimensionCategoryToken<LetterSpacingTokenValue> {
|
|
60
|
+
tokenType: TokenType.letterSpacing;
|
|
61
|
+
}
|
|
62
|
+
export declare class ParagraphSpacingToken extends DimensionCategoryToken<ParagraphSpacingTokenValue> {
|
|
63
|
+
tokenType: TokenType.paragraphSpacing;
|
|
64
|
+
}
|
|
65
|
+
export declare class BorderWidthToken extends DimensionCategoryToken<BorderWidthTokenValue> {
|
|
66
|
+
tokenType: TokenType.borderWidth;
|
|
67
|
+
}
|
|
68
|
+
export declare class RadiusToken extends DimensionCategoryToken<RadiusTokenValue> {
|
|
69
|
+
tokenType: TokenType.radius;
|
|
70
|
+
}
|
|
71
|
+
export declare class DurationToken extends DimensionCategoryToken<DurationTokenValue> {
|
|
72
|
+
tokenType: TokenType.duration;
|
|
73
|
+
}
|
|
74
|
+
export declare class ZIndexToken extends DimensionCategoryToken<ZIndexTokenValue> {
|
|
75
|
+
tokenType: TokenType.zIndex;
|
|
76
|
+
}
|
|
77
|
+
export type AnyDimensionToken = DimensionToken | SizeToken | SpaceToken | OpacityToken | FontSizeToken | LineHeightToken | LetterSpacingToken | ParagraphSpacingToken | BorderWidthToken | RadiusToken | DurationToken | ZIndexToken;
|
|
78
|
+
export declare const resolveDimension: <TK extends TokenType.radius | TokenType.borderWidth | TokenType.duration | TokenType.fontSize | TokenType.dimension | TokenType.letterSpacing | TokenType.lineHeight | TokenType.opacity | TokenType.paragraphSpacing | TokenType.size | TokenType.space | TokenType.zIndex>(type: TK) => {
|
|
79
|
+
Color: typeof import("./SDKColorToken").ColorToken;
|
|
80
|
+
Typography: typeof import("./SDKTypographyToken").TypographyToken;
|
|
81
|
+
Blur: typeof import("./SDKBlurToken").BlurToken;
|
|
82
|
+
Border: typeof import("./SDKBorderToken").BorderToken;
|
|
83
|
+
Shadow: typeof import("./SDKShadowToken").ShadowToken;
|
|
84
|
+
Gradient: typeof import("./SDKGradientToken").GradientToken;
|
|
85
|
+
String: typeof import("./SDKStringToken").StringToken;
|
|
86
|
+
ProductCopy: typeof import("./SDKStringToken").ProductCopyToken;
|
|
87
|
+
FontFamily: typeof import("./SDKStringToken").FontFamilyToken;
|
|
88
|
+
FontWeight: typeof import("./SDKStringToken").FontWeightToken;
|
|
89
|
+
TextCase: typeof import("./SDKTextCaseToken").TextCaseToken;
|
|
90
|
+
TextDecoration: typeof import("./SDKTextDecorationToken").TextDecorationToken;
|
|
91
|
+
Visibility: typeof import("./SDKVisibilityToken").VisibilityToken;
|
|
92
|
+
BorderWidth: typeof BorderWidthToken;
|
|
93
|
+
Dimension: typeof DimensionToken;
|
|
94
|
+
Size: typeof SizeToken;
|
|
95
|
+
Space: typeof SpaceToken;
|
|
96
|
+
Opacity: typeof OpacityToken;
|
|
97
|
+
FontSize: typeof FontSizeToken;
|
|
98
|
+
LineHeight: typeof LineHeightToken;
|
|
99
|
+
LetterSpacing: typeof LetterSpacingToken;
|
|
100
|
+
ParagraphSpacing: typeof ParagraphSpacingToken;
|
|
101
|
+
BorderRadius: typeof RadiusToken;
|
|
102
|
+
Duration: typeof DurationToken;
|
|
103
|
+
ZIndex: typeof ZIndexToken;
|
|
104
|
+
}[TK];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
3
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
4
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
5
|
+
import { GradientTokenRemoteData } from "./remote/SDKRemoteTokenData";
|
|
6
|
+
import { GradientTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
7
|
+
import { GradientTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
8
|
+
import { Token } from "./SDKToken";
|
|
9
|
+
import { GradientTokenValue } from "./SDKTokenValue";
|
|
10
|
+
export declare class GradientToken extends Token {
|
|
11
|
+
value: GradientTokenValue[];
|
|
12
|
+
gradientLayers: Array<GradientToken>;
|
|
13
|
+
isVirtual: boolean;
|
|
14
|
+
tokenType: TokenType.gradient;
|
|
15
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: GradientTokenValue[], alias: GradientToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
16
|
+
static create(versionId: string, brandId: string, name: string, description: string, value: string, alias: GradientToken | null, referenceResolver: DTTokenReferenceResolver, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): GradientToken;
|
|
17
|
+
static gradientValueFromDefinition(definition: object | string, referenceResolver: DTTokenReferenceResolver): GradientTokenValue[];
|
|
18
|
+
static gradientSingleValueFromDefinition(definition: string, referenceResolver: DTTokenReferenceResolver): GradientTokenValue;
|
|
19
|
+
static gradientValueFromDefinitionOrReference(definition: any, referenceResolver: DTTokenReferenceResolver): GradientTokenValue[] | undefined;
|
|
20
|
+
toWriteObject(): GradientTokenRemoteModel;
|
|
21
|
+
static valueToWriteObject(value: GradientTokenValue[]): GradientTokenRemoteData;
|
|
22
|
+
static singleValueToWriteObject(value: GradientTokenValue): {
|
|
23
|
+
aliasTo: string | undefined;
|
|
24
|
+
value: GradientTokenRemoteValue;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
3
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
4
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
5
|
+
import { ShadowTokenRemoteData } from "./remote/SDKRemoteTokenData";
|
|
6
|
+
import { ShadowTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
7
|
+
import { ShadowTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
8
|
+
import { Token } from "./SDKToken";
|
|
9
|
+
import { ShadowTokenValue } from "./SDKTokenValue";
|
|
10
|
+
export declare class ShadowToken extends Token {
|
|
11
|
+
value: Array<ShadowTokenValue>;
|
|
12
|
+
shadowLayers: Array<ShadowToken>;
|
|
13
|
+
isVirtual: boolean;
|
|
14
|
+
tokenType: TokenType.shadow;
|
|
15
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: ShadowTokenValue[], alias: ShadowToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
16
|
+
static create(versionId: string, brandId: string, name: string, description: string, value: object, alias: ShadowToken | null, referenceResolver: DTTokenReferenceResolver, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): ShadowToken;
|
|
17
|
+
static shadowValueFromDefinition(definition: object, referenceResolver: DTTokenReferenceResolver): ShadowTokenValue[];
|
|
18
|
+
static shadowTokenColorAndOpacityToHex8(shadowTokenValue: ShadowTokenValue): string;
|
|
19
|
+
static shadowSingleValueFromDefinition(definition: object, referenceResolver: DTTokenReferenceResolver): ShadowTokenValue;
|
|
20
|
+
toWriteObject(): ShadowTokenRemoteModel;
|
|
21
|
+
static valueToWriteObject(value: ShadowTokenValue[]): ShadowTokenRemoteData;
|
|
22
|
+
static singleValueToWriteObject(value: ShadowTokenValue): {
|
|
23
|
+
aliasTo: string | undefined;
|
|
24
|
+
value: ShadowTokenRemoteValue;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { TokenClassTypeMapToken } from "../../utils/TokenUtils";
|
|
3
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
4
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
5
|
+
import { StringTokenType, TokenType } from "../enums/SDKTokenType";
|
|
6
|
+
import { StringTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
7
|
+
import { StringTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
8
|
+
import { Token } from "./SDKToken";
|
|
9
|
+
import { AnyStringTokenValue, FontFamilyTokenValue, FontWeightTokenValue, ProductCopyTokenValue, StringTokenValue } from "./SDKTokenValue";
|
|
10
|
+
export declare class StringCategoryToken<T extends AnyStringTokenValue> extends Token {
|
|
11
|
+
value: T;
|
|
12
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: T, alias: StringCategoryToken<T> | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
13
|
+
static create<TValue extends AnyStringTokenValue, TToken extends StringCategoryToken<TValue>>(this: new (...args: any[]) => TToken, type: StringTokenType, versionId: string, brandId: string, name: string, description: string, value: string | number, alias: TToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): TToken;
|
|
14
|
+
static stringValueFromDefinitionOrReference(definition: any, referenceResolver: DTTokenReferenceResolver, tokenType: StringTokenType): AnyStringTokenValue | undefined;
|
|
15
|
+
static stringValueFromDefinition(definition: string, tokenType: StringTokenType): AnyStringTokenValue;
|
|
16
|
+
toWriteObject(): StringTokenRemoteModel;
|
|
17
|
+
static valueToWriteObject(value: AnyStringTokenValue): {
|
|
18
|
+
aliasTo: string | undefined;
|
|
19
|
+
value: StringTokenRemoteValue;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare class StringToken extends StringCategoryToken<StringTokenValue> {
|
|
23
|
+
tokenType: TokenType.string;
|
|
24
|
+
}
|
|
25
|
+
export declare class ProductCopyToken extends StringCategoryToken<ProductCopyTokenValue> {
|
|
26
|
+
tokenType: TokenType.productCopy;
|
|
27
|
+
}
|
|
28
|
+
export declare class FontFamilyToken extends StringCategoryToken<FontFamilyTokenValue> {
|
|
29
|
+
tokenType: TokenType.fontFamily;
|
|
30
|
+
}
|
|
31
|
+
export declare class FontWeightToken extends StringCategoryToken<FontWeightTokenValue> {
|
|
32
|
+
tokenType: TokenType.fontWeight;
|
|
33
|
+
}
|
|
34
|
+
export type AnyStringToken = StringToken | ProductCopyToken | FontFamilyToken | FontWeightToken;
|
|
35
|
+
export declare const resolveString: <TK extends TokenType.fontFamily | TokenType.fontWeight | TokenType.string | TokenType.productCopy>(type: TK) => {
|
|
36
|
+
Color: typeof import("./SDKColorToken").ColorToken;
|
|
37
|
+
Typography: typeof import("./SDKTypographyToken").TypographyToken;
|
|
38
|
+
Blur: typeof import("./SDKBlurToken").BlurToken;
|
|
39
|
+
Border: typeof import("./SDKBorderToken").BorderToken;
|
|
40
|
+
Shadow: typeof import("./SDKShadowToken").ShadowToken;
|
|
41
|
+
Gradient: typeof import("./SDKGradientToken").GradientToken;
|
|
42
|
+
String: typeof StringToken;
|
|
43
|
+
ProductCopy: typeof ProductCopyToken;
|
|
44
|
+
FontFamily: typeof FontFamilyToken;
|
|
45
|
+
FontWeight: typeof FontWeightToken;
|
|
46
|
+
TextCase: typeof import("./SDKTextCaseToken").TextCaseToken;
|
|
47
|
+
TextDecoration: typeof import("./SDKTextDecorationToken").TextDecorationToken;
|
|
48
|
+
Visibility: typeof import("./SDKVisibilityToken").VisibilityToken;
|
|
49
|
+
BorderWidth: typeof import("./SDKDimensionToken").BorderWidthToken;
|
|
50
|
+
Dimension: typeof import("./SDKDimensionToken").DimensionToken;
|
|
51
|
+
Size: typeof import("./SDKDimensionToken").SizeToken;
|
|
52
|
+
Space: typeof import("./SDKDimensionToken").SpaceToken;
|
|
53
|
+
Opacity: typeof import("./SDKDimensionToken").OpacityToken;
|
|
54
|
+
FontSize: typeof import("./SDKDimensionToken").FontSizeToken;
|
|
55
|
+
LineHeight: typeof import("./SDKDimensionToken").LineHeightToken;
|
|
56
|
+
LetterSpacing: typeof import("./SDKDimensionToken").LetterSpacingToken;
|
|
57
|
+
ParagraphSpacing: typeof import("./SDKDimensionToken").ParagraphSpacingToken;
|
|
58
|
+
BorderRadius: typeof import("./SDKDimensionToken").RadiusToken;
|
|
59
|
+
Duration: typeof import("./SDKDimensionToken").DurationToken;
|
|
60
|
+
ZIndex: typeof import("./SDKDimensionToken").ZIndexToken;
|
|
61
|
+
}[TK];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
2
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
3
|
+
import { TextCase } from "../enums/SDKTextCase";
|
|
4
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
5
|
+
import { TextCaseTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
6
|
+
import { TextCaseTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
7
|
+
import { Token } from "./SDKToken";
|
|
8
|
+
import { TextCaseTokenValue } from "./SDKTokenValue";
|
|
9
|
+
export declare class TextCaseToken extends Token {
|
|
10
|
+
value: TextCaseTokenValue;
|
|
11
|
+
tokenType: TokenType.textCase;
|
|
12
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: TextCaseTokenValue, alias: TextCaseToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
13
|
+
static create(versionId: string, brandId: string, name: string, description: string, value: string, alias: TextCaseToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): TextCaseToken;
|
|
14
|
+
static textCaseFromDefinition(textCase: string): {
|
|
15
|
+
value: TextCase;
|
|
16
|
+
referencedTokenId: null;
|
|
17
|
+
};
|
|
18
|
+
toWriteObject(): TextCaseTokenRemoteModel;
|
|
19
|
+
static valueToWriteObject(value: TextCaseTokenValue): {
|
|
20
|
+
aliasTo: string | undefined;
|
|
21
|
+
value: TextCaseTokenRemoteValue;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
3
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
4
|
+
import { TextDecoration } from "../enums/SDKTextDecoration";
|
|
5
|
+
import { OptionTokenType, TokenType } from "../enums/SDKTokenType";
|
|
6
|
+
import { TextCaseTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
7
|
+
import { TextDecorationTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
8
|
+
import { Token } from "./SDKToken";
|
|
9
|
+
import { AnyOptionTokenValue, TextDecorationTokenValue } from "./SDKTokenValue";
|
|
10
|
+
export declare class TextDecorationToken extends Token {
|
|
11
|
+
value: TextDecorationTokenValue;
|
|
12
|
+
tokenType: TokenType.textDecoration;
|
|
13
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: TextDecorationTokenValue, alias: TextDecorationToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
14
|
+
static create(versionId: string, brandId: string, name: string, description: string, value: string, alias: TextDecorationToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): TextDecorationToken;
|
|
15
|
+
static textDecorationFromDefinition(textDecoration: string): {
|
|
16
|
+
value: TextDecoration;
|
|
17
|
+
referencedTokenId: null;
|
|
18
|
+
};
|
|
19
|
+
static optionValueFromDefinitionOrReference(definition: any, referenceResolver: DTTokenReferenceResolver, tokenType: OptionTokenType): AnyOptionTokenValue;
|
|
20
|
+
static optionValueFromDefinition(definition: string, type: OptionTokenType): AnyOptionTokenValue;
|
|
21
|
+
toWriteObject(): TextCaseTokenRemoteModel;
|
|
22
|
+
static valueToWriteObject(value: TextDecorationTokenValue): {
|
|
23
|
+
aliasTo: string | undefined;
|
|
24
|
+
value: TextDecorationTokenRemoteValue;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
2
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
3
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
4
|
+
import { TokenOrigin } from "../support/SDKTokenOrigin";
|
|
5
|
+
import { TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
6
|
+
import { TokenValue } from "./SDKTokenValue";
|
|
7
|
+
export declare class Token implements TokenValue {
|
|
8
|
+
/** Persistent id of the token. This id never changes across versions */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Version id of the token. This id changes whenever a new version is created, and each version of the token in version has different id */
|
|
11
|
+
idInVersion: string;
|
|
12
|
+
/** Persistent id of the brand. This id never changes as tokens can't be moved across the brands */
|
|
13
|
+
brandId: string;
|
|
14
|
+
themeId: string | null;
|
|
15
|
+
designSystemVersionId: string;
|
|
16
|
+
name: string;
|
|
17
|
+
description: string;
|
|
18
|
+
tokenType: TokenType;
|
|
19
|
+
origin: TokenOrigin | null;
|
|
20
|
+
parentGroupId: string;
|
|
21
|
+
sortOrder: number;
|
|
22
|
+
properties: Array<ElementProperty>;
|
|
23
|
+
propertyValues: {
|
|
24
|
+
[key: string]: string | boolean | number;
|
|
25
|
+
};
|
|
26
|
+
createdAt: Date | null;
|
|
27
|
+
updatedAt: Date | null;
|
|
28
|
+
constructor(model: TokenRemoteModel, versionId: string, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>, empty?: boolean);
|
|
29
|
+
setParentGroupId(parentGroupId: string | null): void;
|
|
30
|
+
setSortOrder(order: number): void;
|
|
31
|
+
toBaseWriteObject(): TokenRemoteModel;
|
|
32
|
+
toWriteObject(): TokenRemoteModel;
|
|
33
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Token } from "./SDKToken";
|
|
2
|
+
import { AnyDimensionTokenValue, AnyOptionTokenValue, AnyPlainTokenValue, AnyStringTokenValue, BlurTokenValue, BorderTokenValue, ColorTokenValue, GradientStopValue, GradientTokenValue, ShadowTokenValue, TypographyTokenValue } from "./SDKTokenValue";
|
|
3
|
+
export declare class TokenComparator {
|
|
4
|
+
static isEqualTokenValue(a: Token, b: Token): boolean;
|
|
5
|
+
static referencesSameToken(a: AnyPlainTokenValue, b: AnyPlainTokenValue): boolean;
|
|
6
|
+
static anyIsReference(a: AnyPlainTokenValue, b: AnyPlainTokenValue): boolean;
|
|
7
|
+
static isUndefinedValue(a: AnyPlainTokenValue | undefined | null, b: AnyPlainTokenValue | undefined | null): boolean;
|
|
8
|
+
static isEqualBlurTokenValue(a: BlurTokenValue, b: BlurTokenValue): boolean;
|
|
9
|
+
static isEqualBorderTokenValue(a: BorderTokenValue, b: BorderTokenValue): boolean;
|
|
10
|
+
static isEqualColorTokenValue(a: ColorTokenValue, b: ColorTokenValue): boolean;
|
|
11
|
+
static isEqualGradientsTokenValue(a: GradientTokenValue[], b: GradientTokenValue[]): boolean;
|
|
12
|
+
static isEqualGradientTokenValue(a: GradientTokenValue, b: GradientTokenValue): boolean;
|
|
13
|
+
static isEqualGradientStops(a: Array<GradientStopValue>, b: Array<GradientStopValue>): boolean;
|
|
14
|
+
static isEqualDimensionTokenValue(a: AnyDimensionTokenValue | undefined | null, b: AnyDimensionTokenValue | undefined | null): boolean;
|
|
15
|
+
static isEqualShadowsTokenValue(a: ShadowTokenValue[], b: ShadowTokenValue[]): boolean;
|
|
16
|
+
static isEqualShadowTokenValue(a: ShadowTokenValue, b: ShadowTokenValue): boolean;
|
|
17
|
+
static isEqualStringTokenValue(a: AnyStringTokenValue, b: AnyStringTokenValue): boolean;
|
|
18
|
+
static isEqualOptionTokenValue(a: AnyOptionTokenValue, b: AnyOptionTokenValue): boolean;
|
|
19
|
+
static isEqualTypographyTokenValue(a: TypographyTokenValue, b: TypographyTokenValue): boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { BlurType } from "../enums/SDKBlurType";
|
|
2
|
+
import { BorderPosition } from "../enums/SDKBorderPosition";
|
|
3
|
+
import { BorderStyle } from "../enums/SDKBorderStyle";
|
|
4
|
+
import { GradientType } from "../enums/SDKGradientType";
|
|
5
|
+
import { ShadowType } from "../enums/SDKShadowType";
|
|
6
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
7
|
+
import { LineHeightUnit, MsUnit, PxUnit, RawUnit, SizeUnit, Unit } from "../enums/SDKUnit";
|
|
8
|
+
import { TokenOrigin } from "../support/SDKTokenOrigin";
|
|
9
|
+
import { BlurToken } from "./SDKBlurToken";
|
|
10
|
+
import { BorderToken } from "./SDKBorderToken";
|
|
11
|
+
import { ColorToken } from "./SDKColorToken";
|
|
12
|
+
import { AnyDimensionToken } from "./SDKDimensionToken";
|
|
13
|
+
import { GradientToken } from "./SDKGradientToken";
|
|
14
|
+
import { ShadowToken } from "./SDKShadowToken";
|
|
15
|
+
import { AnyStringToken } from "./SDKStringToken";
|
|
16
|
+
import { TextCaseToken } from "./SDKTextCaseToken";
|
|
17
|
+
import { TextDecorationToken } from "./SDKTextDecorationToken";
|
|
18
|
+
import { Token } from "./SDKToken";
|
|
19
|
+
import { TypographyToken } from "./SDKTypographyToken";
|
|
20
|
+
import { VisibilityToken } from "./SDKVisibilityToken";
|
|
21
|
+
export type TokenValue = {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
tokenType: TokenType;
|
|
26
|
+
origin: TokenOrigin | null;
|
|
27
|
+
};
|
|
28
|
+
export type ColorTokenValue = {
|
|
29
|
+
color: ColorValue;
|
|
30
|
+
opacity: OpacityTokenValue;
|
|
31
|
+
referencedTokenId: string | null;
|
|
32
|
+
};
|
|
33
|
+
export type ColorValue = {
|
|
34
|
+
r: number;
|
|
35
|
+
g: number;
|
|
36
|
+
b: number;
|
|
37
|
+
referencedTokenId: string | null;
|
|
38
|
+
};
|
|
39
|
+
export type TypographyTokenValue = {
|
|
40
|
+
fontFamily: FontFamilyTokenValue;
|
|
41
|
+
fontWeight: FontWeightTokenValue;
|
|
42
|
+
fontSize: FontSizeTokenValue;
|
|
43
|
+
textDecoration: TextDecorationTokenValue;
|
|
44
|
+
textCase: TextCaseTokenValue;
|
|
45
|
+
letterSpacing: LetterSpacingTokenValue;
|
|
46
|
+
lineHeight: LineHeightTokenValue | null;
|
|
47
|
+
paragraphIndent: ParagraphSpacingTokenValue;
|
|
48
|
+
paragraphSpacing: ParagraphSpacingTokenValue;
|
|
49
|
+
referencedTokenId: string | null;
|
|
50
|
+
};
|
|
51
|
+
export type ShadowTokenValue = {
|
|
52
|
+
color: ColorTokenValue;
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
radius: number;
|
|
56
|
+
spread: number;
|
|
57
|
+
opacity?: OpacityTokenValue;
|
|
58
|
+
type: ShadowType;
|
|
59
|
+
referencedTokenId: string | null;
|
|
60
|
+
};
|
|
61
|
+
export type DimensionTokenValue = {
|
|
62
|
+
unit: Unit;
|
|
63
|
+
measure: number;
|
|
64
|
+
referencedTokenId: string | null;
|
|
65
|
+
};
|
|
66
|
+
export type SizeTokenValue = {
|
|
67
|
+
unit: SizeUnit;
|
|
68
|
+
measure: number;
|
|
69
|
+
referencedTokenId: string | null;
|
|
70
|
+
};
|
|
71
|
+
export type SpaceTokenValue = {
|
|
72
|
+
unit: SizeUnit;
|
|
73
|
+
measure: number;
|
|
74
|
+
referencedTokenId: string | null;
|
|
75
|
+
};
|
|
76
|
+
export type OpacityTokenValue = {
|
|
77
|
+
unit: RawUnit;
|
|
78
|
+
measure: number;
|
|
79
|
+
referencedTokenId: string | null;
|
|
80
|
+
};
|
|
81
|
+
export type FontSizeTokenValue = {
|
|
82
|
+
unit: SizeUnit;
|
|
83
|
+
measure: number;
|
|
84
|
+
referencedTokenId: string | null;
|
|
85
|
+
};
|
|
86
|
+
export type LineHeightTokenValue = {
|
|
87
|
+
unit: LineHeightUnit;
|
|
88
|
+
measure: number;
|
|
89
|
+
referencedTokenId: string | null;
|
|
90
|
+
};
|
|
91
|
+
export type LetterSpacingTokenValue = {
|
|
92
|
+
unit: SizeUnit;
|
|
93
|
+
measure: number;
|
|
94
|
+
referencedTokenId: string | null;
|
|
95
|
+
};
|
|
96
|
+
export type ParagraphSpacingTokenValue = {
|
|
97
|
+
unit: SizeUnit;
|
|
98
|
+
measure: number;
|
|
99
|
+
referencedTokenId: string | null;
|
|
100
|
+
};
|
|
101
|
+
export type BorderWidthTokenValue = {
|
|
102
|
+
unit: PxUnit;
|
|
103
|
+
measure: number;
|
|
104
|
+
referencedTokenId: string | null;
|
|
105
|
+
};
|
|
106
|
+
export type RadiusTokenValue = {
|
|
107
|
+
unit: PxUnit;
|
|
108
|
+
measure: number;
|
|
109
|
+
referencedTokenId: string | null;
|
|
110
|
+
};
|
|
111
|
+
export type DurationTokenValue = {
|
|
112
|
+
unit: MsUnit;
|
|
113
|
+
measure: number;
|
|
114
|
+
referencedTokenId: string | null;
|
|
115
|
+
};
|
|
116
|
+
export type ZIndexTokenValue = {
|
|
117
|
+
unit: RawUnit;
|
|
118
|
+
measure: number;
|
|
119
|
+
referencedTokenId: string | null;
|
|
120
|
+
};
|
|
121
|
+
export type AnyDimensionTokenValue = DimensionTokenValue | SizeTokenValue | SpaceTokenValue | OpacityTokenValue | FontSizeTokenValue | LineHeightTokenValue | LetterSpacingTokenValue | ParagraphSpacingTokenValue | BorderWidthTokenValue | RadiusTokenValue | DurationTokenValue | ZIndexTokenValue;
|
|
122
|
+
export type BorderTokenValue = {
|
|
123
|
+
color: ColorTokenValue;
|
|
124
|
+
width: BorderWidthTokenValue;
|
|
125
|
+
position: BorderPosition;
|
|
126
|
+
style: BorderStyle;
|
|
127
|
+
referencedTokenId: string | null;
|
|
128
|
+
};
|
|
129
|
+
export type GradientTokenValue = {
|
|
130
|
+
to: {
|
|
131
|
+
x: number;
|
|
132
|
+
y: number;
|
|
133
|
+
};
|
|
134
|
+
from: {
|
|
135
|
+
x: number;
|
|
136
|
+
y: number;
|
|
137
|
+
};
|
|
138
|
+
type: GradientType;
|
|
139
|
+
aspectRatio: number;
|
|
140
|
+
stops: Array<GradientStopValue>;
|
|
141
|
+
referencedTokenId: string | null;
|
|
142
|
+
};
|
|
143
|
+
export type GradientStopValue = {
|
|
144
|
+
position: number;
|
|
145
|
+
color: ColorTokenValue;
|
|
146
|
+
};
|
|
147
|
+
export type StringTokenValue = {
|
|
148
|
+
text: string;
|
|
149
|
+
referencedTokenId: string | null;
|
|
150
|
+
};
|
|
151
|
+
export type ProductCopyTokenValue = {
|
|
152
|
+
text: string;
|
|
153
|
+
referencedTokenId: string | null;
|
|
154
|
+
};
|
|
155
|
+
export type FontFamilyTokenValue = {
|
|
156
|
+
text: string;
|
|
157
|
+
referencedTokenId: string | null;
|
|
158
|
+
};
|
|
159
|
+
export type FontWeightTokenValue = {
|
|
160
|
+
text: string;
|
|
161
|
+
referencedTokenId: string | null;
|
|
162
|
+
};
|
|
163
|
+
export type AnyStringTokenValue = StringTokenValue | ProductCopyTokenValue | FontFamilyTokenValue | FontWeightTokenValue;
|
|
164
|
+
export type TextCaseTokenValue = {
|
|
165
|
+
value: string;
|
|
166
|
+
options?: string[];
|
|
167
|
+
referencedTokenId: string | null;
|
|
168
|
+
};
|
|
169
|
+
export type TextDecorationTokenValue = {
|
|
170
|
+
value: string;
|
|
171
|
+
options?: string[];
|
|
172
|
+
referencedTokenId: string | null;
|
|
173
|
+
};
|
|
174
|
+
export type VisibilityTokenValue = {
|
|
175
|
+
value: string;
|
|
176
|
+
options?: string[];
|
|
177
|
+
referencedTokenId: string | null;
|
|
178
|
+
};
|
|
179
|
+
export type AnyOptionTokenValue = TextCaseTokenValue | TextDecorationTokenValue | VisibilityTokenValue;
|
|
180
|
+
export type AnyOptionToken = TextCaseToken | TextDecorationToken | VisibilityToken;
|
|
181
|
+
export type BlurTokenValue = {
|
|
182
|
+
type: BlurType;
|
|
183
|
+
radius: DimensionTokenValue;
|
|
184
|
+
referencedTokenId: string | null;
|
|
185
|
+
};
|
|
186
|
+
export type AnyTokenValue = ColorTokenValue | AnyStringTokenValue | TypographyTokenValue | ShadowTokenValue[] | AnyDimensionTokenValue | BorderTokenValue | GradientTokenValue[] | BlurTokenValue | AnyOptionTokenValue;
|
|
187
|
+
export type AnyToken = ColorToken | AnyStringToken | TypographyToken | ShadowToken | AnyDimensionToken | BorderToken | GradientToken | BlurToken | AnyOptionToken;
|
|
188
|
+
export type AnySingleLayerToken = Exclude<AnyToken, ShadowToken | GradientToken>;
|
|
189
|
+
export type AnyMultiLayerToken = ShadowToken | GradientToken;
|
|
190
|
+
export type AnyMultiLayerTokenValue = ShadowTokenValue | GradientTokenValue;
|
|
191
|
+
export type AnyPlainTokenValue = Exclude<AnyTokenValue, ShadowTokenValue[] | GradientTokenValue[]> | ShadowTokenValue | GradientTokenValue;
|
|
192
|
+
export type RawValue<T extends {
|
|
193
|
+
referencedTokenId: string;
|
|
194
|
+
}> = Omit<T, "referencedTokenId">;
|
|
195
|
+
export declare const getReferencedTokens: (token: AnyToken, allTokens: Map<string, Token>) => (Token | undefined)[];
|
|
196
|
+
export declare const getSingleReferencedTokenId: (token: AnyToken, allTokens: Map<string, Token>) => string | undefined;
|
|
197
|
+
export declare const checkSingleReferencedTokenById: (token: AnyToken, candidateId: string, allTokens: Map<string, Token>) => boolean | "";
|
|
198
|
+
export declare const replaceReferencedTokenIds: (token: AnyToken, currentId: string, newId: string, allTokens: Map<string, Token>) => void;
|
|
199
|
+
export declare const replaceReferencedToken: (token: Token, existingToken: AnyToken, newToken: AnyToken) => void;
|
|
200
|
+
export declare const replaceReferencedTokenByIds: (token: Token, existingTokenId: string, newTokenId: string) => void;
|
|
201
|
+
export declare const replaceOriginReferencePersistentIdByIds: (token: Token, existingTokenId: string, newTokenId: string) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
3
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
4
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
5
|
+
import { TokenRemoteModel, TypographyTokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
6
|
+
import { TypographyTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
7
|
+
import { Token } from "./SDKToken";
|
|
8
|
+
import { TypographyTokenValue } from "./SDKTokenValue";
|
|
9
|
+
export declare class TypographyToken extends Token {
|
|
10
|
+
value: TypographyTokenValue;
|
|
11
|
+
tokenType: TokenType.typography;
|
|
12
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: TypographyTokenValue, alias: TypographyToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
13
|
+
static create(versionId: string, brandId: string, name: string, description: string, value: object, alias: TypographyToken | null, referenceResolver: DTTokenReferenceResolver, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): TypographyToken;
|
|
14
|
+
static typographyValueFromDefinition(definition: any, referenceResolver: DTTokenReferenceResolver): TypographyTokenValue;
|
|
15
|
+
toWriteObject(): TypographyTokenRemoteModel;
|
|
16
|
+
static valueToWriteObject(value: TypographyTokenValue): {
|
|
17
|
+
aliasTo: string | undefined;
|
|
18
|
+
value: TypographyTokenRemoteValue;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
2
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
3
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
4
|
+
import { TextCaseTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
5
|
+
import { VisibilityTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
6
|
+
import { Token } from "./SDKToken";
|
|
7
|
+
import { VisibilityTokenValue } from "./SDKTokenValue";
|
|
8
|
+
export declare class VisibilityToken extends Token {
|
|
9
|
+
value: VisibilityTokenValue;
|
|
10
|
+
tokenType: TokenType.visibility;
|
|
11
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: VisibilityTokenValue, alias: VisibilityToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
12
|
+
static create(versionId: string, brandId: string, name: string, description: string, value: string, alias: VisibilityToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): VisibilityToken;
|
|
13
|
+
toWriteObject(): TextCaseTokenRemoteModel;
|
|
14
|
+
static valueToWriteObject(value: VisibilityTokenValue): {
|
|
15
|
+
aliasTo: string | undefined;
|
|
16
|
+
value: VisibilityTokenRemoteValue;
|
|
17
|
+
};
|
|
18
|
+
}
|