@supernova-studio/supernova-sdk-beta 1.6.32 → 1.6.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/build/sdk-typescript/src/core/SDKSupernova.d.ts +0 -4
  2. package/build/sdk-typescript/src/core/areas/SDKAreaAutomation.d.ts +14 -1
  3. package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +1 -34
  4. package/build/sdk-typescript/src/core/areas/SDKAreaResources.d.ts +2 -6
  5. package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +1 -4
  6. package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +19 -18
  7. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +7 -7
  8. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +8 -9
  9. package/build/sdk-typescript/src/core/resolvers/SDKAssetGroupResolver.d.ts +0 -4
  10. package/build/sdk-typescript/src/core/resolvers/SDKTokenResolver.d.ts +1 -1
  11. package/build/sdk-typescript/src/exports.d.ts +1 -9
  12. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockBehavior.d.ts +11 -2
  13. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockDefinition.d.ts +21 -5
  14. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockItemDefinition.d.ts +10 -3
  15. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockLayout.d.ts +7 -2
  16. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockVariant.d.ts +15 -2
  17. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +1 -1
  18. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockBooleanProperty.d.ts +1 -1
  19. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +2 -2
  20. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +2 -2
  21. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMultiSelectProperty.d.ts +1 -1
  22. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockProperty.d.ts +10 -2
  23. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +3 -3
  24. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty.d.ts +1 -1
  25. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +1 -10
  26. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTableProperty.d.ts +2 -23
  27. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +1 -1
  28. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +2 -2
  29. package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsImageRef.d.ts +2 -5
  30. package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsLinkRef.d.ts +7 -10
  31. package/build/sdk-typescript/src/model/docs/blocks/usage/SDKDocsBlock.d.ts +20 -7
  32. package/build/sdk-typescript/src/model/docs/blocks/usage/SDKDocsBlockItem.d.ts +7 -2
  33. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityHeader.d.ts +0 -3
  34. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPageAsset.d.ts +1 -1
  35. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockRenderCode.d.ts +1 -1
  36. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyType.d.ts +1 -5
  37. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutAlign.d.ts +3 -3
  38. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutColumnResizing.d.ts +2 -2
  39. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutGap.d.ts +4 -4
  40. package/build/sdk-typescript/src/model/enums/SDKDocsBlockRichTextPropertyStyle.d.ts +4 -0
  41. package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +19 -19
  42. package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +2 -2
  43. package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuild.d.ts +0 -6
  44. package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuildResults.d.ts +0 -12
  45. package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportDestinations.d.ts +1 -16
  46. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteConnectionsModel.d.ts +1 -1
  47. package/build/sdk-typescript/src/model/groups/SDKAssetGroup.d.ts +0 -4
  48. package/build/sdk-typescript/src/model/resources/SDKResourceFont.d.ts +2 -2
  49. package/build/sdk-typescript/src/model/support/SDKFigmaFrame.d.ts +0 -2
  50. package/build/sdk-typescript/src/model/support/SDKSource.d.ts +4 -10
  51. package/build/sdk-typescript/src/model/support/SDKTokenOrigin.d.ts +1 -1
  52. package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +6 -6
  53. package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +6 -6
  54. package/build/sdk-typescript/src/model/tokens/SDKColorToken.d.ts +0 -1
  55. package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +1 -1
  56. package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +1 -1
  57. package/build/sdk-typescript/src/model/tokens/SDKTextCaseToken.d.ts +1 -1
  58. package/build/sdk-typescript/src/model/tokens/SDKTextDecorationToken.d.ts +1 -1
  59. package/build/sdk-typescript/src/model/tokens/SDKTokenValue.d.ts +2 -2
  60. package/build/sdk-typescript/src/tests/Enterprise/PluginFigmaTokens.spec.d.ts +1 -0
  61. package/build/sdk-typescript/src/tests/FigmaTokensDataLoader.d.ts +3 -3
  62. package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +1 -2
  63. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +1 -1
  64. package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTree.d.ts +1 -1
  65. package/build/sdk-typescript/src/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +0 -11
  66. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementFigmaTokensTransformer.d.ts +1 -1
  67. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +1 -1
  68. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewGenerator.d.ts +1 -4
  69. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewStyleGenerator.d.ts +1 -4
  70. package/build/sdk-typescript/src/utils/TokenUtils.d.ts +3 -3
  71. package/build/supernova-sdk-typescript.js +1 -1
  72. package/build/supernova-sdk-typescript.js.LICENSE.txt +14 -0
  73. package/build/supernova-sdk-typescript.js.map +1 -1
  74. package/package.json +118 -118
  75. package/build/sdk-typescript/.eslintrc.d.cts +0 -41
  76. package/build/sdk-typescript/src/core/areas/SDKAreaMultiplayer.d.ts +0 -10
  77. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockColorProperty.d.ts +0 -13
  78. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMultiRichTextProperty.d.ts +0 -19
  79. package/build/sdk-typescript/src/model/enums/SDKDocsBlockMultiRichTextPropertyStyle.d.ts +0 -8
  80. package/build/sdk-typescript/src/model/enums/SDKDocsPublishStatus.d.ts +0 -4
  81. package/build/sdk-typescript/src/utils/CommonUtils.d.ts +0 -5
  82. package/build/sdk-typescript/src/utils/deepPartial.d.ts +0 -3
@@ -34,22 +34,22 @@ export declare class TokenTheme {
34
34
  private tokensToOverrides;
35
35
  toWriteOverrideObject(token: Token): TokenThemeOverrideRemoteModel;
36
36
  valueToWriteObject(value: AnyTokenValue, type: TokenType, token: AnyToken): import("../tokens/remote/SDKRemoteTokenData").ShadowTokenRemoteData | import("../tokens/remote/SDKRemoteTokenData").GradientTokenRemoteData | {
37
- aliasTo: string | undefined;
37
+ aliasTo: string;
38
38
  value: import("../tokens/remote/SDKRemoteTokenValue").BlurTokenRemoteValue;
39
39
  } | {
40
- aliasTo: string | undefined;
40
+ aliasTo: string;
41
41
  value: import("../tokens/remote/SDKRemoteTokenValue").BorderTokenRemoteValue;
42
42
  } | {
43
- aliasTo: string | undefined;
43
+ aliasTo: string;
44
44
  value: import("../tokens/remote/SDKRemoteTokenValue").ColorTokenRemoteValue;
45
45
  } | {
46
- aliasTo: string | undefined;
46
+ aliasTo: string;
47
47
  value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
48
48
  } | {
49
- aliasTo: string | undefined;
49
+ aliasTo: string;
50
50
  value: string;
51
51
  } | {
52
- aliasTo: string | undefined;
52
+ aliasTo: string;
53
53
  value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
54
54
  };
55
55
  }
@@ -20,22 +20,22 @@ export declare class TokenThemeOverride {
20
20
  constructor(model: TokenThemeOverrideRemoteModel, value: AnyTokenValue);
21
21
  toWriteObject(): TokenThemeOverrideRemoteModel;
22
22
  valueToWriteObject(value: AnyTokenValue, type: TokenType): ShadowTokenRemoteData | GradientTokenRemoteData | {
23
- aliasTo: string | undefined;
23
+ aliasTo: string;
24
24
  value: import("../tokens/remote/SDKRemoteTokenValue").BlurTokenRemoteValue;
25
25
  } | {
26
- aliasTo: string | undefined;
26
+ aliasTo: string;
27
27
  value: import("../tokens/remote/SDKRemoteTokenValue").BorderTokenRemoteValue;
28
28
  } | {
29
- aliasTo: string | undefined;
29
+ aliasTo: string;
30
30
  value: import("../tokens/remote/SDKRemoteTokenValue").ColorTokenRemoteValue;
31
31
  } | {
32
- aliasTo: string | undefined;
32
+ aliasTo: string;
33
33
  value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
34
34
  } | {
35
- aliasTo: string | undefined;
35
+ aliasTo: string;
36
36
  value: string;
37
37
  } | {
38
- aliasTo: string | undefined;
38
+ aliasTo: string;
39
39
  value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
40
40
  };
41
41
  }
@@ -18,7 +18,6 @@ export declare class ColorToken extends Token {
18
18
  static colorValueFromDefinitionOrReference(definition: string | object, referenceResolver: DTTokenReferenceResolver): ColorTokenValue | undefined;
19
19
  toHex6(): string;
20
20
  toHex8(): string;
21
- static hexToColorValue(hex: string): ColorTokenValue;
22
21
  static colorValueToHex6(value: ColorTokenValue): string;
23
22
  static colorValueToHex8(value: ColorTokenValue): string;
24
23
  /** Normalizes any color value to server readable value, and ignores alpha value optionally */
@@ -75,7 +75,7 @@ export declare class ZIndexToken extends DimensionCategoryToken<ZIndexTokenValue
75
75
  tokenType: TokenType.zIndex;
76
76
  }
77
77
  export type AnyDimensionToken = DimensionToken | SizeToken | SpaceToken | OpacityToken | FontSizeToken | LineHeightToken | LetterSpacingToken | ParagraphSpacingToken | BorderWidthToken | RadiusToken | DurationToken | ZIndexToken;
78
- export declare const resolveDimension: <TK extends TokenType.radius | TokenType.borderWidth | TokenType.duration | TokenType.fontSize | TokenType.dimension | TokenType.letterSpacing | TokenType.lineHeight | TokenType.opacity | TokenType.paragraphSpacing | TokenType.size | TokenType.space | TokenType.zIndex>(type: TK) => {
78
+ export declare const resolveDimension: <TK extends TokenType.dimension | TokenType.size | TokenType.space | TokenType.opacity | TokenType.fontSize | TokenType.lineHeight | TokenType.letterSpacing | TokenType.paragraphSpacing | TokenType.borderWidth | TokenType.radius | TokenType.duration | TokenType.zIndex>(type: TK) => {
79
79
  Color: typeof import("./SDKColorToken").ColorToken;
80
80
  Typography: typeof import("./SDKTypographyToken").TypographyToken;
81
81
  Blur: typeof import("./SDKBlurToken").BlurToken;
@@ -32,7 +32,7 @@ export declare class FontWeightToken extends StringCategoryToken<FontWeightToken
32
32
  tokenType: TokenType.fontWeight;
33
33
  }
34
34
  export type AnyStringToken = StringToken | ProductCopyToken | FontFamilyToken | FontWeightToken;
35
- export declare const resolveString: <TK extends TokenType.fontFamily | TokenType.fontWeight | TokenType.string | TokenType.productCopy>(type: TK) => {
35
+ export declare const resolveString: <TK extends TokenType.string | TokenType.productCopy | TokenType.fontFamily | TokenType.fontWeight>(type: TK) => {
36
36
  Color: typeof import("./SDKColorToken").ColorToken;
37
37
  Typography: typeof import("./SDKTypographyToken").TypographyToken;
38
38
  Blur: typeof import("./SDKBlurToken").BlurToken;
@@ -13,7 +13,7 @@ export declare class TextCaseToken extends Token {
13
13
  static create(versionId: string, brandId: string, name: string, description: string, value: string, alias: TextCaseToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): TextCaseToken;
14
14
  static textCaseFromDefinition(textCase: string): {
15
15
  value: TextCase;
16
- referencedTokenId: null;
16
+ referencedTokenId: any;
17
17
  };
18
18
  toWriteObject(): TextCaseTokenRemoteModel;
19
19
  static valueToWriteObject(value: TextCaseTokenValue): {
@@ -14,7 +14,7 @@ export declare class TextDecorationToken extends Token {
14
14
  static create(versionId: string, brandId: string, name: string, description: string, value: string, alias: TextDecorationToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): TextDecorationToken;
15
15
  static textDecorationFromDefinition(textDecoration: string): {
16
16
  value: TextDecoration;
17
- referencedTokenId: null;
17
+ referencedTokenId: any;
18
18
  };
19
19
  static optionValueFromDefinitionOrReference(definition: any, referenceResolver: DTTokenReferenceResolver, tokenType: OptionTokenType): AnyOptionTokenValue;
20
20
  static optionValueFromDefinition(definition: string, type: OptionTokenType): AnyOptionTokenValue;
@@ -192,9 +192,9 @@ export type AnyPlainTokenValue = Exclude<AnyTokenValue, ShadowTokenValue[] | Gra
192
192
  export type RawValue<T extends {
193
193
  referencedTokenId: string;
194
194
  }> = Omit<T, "referencedTokenId">;
195
- export declare const getReferencedTokens: (token: AnyToken, allTokens: Map<string, Token>) => (Token | undefined)[];
195
+ export declare const getReferencedTokens: (token: AnyToken, allTokens: Map<string, Token>) => Token[];
196
196
  export declare const getSingleReferencedTokenId: (token: AnyToken, allTokens: Map<string, Token>) => string | undefined;
197
- export declare const checkSingleReferencedTokenById: (token: AnyToken, candidateId: string, allTokens: Map<string, Token>) => boolean | "";
197
+ export declare const checkSingleReferencedTokenById: (token: AnyToken, candidateId: string, allTokens: Map<string, Token>) => boolean;
198
198
  export declare const replaceReferencedTokenIds: (token: AnyToken, currentId: string, newId: string, allTokens: Map<string, Token>) => void;
199
199
  export declare const replaceReferencedToken: (token: Token, existingToken: AnyToken, newToken: AnyToken) => void;
200
200
  export declare const replaceReferencedTokenByIds: (token: Token, existingTokenId: string, newTokenId: string) => void;
@@ -10,9 +10,9 @@ export declare class FigmaTokensDataLoader {
10
10
  settings: DTPluginToSupernovaSettings;
11
11
  mapping: {
12
12
  supernovaBrand: string;
13
- supernovaTheme: string | null;
14
- tokensTheme: string | string[] | null;
15
- tokenSets: string[] | null;
13
+ supernovaTheme: string;
14
+ tokensTheme: string | string[];
15
+ tokenSets: string[];
16
16
  }[];
17
17
  payload: object;
18
18
  }>;
@@ -1,7 +1,6 @@
1
1
  import { Supernova } from "../../core/SDKSupernova";
2
2
  import { Brand } from "../../model/base/SDKBrand";
3
3
  import { TokenGroup } from "../../model/groups/SDKTokenGroup";
4
- import { Logger } from "../../model/support/SDKLogger";
5
4
  import { TokenTheme } from "../../model/themes/SDKTokenTheme";
6
5
  import { Token } from "../../model/tokens/SDKToken";
7
6
  import { AnyToken } from "../../model/tokens/SDKTokenValue";
@@ -26,7 +25,7 @@ export declare class SupernovaToolsDesignTokensPlugin {
26
25
  private versionId;
27
26
  private sortMultiplier;
28
27
  private logger;
29
- constructor(designSystemId: string, versionId: string, instance: Supernova, logger?: Logger);
28
+ constructor(designSystemId: string, versionId: string, instance: Supernova);
30
29
  synchronizeTokensFromData(data: object, mapping: DTPluginToSupernovaMapPack, settings: DTPluginToSupernovaSettings): Promise<object>;
31
30
  synchronizeTokensFromDataWithResults(data: object, mapping: DTPluginToSupernovaMapPack, settings: DTPluginToSupernovaSettings): Promise<{
32
31
  results: SupernovaToolsDesignTokensResult[];
@@ -1,5 +1,5 @@
1
- import { DTOriginalTokenType } from "../../../model/enums/SDKTokenType";
2
1
  import { Logger } from "../../../model/support/SDKLogger";
2
+ import { DTOriginalTokenType } from "../../../model/enums/SDKTokenType";
3
3
  export type DTParsedNode = {
4
4
  rootKey: string;
5
5
  name: string;
@@ -7,6 +7,6 @@ export type TokenTreeElement = Token | TokenGroup;
7
7
  export declare class GroupTree extends GroupTreeNode {
8
8
  childType: TokenType;
9
9
  constructor(backingElement: TokenTreeElement);
10
- static populate(root: TokenTreeElement, elements: Array<TokenTreeElement>, parentChildrenMap: Map<string, Array<TokenTreeElement>>): GroupTree | null;
10
+ static populate(root: TokenTreeElement, elements: Array<TokenTreeElement>, parentChildrenMap: Map<string, Array<TokenTreeElement>>): GroupTree;
11
11
  }
12
12
  export declare function buildBrandedElementRoots(elements: TokenTreeElement[]): Map<string, Map<TokenType, GroupTree>>;
@@ -1,4 +1,3 @@
1
- import { DocsBlockMultiRichTextPropertyOptions } from "../../exports";
2
1
  import { DocsBlockDefinition } from "../../model/docs/blocks/definition/SDKDocsBlockDefinition";
3
2
  import { DocsBlockItemDefinition } from "../../model/docs/blocks/definition/SDKDocsBlockItemDefinition";
4
3
  import { DocsBlockLayout } from "../../model/docs/blocks/definition/SDKDocsBlockLayout";
@@ -166,16 +165,6 @@ export declare class DocsBlockBuilder {
166
165
  [key: string]: DocsBlockRichTextPropertyOptions;
167
166
  };
168
167
  }): DocsBlockRichTextPropertyDefinition;
169
- /** Create a block property with type .richText and its specific options */
170
- multiRichTextProperty(configuration: {
171
- id: string;
172
- name: string;
173
- description?: string;
174
- options: DocsBlockMultiRichTextPropertyOptions;
175
- variants?: {
176
- [key: string]: DocsBlockMultiRichTextPropertyOptions;
177
- };
178
- }): DocsBlockRichTextPropertyDefinition;
179
168
  /** Create a block property with type .boolean and its specific options */
180
169
  booleanProperty(configuration: {
181
170
  id: string;
@@ -23,7 +23,7 @@ export declare class TokenJSONElementFigmaTokensTransformer extends TokenJSONEle
23
23
  /** Retrieve token wrapper containing its metadata and value information (used as container for each defined token) */
24
24
  tokenWrapper(token: Token, value: any, options: TokenJSONBuilderOptionsInternal, groups: Array<TokenGroup>): object;
25
25
  /** Retrieve human-readable token type in unified fashion, used both as token type and as token master group */
26
- typeLabelConsideringAbstractGroups(token: Token, groups: Array<TokenGroup>): string | undefined;
26
+ typeLabelConsideringAbstractGroups(token: Token, groups: Array<TokenGroup>): string;
27
27
  /** Retrieve wrapper to certain token (referenced by name) pointing to token value */
28
28
  referenceWrapper(reference: string): string;
29
29
  /** Retrieve safe group name made out of normal group name
@@ -62,7 +62,7 @@ export declare class TokenJSONElementTransformer {
62
62
  safeGroupName(group: TokenGroup): string;
63
63
  processedName(name: string, naming: JSONBuilderNamingOption): string;
64
64
  /** Retrieve human-readable token type in unified fashion, used both as token type and as token master group */
65
- typeLabel(type: TokenType): "color" | "gradient" | "typography" | "border" | "textCase" | "textDecoration" | "visibility" | "shadow" | "text" | "measure" | undefined;
65
+ typeLabel(type: TokenType): "color" | "gradient" | "typography" | "border" | "textCase" | "textDecoration" | "visibility" | "shadow" | "measure" | "text";
66
66
  /** Retrieve chain of groups up to a specified group, ordered from parent to children */
67
67
  referenceGroupChain(containingGroup: TokenGroup, allGroups: Array<TokenGroup>): Array<TokenGroup>;
68
68
  }
@@ -7,10 +7,7 @@ export declare class TokenUtilPreviewGenerator {
7
7
  /** Generates metadata required for rendering of the preview. Only usable with Supernova preview */
8
8
  static tokenPreviewMetadata(token: Token, allTokens: Map<string, Token>): TokenUtilPreviewMetadata;
9
9
  /** Generates style required for rendering of the preview. Only usable with Supernova preview */
10
- static tokenPreviewStyle(token: Token, overridenStyles?: {
11
- fontFamily?: string;
12
- fontWeight?: string;
13
- }): TokenUtilPreviewResolvedStyle;
10
+ static tokenPreviewStyle(token: Token): TokenUtilPreviewResolvedStyle;
14
11
  /** Generates adjusted preview type required for rendering of the preview. Only usable with Supernova preview */
15
12
  static tokenPreviewType(token: Token): TokenUtilPreviewTokenType;
16
13
  /** Generates per-value description of passed token. Only usable with Supernova preview */
@@ -1,8 +1,5 @@
1
1
  import { Token } from "../../model/tokens/SDKToken";
2
2
  import { TokenUtilPreviewResolvedStyle } from "./TokenUtilPreviewTypes";
3
3
  export declare class TokenUtilPreviewStyleGenerator {
4
- resolvedStyleForToken(token: Token, overridenStyles?: {
5
- fontFamily?: string;
6
- fontWeight?: string;
7
- }): TokenUtilPreviewResolvedStyle | undefined;
4
+ resolvedStyleForToken(token: Token): TokenUtilPreviewResolvedStyle | undefined;
8
5
  }
@@ -81,7 +81,7 @@ export declare class TokenUtils {
81
81
  static tokensToReferenceMap(tokens: Array<Token>): Map<string, Token>;
82
82
  /** Map token groups for lookup */
83
83
  static tokenGroupsToReferenceMap(groups: Array<TokenGroup>): Map<string, TokenGroup>;
84
- static lookupReference<T extends Token>(id: string | undefined | null, tokens: Map<string, Token>): T | undefined;
84
+ static lookupReference<T extends Token>(id: string, tokens: Map<string, Token>): T | undefined;
85
85
  /** Creates a new token group for a given token type. Default values will be used for all properties */
86
86
  static createDefaultTokenGroup(type: TokenType, versionId: string, brandId: string, name?: string): TokenGroup;
87
87
  /** Creates a new token theme. Default values will be used for all properties */
@@ -275,9 +275,9 @@ export declare class TokenUtils {
275
275
  private static checkNotReference;
276
276
  private static rawOrReferencedDimensionValue;
277
277
  private static rawOrReferencedStringValue;
278
- static validateLayerAccess(token: AnyMultiLayerToken, index: number): void;
278
+ private static validateLayerAccess;
279
279
  static inlineValueIntoComplexTokens(token: AnyToken, candidateId: string, candidateValueToInline: AnyTokenValue): void;
280
- static getRefIdsFromComplexTokens(token: AnyToken): (string | null | undefined)[];
280
+ static getRefIdsFromComplexTokens(token: AnyToken): string[];
281
281
  static buildKey(path: Array<string>, name: string): string;
282
282
  static buildPath(token: Token, groups: Array<TokenGroup>): Array<string>;
283
283
  static mapTypeToPrefix: (type: TokenType) => string;