@supernova-studio/supernova-sdk-beta 2.0.23 → 2.0.27

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.
@@ -49,7 +49,7 @@ export declare class AreaBulkOperations {
49
49
  * @param payload - Payload to import. Types to come
50
50
  * @returns Nothing
51
51
  */
52
- importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", payload: any): Promise<ImportJob>;
52
+ importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", payload: any, isTokenTypeSplitEnabled?: boolean): Promise<ImportJob>;
53
53
  /** Batch updates, creates or deletes token data from Supernova at once. Use this method to perform multiple operations at once instead of chaining single update operations. Batch routine runs everything in a single transaction, so either all operations succeed or all fail.
54
54
  *
55
55
  * WARNING: This method is not yet complete and only supports limited set of operations. Also, doesn't work as transation just yet.
@@ -1,5 +1,5 @@
1
1
  import { DTODocumentationLinkPreviewRequest, DTODocumentationPageApprovalStateChangeInput } from "@supernova-studio/client";
2
- import { DesignSystemInvite, DesignSystemPendingMemberInvite, DesignSystemUserInvitation } from "@supernova-studio/model";
2
+ import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation } from "@supernova-studio/model";
3
3
  import { DesignSystem, DesignSystemAccessMode, DesignSystemSwitcher } from "../../model/base/SDKDesignSystem";
4
4
  import { DesignSystemMemberList } from "../../model/base/SDKDesignSystemMemberList";
5
5
  import { CustomDomain } from "../../model/support/SDKCustomDomain";
@@ -123,11 +123,13 @@ export declare class AreaDesignSystems {
123
123
  * @param usersToInvite - Existing users to invite
124
124
  * @param invitesToInvite - Pending memberships to invite
125
125
  * @param emailsToInvite - New emails to invite
126
+ * @param invitesToUpdate - Pending memberships to change dsRole
126
127
  * @param deleteInvitationIds - Pending memberships to delete
128
+ * @param usersToUpdate - Existing users to change dsRole
127
129
  * @param removeUserIds - Existing users to remove
128
130
  * @returns nothing
129
131
  */
130
- updateDesignSystemMemberList(designSystemId: string, usersToInvite?: Array<DesignSystemUserInvitation>, invitesToInvite?: Array<DesignSystemPendingMemberInvite>, emailsToInvite?: Array<DesignSystemInvite>, deleteInvitationIds?: Array<string>, removeUserIds?: Array<string>): Promise<void>;
132
+ updateDesignSystemMemberList(designSystemId: string, usersToInvite?: Array<DesignSystemUserInvitation>, invitesToInvite?: Array<DesignSystemPendingMemberInvite>, emailsToInvite?: Array<DesignSystemInvite>, invitesToUpdate?: Array<DesignSystemInviteUpdate>, deleteInvitationIds?: Array<string>, usersToUpdate?: Array<DesignSystemMemberUpdate>, removeUserIds?: Array<string>): Promise<void>;
131
133
  /** Deletes a design system. This action is irreversible, all data will be lost, and can only be performed by the admins of the workspace
132
134
  * @param designSystemId - ID of the design system
133
135
  * @returns Nothing. RIP design system.
@@ -214,6 +214,13 @@ export declare class AreaTokens {
214
214
  writeTheme(to: RemoteVersionIdentifier, theme: TokenTheme): Promise<void>;
215
215
  /** Resolves tokens by applying themes to them and retrieves new token set where values correctly correspond to that theme */
216
216
  computeTokensByApplyingThemes(allTokens: Array<Token>, tokens: Array<Token>, themes: Array<TokenTheme>): Array<Token>;
217
+ computeInnerReferencesByApplyingThemesEfficient(tokensIndex: Map<string, Token>, themeOverridesIndex: {
218
+ [key: string]: Map<string, Token>;
219
+ }, tokens: Array<Token>, themes: Array<TokenTheme>): Array<Token>;
220
+ private computeSingleTokenValueFromReferenceByApplyingThemes;
221
+ computeTokensByApplyingThemesEfficient(tokensIndex: Map<string, Token>, themeOverridesIndex: {
222
+ [key: string]: Map<string, Token>;
223
+ }, tokens: Array<Token>, themes: Array<TokenTheme>): Array<Token>;
217
224
  /** Separates groups by types */
218
225
  computeGroupTrees(groups: Array<TokenGroup>): Promise<Map<TokenType, Array<TokenGroup>>>;
219
226
  /** Get determistic mocked token data. Must be used with mocked token groups */
@@ -1,6 +1,6 @@
1
1
  import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODocumentationLinkPreviewRequest, DTODocumentationPageAnchor, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOFigmaNode, // TODO? DTODeleteDocumentationTabGroupInput,
2
2
  DTOFigmaNodeRenderInput, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPublishDocumentationRequest, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2 } from "@supernova-studio/client";
3
- import { DesignSystemInvite, DesignSystemPendingMemberInvite, DesignSystemUserInvitation } from "@supernova-studio/model";
3
+ import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation } from "@supernova-studio/model";
4
4
  import { DesignSystemAccessMode, DocsBlockDefinition, ExportBuildStatus, ResourceFont, TokenThemeOverrideTranserObject } from "../../exports";
5
5
  import { Acl } from "../../model/acl/SDKAcl";
6
6
  import { Asset } from "../../model/assets/SDKAsset";
@@ -192,7 +192,7 @@ export declare class DataCore {
192
192
  /** Update design system's access mode and, if switching to invite-only, also the member list */
193
193
  updateDesignSystemAccessModeAndMemberList(designSystemId: string, accessMode: DesignSystemAccessMode, retainUserIds: Array<string>, retainInviteIds: Array<string>): Promise<void>;
194
194
  /** Update design system's member list */
195
- updateDesignSystemMemberList(designSystemId: string, usersToInvite?: Array<DesignSystemUserInvitation>, invitesToInvite?: Array<DesignSystemPendingMemberInvite>, emailsToInvite?: Array<DesignSystemInvite>, deleteInvitationIds?: Array<string>, removeUserIds?: Array<string>): Promise<void>;
195
+ updateDesignSystemMemberList(designSystemId: string, usersToInvite?: Array<DesignSystemUserInvitation>, invitesToInvite?: Array<DesignSystemPendingMemberInvite>, emailsToInvite?: Array<DesignSystemInvite>, invitesToUpdate?: Array<DesignSystemInviteUpdate>, deleteInvitationIds?: Array<string>, usersToUpdate?: Array<DesignSystemMemberUpdate>, removeUserIds?: Array<string>): Promise<void>;
196
196
  /** Create a group within documentation */
197
197
  createDocumentationGroup(designSystemId: string, versionId: string, payload: Omit<DTOCreateDocumentationGroupInput, "persistentId">): Promise<string>;
198
198
  /** Create a tab group within documentation */
@@ -548,7 +548,7 @@ export declare class DataCore {
548
548
  createPersonalAccessTokenConnection(service: ConnectionProviders, connection: PersonalAccessTokenConnectionPayload | AzurePersonalAccessTokenConnectionPayload): Promise<ConnectionRemoteModel>;
549
549
  bulkUpdateTokenData(designSystemId: string, versionId: string, data: TokenUpdateTransactionData): Promise<any>;
550
550
  bulkUpdateComponentData(designSystemId: string, versionId: string, data: ComponentUpdateTransactionData): Promise<any>;
551
- importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", payload: any): Promise<ImportJob>;
551
+ importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", payload: any, isTokenTypeSplitEnabled?: boolean): Promise<ImportJob>;
552
552
  getImportJob(designSystemId: string, versionId: string, jobId: string): Promise<ImportJob>;
553
553
  getImportJobs(designSystemId: string, versionId: string): Promise<Array<ImportJob>>;
554
554
  scheduleImportJobForFigmaSources(designSystemId: string, versionId: string, sourceIds: Array<string>, dryRun: boolean): Promise<ImportJob>;
@@ -1,5 +1,5 @@
1
1
  import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOFigmaNode, DTOFigmaNodeRenderInput, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPublishDocumentationRequest, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2 } from "@supernova-studio/client";
2
- import { DesignSystemInvite, DesignSystemPendingMemberInvite, DesignSystemUserInvitation } from "@supernova-studio/model";
2
+ import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation } from "@supernova-studio/model";
3
3
  import { DesignSystemAccessMode, TokenThemeOverrideTranserObject } from "../../../exports";
4
4
  import { Brand, BrandRemoteModel, BrandUpdateModel } from "../../../model/base/SDKBrand";
5
5
  import { DesignSystem, DesignSystemSwitcher } from "../../../model/base/SDKDesignSystem";
@@ -138,7 +138,7 @@ export declare class DataCoreWriteRequests {
138
138
  /** Remote: Updates a design system's access mode and, if switching to invite-only, also the member list */
139
139
  updateRemoteDesignSystemAccessModeAndMemberList(designSystemId: string, accessMode: DesignSystemAccessMode, retainUserIds: Array<string>, retainInviteIds: Array<string>): Promise<void>;
140
140
  /** Remote: Updates a design system's member list */
141
- updateRemoteDesignSystemMemberList(designSystemId: string, usersToInvite?: Array<DesignSystemUserInvitation>, invitesToInvite?: Array<DesignSystemPendingMemberInvite>, emailsToInvite?: Array<DesignSystemInvite>, deleteInvitationIds?: Array<string>, removeUserIds?: Array<string>): Promise<void>;
141
+ updateRemoteDesignSystemMemberList(designSystemId: string, usersToInvite?: Array<DesignSystemUserInvitation>, invitesToInvite?: Array<DesignSystemPendingMemberInvite>, emailsToInvite?: Array<DesignSystemInvite>, invitesToUpdate?: Array<DesignSystemInviteUpdate>, deleteInvitationIds?: Array<string>, usersToUpdate?: Array<DesignSystemMemberUpdate>, removeUserIds?: Array<string>): Promise<void>;
142
142
  /** Remote: Deletes a design system */
143
143
  deleteDesignSystem(designSystemId: string): Promise<void>;
144
144
  private elementAction;
@@ -256,6 +256,6 @@ export declare class DataCoreWriteRequests {
256
256
  linkFigmaSource(designSystemId: string, data: object): Promise<SourceRemoteModel>;
257
257
  updateFigmaSource(designSystemId: string, sourceId: string, data: object): Promise<SourceRemoteModel>;
258
258
  writeTokenStudioJSONData(designSystemId: string, versionId: string, data: object): Promise<object>;
259
- importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", importType: "Upload", payload: any): Promise<ImportJobRemoteModel>;
259
+ importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", importType: "Upload", payload: any, isTokenTypeSplitEnabled?: boolean): Promise<ImportJobRemoteModel>;
260
260
  setKeyValueStorageData(designSystemId: string, kvData: object): Promise<void>;
261
261
  }
@@ -34,6 +34,7 @@ export type { FeaturePermissionResolution } from "./model/workspaces/SDKWorkspac
34
34
  export { Brand } from "./model/base/SDKBrand";
35
35
  export type { BrandUpdateModel } from "./model/base/SDKBrand";
36
36
  export { DesignSystem } from "./model/base/SDKDesignSystem";
37
+ export type { DesignSystemRole } from "./model/enums/SDKDesignSystemRole";
37
38
  export type { DesignSystemAccessMode } from "./model/base/SDKDesignSystem";
38
39
  export { DesignSystemVersion } from "./model/base/SDKDesignSystemVersion";
39
40
  export type { DesignSystemVersionCreate, DesignSystemVersionUpdateModel, DesignSystemVersionCreationJob, } from "./model/base/SDKDesignSystemVersion";
@@ -1,5 +1,5 @@
1
1
  import { DTODesignSystem } from "@supernova-studio/client";
2
- import { UserRole } from "../enums/SDKUserRole";
2
+ import { DesignSystemRole } from "../enums/SDKDesignSystemRole";
3
3
  export type DesignSystemSwitcher = {
4
4
  isEnabled: boolean;
5
5
  designSystemIds: Array<string>;
@@ -34,13 +34,16 @@ export declare class DesignSystem {
34
34
  /** Access mode of the design system */
35
35
  accessMode: DesignSystemAccessMode;
36
36
  /** Effective role of the user in the design system.
37
- * Is `null` when the user doesn't have access to the design system, but can know about its existence (e.g. Owners). */
38
- effectiveRole: UserRole | null;
39
- constructor(model: DTODesignSystem);
37
+ * Is `null` the DS role is inherited from the WS. */
38
+ effectiveRole: DesignSystemRole | null;
39
+ /** Flag which determines if the design system is available to the user.
40
+ * If `false` then the user doesn't have access to the design system, but knows about its existence (e.g. Owners). */
41
+ isAvailableToUser: boolean;
42
+ constructor(model: Omit<DTODesignSystem, "isPublic"> & {
43
+ isPublic: boolean;
44
+ });
40
45
  /** Constructs representation that can be used to transport the instantiated object as JSON, for example for SSR <> Client use-cases. Reconstruct to class instance using `fromTransport` */
41
46
  toTransport(): DesignSystemTransportModel;
42
47
  /** Reconstructs class from the transport model */
43
48
  static fromTransport(model: DesignSystemTransportModel): DesignSystem;
44
- /** Returns true if the design system is available to the current user */
45
- get isAvailableToUser(): boolean;
46
49
  }
@@ -1,13 +1,23 @@
1
1
  import { DTODesignSystemMemberListResponse } from "@supernova-studio/client";
2
+ import { DesignSystemRole } from "../enums/SDKDesignSystemRole";
3
+ /**
4
+ * Re-mapped from DesignSystemMember to User, because "member" encapsulates both users and invitations.
5
+ */
2
6
  export type DesignSystemUser = {
3
7
  userId: string;
8
+ designSystemRole: DesignSystemRole | null;
4
9
  };
5
10
  export type DesignSystemInvitation = {
6
11
  id: string;
7
12
  workspaceInvitationId: string;
13
+ designSystemRole: DesignSystemRole | null;
8
14
  };
9
15
  export declare class DesignSystemMemberList {
10
- /** List of existing users that belong to the design system */
16
+ /**
17
+ * List of existing users that belong to the design system.
18
+ *
19
+ * Re-mapped from "members" to "users", because "member" encapsulates both users and invitations.
20
+ */
11
21
  users: Array<DesignSystemUser>;
12
22
  /** List of invitations that belong to the design system */
13
23
  invitations: Array<DesignSystemInvitation>;
@@ -23,9 +23,15 @@ export declare class DesignComponentPropertyText extends DesignComponentProperty
23
23
  defaultValue: string;
24
24
  constructor(model: DTOFigmaComponentTextProperty);
25
25
  }
26
+ type InstanceSwapDefaultValuePreview = {
27
+ componentName: string;
28
+ componentSetName: string | null;
29
+ isRemote: boolean;
30
+ };
26
31
  export declare class DesignComponentPropertyInstanceSwap extends DesignComponentPropertyDefinition {
27
32
  type: DesignComponentPropertyType.InstanceSwap;
28
33
  defaultValue: string;
34
+ defaultValuePreview: InstanceSwapDefaultValuePreview | null;
29
35
  constructor(model: DTOFigmaComponentInstanceSwapProperty);
30
36
  }
31
37
  export declare class DesignComponentPropertyVariant extends DesignComponentPropertyDefinition {
@@ -0,0 +1,5 @@
1
+ import { DTODesignSystemRole } from "@supernova-studio/client";
2
+ import { UserRole } from "./SDKUserRole";
3
+ export type DesignSystemRole = Exclude<UserRole, UserRole.owner | UserRole.billing>;
4
+ export declare const convertRemoteToDesignSystemRole: (remoteRole: DTODesignSystemRole) => DesignSystemRole;
5
+ export declare const resolveDesignSystemRoleFromWorkspaceRole: (wsRole: UserRole) => UserRole;
@@ -1,4 +1,7 @@
1
- import { WorkspaceRole } from "@supernova-studio/model";
1
+ import { DTOWorkspaceRole } from "@supernova-studio/client";
2
+ /**
3
+ * Workspace role
4
+ * */
2
5
  export declare enum UserRole {
3
6
  owner = "Owner",
4
7
  admin = "Admin",
@@ -7,5 +10,5 @@ export declare enum UserRole {
7
10
  billing = "Billing",
8
11
  viewer = "Viewer"
9
12
  }
10
- export declare const convertRemoteToUserRole: (remoteRole: WorkspaceRole) => UserRole;
13
+ export declare const convertRemoteToUserRole: (remoteRole: DTOWorkspaceRole) => UserRole;
11
14
  export type UserRoleWithoutOwner = Exclude<UserRole, UserRole.owner>;
@@ -113,6 +113,7 @@ export type SourceRemoteModelFigmaVariablesPlugin = {
113
113
  fileId: string;
114
114
  lastImportedAt?: string;
115
115
  lastImportMetadata?: Record<string, any>;
116
+ isTokenTypeSplitEnabled: boolean;
116
117
  };
117
118
  export type SourceModelTokenStudio = Omit<SourceRemoteModelTokensStudio, "lastUpdatesCheckedAt" | "lastImportedAt"> & {
118
119
  lastUpdatesCheckedAt?: Date;
@@ -18,6 +18,7 @@ export declare class Token implements TokenValue {
18
18
  tokenType: TokenType;
19
19
  origin: TokenOrigin | null;
20
20
  parentGroupId: string;
21
+ tokenPath: Array<string> | null;
21
22
  sortOrder: number;
22
23
  properties: Array<ElementProperty>;
23
24
  propertyValues: {
@@ -27,6 +28,7 @@ export declare class Token implements TokenValue {
27
28
  updatedAt: Date | null;
28
29
  constructor(model: TokenRemoteModel, versionId: string, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>, empty?: boolean);
29
30
  setParentGroupId(parentGroupId: string | null): void;
31
+ setTokenPath(tokenPath: Array<string>): void;
30
32
  setSortOrder(order: number): void;
31
33
  toBaseWriteObject(): TokenRemoteModel;
32
34
  toWriteObject(): TokenRemoteModel;
@@ -10,7 +10,10 @@ export declare class UserMembership {
10
10
  user: User;
11
11
  /** Role of the user in the workspace */
12
12
  role: UserRole;
13
- /** Role of the user in the workspace */
13
+ /**
14
+ * Effective role of the user in the workspace, which can be different from the regular role
15
+ * when the workspace is suspended etc.
16
+ */
14
17
  effectiveRole: UserRole;
15
18
  constructor(model: UserMembershipRemoteModel);
16
19
  /** Constructs representation that can be used to write full object to remote */
@@ -5,6 +5,11 @@ export type TokenUtilPreviewTokenValueSegment = {
5
5
  referenceResolutionFailed?: boolean;
6
6
  referenceOriginRemote?: boolean;
7
7
  referenceOriginName?: string;
8
+ referenceFullPath?: string;
9
+ isDifferentTypeValue?: boolean;
10
+ isValueOutOfRange?: boolean;
11
+ tokenOutOfRangeErrorMessage?: string;
12
+ tokenDifferentTypeErrorMessage?: string;
8
13
  };
9
14
  export type TokenUtilPreviewTokenType = "blur" | "border" | "borderWidth" | "color" | "copy" | "fontFamily" | "fontSize" | "fontWeight" | "dimension" | "duration" | "gradient" | "lineHeight" | "letterSpacing" | "opacity" | "paragraphSpacing" | "radius" | "shadow" | "size" | "space" | "string" | "textCase" | "textDecoration" | "typography" | "visibility" | "zIndex";
10
15
  export type TokenUtilPreviewMetadata = {
@@ -1,4 +1,4 @@
1
- import { AnyToken, BlurType, BorderPosition, BorderStyle, DTProcessedTokenNode, GradientType, ShadowType, TextCase, TokenGroup, TokenTheme } from "../exports";
1
+ import { AnyToken, AnyDimensionToken, BlurType, BorderPosition, BorderStyle, DTProcessedTokenNode, GradientType, ShadowType, TextCase, TokenGroup, TokenTheme } from "../exports";
2
2
  import { ElementProperty } from "../model/elements/SDKElementProperty";
3
3
  import { TokenType } from "../model/enums/SDKTokenType";
4
4
  import { BlurToken } from "../model/tokens/SDKBlurToken";
@@ -76,12 +76,23 @@ type TokenClassMapCompletenessTypeCheck<T extends {
76
76
  [key in TokenType]: new (...args: any[]) => TokenTypeMapToken[key];
77
77
  }> = T;
78
78
  export type TokenClassTypeMapToken = TokenClassMapCompletenessTypeCheck<ActualTypeToTokenClassMap>;
79
+ type DifferentTypeValidationResult = {
80
+ isDifferentTypeValue: boolean;
81
+ errorMessage?: string;
82
+ };
83
+ type ValueOutOfRangeValidationResult = {
84
+ isTokenOutOfRange: boolean;
85
+ errorMessage?: string;
86
+ };
79
87
  export declare class TokenUtils {
80
88
  /** Map tokens for lookup */
81
89
  static tokensToReferenceMap(tokens: Array<Token>): Map<string, Token>;
82
90
  /** Map token groups for lookup */
83
91
  static tokenGroupsToReferenceMap(groups: Array<TokenGroup>): Map<string, TokenGroup>;
84
92
  static lookupReference<T extends Token>(id: string | undefined | null, tokens: Map<string, Token>): T | undefined;
93
+ static isDimensionToken(token?: AnyToken | undefined | null): token is AnyDimensionToken;
94
+ static isDifferentTypeValue<T extends AnyToken>(token: T): DifferentTypeValidationResult;
95
+ static isTokenOutOfRange<T extends AnyToken>(token: T): ValueOutOfRangeValidationResult;
85
96
  /** Creates a new token group for a given token type. Default values will be used for all properties */
86
97
  static createDefaultTokenGroup(type: TokenType, versionId: string, brandId: string, name?: string): TokenGroup;
87
98
  /** Creates a new token theme. Default values will be used for all properties */
@@ -148,7 +159,7 @@ export declare class TokenUtils {
148
159
  /** Creates a new color token with updated .color value */
149
160
  static colorTokenByUpdatingColor(token: ColorToken, newValue: ColorValue | ColorToken): ColorToken;
150
161
  /** Creates a new color token with updated .opacity value */
151
- static colorTokenByUpdatingOpacity(token: ColorToken, newValue: number | OpacityToken): ColorToken;
162
+ static colorTokenByUpdatingOpacity(token: ColorToken, newValue: number | OpacityToken, checkReference?: boolean): ColorToken;
152
163
  /** Creates a new blur token with updated .type value */
153
164
  static blurTokenByUpdatingType(token: BlurToken, newValue: BlurType): BlurToken;
154
165
  /** Creates a new blur token with updated .radius value */