@supernova-studio/supernova-sdk-beta 1.6.40 → 1.6.41
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/base/SDKDesignSystemVersion.d.ts +1 -1
- package/build/sdk-typescript/src/model/elements/SDKElementPropertyOption.d.ts +1 -0
- package/build/sdk-typescript/src/model/resources/SDKResourceFont.d.ts +10 -0
- package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +4 -4
- package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +4 -4
- package/build/sdk-typescript/src/model/users/SDKUser.d.ts +2 -0
- package/build/sdk-typescript/src/tests/validators.d.ts +1 -0
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +3 -3
- package/build/sdk-typescript/src/tests/Enterprise/PluginFigmaTokens.spec.d.ts +0 -1
|
@@ -34,7 +34,7 @@ export declare class DesignSystemVersion {
|
|
|
34
34
|
/** Change log for the version. Will be null if the version is in draft mode */
|
|
35
35
|
changeLog: string | null;
|
|
36
36
|
/** The initial date of the creation of this version */
|
|
37
|
-
createdAt: Date
|
|
37
|
+
createdAt: Date;
|
|
38
38
|
constructor(model: DesignSystemVersionRemoteModel);
|
|
39
39
|
/** Constructs representation that can be used to write full object to remote */
|
|
40
40
|
toRemote(): DesignSystemVersionRemoteModel;
|
|
@@ -29,6 +29,7 @@ export declare class ElementPropertyOption {
|
|
|
29
29
|
backgroundColor: string | null;
|
|
30
30
|
constructor(model: ElementPropertyOptionRemoteModel);
|
|
31
31
|
static toHex6(rawColor: string): string;
|
|
32
|
+
static toHex8(rawColor: string): string;
|
|
32
33
|
/** Constructs directly manipulable update object for property option */
|
|
33
34
|
toUpdateObject(): ElementPropertyOptionUpdateModel;
|
|
34
35
|
/** Returns background color represented as badge color.
|
|
@@ -3,6 +3,11 @@ export type ResourceFontModel = ResourceModel & {
|
|
|
3
3
|
fontProperties?: Array<{
|
|
4
4
|
family?: string;
|
|
5
5
|
subfamily?: string;
|
|
6
|
+
weight?: number;
|
|
7
|
+
isItalic?: boolean;
|
|
8
|
+
isOutlined?: boolean;
|
|
9
|
+
isStrikeout?: boolean;
|
|
10
|
+
isUnderscore?: boolean;
|
|
6
11
|
}>;
|
|
7
12
|
};
|
|
8
13
|
export declare class ResourceFont extends Resource {
|
|
@@ -10,6 +15,11 @@ export declare class ResourceFont extends Resource {
|
|
|
10
15
|
fontProperties: {
|
|
11
16
|
family: string | null;
|
|
12
17
|
subfamily: string | null;
|
|
18
|
+
weight: number | null;
|
|
19
|
+
isItalic: boolean | null;
|
|
20
|
+
isOutlined: boolean | null;
|
|
21
|
+
isStrikeout: boolean | null;
|
|
22
|
+
isUnderscore: boolean | null;
|
|
13
23
|
} | null;
|
|
14
24
|
constructor(model: ResourceFontModel);
|
|
15
25
|
}
|
|
@@ -34,9 +34,6 @@ 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;
|
|
38
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").BlurTokenRemoteValue;
|
|
39
|
-
} | {
|
|
40
37
|
aliasTo: string | undefined;
|
|
41
38
|
value: import("../tokens/remote/SDKRemoteTokenValue").BorderTokenRemoteValue;
|
|
42
39
|
} | {
|
|
@@ -44,10 +41,13 @@ export declare class TokenTheme {
|
|
|
44
41
|
value: import("../tokens/remote/SDKRemoteTokenValue").ColorTokenRemoteValue;
|
|
45
42
|
} | {
|
|
46
43
|
aliasTo: string | undefined;
|
|
47
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").
|
|
44
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").BlurTokenRemoteValue;
|
|
48
45
|
} | {
|
|
49
46
|
aliasTo: string | undefined;
|
|
50
47
|
value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
|
|
48
|
+
} | {
|
|
49
|
+
aliasTo: string | undefined;
|
|
50
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
|
|
51
51
|
} | {
|
|
52
52
|
aliasTo: string | undefined;
|
|
53
53
|
value: string;
|
|
@@ -25,9 +25,6 @@ export declare class TokenThemeOverride {
|
|
|
25
25
|
constructor(model: TokenThemeOverrideRemoteModel, value: AnyTokenValue);
|
|
26
26
|
toWriteObject(): TokenThemeOverrideRemoteModel;
|
|
27
27
|
valueToWriteObject(value: AnyTokenValue, type: TokenType): ShadowTokenRemoteData | GradientTokenRemoteData | {
|
|
28
|
-
aliasTo: string | undefined;
|
|
29
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").BlurTokenRemoteValue;
|
|
30
|
-
} | {
|
|
31
28
|
aliasTo: string | undefined;
|
|
32
29
|
value: import("../tokens/remote/SDKRemoteTokenValue").BorderTokenRemoteValue;
|
|
33
30
|
} | {
|
|
@@ -35,10 +32,13 @@ export declare class TokenThemeOverride {
|
|
|
35
32
|
value: import("../tokens/remote/SDKRemoteTokenValue").ColorTokenRemoteValue;
|
|
36
33
|
} | {
|
|
37
34
|
aliasTo: string | undefined;
|
|
38
|
-
value: import("../tokens/remote/SDKRemoteTokenValue").
|
|
35
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").BlurTokenRemoteValue;
|
|
39
36
|
} | {
|
|
40
37
|
aliasTo: string | undefined;
|
|
41
38
|
value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
|
|
39
|
+
} | {
|
|
40
|
+
aliasTo: string | undefined;
|
|
41
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
|
|
42
42
|
} | {
|
|
43
43
|
aliasTo: string | undefined;
|
|
44
44
|
value: string;
|
|
@@ -47,5 +47,7 @@ export declare class User {
|
|
|
47
47
|
toTransport(): UserTransportModel;
|
|
48
48
|
/** Reconstructs class from the transport model */
|
|
49
49
|
static fromTransport(model: UserTransportModel): User;
|
|
50
|
+
/** Returns user's name which should be used in read-only cases. */
|
|
51
|
+
get displayName(): string;
|
|
50
52
|
}
|
|
51
53
|
export {};
|
|
@@ -7,6 +7,7 @@ export declare const validateDimensionToken: (t: any, tokens: Token[], name: str
|
|
|
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;
|
|
9
9
|
export declare const validateBorderToken: (t: any, tokens: Token[], name: string, hex: string, position: BorderPosition, style: BorderStyle, measure: number, unit: Unit) => void;
|
|
10
|
+
export declare const validateShadowTokenOpacities: (t: any, tokens: Token[], name: string, measures: Array<number | null>, colorMeasures: Array<number | null>) => void;
|
|
10
11
|
export declare const validateShadowToken: (t: any, tokens: Token[], name: string, value: {
|
|
11
12
|
hex: string;
|
|
12
13
|
x: number;
|