@supernova-studio/supernova-sdk-beta 1.6.42 → 1.6.45

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 (39) hide show
  1. package/build/sdk-typescript/.eslintrc.d.cts +6 -6
  2. package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +1 -0
  3. package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +7 -1
  4. package/build/sdk-typescript/src/core/areas/SDKAreaMultiplayer.d.ts +1 -1
  5. package/build/sdk-typescript/src/core/areas/SDKAreaVersions.d.ts +6 -2
  6. package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +44 -0
  7. package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +4 -0
  8. package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +38 -6
  9. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +17 -3
  10. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +11 -3
  11. package/build/sdk-typescript/src/exports.d.ts +1 -1
  12. package/build/sdk-typescript/src/model/base/SDKDesignSystemVersion.d.ts +54 -0
  13. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntity.d.ts +4 -2
  14. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityConfiguration.d.ts +5 -3
  15. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityGroup.d.ts +3 -1
  16. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityPage.d.ts +3 -1
  17. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyConfiguration.d.ts +4 -0
  18. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyItem.d.ts +2 -0
  19. package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationLegacyItemConfiguration.d.ts +4 -0
  20. package/build/sdk-typescript/src/model/support/SDKSource.d.ts +4 -1
  21. package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +1 -27
  22. package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +1 -27
  23. package/build/sdk-typescript/src/model/tokens/SDKTypographyToken.d.ts +2 -2
  24. package/build/sdk-typescript/src/model/users/SDKUserProfile.d.ts +4 -2
  25. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceIntegration.d.ts +75 -0
  26. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceIntegrationAccessToken.d.ts +12 -0
  27. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceIntegrationOauthRequest.d.ts +9 -0
  28. package/build/sdk-typescript/src/tests/helpers.d.ts +5 -0
  29. package/build/sdk-typescript/src/tests/validators.d.ts +3 -3
  30. package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +3 -3
  31. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +14 -2
  32. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTThemeMerger.d.ts +6 -1
  33. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenMerger.d.ts +1 -0
  34. package/build/sdk-typescript/src/tools/design-tokens/utilities/collection/SDKDTTokenCollection.d.ts +1 -1
  35. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +1 -1
  36. package/build/sdk-typescript/src/utils/TokenUtils.d.ts +1 -0
  37. package/build/supernova-sdk-typescript.js +1 -1
  38. package/build/supernova-sdk-typescript.js.map +1 -1
  39. package/package.json +112 -125
@@ -75,30 +75,4 @@ 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) => {
79
- Color: typeof import("./SDKColorToken").ColorToken;
80
- Typography: typeof import("./SDKTypographyToken").TypographyToken;
81
- Blur: typeof import("./SDKBlurToken").BlurToken;
82
- Border: typeof import("./SDKBorderToken").BorderToken;
83
- Shadow: typeof import("./SDKShadowToken").ShadowToken;
84
- Gradient: typeof import("./SDKGradientToken").GradientToken;
85
- String: typeof import("./SDKStringToken").StringToken;
86
- ProductCopy: typeof import("./SDKStringToken").ProductCopyToken;
87
- FontFamily: typeof import("./SDKStringToken").FontFamilyToken;
88
- FontWeight: typeof import("./SDKStringToken").FontWeightToken;
89
- TextCase: typeof import("./SDKTextCaseToken").TextCaseToken;
90
- TextDecoration: typeof import("./SDKTextDecorationToken").TextDecorationToken;
91
- Visibility: typeof import("./SDKVisibilityToken").VisibilityToken;
92
- BorderWidth: typeof BorderWidthToken;
93
- Dimension: typeof DimensionToken;
94
- Size: typeof SizeToken;
95
- Space: typeof SpaceToken;
96
- Opacity: typeof OpacityToken;
97
- FontSize: typeof FontSizeToken;
98
- LineHeight: typeof LineHeightToken;
99
- LetterSpacing: typeof LetterSpacingToken;
100
- ParagraphSpacing: typeof ParagraphSpacingToken;
101
- BorderRadius: typeof RadiusToken;
102
- Duration: typeof DurationToken;
103
- ZIndex: typeof ZIndexToken;
104
- }[TK];
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) => TokenClassTypeMapToken[TK];
@@ -32,30 +32,4 @@ 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) => {
36
- Color: typeof import("./SDKColorToken").ColorToken;
37
- Typography: typeof import("./SDKTypographyToken").TypographyToken;
38
- Blur: typeof import("./SDKBlurToken").BlurToken;
39
- Border: typeof import("./SDKBorderToken").BorderToken;
40
- Shadow: typeof import("./SDKShadowToken").ShadowToken;
41
- Gradient: typeof import("./SDKGradientToken").GradientToken;
42
- String: typeof StringToken;
43
- ProductCopy: typeof ProductCopyToken;
44
- FontFamily: typeof FontFamilyToken;
45
- FontWeight: typeof FontWeightToken;
46
- TextCase: typeof import("./SDKTextCaseToken").TextCaseToken;
47
- TextDecoration: typeof import("./SDKTextDecorationToken").TextDecorationToken;
48
- Visibility: typeof import("./SDKVisibilityToken").VisibilityToken;
49
- BorderWidth: typeof import("./SDKDimensionToken").BorderWidthToken;
50
- Dimension: typeof import("./SDKDimensionToken").DimensionToken;
51
- Size: typeof import("./SDKDimensionToken").SizeToken;
52
- Space: typeof import("./SDKDimensionToken").SpaceToken;
53
- Opacity: typeof import("./SDKDimensionToken").OpacityToken;
54
- FontSize: typeof import("./SDKDimensionToken").FontSizeToken;
55
- LineHeight: typeof import("./SDKDimensionToken").LineHeightToken;
56
- LetterSpacing: typeof import("./SDKDimensionToken").LetterSpacingToken;
57
- ParagraphSpacing: typeof import("./SDKDimensionToken").ParagraphSpacingToken;
58
- BorderRadius: typeof import("./SDKDimensionToken").RadiusToken;
59
- Duration: typeof import("./SDKDimensionToken").DurationToken;
60
- ZIndex: typeof import("./SDKDimensionToken").ZIndexToken;
61
- }[TK];
35
+ export declare const resolveString: <TK extends TokenType.fontFamily | TokenType.fontWeight | TokenType.string | TokenType.productCopy>(type: TK) => TokenClassTypeMapToken[TK];
@@ -10,8 +10,8 @@ export declare class TypographyToken extends Token {
10
10
  value: TypographyTokenValue;
11
11
  tokenType: TokenType.typography;
12
12
  constructor(versionId: string, baseToken: TokenRemoteModel, value: TypographyTokenValue, alias: TypographyToken | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
13
- static create(versionId: string, brandId: string, name: string, description: string, value: object, alias: TypographyToken | null, referenceResolver: DTTokenReferenceResolver, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>): TypographyToken;
14
- static typographyValueFromDefinition(definition: any, referenceResolver: DTTokenReferenceResolver): TypographyTokenValue;
13
+ static create(versionId: string, brandId: string, name: string, description: string, value: object, alias: TypographyToken | null, referenceResolver: DTTokenReferenceResolver, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>, reference?: string): TypographyToken;
14
+ static typographyValueFromDefinition(definition: any, referenceResolver: DTTokenReferenceResolver, reference?: string): TypographyTokenValue;
15
15
  toWriteObject(): TypographyTokenRemoteModel;
16
16
  static valueToWriteObject(value: TypographyTokenValue): {
17
17
  aliasTo: string | undefined;
@@ -1,5 +1,7 @@
1
- export type UserOnboardingDepartmentType = "Design" | "Engineering" | "Brand" | "Other";
2
- export type UserOnboardingJobLevelType = "Executive" | "Manager" | "IndividualContributor" | "Other";
1
+ export type UserOnboardingDepartmentType = (typeof UserOnboardingDepartmentTypes)[number];
2
+ export declare const UserOnboardingDepartmentTypes: readonly ["Design", "Product", "Engineering", "Brand", "Other"];
3
+ export type UserOnboardingJobLevelType = (typeof UserOnboardingJobLevelTypes)[number];
4
+ export declare const UserOnboardingJobLevelTypes: readonly ["Executive", "Manager", "IndividualContributor", "Other"];
3
5
  export type UserProfileRemoteModel = {
4
6
  name?: string;
5
7
  nickname?: string;
@@ -0,0 +1,75 @@
1
+ import { OAuth2IntegrationTypes } from "./SDKWorkspaceIntegrationOauthRequest";
2
+ export type WorkspaceIntegrationsRemoteModel = {
3
+ integrations: Array<WorkspaceIntegrationType>;
4
+ };
5
+ export type WorkspaceLinkedIntegrations = {
6
+ Figma?: WorkspaceIntegrationType[];
7
+ FigmaVariablesPlugin?: WorkspaceIntegrationType[];
8
+ Github?: WorkspaceIntegrationType[];
9
+ TokenStudio?: WorkspaceIntegrationType[];
10
+ Gitlab?: WorkspaceIntegrationType[];
11
+ Azure?: WorkspaceIntegrationType[];
12
+ Bitbucket?: WorkspaceIntegrationType[];
13
+ };
14
+ type WorkspaceIntegrationCredentialProfile = {
15
+ avatarUrl: string;
16
+ id: string;
17
+ handle: string;
18
+ email: string;
19
+ };
20
+ type WorkspaceIntegrationUser = {
21
+ id: string;
22
+ email: string;
23
+ name: string;
24
+ avatar?: string;
25
+ };
26
+ type WorkspaceIntegrationCredential = {
27
+ id: string;
28
+ integrationId: number;
29
+ userId: string;
30
+ createdAt: string;
31
+ accessToken: string;
32
+ refreshToken: string;
33
+ type: "OAuth2" | "PAT" | "GithubApp";
34
+ tokenName?: string;
35
+ profile: WorkspaceIntegrationCredentialProfile;
36
+ user: WorkspaceIntegrationUser;
37
+ };
38
+ type WorkspaceIntegrationDesignSystem = {
39
+ brandId: string;
40
+ designSystemId: string;
41
+ date: string;
42
+ title?: string;
43
+ user: WorkspaceIntegrationUser;
44
+ };
45
+ export type WorkspaceIntegrationType = {
46
+ id: string;
47
+ createdAt: string;
48
+ type: keyof WorkspaceLinkedIntegrations;
49
+ workspaceId: string;
50
+ integrationCredentials?: Array<WorkspaceIntegrationCredential>;
51
+ integrationDesignSystems?: Array<WorkspaceIntegrationDesignSystem>;
52
+ };
53
+ export type WorkspaceIntegrationTypeOnlyCredentials = Omit<WorkspaceIntegrationType, "integrationDesignSystems"> & {
54
+ type: OAuth2IntegrationTypes;
55
+ };
56
+ export type WorkspaceIntegrationTypeOnlyDesignSystems = Omit<WorkspaceIntegrationType, "integrationCredentials"> & {
57
+ type: keyof Pick<WorkspaceLinkedIntegrations, "FigmaVariablesPlugin" | "TokenStudio">;
58
+ };
59
+ export type WorkspaceIntegrationCredentialType = NonNullable<WorkspaceIntegrationType["integrationCredentials"]>[0];
60
+ export type WorkspaceIntegrationDesignType = NonNullable<WorkspaceIntegrationType["integrationDesignSystems"]>[0];
61
+ export declare class WorkspaceIntegration implements WorkspaceIntegrationType {
62
+ id: string;
63
+ createdAt: string;
64
+ type: keyof WorkspaceLinkedIntegrations;
65
+ workspaceId: string;
66
+ integrationCredentials?: Array<WorkspaceIntegrationCredential>;
67
+ integrationDesignSystems?: Array<WorkspaceIntegrationDesignSystem>;
68
+ constructor(model: WorkspaceIntegrationType);
69
+ }
70
+ export declare class WorkspaceIntegrations {
71
+ /** List of integrations of the workspace */
72
+ integrations: Array<WorkspaceIntegrationType>;
73
+ constructor(model: WorkspaceIntegrationsRemoteModel);
74
+ }
75
+ export {};
@@ -0,0 +1,12 @@
1
+ export type AccessTokenIntegrationTypes = "Github" | "Gitlab" | "Bitbucket" | "Azure";
2
+ export type WorkspaceIntegrationAccessTokenPayload = {
3
+ userId: string;
4
+ type: AccessTokenIntegrationTypes;
5
+ token: {
6
+ token_name: string;
7
+ access_token: string;
8
+ custom_url?: string;
9
+ token_bitbucket_username?: string;
10
+ token_azure_organization_name?: string;
11
+ };
12
+ };
@@ -0,0 +1,9 @@
1
+ export type OAuth2IntegrationTypes = "Figma" | "Github" | "Gitlab" | "Bitbucket" | "Azure";
2
+ export type WorkspaceIntegrationOauthRequestRemoteModel = {
3
+ url: string;
4
+ };
5
+ export declare class WorkspaceIntegrationOauthRequest {
6
+ /** Redirect url for oauth of given integration */
7
+ url: string;
8
+ constructor(model: WorkspaceIntegrationOauthRequestRemoteModel);
9
+ }
@@ -1,7 +1,12 @@
1
1
  import { Supernova } from "../core/SDKSupernova";
2
2
  import { RemoteVersionIdentifier, RemoteWorkspaceVersionIdentifier } from "../core/areas/SDKRemoteIdentifiers";
3
+ import { ExecutionContext } from "ava";
3
4
  export declare const testInstance: Supernova;
4
5
  export declare const testVersionIdentifier: RemoteVersionIdentifier;
5
6
  export declare const testWorkspaceVersionIdentifier: RemoteWorkspaceVersionIdentifier;
6
7
  export declare const randomAlphabeticalOnlyIdentifier: (length: number) => string;
7
8
  export declare const randomNumberInRange: (min: number, max: number) => number;
9
+ export declare const retryAssertAsync: (t: ExecutionContext<unknown>, assertFn: (ctx: ExecutionContext<unknown>) => Promise<any>, beforeFn?: (ctx: ExecutionContext<unknown>) => Promise<any>, retriesLeft?: number, interval?: number) => Promise<any>;
10
+ export declare const testRetry: (title: string, fn: (ctx: ExecutionContext<unknown>) => Promise<any>, beforeFn?: (ctx: ExecutionContext<unknown>) => Promise<any>, attempts?: number, interval?: number) => Promise<void>;
11
+ export declare const testRetryBefore: (beforeFn: (ctx: ExecutionContext<unknown>) => Promise<any>) => (title: string, fn: (ctx: ExecutionContext<unknown>) => Promise<any>, attempts?: number, interval?: number) => Promise<void>;
12
+ export declare const testAva: import("ava").TestFn;
@@ -2,7 +2,7 @@ import { BorderPosition, ColorToken, ShadowType, TextCase, TextDecoration, Unit
2
2
  import { BorderStyle } from "../model/enums/SDKBorderStyle";
3
3
  import { StringTokenType } from "../model/enums/SDKTokenType";
4
4
  import { Token } from "../model/tokens/SDKToken";
5
- export declare const validateToken: (t: any, tokens: Token[], name: string, hex: string, opacity?: number) => void;
5
+ export declare const validateToken: (t: any, tokens: Token[], name: string, hex: string, opacity?: number, aliasName?: string) => void;
6
6
  export declare const validateDimensionToken: (t: any, tokens: Token[], name: string, measure: number, unit: Unit) => void;
7
7
  export declare const validateStringToken: (t: any, tokens: Token[], name: string, text: string, type: StringTokenType) => void;
8
8
  export declare const validateOptionToken: (t: any, tokens: Token[], name: string, text: string) => void;
@@ -38,7 +38,7 @@ export declare const validateShadowTokenRef: (t: any, tokens: Token[], descripti
38
38
  spread: number;
39
39
  type: ShadowType;
40
40
  }>) => void;
41
- export declare const validateShadowTokenRefMultiple: (t: any, tokens: Token[], description: string, layers: {
41
+ export declare const validateShadowTokenRefMultiple: (t: any, tokens: Token[], description: string, layers: Array<{
42
42
  refName: string;
43
43
  layers: Array<{
44
44
  hex: string;
@@ -48,7 +48,7 @@ export declare const validateShadowTokenRefMultiple: (t: any, tokens: Token[], d
48
48
  spread: number;
49
49
  type: ShadowType;
50
50
  }>;
51
- }[]) => void;
51
+ }>) => void;
52
52
  export declare const validateShadowTokenInnerRef: (t: any, tokens: Token[], name: string, value: {
53
53
  hex: string;
54
54
  x: number;
@@ -6,7 +6,7 @@ import { TokenTheme } from "../../model/themes/SDKTokenTheme";
6
6
  import { Token } from "../../model/tokens/SDKToken";
7
7
  import { AnyToken } from "../../model/tokens/SDKTokenValue";
8
8
  import { DTProcessedTokenNode } from "./utilities/SDKDTJSONConverter";
9
- import { DTPluginToSupernovaMap, DTPluginToSupernovaMapPack, DTPluginToSupernovaSettings } from "./utilities/SDKDTMapLoader";
9
+ import { DTPluginPreciseCopyStrategy, DTPluginThemeOverrideStrategy, DTPluginToSupernovaMap, DTPluginToSupernovaMapPack, DTPluginToSupernovaSettings } from "./utilities/SDKDTMapLoader";
10
10
  import { DTTokenMergeDiff } from "./utilities/SDKDTTokenMerger";
11
11
  export type SupernovaToolsDesignTokensLoadingResult = {
12
12
  processedNodes: Array<DTProcessedTokenNode>;
@@ -40,13 +40,13 @@ export declare class SupernovaToolsDesignTokensPlugin {
40
40
  groups: Array<TokenGroup>;
41
41
  };
42
42
  /** Loads remote source connected to this tool, then merges tokens and groups with it, creating union. Can optionally write to the source as well */
43
- mergeWithRemoteSource(processedNodes: Array<DTProcessedTokenNode>, brand: Brand, write: boolean, verbose: boolean, preciseCopy: boolean): Promise<{
43
+ mergeWithRemoteSource(processedNodes: Array<DTProcessedTokenNode>, brand: Brand, write: boolean, verbose: boolean, preciseCopy: DTPluginPreciseCopyStrategy): Promise<{
44
44
  tokens: Array<Token>;
45
45
  groups: Array<TokenGroup>;
46
46
  diff: DTTokenMergeDiff;
47
47
  }>;
48
48
  /** Loads remote source connected to this tool, then creates the diff from the base tree and updates the associated theme. Can optionally write to the source as well */
49
- mergeThemeWithRemoteSource(processedNodes: Array<DTProcessedTokenNode>, brand: Brand, theme: TokenTheme, write: boolean, verbose: boolean, preciseCopy?: boolean): Promise<{
49
+ mergeThemeWithRemoteSource(processedNodes: Array<DTProcessedTokenNode>, brand: Brand, theme: TokenTheme, write: boolean, verbose: boolean, preciseCopy?: DTPluginPreciseCopyStrategy, themeOverridesStrategy?: DTPluginThemeOverrideStrategy): Promise<{
50
50
  theme: TokenTheme;
51
51
  tokens: Array<Token>;
52
52
  }>;
@@ -6,6 +6,16 @@ export declare enum DTPluginToSupernovaMapType {
6
6
  theme = "theme",
7
7
  set = "set"
8
8
  }
9
+ export declare enum DTPluginThemeOverrideStrategy {
10
+ default = "default",
11
+ aliasIsDifferent = "aliasIsDifferent"
12
+ }
13
+ export declare enum DTPluginPreciseCopyStrategy {
14
+ none = "none",// preciseCopy = false
15
+ deleteAll = "deleteAll",// preciseCopy = true
16
+ keepManualTokens = "keepManualTokens"
17
+ }
18
+ export declare const isPreciseCopyEnabled: (preciseCopy: DTPluginPreciseCopyStrategy) => boolean;
9
19
  export type DTPluginToSupernovaMap = {
10
20
  type: DTPluginToSupernovaMapType;
11
21
  pluginSets: Array<string> | null;
@@ -29,11 +39,13 @@ export type DTPluginToSupernovaMappingFile = {
29
39
  settings?: {
30
40
  verbose?: boolean;
31
41
  dryRun?: boolean;
32
- preciseCopy?: boolean;
42
+ preciseCopy?: boolean | DTPluginPreciseCopyStrategy;
43
+ themeOverridesStrategy?: DTPluginThemeOverrideStrategy;
33
44
  };
34
45
  };
35
46
  export type DTPluginToSupernovaSettings = {
36
47
  verbose: boolean;
37
48
  dryRun: boolean;
38
- preciseCopy: boolean;
49
+ preciseCopy: DTPluginPreciseCopyStrategy;
50
+ themeOverridesStrategy: DTPluginThemeOverrideStrategy;
39
51
  };
@@ -2,6 +2,7 @@ import { TokenGroup } from "../../../model/groups/SDKTokenGroup";
2
2
  import { TokenTheme } from "../../../model/themes/SDKTokenTheme";
3
3
  import { Token } from "../../../model/tokens/SDKToken";
4
4
  import { DTProcessedTokenNode } from "./SDKDTJSONConverter";
5
+ import { DTPluginPreciseCopyStrategy, DTPluginThemeOverrideStrategy } from "./SDKDTMapLoader";
5
6
  export type DTThemeMergeDiff = {
6
7
  toUpdate: Array<DTProcessedTokenNode>;
7
8
  toCreate: Array<DTProcessedTokenNode>;
@@ -10,6 +11,10 @@ export type DTThemeMergeDiff = {
10
11
  export declare class DTThemeMerger {
11
12
  private versionId;
12
13
  constructor(versionId: string);
13
- makeTheme(upstreamTokens: Array<Token>, upstreamGroups: Array<TokenGroup>, upstreamTheme: TokenTheme, processedNodes: Array<DTProcessedTokenNode>, preciseCopy?: boolean): TokenTheme;
14
+ makeTheme(upstreamTokens: Array<Token>, upstreamGroups: Array<TokenGroup>, upstreamTheme: TokenTheme, processedNodes: Array<DTProcessedTokenNode>, preciseCopy?: DTPluginPreciseCopyStrategy, themeOverridesStrategy?: DTPluginThemeOverrideStrategy): TokenTheme;
14
15
  inlineTokens(themeReplica: TokenTheme, tokensInThemeButNotInUpstream: Map<string, DTProcessedTokenNode>): void;
16
+ applyThemeOverrideStrategy(idsToRemap: Map<string, string>, themeOverridesStrategy: DTPluginThemeOverrideStrategy, token: Token, incomingThemeOverrideToken?: Token, currentThemeOverride?: Token): {
17
+ keepOverrideDueToAlias: boolean | "" | null;
18
+ incomingThemeDiffersFromUpstreamThemeAlias: boolean | "" | null;
19
+ };
15
20
  }
@@ -10,6 +10,7 @@ export type DTTokenMergeDiff = {
10
10
  /** Utility allowing merging of two pools of tokens */
11
11
  export declare class DTTokenMerger {
12
12
  static buildKey(path: Array<string>, name: string): string;
13
+ static buildReference(path: Array<string>, name: string): string;
13
14
  buildNodeMap(nodes: Array<DTProcessedTokenNode>): Map<string, DTProcessedTokenNode>;
14
15
  convertBaseTokensToProcessedNode(tokens: Array<AnyToken>, groups: Array<TokenGroup>): Array<DTProcessedTokenNode>;
15
16
  makeTokensDiff(existing: Array<AnyToken>, extracted: Array<DTProcessedTokenNode>, groups: Array<TokenGroup>): DTTokenMergeDiff;
@@ -2,7 +2,7 @@ import { DTProcessedTokenNode } from "../SDKDTJSONConverter";
2
2
  export declare class DTProcessedTokenNodeCollection {
3
3
  readonly index: Map<string, DTProcessedTokenNode>;
4
4
  readonly added: Set<string>;
5
- readonly deleted: Map<string, DTProcessedTokenNode<import("../../../..").AnyToken>>;
5
+ readonly deleted: Map<string, DTProcessedTokenNode>;
6
6
  readonly dirty: Set<string>;
7
7
  readonly list: Array<DTProcessedTokenNode>;
8
8
  constructor(source: Array<DTProcessedTokenNode> | Map<string, DTProcessedTokenNode>);
@@ -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): "visibility" | "color" | "gradient" | "typography" | "border" | "textCase" | "textDecoration" | "text" | "shadow" | "measure" | undefined;
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
  }
@@ -279,6 +279,7 @@ export declare class TokenUtils {
279
279
  static inlineValueIntoComplexTokens(token: AnyToken, candidateId: string, candidateValueToInline: AnyTokenValue): void;
280
280
  static getRefIdsFromComplexTokens(token: AnyToken): (string | null | undefined)[];
281
281
  static buildKey(path: Array<string>, name: string): string;
282
+ static buildReference(path: Array<string>, name: string): string;
282
283
  static buildPath(token: Token, groups: Array<TokenGroup>): Array<string>;
283
284
  static mapTypeToPrefix: (type: TokenType) => string;
284
285
  static mapTypeToPrefixBack: (type: TokenType) => string;