@supernova-studio/supernova-sdk-beta 2.0.27 → 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/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
|
@@ -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 */
|