@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.
- package/build/sdk-typescript/src/browser-bundle.d.ts +1 -1
- package/build/sdk-typescript/src/core/SDKSupernova.d.ts +45 -39
- package/build/sdk-typescript/src/core/areas/SDKAreaAssets.d.ts +35 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaBrands.d.ts +18 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaBulkOperations.d.ts +31 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaComponents.d.ts +43 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +18 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDesignSystems.d.ts +17 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +50 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaIntegrations.d.ts +26 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaMe.d.ts +22 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaPipelines.d.ts +36 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaTokenValues.d.ts +140 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaTokens.d.ts +217 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaUsers.d.ts +6 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaVersions.d.ts +14 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +114 -0
- package/build/sdk-typescript/src/core/areas/SDKRemoteIdentifiers.d.ts +25 -0
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +16 -17
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +209 -134
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +124 -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 +73 -0
- package/build/sdk-typescript/src/core/errors/SDKSupernovaError.d.ts +41 -20
- package/build/sdk-typescript/src/core/resolvers/SDKAssetGroupResolver.d.ts +1 -1
- package/build/sdk-typescript/src/core/resolvers/SDKComponentGroupResolver.d.ts +13 -0
- package/build/sdk-typescript/src/core/resolvers/SDKComponentResolver.d.ts +5 -6
- package/build/sdk-typescript/src/core/resolvers/SDKDesignComponentGroupResolver.d.ts +1 -4
- package/build/sdk-typescript/src/core/resolvers/SDKDocumentationItemResolver.d.ts +6 -8
- package/build/sdk-typescript/src/core/resolvers/SDKTokenGroupResolver.d.ts +1 -2
- package/build/sdk-typescript/src/core/resolvers/SDKTokenResolver.d.ts +73 -45
- package/build/sdk-typescript/src/exports.d.ts +143 -117
- package/build/sdk-typescript/src/index.d.ts +1 -1
- package/build/sdk-typescript/src/model/acl/SDKAcl.d.ts +51 -0
- package/build/sdk-typescript/src/model/assets/SDKRenderedAsset.d.ts +5 -5
- package/build/sdk-typescript/src/model/base/SDKBrand.d.ts +30 -0
- package/build/sdk-typescript/src/model/base/SDKDesignSystem.d.ts +56 -0
- package/build/sdk-typescript/src/model/base/SDKDesignSystemVersion.d.ts +40 -0
- package/build/sdk-typescript/src/model/base/SDKDocumentation.d.ts +10 -0
- package/build/sdk-typescript/src/model/components/SDKComponent.d.ts +4 -4
- package/build/sdk-typescript/src/model/components/SDKDesignComponent.d.ts +4 -4
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationConfiguration.d.ts +5 -5
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationGroup.d.ts +2 -2
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationItem.d.ts +2 -2
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationPage.d.ts +4 -4
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationPageAsset.d.ts +4 -4
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationPageBlock.d.ts +4 -6
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationRichText.d.ts +3 -3
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationRichTextSpan.d.ts +3 -3
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationRichTextSpanAttribute.d.ts +2 -2
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockAsset.d.ts +3 -3
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockAssets.d.ts +6 -8
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockCallout.d.ts +5 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockCode.d.ts +5 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockColumn.d.ts +2 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockColumnItem.d.ts +7 -9
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockCustom.d.ts +5 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockDivider.d.ts +2 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedFigma.d.ts +2 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedGeneric.d.ts +5 -7
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedLink.d.ts +5 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedStorybook.d.ts +2 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedYoutube.d.ts +1 -5
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockFrame.d.ts +3 -3
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockFrames.d.ts +6 -8
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockHeading.d.ts +5 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockImage.d.ts +5 -7
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockOrderedList.d.ts +2 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockQuote.d.ts +2 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockRenderCode.d.ts +3 -4
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockShortcut.d.ts +3 -3
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockShortcuts.d.ts +5 -7
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTab.d.ts +2 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTabItem.d.ts +4 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTable.d.ts +4 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTableCell.d.ts +4 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTableColumn.d.ts +5 -5
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTableRow.d.ts +2 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockText.d.ts +5 -7
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockToken.d.ts +4 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTokenGroup.d.ts +4 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTokenList.d.ts +4 -6
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockUnorderedList.d.ts +2 -6
- package/build/sdk-typescript/src/model/documentation/builder/SDKDocumentationBlockBuilder.d.ts +1 -1
- package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationItemConfiguration.d.ts +2 -2
- package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationItemHeader.d.ts +6 -6
- package/build/sdk-typescript/src/model/elements/SDKElementDataView.d.ts +4 -4
- package/build/sdk-typescript/src/model/elements/SDKElementDataViewColumn.d.ts +2 -2
- package/build/sdk-typescript/src/model/elements/SDKElementProperty.d.ts +23 -6
- package/build/sdk-typescript/src/model/elements/SDKElementPropertyOption.d.ts +6 -2
- package/build/sdk-typescript/src/model/elements/values/SDKElementPropertyValue.d.ts +2 -2
- package/build/sdk-typescript/src/model/enums/SDKBorderStyle.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKIntegrationService.d.ts +7 -0
- package/build/sdk-typescript/src/model/enums/SDKTextCase.d.ts +2 -1
- package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +42 -6
- package/build/sdk-typescript/src/model/enums/SDKUnit.d.ts +13 -2
- package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +7 -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 +18 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatusInternal.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/SDKExporter.d.ts +3 -3
- package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlock.d.ts +2 -2
- package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlockProperty.d.ts +2 -2
- package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlockVariant.d.ts +2 -2
- package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterConfigurationProperty.d.ts +5 -5
- package/build/sdk-typescript/src/model/groups/SDKAssetGroup.d.ts +5 -5
- package/build/sdk-typescript/src/model/groups/SDKComponentGroup.d.ts +39 -0
- package/build/sdk-typescript/src/model/groups/SDKDesignComponentGroup.d.ts +7 -7
- package/build/sdk-typescript/src/model/groups/SDKTokenGroup.d.ts +12 -11
- package/build/sdk-typescript/src/model/membership/SDKMembership.d.ts +16 -0
- package/build/sdk-typescript/src/model/support/SDKDesignComponentOrigin.d.ts +4 -4
- package/build/sdk-typescript/src/model/support/SDKFrameOrigin.d.ts +2 -2
- package/build/sdk-typescript/src/model/support/SDKSize.d.ts +2 -2
- package/build/sdk-typescript/src/model/support/SDKSource.d.ts +19 -9
- package/build/sdk-typescript/src/model/support/SDKTokenOrigin.d.ts +2 -2
- package/build/sdk-typescript/src/model/themes/SDKThemeUtilities.d.ts +8 -3
- package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +16 -24
- package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +13 -21
- package/build/sdk-typescript/src/model/tokens/SDKBlurToken.d.ts +12 -8
- package/build/sdk-typescript/src/model/tokens/SDKBorderToken.d.ts +15 -10
- package/build/sdk-typescript/src/model/tokens/SDKColorToken.d.ts +19 -11
- package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +70 -0
- package/build/sdk-typescript/src/model/tokens/SDKGradientToken.d.ts +18 -10
- package/build/sdk-typescript/src/model/tokens/SDKShadowToken.d.ts +17 -13
- package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +36 -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 +13 -12
- package/build/sdk-typescript/src/model/tokens/SDKTokenCompator.d.ts +10 -10
- package/build/sdk-typescript/src/model/tokens/SDKTokenValue.d.ts +149 -63
- package/build/sdk-typescript/src/model/tokens/SDKTypographyToken.d.ts +12 -11
- package/build/sdk-typescript/src/model/tokens/SDKVisibilityToken.d.ts +18 -0
- package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenData.d.ts +74 -14
- package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenModel.d.ts +18 -16
- package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenValue.d.ts +73 -34
- package/build/sdk-typescript/src/model/users/SDKUser.d.ts +20 -11
- package/build/sdk-typescript/src/model/users/SDKUserProfile.d.ts +49 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +27 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceIPWhitelistSettings.d.ts +26 -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/SDKWorkspaceProductFeatures.d.ts +30 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProfile.d.ts +68 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSSOSettings.d.ts +17 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +82 -0
- package/build/sdk-typescript/src/tests/Areas/AreaTokenValues.d.ts +0 -0
- package/build/sdk-typescript/src/tests/FigmaTokensDataLoader.d.ts +20 -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 -17
- 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/helpers.d.ts +6 -1
- package/build/sdk-typescript/src/tests/validators.d.ts +83 -0
- package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +15 -13
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +15 -12
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONGroupBuilder.d.ts +8 -6
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +2 -1
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +5 -3
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +4 -4
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapResolver.d.ts +2 -5
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTThemeMerger.d.ts +7 -7
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenGroupTreeMerger.d.ts +6 -6
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenMerger.d.ts +6 -6
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +5 -6
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenSetResolver.d.ts +1 -2
- package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTree.d.ts +4 -2
- package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTreeNode.d.ts +1 -4
- package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTParentChildMapping.d.ts +1 -1
- package/build/sdk-typescript/src/tools/json-builder/SDKToolsJSONBuilder.d.ts +6 -5
- package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementFigmaTokensTransformer.d.ts +17 -20
- package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementStyleDictionaryTransformer.d.ts +11 -14
- package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +27 -36
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +5 -6
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +39 -39
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +4 -8
- package/build/sdk-typescript/src/tools/search-index/SDKToolsDocSearch.d.ts +1 -1
- package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewGenerator.d.ts +17 -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 +10 -0
- package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewSegmentGenerator.d.ts +5 -0
- package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewStyleGenerator.d.ts +5 -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 +8 -12
- package/build/sdk-typescript/src/utils/TokenUtils.d.ts +113 -0
- package/build/sdk-typescript/src/utils/UnreachableCaseError.d.ts +3 -0
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +9 -6
- package/build/sdk-typescript/src/core/SDKBrand.d.ts +0 -80
- package/build/sdk-typescript/src/core/SDKBrandWriter.d.ts +0 -29
- package/build/sdk-typescript/src/core/SDKDesignSystem.d.ts +0 -62
- package/build/sdk-typescript/src/core/SDKDesignSystemVersion.d.ts +0 -99
- package/build/sdk-typescript/src/core/SDKDocumentation.d.ts +0 -55
- package/build/sdk-typescript/src/core/SDKWorkspace.d.ts +0 -26
- package/build/sdk-typescript/src/model/support/SDKWorkspaceNPMRegistry.d.ts +0 -13
- package/build/sdk-typescript/src/model/tokens/SDKFontToken.d.ts +0 -16
- package/build/sdk-typescript/src/model/tokens/SDKGenericToken.d.ts +0 -18
- package/build/sdk-typescript/src/model/tokens/SDKMeasureToken.d.ts +0 -26
- package/build/sdk-typescript/src/model/tokens/SDKRadiusToken.d.ts +0 -18
- package/build/sdk-typescript/src/model/tokens/SDKTextToken.d.ts +0 -16
- /package/build/sdk-typescript/src/tests/{Accessors/Brand.spec.d.ts → Areas/AreaBatchUpdates.spec.d.ts} +0 -0
- /package/build/sdk-typescript/src/tests/{Accessors/Components.spec.d.ts → Areas/AreaBrands.spec.d.ts} +0 -0
- /package/build/sdk-typescript/src/tests/{Accessors/DesignSystem.spec.d.ts → Areas/AreaMe.spec.d.ts} +0 -0
- /package/build/sdk-typescript/src/tests/{Accessors/DesignSystemVersion.spec.d.ts → Areas/AreaTokens.spec.d.ts} +0 -0
- /package/build/sdk-typescript/src/tests/{Accessors/Documentation.spec.d.ts → Areas/AreaWorkspace.spec.d.ts} +0 -0
- /package/build/sdk-typescript/src/tests/{Accessors/Supernova.spec.d.ts → Serialization/User.spec.d.ts} +0 -0
- /package/build/sdk-typescript/src/tests/{Accessors → Serialization}/Workspace.spec.d.ts +0 -0
- /package/build/sdk-typescript/src/tests/{Accessors/Theme.spec.d.ts → Serialization/WorkspaceIPWhitelistSettings.spec.d.ts} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type ComponentGroupRemoteModel = {
|
|
2
|
+
id: string;
|
|
3
|
+
brandId: string;
|
|
4
|
+
designSystemVersionId: string;
|
|
5
|
+
persistentId: string;
|
|
6
|
+
isRoot: boolean;
|
|
7
|
+
meta: {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
childrenIds: string[];
|
|
12
|
+
createdAt?: string;
|
|
13
|
+
updatedAt?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare class ComponentGroup {
|
|
16
|
+
id: string;
|
|
17
|
+
idInVersion: string;
|
|
18
|
+
brandId: string;
|
|
19
|
+
designSystemVersionId: string;
|
|
20
|
+
name: string;
|
|
21
|
+
description: string;
|
|
22
|
+
path: Array<string>;
|
|
23
|
+
subgroupIds: Array<string>;
|
|
24
|
+
isRoot: boolean;
|
|
25
|
+
childrenIds: Array<string>;
|
|
26
|
+
componentIds: Array<string>;
|
|
27
|
+
parentGroupId: string | null;
|
|
28
|
+
sortOrder: number;
|
|
29
|
+
createdAt: Date | null;
|
|
30
|
+
updatedAt: Date | null;
|
|
31
|
+
constructor(model: ComponentGroupRemoteModel);
|
|
32
|
+
addChild(groupId: string): void;
|
|
33
|
+
addChildren(groupsIds: Array<string>): void;
|
|
34
|
+
setPath(segments: Array<string>): void;
|
|
35
|
+
setParentGroupId(parentGroupId: string | null): void;
|
|
36
|
+
setSortOrder(order: number): void;
|
|
37
|
+
toWriteObject(): ComponentGroupRemoteModel;
|
|
38
|
+
toMutatedObject(childrenIds: Array<string>): ComponentGroup;
|
|
39
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type DesignComponentGroupRemoteModel = {
|
|
2
2
|
id: string;
|
|
3
3
|
designSystemVersionId: string;
|
|
4
4
|
persistentId: string;
|
|
@@ -11,23 +11,23 @@ export interface DesignComponentGroupRemoteModel {
|
|
|
11
11
|
childrenIds: string[];
|
|
12
12
|
createdAt?: string;
|
|
13
13
|
updatedAt?: string;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
export declare class DesignComponentGroup {
|
|
16
16
|
id: string;
|
|
17
17
|
brandId: string;
|
|
18
18
|
name: string;
|
|
19
19
|
description: string;
|
|
20
20
|
path: Array<string>;
|
|
21
|
-
|
|
21
|
+
subgroupIds: Array<string>;
|
|
22
22
|
isRoot: boolean;
|
|
23
23
|
childrenIds: Array<string>;
|
|
24
24
|
componentIds: Array<string>;
|
|
25
|
-
|
|
25
|
+
parentGroupId: string | null;
|
|
26
26
|
createdAt: Date | null;
|
|
27
27
|
updatedAt: Date | null;
|
|
28
28
|
constructor(model: DesignComponentGroupRemoteModel);
|
|
29
|
-
addChild(
|
|
30
|
-
addChildren(
|
|
29
|
+
addChild(groupId: string): void;
|
|
30
|
+
addChildren(groupsIds: Array<string>): void;
|
|
31
31
|
setPath(segments: Array<string>): void;
|
|
32
|
-
|
|
32
|
+
setParentGroupId(parentGroupId: string | null): void;
|
|
33
33
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { TokenType } from
|
|
2
|
-
export
|
|
3
|
-
id
|
|
1
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
2
|
+
export type TokenGroupRemoteModel = {
|
|
3
|
+
id?: string;
|
|
4
|
+
parentId?: string;
|
|
4
5
|
brandId: string;
|
|
5
6
|
tokenType: TokenType;
|
|
6
7
|
designSystemVersionId: string;
|
|
7
|
-
persistentId
|
|
8
|
+
persistentId?: string;
|
|
8
9
|
isRoot: boolean;
|
|
9
10
|
meta: {
|
|
10
11
|
name: string;
|
|
@@ -13,29 +14,29 @@ export interface TokenGroupRemoteModel {
|
|
|
13
14
|
childrenIds: string[];
|
|
14
15
|
createdAt?: string;
|
|
15
16
|
updatedAt?: string;
|
|
16
|
-
}
|
|
17
|
+
};
|
|
17
18
|
export declare class TokenGroup {
|
|
18
19
|
id: string;
|
|
19
|
-
|
|
20
|
+
idInVersion: string;
|
|
20
21
|
brandId: string;
|
|
21
22
|
designSystemVersionId: string;
|
|
22
23
|
name: string;
|
|
23
24
|
description: string;
|
|
24
25
|
path: Array<string>;
|
|
25
|
-
|
|
26
|
+
subgroupIds: Array<string>;
|
|
26
27
|
tokenType: TokenType;
|
|
27
28
|
isRoot: boolean;
|
|
28
29
|
childrenIds: Array<string>;
|
|
29
30
|
tokenIds: Array<string>;
|
|
30
|
-
|
|
31
|
+
parentGroupId: string | null;
|
|
31
32
|
sortOrder: number;
|
|
32
33
|
createdAt: Date | null;
|
|
33
34
|
updatedAt: Date | null;
|
|
34
35
|
constructor(model: TokenGroupRemoteModel);
|
|
35
|
-
addChild(
|
|
36
|
-
addChildren(
|
|
36
|
+
addChild(groupId: string): void;
|
|
37
|
+
addChildren(groupsIds: Array<string>): void;
|
|
37
38
|
setPath(segments: Array<string>): void;
|
|
38
|
-
|
|
39
|
+
setParentGroupId(parentGroupId: string | null): void;
|
|
39
40
|
setSortOrder(order: number): void;
|
|
40
41
|
toWriteObject(): TokenGroupRemoteModel;
|
|
41
42
|
toMutatedObject(childrenIds: Array<string>): TokenGroup;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Workspace, WorkspaceRemoteModel } from "../workspaces/SDKWorkspace";
|
|
2
|
+
import { UserRole } from "../enums/SDKUserRole";
|
|
3
|
+
export type MembershipRemoteModel = {
|
|
4
|
+
workspace: WorkspaceRemoteModel;
|
|
5
|
+
role: UserRole;
|
|
6
|
+
savedRole: UserRole;
|
|
7
|
+
};
|
|
8
|
+
export declare class Membership {
|
|
9
|
+
/** Unique identifier of the workspace */
|
|
10
|
+
workspace: Workspace;
|
|
11
|
+
/** Unique URL handle of the workspace */
|
|
12
|
+
role: UserRole;
|
|
13
|
+
/** Workspace name */
|
|
14
|
+
savedRole: UserRole;
|
|
15
|
+
constructor(model: MembershipRemoteModel);
|
|
16
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { SourceType } from
|
|
2
|
-
import { Source } from
|
|
3
|
-
export
|
|
1
|
+
import { SourceType } from "../enums/SDKSourceType";
|
|
2
|
+
import { Source } from "./SDKSource";
|
|
3
|
+
export type DesignComponentOriginModel = {
|
|
4
4
|
id: string;
|
|
5
5
|
sourceId: string;
|
|
6
6
|
nodeId: string;
|
|
7
7
|
name?: string;
|
|
8
8
|
width?: number;
|
|
9
9
|
height?: number;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
export declare class DesignComponentOrigin {
|
|
12
12
|
sourceType: SourceType;
|
|
13
13
|
sourceId: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type FrameOriginModel = {
|
|
2
2
|
title?: string;
|
|
3
3
|
previewUrl?: string;
|
|
4
4
|
referenceId?: string;
|
|
@@ -8,7 +8,7 @@ export interface FrameOriginModel {
|
|
|
8
8
|
assetScale?: string;
|
|
9
9
|
width?: number;
|
|
10
10
|
height?: number;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
export declare class FrameOrigin {
|
|
13
13
|
sourceFileName: string | null;
|
|
14
14
|
sourceFrameId: string | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SourceType } from
|
|
2
|
-
export
|
|
1
|
+
import { SourceType } from "../enums/SDKSourceType";
|
|
2
|
+
export type SourceRemoteModel = {
|
|
3
3
|
type: SourceType;
|
|
4
4
|
id: string;
|
|
5
5
|
fileName?: string;
|
|
6
|
-
linkType:
|
|
6
|
+
linkType: "Design" | "Frames";
|
|
7
7
|
brandId?: string;
|
|
8
8
|
plugin?: {
|
|
9
9
|
fileId: string;
|
|
@@ -11,7 +11,7 @@ export interface SourceRemoteModel {
|
|
|
11
11
|
};
|
|
12
12
|
cloud?: {
|
|
13
13
|
fileId: string;
|
|
14
|
-
autoImportMode:
|
|
14
|
+
autoImportMode: "Never" | "Hourly";
|
|
15
15
|
fileThumbnailUrl?: string;
|
|
16
16
|
lastUpdatesCheckedAt?: string;
|
|
17
17
|
lastImportedVersion?: {
|
|
@@ -51,22 +51,24 @@ export interface SourceRemoteModel {
|
|
|
51
51
|
ownerUserName: string;
|
|
52
52
|
state: string;
|
|
53
53
|
};
|
|
54
|
-
}
|
|
54
|
+
};
|
|
55
|
+
export type SourceTransportModel = Pick<Source, "type" | "id" | "fileName" | "fileId" | "autoImportMode" | "fileThumbnailUrl" | "lastImportedVersion" | "lastImportResult" | "lastImportFramesResult" | "ownerId" | "ownerUserName" | "state" | "linkType" | "brandId"> & {
|
|
56
|
+
lastUpdatesCheckedAt?: string;
|
|
57
|
+
lastImportedAt?: string;
|
|
58
|
+
};
|
|
55
59
|
export declare class Source {
|
|
56
60
|
type: SourceType;
|
|
57
61
|
id: string;
|
|
58
62
|
fileName: string | null;
|
|
59
63
|
fileId: string | null;
|
|
60
|
-
autoImportMode:
|
|
64
|
+
autoImportMode: "Never" | "Hourly" | null;
|
|
61
65
|
fileThumbnailUrl: string | null;
|
|
62
|
-
lastUpdatesCheckedAt: string | null;
|
|
63
66
|
lastImportedVersion: {
|
|
64
67
|
id: string;
|
|
65
68
|
created_at: string;
|
|
66
69
|
label: string | null;
|
|
67
70
|
description: string;
|
|
68
71
|
} | null;
|
|
69
|
-
lastImportedAt: string | null;
|
|
70
72
|
lastImportResult: {
|
|
71
73
|
sourceId: string;
|
|
72
74
|
brandId: string;
|
|
@@ -96,7 +98,15 @@ export declare class Source {
|
|
|
96
98
|
ownerId: string | null;
|
|
97
99
|
ownerUserName: string | null;
|
|
98
100
|
state: string | null;
|
|
99
|
-
linkType:
|
|
101
|
+
linkType: "Design" | "Frames";
|
|
100
102
|
brandId: string | null;
|
|
103
|
+
lastUpdatesCheckedAt: Date | null;
|
|
104
|
+
lastImportedAt: Date | null;
|
|
101
105
|
constructor(model: SourceRemoteModel);
|
|
106
|
+
/** Constructs representation that can be used to write full object to remote */
|
|
107
|
+
toRemote(): SourceRemoteModel;
|
|
108
|
+
/** Constructs representation that can be used to transport the instantiated object as JSON, for example for SSR <> Client use-cases. Reconstruct to class instance using `fromTransport` */
|
|
109
|
+
toTransport(): SourceTransportModel;
|
|
110
|
+
/** Reconstructs class from the transport model */
|
|
111
|
+
static fromTransport(model: SourceTransportModel): Source;
|
|
102
112
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TokenOrigin } from "../support/SDKTokenOrigin";
|
|
2
|
+
import { Token } from "../tokens/SDKToken";
|
|
3
|
+
import { AnyToken } from "../tokens/SDKTokenValue";
|
|
3
4
|
export declare class ThemeUtilities {
|
|
4
5
|
/** Creates duplicate of the token */
|
|
5
|
-
static replicateTokenAsThemePrefabWithoutValue(token: Token, themeId: string, origin: TokenOrigin | null,
|
|
6
|
+
static replicateTokenAsThemePrefabWithoutValue(token: Token, themeId: string, origin: TokenOrigin | null, versionId: string): AnyToken;
|
|
7
|
+
/** Creates duplicate of the token */
|
|
8
|
+
static replicateTokenWithoutValue<T extends AnyToken>(token: T): T;
|
|
9
|
+
/** Creates duplicate of the token */
|
|
10
|
+
static replicateTokenWithValue<T extends AnyToken>(token: T): T;
|
|
6
11
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
2
|
+
import { Token } from "../tokens/SDKToken";
|
|
3
|
+
import { AnyToken, AnyTokenValue } from "../tokens/SDKTokenValue";
|
|
4
|
+
import { TokenThemeOverrideRemoteModel } from "./SDKTokenThemeOverride";
|
|
5
|
+
export type TokenThemeRemoteModel = {
|
|
5
6
|
meta: {
|
|
6
7
|
name: string;
|
|
7
8
|
description: string;
|
|
8
9
|
};
|
|
9
|
-
id
|
|
10
|
+
id?: string;
|
|
10
11
|
persistentId: string;
|
|
11
12
|
designSystemVersionId: string;
|
|
12
13
|
brandId: string;
|
|
@@ -14,10 +15,10 @@ export interface TokenThemeRemoteModel {
|
|
|
14
15
|
createdAt?: string;
|
|
15
16
|
updatedAt?: string;
|
|
16
17
|
overrides: Array<TokenThemeOverrideRemoteModel>;
|
|
17
|
-
}
|
|
18
|
+
};
|
|
18
19
|
export declare class TokenTheme {
|
|
19
20
|
id: string;
|
|
20
|
-
|
|
21
|
+
idInVersion: string;
|
|
21
22
|
brandId: string;
|
|
22
23
|
designSystemVersionId: string;
|
|
23
24
|
name: string;
|
|
@@ -26,38 +27,29 @@ export declare class TokenTheme {
|
|
|
26
27
|
createdAt: Date | null;
|
|
27
28
|
updatedAt: Date | null;
|
|
28
29
|
overriddenTokens: Array<Token>;
|
|
29
|
-
constructor(model: TokenThemeRemoteModel,
|
|
30
|
+
constructor(model: TokenThemeRemoteModel, versionId: string);
|
|
30
31
|
addOverride(override: Token): void;
|
|
31
32
|
addOverrides(overrides: Array<Token>): void;
|
|
32
33
|
toWriteObject(): TokenThemeRemoteModel;
|
|
33
34
|
private tokensToOverrides;
|
|
34
35
|
toWriteOverrideObject(token: Token): TokenThemeOverrideRemoteModel;
|
|
35
|
-
valueToWriteObject(value: AnyTokenValue, type: TokenType): {
|
|
36
|
+
valueToWriteObject(value: AnyTokenValue, type: TokenType, token: AnyToken): {
|
|
36
37
|
aliasTo: string;
|
|
37
38
|
value: import("../tokens/remote/SDKRemoteTokenValue").BlurTokenRemoteValue;
|
|
38
39
|
} | {
|
|
39
40
|
aliasTo: string;
|
|
40
41
|
value: import("../tokens/remote/SDKRemoteTokenValue").BorderTokenRemoteValue;
|
|
41
|
-
} | {
|
|
42
|
-
aliasTo: string;
|
|
43
|
-
value: string;
|
|
44
|
-
} | {
|
|
45
|
-
aliasTo: string;
|
|
46
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").FontTokenRemoteValue;
|
|
47
|
-
} | {
|
|
48
|
-
aliasTo: string;
|
|
49
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").GradientTokenRemoteValue;
|
|
50
|
-
} | {
|
|
42
|
+
} | import("../tokens/remote/SDKRemoteTokenData").GradientTokenRemoteData | {
|
|
51
43
|
aliasTo: string;
|
|
52
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").
|
|
53
|
-
} | {
|
|
44
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").ColorTokenRemoteValue;
|
|
45
|
+
} | import("../tokens/remote/SDKRemoteTokenData").ShadowTokenRemoteData | {
|
|
54
46
|
aliasTo: string;
|
|
55
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").
|
|
47
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
|
|
56
48
|
} | {
|
|
57
49
|
aliasTo: string;
|
|
58
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").
|
|
50
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
|
|
59
51
|
} | {
|
|
60
52
|
aliasTo: string;
|
|
61
|
-
value:
|
|
53
|
+
value: string;
|
|
62
54
|
};
|
|
63
55
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { TokenType
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
2
|
+
import { TokenOrigin } from "../support/SDKTokenOrigin";
|
|
3
|
+
import { AnyDimensionTokenRemoteData, AnyOptionTokenRemoteData, AnyStringTokenRemoteData, BlurTokenRemoteData, BorderTokenRemoteData, ColorTokenRemoteData, GradientTokenRemoteData, ShadowTokenRemoteData, TypographyTokenRemoteData } from "../tokens/remote/SDKRemoteTokenData";
|
|
4
|
+
import { AnyTokenValue } from "../tokens/SDKTokenValue";
|
|
5
|
+
export type TokenThemeOverrideRemoteModel = {
|
|
6
|
+
data: ColorTokenRemoteData | AnyStringTokenRemoteData | TypographyTokenRemoteData | ShadowTokenRemoteData | AnyDimensionTokenRemoteData | BorderTokenRemoteData | GradientTokenRemoteData | BlurTokenRemoteData | AnyOptionTokenRemoteData;
|
|
6
7
|
tokenPersistentId: string;
|
|
7
8
|
type: TokenType;
|
|
8
9
|
origin: TokenOrigin | null;
|
|
9
10
|
createdAt?: string;
|
|
10
11
|
updatedAt?: string;
|
|
11
|
-
}
|
|
12
|
+
};
|
|
12
13
|
export declare class TokenThemeOverride {
|
|
13
14
|
value: AnyTokenValue;
|
|
14
15
|
tokenId: string;
|
|
@@ -24,26 +25,17 @@ export declare class TokenThemeOverride {
|
|
|
24
25
|
} | {
|
|
25
26
|
aliasTo: string;
|
|
26
27
|
value: import("../tokens/remote/SDKRemoteTokenValue").BorderTokenRemoteValue;
|
|
27
|
-
} | {
|
|
28
|
+
} | GradientTokenRemoteData | {
|
|
28
29
|
aliasTo: string;
|
|
29
|
-
value:
|
|
30
|
-
} | {
|
|
30
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").ColorTokenRemoteValue;
|
|
31
|
+
} | ShadowTokenRemoteData | {
|
|
31
32
|
aliasTo: string;
|
|
32
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").
|
|
33
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
|
|
33
34
|
} | {
|
|
34
35
|
aliasTo: string;
|
|
35
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").
|
|
36
|
-
} | {
|
|
37
|
-
aliasTo: string;
|
|
38
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").MeasureTokenRemoteValue;
|
|
39
|
-
} | {
|
|
40
|
-
aliasTo: string;
|
|
41
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").RadiusTokenRemoteValue;
|
|
42
|
-
} | {
|
|
43
|
-
aliasTo: string;
|
|
44
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").ShadowTokenRemoteValue;
|
|
36
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
|
|
45
37
|
} | {
|
|
46
38
|
aliasTo: string;
|
|
47
|
-
value:
|
|
39
|
+
value: string;
|
|
48
40
|
};
|
|
49
41
|
}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ElementProperty } from
|
|
3
|
-
import { ElementPropertyValue } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
3
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
4
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
5
|
+
import { BlurTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
6
|
+
import { BlurTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
7
|
+
import { Token } from "./SDKToken";
|
|
8
|
+
import { BlurTokenValue } from "./SDKTokenValue";
|
|
8
9
|
export declare class BlurToken extends Token {
|
|
9
10
|
value: BlurTokenValue;
|
|
10
11
|
blurLayers: Array<BlurToken>;
|
|
11
12
|
isVirtual: boolean;
|
|
12
|
-
|
|
13
|
+
tokenType: TokenType;
|
|
14
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: BlurTokenValue, alias: BlurToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
15
|
+
static create(versionId: string, brandId: string, name: string, description: string, value: object, alias: BlurToken | null, referenceResolver: DTTokenReferenceResolver, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): BlurToken;
|
|
16
|
+
static blurValueFromDefinition(definition: object, referenceResolver: DTTokenReferenceResolver): BlurTokenValue;
|
|
13
17
|
toWriteObject(): BlurTokenRemoteModel;
|
|
14
18
|
static valueToWriteObject(value: BlurTokenValue): {
|
|
15
19
|
aliasTo: string | undefined;
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
3
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
4
|
+
import { BorderPosition } from "../enums/SDKBorderPosition";
|
|
5
|
+
import { BorderStyle } from "../enums/SDKBorderStyle";
|
|
6
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
7
|
+
import { BorderTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
8
|
+
import { BorderTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
9
|
+
import { Token } from "./SDKToken";
|
|
10
|
+
import { BorderTokenValue } from "./SDKTokenValue";
|
|
9
11
|
export declare class BorderToken extends Token {
|
|
10
12
|
value: BorderTokenValue;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
tokenType: TokenType;
|
|
14
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: BorderTokenValue, alias: BorderToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
15
|
+
static create(versionId: string, brandId: string, name: string, description: string, value: object, alias: BorderToken | null, referenceResolver: DTTokenReferenceResolver, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): BorderToken;
|
|
13
16
|
static borderValueFromDefinition(definition: object, referenceResolver: DTTokenReferenceResolver): BorderTokenValue;
|
|
17
|
+
static toBorderStyle(value: any): BorderStyle;
|
|
18
|
+
static toBorderPosition(value: any): BorderPosition;
|
|
14
19
|
toWriteObject(): BorderTokenRemoteModel;
|
|
15
20
|
static valueToWriteObject(value: BorderTokenValue): {
|
|
16
21
|
aliasTo: string | undefined;
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
3
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
4
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
5
|
+
import { ColorTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
6
|
+
import { ColorTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
7
|
+
import { Token } from "./SDKToken";
|
|
8
|
+
import { ColorTokenValue } from "./SDKTokenValue";
|
|
9
9
|
export declare class ColorToken extends Token {
|
|
10
10
|
value: ColorTokenValue;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
tokenType: TokenType;
|
|
12
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: ColorTokenValue, alias: ColorToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
13
|
+
static create(versionId: string, brandId: string, name: string, description: string, value: string, alias: ColorToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): ColorToken;
|
|
13
14
|
static colorValueFromDefinition(definition: string): ColorTokenValue;
|
|
14
15
|
static normalizeColor(color: string): string | null;
|
|
15
16
|
static normalizeOpacity(value: string): number;
|
|
16
|
-
static
|
|
17
|
+
static normalizedHex(value: string | null): string | null;
|
|
18
|
+
static colorValueFromDefinitionOrReference(definition: string | object, referenceResolver: DTTokenReferenceResolver): ColorTokenValue | undefined;
|
|
19
|
+
toHex6(): string;
|
|
20
|
+
toHex8(): string;
|
|
21
|
+
static colorValueToHex6(value: ColorTokenValue): string;
|
|
22
|
+
static colorValueToHex8(value: ColorTokenValue): string;
|
|
23
|
+
updateWithRawValue(value: Omit<ColorTokenValue, "referencedTokenId">): void;
|
|
24
|
+
updateWithReferencedValue(value: ColorToken): void;
|
|
17
25
|
toWriteObject(): ColorTokenRemoteModel;
|
|
18
26
|
static valueToWriteObject(value: ColorTokenValue): {
|
|
19
27
|
aliasTo: string | undefined;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
3
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
4
|
+
import { DimensionTokenType, TokenType } from "../enums/SDKTokenType";
|
|
5
|
+
import { Unit } from "../enums/SDKUnit";
|
|
6
|
+
import { DimensionTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
7
|
+
import { AnyDimensionTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
8
|
+
import { Token } from "./SDKToken";
|
|
9
|
+
import { AnyDimensionTokenValue, BorderWidthTokenValue, DimensionTokenValue, DurationTokenValue, FontSizeTokenValue, LetterSpacingTokenValue, LineHeightTokenValue, OpacityTokenValue, ParagraphSpacingTokenValue, RadiusTokenValue, SizeTokenValue, SpaceTokenValue, ZIndexTokenValue } from "./SDKTokenValue";
|
|
10
|
+
export declare class DimensionCategoryToken<T extends AnyDimensionTokenValue> extends Token {
|
|
11
|
+
value: T;
|
|
12
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: T, alias: DimensionCategoryToken<T> | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
13
|
+
static create<TValue extends AnyDimensionTokenValue, TToken extends DimensionCategoryToken<TValue>>(this: new (...args: any[]) => TToken, type: DimensionTokenType, versionId: string, brandId: string, name: string, description: string, value: string | number, alias: TToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): TToken;
|
|
14
|
+
static getDefaultUnit(type: DimensionTokenType): Unit.pixels | Unit.ms | Unit.raw;
|
|
15
|
+
static dimensionValueFromDefinition(definition: string | number, type: DimensionTokenType): OpacityTokenValue;
|
|
16
|
+
static parseDimension(definition: string, type: DimensionTokenType): {
|
|
17
|
+
measure: number;
|
|
18
|
+
unit: Unit;
|
|
19
|
+
};
|
|
20
|
+
static dimensionValueFromDefinitionOrReference(definition: any, referenceResolver: DTTokenReferenceResolver, tokenType: DimensionTokenType): BorderWidthTokenValue;
|
|
21
|
+
toString(): string;
|
|
22
|
+
static valueToString(value: AnyDimensionTokenValue): string;
|
|
23
|
+
static unitToString(unit: Unit): string;
|
|
24
|
+
toWriteObject(): DimensionTokenRemoteModel;
|
|
25
|
+
static valueToWriteObject(value: AnyDimensionTokenValue): {
|
|
26
|
+
aliasTo: string | undefined;
|
|
27
|
+
value: AnyDimensionTokenRemoteValue;
|
|
28
|
+
};
|
|
29
|
+
static valueToInternalWriteObject(value: AnyDimensionTokenValue | null): AnyDimensionTokenValue | null;
|
|
30
|
+
}
|
|
31
|
+
export declare class DimensionToken extends DimensionCategoryToken<DimensionTokenValue> {
|
|
32
|
+
tokenType: TokenType;
|
|
33
|
+
}
|
|
34
|
+
export declare class SizeToken extends DimensionCategoryToken<SizeTokenValue> {
|
|
35
|
+
tokenType: TokenType;
|
|
36
|
+
}
|
|
37
|
+
export declare class SpaceToken extends DimensionCategoryToken<SpaceTokenValue> {
|
|
38
|
+
tokenType: TokenType;
|
|
39
|
+
}
|
|
40
|
+
export declare class OpacityToken extends DimensionCategoryToken<OpacityTokenValue> {
|
|
41
|
+
tokenType: TokenType;
|
|
42
|
+
}
|
|
43
|
+
export declare class FontSizeToken extends DimensionCategoryToken<FontSizeTokenValue> {
|
|
44
|
+
tokenType: TokenType;
|
|
45
|
+
}
|
|
46
|
+
export declare class LineHeightToken extends DimensionCategoryToken<LineHeightTokenValue> {
|
|
47
|
+
tokenType: TokenType;
|
|
48
|
+
}
|
|
49
|
+
export declare class LetterSpacingToken extends DimensionCategoryToken<LetterSpacingTokenValue> {
|
|
50
|
+
tokenType: TokenType;
|
|
51
|
+
}
|
|
52
|
+
export declare class ParagraphSpacingToken extends DimensionCategoryToken<ParagraphSpacingTokenValue> {
|
|
53
|
+
tokenType: TokenType;
|
|
54
|
+
}
|
|
55
|
+
export declare class BorderWidthToken extends DimensionCategoryToken<BorderWidthTokenValue> {
|
|
56
|
+
tokenType: TokenType;
|
|
57
|
+
}
|
|
58
|
+
export declare class RadiusToken extends DimensionCategoryToken<RadiusTokenValue> {
|
|
59
|
+
tokenType: TokenType;
|
|
60
|
+
}
|
|
61
|
+
export declare class DurationToken extends DimensionCategoryToken<DurationTokenValue> {
|
|
62
|
+
tokenType: TokenType;
|
|
63
|
+
}
|
|
64
|
+
export declare class ZIndexToken extends DimensionCategoryToken<ZIndexTokenValue> {
|
|
65
|
+
tokenType: TokenType;
|
|
66
|
+
}
|
|
67
|
+
export type AnyDimensionToken = DimensionToken | SizeToken | SpaceToken | OpacityToken | FontSizeToken | LineHeightToken | LetterSpacingToken | ParagraphSpacingToken | BorderWidthToken | RadiusToken | DurationToken | ZIndexToken;
|
|
68
|
+
type TypeofAnyDimensionToken = typeof DimensionToken | typeof SizeToken | typeof SpaceToken | typeof OpacityToken | typeof FontSizeToken | typeof LineHeightToken | typeof LetterSpacingToken | typeof ParagraphSpacingToken | typeof BorderWidthToken | typeof RadiusToken | typeof DurationToken | typeof ZIndexToken;
|
|
69
|
+
export declare const resolveDimension: (type: DimensionTokenType) => TypeofAnyDimensionToken;
|
|
70
|
+
export {};
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ElementPropertyValue } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
3
|
+
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
4
|
+
import { TokenType } from "../enums/SDKTokenType";
|
|
5
|
+
import { GradientTokenRemoteData } from "./remote/SDKRemoteTokenData";
|
|
6
|
+
import { GradientTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteTokenModel";
|
|
7
|
+
import { GradientTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
8
|
+
import { Token } from "./SDKToken";
|
|
9
|
+
import { GradientTokenValue } from "./SDKTokenValue";
|
|
8
10
|
export declare class GradientToken extends Token {
|
|
9
|
-
value: GradientTokenValue;
|
|
11
|
+
value: GradientTokenValue[];
|
|
10
12
|
gradientLayers: Array<GradientToken>;
|
|
11
13
|
isVirtual: boolean;
|
|
12
|
-
|
|
14
|
+
tokenType: TokenType;
|
|
15
|
+
constructor(versionId: string, baseToken: TokenRemoteModel, value: GradientTokenValue[], alias: GradientToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
16
|
+
static create(versionId: string, brandId: string, name: string, description: string, value: string, alias: GradientToken | null, referenceResolver: DTTokenReferenceResolver, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): GradientToken;
|
|
17
|
+
static gradientValueFromDefinition(definition: object | string, referenceResolver: DTTokenReferenceResolver): GradientTokenValue[];
|
|
18
|
+
static gradientSingleValueFromDefinition(definition: string, referenceResolver: DTTokenReferenceResolver): GradientTokenValue;
|
|
19
|
+
static gradientValueFromDefinitionOrReference(definition: any, referenceResolver: DTTokenReferenceResolver): GradientTokenValue[] | undefined;
|
|
13
20
|
toWriteObject(): GradientTokenRemoteModel;
|
|
14
|
-
static valueToWriteObject(value: GradientTokenValue):
|
|
21
|
+
static valueToWriteObject(value: GradientTokenValue[]): GradientTokenRemoteData;
|
|
22
|
+
static singleValueToWriteObject(value: GradientTokenValue): {
|
|
15
23
|
aliasTo: string | undefined;
|
|
16
24
|
value: GradientTokenRemoteValue;
|
|
17
25
|
};
|