@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,58 @@
|
|
|
1
|
+
import { Supernova } from "../../core/SDKSupernova";
|
|
2
|
+
import { TokenType } from "../../model/enums/SDKTokenType";
|
|
3
|
+
import { TokenGroup } from "../../model/groups/SDKTokenGroup";
|
|
4
|
+
import { Token } from "../../model/tokens/SDKToken";
|
|
5
|
+
export type TokenJSONBuilderOptions = {
|
|
6
|
+
/** Conversion method to be used for token names. Original will use actual token name */
|
|
7
|
+
naming: JSONBuilderNamingOption;
|
|
8
|
+
/** When enabled, brandId will be included in every token */
|
|
9
|
+
includeBrandId: boolean;
|
|
10
|
+
/** When enabled, comments will be included in tokens that have description */
|
|
11
|
+
includeComments: boolean;
|
|
12
|
+
/** When provided, tokens will be filtered to only show tokens belonging to this brand */
|
|
13
|
+
brandId: string | null;
|
|
14
|
+
/** When enabled, type will be included in every token */
|
|
15
|
+
includeType: boolean;
|
|
16
|
+
/** When enabled, root category node will be generated. If type === null, multiple root nodes will be generated, one for each type */
|
|
17
|
+
includeRootTypeNodes: boolean;
|
|
18
|
+
/** When provided, only tokens of one category will be generated. Providing null will generate all tokens regardless of type */
|
|
19
|
+
type: TokenType | null;
|
|
20
|
+
/** When enabled, output will be split into multiple files. Ignored for now */
|
|
21
|
+
multifile: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type TokenJSONBuilderOptionsInternal = TokenJSONBuilderOptions & {
|
|
24
|
+
consumerMode: ConsumerMode;
|
|
25
|
+
};
|
|
26
|
+
export declare enum JSONBuilderNamingOption {
|
|
27
|
+
original = "original",
|
|
28
|
+
camelcase = "camelcase",
|
|
29
|
+
snakecase = "snakecase",
|
|
30
|
+
kebabcase = "kebabcase"
|
|
31
|
+
}
|
|
32
|
+
declare enum ConsumerMode {
|
|
33
|
+
styleDictionary = 0,
|
|
34
|
+
figmaTokens = 1
|
|
35
|
+
}
|
|
36
|
+
/** JSON builder tooling object. Allows to build full token JSON definition for different styles of outputs, like Style Dictionary or Figma Tokens plugin */
|
|
37
|
+
export declare class TokenJSONBuilder {
|
|
38
|
+
private instance;
|
|
39
|
+
private version;
|
|
40
|
+
private designSystemId;
|
|
41
|
+
private versionId;
|
|
42
|
+
private tokenTransformer;
|
|
43
|
+
constructor(instance: Supernova, designSystemId: string, versionId: string);
|
|
44
|
+
/** Fetches all tokens available for selected design system version, and converts them to style dictionary representation. */
|
|
45
|
+
styleDictionaryRepresentation(options: TokenJSONBuilderOptions): Promise<{}>;
|
|
46
|
+
/** Fetches all tokens available for selected design system version, and converts them to figma tokens representation. */
|
|
47
|
+
figmaTokensRepresentation(isSingleFile: boolean): Promise<{}>;
|
|
48
|
+
private buildTokenStructure;
|
|
49
|
+
/** Generate style dictionary tree */
|
|
50
|
+
private generateStyleDictionaryTree;
|
|
51
|
+
/** Construct tree out of one specific group, independent of tree type */
|
|
52
|
+
private representTree;
|
|
53
|
+
/** Find all tokens that belong to a certain group and retrieve them as objects */
|
|
54
|
+
static tokensOfGroup(containingGroup: TokenGroup, allTokens: Array<Token>): Array<Token>;
|
|
55
|
+
/** Retrieve chain of groups up to a specified group, ordered from parent to children */
|
|
56
|
+
static referenceGroupChain(containingGroup: TokenGroup, allGroups: Array<TokenGroup>): Array<TokenGroup>;
|
|
57
|
+
}
|
|
58
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { TokenGroup } from "../../../model/groups/SDKTokenGroup";
|
|
2
|
+
import { Token } from "../../../model/tokens/SDKToken";
|
|
3
|
+
import { AnyOptionTokenValue, AnyStringTokenValue, BorderTokenValue, ColorTokenValue, DimensionTokenValue, GradientTokenValue, ShadowTokenValue, TypographyTokenValue } from "../../../model/tokens/SDKTokenValue";
|
|
4
|
+
import { TokenJSONBuilderOptionsInternal } from "../SDKToolsJSONBuilder";
|
|
5
|
+
import { TokenJSONElementTransformer } from "./SDKToolsJSONElementTransformer";
|
|
6
|
+
/** Token transformer that allow generic transform of tokens to different destinations, like Style Dictionary or Figma Tokens representation */
|
|
7
|
+
export declare class TokenJSONElementFigmaTokensTransformer extends TokenJSONElementTransformer {
|
|
8
|
+
/** Represent color token value either as reference or as plain representation */
|
|
9
|
+
representColorTokenValue(value: ColorTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
10
|
+
/** Represent dimension token value either as reference or as plain representation */
|
|
11
|
+
representDimensionTokenValue(value: DimensionTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
12
|
+
/** Represent text token value either as reference or as plain representation */
|
|
13
|
+
representStringTokenValue(value: AnyStringTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
14
|
+
representOptionTokenValue(value: AnyOptionTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
15
|
+
/** Represent typography token value either as reference or as plain representation */
|
|
16
|
+
representTypographyTokenValue(value: TypographyTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
17
|
+
/** Represent border token value either as reference or as plain representation */
|
|
18
|
+
representBorderTokenValue(value: BorderTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
19
|
+
/** Represent shadow token value either as reference or as plain representation */
|
|
20
|
+
representShadowTokenValue(values: ShadowTokenValue[], allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
21
|
+
/** Represent gradient token value either as reference or as plain representation */
|
|
22
|
+
representGradientTokenValue(values: GradientTokenValue[], allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
23
|
+
/** Retrieve token wrapper containing its metadata and value information (used as container for each defined token) */
|
|
24
|
+
tokenWrapper(token: Token, value: any, options: TokenJSONBuilderOptionsInternal, groups: Array<TokenGroup>): object;
|
|
25
|
+
/** Retrieve human-readable token type in unified fashion, used both as token type and as token master group */
|
|
26
|
+
typeLabelConsideringAbstractGroups(token: Token, groups: Array<TokenGroup>): string | undefined;
|
|
27
|
+
/** Retrieve wrapper to certain token (referenced by name) pointing to token value */
|
|
28
|
+
referenceWrapper(reference: string): string;
|
|
29
|
+
/** Retrieve safe group name made out of normal group name
|
|
30
|
+
* This replace spaces with dashes, also change anything non-alphanumeric char to it as well.
|
|
31
|
+
* For example, ST&RK Industries will be changed to st-rk-industries
|
|
32
|
+
*/
|
|
33
|
+
safeGroupName(group: TokenGroup): string;
|
|
34
|
+
/** Create full reference name representing token. Such name can, for example, look like: [g1].[g2].[g3].[g4].[token-name] */
|
|
35
|
+
referenceName(referenceId: string, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): string;
|
|
36
|
+
groupIsAbstract(group: TokenGroup, allGroups: Array<TokenGroup>): boolean;
|
|
37
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { TokenGroup } from "../../../model/groups/SDKTokenGroup";
|
|
2
|
+
import { Token } from "../../../model/tokens/SDKToken";
|
|
3
|
+
import { AnyOptionTokenValue, AnyStringTokenValue, BorderTokenValue, ColorTokenValue, DimensionTokenValue, GradientTokenValue, ShadowTokenValue, TypographyTokenValue } from "../../../model/tokens/SDKTokenValue";
|
|
4
|
+
import { TokenJSONBuilderOptionsInternal } from "../SDKToolsJSONBuilder";
|
|
5
|
+
import { TokenJSONElementTransformer } from "./SDKToolsJSONElementTransformer";
|
|
6
|
+
/** Token transformer that allow generic transform of tokens to different destinations, like Style Dictionary or Figma Tokens representation */
|
|
7
|
+
export declare class TokenJSONElementStyleDictionaryTransformer extends TokenJSONElementTransformer {
|
|
8
|
+
/** Represent color token value either as reference or as plain representation */
|
|
9
|
+
representColorTokenValue(value: ColorTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
10
|
+
/** Represent dimension token value either as reference or as plain representation */
|
|
11
|
+
representDimensionTokenValue(value: DimensionTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
12
|
+
/** Represent text token value either as reference or as plain representation */
|
|
13
|
+
representStringTokenValue(value: AnyStringTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
14
|
+
representOptionTokenValue(value: AnyOptionTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
15
|
+
/** Represent typography token value either as reference or as plain representation */
|
|
16
|
+
representTypographyTokenValue(value: TypographyTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
17
|
+
/** Represent border token value either as reference or as plain representation */
|
|
18
|
+
representBorderTokenValue(value: BorderTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
19
|
+
/** Represent shadow token value either as reference or as plain representation */
|
|
20
|
+
representShadowTokenValue(values: ShadowTokenValue[], allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
21
|
+
/** Represent gradient token value either as reference or as plain representation */
|
|
22
|
+
representGradientTokenValue(values: GradientTokenValue[], allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
23
|
+
/** Retrieve wrapper to certain token (referenced by name) pointing to token value */
|
|
24
|
+
referenceWrapper(reference: string): string;
|
|
25
|
+
groupIsAbstract(group: TokenGroup): boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { TokenType } from "../../../model/enums/SDKTokenType";
|
|
2
|
+
import { TokenGroup } from "../../../model/groups/SDKTokenGroup";
|
|
3
|
+
import { BorderToken } from "../../../model/tokens/SDKBorderToken";
|
|
4
|
+
import { ColorToken } from "../../../model/tokens/SDKColorToken";
|
|
5
|
+
import { AnyDimensionToken } from "../../../model/tokens/SDKDimensionToken";
|
|
6
|
+
import { GradientToken } from "../../../model/tokens/SDKGradientToken";
|
|
7
|
+
import { ShadowToken } from "../../../model/tokens/SDKShadowToken";
|
|
8
|
+
import { AnyStringToken } from "../../../model/tokens/SDKStringToken";
|
|
9
|
+
import { Token } from "../../../model/tokens/SDKToken";
|
|
10
|
+
import { AnyDimensionTokenValue, AnyOptionToken, AnyOptionTokenValue, AnyStringTokenValue, BorderTokenValue, ColorTokenValue, GradientTokenValue, ShadowTokenValue, TypographyTokenValue } from "../../../model/tokens/SDKTokenValue";
|
|
11
|
+
import { TypographyToken } from "../../../model/tokens/SDKTypographyToken";
|
|
12
|
+
import { JSONBuilderNamingOption, TokenJSONBuilderOptionsInternal } from "../SDKToolsJSONBuilder";
|
|
13
|
+
/** Token transformer that allow generic transform of tokens to different destinations, like Style Dictionary or Figma Tokens representation */
|
|
14
|
+
export declare class TokenJSONElementTransformer {
|
|
15
|
+
/** Represent a singular token as SD object */
|
|
16
|
+
representToken(token: Token, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): object;
|
|
17
|
+
/** Represent full color token, including wrapping meta-information such as user description */
|
|
18
|
+
representColorToken(token: ColorToken, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): object;
|
|
19
|
+
/** Represent full border token, including wrapping meta-information such as user description */
|
|
20
|
+
representBorderToken(token: BorderToken, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): object;
|
|
21
|
+
/** Represent full gradient token, including wrapping meta-information such as user description */
|
|
22
|
+
representGradientToken(token: GradientToken, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): object;
|
|
23
|
+
/** Represent full dimension token, including wrapping meta-information such as user description */
|
|
24
|
+
representDimensionToken(token: AnyDimensionToken, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): Object;
|
|
25
|
+
/** Represent full shadow token, including wrapping meta-information such as user description */
|
|
26
|
+
representShadowToken(token: ShadowToken, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): object;
|
|
27
|
+
/** Represent full text token, including wrapping meta-information such as user description */
|
|
28
|
+
representStringToken(token: AnyStringToken, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): Object;
|
|
29
|
+
representOptionToken(token: AnyOptionToken, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): Object;
|
|
30
|
+
/** Represent full typography token, including wrapping meta-information such as user description */
|
|
31
|
+
representTypographyToken(token: TypographyToken, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): object;
|
|
32
|
+
/** Represent color token value either as reference or as plain representation */
|
|
33
|
+
representColorTokenValue(value: ColorTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
34
|
+
/** Represent dimension token value either as reference or as plain representation */
|
|
35
|
+
representDimensionTokenValue(value: AnyDimensionTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
36
|
+
/** Represent text token value either as reference or as plain representation */
|
|
37
|
+
representStringTokenValue(value: AnyStringTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
38
|
+
representOptionTokenValue(value: AnyOptionTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
39
|
+
/** Represent typography token value either as reference or as plain representation */
|
|
40
|
+
representTypographyTokenValue(value: TypographyTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
41
|
+
/** Represent border token value either as reference or as plain representation */
|
|
42
|
+
representBorderTokenValue(value: BorderTokenValue, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
43
|
+
/** Represent shadow token value either as reference or as plain representation */
|
|
44
|
+
representShadowTokenValue(values: ShadowTokenValue[], allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
45
|
+
/** Represent gradient token value either as reference or as plain representation */
|
|
46
|
+
representGradientTokenValue(value: GradientTokenValue[], allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): any;
|
|
47
|
+
/** Retrieve wrapper to certain token (referenced by name) pointing to token value */
|
|
48
|
+
referenceWrapper(reference: string, options: TokenJSONBuilderOptionsInternal): void;
|
|
49
|
+
/** Retrieve token wrapper containing its metadata and value information (used as container for each defined token) */
|
|
50
|
+
tokenWrapper(token: Token, value: any, options: TokenJSONBuilderOptionsInternal, groups: Array<TokenGroup>): object;
|
|
51
|
+
/** Create full reference name representing token. Such name can, for example, look like: [g1].[g2].[g3].[g4].[token-name] */
|
|
52
|
+
referenceName(referenceId: string, allTokens: Map<string, Token>, allGroups: Array<TokenGroup>, options: TokenJSONBuilderOptionsInternal): string;
|
|
53
|
+
/** Retrieve safe token name made out of normal token name
|
|
54
|
+
* This replace spaces with dashes, also change anything non-alphanumeric char to it as well.
|
|
55
|
+
* For example, ST&RK Industries will be changed to st-rk-industries
|
|
56
|
+
*/
|
|
57
|
+
safeTokenName(token: Token, naming: JSONBuilderNamingOption): string;
|
|
58
|
+
/** Retrieve safe group name made out of normal group name
|
|
59
|
+
* This replace spaces with dashes, also change anything non-alphanumeric char to it as well.
|
|
60
|
+
* For example, ST&RK Industries will be changed to st-rk-industries
|
|
61
|
+
*/
|
|
62
|
+
safeGroupName(group: TokenGroup): string;
|
|
63
|
+
processedName(name: string, naming: JSONBuilderNamingOption): string;
|
|
64
|
+
/** Retrieve human-readable token type in unified fashion, used both as token type and as token master group */
|
|
65
|
+
typeLabel(type: TokenType): "color" | "gradient" | "typography" | "border" | "textCase" | "textDecoration" | "visibility" | "text" | "shadow" | "measure" | undefined;
|
|
66
|
+
/** Retrieve chain of groups up to a specified group, ordered from parent to children */
|
|
67
|
+
referenceGroupChain(containingGroup: TokenGroup, allGroups: Array<TokenGroup>): Array<TokenGroup>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Supernova } from "../../core/SDKSupernova";
|
|
2
|
+
import { DocumentationLegacyPage } from "../../model/documentation/SDKDocumentationLegacyPage";
|
|
3
|
+
import { DocumentationLegacyPageBlockType } from "../../model/enums/SDKDocumentationLegacyPageBlockType";
|
|
4
|
+
import { MarkdownTransformBlock } from "./SDKToolsMarkdownTransformBlock";
|
|
5
|
+
/** Output markdown mode. Commonmark and GitHub is currently supported */
|
|
6
|
+
export declare enum MarkdownTransformType {
|
|
7
|
+
commonmark = "commonmark",
|
|
8
|
+
github = "github"
|
|
9
|
+
}
|
|
10
|
+
/** Markdown transformers */
|
|
11
|
+
export declare class MarkdownTransform {
|
|
12
|
+
conversionType: MarkdownTransformType;
|
|
13
|
+
blockTransformer: MarkdownTransformBlock;
|
|
14
|
+
constructor(type: MarkdownTransformType, instance: Supernova, designSystemId: string, workspaceId: string, versionId: string);
|
|
15
|
+
/** Converts entire definition of the page, including its metadata like title and description, to markdown */
|
|
16
|
+
convertPageToMarkdown(page: DocumentationLegacyPage): Promise<string>;
|
|
17
|
+
/** Creates flattened structure of the blocks, even from the contained blocks, so it is easier to iterate through them */
|
|
18
|
+
private flattenedBlocksOfPage;
|
|
19
|
+
/** Flattens one leaf of blocks */
|
|
20
|
+
private flattenedBlocksOfBlock;
|
|
21
|
+
isContainer(blockType: DocumentationLegacyPageBlockType): boolean;
|
|
22
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Supernova } from "../../core/SDKSupernova";
|
|
2
|
+
import { DocumentationLegacyPage } from "../../model/documentation/SDKDocumentationLegacyPage";
|
|
3
|
+
import { DocumentationLegacyPageBlock } from "../../model/documentation/SDKDocumentationLegacyPageBlock";
|
|
4
|
+
import { DocumentationLegacyPageBlockAssets } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockAssets";
|
|
5
|
+
import { DocumentationLegacyPageBlockCallout } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockCallout";
|
|
6
|
+
import { DocumentationLegacyPageBlockCode } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockCode";
|
|
7
|
+
import { DocumentationLegacyPageBlockColumn } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockColumn";
|
|
8
|
+
import { DocumentationLegacyPageBlockColumnItem } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockColumnItem";
|
|
9
|
+
import { DocumentationLegacyPageBlockEmbedFigma } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedFigma";
|
|
10
|
+
import { DocumentationLegacyPageBlockEmbedGeneric } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedGeneric";
|
|
11
|
+
import { DocumentationLegacyPageBlockEmbedLink } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedLink";
|
|
12
|
+
import { DocumentationLegacyPageBlockEmbedStorybook } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedStorybook";
|
|
13
|
+
import { DocumentationLegacyPageBlockEmbedYoutube } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedYoutube";
|
|
14
|
+
import { DocumentationLegacyPageBlockFrames } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockFrames";
|
|
15
|
+
import { DocumentationLegacyPageBlockHeading } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockHeading";
|
|
16
|
+
import { DocumentationLegacyPageBlockImage } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockImage";
|
|
17
|
+
import { DocumentationLegacyPageOrderedList } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockOrderedList";
|
|
18
|
+
import { DocumentationLegacyPageBlockQuote } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockQuote";
|
|
19
|
+
import { DocumentationLegacyPageBlockRenderCode } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockRenderCode";
|
|
20
|
+
import { DocumentationLegacyPageBlockShortcuts } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockShortcuts";
|
|
21
|
+
import { DocumentationLegacyPageBlockTab } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockTab";
|
|
22
|
+
import { DocumentationLegacyPageBlockTabItem } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockTabItem";
|
|
23
|
+
import { DocumentationLegacyPageBlockTable } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockTable";
|
|
24
|
+
import { DocumentationLegacyPageBlockTableCell } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockTableCell";
|
|
25
|
+
import { DocumentationLegacyPageBlockText } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockText";
|
|
26
|
+
import { DocumentationLegacyPageBlockToken } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockToken";
|
|
27
|
+
import { DocumentationLegacyPageBlockTokenGroup } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockTokenGroup";
|
|
28
|
+
import { DocumentationLegacyPageBlockTokenList } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockTokenList";
|
|
29
|
+
import { DocumentationLegacyPageUnorderedList } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockUnorderedList";
|
|
30
|
+
import { MarkdownTransformType } from "./SDKToolsMarkdownTransform";
|
|
31
|
+
/** Markdown block transformer */
|
|
32
|
+
export declare class MarkdownTransformBlock {
|
|
33
|
+
private transformType;
|
|
34
|
+
private utilTransformer;
|
|
35
|
+
private instance;
|
|
36
|
+
private designSystemId;
|
|
37
|
+
private versionId;
|
|
38
|
+
private workspaceId;
|
|
39
|
+
newlineSeparator: string;
|
|
40
|
+
constructor(type: MarkdownTransformType, instance: Supernova, designSystemId: string, workspaceId: string, versionId: string);
|
|
41
|
+
/** Converts a single block - depending on the type - to a markdown definition of specific type */
|
|
42
|
+
convertBlockToMarkdown(block: DocumentationLegacyPageBlock, pageContext: DocumentationLegacyPage): Promise<string | null>;
|
|
43
|
+
convertHeadingBlock(block: DocumentationLegacyPageBlockHeading): string | null;
|
|
44
|
+
convertCalloutBlock(block: DocumentationLegacyPageBlockCallout): string | null;
|
|
45
|
+
convertQuoteBlock(block: DocumentationLegacyPageBlockQuote): string | null;
|
|
46
|
+
convertDividerBlock(): string | null;
|
|
47
|
+
convertImageBlock(block: DocumentationLegacyPageBlockImage): string | null;
|
|
48
|
+
convertOrderedListBlock(block: DocumentationLegacyPageOrderedList): string | null;
|
|
49
|
+
convertUnorderedListBlock(block: DocumentationLegacyPageUnorderedList): string | null;
|
|
50
|
+
convertLiveCodeBlock(block: DocumentationLegacyPageBlockRenderCode): string | null;
|
|
51
|
+
convertCodeBlock(block: DocumentationLegacyPageBlockCode): string | null;
|
|
52
|
+
convertTextBlock(block: DocumentationLegacyPageBlockText): string | null;
|
|
53
|
+
convertGenericEmbedBlock(block: DocumentationLegacyPageBlockEmbedGeneric): string | null;
|
|
54
|
+
convertStorybookEmbedBlock(block: DocumentationLegacyPageBlockEmbedStorybook): string | null;
|
|
55
|
+
convertLinkBlock(block: DocumentationLegacyPageBlockEmbedLink): string | null;
|
|
56
|
+
convertYoutubeEmbedBlock(block: DocumentationLegacyPageBlockEmbedYoutube): string | null;
|
|
57
|
+
convertFigmaEmbedBlock(block: DocumentationLegacyPageBlockEmbedFigma): string | null;
|
|
58
|
+
convertTokenBlock(block: DocumentationLegacyPageBlockToken): Promise<string | null>;
|
|
59
|
+
convertTokenListBlock(block: DocumentationLegacyPageBlockTokenList): Promise<string | null>;
|
|
60
|
+
convertTokenGroupBlock(block: DocumentationLegacyPageBlockTokenGroup): Promise<string | null>;
|
|
61
|
+
private flattenedGroupsFromRoot;
|
|
62
|
+
convertComponentAssetBlock(block: DocumentationLegacyPageBlockAssets): Promise<string | null>;
|
|
63
|
+
convertFigmaFramesBlock(block: DocumentationLegacyPageBlockFrames): string | null;
|
|
64
|
+
convertShortcutsBlock(block: DocumentationLegacyPageBlockShortcuts, pageContext: DocumentationLegacyPage): Promise<string | null>;
|
|
65
|
+
private relativePathToPage;
|
|
66
|
+
convertTableBlock(block: DocumentationLegacyPageBlockTable, pageContext: DocumentationLegacyPage): Promise<string | null>;
|
|
67
|
+
convertTableRowBlock(): string | null;
|
|
68
|
+
convertTableCellBlock(block: DocumentationLegacyPageBlockTableCell, pageContext: DocumentationLegacyPage): Promise<string | null>;
|
|
69
|
+
convertTabsBlock(block: DocumentationLegacyPageBlockTab, pageContext: DocumentationLegacyPage): Promise<string | null>;
|
|
70
|
+
convertTabItemBlock(block: DocumentationLegacyPageBlockTabItem, pageContext: DocumentationLegacyPage): Promise<string | null>;
|
|
71
|
+
convertColumnBlock(block: DocumentationLegacyPageBlockColumn, pageContext: DocumentationLegacyPage): Promise<string | null>;
|
|
72
|
+
convertColumnItemBlock(block: DocumentationLegacyPageBlockColumnItem, pageContext: DocumentationLegacyPage): Promise<string | null>;
|
|
73
|
+
convertCustomBlock(): string | null;
|
|
74
|
+
convertURLBlock(block: DocumentationLegacyPageBlockEmbedGeneric, userAction: string): string | null;
|
|
75
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DocumentationLegacyRichText } from "../../model/documentation/SDKDocumentationLegacyRichText";
|
|
2
|
+
import { DocumentationLegacyPageBlockText } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockText";
|
|
3
|
+
import { Token } from "../../model/tokens/SDKToken";
|
|
4
|
+
/** Markdown block transformer */
|
|
5
|
+
export declare class MarkdownTransformUtil {
|
|
6
|
+
private tokenTransformer;
|
|
7
|
+
constructor();
|
|
8
|
+
/** Converts rich text block to markdown
|
|
9
|
+
*
|
|
10
|
+
* This is very naive implementation and will break in complicated cases, like double control characters of the same type next to each other
|
|
11
|
+
* Must improve later with something more sophisticated, ideally tree builder with branched resolution.
|
|
12
|
+
*/
|
|
13
|
+
convertTextBlockToMarkdown(block: DocumentationLegacyPageBlockText): string | null;
|
|
14
|
+
/** Converts rich text to markdown
|
|
15
|
+
*
|
|
16
|
+
* This is very naive implementation and will break in complicated cases, like double control characters of the same type next to each other
|
|
17
|
+
* Must improve later with something more sophisticated, ideally tree builder with branched resolution.
|
|
18
|
+
*/
|
|
19
|
+
convertRichTextToMarkdown(richText: DocumentationLegacyRichText): string;
|
|
20
|
+
/** Convert token to markdown representation */
|
|
21
|
+
convertTokenToMarkdown(token: Token): string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DocumentationLegacyPage } from "../../model/documentation/SDKDocumentationLegacyPage";
|
|
2
|
+
import Fuse from "fuse.js";
|
|
3
|
+
export declare enum DocSearchResultDataType {
|
|
4
|
+
contentBlock = "contentBlock",
|
|
5
|
+
sectionHeader = "sectionHeader",
|
|
6
|
+
pageTitle = "pageTitle"
|
|
7
|
+
}
|
|
8
|
+
export type DocSearchResult = {
|
|
9
|
+
item: DocSearchResultData;
|
|
10
|
+
refIndex: number;
|
|
11
|
+
};
|
|
12
|
+
export type DocSearchResultData = {
|
|
13
|
+
id: number;
|
|
14
|
+
pageName: string;
|
|
15
|
+
pageId: string;
|
|
16
|
+
blockId: string | undefined;
|
|
17
|
+
text: string;
|
|
18
|
+
type: DocSearchResultDataType;
|
|
19
|
+
};
|
|
20
|
+
export type DocSearchConfiguration = {
|
|
21
|
+
shouldSort?: boolean;
|
|
22
|
+
threshold?: number;
|
|
23
|
+
location?: number;
|
|
24
|
+
distance?: number;
|
|
25
|
+
maxPatternLength?: number;
|
|
26
|
+
minMatchCharLength?: number;
|
|
27
|
+
ignoreLocation?: boolean;
|
|
28
|
+
keys: Array<string>;
|
|
29
|
+
};
|
|
30
|
+
/** Search manager */
|
|
31
|
+
export declare class DocSearch {
|
|
32
|
+
searchEngine: Fuse<object>;
|
|
33
|
+
searchConfiguration: DocSearchConfiguration;
|
|
34
|
+
constructor(configuration: DocSearchConfiguration);
|
|
35
|
+
updateSearchIndex: (pages: Array<DocumentationLegacyPage>) => Array<DocSearchResultData>;
|
|
36
|
+
search: (input: string) => Array<DocSearchResult>;
|
|
37
|
+
/** When using this configuration, the results will be very precise and will not be deviating too much from the query */
|
|
38
|
+
static defaultPreciseConfiguration(): DocSearchConfiguration;
|
|
39
|
+
/** When using this configuration, the results will be more fuzzy and might cover broader spectrum results than just near-keyword based search */
|
|
40
|
+
static defaultFuzzyConfiguration(): DocSearchConfiguration;
|
|
41
|
+
/** Reconstructs the search index */
|
|
42
|
+
private reconstructSearchIndex;
|
|
43
|
+
/** Creates flattened structure of the blocks, even from the contained blocks, so it is easier to iterate through them */
|
|
44
|
+
private flattenedBlocksOfPage;
|
|
45
|
+
/** Flattens one leaf of blocks */
|
|
46
|
+
private flattenedBlocksOfBlock;
|
|
47
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Token } from "../../model/tokens/SDKToken";
|
|
2
|
+
import { AnyMultiLayerToken, AnySingleLayerToken } from "../../model/tokens/SDKTokenValue";
|
|
3
|
+
import { TokenUtilPreviewMetadata, TokenUtilPreviewReferenceInfo, TokenUtilPreviewResolvedStyle, TokenUtilPreviewTokenType, TokenUtilPreviewTokenValueSegment } from "./TokenUtilPreviewTypes";
|
|
4
|
+
export declare class TokenUtilPreviewGenerator {
|
|
5
|
+
/** Generates segments required for rendering of the preview. Only usable with Supernova preview */
|
|
6
|
+
static tokenPreviewSegments(token: Token, allTokens: Map<string, Token>): Array<TokenUtilPreviewTokenValueSegment | "separator">;
|
|
7
|
+
/** Generates metadata required for rendering of the preview. Only usable with Supernova preview */
|
|
8
|
+
static tokenPreviewMetadata(token: Token, allTokens: Map<string, Token>): TokenUtilPreviewMetadata;
|
|
9
|
+
/** Generates style required for rendering of the preview. Only usable with Supernova preview */
|
|
10
|
+
static tokenPreviewStyle(token: Token, overridenStyles?: {
|
|
11
|
+
fontFamily?: string;
|
|
12
|
+
fontWeight?: string;
|
|
13
|
+
}): TokenUtilPreviewResolvedStyle;
|
|
14
|
+
/** Generates adjusted preview type required for rendering of the preview. Only usable with Supernova preview */
|
|
15
|
+
static tokenPreviewType(token: Token): TokenUtilPreviewTokenType;
|
|
16
|
+
/** Generates per-value description of passed token. Only usable with Supernova preview */
|
|
17
|
+
static tokenReferenceInfoForSingleLayerToken(token: AnySingleLayerToken, allTokens: Map<string, Token>): TokenUtilPreviewReferenceInfo;
|
|
18
|
+
/** Generates per-value description of passed token. Only usable with Supernova preview */
|
|
19
|
+
static tokenReferenceInfoForMultiLayerToken(token: AnyMultiLayerToken, layerIndex: number, allTokens: Map<string, Token>): TokenUtilPreviewReferenceInfo;
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TokenType } from "../../model/enums/SDKTokenType";
|
|
2
|
+
import { Token } from "../../model/tokens/SDKToken";
|
|
3
|
+
import { TokenUtilPreviewMetadata, TokenUtilPreviewTokenType } from "./TokenUtilPreviewTypes";
|
|
4
|
+
export declare class TokenUtilPreviewMetadataGenerator {
|
|
5
|
+
resolvedMetadataForToken(token: Token, allTokens: Map<string, Token>): TokenUtilPreviewMetadata;
|
|
6
|
+
displayValue(token: Token): string;
|
|
7
|
+
tokenTypeToPreviewType(type: TokenType): TokenUtilPreviewTokenType;
|
|
8
|
+
}
|
package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewReferenceInfoGenerator.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Token } from "../../model/tokens/SDKToken";
|
|
2
|
+
import { AnyMultiLayerToken } from "../../model/tokens/SDKTokenValue";
|
|
3
|
+
import { TokenUtilPreviewReferenceInfo } from "./TokenUtilPreviewTypes";
|
|
4
|
+
export declare class TokenUtilPreviewReferenceInfoGenerator {
|
|
5
|
+
resolvedInfoForSingleLayerToken(token: Token, allTokens: Map<string, Token>): TokenUtilPreviewReferenceInfo;
|
|
6
|
+
resolvedInfoForMultiLayerToken(token: AnyMultiLayerToken, layerIndex: number, allTokens: Map<string, Token>): TokenUtilPreviewReferenceInfo;
|
|
7
|
+
private label;
|
|
8
|
+
private textDecorationToString;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Token } from "../../model/tokens/SDKToken";
|
|
2
|
+
import { ShadowTokenValue } from "../../model/tokens/SDKTokenValue";
|
|
3
|
+
import { TokenUtilPreviewTokenValueSegment } from "./TokenUtilPreviewTypes";
|
|
4
|
+
export declare class TokenUtilPreviewSegmentGenerator {
|
|
5
|
+
static resolvedSegmentsForToken(token: Token, allTokens: Map<string, Token>): Array<TokenUtilPreviewTokenValueSegment | "separator">;
|
|
6
|
+
static shadowValuesToSegments(layer: ShadowTokenValue | null, allTokens: Map<string, Token>): Array<TokenUtilPreviewTokenValueSegment | "separator">;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Token } from "../../model/tokens/SDKToken";
|
|
2
|
+
import { TokenUtilPreviewResolvedStyle } from "./TokenUtilPreviewTypes";
|
|
3
|
+
export declare class TokenUtilPreviewStyleGenerator {
|
|
4
|
+
resolvedStyleForToken(token: Token, overridenStyles?: {
|
|
5
|
+
fontFamily?: string;
|
|
6
|
+
fontWeight?: string;
|
|
7
|
+
}): TokenUtilPreviewResolvedStyle | undefined;
|
|
8
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export type TokenUtilPreviewTokenValueSegment = {
|
|
2
|
+
value: string;
|
|
3
|
+
referencedName?: string;
|
|
4
|
+
prefersReferenceName?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type TokenUtilPreviewTokenType = "blur" | "border" | "borderWidth" | "color" | "copy" | "fontFamily" | "fontSize" | "fontWeight" | "dimension" | "duration" | "gradient" | "lineHeight" | "letterSpacing" | "opacity" | "paragraphSpacing" | "radius" | "shadow" | "size" | "space" | "string" | "textCase" | "textDecoration" | "typography" | "visibility" | "zIndex";
|
|
7
|
+
export type TokenUtilPreviewMetadata = {
|
|
8
|
+
displayValue: string;
|
|
9
|
+
referencedTo?: string;
|
|
10
|
+
tokenType: TokenUtilPreviewTokenType;
|
|
11
|
+
} & ({
|
|
12
|
+
meta?: null;
|
|
13
|
+
} | TokenUtilPreviewShadowTokenPreview | TokenUtilPreviewTypographyTokenPreview | TokenUtilPreviewDimensionTokenPreview | TokenUtilPreviewBlurTokenPreview);
|
|
14
|
+
export type TokenUtilPreviewShadowTokenPreview = {
|
|
15
|
+
meta: ShadowTokenMetadata;
|
|
16
|
+
};
|
|
17
|
+
export type TokenUtilPreviewTypographyTokenPreview = {
|
|
18
|
+
meta: TypographyTokenMetadata;
|
|
19
|
+
};
|
|
20
|
+
export type TokenUtilPreviewDimensionTokenPreview = {
|
|
21
|
+
meta: DimensionTokenMetadata;
|
|
22
|
+
};
|
|
23
|
+
export type TokenUtilPreviewBlurTokenPreview = {
|
|
24
|
+
meta: BlurTokenMetadata;
|
|
25
|
+
};
|
|
26
|
+
export type TokenUtilPreviewResolvedStyle = {
|
|
27
|
+
background?: string;
|
|
28
|
+
blur?: string;
|
|
29
|
+
borderStyle?: "solid" | "dashed" | "dotted";
|
|
30
|
+
borderWidth?: string;
|
|
31
|
+
borderColor?: string;
|
|
32
|
+
borderRadius?: string;
|
|
33
|
+
boxShadow?: string;
|
|
34
|
+
fontFamily?: string;
|
|
35
|
+
fontSize?: string;
|
|
36
|
+
fontWeight?: string;
|
|
37
|
+
letterSpacing?: string;
|
|
38
|
+
lineHeight?: string;
|
|
39
|
+
opacity?: string;
|
|
40
|
+
textTransform?: string;
|
|
41
|
+
textDecoration?: string;
|
|
42
|
+
width?: string;
|
|
43
|
+
};
|
|
44
|
+
export type ShadowTokenMetadata = {
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
type: "inner" | "drop";
|
|
48
|
+
};
|
|
49
|
+
export type TypographyTokenMetadata = {
|
|
50
|
+
fontSize: DimensionTokenMetadata;
|
|
51
|
+
};
|
|
52
|
+
export type DimensionTokenMetadata = {
|
|
53
|
+
value: number;
|
|
54
|
+
unit: string;
|
|
55
|
+
};
|
|
56
|
+
export type BlurTokenMetadata = {
|
|
57
|
+
type: "layer" | "background";
|
|
58
|
+
};
|
|
59
|
+
export type TokenUtilPreviewReferenceInfo = {
|
|
60
|
+
alwaysShown: Array<TokenUtilPreviewReferenceInfoPiece>;
|
|
61
|
+
optionallyShown: Array<TokenUtilPreviewReferenceInfoPiece>;
|
|
62
|
+
};
|
|
63
|
+
export type TokenUtilPreviewReferenceInfoPiece = {
|
|
64
|
+
key?: Array<TokenUtilPreviewTokenValueSegment>;
|
|
65
|
+
value?: Array<TokenUtilPreviewTokenValueSegment>;
|
|
66
|
+
icon?: string;
|
|
67
|
+
fullWidth?: boolean;
|
|
68
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ColorToken } from "../../model/tokens/SDKColorToken";
|
|
2
|
+
import { Token } from "../../model/tokens/SDKToken";
|
|
3
|
+
import { AnyDimensionTokenValue, AnyOptionTokenValue, AnyStringTokenValue, BlurTokenValue, BorderTokenValue, ColorTokenValue, GradientTokenValue, ShadowTokenValue, TypographyTokenValue } from "../../model/tokens/SDKTokenValue";
|
|
4
|
+
/** Token data transformer. Use for direct representation of token to other representations, such as CSS, rgb etc. More transformers will be added over time */
|
|
5
|
+
export declare class TokenTransform {
|
|
6
|
+
/** Converts a single token to CSS definition. Values are always resolved to plain values, references to other tokens are not yet supported */
|
|
7
|
+
tokenToCSS(token: Token): string;
|
|
8
|
+
/** Converts token to appropriate css variable definition --(name): css_definition */
|
|
9
|
+
tokenToCSSVariableDeclaration(token: Token, variableName: string): string;
|
|
10
|
+
/** Converts color token value to css definition */
|
|
11
|
+
colorTokenToCSS(value: ColorTokenValue, dedicatedOpacity?: number): string;
|
|
12
|
+
/** Converts border token value to css definition */
|
|
13
|
+
borderTokenToCSS(value: BorderTokenValue): string;
|
|
14
|
+
/** Converts shadow token and opacity by merging two opacities and using color token opacity as fallback */
|
|
15
|
+
shadowTokenColorAndOpacityToCSS(value: ShadowTokenValue): string;
|
|
16
|
+
/** Converts shadow token value to css definition */
|
|
17
|
+
shadowsTokenToCSS(value: ShadowTokenValue[]): string;
|
|
18
|
+
shadowTokenToCSS(value: ShadowTokenValue): string;
|
|
19
|
+
/** Converts typography token value to css definition */
|
|
20
|
+
typographyTokenToCSS(value: TypographyTokenValue): string;
|
|
21
|
+
/** Converts border token value to css definition */
|
|
22
|
+
blurTokenToCSS(value: BlurTokenValue): string;
|
|
23
|
+
/** Converts border token value to css definition */
|
|
24
|
+
dimensionTokenToCSS(value: AnyDimensionTokenValue): string;
|
|
25
|
+
private unitToCSS;
|
|
26
|
+
gradientsTokenToCSS(value: GradientTokenValue[]): string;
|
|
27
|
+
/** Converts gradient token value to css definition */
|
|
28
|
+
gradientTokenToCSS(value: GradientTokenValue): string;
|
|
29
|
+
/** Converts generic token value to css definition */
|
|
30
|
+
stringTokenToCSS(value: AnyStringTokenValue): string;
|
|
31
|
+
optionTokenToCSS(value: AnyOptionTokenValue): string;
|
|
32
|
+
/** Converts a single color token to #hheexx or #hheexxaa */
|
|
33
|
+
colorTokenToHEXorHEXA(colorToken: ColorToken): string;
|
|
34
|
+
/** Converts a single color token to rgba(x,x,x,x) */
|
|
35
|
+
colorTokenToRGBA(colorToken: ColorToken): string;
|
|
36
|
+
/** Converts a single color token to rgba(x,x,x,x) with relative values */
|
|
37
|
+
colorTokenToPercenageRGBA(colorToken: ColorToken): string;
|
|
38
|
+
/** Converts a single color token to hsla(x,x,x,x) */
|
|
39
|
+
colorTokenToHSLA(colorToken: ColorToken): string;
|
|
40
|
+
/** Converts a single color token to hsva(x,x,x,x) */
|
|
41
|
+
colorTokenToHSVA(colorToken: ColorToken): string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function castEnum<O extends string>(value: `${O}`): O;
|
|
2
|
+
export declare function castOptionalEnum<O extends string>(value: `${O}` | undefined): O | undefined;
|
|
3
|
+
export type NonEmptyArray<T> = [T, ...T[]];
|
|
4
|
+
export declare function sureOf<T>(entity: T | null | undefined): NonNullable<T>;
|
|
5
|
+
export declare function sortUsingMap<T, K>(items: Array<T>, indexes: Map<K, number>, keyFn: (item: T) => K): Array<T>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component } from "../model/components/SDKComponent";
|
|
2
|
+
import { ComponentGroup } from "../model/groups/SDKComponentGroup";
|
|
3
|
+
export declare class ComponentUtils {
|
|
4
|
+
/** Map components for lookup */
|
|
5
|
+
static componentsToReferenceMap(components: Array<Component>): Map<string, Component>;
|
|
6
|
+
/** Map component groups for lookup */
|
|
7
|
+
static componentGroupsToReferenceMap(groups: Array<ComponentGroup>): Map<string, ComponentGroup>;
|
|
8
|
+
/** Creates a new component group. Default values will be used for all properties */
|
|
9
|
+
static createDefaultComponentGroup(versionId: string, brandId: string, name?: string): ComponentGroup;
|
|
10
|
+
/** Creates a new component. Default values will be used for all properties */
|
|
11
|
+
static createDefaultComponent(versionId: string, brandId: string, name?: string): Component;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class FlowUtils {
|
|
2
|
+
static offsetLines(content: string, by: number, character: string): string;
|
|
3
|
+
static offsetLinesIgnoreFirst(content: string, by: number, character: string): string;
|
|
4
|
+
static offsetLinesCanIgnoreFirstline(content: string, shouldIgnoreFirstLine: boolean, userOffset: number, nodeOffset: number, character: string): string;
|
|
5
|
+
}
|