@supernova-studio/supernova-sdk-beta 2.4.6 → 2.4.11
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/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/build/types/core/SDKSupernova.d.ts +9 -0
- package/build/types/core/areas/SDKAreaActivityEvents.d.ts +7 -0
- package/build/types/core/areas/SDKAreaAgentChats.d.ts +12 -0
- package/build/types/core/areas/SDKAreaBulkOperations.d.ts +76 -74
- package/build/types/core/areas/SDKAreaDataSources.d.ts +1 -1
- package/build/types/core/areas/SDKAreaDesignSystems.d.ts +13 -13
- package/build/types/core/areas/SDKAreaDocumentation.d.ts +304 -289
- package/build/types/core/areas/SDKAreaImport.d.ts +35 -0
- package/build/types/core/areas/SDKAreaMCP.d.ts +26 -1
- package/build/types/core/areas/SDKAreaProjects.d.ts +1084 -1100
- package/build/types/core/areas/SDKAreaRawData.d.ts +1040 -1039
- package/build/types/core/areas/SDKAreaResources.d.ts +90 -90
- package/build/types/core/areas/SDKAreaSanboxes.d.ts +9 -9
- package/build/types/core/areas/SDKAreaThreads.d.ts +67 -67
- package/build/types/core/areas/SDKAreaTokens.d.ts +17 -12
- package/build/types/core/areas/SDKAreaWorkspaces.d.ts +1 -1
- package/build/types/core/data/SDKDataCore.d.ts +1771 -1746
- package/build/types/core/data/SDKDataCoreCached.d.ts +2 -2
- package/build/types/core/data/requests/SDKDataCoreReadRequests.d.ts +647 -593
- package/build/types/core/data/requests/SDKDataCoreWriteRequests.d.ts +2515 -2489
- package/build/types/core/resolvers/SDKDocsEntityItemResolver.d.ts +121 -121
- package/build/types/core/resolvers/SDKSnapshotTokenBuilder.d.ts +28 -0
- package/build/types/core/resolvers/SDKTokenResolver.d.ts +11 -9
- package/build/types/exports.d.ts +19 -11
- package/build/types/model/activity-events/SDKActivityEvent.d.ts +49 -0
- package/build/types/model/agent-chats/SDKAgentChat.d.ts +31 -0
- package/build/types/model/base/SDKDesignSystem.d.ts +3 -1
- package/build/types/model/datasets/SDKDataset.d.ts +15 -5
- package/build/types/model/docs/blocks/definition/SDKDocsBlockBehavior.d.ts +4 -1
- package/build/types/model/docs/blocks/definition/actual/context-mcp/SDKDocsBlockActualContextMcp.d.ts +2 -0
- package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +7 -24
- package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockBooleanProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +3 -6
- package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +3 -8
- package/build/types/model/docs/blocks/properties/SDKDocsBlockColorProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +7 -10
- package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockContextProperty.d.ts +16 -0
- package/build/types/model/docs/blocks/properties/SDKDocsBlockDividerProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +3 -6
- package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty.d.ts +7 -26
- package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty.d.ts +7 -22
- package/build/types/model/docs/blocks/properties/SDKDocsBlockFileProperty.d.ts +4 -9
- package/build/types/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +3 -10
- package/build/types/model/docs/blocks/properties/SDKDocsBlockMarkdownProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiRichTextProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiSelectProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockNumberProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextEditorProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +3 -7
- package/build/types/model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +4 -22
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTableProperty.d.ts +12 -28
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +7 -31
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockUrlProperty.d.ts +3 -2
- package/build/types/model/docs/sections/SDKDocsSection.d.ts +0 -31
- package/build/types/model/documentation/SDKPageHistoryVersion.d.ts +20 -0
- package/build/types/model/documentation/blocks/SDKDocumentationLegacyPageBlockContextMcp.d.ts +11 -0
- package/build/types/model/elements/SDKElementPropertyOption.d.ts +1 -2
- package/build/types/model/enums/SDKCodeLanguage.d.ts +1 -1
- package/build/types/model/enums/SDKDesignSystemRole.d.ts +1 -2
- package/build/types/model/enums/SDKDocsBlockBehaviorSelectionType.d.ts +4 -2
- package/build/types/model/enums/SDKDocsBlockContainerSize.d.ts +6 -4
- package/build/types/model/enums/SDKDocsBlockItemPropertyType.d.ts +3 -1
- package/build/types/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +1 -0
- package/build/types/model/enums/SDKTokenType.d.ts +2 -0
- package/build/types/model/enums/SDKWorkspaceSeatType.d.ts +14 -3
- package/build/types/model/exporters/SDKExporter.d.ts +2 -2
- package/build/types/model/exporters/SDKPipeline.d.ts +1 -1
- package/build/types/model/membership/SDKMembership.d.ts +1 -1
- package/build/types/model/support/SDKSource.d.ts +4 -3
- package/build/types/model/themes/SDKTokenThemeOverride.d.ts +1 -0
- package/build/types/model/tokens/remote/SDKRemoteTokenModel.d.ts +34 -1
- package/build/types/model/tokens/remote/SDKRemoteTokenValue.d.ts +1 -1
- package/build/types/model/workspaces/SDKWorkspaceProductPrice.d.ts +6 -3
- package/build/types/model/workspaces/SDKWorkspaceSubscription.d.ts +2 -6
- package/build/types/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +6 -3
- package/build/types/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +29 -3
- package/build/types/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +31 -0
- package/build/types/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/index.d.ts +4 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/lenient-resolve.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/placeholder.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/preserve.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/strict.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/types.d.ts +33 -0
- package/build/types/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +9 -0
- package/build/types/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +1 -1
- package/build/types/utils/TokenUtils.d.ts +1 -1
- package/package.json +17 -21
- package/build/types/model/enums/SDKDocsBlockTokenNameFormat.d.ts +0 -10
|
@@ -1,22 +1,48 @@
|
|
|
1
1
|
import { Brand } from "../../../model/base/SDKBrand";
|
|
2
2
|
import { DTOriginalTokenType } from "../../../model/enums/SDKTokenType";
|
|
3
3
|
import { AnyToken } from "../../../model/tokens/SDKTokenValue";
|
|
4
|
-
import { DTParsedNode } from "./SDKDTJSONLoader";
|
|
5
|
-
import { DTPluginToSupernovaMapPack } from "./SDKDTMapLoader";
|
|
4
|
+
import { DTParsedNode, DTParsedThemeSetPriority, DTParsedTokenSet } from "./SDKDTJSONLoader";
|
|
5
|
+
import { DTPluginSourceMode, DTPluginToSupernovaMapPack, DTPluginUnresolvableFallback, DTPluginUnresolvableRefMode } from "./SDKDTMapLoader";
|
|
6
6
|
import { DTTokenReferenceResolver } from "./SDKDTTokenReferenceResolver";
|
|
7
7
|
export type DTProcessedTokenNode<T extends AnyToken = AnyToken> = {
|
|
8
8
|
token: T;
|
|
9
9
|
originalType: DTOriginalTokenType;
|
|
10
10
|
path: Array<string>;
|
|
11
11
|
key: string;
|
|
12
|
+
/** Originating set's status in `$themes.json`; absent for explicit-`tokenSets` mappings */
|
|
13
|
+
sourcePriority?: DTParsedThemeSetPriority;
|
|
14
|
+
};
|
|
15
|
+
export type DTJSONConverterOptions = {
|
|
16
|
+
/** How to handle references that can't resolve; defaults to `strict` (throw). */
|
|
17
|
+
unresolvableRefMode?: DTPluginUnresolvableRefMode;
|
|
18
|
+
/** Per-type fallback values used by `placeholder` and `lenientResolve` modes. */
|
|
19
|
+
unresolvableFallback?: Required<DTPluginUnresolvableFallback>;
|
|
20
|
+
/** Full input token sets — used only by `lenientResolve` for wider-scope lookup. */
|
|
21
|
+
allLoadedSets?: Array<DTParsedTokenSet>;
|
|
22
|
+
/** Attribution label included in warnings — usually `"<brand>/<theme>"`. */
|
|
23
|
+
mappingKey?: string;
|
|
24
|
+
/** How to handle `source`-statused sets (Fix B). Defaults to `emit`. */
|
|
25
|
+
sourceMode?: DTPluginSourceMode;
|
|
12
26
|
};
|
|
13
27
|
/** Utility to DS Tokens plugin JSON to Supernova entities */
|
|
14
28
|
export declare class DTJSONConverter {
|
|
15
29
|
versionId: string;
|
|
16
30
|
mapping: DTPluginToSupernovaMapPack;
|
|
17
31
|
referenceResolver: DTTokenReferenceResolver;
|
|
18
|
-
|
|
32
|
+
unresolvableRefMode: DTPluginUnresolvableRefMode;
|
|
33
|
+
unresolvableFallback: Required<DTPluginUnresolvableFallback>;
|
|
34
|
+
allLoadedSets: Array<DTParsedTokenSet>;
|
|
35
|
+
mappingKey: string;
|
|
36
|
+
sourceMode: DTPluginSourceMode;
|
|
37
|
+
/** Warnings surfaced during resolution (emitted by non-strict unresolvable modes). Consumed by the plugin and folded into logs[]. */
|
|
38
|
+
warnings: Array<string>;
|
|
39
|
+
/** Keys of processed nodes that should be dropped before emission (populated by `preserve` mode and Fix B source filtering). */
|
|
40
|
+
skippedKeys: Set<string>;
|
|
41
|
+
constructor(versionId: string, mapping: DTPluginToSupernovaMapPack, options?: DTJSONConverterOptions);
|
|
19
42
|
convertNodesToTokens(nodes: Array<DTParsedNode>, brand: Brand): Array<DTProcessedTokenNode>;
|
|
43
|
+
private applySourceModeSkip;
|
|
44
|
+
/** Single-pass cascade: mark tokens whose referencedTokenId targets are in `skipIds`. Returns true if any new skip was added. */
|
|
45
|
+
private markCascadingSkips;
|
|
20
46
|
private restoreInitialTokenOrder;
|
|
21
47
|
private remapRootNodeKey;
|
|
22
48
|
private remapRootNodeKeys;
|
|
@@ -7,6 +7,8 @@ export type DTParsedNode = {
|
|
|
7
7
|
type: DTOriginalTokenType;
|
|
8
8
|
value: JSONValue;
|
|
9
9
|
description: string | null;
|
|
10
|
+
/** Originating set's status in `$themes.json`; absent for explicit-`tokenSets` mappings */
|
|
11
|
+
sourcePriority?: DTParsedThemeSetPriority;
|
|
10
12
|
};
|
|
11
13
|
export type DTParsedTokenSet = {
|
|
12
14
|
name: string;
|
|
@@ -15,6 +15,31 @@ export declare enum DTPluginPreciseCopyStrategy {
|
|
|
15
15
|
deleteAll = "deleteAll",// preciseCopy = true
|
|
16
16
|
keepManualTokens = "keepManualTokens"
|
|
17
17
|
}
|
|
18
|
+
/** Controls how `source`-statused sets in `$themes.json` are handled during sync. */
|
|
19
|
+
export declare enum DTPluginSourceMode {
|
|
20
|
+
/** Source sets contribute tokens AND resolve references (current SDK behavior) */
|
|
21
|
+
emit = "emit",
|
|
22
|
+
/** Source sets are used for reference resolution only; their tokens are inlined into referring enabled tokens and not emitted separately */
|
|
23
|
+
referenceOnly = "referenceOnly"
|
|
24
|
+
}
|
|
25
|
+
/** Controls what happens when a `{...}` reference can't be resolved within the mapping's set pool. */
|
|
26
|
+
export declare enum DTPluginUnresolvableRefMode {
|
|
27
|
+
/** Throw the enriched error listing missing refs (current SDK behavior) */
|
|
28
|
+
strict = "strict",
|
|
29
|
+
/** Substitute unresolvable refs with configured fallback values; emit warnings to logs */
|
|
30
|
+
placeholder = "placeholder",
|
|
31
|
+
/** Keep the `{...}` literal in the token value; self-heals on next sync when target exists */
|
|
32
|
+
preserve = "preserve",
|
|
33
|
+
/** Try to resolve against all loaded sets (not just mapping's subset); fall back to placeholder if still unresolvable */
|
|
34
|
+
lenientResolve = "lenientResolve"
|
|
35
|
+
}
|
|
36
|
+
/** Per-type fallback values used by `placeholder` mode (and `lenientResolve` fallback). */
|
|
37
|
+
export type DTPluginUnresolvableFallback = {
|
|
38
|
+
color?: string;
|
|
39
|
+
dimension?: number;
|
|
40
|
+
string?: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const DEFAULT_UNRESOLVABLE_FALLBACK: Required<DTPluginUnresolvableFallback>;
|
|
18
43
|
export declare const isPreciseCopyEnabled: (preciseCopy: DTPluginPreciseCopyStrategy) => preciseCopy is DTPluginPreciseCopyStrategy.deleteAll | DTPluginPreciseCopyStrategy.keepManualTokens;
|
|
19
44
|
export declare const toPreciseCopyStrategy: (preciseCopy?: boolean | DTPluginPreciseCopyStrategy) => DTPluginPreciseCopyStrategy;
|
|
20
45
|
export type DTPluginToSupernovaMap = {
|
|
@@ -42,6 +67,9 @@ export type DTPluginToSupernovaMappingFile = {
|
|
|
42
67
|
dryRun?: boolean;
|
|
43
68
|
preciseCopy?: boolean | DTPluginPreciseCopyStrategy;
|
|
44
69
|
themeOverridesStrategy?: DTPluginThemeOverrideStrategy;
|
|
70
|
+
sourceMode?: DTPluginSourceMode;
|
|
71
|
+
unresolvableRefMode?: DTPluginUnresolvableRefMode;
|
|
72
|
+
unresolvableFallback?: DTPluginUnresolvableFallback;
|
|
45
73
|
};
|
|
46
74
|
};
|
|
47
75
|
export type DTPluginToSupernovaSettings = {
|
|
@@ -49,4 +77,7 @@ export type DTPluginToSupernovaSettings = {
|
|
|
49
77
|
dryRun: boolean;
|
|
50
78
|
preciseCopy: DTPluginPreciseCopyStrategy;
|
|
51
79
|
themeOverridesStrategy: DTPluginThemeOverrideStrategy;
|
|
80
|
+
sourceMode: DTPluginSourceMode;
|
|
81
|
+
unresolvableRefMode: DTPluginUnresolvableRefMode;
|
|
82
|
+
unresolvableFallback: Required<DTPluginUnresolvableFallback>;
|
|
52
83
|
};
|
|
@@ -45,4 +45,6 @@ export declare class DTTokenReferenceResolver {
|
|
|
45
45
|
dollarTypeReference: boolean;
|
|
46
46
|
}[];
|
|
47
47
|
isDollarIdentifier(value: string): boolean;
|
|
48
|
+
/** Extract references appearing in `value` that aren't defined in the atomic table. Returns bracket-normalized keys (e.g. `{color.base.foo}`). */
|
|
49
|
+
unresolvedReferencesIn(value: unknown): Array<string>;
|
|
48
50
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Brand } from "../../../../model/base/SDKBrand";
|
|
2
|
+
import { DTParsedNode, DTParsedTokenSet } from "../SDKDTJSONLoader";
|
|
3
|
+
import { DTPluginUnresolvableFallback } from "../SDKDTMapLoader";
|
|
4
|
+
import { DTTokenReferenceResolver } from "../SDKDTTokenReferenceResolver";
|
|
5
|
+
/** Context passed to each unresolvable-ref handler. */
|
|
6
|
+
export type UnresolvableModeContext = {
|
|
7
|
+
/** Nodes that failed to resolve within the depth limit, paired with their original processing index. */
|
|
8
|
+
unresolvedTokens: Array<[DTParsedNode, number]>;
|
|
9
|
+
/** All token sets loaded from the input file (used by `lenientResolve`; other handlers ignore). */
|
|
10
|
+
allLoadedSets: Array<DTParsedTokenSet>;
|
|
11
|
+
/** The atomic-token table built during resolution; used to check what IS known. */
|
|
12
|
+
atomicResolver: DTTokenReferenceResolver;
|
|
13
|
+
/** Fully-populated fallback values (defaults merged with any user overrides). */
|
|
14
|
+
fallback: Required<DTPluginUnresolvableFallback>;
|
|
15
|
+
/** Brand context — passed to per-token conversion. */
|
|
16
|
+
brand: Brand;
|
|
17
|
+
/** Short label used in warning strings for attribution (e.g. "Jetstar/jq-web-light"). */
|
|
18
|
+
mappingKey: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Result from a handler. Instead of directly writing tokens, handlers return
|
|
22
|
+
* substituted nodes (whose values may have been rewritten) and/or skipped nodes.
|
|
23
|
+
* The caller re-runs the atomic-conversion path on substituted nodes.
|
|
24
|
+
*/
|
|
25
|
+
export type UnresolvableModeResult = {
|
|
26
|
+
/** Nodes whose values were substituted; re-run conversion on these. */
|
|
27
|
+
substitutedNodes: Array<[DTParsedNode, number]>;
|
|
28
|
+
/** Nodes to skip entirely — not emitted this sync. */
|
|
29
|
+
skippedNodes: Array<[DTParsedNode, number]>;
|
|
30
|
+
/** `[WARN]`-prefixed lines appended to the existing `logs[]` return value. */
|
|
31
|
+
warnings: Array<string>;
|
|
32
|
+
};
|
|
33
|
+
export type UnresolvableModeHandler = (context: UnresolvableModeContext) => UnresolvableModeResult;
|
|
@@ -10,6 +10,7 @@ import { DocsBlockCodePropertyDefinition, DocsBlockCodePropertyOptions } from ".
|
|
|
10
10
|
import { DocsBlockCodeSandboxPropertyDefinition, DocsBlockCodeSandboxPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty";
|
|
11
11
|
import { DocsBlockComponentPropertyDefinition, DocsBlockComponentPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockComponentProperty";
|
|
12
12
|
import { DocsBlockComponentPropertyPropertyDefinition, DocsBlockComponentPropertyPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty";
|
|
13
|
+
import { DocsBlockContextPropertyDefinition, DocsBlockContextPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockContextProperty";
|
|
13
14
|
import { DocsBlockDividerPropertyDefinition, DocsBlockDividerPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockDividerProperty";
|
|
14
15
|
import { DocsBlockEmbedUrlPropertyDefinition, DocsBlockEmbedUrlPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty";
|
|
15
16
|
import { DocsBlockFigmaComponentPropertyDefinition, DocsBlockFigmaComponentPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty";
|
|
@@ -392,4 +393,12 @@ export declare class DocsBlockBuilder {
|
|
|
392
393
|
options: DocsBlockFilePropertyOptions;
|
|
393
394
|
variants?: Record<string, DocsBlockFilePropertyOptions>;
|
|
394
395
|
}): DocsBlockFilePropertyDefinition;
|
|
396
|
+
/** Create a block property with type .context and its specific options */
|
|
397
|
+
contextProperty(configuration: {
|
|
398
|
+
id: string;
|
|
399
|
+
name: string;
|
|
400
|
+
description?: string;
|
|
401
|
+
options?: DocsBlockContextPropertyOptions;
|
|
402
|
+
variants?: Record<string, DocsBlockContextPropertyOptions>;
|
|
403
|
+
}): DocsBlockContextPropertyDefinition;
|
|
395
404
|
}
|
package/build/types/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare class TokenJSONElementTransformer {
|
|
|
63
63
|
safeGroupName(group: TokenGroup): string;
|
|
64
64
|
processedName(name: string, naming: JSONBuilderNamingOption): string;
|
|
65
65
|
/** Retrieve human-readable token type in unified fashion, used both as token type and as token master group */
|
|
66
|
-
typeLabel(type: TokenType): "border" | "color" | "gradient" | "measure" | "shadow" | "text" | "textCase" | "textDecoration" | "
|
|
66
|
+
typeLabel(type: TokenType): "visibility" | "border" | "color" | "gradient" | "measure" | "shadow" | "text" | "textCase" | "textDecoration" | "typography";
|
|
67
67
|
/** Retrieve chain of groups up to a specified group, ordered from parent to children */
|
|
68
68
|
referenceGroupChain(containingGroup: TokenGroup, allGroups: Array<TokenGroup>): Array<TokenGroup>;
|
|
69
69
|
}
|
|
@@ -305,7 +305,7 @@ export declare class TokenUtils {
|
|
|
305
305
|
static buildFallbackKeyBack(node: Pick<DTProcessedTokenNode, "path" | "token">): string;
|
|
306
306
|
static buildFallbackKey2(node: Pick<DTProcessedTokenNode, "path" | "token">): string;
|
|
307
307
|
static getTokenByKeyOrFallbackKeys<T extends DTProcessedTokenNode | Token>(node: Pick<DTProcessedTokenNode, "path" | "token">, map: Map<string, T>): T | undefined;
|
|
308
|
-
static getKeysByKeyOrFallbackKeys
|
|
308
|
+
static getKeysByKeyOrFallbackKeys(node: Pick<DTProcessedTokenNode, "path" | "token">): string[];
|
|
309
309
|
static getTokenByKeyOrBackwardKey(node: Pick<DTProcessedTokenNode, "path" | "token">, map: Map<string, DTProcessedTokenNode>): DTProcessedTokenNode | undefined;
|
|
310
310
|
static getTextCaseTokenValue(value: TextCase): "Uppercase" | "Lowercase" | "Capitalize" | "Small caps" | "Original";
|
|
311
311
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supernova-studio/supernova-sdk-beta",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.11",
|
|
4
4
|
"description": "Supernova.io SDK",
|
|
5
5
|
"main": "./build/supernova-sdk-typescript.js",
|
|
6
6
|
"types": "./build/types/index.d.ts",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"scripts-info": {
|
|
25
25
|
"info": "Display information about the package scripts",
|
|
26
26
|
"build": "Clean and rebuild the project",
|
|
27
|
-
"fix": "Try to automatically fix any linting problems",
|
|
28
27
|
"test": "Lint and unit test the project",
|
|
29
28
|
"watch": "Watch and rebuild the project on save, then rerun relevant tests",
|
|
30
29
|
"cov": "Rebuild, run tests, then create and open the coverage report",
|
|
@@ -36,43 +35,41 @@
|
|
|
36
35
|
"publish-packages": "Publish both SDK and Pulsar package to NPM"
|
|
37
36
|
},
|
|
38
37
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
38
|
+
"node": ">=18"
|
|
40
39
|
},
|
|
41
40
|
"dependencies": {
|
|
42
|
-
"abab": "2.0.6",
|
|
43
41
|
"async-mutex": "0.3.2",
|
|
44
42
|
"color-string": "1.9.1",
|
|
45
|
-
"color2k": "2.0.
|
|
43
|
+
"color2k": "2.0.4",
|
|
46
44
|
"fuse.js": "6.6.2",
|
|
47
|
-
"lodash": "4.
|
|
45
|
+
"lodash": "4.18.1",
|
|
48
46
|
"parse-color": "1.0.0",
|
|
49
47
|
"tinycolor2": "1.6.0",
|
|
50
48
|
"uuid": "14.0.0",
|
|
51
|
-
"@supernova-studio/client": "1.96.
|
|
52
|
-
"@supernova-studio/model": "1.96.
|
|
49
|
+
"@supernova-studio/client": "1.96.10",
|
|
50
|
+
"@supernova-studio/model": "1.96.10"
|
|
53
51
|
},
|
|
54
52
|
"devDependencies": {
|
|
55
53
|
"@istanbuljs/nyc-config-typescript": "0.1.3",
|
|
56
|
-
"@types/lodash": "4.17.
|
|
57
|
-
"@types/
|
|
54
|
+
"@types/lodash": "4.17.24",
|
|
55
|
+
"@types/parse-color": "1.0.3",
|
|
56
|
+
"@types/tinycolor2": "1.4.6",
|
|
58
57
|
"dotenv": "16.0.3",
|
|
59
58
|
"esm": "3.2.25",
|
|
60
|
-
"npm-run-all": "4.1.5",
|
|
61
59
|
"nyc": "17.1.0",
|
|
62
60
|
"readable-stream": "4.7.0",
|
|
63
61
|
"trash-cli": "5.0.0",
|
|
64
|
-
"ts-loader": "9.
|
|
62
|
+
"ts-loader": "9.6.2",
|
|
65
63
|
"tsconfig-paths-webpack-plugin": "4.2.0",
|
|
66
|
-
"tsx": "4.
|
|
67
|
-
"vitest": "4.
|
|
64
|
+
"tsx": "4.19.3",
|
|
65
|
+
"vitest": "4.1.4",
|
|
66
|
+
"webpack": "5.108.4",
|
|
68
67
|
"webpack-cli": "6.0.1",
|
|
69
68
|
"webpack-node-externals": "3.0.0",
|
|
70
|
-
"@supernovaio/typescript-with-config": "1.3.28"
|
|
69
|
+
"@supernovaio/typescript-with-config": "1.3.28",
|
|
70
|
+
"eslint-config-supernova": "0.0.0"
|
|
71
71
|
},
|
|
72
72
|
"config": {},
|
|
73
|
-
"overrides": {
|
|
74
|
-
"js-yaml": "3.14.2"
|
|
75
|
-
},
|
|
76
73
|
"nyc": {
|
|
77
74
|
"extends": "@istanbuljs/nyc-config-typescript",
|
|
78
75
|
"exclude": [
|
|
@@ -80,17 +77,16 @@
|
|
|
80
77
|
]
|
|
81
78
|
},
|
|
82
79
|
"optionalDependencies": {
|
|
83
|
-
"@rollup/rollup-darwin-x64": "4.
|
|
80
|
+
"@rollup/rollup-darwin-x64": "4.59.0"
|
|
84
81
|
},
|
|
85
82
|
"scripts": {
|
|
86
83
|
"build:production": "pnpm clean && webpack --mode production --config ./webpack.config.sdk.js && pnpm build:types",
|
|
87
84
|
"build:types": "tsc --noCheck --declaration --emitDeclarationOnly --declarationMap false --skipLibCheck --module CommonJS --target ES2020 --moduleResolution node --esModuleInterop --outDir build/types src/index.ts",
|
|
88
85
|
"build-sdk": "pnpm build:production",
|
|
89
86
|
"clean": "trash build test",
|
|
90
|
-
"fix": "run-s fix:*",
|
|
91
87
|
"lint": "eslint 'src/**/*.ts*'",
|
|
92
88
|
"lint:fix": "eslint 'src/**/*.ts*' --fix",
|
|
93
|
-
"test": "
|
|
89
|
+
"test": "pnpm test:unit",
|
|
94
90
|
"test:unit": "vitest run --config vitest.config.ts --reporter verbose",
|
|
95
91
|
"test:watch": "vitest --config vitest.config.ts --watch",
|
|
96
92
|
"test-ci": "vitest run --config vitest.config-ci.ts",
|