@supernova-studio/supernova-sdk-beta 2.0.26 → 2.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/sdk-typescript/src/core/areas/SDKAreaBulkOperations.d.ts +1 -1
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +1 -1
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +1 -1
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty.d.ts +7 -0
- package/build/sdk-typescript/src/model/enums/SDKDesignSystemRole.d.ts +1 -1
- package/build/sdk-typescript/src/utils/TokenUtils.d.ts +3 -3
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +3 -3
|
@@ -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.
|
|
@@ -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>;
|
|
@@ -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
|
}
|
|
@@ -10,6 +10,8 @@ export type DocsBlockFigmaComponentPropertyOptions = {
|
|
|
10
10
|
* Playground: a playground where the user can switch between different variants of the component
|
|
11
11
|
* */
|
|
12
12
|
renderLayoutAs?: "Grid" | "PropsTable" | "Canvas" | "Playground";
|
|
13
|
+
/** If enabled, all component properties will be selected by default. Component properties need to be explicitly deselected. */
|
|
14
|
+
invertPropertySelection?: boolean;
|
|
13
15
|
};
|
|
14
16
|
/** Figma Component property - Data */
|
|
15
17
|
export type DocsBlockFigmaComponentPropertyData = DocsBlockPropertyData<Array<{
|
|
@@ -27,6 +29,11 @@ export type DocsBlockFigmaComponentPropertyData = DocsBlockPropertyData<Array<{
|
|
|
27
29
|
showComponentDescription?: boolean;
|
|
28
30
|
/** If enabled, the list of properties list will be visible in the block */
|
|
29
31
|
showPropertyList?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Defines the order for preview rendering using a list of entity IDs.
|
|
34
|
+
* If not specified, the default order is applied.
|
|
35
|
+
*/
|
|
36
|
+
previewOrderIds?: Array<string>;
|
|
30
37
|
};
|
|
31
38
|
/** Figma Component property - Definition model */
|
|
32
39
|
export type DocsBlockFigmaComponentPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockFigmaComponentPropertyOptions;
|
|
@@ -2,4 +2,4 @@ import { DTODesignSystemRole } from "@supernova-studio/client";
|
|
|
2
2
|
import { UserRole } from "./SDKUserRole";
|
|
3
3
|
export type DesignSystemRole = Exclude<UserRole, UserRole.owner | UserRole.billing>;
|
|
4
4
|
export declare const convertRemoteToDesignSystemRole: (remoteRole: DTODesignSystemRole) => DesignSystemRole;
|
|
5
|
-
export declare const resolveDesignSystemRoleFromWorkspaceRole: (wsRole: UserRole) =>
|
|
5
|
+
export declare const resolveDesignSystemRoleFromWorkspaceRole: (wsRole: UserRole) => DesignSystemRole;
|
|
@@ -7,7 +7,7 @@ import { ColorToken } from "../model/tokens/SDKColorToken";
|
|
|
7
7
|
import { BorderWidthToken, DimensionToken, DurationToken, FontSizeToken, LetterSpacingToken, LineHeightToken, OpacityToken, ParagraphSpacingToken, RadiusToken, SizeToken, SpaceToken, ZIndexToken } from "../model/tokens/SDKDimensionToken";
|
|
8
8
|
import { GradientToken } from "../model/tokens/SDKGradientToken";
|
|
9
9
|
import { ShadowToken } from "../model/tokens/SDKShadowToken";
|
|
10
|
-
import { FontFamilyToken, FontWeightToken, ProductCopyToken, StringToken } from "../model/tokens/SDKStringToken";
|
|
10
|
+
import { FontFamilyToken, FontWeightToken, ProductCopyToken, StringCategoryToken, StringToken } from "../model/tokens/SDKStringToken";
|
|
11
11
|
import { TextCaseToken } from "../model/tokens/SDKTextCaseToken";
|
|
12
12
|
import { TextDecorationToken } from "../model/tokens/SDKTextDecorationToken";
|
|
13
13
|
import { Token } from "../model/tokens/SDKToken";
|
|
@@ -165,9 +165,9 @@ export declare class TokenUtils {
|
|
|
165
165
|
/** Creates a new blur token with updated .radius value */
|
|
166
166
|
static blurTokenByUpdatingRadius(token: BlurToken, newValue: RawValue<DimensionTokenValue> | RadiusToken): BlurToken;
|
|
167
167
|
/** Creates a new typography token with updated .fontFamily value */
|
|
168
|
-
static typographyTokenByUpdatingFontFamily(token: TypographyToken, newValue: RawValue<FontFamilyTokenValue> |
|
|
168
|
+
static typographyTokenByUpdatingFontFamily(token: TypographyToken, newValue: RawValue<FontFamilyTokenValue> | StringCategoryToken): TypographyToken;
|
|
169
169
|
/** Creates a new typography token with updated .fontWeight value */
|
|
170
|
-
static typographyTokenByUpdatingFontWeight(token: TypographyToken, newValue: RawValue<FontWeightTokenValue> |
|
|
170
|
+
static typographyTokenByUpdatingFontWeight(token: TypographyToken, newValue: RawValue<FontWeightTokenValue> | StringCategoryToken): TypographyToken;
|
|
171
171
|
/** Creates a new typography token with updated .fontSize value */
|
|
172
172
|
static typographyTokenByUpdatingFontSize(token: TypographyToken, newValue: RawValue<FontSizeTokenValue> | FontSizeToken): TypographyToken;
|
|
173
173
|
/** Creates a new typography token with updated .letterSpacing value */
|