@supernova-studio/supernova-sdk-beta 2.0.36 → 2.0.38
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 +2 -3
- 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 +4 -4
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +4 -0
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +3 -8
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +26 -11
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +64 -19
- 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/entities/SDKDocsEntityConfiguration.d.ts +1 -0
- package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +24 -0
- 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 +10 -11
|
@@ -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;
|