@supernova-studio/supernova-sdk-beta 1.6.10 → 1.6.12

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.
Files changed (214) hide show
  1. package/build/sdk-typescript/src/browser-bundle.d.ts +1 -1
  2. package/build/sdk-typescript/src/core/SDKSupernova.d.ts +45 -39
  3. package/build/sdk-typescript/src/core/areas/SDKAreaAssets.d.ts +35 -0
  4. package/build/sdk-typescript/src/core/areas/SDKAreaBrands.d.ts +18 -0
  5. package/build/sdk-typescript/src/core/areas/SDKAreaBulkOperations.d.ts +31 -0
  6. package/build/sdk-typescript/src/core/areas/SDKAreaComponents.d.ts +43 -0
  7. package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +18 -0
  8. package/build/sdk-typescript/src/core/areas/SDKAreaDesignSystems.d.ts +17 -0
  9. package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +50 -0
  10. package/build/sdk-typescript/src/core/areas/SDKAreaIntegrations.d.ts +26 -0
  11. package/build/sdk-typescript/src/core/areas/SDKAreaMe.d.ts +22 -0
  12. package/build/sdk-typescript/src/core/areas/SDKAreaPipelines.d.ts +36 -0
  13. package/build/sdk-typescript/src/core/areas/SDKAreaTokenValues.d.ts +140 -0
  14. package/build/sdk-typescript/src/core/areas/SDKAreaTokens.d.ts +217 -0
  15. package/build/sdk-typescript/src/core/areas/SDKAreaUsers.d.ts +6 -0
  16. package/build/sdk-typescript/src/core/areas/SDKAreaVersions.d.ts +14 -0
  17. package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +114 -0
  18. package/build/sdk-typescript/src/core/areas/SDKRemoteIdentifiers.d.ts +25 -0
  19. package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +16 -17
  20. package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +209 -134
  21. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +124 -0
  22. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreRenderRequests.d.ts +18 -0
  23. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +73 -0
  24. package/build/sdk-typescript/src/core/errors/SDKSupernovaError.d.ts +41 -20
  25. package/build/sdk-typescript/src/core/resolvers/SDKAssetGroupResolver.d.ts +1 -1
  26. package/build/sdk-typescript/src/core/resolvers/SDKComponentGroupResolver.d.ts +13 -0
  27. package/build/sdk-typescript/src/core/resolvers/SDKComponentResolver.d.ts +5 -6
  28. package/build/sdk-typescript/src/core/resolvers/SDKDesignComponentGroupResolver.d.ts +1 -4
  29. package/build/sdk-typescript/src/core/resolvers/SDKDocumentationItemResolver.d.ts +6 -8
  30. package/build/sdk-typescript/src/core/resolvers/SDKTokenGroupResolver.d.ts +1 -2
  31. package/build/sdk-typescript/src/core/resolvers/SDKTokenResolver.d.ts +73 -45
  32. package/build/sdk-typescript/src/exports.d.ts +143 -117
  33. package/build/sdk-typescript/src/index.d.ts +1 -1
  34. package/build/sdk-typescript/src/model/acl/SDKAcl.d.ts +51 -0
  35. package/build/sdk-typescript/src/model/assets/SDKRenderedAsset.d.ts +5 -5
  36. package/build/sdk-typescript/src/model/base/SDKBrand.d.ts +30 -0
  37. package/build/sdk-typescript/src/model/base/SDKDesignSystem.d.ts +56 -0
  38. package/build/sdk-typescript/src/model/base/SDKDesignSystemVersion.d.ts +40 -0
  39. package/build/sdk-typescript/src/model/base/SDKDocumentation.d.ts +10 -0
  40. package/build/sdk-typescript/src/model/components/SDKComponent.d.ts +4 -4
  41. package/build/sdk-typescript/src/model/components/SDKDesignComponent.d.ts +4 -4
  42. package/build/sdk-typescript/src/model/documentation/SDKDocumentationConfiguration.d.ts +5 -5
  43. package/build/sdk-typescript/src/model/documentation/SDKDocumentationGroup.d.ts +2 -2
  44. package/build/sdk-typescript/src/model/documentation/SDKDocumentationItem.d.ts +2 -2
  45. package/build/sdk-typescript/src/model/documentation/SDKDocumentationPage.d.ts +4 -4
  46. package/build/sdk-typescript/src/model/documentation/SDKDocumentationPageAsset.d.ts +4 -4
  47. package/build/sdk-typescript/src/model/documentation/SDKDocumentationPageBlock.d.ts +4 -6
  48. package/build/sdk-typescript/src/model/documentation/SDKDocumentationRichText.d.ts +3 -3
  49. package/build/sdk-typescript/src/model/documentation/SDKDocumentationRichTextSpan.d.ts +3 -3
  50. package/build/sdk-typescript/src/model/documentation/SDKDocumentationRichTextSpanAttribute.d.ts +2 -2
  51. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockAsset.d.ts +3 -3
  52. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockAssets.d.ts +6 -8
  53. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockCallout.d.ts +5 -6
  54. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockCode.d.ts +5 -6
  55. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockColumn.d.ts +2 -6
  56. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockColumnItem.d.ts +7 -9
  57. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockCustom.d.ts +5 -6
  58. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockDivider.d.ts +2 -6
  59. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedFigma.d.ts +2 -6
  60. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedGeneric.d.ts +5 -7
  61. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedLink.d.ts +5 -6
  62. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedStorybook.d.ts +2 -6
  63. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedYoutube.d.ts +1 -5
  64. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockFrame.d.ts +3 -3
  65. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockFrames.d.ts +6 -8
  66. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockHeading.d.ts +5 -6
  67. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockImage.d.ts +5 -7
  68. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockOrderedList.d.ts +2 -6
  69. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockQuote.d.ts +2 -6
  70. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockRenderCode.d.ts +3 -4
  71. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockShortcut.d.ts +3 -3
  72. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockShortcuts.d.ts +5 -7
  73. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTab.d.ts +2 -6
  74. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTabItem.d.ts +4 -6
  75. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTable.d.ts +4 -6
  76. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTableCell.d.ts +4 -6
  77. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTableColumn.d.ts +5 -5
  78. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTableRow.d.ts +2 -6
  79. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockText.d.ts +5 -7
  80. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockToken.d.ts +4 -6
  81. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTokenGroup.d.ts +4 -6
  82. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTokenList.d.ts +4 -6
  83. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockUnorderedList.d.ts +2 -6
  84. package/build/sdk-typescript/src/model/documentation/builder/SDKDocumentationBlockBuilder.d.ts +1 -1
  85. package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationItemConfiguration.d.ts +2 -2
  86. package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationItemHeader.d.ts +6 -6
  87. package/build/sdk-typescript/src/model/elements/SDKElementDataView.d.ts +4 -4
  88. package/build/sdk-typescript/src/model/elements/SDKElementDataViewColumn.d.ts +2 -2
  89. package/build/sdk-typescript/src/model/elements/SDKElementProperty.d.ts +23 -6
  90. package/build/sdk-typescript/src/model/elements/SDKElementPropertyOption.d.ts +6 -2
  91. package/build/sdk-typescript/src/model/elements/values/SDKElementPropertyValue.d.ts +2 -2
  92. package/build/sdk-typescript/src/model/enums/SDKBorderStyle.d.ts +6 -0
  93. package/build/sdk-typescript/src/model/enums/SDKIntegrationService.d.ts +7 -0
  94. package/build/sdk-typescript/src/model/enums/SDKTextCase.d.ts +2 -1
  95. package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +42 -6
  96. package/build/sdk-typescript/src/model/enums/SDKUnit.d.ts +13 -2
  97. package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +7 -0
  98. package/build/sdk-typescript/src/model/enums/SDKVisibilityType.d.ts +4 -0
  99. package/build/sdk-typescript/src/model/enums/SDKWorkspaceNPMRegistryAuthType.d.ts +6 -0
  100. package/build/sdk-typescript/src/model/enums/SDKWorkspaceNPMRegistryType.d.ts +12 -0
  101. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionPlanInterval.d.ts +6 -0
  102. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionProduct.d.ts +12 -0
  103. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatus.d.ts +18 -0
  104. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatusInternal.d.ts +8 -0
  105. package/build/sdk-typescript/src/model/exporters/SDKExporter.d.ts +3 -3
  106. package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlock.d.ts +2 -2
  107. package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlockProperty.d.ts +2 -2
  108. package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlockVariant.d.ts +2 -2
  109. package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterConfigurationProperty.d.ts +5 -5
  110. package/build/sdk-typescript/src/model/groups/SDKAssetGroup.d.ts +5 -5
  111. package/build/sdk-typescript/src/model/groups/SDKComponentGroup.d.ts +39 -0
  112. package/build/sdk-typescript/src/model/groups/SDKDesignComponentGroup.d.ts +7 -7
  113. package/build/sdk-typescript/src/model/groups/SDKTokenGroup.d.ts +12 -11
  114. package/build/sdk-typescript/src/model/membership/SDKMembership.d.ts +16 -0
  115. package/build/sdk-typescript/src/model/support/SDKDesignComponentOrigin.d.ts +4 -4
  116. package/build/sdk-typescript/src/model/support/SDKFrameOrigin.d.ts +2 -2
  117. package/build/sdk-typescript/src/model/support/SDKSize.d.ts +2 -2
  118. package/build/sdk-typescript/src/model/support/SDKSource.d.ts +19 -9
  119. package/build/sdk-typescript/src/model/support/SDKTokenOrigin.d.ts +2 -2
  120. package/build/sdk-typescript/src/model/themes/SDKThemeUtilities.d.ts +8 -3
  121. package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +16 -24
  122. package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +13 -21
  123. package/build/sdk-typescript/src/model/tokens/SDKBlurToken.d.ts +12 -8
  124. package/build/sdk-typescript/src/model/tokens/SDKBorderToken.d.ts +15 -10
  125. package/build/sdk-typescript/src/model/tokens/SDKColorToken.d.ts +19 -11
  126. package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +70 -0
  127. package/build/sdk-typescript/src/model/tokens/SDKGradientToken.d.ts +18 -10
  128. package/build/sdk-typescript/src/model/tokens/SDKShadowToken.d.ts +17 -13
  129. package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +36 -0
  130. package/build/sdk-typescript/src/model/tokens/SDKTextCaseToken.d.ts +23 -0
  131. package/build/sdk-typescript/src/model/tokens/SDKTextDecorationToken.d.ts +26 -0
  132. package/build/sdk-typescript/src/model/tokens/SDKToken.d.ts +13 -12
  133. package/build/sdk-typescript/src/model/tokens/SDKTokenCompator.d.ts +10 -10
  134. package/build/sdk-typescript/src/model/tokens/SDKTokenValue.d.ts +149 -63
  135. package/build/sdk-typescript/src/model/tokens/SDKTypographyToken.d.ts +12 -11
  136. package/build/sdk-typescript/src/model/tokens/SDKVisibilityToken.d.ts +18 -0
  137. package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenData.d.ts +74 -14
  138. package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenModel.d.ts +18 -16
  139. package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenValue.d.ts +73 -34
  140. package/build/sdk-typescript/src/model/users/SDKUser.d.ts +20 -11
  141. package/build/sdk-typescript/src/model/users/SDKUserProfile.d.ts +49 -0
  142. package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +27 -0
  143. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceIPWhitelistSettings.d.ts +26 -0
  144. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceNPMRegistrySettings.d.ts +34 -0
  145. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceOnboarding.d.ts +30 -0
  146. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductFeatures.d.ts +30 -0
  147. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProfile.d.ts +68 -0
  148. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSSOSettings.d.ts +17 -0
  149. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +82 -0
  150. package/build/sdk-typescript/src/tests/Areas/AreaTokenValues.d.ts +0 -0
  151. package/build/sdk-typescript/src/tests/FigmaTokensDataLoader.d.ts +20 -0
  152. package/build/sdk-typescript/src/tests/Serialization/WorkspaceNPMRegistrySettings.spec.d.ts +1 -0
  153. package/build/sdk-typescript/src/tests/Serialization/WorkspaceOnboarding.spec.d.ts +1 -0
  154. package/build/sdk-typescript/src/tests/Serialization/WorkspaceSSOSettings.spec.d.ts +1 -0
  155. package/build/sdk-typescript/src/tests/Tooling/PluginFigmaTokens.spec.d.ts +1 -17
  156. package/build/sdk-typescript/src/tests/Tooling/ReadTokens.spec.d.ts +1 -0
  157. package/build/sdk-typescript/src/tests/Tooling/TokensModel.spec.d.ts +1 -0
  158. package/build/sdk-typescript/src/tests/helpers.d.ts +6 -1
  159. package/build/sdk-typescript/src/tests/validators.d.ts +83 -0
  160. package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +15 -13
  161. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +15 -12
  162. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONGroupBuilder.d.ts +8 -6
  163. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +2 -1
  164. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +5 -3
  165. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +4 -4
  166. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapResolver.d.ts +2 -5
  167. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTThemeMerger.d.ts +7 -7
  168. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenGroupTreeMerger.d.ts +6 -6
  169. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenMerger.d.ts +6 -6
  170. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +5 -6
  171. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenSetResolver.d.ts +1 -2
  172. package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTree.d.ts +4 -2
  173. package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTreeNode.d.ts +1 -4
  174. package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTParentChildMapping.d.ts +1 -1
  175. package/build/sdk-typescript/src/tools/json-builder/SDKToolsJSONBuilder.d.ts +6 -5
  176. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementFigmaTokensTransformer.d.ts +17 -20
  177. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementStyleDictionaryTransformer.d.ts +11 -14
  178. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +27 -36
  179. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +5 -6
  180. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +39 -39
  181. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +4 -8
  182. package/build/sdk-typescript/src/tools/search-index/SDKToolsDocSearch.d.ts +1 -1
  183. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewGenerator.d.ts +17 -0
  184. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewMetadataGenerator.d.ts +8 -0
  185. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewReferenceInfoGenerator.d.ts +10 -0
  186. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewSegmentGenerator.d.ts +5 -0
  187. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewStyleGenerator.d.ts +5 -0
  188. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewTypes.d.ts +68 -0
  189. package/build/sdk-typescript/src/tools/token-transform/SDKToolsTokenTransform.d.ts +8 -12
  190. package/build/sdk-typescript/src/utils/TokenUtils.d.ts +113 -0
  191. package/build/sdk-typescript/src/utils/UnreachableCaseError.d.ts +3 -0
  192. package/build/supernova-sdk-typescript.js +1 -1
  193. package/build/supernova-sdk-typescript.js.map +1 -1
  194. package/package.json +9 -6
  195. package/build/sdk-typescript/src/core/SDKBrand.d.ts +0 -80
  196. package/build/sdk-typescript/src/core/SDKBrandWriter.d.ts +0 -29
  197. package/build/sdk-typescript/src/core/SDKDesignSystem.d.ts +0 -62
  198. package/build/sdk-typescript/src/core/SDKDesignSystemVersion.d.ts +0 -99
  199. package/build/sdk-typescript/src/core/SDKDocumentation.d.ts +0 -55
  200. package/build/sdk-typescript/src/core/SDKWorkspace.d.ts +0 -26
  201. package/build/sdk-typescript/src/model/support/SDKWorkspaceNPMRegistry.d.ts +0 -13
  202. package/build/sdk-typescript/src/model/tokens/SDKFontToken.d.ts +0 -16
  203. package/build/sdk-typescript/src/model/tokens/SDKGenericToken.d.ts +0 -18
  204. package/build/sdk-typescript/src/model/tokens/SDKMeasureToken.d.ts +0 -26
  205. package/build/sdk-typescript/src/model/tokens/SDKRadiusToken.d.ts +0 -18
  206. package/build/sdk-typescript/src/model/tokens/SDKTextToken.d.ts +0 -16
  207. /package/build/sdk-typescript/src/tests/{Accessors/Brand.spec.d.ts → Areas/AreaBatchUpdates.spec.d.ts} +0 -0
  208. /package/build/sdk-typescript/src/tests/{Accessors/Components.spec.d.ts → Areas/AreaBrands.spec.d.ts} +0 -0
  209. /package/build/sdk-typescript/src/tests/{Accessors/DesignSystem.spec.d.ts → Areas/AreaMe.spec.d.ts} +0 -0
  210. /package/build/sdk-typescript/src/tests/{Accessors/DesignSystemVersion.spec.d.ts → Areas/AreaTokens.spec.d.ts} +0 -0
  211. /package/build/sdk-typescript/src/tests/{Accessors/Documentation.spec.d.ts → Areas/AreaWorkspace.spec.d.ts} +0 -0
  212. /package/build/sdk-typescript/src/tests/{Accessors/Supernova.spec.d.ts → Serialization/User.spec.d.ts} +0 -0
  213. /package/build/sdk-typescript/src/tests/{Accessors → Serialization}/Workspace.spec.d.ts +0 -0
  214. /package/build/sdk-typescript/src/tests/{Accessors/Theme.spec.d.ts → Serialization/WorkspaceIPWhitelistSettings.spec.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/supernova-sdk-beta",
3
- "version": "1.6.10",
3
+ "version": "1.6.12",
4
4
  "description": "Supernova.io Developer SDK",
5
5
  "main": "./build/supernova-sdk-typescript.js",
6
6
  "types": "./build/sdk-typescript/src/index.d.ts",
@@ -31,10 +31,12 @@
31
31
  "test-build": "npm run build",
32
32
  "test": "run-s build:main test:*",
33
33
  "test-skipped:lint": "tslint --project .",
34
- "test:unit": "npm run build && ava --verbose --timeout=180s",
34
+ "test:unit": "npm run build && ava --verbose --timeout=180s --serial",
35
+ "test-ci": "ava --verbose --timeout=180s --serial --tap | npx tap-xunit | tee sdk-test-results.xml",
35
36
  "dev": "run-s clean build:main && run-s \"build:main -- -w\"",
36
37
  "watch": "run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"",
37
38
  "reset": "git clean -dfx && git reset --hard && npm i",
39
+ "typecheck": "tsc --noEmit -p ./tsconfig.json",
38
40
  "clean": "trash build test",
39
41
  "prepare-release": "run-s reset test cov:check doc:html version doc:publish",
40
42
  "publish-package": "npm run build:production && npm publish --access=restricted --tag=beta --dry-run",
@@ -63,6 +65,7 @@
63
65
  "expr-eval": "^2.0.2",
64
66
  "fuse.js": "^6.6.2",
65
67
  "lodash": "~4.17.21",
68
+ "ml-matrix": "^6.10.4",
66
69
  "parse-color": "^1.0.0",
67
70
  "postcss-calc-ast-parser": "^0.1.4",
68
71
  "string.prototype.matchall": "^4.0.8",
@@ -70,24 +73,24 @@
70
73
  "uuid": "^8.3.2"
71
74
  },
72
75
  "devDependencies": {
73
- "@ava/typescript": "^3.0.1",
76
+ "@ava/typescript": "^4.0.0",
74
77
  "@istanbuljs/nyc-config-typescript": "^0.1.3",
75
78
  "@types/lodash": "^4.14.159",
76
79
  "@types/node": "^14.14.6",
77
80
  "@types/tinycolor2": "^1.4.3",
78
81
  "@types/uuid": "^8.3.0",
79
- "ava": "4.3.1",
82
+ "ava": "5.2.0",
80
83
  "dotenv": "^16.0.0",
81
84
  "npm-run-all": "4.1.5",
82
85
  "nyc": "^14.1.1",
83
86
  "trash-cli": "^5.0.0",
84
87
  "ts-loader": "^9.2.6",
85
- "ts-node": "^9.1.1",
88
+ "ts-node": "^10.9.1",
86
89
  "tsconfig-paths-webpack-plugin": "^3.5.2",
87
90
  "tslint": "^5.18.0",
88
91
  "typescript": "^4.1.5",
89
92
  "webpack": "^5.66.0",
90
- "webpack-cli": "^4.9.1",
93
+ "webpack-cli": "^4.10.0",
91
94
  "webpack-node-externals": "^3.0.0"
92
95
  },
93
96
  "ava": {
@@ -1,80 +0,0 @@
1
- import { Asset } from '../model/assets/SDKAsset';
2
- import { RenderedAsset } from '../model/assets/SDKRenderedAsset';
3
- import { AssetFormat } from '../model/enums/SDKAssetFormat';
4
- import { AssetScale } from '../model/enums/SDKAssetScale';
5
- import { DesignComponent } from '../model/components/SDKDesignComponent';
6
- import { TokenType } from '../model/enums/SDKTokenType';
7
- import { AssetGroup } from '../model/groups/SDKAssetGroup';
8
- import { DesignComponentGroup } from '../model/groups/SDKDesignComponentGroup';
9
- import { TokenGroup } from '../model/groups/SDKTokenGroup';
10
- import { Token } from '../model/tokens/SDKToken';
11
- import { DataCore } from './data/SDKDataCore';
12
- import { DesignSystemVersion } from './SDKDesignSystemVersion';
13
- import { Component } from '../model/components/SDKComponent';
14
- import { BrandWriter } from './SDKBrandWriter';
15
- import { Supernova } from './SDKSupernova';
16
- import { TokenTheme } from '../model/themes/SDKTokenTheme';
17
- export interface BrandRemoteModel {
18
- id: string;
19
- designSystemVersionId: string;
20
- persistentId: string;
21
- meta: {
22
- name: string;
23
- description: string;
24
- };
25
- }
26
- export declare class Brand {
27
- /** Unique identifier of the brand in this specific version */
28
- id: string;
29
- /** Unique identifier of the brand */
30
- persistentId: string;
31
- /** Design System Version in which this brand exists */
32
- designSystemVersion: DesignSystemVersion;
33
- /** Brand name */
34
- name: string;
35
- /** Brand description */
36
- description: string;
37
- /** Internal: Engine */
38
- engine: Supernova;
39
- /** Internal: Data core */
40
- dataCore: DataCore;
41
- constructor(engine: Supernova, model: BrandRemoteModel, version: DesignSystemVersion);
42
- /** Retrieve write object for this brand */
43
- writer(): BrandWriter;
44
- /** Fetches all tokens available in this design system version belonging to this specific brand */
45
- tokens(forceRefreshCache?: boolean): Promise<Array<Token>>;
46
- /** Fetches all tokens and retrieves resolved array of tokens with applied themes */
47
- tokensByApplyingThemes(themeIds: Array<string>): Promise<Array<Token>>;
48
- /** Fetches all brands available in this design system version belonging to this specific brand */
49
- themes(): Promise<Array<TokenTheme>>;
50
- /** Fetches all token groups available in this design system version belonging to this specific brand */
51
- tokenGroups(): Promise<Array<TokenGroup>>;
52
- /** Fetches root of the token group trees. This method returns roots specific to this brand, one group per category */
53
- tokenGroupTrees(): Promise<Map<TokenType, TokenGroup>>;
54
- /** Fetches all designComponents available in this design system version belonging to this specific brand */
55
- components(): Promise<Array<Component>>;
56
- /** Fetches all designComponents (Figma for now) available in this design system version belonging to this specific brand */
57
- designComponents(): Promise<Array<DesignComponent>>;
58
- /** Fetches all designComponent groups as flattened array available in this design system version belonging to this specific brand */
59
- designComponentGroups(): Promise<Array<DesignComponentGroup>>;
60
- /** Fetches root of the designComponent group tree. This group will contain any other top-level groups that user created and will belong to this specific brand */
61
- designComponentGroupTree(): Promise<DesignComponentGroup>;
62
- /** Fetches all assets available in this design system version belonging to this specific brand */
63
- assets(): Promise<Array<Asset>>;
64
- /** Fetches all asset groups as flattened array available in this design system version belonging to this specific brand */
65
- assetGroups(): Promise<Array<AssetGroup>>;
66
- /** Fetches root of the asset group tree. This group will contain any other top-level groups that user created and will be specific to this brand */
67
- assetGroupTree(): Promise<AssetGroup>;
68
- /** Renders all assets in this brand and retrieves URLs from which assets can be downloaded as key-value. You can only render one combination of size/format with one request - use more requests if you need to render more.
69
- *
70
- * Assets that are rendered as "png" will use "scale" attribute, however, when the format is "svg" or "pdf", scale attribute is ignored and will always render the original size.
71
- *
72
- * Note that assets are not persistent and URLs will expire quickly - you must download them and store them locally / remotely and can never use this URL publicly as it won't work after a short time */
73
- renderedAssets(format: AssetFormat, scale: AssetScale): Promise<Array<RenderedAsset>>;
74
- /** Renders specific assets in this brand and retrieves URLs from which assets can be downloaded as key-value. You can only render one combination of size/format with one request - use more requests if you need to render more.
75
- *
76
- * Assets that are rendered as "png" will use "scale" attribute, however, when the format is "svg" or "pdf", scale attribute is ignored and will always render the original size.
77
- *
78
- * Note that assets are not persistent and URLs will expire quickly - you must download them and store them locally / remotely and can never use this URL publicly as it won't work after a short time */
79
- specificRenderedAssets(assets: Array<Asset>, format: AssetFormat, scale: AssetScale): Promise<Array<RenderedAsset>>;
80
- }
@@ -1,29 +0,0 @@
1
- import { TokenGroup } from "../model/groups/SDKTokenGroup";
2
- import { TokenTheme } from "../model/themes/SDKTokenTheme";
3
- import { Token } from "../model/tokens/SDKToken";
4
- import { DataCore } from "./data/SDKDataCore";
5
- import { Brand } from "./SDKBrand";
6
- import { Supernova } from "./SDKSupernova";
7
- export type TokenWriteResponse = {
8
- result: "success" | "error";
9
- errors: Array<string>;
10
- tokens: Array<Token>;
11
- tokenGroups: Array<TokenGroup>;
12
- };
13
- export type TokenThemeWriteResponse = {
14
- result: "success" | "error";
15
- errors: Array<string>;
16
- theme: TokenTheme;
17
- };
18
- export declare class BrandWriter {
19
- /** Internal: Associated brand */
20
- brand: Brand;
21
- /** Internal: Engine */
22
- engine: Supernova;
23
- /** Internal: Data core */
24
- dataCore: DataCore;
25
- constructor(engine: Supernova, brand: Brand);
26
- /** Fetches all tokens available in this design system version belonging to this specific brand */
27
- writeTokens(tokens: Array<Token>, groups: Array<TokenGroup>, deleteTokens: Array<Token>): Promise<TokenWriteResponse>;
28
- writeTheme(theme: TokenTheme): Promise<TokenThemeWriteResponse>;
29
- }
@@ -1,62 +0,0 @@
1
- import { Supernova } from "../core/SDKSupernova";
2
- import { Source, SourceRemoteModel } from "../model/support/SDKSource";
3
- import { DesignSystemVersion } from "./SDKDesignSystemVersion";
4
- export interface DesignSystemRemoteModel {
5
- id: string;
6
- meta: {
7
- name: string;
8
- description: string;
9
- };
10
- workspaceId: string;
11
- basePrefixes: string[];
12
- sources: Array<SourceRemoteModel>;
13
- isPublic: boolean;
14
- isMultibrand: boolean;
15
- docSlug: string;
16
- docUserSlug?: string;
17
- docExporterId: string;
18
- designSystemSwitcher: {
19
- isEnabled: boolean;
20
- designSystemIds: Array<string>;
21
- };
22
- }
23
- export declare class DesignSystem {
24
- /** Unique identifier of design system */
25
- id: string;
26
- /** Unique identifier of the workspace in which this design system was created */
27
- workspaceId: string;
28
- /** Design system name */
29
- name: string;
30
- /** Design system description */
31
- description: string;
32
- /** If enabled, parts of the design system can be accessed by public (for example, documentation site) */
33
- isPublic: boolean;
34
- /** If set, signals that multibrand functionality is enabled for this design system */
35
- isMultiBrand: boolean;
36
- /** Unique identifier of exporter package used for the documentation */
37
- documentationExporterId: string;
38
- /** Documentation URL slug */
39
- documentationSlug: string;
40
- /** Documentation URL slug - user override */
41
- documentationUserSlug: string | null;
42
- /** Internal: Engine */
43
- engine: Supernova;
44
- /** Binding multiple design systems together */
45
- designSystemSwitcher: {
46
- isEnabled: boolean;
47
- designSystemIds: Array<string>;
48
- };
49
- constructor(engine: Supernova, model: DesignSystemRemoteModel);
50
- /** Fetches all versions that were created in the design system. Note that there is always at least one version - the "draft" - if there was no version created manually. */
51
- versions(): Promise<Array<DesignSystemVersion>>;
52
- /** Fetches active design system version - the one to which all changes are being written currently. There is always one active version at any moment. */
53
- activeVersion(): Promise<DesignSystemVersion>;
54
- /** Get source by source id */
55
- sourceById(sourceId: string): Promise<Source | undefined>;
56
- /** Fetches all sources that were created in the design system. Used to feed the design system with the data (design & code). */
57
- sources(): Promise<Array<Source>>;
58
- /** Get Figma file from source id */
59
- figmaFileIdForSourceId(sourceId: string): Promise<string | undefined>;
60
- /** Get Figma file name from source id */
61
- figmaFileNameForSourceId(sourceId: string): Promise<string | undefined>;
62
- }
@@ -1,99 +0,0 @@
1
- import { Supernova } from '../core/SDKSupernova';
2
- import { AssetFormat, AssetScale, RenderedAsset } from '../exports';
3
- import { Asset } from '../model/assets/SDKAsset';
4
- import { Component } from '../model/components/SDKComponent';
5
- import { DesignComponent } from '../model/components/SDKDesignComponent';
6
- import { ElementDataView } from '../model/elements/SDKElementDataView';
7
- import { ElementProperty } from '../model/elements/SDKElementProperty';
8
- import { TokenType } from '../model/enums/SDKTokenType';
9
- import { AssetGroup } from '../model/groups/SDKAssetGroup';
10
- import { DesignComponentGroup } from '../model/groups/SDKDesignComponentGroup';
11
- import { TokenGroup } from '../model/groups/SDKTokenGroup';
12
- import { TokenTheme } from '../model/themes/SDKTokenTheme';
13
- import { Token } from '../model/tokens/SDKToken';
14
- import { DataCore } from './data/SDKDataCore';
15
- import { Brand } from './SDKBrand';
16
- import { DesignSystem } from './SDKDesignSystem';
17
- import { Documentation } from './SDKDocumentation';
18
- export interface DesignSystemVersionRemoteModel {
19
- id: string;
20
- parentId: string;
21
- version: string;
22
- designSystemId: string;
23
- isReadonly: boolean;
24
- meta: {
25
- name: string;
26
- description: string;
27
- };
28
- createdAt: string;
29
- changeLog: string;
30
- }
31
- export declare class DesignSystemVersion {
32
- /** Unique identifier of design system version */
33
- id: string;
34
- /** Design system in which this version was created */
35
- designSystem: DesignSystem;
36
- /** Design system version name */
37
- name: string;
38
- /** Design system version description */
39
- description: string;
40
- /** Semantic name of version. Will be null if the version is in draft mode */
41
- version: string | null;
42
- /** Change log for the version. Will be null if the version is in draft mode */
43
- changeLog: string | null;
44
- /** If version is in read-only mode, it can't be modified - only documentation that can be improved */
45
- isReadOnly: boolean;
46
- /** Internal: Engine */
47
- engine: Supernova;
48
- /** Internal: Data core */
49
- dataCore: DataCore;
50
- constructor(engine: Supernova, designSystem: DesignSystem, model: DesignSystemVersionRemoteModel);
51
- /** Fetches all brands belonging to this design system version. Brand objects can be used to access filtered data belonging to a single brand */
52
- brands(): Promise<Array<Brand>>;
53
- /** Fetches all tokens in this design system version. This method retrieves all groups defined across all brands */
54
- tokens(): Promise<Array<Token>>;
55
- /** Fetches all themes in this design system version. This method retrieves all groups defined across all brands */
56
- themes(): Promise<Array<TokenTheme>>;
57
- /** Fetches all tokens and retrieves resolved array of tokens with applied themes */
58
- tokensByApplyingThemes(tokenIds: Array<string>, themeIds: Array<string>): Promise<Array<Token>>;
59
- /** Fetches all token groups in this design system version. This method retrieves all groups defined across all brands */
60
- tokenGroups(): Promise<Array<TokenGroup>>;
61
- /** Fetches root of the token group trees. This method returns all roots, one per each brand you have defined, ordered under separate TokenType, one array per category */
62
- tokenGroupTrees(): Promise<Map<TokenType, Array<TokenGroup>>>;
63
- /** Fetches all assets in this design system version for all defined brands */
64
- components(): Promise<Array<Component>>;
65
- /** Fetches all assets in this design system version for all defined brands */
66
- designComponents(): Promise<Array<DesignComponent>>;
67
- /** Fetches all designComponent group in this design system version for all defined brands */
68
- designComponentGroups(): Promise<Array<DesignComponentGroup>>;
69
- /** Fetches roots of the designComponent group trees. This group will contain any other top-level groups that user created. This method returns all roots, one per each brand you have defined */
70
- designComponentGroupTree(): Promise<Array<DesignComponentGroup>>;
71
- /** Fetches all assets in this design system version for all defined brands */
72
- assets(): Promise<Array<Asset>>;
73
- /** Fetches all asset groups and retrieve them as flat array. You can still access all children of groups with children accessor of group object. This method retrieves all groups across all brands */
74
- assetGroups(): Promise<Array<AssetGroup>>;
75
- /** Fetches root of the asset group trees. This group will contain any other top-level groups that user created. This method returns all roots, one per each brand you have defined */
76
- assetGroupTrees(): Promise<Array<AssetGroup>>;
77
- /** Fetches root documentation object containing the entire documentation structure. This will never be null as there is always documentation object attached to a specific design system version */
78
- documentation(): Promise<Documentation>;
79
- /** Renders all assets in this version and retrieves URLs from which assets can be downloaded as key-value. You can only render one combination of size/format with one request - use more requests if you need to render more.
80
- *
81
- * Assets that are rendered as "png" will use "scale" attribute, however, when the format is "svg" or "pdf", scale attribute is ignored and will always render the original size.
82
- *
83
- * Note that assets are not persistent and URLs will expire quickly - you must download them and store them locally / remotely and can never use this URL publicly as it won't work after a short time */
84
- renderedAssets(format: AssetFormat, scale: AssetScale): Promise<Array<RenderedAsset>>;
85
- /** Renders specific assets in this version and retrieves URLs from which assets can be downloaded as key-value. You can only render one combination of size/format with one request - use more requests if you need to render more.
86
- *
87
- * Assets that are rendered as "png" will use "scale" attribute, however, when the format is "svg" or "pdf", scale attribute is ignored and will always render the original size.
88
- *
89
- * Note that assets are not persistent and URLs will expire quickly - you must download them and store them locally / remotely and can never use this URL publicly as it won't work after a short time */
90
- specificRenderedAssets(assets: Array<Asset>, format: AssetFormat, scale: AssetScale): Promise<Array<RenderedAsset>>;
91
- /** Retrieves property definitions for tokens */
92
- tokenProperties(): Promise<Array<ElementProperty>>;
93
- /** Retrieves property views for tokens */
94
- tokenDataViews(): Promise<Array<ElementDataView>>;
95
- /** Retrieves property definitions for components */
96
- componentProperties(): Promise<Array<ElementProperty>>;
97
- /** Retrieves property views for components */
98
- componentDataViews(): Promise<Array<ElementDataView>>;
99
- }
@@ -1,55 +0,0 @@
1
- import { ExporterConfigurationProperty } from '../model/exporters/custom_properties/SDKExporterConfigurationProperty';
2
- import { ExporterCustomBlock } from '../model/exporters/custom_blocks/SDKExporterCustomBlock';
3
- import { ExporterCustomBlockVariant } from '../model/exporters/custom_blocks/SDKExporterCustomBlockVariant';
4
- import { DocumentationConfiguration, DocumentationConfigurationModel } from '../model/documentation/SDKDocumentationConfiguration';
5
- import { DocumentationGroup } from '../model/documentation/SDKDocumentationGroup';
6
- import { DocumentationItem } from '../model/documentation/SDKDocumentationItem';
7
- import { DocumentationPage } from '../model/documentation/SDKDocumentationPage';
8
- import { DesignSystemVersion } from './SDKDesignSystemVersion';
9
- import { DesignSystem } from './SDKDesignSystem';
10
- import { WorkspaceNPMRegistry } from '../model/support/SDKWorkspaceNPMRegistry';
11
- import { ElementProperty } from '..';
12
- import { ElementDataView } from '../model/elements/SDKElementDataView';
13
- export interface DocumentationModel {
14
- settings: DocumentationConfigurationModel;
15
- }
16
- /** Main documentation accessor object. All data associated with documentation can be access through here, such as pages, groups, any block, and also any configuration your editors did. */
17
- export declare class Documentation {
18
- /** Associated version */
19
- private version;
20
- /** Associated design system */
21
- private designSystem;
22
- /** Documentation settings */
23
- settings: DocumentationConfiguration;
24
- constructor(version: DesignSystemVersion, designSystem: DesignSystem, model: DocumentationModel, registry: WorkspaceNPMRegistry | null);
25
- /** Main group to which all groups and pages belong. The root group never shows up inside the editor but is always present in data model */
26
- rootGroup(): Promise<DocumentationGroup>;
27
- /** All items, including pages, groups and group of tab type fetched together */
28
- items(): Promise<Array<DocumentationItem>>;
29
- /** All groups to which other groups and pages can belong. Each group also contains entire children chain pre-fetched and resolved for convenience */
30
- groups(): Promise<Array<DocumentationGroup>>;
31
- /** All pages created within documentation presented as flat structure. Each page contains all data neccessary to render it pre-fetched and resolved for convenience */
32
- pages(): Promise<Array<DocumentationPage>>;
33
- /** All custom blocks that were registered with the active exporter configuration */
34
- customBlocks(): Promise<Array<ExporterCustomBlock>>;
35
- /** All custom configuration properties that are defined within the active exporter package */
36
- customConfiguration(): Promise<Array<ExporterConfigurationProperty>>;
37
- /** All custom block variants that are defined within the active exporter package */
38
- customBlockVariants(): Promise<Array<ExporterCustomBlockVariant>>;
39
- /** Retrieves property definitions for components */
40
- pageProperties(): Promise<Array<ElementProperty>>;
41
- /** Retrieves property views for components */
42
- pageDataViews(): Promise<Array<ElementDataView>>;
43
- /** Publish documentation. This queues a build on Supernova's server that will be processed by the asynchronous CI/CD pipeline. You can request status of the build with associated `isBeingPublished` method. */
44
- publish(): Promise<{
45
- status: 'Queued' | 'InProgress' | 'Failure';
46
- jobId: string | null;
47
- exporterId: string | null;
48
- }>;
49
- /** Publish documentation. This queues a build on Supernova's server that will be processed by the asynchronous CI/CD pipeline. You can request status of the build with associated `isBeingPublished` method. */
50
- isPublishing(): Promise<{
51
- status: 'InProgress' | 'Idle';
52
- jobId: string | null;
53
- exporterId: string | null;
54
- }>;
55
- }
@@ -1,26 +0,0 @@
1
- import { Exporter } from "../model/exporters/SDKExporter";
2
- import { Supernova } from "../core/SDKSupernova";
3
- import { DesignSystem } from "./SDKDesignSystem";
4
- export interface WorkspaceRemoteModel {
5
- id: string;
6
- profile: {
7
- name: string;
8
- handle: string;
9
- color: string;
10
- };
11
- }
12
- export declare class Workspace {
13
- /** Unique identifier of the workspace */
14
- id: string;
15
- /** Unique URL handle of the workspace */
16
- handle: string;
17
- /** Workspace name */
18
- name: string;
19
- /** Private: Engine */
20
- engine: Supernova;
21
- constructor(engine: Supernova, model: WorkspaceRemoteModel);
22
- /** Fetches design systems which belong to this workspace. */
23
- designSystems(): Promise<Array<DesignSystem>>;
24
- /** Fetches exporters which belong to this workspace. */
25
- exporters(): Promise<Array<Exporter>>;
26
- }
@@ -1,13 +0,0 @@
1
- export interface WorkspaceNPMRegistryModel {
2
- enabledScopes: Array<string>;
3
- limitToScopes: boolean;
4
- registryUrl: string;
5
- proxyUrl: string;
6
- }
7
- export declare class WorkspaceNPMRegistry {
8
- enabledScopes: Array<string>;
9
- limitToScopes: boolean;
10
- registryUrl: string;
11
- proxyUrl: string;
12
- constructor(model: WorkspaceNPMRegistryModel);
13
- }
@@ -1,16 +0,0 @@
1
- import { ElementProperty } from '../..';
2
- import { DesignSystemVersion } from '../../core/SDKDesignSystemVersion';
3
- import { ElementPropertyValue } from '../elements/values/SDKElementPropertyValue';
4
- import { FontTokenRemoteModel, TokenRemoteModel } from './remote/SDKRemoteTokenModel';
5
- import { FontTokenRemoteValue } from './remote/SDKRemoteTokenValue';
6
- import { Token } from './SDKToken';
7
- import { FontTokenValue } from './SDKTokenValue';
8
- export declare class FontToken extends Token {
9
- value: FontTokenValue;
10
- constructor(version: DesignSystemVersion, baseToken: TokenRemoteModel, value: FontTokenValue, alias: FontToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
11
- toWriteObject(): FontTokenRemoteModel;
12
- static valueToWriteObject(value: FontTokenValue): {
13
- aliasTo: string | undefined;
14
- value: FontTokenRemoteValue;
15
- };
16
- }
@@ -1,18 +0,0 @@
1
- import { Brand, ElementProperty } from '../..';
2
- import { DesignSystemVersion } from '../../core/SDKDesignSystemVersion';
3
- import { ElementPropertyValue } from '../elements/values/SDKElementPropertyValue';
4
- import { GenericTokenRemoteModel, TokenRemoteModel } from './remote/SDKRemoteTokenModel';
5
- import { TextTokenRemoteValue } from './remote/SDKRemoteTokenValue';
6
- import { Token } from './SDKToken';
7
- import { GenericTokenValue } from './SDKTokenValue';
8
- export declare class GenericToken extends Token {
9
- value: GenericTokenValue;
10
- constructor(version: DesignSystemVersion, baseToken: TokenRemoteModel, value: GenericTokenValue, alias: GenericToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
11
- static create(version: DesignSystemVersion, brand: Brand, name: string, description: string, value: string, alias: GenericToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): GenericToken;
12
- static measureValueFromDefinition(definition: string): GenericTokenValue;
13
- toWriteObject(): GenericTokenRemoteModel;
14
- static valueToWriteObject(value: GenericTokenValue): {
15
- aliasTo: string | undefined;
16
- value: TextTokenRemoteValue;
17
- };
18
- }
@@ -1,26 +0,0 @@
1
- import { Brand, ElementProperty } from '../..';
2
- import { DesignSystemVersion } from '../../core/SDKDesignSystemVersion';
3
- import { DTTokenReferenceResolver } from '../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver';
4
- import { ElementPropertyValue } from '../elements/values/SDKElementPropertyValue';
5
- import { Unit } from '../enums/SDKUnit';
6
- import { MeasureTokenRemoteModel, TokenRemoteModel } from './remote/SDKRemoteTokenModel';
7
- import { MeasureTokenRemoteValue } from './remote/SDKRemoteTokenValue';
8
- import { Token } from './SDKToken';
9
- import { MeasureTokenValue } from './SDKTokenValue';
10
- export declare class MeasureToken extends Token {
11
- value: MeasureTokenValue;
12
- constructor(version: DesignSystemVersion, baseToken: TokenRemoteModel, value: MeasureTokenValue, alias: MeasureToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
13
- static create(version: DesignSystemVersion, brand: Brand, name: string, description: string, value: string | number, alias: MeasureToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): MeasureToken;
14
- static measureValueFromDefinition(definition: string | number): MeasureTokenValue;
15
- static parseMeasure(definition: string): {
16
- measure: number;
17
- unit: Unit;
18
- };
19
- static measureValueFromDefinitionOrReference(definition: any, referenceResolver: DTTokenReferenceResolver): MeasureTokenValue;
20
- toWriteObject(): MeasureTokenRemoteModel;
21
- static valueToWriteObject(value: MeasureTokenValue): {
22
- aliasTo: string | undefined;
23
- value: MeasureTokenRemoteValue;
24
- };
25
- static valueToInternalWriteObject(value: MeasureTokenValue | null): MeasureTokenValue | null;
26
- }
@@ -1,18 +0,0 @@
1
- import { Brand, ElementProperty } from '../..';
2
- import { DesignSystemVersion } from '../../core/SDKDesignSystemVersion';
3
- import { ElementPropertyValue } from '../elements/values/SDKElementPropertyValue';
4
- import { RadiusTokenRemoteModel, TokenRemoteModel } from './remote/SDKRemoteTokenModel';
5
- import { RadiusTokenRemoteValue } from './remote/SDKRemoteTokenValue';
6
- import { Token } from './SDKToken';
7
- import { RadiusTokenValue } from './SDKTokenValue';
8
- export declare class RadiusToken extends Token {
9
- value: RadiusTokenValue;
10
- constructor(version: DesignSystemVersion, baseToken: TokenRemoteModel, value: RadiusTokenValue, alias: RadiusToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
11
- static create(version: DesignSystemVersion, brand: Brand, name: string, description: string, value: string, alias: RadiusToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): RadiusToken;
12
- static radiusValueFromDefinition(definition: string | number): RadiusTokenValue;
13
- toWriteObject(): RadiusTokenRemoteModel;
14
- static valueToWriteObject(value: RadiusTokenValue): {
15
- aliasTo: string | undefined;
16
- value: RadiusTokenRemoteValue;
17
- };
18
- }
@@ -1,16 +0,0 @@
1
- import { ElementProperty } from '../..';
2
- import { DesignSystemVersion } from '../../core/SDKDesignSystemVersion';
3
- import { ElementPropertyValue } from '../elements/values/SDKElementPropertyValue';
4
- import { TextTokenRemoteModel, TokenRemoteModel } from './remote/SDKRemoteTokenModel';
5
- import { TextTokenRemoteValue } from './remote/SDKRemoteTokenValue';
6
- import { Token } from './SDKToken';
7
- import { TextTokenValue } from './SDKTokenValue';
8
- export declare class TextToken extends Token {
9
- value: TextTokenValue;
10
- constructor(version: DesignSystemVersion, baseToken: TokenRemoteModel, value: TextTokenValue, alias: TextToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
11
- toWriteObject(): TextTokenRemoteModel;
12
- static valueToWriteObject(value: TextTokenValue): {
13
- aliasTo: string | undefined;
14
- value: TextTokenRemoteValue;
15
- };
16
- }