@supernova-studio/supernova-sdk-beta 2.0.36 → 2.1.1
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/SDKSupernova.d.ts +5 -3
- package/build/sdk-typescript/src/core/areas/SDKAreaBulkOperations.d.ts +9 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaCodeComponents.d.ts +13 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +5 -6
- package/build/sdk-typescript/src/core/areas/SDKAreaImport.d.ts +1 -11
- package/build/sdk-typescript/src/core/areas/SDKAreaRawData.d.ts +9 -4
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +4 -0
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +9 -9
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +29 -11
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +70 -20
- package/build/sdk-typescript/src/exports.d.ts +6 -0
- package/build/sdk-typescript/src/model/code-components/SDKCodeComponent.d.ts +15 -0
- package/build/sdk-typescript/src/model/code-components/SDKCodeComponentPropertyControlDefinition.d.ts +17 -0
- package/build/sdk-typescript/src/model/code-components/SDKCodeComponentPropertyDefinition.d.ts +12 -0
- package/build/sdk-typescript/src/model/components/SDKDesignComponentPropertyDefinition.d.ts +1 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty.d.ts +1 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +2 -0
- package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityConfiguration.d.ts +1 -0
- package/build/sdk-typescript/src/model/elements/SDKElementPropertyOption.d.ts +24 -12
- package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +24 -0
- package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterPropertyArray.d.ts +7 -0
- package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterPropertyBase.d.ts +1 -1
- package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterPropertyCode.d.ts +8 -0
- package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterPropertyDefinition.d.ts +3 -1
- package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterPropertyObject.d.ts +1 -1
- package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterPropertyString.d.ts +1 -0
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuildResults.d.ts +0 -6
- package/build/sdk-typescript/src/model/support/SDKFigmaFrame.d.ts +2 -7
- package/build/sdk-typescript/src/model/support/SDKFigmaStructure.d.ts +11 -11
- package/build/sdk-typescript/src/model/support/SDKFigmaStructureDetail.d.ts +6 -29
- package/build/sdk-typescript/src/pulsar-interfaces.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Tooling/PluginFigmaTokens.spec.token-studio.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Tooling/ReadTokens.spec.token-studio.d.ts +1 -0
- package/build/sdk-typescript/src/tests/helpers.d.ts +1 -1
- package/build/sdk-typescript/src/tests/validators.d.ts +1 -1
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +12 -13
|
@@ -42,7 +42,9 @@ export type { DesignSystemVersionCreate, DesignSystemVersionUpdateModel, DesignS
|
|
|
42
42
|
export { Membership } from "./model/membership/SDKMembership";
|
|
43
43
|
export { Exporter, type NewExporterPayload, type ExporterProvider, } from "./model/exporters/SDKExporter";
|
|
44
44
|
export type { ExporterPropertyDefinition } from "./model/exporters/custom_properties/SDKExporterPropertyDefinition";
|
|
45
|
+
export { ExporterPropertyDefinitionArray } from "./model/exporters/custom_properties/SDKExporterPropertyArray";
|
|
45
46
|
export { ExporterPropertyDefinitionBoolean } from "./model/exporters/custom_properties/SDKExporterPropertyBoolean";
|
|
47
|
+
export { ExporterPropertyDefinitionCode } from "./model/exporters/custom_properties/SDKExporterPropertyCode";
|
|
46
48
|
export { ExporterPropertyDefinitionEnum } from "./model/exporters/custom_properties/SDKExporterPropertyEnum";
|
|
47
49
|
export { ExporterPropertyDefinitionNumber } from "./model/exporters/custom_properties/SDKExporterPropertyNumber";
|
|
48
50
|
export { ExporterPropertyDefinitionObject } from "./model/exporters/custom_properties/SDKExporterPropertyObject";
|
|
@@ -66,6 +68,9 @@ export { ElementDataViewColumn, ElementDataViewColumnBasePropertyType, ElementDa
|
|
|
66
68
|
export { DesignComponent } from "./model/components/SDKDesignComponent";
|
|
67
69
|
export { DesignComponentVariant } from "./model/components/SDKDesignComponentVariant";
|
|
68
70
|
export { DesignComponentPropertyBoolean, DesignComponentPropertyDefinition, DesignComponentPropertyInstanceSwap, DesignComponentPropertyText, DesignComponentPropertyVariant, DesignComponentPropertyType, } from "./model/components/SDKDesignComponentPropertyDefinition";
|
|
71
|
+
export { CodeComponent } from './model/code-components/SDKCodeComponent';
|
|
72
|
+
export { CodeComponentPropertyControlType, CodeComponentPropertyControlDefinition } from './model/code-components/SDKCodeComponentPropertyControlDefinition';
|
|
73
|
+
export { CodeComponentPropertyDefinition } from './model/code-components/SDKCodeComponentPropertyDefinition';
|
|
69
74
|
export { DocsBlockBehavior } from "./model/docs/blocks/definition/SDKDocsBlockBehavior";
|
|
70
75
|
export { DocsBlockDefinition } from "./model/docs/blocks/definition/SDKDocsBlockDefinition";
|
|
71
76
|
export { DocsBlockItemDefinition } from "./model/docs/blocks/definition/SDKDocsBlockItemDefinition";
|
|
@@ -276,6 +281,7 @@ export { BorderToken } from "./model/tokens/SDKBorderToken";
|
|
|
276
281
|
export { ColorToken } from "./model/tokens/SDKColorToken";
|
|
277
282
|
export { GradientToken } from "./model/tokens/SDKGradientToken";
|
|
278
283
|
export { DimensionToken, SizeToken, SpaceToken, OpacityToken, FontSizeToken, LineHeightToken, LetterSpacingToken, ParagraphSpacingToken, BorderWidthToken, RadiusToken, DurationToken, ZIndexToken, } from "./model/tokens/SDKDimensionToken";
|
|
284
|
+
export type { TokenUtilPreviewResolvedStyle } from "./tools/token-preview/TokenUtilPreviewTypes";
|
|
279
285
|
export type { AnyDimensionToken } from "./model/tokens/SDKDimensionToken";
|
|
280
286
|
export { ShadowToken } from "./model/tokens/SDKShadowToken";
|
|
281
287
|
export { TypographyToken } from "./model/tokens/SDKTypographyToken";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DTOCodeComponent } from "@supernova-studio/client";
|
|
2
|
+
import { CodeComponentPropertyDefinition } from "./SDKCodeComponentPropertyDefinition";
|
|
3
|
+
export type CodeComponentRemoteModel = DTOCodeComponent;
|
|
4
|
+
export declare class CodeComponent {
|
|
5
|
+
idInVersion: string;
|
|
6
|
+
id: string;
|
|
7
|
+
designSystemVersionId: string;
|
|
8
|
+
exportName: string;
|
|
9
|
+
createdAt: Date | null;
|
|
10
|
+
updatedAt: Date | null;
|
|
11
|
+
properties: {
|
|
12
|
+
[key: string]: CodeComponentPropertyDefinition;
|
|
13
|
+
};
|
|
14
|
+
constructor(model: CodeComponentRemoteModel);
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DTOCodeComponentProperty } from "@supernova-studio/client";
|
|
2
|
+
export declare enum CodeComponentPropertyControlType {
|
|
3
|
+
Boolean = "Boolean",
|
|
4
|
+
Function = "Function",
|
|
5
|
+
Number = "Number",
|
|
6
|
+
Object = "Object",
|
|
7
|
+
Slot = "Slot",
|
|
8
|
+
String = "String",
|
|
9
|
+
Unknown = "Unknown"
|
|
10
|
+
}
|
|
11
|
+
type CodeComponentPropertyControlDefinitionRemoteType = DTOCodeComponentProperty['control'];
|
|
12
|
+
export declare class CodeComponentPropertyControlDefinition {
|
|
13
|
+
isArray: boolean;
|
|
14
|
+
type: CodeComponentPropertyControlType;
|
|
15
|
+
constructor(model: CodeComponentPropertyControlDefinitionRemoteType);
|
|
16
|
+
}
|
|
17
|
+
export {};
|
package/build/sdk-typescript/src/model/code-components/SDKCodeComponentPropertyDefinition.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DTOCodeComponentProperty } from "@supernova-studio/client";
|
|
2
|
+
import { CodeComponentPropertyControlDefinition } from "./SDKCodeComponentPropertyControlDefinition";
|
|
3
|
+
type CodeComponentPropertyDefinitionRemoteType = DTOCodeComponentProperty;
|
|
4
|
+
export declare class CodeComponentPropertyDefinition {
|
|
5
|
+
control: CodeComponentPropertyControlDefinition;
|
|
6
|
+
defaultValue: string | null;
|
|
7
|
+
name: string;
|
|
8
|
+
required: boolean;
|
|
9
|
+
type: string;
|
|
10
|
+
constructor(model: CodeComponentPropertyDefinitionRemoteType);
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -11,6 +11,7 @@ export declare abstract class DesignComponentPropertyDefinition {
|
|
|
11
11
|
abstract type: DesignComponentPropertyType;
|
|
12
12
|
abstract defaultValue: string | boolean;
|
|
13
13
|
name: string;
|
|
14
|
+
options: string[] | null;
|
|
14
15
|
constructor(model: DesignComponentPropertyDefinitionRemoteType);
|
|
15
16
|
}
|
|
16
17
|
export declare class DesignComponentPropertyBoolean extends DesignComponentPropertyDefinition {
|
|
@@ -19,6 +19,7 @@ export type DocsBlockFigmaComponentPropertyData = DocsBlockPropertyData<Array<{
|
|
|
19
19
|
entityType: "FigmaComponent";
|
|
20
20
|
entityMeta?: {
|
|
21
21
|
selectedComponentProperties?: Array<string>;
|
|
22
|
+
selectedComponentVariants?: Record<string, Array<string>>;
|
|
22
23
|
};
|
|
23
24
|
}>> & {
|
|
24
25
|
/** Preview container size */
|
package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export type DocsBlockStorybookPropertyOptions = {
|
|
|
9
9
|
allowResize?: boolean;
|
|
10
10
|
/** Defined how to validate the embed URL */
|
|
11
11
|
urlValidationRegex?: string;
|
|
12
|
+
/** Defines how the storybook should be rendered in the editor */
|
|
13
|
+
renderLayoutAs?: "Playground" | "Iframe";
|
|
12
14
|
};
|
|
13
15
|
/** Storybook property - Data */
|
|
14
16
|
export type DocsBlockStorybookPropertyData = DocsBlockPropertyData<string | undefined> & {
|
|
@@ -13,5 +13,6 @@ export declare class DocsEntityConfiguration {
|
|
|
13
13
|
constructor(model: DTODocumentationItemConfigurationV2, title: string);
|
|
14
14
|
/** Constructs representation that can be used to write full object to remote */
|
|
15
15
|
toRemote(): DTODocumentationItemConfigurationV2;
|
|
16
|
+
clone(): DocsEntityConfiguration;
|
|
16
17
|
static default(): DocsEntityConfiguration;
|
|
17
18
|
}
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
declare const badgeColorValues: {
|
|
2
|
-
readonly blue: "#
|
|
3
|
-
readonly cyan: "#
|
|
4
|
-
readonly fuchsia: "#
|
|
5
|
-
readonly green: "#
|
|
6
|
-
readonly grey: "#
|
|
7
|
-
readonly lightGrey: "#
|
|
8
|
-
readonly orange: "#
|
|
9
|
-
readonly pink: "#
|
|
10
|
-
readonly purple: "#
|
|
11
|
-
readonly red: "#
|
|
12
|
-
readonly teal: "#
|
|
13
|
-
readonly yellow: "#
|
|
2
|
+
readonly blue: "#EFF7FF";
|
|
3
|
+
readonly cyan: "#E8FCFF";
|
|
4
|
+
readonly fuchsia: "#FFECFF";
|
|
5
|
+
readonly green: "#EAFDEF";
|
|
6
|
+
readonly grey: "#F5F9FF";
|
|
7
|
+
readonly lightGrey: "#F9F9F9";
|
|
8
|
+
readonly orange: "#FFF4E8";
|
|
9
|
+
readonly pink: "#FFEDFA";
|
|
10
|
+
readonly purple: "#FAF3FF";
|
|
11
|
+
readonly red: "#FFEDED";
|
|
12
|
+
readonly teal: "#E8FDFA";
|
|
13
|
+
readonly yellow: "#FFFEE8";
|
|
14
|
+
readonly blueSolid: "#2B7FFF";
|
|
15
|
+
readonly cyanSolid: "#00D3F2";
|
|
16
|
+
readonly fuchsiaSolid: "#E12AFB";
|
|
17
|
+
readonly greenSolid: "#31DE69";
|
|
18
|
+
readonly greySolid: "#62748E";
|
|
19
|
+
readonly lightGreySolid: "#D4D4D4";
|
|
20
|
+
readonly orangeSolid: "#FF8904";
|
|
21
|
+
readonly pinkSolid: "#F6339A";
|
|
22
|
+
readonly purpleSolid: "#8E51FF";
|
|
23
|
+
readonly redSolid: "#FB2E27";
|
|
24
|
+
readonly tealSolid: "#00D5BE";
|
|
25
|
+
readonly yellowSolid: "#FCC801";
|
|
14
26
|
readonly custom: null;
|
|
15
27
|
};
|
|
16
28
|
export type ElementPropertyOptionBadgeColor = keyof typeof badgeColorValues;
|
|
@@ -21,6 +21,12 @@ export declare class Pipeline {
|
|
|
21
21
|
url: string;
|
|
22
22
|
branch: string;
|
|
23
23
|
relativePath?: string;
|
|
24
|
+
purgeDirectory?: boolean;
|
|
25
|
+
commitAuthorName?: string;
|
|
26
|
+
commitAuthorEmail?: string;
|
|
27
|
+
commitMessage?: string;
|
|
28
|
+
pullRequestTitle?: string;
|
|
29
|
+
pullRequestDescription?: string;
|
|
24
30
|
};
|
|
25
31
|
azure?: {
|
|
26
32
|
organizationId: string;
|
|
@@ -29,12 +35,24 @@ export declare class Pipeline {
|
|
|
29
35
|
branch: string;
|
|
30
36
|
relativePath?: string;
|
|
31
37
|
url?: string;
|
|
38
|
+
purgeDirectory?: boolean;
|
|
39
|
+
commitAuthorName?: string;
|
|
40
|
+
commitAuthorEmail?: string;
|
|
41
|
+
commitMessage?: string;
|
|
42
|
+
pullRequestTitle?: string;
|
|
43
|
+
pullRequestDescription?: string;
|
|
32
44
|
};
|
|
33
45
|
gitlab?: {
|
|
34
46
|
projectId: string;
|
|
35
47
|
branch: string;
|
|
36
48
|
relativePath?: string;
|
|
37
49
|
url?: string;
|
|
50
|
+
purgeDirectory?: boolean;
|
|
51
|
+
commitAuthorName?: string;
|
|
52
|
+
commitAuthorEmail?: string;
|
|
53
|
+
commitMessage?: string;
|
|
54
|
+
pullRequestTitle?: string;
|
|
55
|
+
pullRequestDescription?: string;
|
|
38
56
|
};
|
|
39
57
|
bitbucket?: {
|
|
40
58
|
workspaceSlug: string;
|
|
@@ -43,6 +61,12 @@ export declare class Pipeline {
|
|
|
43
61
|
branch: string;
|
|
44
62
|
relativePath?: string;
|
|
45
63
|
url?: string;
|
|
64
|
+
purgeDirectory?: boolean;
|
|
65
|
+
commitAuthorName?: string;
|
|
66
|
+
commitAuthorEmail?: string;
|
|
67
|
+
commitMessage?: string;
|
|
68
|
+
pullRequestTitle?: string;
|
|
69
|
+
pullRequestDescription?: string;
|
|
46
70
|
};
|
|
47
71
|
};
|
|
48
72
|
brandPersistentId?: string;
|
package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterPropertyArray.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DTOExporterPropertyDefinitionArray } from "@supernova-studio/client";
|
|
2
|
+
import { ExporterPropertyBase, ExporterPropertyType } from "./SDKExporterPropertyBase";
|
|
3
|
+
export declare class ExporterPropertyDefinitionArray extends ExporterPropertyBase {
|
|
4
|
+
type: ExporterPropertyType;
|
|
5
|
+
defaultValues: string[];
|
|
6
|
+
constructor(model: DTOExporterPropertyDefinitionArray);
|
|
7
|
+
}
|
package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterPropertyBase.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DTOExporterPropertyDefinition } from "@supernova-studio/client";
|
|
2
|
-
export type ExporterPropertyType = "
|
|
2
|
+
export type ExporterPropertyType = "Array" | "Boolean" | "Code" | "Enum" | "Number" | "Object" | "String";
|
|
3
3
|
export declare class ExporterPropertyBase {
|
|
4
4
|
key: string;
|
|
5
5
|
title: string;
|
package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterPropertyCode.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DTOExporterPropertyDefinitionCode } from "@supernova-studio/client";
|
|
2
|
+
import { ExporterPropertyBase, ExporterPropertyType } from "./SDKExporterPropertyBase";
|
|
3
|
+
export declare class ExporterPropertyDefinitionCode extends ExporterPropertyBase {
|
|
4
|
+
type: ExporterPropertyType;
|
|
5
|
+
language: string;
|
|
6
|
+
defaultValue: string;
|
|
7
|
+
constructor(model: DTOExporterPropertyDefinitionCode);
|
|
8
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ExporterPropertyDefinitionArray } from "./SDKExporterPropertyArray";
|
|
1
2
|
import { ExporterPropertyDefinitionBoolean } from "./SDKExporterPropertyBoolean";
|
|
3
|
+
import { ExporterPropertyDefinitionCode } from "./SDKExporterPropertyCode";
|
|
2
4
|
import { ExporterPropertyDefinitionEnum } from "./SDKExporterPropertyEnum";
|
|
3
5
|
import { ExporterPropertyDefinitionNumber } from "./SDKExporterPropertyNumber";
|
|
4
6
|
import { ExporterPropertyDefinitionObject } from "./SDKExporterPropertyObject";
|
|
5
7
|
import { ExporterPropertyDefinitionString } from "./SDKExporterPropertyString";
|
|
6
|
-
export type ExporterPropertyDefinition = ExporterPropertyDefinitionBoolean | ExporterPropertyDefinitionEnum | ExporterPropertyDefinitionNumber | ExporterPropertyDefinitionObject | ExporterPropertyDefinitionString;
|
|
8
|
+
export type ExporterPropertyDefinition = ExporterPropertyDefinitionArray | ExporterPropertyDefinitionBoolean | ExporterPropertyDefinitionCode | ExporterPropertyDefinitionEnum | ExporterPropertyDefinitionNumber | ExporterPropertyDefinitionObject | ExporterPropertyDefinitionString;
|
package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterPropertyObject.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ type AllowedKeys = {
|
|
|
5
5
|
};
|
|
6
6
|
export declare class ExporterPropertyDefinitionObject extends ExporterPropertyBase {
|
|
7
7
|
type: ExporterPropertyType;
|
|
8
|
-
allowedKeys: AllowedKeys;
|
|
8
|
+
allowedKeys: AllowedKeys | null;
|
|
9
9
|
defaultValues: Record<string, string>;
|
|
10
10
|
constructor(model: DTOExporterPropertyDefinitionObject);
|
|
11
11
|
}
|
package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterPropertyString.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { DTOExporterPropertyDefinitionString } from "@supernova-studio/client";
|
|
|
2
2
|
import { ExporterPropertyBase, ExporterPropertyType } from "./SDKExporterPropertyBase";
|
|
3
3
|
export declare class ExporterPropertyDefinitionString extends ExporterPropertyBase {
|
|
4
4
|
type: ExporterPropertyType;
|
|
5
|
+
isMultiline: boolean;
|
|
5
6
|
defaultValue: string;
|
|
6
7
|
constructor(model: DTOExporterPropertyDefinitionString);
|
|
7
8
|
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
export type S3ExportBuildResultModel = {
|
|
2
|
-
bucket: string;
|
|
3
|
-
files: Array<string>;
|
|
4
2
|
url: string;
|
|
5
3
|
};
|
|
6
4
|
/** The type definition for the data model of an S3 export build result. */
|
|
7
5
|
export declare class S3ExportBuildResult {
|
|
8
|
-
/** The S3 bucket associated with the export build result */
|
|
9
|
-
bucket: string;
|
|
10
|
-
/** An array of URLs associated with the export build result */
|
|
11
|
-
files: Array<string>;
|
|
12
6
|
/** A URL associated with the export build result */
|
|
13
7
|
url: string;
|
|
14
8
|
constructor(data: S3ExportBuildResultModel);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DTOFigmaNodeStructureDetail } from "@supernova-studio/client";
|
|
1
2
|
export declare enum FrameType {
|
|
2
3
|
DOCUMENT = "DOCUMENT",
|
|
3
4
|
CANVAS = "CANVAS",
|
|
@@ -7,16 +8,10 @@ export declare enum FrameType {
|
|
|
7
8
|
SECTION = "SECTION",
|
|
8
9
|
FRAME = "FRAME"
|
|
9
10
|
}
|
|
10
|
-
export type FigmaFrameModel = {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
type: FrameType;
|
|
14
|
-
children: Array<FigmaFrameModel>;
|
|
15
|
-
};
|
|
16
11
|
export declare class FigmaFrame {
|
|
17
12
|
id: string;
|
|
18
13
|
name: string;
|
|
19
14
|
type: FrameType;
|
|
20
15
|
children: Array<FigmaFrame>;
|
|
21
|
-
constructor(model:
|
|
16
|
+
constructor(model: DTOFigmaNodeStructureDetail["rootNode"]);
|
|
22
17
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DTOFigmaNodeStructure } from "@supernova-studio/client";
|
|
1
2
|
export type FigmaStructureModel = {
|
|
2
3
|
assetsInFile: {
|
|
3
4
|
componentSets: number;
|
|
@@ -11,17 +12,16 @@ export type FigmaStructureModel = {
|
|
|
11
12
|
};
|
|
12
13
|
persistentId: string;
|
|
13
14
|
};
|
|
15
|
+
export declare enum FigmaStructureImportState {
|
|
16
|
+
failed = "Failed",
|
|
17
|
+
inProgress = "InProgress",
|
|
18
|
+
success = "Success"
|
|
19
|
+
}
|
|
14
20
|
export declare class FigmaStructure {
|
|
15
|
-
assetsInFile: {
|
|
16
|
-
componentSets: number;
|
|
17
|
-
components: number;
|
|
18
|
-
frames: number;
|
|
19
|
-
};
|
|
20
|
-
designSystemVersionId: string;
|
|
21
21
|
id: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
constructor(model:
|
|
22
|
+
sourceId: string;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
state: FigmaStructureImportState;
|
|
26
|
+
constructor(model: DTOFigmaNodeStructure);
|
|
27
27
|
}
|
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
designSystemVersionId: string;
|
|
9
|
-
id: string;
|
|
10
|
-
origin: {
|
|
11
|
-
sourceId: string;
|
|
12
|
-
};
|
|
13
|
-
persistentId: string;
|
|
14
|
-
rootNode: FigmaFrameModel;
|
|
15
|
-
};
|
|
16
|
-
export declare class FigmaStructureDetail {
|
|
17
|
-
assetsInFile: {
|
|
18
|
-
componentSets: number;
|
|
19
|
-
components: number;
|
|
20
|
-
frames: number;
|
|
21
|
-
};
|
|
22
|
-
designSystemVersionId: string;
|
|
23
|
-
id: string;
|
|
24
|
-
origin: {
|
|
25
|
-
sourceId: string;
|
|
26
|
-
};
|
|
27
|
-
persistentId: string;
|
|
28
|
-
rootNode: FigmaFrameModel;
|
|
29
|
-
constructor(model: FigmaStructureDetailModel);
|
|
1
|
+
import { DTOFigmaNodeStructureDetail } from "@supernova-studio/client";
|
|
2
|
+
import { FigmaFrame } from "./SDKFigmaFrame";
|
|
3
|
+
import { FigmaStructure } from "./SDKFigmaStructure";
|
|
4
|
+
export declare class FigmaStructureDetail extends FigmaStructure {
|
|
5
|
+
rootNode: FigmaFrame;
|
|
6
|
+
constructor(model: DTOFigmaNodeStructureDetail);
|
|
30
7
|
}
|
|
@@ -38,6 +38,7 @@ export type PulsarContext = {
|
|
|
38
38
|
*/
|
|
39
39
|
themeId: string | null;
|
|
40
40
|
themeIds: string[] | null;
|
|
41
|
+
isPreview: boolean;
|
|
41
42
|
};
|
|
42
43
|
export interface PulsarBridgingInterface {
|
|
43
44
|
export(fn: (sdk: Supernova, context: PulsarContext) => Promise<Array<AnyOutputFile>>): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TestContext, TestFunction } from "vitest";
|
|
2
1
|
import { Supernova } from "../core/SDKSupernova";
|
|
3
2
|
import { RemoteVersionIdentifier, RemoteWorkspaceVersionIdentifier } from "../core/areas/SDKRemoteIdentifiers";
|
|
3
|
+
import { TestContext, TestFunction } from "vitest";
|
|
4
4
|
export declare const testInstance: Supernova;
|
|
5
5
|
export declare const testVersionIdentifier: RemoteVersionIdentifier;
|
|
6
6
|
export declare const testWorkspaceVersionIdentifier: RemoteWorkspaceVersionIdentifier;
|
|
@@ -79,7 +79,7 @@ export declare const validateTypographyToken: (expect: ExpectStatic, tokens: Tok
|
|
|
79
79
|
export declare const validateTypographyTokenRef: (expect: ExpectStatic, tokens: Token[], description: string, refName: string, fontFamily: string, fontWeight: string, lineHeightMeasure: number, fontSizeMeasure: number, letterSpacingMeasure: number, paragraphSpacingMeasure: number, paragraphIndentMeasure: number, textDecoration: TextDecoration, textCase: TextCase) => void;
|
|
80
80
|
export declare const validateTypographyTokenInnerRef: (expect: ExpectStatic, tokens: Token[], name: string, fontFamily: string, fontWeight: string, lineHeightMeasure: number, fontSizeMeasure: number, letterSpacingMeasure: number, paragraphSpacingMeasure: number, paragraphIndentMeasure: number, textDecoration: TextDecoration, textCase: TextCase) => void;
|
|
81
81
|
export declare const validateNoToken: (expect: ExpectStatic, tokens: Token[], name: string) => void;
|
|
82
|
-
export declare const validateTokenRef: (expect: ExpectStatic, tokens: Token[], description: string, hex: string, name
|
|
82
|
+
export declare const validateTokenRef: (expect: ExpectStatic, tokens: Token[], description: string, hex: string, name?: string, refDescription?: string) => void;
|
|
83
83
|
export declare const validateTokensJustColorRef: (expect: ExpectStatic, token: ColorToken, colorRef: ColorToken, name: string, hex: string, opacity?: number, colorRefId?: string, colorRefName?: string, refHex?: string, refOpacity?: number) => void;
|
|
84
84
|
export declare const validateTokenJustColorRef: (expect: ExpectStatic, tokens: Token[], name: string, hex: string, opacity?: number, colorRefId?: string, colorRefName?: string, refHex?: string, refOpacity?: number) => void;
|
|
85
85
|
export declare const validateColorTokenJustOpacityRef: (expect: ExpectStatic, tokens: Token[], name: string, opacity: number, unit: Unit, opacityRefId: string, opacityRefName: string) => void;
|