@supernova-studio/supernova-sdk-beta 1.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +144 -0
- package/build/sdk-typescript/src/browser-bundle.d.ts +1 -0
- package/build/sdk-typescript/src/core/SDKBrand.d.ts +80 -0
- package/build/sdk-typescript/src/core/SDKBrandWriter.d.ts +29 -0
- package/build/sdk-typescript/src/core/SDKDesignSystem.d.ts +62 -0
- package/build/sdk-typescript/src/core/SDKDesignSystemVersion.d.ts +99 -0
- package/build/sdk-typescript/src/core/SDKDocumentation.d.ts +55 -0
- package/build/sdk-typescript/src/core/SDKSupernova.d.ts +46 -0
- package/build/sdk-typescript/src/core/SDKWorkspace.d.ts +26 -0
- package/build/sdk-typescript/src/core/data/SDKConfiguration.d.ts +6 -0
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +50 -0
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +141 -0
- package/build/sdk-typescript/src/core/errors/SDKSupernovaError.d.ts +24 -0
- package/build/sdk-typescript/src/core/resolvers/SDKAssetGroupResolver.d.ts +14 -0
- package/build/sdk-typescript/src/core/resolvers/SDKComponentResolver.d.ts +8 -0
- package/build/sdk-typescript/src/core/resolvers/SDKDesignComponentGroupResolver.d.ts +13 -0
- package/build/sdk-typescript/src/core/resolvers/SDKDocumentationItemResolver.d.ts +32 -0
- package/build/sdk-typescript/src/core/resolvers/SDKTokenGroupResolver.d.ts +11 -0
- package/build/sdk-typescript/src/core/resolvers/SDKTokenResolver.d.ts +76 -0
- package/build/sdk-typescript/src/exports.d.ts +117 -0
- package/build/sdk-typescript/src/index.d.ts +1 -0
- package/build/sdk-typescript/src/model/assets/SDKAsset.d.ts +16 -0
- package/build/sdk-typescript/src/model/assets/SDKRenderedAsset.d.ts +28 -0
- package/build/sdk-typescript/src/model/components/SDKComponent.d.ts +27 -0
- package/build/sdk-typescript/src/model/components/SDKDesignComponent.d.ts +32 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationConfiguration.d.ts +13 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationGroup.d.ts +38 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationItem.d.ts +26 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationPage.d.ts +31 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationPageAsset.d.ts +15 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationPageBlock.d.ts +32 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationRichText.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationRichTextSpan.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationRichTextSpanAttribute.d.ts +14 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockAsset.d.ts +15 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockAssets.d.ts +24 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockCallout.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockCode.d.ts +12 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockColumn.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockColumnItem.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockCustom.d.ts +16 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockDivider.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedFigma.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedGeneric.d.ts +15 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedLink.d.ts +16 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedStorybook.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockEmbedYoutube.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockFrame.d.ts +18 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockFrames.d.ts +26 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockHeading.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockImage.d.ts +18 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockOrderedList.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockQuote.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockRenderCode.d.ts +34 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockShortcut.d.ts +35 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockShortcuts.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTab.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTabItem.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTable.d.ts +23 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTableCell.d.ts +13 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTableColumn.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTableRow.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockText.d.ts +13 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockToken.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTokenGroup.d.ts +12 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockTokenList.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationPageBlockUnorderedList.d.ts +8 -0
- package/build/sdk-typescript/src/model/documentation/builder/SDKDocumentationBlockBuilder.d.ts +6 -0
- package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationItemConfiguration.d.ts +10 -0
- package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationItemHeader.d.ts +30 -0
- package/build/sdk-typescript/src/model/elements/SDKElementDataView.d.ts +30 -0
- package/build/sdk-typescript/src/model/elements/SDKElementDataViewColumn.d.ts +37 -0
- package/build/sdk-typescript/src/model/elements/SDKElementProperty.d.ts +56 -0
- package/build/sdk-typescript/src/model/elements/SDKElementPropertyOption.d.ts +13 -0
- package/build/sdk-typescript/src/model/elements/values/SDKElementPropertyValue.d.ts +15 -0
- package/build/sdk-typescript/src/model/enums/SDKAlignment.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKAssetFormat.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKAssetScale.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKAssetScaleType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKBlurType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKBorderPosition.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationCalloutType.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationGroupBehavior.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationHeadingType.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationItemType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationPageAssetType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationPageBlockThemeType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKDocumentationPageBlockType.d.ts +31 -0
- package/build/sdk-typescript/src/model/enums/SDKFrameAlignment.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKFrameLayout.d.ts +11 -0
- package/build/sdk-typescript/src/model/enums/SDKGradientType.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKRichTextSpanAttributeType.d.ts +7 -0
- package/build/sdk-typescript/src/model/enums/SDKShadowType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKSourceType.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKTextCase.d.ts +6 -0
- package/build/sdk-typescript/src/model/enums/SDKTextDecoration.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +13 -0
- package/build/sdk-typescript/src/model/enums/SDKUnit.d.ts +6 -0
- package/build/sdk-typescript/src/model/exporters/SDKExporter.d.ts +74 -0
- package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlock.d.ts +23 -0
- package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlockProperty.d.ts +32 -0
- package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlockVariant.d.ts +12 -0
- package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterConfigurationProperty.d.ts +38 -0
- package/build/sdk-typescript/src/model/groups/SDKAssetGroup.d.ts +20 -0
- package/build/sdk-typescript/src/model/groups/SDKDesignComponentGroup.d.ts +33 -0
- package/build/sdk-typescript/src/model/groups/SDKTokenGroup.d.ts +42 -0
- package/build/sdk-typescript/src/model/support/SDKDesignComponentOrigin.d.ts +23 -0
- package/build/sdk-typescript/src/model/support/SDKFrameOrigin.d.ts +25 -0
- package/build/sdk-typescript/src/model/support/SDKSize.d.ts +9 -0
- package/build/sdk-typescript/src/model/support/SDKSource.d.ts +102 -0
- package/build/sdk-typescript/src/model/support/SDKTokenOrigin.d.ts +11 -0
- package/build/sdk-typescript/src/model/support/SDKWorkspaceNPMRegistry.d.ts +13 -0
- package/build/sdk-typescript/src/model/themes/SDKThemeUtilities.d.ts +6 -0
- package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +63 -0
- package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +49 -0
- package/build/sdk-typescript/src/model/tokens/SDKBlurToken.d.ts +18 -0
- package/build/sdk-typescript/src/model/tokens/SDKBorderToken.d.ts +19 -0
- package/build/sdk-typescript/src/model/tokens/SDKColorToken.d.ts +22 -0
- package/build/sdk-typescript/src/model/tokens/SDKFontToken.d.ts +16 -0
- package/build/sdk-typescript/src/model/tokens/SDKGenericToken.d.ts +18 -0
- package/build/sdk-typescript/src/model/tokens/SDKGradientToken.d.ts +18 -0
- package/build/sdk-typescript/src/model/tokens/SDKMeasureToken.d.ts +26 -0
- package/build/sdk-typescript/src/model/tokens/SDKRadiusToken.d.ts +18 -0
- package/build/sdk-typescript/src/model/tokens/SDKShadowToken.d.ts +21 -0
- package/build/sdk-typescript/src/model/tokens/SDKTextToken.d.ts +16 -0
- package/build/sdk-typescript/src/model/tokens/SDKToken.d.ts +30 -0
- package/build/sdk-typescript/src/model/tokens/SDKTokenCompator.d.ts +20 -0
- package/build/sdk-typescript/src/model/tokens/SDKTokenValue.d.ts +113 -0
- package/build/sdk-typescript/src/model/tokens/SDKTypographyToken.d.ts +19 -0
- package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenData.d.ts +45 -0
- package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenModel.d.ts +60 -0
- package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenValue.d.ts +72 -0
- package/build/sdk-typescript/src/model/users/SDKUser.d.ts +22 -0
- package/build/sdk-typescript/src/tests/Accessors/Brand.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Accessors/Components.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Accessors/DesignSystem.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Accessors/DesignSystemVersion.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Accessors/Documentation.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Accessors/Supernova.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Accessors/Theme.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Accessors/Workspace.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Tooling/PluginFigmaTokens.spec.d.ts +17 -0
- package/build/sdk-typescript/src/tests/Tooling/PluginJSONBuilder.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Tooling/ToolDocSearch.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Tooling/ToolMarkdownTransform.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/helpers.d.ts +2 -0
- package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +48 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +34 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONGroupBuilder.d.ts +21 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +27 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +40 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +39 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapResolver.d.ts +10 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTThemeMerger.d.ts +17 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenGroupTreeMerger.d.ts +23 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenMerger.d.ts +17 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +37 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenSetResolver.d.ts +12 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/collection/SDKDTTokenCollection.d.ts +13 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/expression/SDKDTExpressionParser.d.ts +5 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTree.d.ts +10 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTreeNode.d.ts +20 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTParentChildMapping.d.ts +5 -0
- package/build/sdk-typescript/src/tools/json-builder/SDKToolsJSONBuilder.d.ts +57 -0
- package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementFigmaTokensTransformer.d.ts +40 -0
- package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementStyleDictionaryTransformer.d.ts +29 -0
- package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +77 -0
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +23 -0
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +75 -0
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +26 -0
- package/build/sdk-typescript/src/tools/search-index/SDKToolsDocSearch.d.ts +47 -0
- package/build/sdk-typescript/src/tools/token-transform/SDKToolsTokenTransform.d.ts +44 -0
- package/build/sdk-typescript/src/utils/FlowUtils.d.ts +5 -0
- package/build/sdk-typescript/src/utils/StringUtils.d.ts +72 -0
- package/build/supernova-sdk-typescript.js +3 -0
- package/build/supernova-sdk-typescript.js.LICENSE.txt +8 -0
- package/build/supernova-sdk-typescript.js.map +1 -0
- package/package.json +114 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface DesignComponentGroupRemoteModel {
|
|
2
|
+
id: string;
|
|
3
|
+
designSystemVersionId: string;
|
|
4
|
+
persistentId: string;
|
|
5
|
+
brandId: 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 DesignComponentGroup {
|
|
16
|
+
id: string;
|
|
17
|
+
brandId: string;
|
|
18
|
+
name: string;
|
|
19
|
+
description: string;
|
|
20
|
+
path: Array<string>;
|
|
21
|
+
subgroups: Array<DesignComponentGroup>;
|
|
22
|
+
isRoot: boolean;
|
|
23
|
+
childrenIds: Array<string>;
|
|
24
|
+
componentIds: Array<string>;
|
|
25
|
+
parent: DesignComponentGroup | null;
|
|
26
|
+
createdAt: Date | null;
|
|
27
|
+
updatedAt: Date | null;
|
|
28
|
+
constructor(model: DesignComponentGroupRemoteModel);
|
|
29
|
+
addChild(group: DesignComponentGroup): void;
|
|
30
|
+
addChildren(groups: Array<DesignComponentGroup>): void;
|
|
31
|
+
setPath(segments: Array<string>): void;
|
|
32
|
+
setParent(parent: DesignComponentGroup | null): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { TokenType } from '../enums/SDKTokenType';
|
|
2
|
+
export interface TokenGroupRemoteModel {
|
|
3
|
+
id: string;
|
|
4
|
+
brandId: string;
|
|
5
|
+
tokenType: TokenType;
|
|
6
|
+
designSystemVersionId: string;
|
|
7
|
+
persistentId: string;
|
|
8
|
+
isRoot: boolean;
|
|
9
|
+
meta: {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
childrenIds: string[];
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class TokenGroup {
|
|
18
|
+
id: string;
|
|
19
|
+
versionedId: string;
|
|
20
|
+
brandId: string;
|
|
21
|
+
designSystemVersionId: string;
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
path: Array<string>;
|
|
25
|
+
subgroups: Array<TokenGroup>;
|
|
26
|
+
tokenType: TokenType;
|
|
27
|
+
isRoot: boolean;
|
|
28
|
+
childrenIds: Array<string>;
|
|
29
|
+
tokenIds: Array<string>;
|
|
30
|
+
parent: TokenGroup | null;
|
|
31
|
+
sortOrder: number;
|
|
32
|
+
createdAt: Date | null;
|
|
33
|
+
updatedAt: Date | null;
|
|
34
|
+
constructor(model: TokenGroupRemoteModel);
|
|
35
|
+
addChild(group: TokenGroup): void;
|
|
36
|
+
addChildren(groups: Array<TokenGroup>): void;
|
|
37
|
+
setPath(segments: Array<string>): void;
|
|
38
|
+
setParent(parent: TokenGroup | null): void;
|
|
39
|
+
setSortOrder(order: number): void;
|
|
40
|
+
toWriteObject(): TokenGroupRemoteModel;
|
|
41
|
+
toMutatedObject(childrenIds: Array<string>): TokenGroup;
|
|
42
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SourceType } from '../enums/SDKSourceType';
|
|
2
|
+
import { Source } from './SDKSource';
|
|
3
|
+
export interface DesignComponentOriginModel {
|
|
4
|
+
id: string;
|
|
5
|
+
sourceId: string;
|
|
6
|
+
nodeId: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class DesignComponentOrigin {
|
|
12
|
+
sourceType: SourceType;
|
|
13
|
+
sourceId: string | null;
|
|
14
|
+
fileId: string | null;
|
|
15
|
+
fileName: string | null;
|
|
16
|
+
id: string | null;
|
|
17
|
+
nodeId: string | null;
|
|
18
|
+
name: string | null;
|
|
19
|
+
width: number | null;
|
|
20
|
+
height: number | null;
|
|
21
|
+
constructor(model: DesignComponentOriginModel, sources: Array<Source>);
|
|
22
|
+
get remoteDesignComponentUrl(): string | undefined;
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface FrameOriginModel {
|
|
2
|
+
title?: string;
|
|
3
|
+
previewUrl?: string;
|
|
4
|
+
referenceId?: string;
|
|
5
|
+
sourceFileName?: string;
|
|
6
|
+
valid?: boolean;
|
|
7
|
+
assetId?: string;
|
|
8
|
+
assetScale?: string;
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class FrameOrigin {
|
|
13
|
+
sourceFileName: string | null;
|
|
14
|
+
sourceFrameId: string | null;
|
|
15
|
+
sourceId: string | null;
|
|
16
|
+
title: string | null;
|
|
17
|
+
previewUrl: string | null;
|
|
18
|
+
referenceId: string | null;
|
|
19
|
+
valid: boolean | null;
|
|
20
|
+
assetId: string | null;
|
|
21
|
+
assetScale: string | null;
|
|
22
|
+
width: number | null;
|
|
23
|
+
height: number | null;
|
|
24
|
+
constructor(model: FrameOriginModel, sourceId: string | null, sourceFrameId: string | null);
|
|
25
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { SourceType } from '../enums/SDKSourceType';
|
|
2
|
+
export interface SourceRemoteModel {
|
|
3
|
+
type: SourceType;
|
|
4
|
+
id: string;
|
|
5
|
+
fileName?: string;
|
|
6
|
+
linkType: 'Design' | 'Frames';
|
|
7
|
+
brandId?: string;
|
|
8
|
+
plugin?: {
|
|
9
|
+
fileId: string;
|
|
10
|
+
lastImportedAt?: string;
|
|
11
|
+
};
|
|
12
|
+
cloud?: {
|
|
13
|
+
fileId: string;
|
|
14
|
+
autoImportMode: 'Never' | 'Hourly';
|
|
15
|
+
fileThumbnailUrl?: string;
|
|
16
|
+
lastUpdatesCheckedAt?: string;
|
|
17
|
+
lastImportedVersion?: {
|
|
18
|
+
id: string;
|
|
19
|
+
created_at: string;
|
|
20
|
+
label?: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
lastImportedAt?: string;
|
|
24
|
+
lastImportResult?: {
|
|
25
|
+
sourceId: string;
|
|
26
|
+
brandId: string;
|
|
27
|
+
tokensCreated: number;
|
|
28
|
+
tokensUpdated: number;
|
|
29
|
+
tokensDeleted: number;
|
|
30
|
+
componentsCreated: number;
|
|
31
|
+
componentsUpdated: number;
|
|
32
|
+
componentsDeleted: number;
|
|
33
|
+
componentAssetsCreated: number;
|
|
34
|
+
componentAssetsUpdated: number;
|
|
35
|
+
componentAssetsDeleted: number;
|
|
36
|
+
isFailed: boolean;
|
|
37
|
+
versionId: string;
|
|
38
|
+
fileSize?: number;
|
|
39
|
+
};
|
|
40
|
+
lastImportFramesResult?: {
|
|
41
|
+
sourceId: string;
|
|
42
|
+
isFailed: string;
|
|
43
|
+
error?: string;
|
|
44
|
+
assetsInFile?: {
|
|
45
|
+
frames: number;
|
|
46
|
+
components: number;
|
|
47
|
+
};
|
|
48
|
+
invalidReferencesCount?: number;
|
|
49
|
+
};
|
|
50
|
+
ownerId: string;
|
|
51
|
+
ownerUserName: string;
|
|
52
|
+
state: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export declare class Source {
|
|
56
|
+
type: SourceType;
|
|
57
|
+
id: string;
|
|
58
|
+
fileName: string | null;
|
|
59
|
+
fileId: string | null;
|
|
60
|
+
autoImportMode: 'Never' | 'Hourly' | null;
|
|
61
|
+
fileThumbnailUrl: string | null;
|
|
62
|
+
lastUpdatesCheckedAt: string | null;
|
|
63
|
+
lastImportedVersion: {
|
|
64
|
+
id: string;
|
|
65
|
+
created_at: string;
|
|
66
|
+
label: string | null;
|
|
67
|
+
description: string;
|
|
68
|
+
} | null;
|
|
69
|
+
lastImportedAt: string | null;
|
|
70
|
+
lastImportResult: {
|
|
71
|
+
sourceId: string;
|
|
72
|
+
brandId: string;
|
|
73
|
+
tokensCreated: number;
|
|
74
|
+
tokensUpdated: number;
|
|
75
|
+
tokensDeleted: number;
|
|
76
|
+
componentsCreated: number;
|
|
77
|
+
componentsUpdated: number;
|
|
78
|
+
componentsDeleted: number;
|
|
79
|
+
componentAssetsCreated: number;
|
|
80
|
+
componentAssetsUpdated: number;
|
|
81
|
+
componentAssetsDeleted: number;
|
|
82
|
+
isFailed: boolean;
|
|
83
|
+
versionId: string;
|
|
84
|
+
fileSize: number | null;
|
|
85
|
+
} | null;
|
|
86
|
+
lastImportFramesResult: {
|
|
87
|
+
sourceId: string;
|
|
88
|
+
isFailed: string;
|
|
89
|
+
error: string | null;
|
|
90
|
+
assetsInFile: {
|
|
91
|
+
frames: number;
|
|
92
|
+
components: number;
|
|
93
|
+
} | null;
|
|
94
|
+
invalidReferencesCount: number | null;
|
|
95
|
+
} | null;
|
|
96
|
+
ownerId: string | null;
|
|
97
|
+
ownerUserName: string | null;
|
|
98
|
+
state: string | null;
|
|
99
|
+
linkType: 'Design' | 'Frames';
|
|
100
|
+
brandId: string | null;
|
|
101
|
+
constructor(model: SourceRemoteModel);
|
|
102
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Token, DesignSystemVersion, TokenOrigin } from '../..';
|
|
2
|
+
import { AnyToken } from '../tokens/SDKTokenValue';
|
|
3
|
+
export declare class ThemeUtilities {
|
|
4
|
+
/** Creates duplicate of the token */
|
|
5
|
+
static replicateTokenAsThemePrefabWithoutValue(token: Token, themeId: string, origin: TokenOrigin | null, version: DesignSystemVersion): AnyToken;
|
|
6
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { DesignSystemVersion, Token, TokenType } from '../..';
|
|
2
|
+
import { AnyTokenValue } from '../tokens/SDKTokenValue';
|
|
3
|
+
import { TokenThemeOverrideRemoteModel } from './SDKTokenThemeOverride';
|
|
4
|
+
export interface TokenThemeRemoteModel {
|
|
5
|
+
meta: {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
id: string;
|
|
10
|
+
persistentId: string;
|
|
11
|
+
designSystemVersionId: string;
|
|
12
|
+
brandId: string;
|
|
13
|
+
codeName: string;
|
|
14
|
+
createdAt?: string;
|
|
15
|
+
updatedAt?: string;
|
|
16
|
+
overrides: Array<TokenThemeOverrideRemoteModel>;
|
|
17
|
+
}
|
|
18
|
+
export declare class TokenTheme {
|
|
19
|
+
id: string;
|
|
20
|
+
versionedId: string;
|
|
21
|
+
brandId: string;
|
|
22
|
+
designSystemVersionId: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
codeName: string;
|
|
26
|
+
createdAt: Date | null;
|
|
27
|
+
updatedAt: Date | null;
|
|
28
|
+
overriddenTokens: Array<Token>;
|
|
29
|
+
constructor(model: TokenThemeRemoteModel, dsVersion: DesignSystemVersion);
|
|
30
|
+
addOverride(override: Token): void;
|
|
31
|
+
addOverrides(overrides: Array<Token>): void;
|
|
32
|
+
toWriteObject(): TokenThemeRemoteModel;
|
|
33
|
+
private tokensToOverrides;
|
|
34
|
+
toWriteOverrideObject(token: Token): TokenThemeOverrideRemoteModel;
|
|
35
|
+
valueToWriteObject(value: AnyTokenValue, type: TokenType): {
|
|
36
|
+
aliasTo: string;
|
|
37
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").BlurTokenRemoteValue;
|
|
38
|
+
} | {
|
|
39
|
+
aliasTo: string;
|
|
40
|
+
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
|
+
} | {
|
|
51
|
+
aliasTo: string;
|
|
52
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").MeasureTokenRemoteValue;
|
|
53
|
+
} | {
|
|
54
|
+
aliasTo: string;
|
|
55
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").RadiusTokenRemoteValue;
|
|
56
|
+
} | {
|
|
57
|
+
aliasTo: string;
|
|
58
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").ShadowTokenRemoteValue;
|
|
59
|
+
} | {
|
|
60
|
+
aliasTo: string;
|
|
61
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { TokenType, TokenOrigin } from '../..';
|
|
2
|
+
import { BlurTokenRemoteData, BorderTokenRemoteData, ColorTokenRemoteData, FontTokenRemoteData, GenericTokenRemoteData, GradientTokenRemoteData, MeasureTokenRemoteData, RadiusTokenRemoteData, ShadowTokenRemoteData, TextTokenRemoteData, TypographyTokenRemoteData } from '../tokens/remote/SDKRemoteTokenData';
|
|
3
|
+
import { AnyTokenValue } from '../tokens/SDKTokenValue';
|
|
4
|
+
export interface TokenThemeOverrideRemoteModel {
|
|
5
|
+
data: ColorTokenRemoteData | TextTokenRemoteData | GenericTokenRemoteData | TypographyTokenRemoteData | RadiusTokenRemoteData | ShadowTokenRemoteData | MeasureTokenRemoteData | FontTokenRemoteData | BorderTokenRemoteData | GradientTokenRemoteData | BlurTokenRemoteData;
|
|
6
|
+
tokenPersistentId: string;
|
|
7
|
+
type: TokenType;
|
|
8
|
+
origin: TokenOrigin | null;
|
|
9
|
+
createdAt?: string;
|
|
10
|
+
updatedAt?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class TokenThemeOverride {
|
|
13
|
+
value: AnyTokenValue;
|
|
14
|
+
tokenId: string;
|
|
15
|
+
type: TokenType;
|
|
16
|
+
origin: TokenOrigin | null;
|
|
17
|
+
createdAt: Date | null;
|
|
18
|
+
updatedAt: Date | null;
|
|
19
|
+
constructor(model: TokenThemeOverrideRemoteModel, value: AnyTokenValue);
|
|
20
|
+
toWriteObject(): TokenThemeOverrideRemoteModel;
|
|
21
|
+
valueToWriteObject(value: AnyTokenValue, type: TokenType): {
|
|
22
|
+
aliasTo: string;
|
|
23
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").BlurTokenRemoteValue;
|
|
24
|
+
} | {
|
|
25
|
+
aliasTo: string;
|
|
26
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").BorderTokenRemoteValue;
|
|
27
|
+
} | {
|
|
28
|
+
aliasTo: string;
|
|
29
|
+
value: string;
|
|
30
|
+
} | {
|
|
31
|
+
aliasTo: string;
|
|
32
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").FontTokenRemoteValue;
|
|
33
|
+
} | {
|
|
34
|
+
aliasTo: string;
|
|
35
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").GradientTokenRemoteValue;
|
|
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;
|
|
45
|
+
} | {
|
|
46
|
+
aliasTo: string;
|
|
47
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DesignSystemVersion } from '../../core/SDKDesignSystemVersion';
|
|
2
|
+
import { ElementProperty } from '../elements/SDKElementProperty';
|
|
3
|
+
import { ElementPropertyValue } from '../elements/values/SDKElementPropertyValue';
|
|
4
|
+
import { BlurTokenRemoteModel, TokenRemoteModel } from './remote/SDKRemoteTokenModel';
|
|
5
|
+
import { BlurTokenRemoteValue } from './remote/SDKRemoteTokenValue';
|
|
6
|
+
import { Token } from './SDKToken';
|
|
7
|
+
import { BlurTokenValue } from './SDKTokenValue';
|
|
8
|
+
export declare class BlurToken extends Token {
|
|
9
|
+
value: BlurTokenValue;
|
|
10
|
+
blurLayers: Array<BlurToken>;
|
|
11
|
+
isVirtual: boolean;
|
|
12
|
+
constructor(version: DesignSystemVersion, baseToken: TokenRemoteModel, value: BlurTokenValue, alias: BlurToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
13
|
+
toWriteObject(): BlurTokenRemoteModel;
|
|
14
|
+
static valueToWriteObject(value: BlurTokenValue): {
|
|
15
|
+
aliasTo: string | undefined;
|
|
16
|
+
value: BlurTokenRemoteValue;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { BorderTokenRemoteModel, TokenRemoteModel } from './remote/SDKRemoteTokenModel';
|
|
6
|
+
import { BorderTokenRemoteValue } from './remote/SDKRemoteTokenValue';
|
|
7
|
+
import { Token } from './SDKToken';
|
|
8
|
+
import { BorderTokenValue } from './SDKTokenValue';
|
|
9
|
+
export declare class BorderToken extends Token {
|
|
10
|
+
value: BorderTokenValue;
|
|
11
|
+
constructor(version: DesignSystemVersion, baseToken: TokenRemoteModel, value: BorderTokenValue, alias: BorderToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
12
|
+
static create(version: DesignSystemVersion, brand: Brand, name: string, description: string, value: object, alias: BorderToken | null, referenceResolver: DTTokenReferenceResolver, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): BorderToken;
|
|
13
|
+
static borderValueFromDefinition(definition: object, referenceResolver: DTTokenReferenceResolver): BorderTokenValue;
|
|
14
|
+
toWriteObject(): BorderTokenRemoteModel;
|
|
15
|
+
static valueToWriteObject(value: BorderTokenValue): {
|
|
16
|
+
aliasTo: string | undefined;
|
|
17
|
+
value: BorderTokenRemoteValue;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Brand, ElementProperty } from '../..';
|
|
2
|
+
import { DesignSystemVersion } from '../../core/SDKDesignSystemVersion';
|
|
3
|
+
import { ColorTokenRemoteModel, TokenRemoteModel } from './remote/SDKRemoteTokenModel';
|
|
4
|
+
import { ColorTokenRemoteValue } from './remote/SDKRemoteTokenValue';
|
|
5
|
+
import { Token } from './SDKToken';
|
|
6
|
+
import { ColorTokenValue } from './SDKTokenValue';
|
|
7
|
+
import { DTTokenReferenceResolver } from '../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver';
|
|
8
|
+
import { ElementPropertyValue } from '../elements/values/SDKElementPropertyValue';
|
|
9
|
+
export declare class ColorToken extends Token {
|
|
10
|
+
value: ColorTokenValue;
|
|
11
|
+
constructor(version: DesignSystemVersion, baseToken: TokenRemoteModel, value: ColorTokenValue, alias: ColorToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
12
|
+
static create(version: DesignSystemVersion, brand: Brand, name: string, description: string, value: string, alias: ColorToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): ColorToken;
|
|
13
|
+
static colorValueFromDefinition(definition: string): ColorTokenValue;
|
|
14
|
+
static normalizeColor(color: string): string | null;
|
|
15
|
+
static normalizeOpacity(value: string): number;
|
|
16
|
+
static colorValueFromDefinitionOrReference(definition: any, referenceResolver: DTTokenReferenceResolver): ColorTokenValue | undefined;
|
|
17
|
+
toWriteObject(): ColorTokenRemoteModel;
|
|
18
|
+
static valueToWriteObject(value: ColorTokenValue): {
|
|
19
|
+
aliasTo: string | undefined;
|
|
20
|
+
value: ColorTokenRemoteValue;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementProperty } from '../..';
|
|
2
|
+
import { DesignSystemVersion } from '../../core/SDKDesignSystemVersion';
|
|
3
|
+
import { ElementPropertyValue } from '../elements/values/SDKElementPropertyValue';
|
|
4
|
+
import { GradientTokenRemoteModel, TokenRemoteModel } from './remote/SDKRemoteTokenModel';
|
|
5
|
+
import { GradientTokenRemoteValue } from './remote/SDKRemoteTokenValue';
|
|
6
|
+
import { Token } from './SDKToken';
|
|
7
|
+
import { GradientTokenValue } from './SDKTokenValue';
|
|
8
|
+
export declare class GradientToken extends Token {
|
|
9
|
+
value: GradientTokenValue;
|
|
10
|
+
gradientLayers: Array<GradientToken>;
|
|
11
|
+
isVirtual: boolean;
|
|
12
|
+
constructor(version: DesignSystemVersion, baseToken: TokenRemoteModel, value: GradientTokenValue, alias: GradientToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
13
|
+
toWriteObject(): GradientTokenRemoteModel;
|
|
14
|
+
static valueToWriteObject(value: GradientTokenValue): {
|
|
15
|
+
aliasTo: string | undefined;
|
|
16
|
+
value: GradientTokenRemoteValue;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { ShadowTokenRemoteModel, TokenRemoteModel } from './remote/SDKRemoteTokenModel';
|
|
6
|
+
import { ShadowTokenRemoteValue } from './remote/SDKRemoteTokenValue';
|
|
7
|
+
import { Token } from './SDKToken';
|
|
8
|
+
import { ShadowTokenValue } from './SDKTokenValue';
|
|
9
|
+
export declare class ShadowToken extends Token {
|
|
10
|
+
value: ShadowTokenValue;
|
|
11
|
+
shadowLayers: Array<ShadowToken>;
|
|
12
|
+
isVirtual: boolean;
|
|
13
|
+
constructor(version: DesignSystemVersion, baseToken: TokenRemoteModel, value: ShadowTokenValue, alias: ShadowToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
14
|
+
static create(version: DesignSystemVersion, brand: Brand, name: string, description: string, value: object, alias: ShadowToken | null, referenceResolver: DTTokenReferenceResolver, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): ShadowToken;
|
|
15
|
+
static shadowValueFromDefinition(definition: object, referenceResolver: DTTokenReferenceResolver): ShadowTokenValue;
|
|
16
|
+
toWriteObject(): ShadowTokenRemoteModel;
|
|
17
|
+
static valueToWriteObject(value: ShadowTokenValue): {
|
|
18
|
+
aliasTo: string | undefined;
|
|
19
|
+
value: ShadowTokenRemoteValue;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DesignSystemVersion } from '../../core/SDKDesignSystemVersion';
|
|
2
|
+
import { ElementProperty } from '../elements/SDKElementProperty';
|
|
3
|
+
import { ElementPropertyValue } from '../elements/values/SDKElementPropertyValue';
|
|
4
|
+
import { TokenType } from '../enums/SDKTokenType';
|
|
5
|
+
import { TokenGroup } from '../groups/SDKTokenGroup';
|
|
6
|
+
import { TokenOrigin } from '../support/SDKTokenOrigin';
|
|
7
|
+
import { TokenRemoteModel } from './remote/SDKRemoteTokenModel';
|
|
8
|
+
import { TokenValue } from './SDKTokenValue';
|
|
9
|
+
export declare class Token implements TokenValue {
|
|
10
|
+
id: string;
|
|
11
|
+
versionedId: string;
|
|
12
|
+
brandId: string;
|
|
13
|
+
themeId: string | null;
|
|
14
|
+
designSystemVersionId: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
tokenType: TokenType;
|
|
18
|
+
origin: TokenOrigin | null;
|
|
19
|
+
parent: TokenGroup | null;
|
|
20
|
+
sortOrder: number;
|
|
21
|
+
properties: Array<ElementProperty>;
|
|
22
|
+
propertyValues: object;
|
|
23
|
+
createdAt: Date | null;
|
|
24
|
+
updatedAt: Date | null;
|
|
25
|
+
constructor(model: TokenRemoteModel, dsVersion: DesignSystemVersion, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>, empty?: boolean);
|
|
26
|
+
setParent(parent: TokenGroup | null): void;
|
|
27
|
+
setSortOrder(order: number): void;
|
|
28
|
+
toBaseWriteObject(): TokenRemoteModel;
|
|
29
|
+
toWriteObject(): TokenRemoteModel;
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Token } from '../..';
|
|
2
|
+
import { AnyTokenValue, BlurTokenValue, BorderTokenValue, ColorTokenValue, FontTokenValue, GenericTokenValue, GradientTokenValue, MeasureTokenValue, RadiusTokenValue, ShadowTokenValue, TextTokenValue, TypographyTokenValue, GradientStopValue } from './SDKTokenValue';
|
|
3
|
+
export declare class TokenComparator {
|
|
4
|
+
static isEqualTokenValue(a: Token, b: Token): boolean;
|
|
5
|
+
static referencesSameToken(a: AnyTokenValue, b: AnyTokenValue): boolean;
|
|
6
|
+
static anyIsReference(a: AnyTokenValue, b: AnyTokenValue): boolean;
|
|
7
|
+
static isUndefinedValue(a: AnyTokenValue, b: AnyTokenValue): boolean;
|
|
8
|
+
static isEqualBlurTokenValue(a: BlurTokenValue, b: BlurTokenValue): boolean;
|
|
9
|
+
static isEqualBorderTokenValue(a: BorderTokenValue, b: BorderTokenValue): boolean;
|
|
10
|
+
static isEqualColorTokenValue(a: ColorTokenValue, b: ColorTokenValue): boolean;
|
|
11
|
+
static isEqualFontTokenValue(a: FontTokenValue, b: FontTokenValue): boolean;
|
|
12
|
+
static isEqualGenericTokenValue(a: GenericTokenValue, b: GenericTokenValue): boolean;
|
|
13
|
+
static isEqualGradientTokenValue(a: GradientTokenValue, b: GradientTokenValue): boolean;
|
|
14
|
+
static isEqualGradientStops(a: Array<GradientStopValue>, b: Array<GradientStopValue>): boolean;
|
|
15
|
+
static isEqualMeasureTokenValue(a: MeasureTokenValue, b: MeasureTokenValue): boolean;
|
|
16
|
+
static isEqualRadiusTokenValue(a: RadiusTokenValue, b: RadiusTokenValue): boolean;
|
|
17
|
+
static isEqualShadowTokenValue(a: ShadowTokenValue, b: ShadowTokenValue): boolean;
|
|
18
|
+
static isEqualTextTokenValue(a: TextTokenValue, b: TextTokenValue): boolean;
|
|
19
|
+
static isEqualTypographyTokenValue(a: TypographyTokenValue, b: TypographyTokenValue): boolean;
|
|
20
|
+
}
|