@supernova-studio/supernova-sdk-beta 1.6.27 → 1.6.29
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/areas/SDKAreaAutomation.d.ts +25 -3
- package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +6 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaIntegrations.d.ts +1 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +32 -4
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +22 -8
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +6 -4
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +20 -4
- package/build/sdk-typescript/src/core/resolvers/SDKTokenResolver.d.ts +3 -3
- package/build/sdk-typescript/src/exports-pulsar.d.ts +1 -1
- package/build/sdk-typescript/src/exports.d.ts +26 -3
- package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockDefinition.d.ts +2 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-detail/SDKDocsBlockActualTokenDetail.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-group/SDKDocsBlockActualTokenGroup.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-list/SDKDocsBlockActualTokenList.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +15 -3
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty.d.ts +9 -3
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockBooleanProperty.d.ts +9 -3
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +13 -3
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +13 -3
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +15 -3
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty.d.ts +9 -3
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockDividerProperty.d.ts +9 -3
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +12 -3
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +15 -5
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMarkdownProperty.d.ts +10 -9
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMultiSelectProperty.d.ts +10 -9
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockNumberProperty.d.ts +9 -3
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockProperty.d.ts +6 -2
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +11 -10
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty.d.ts +10 -9
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +12 -4
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTableProperty.d.ts +14 -8
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +10 -9
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +23 -8
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty.d.ts +10 -9
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty.d.ts +13 -9
- package/build/sdk-typescript/src/model/docs/blocks/usage/SDKDocsBlock.d.ts +33 -24
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyGroup.d.ts +3 -3
- package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPageAsset.d.ts +1 -1
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFrame.d.ts +1 -1
- package/build/sdk-typescript/src/model/enums/SDKCodeLanguage.d.ts +33 -0
- package/build/sdk-typescript/src/model/enums/SDKDocBlockMode.d.ts +8 -0
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyType.d.ts +0 -3
- package/build/sdk-typescript/src/model/exporters/SDKExporter.d.ts +7 -2
- package/build/sdk-typescript/src/model/membership/SDKMembership.d.ts +5 -5
- package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +1 -1
- package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +2 -2
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSSOSettings.d.ts +2 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +4 -0
- package/build/sdk-typescript/src/tests/helpers.d.ts +1 -1
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +1 -1
- package/build/sdk-typescript/src/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +0 -11
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +2 -2
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +1 -1
- package/build/sdk-typescript/src/tools/token-transform/SDKToolsTokenTransform.d.ts +1 -1
- package/build/sdk-typescript/src/utils/TokenUtils.d.ts +6 -6
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +1 -1
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockEmbedFrameProperty.d.ts +0 -9
- package/build/sdk-typescript/src/tests/Enterprise/PluginFigmaTokens.spec.d.ts +0 -1
- package/build/sdk-typescript/src/utils/DocumentationUtils.d.ts +0 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare enum CodeLanguage {
|
|
2
|
+
angular = "Angular",
|
|
3
|
+
bash = "Bash",
|
|
4
|
+
c = "C",
|
|
5
|
+
cpp = "Cpp",
|
|
6
|
+
csharp = "Csharp",
|
|
7
|
+
dart = "Dart",
|
|
8
|
+
handlebars = "Handlebars",
|
|
9
|
+
html = "Html",
|
|
10
|
+
java = "Java",
|
|
11
|
+
javascript = "Javascript",
|
|
12
|
+
json = "Json",
|
|
13
|
+
reactJsx = "ReactJsx",
|
|
14
|
+
reactTsx = "ReactTsx",
|
|
15
|
+
kotlin = "Kotlin",
|
|
16
|
+
lua = "Lua",
|
|
17
|
+
markdown = "Markdown",
|
|
18
|
+
objectiveC = "ObjectiveC",
|
|
19
|
+
php = "Php",
|
|
20
|
+
plain = "Plain",
|
|
21
|
+
python = "Python",
|
|
22
|
+
ruby = "Ruby",
|
|
23
|
+
rust = "Rust",
|
|
24
|
+
sass = "Sass",
|
|
25
|
+
scss = "Scss",
|
|
26
|
+
svelte = "Svelte",
|
|
27
|
+
swift = "Swift",
|
|
28
|
+
twig = "Twig",
|
|
29
|
+
typescript = "Typescript",
|
|
30
|
+
vue = "Vue",
|
|
31
|
+
xml = "Xml",
|
|
32
|
+
yaml = "Yaml"
|
|
33
|
+
}
|
|
@@ -28,13 +28,10 @@ export declare enum DocsBlockItemPropertyType {
|
|
|
28
28
|
/** Asset property allows selection of custom asset properties (columns) */
|
|
29
29
|
assetProperty = "AssetProperty",
|
|
30
30
|
/** Page type allows data access to the pages defined in design system */
|
|
31
|
-
page = "Page",
|
|
32
31
|
/** Page property allows selection of custom page properties (columns) */
|
|
33
|
-
pageProperty = "PageProperty",
|
|
34
32
|
/** Embed property allows user to input page to be embedded via URL */
|
|
35
33
|
embedURL = "EmbedURL",
|
|
36
34
|
/** Embed property allows user to input page to be embedded via iframe */
|
|
37
|
-
embedFrame = "EmbedFrame",
|
|
38
35
|
/** Markdown property allows user to add markdown to render */
|
|
39
36
|
markdown = "Markdown",
|
|
40
37
|
/** Code property allows user to add code to render */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ExporterCustomBlock, ExporterCustomBlockModel } from "./custom_blocks/SDKExporterCustomBlock";
|
|
2
2
|
import { ExporterCustomBlockVariant } from "./custom_blocks/SDKExporterCustomBlockVariant";
|
|
3
3
|
import { ExporterConfigurationProperty, ExporterConfigurationPropertyModel } from "./custom_properties/SDKExporterConfigurationProperty";
|
|
4
|
+
export type ExporterProvider = "github" | "gitlab" | "bitbucket" | "azure";
|
|
4
5
|
export type ExporterModel = {
|
|
5
6
|
id: string;
|
|
6
7
|
packageId: string;
|
|
@@ -17,7 +18,7 @@ export type ExporterModel = {
|
|
|
17
18
|
readme: string;
|
|
18
19
|
iconURL?: string;
|
|
19
20
|
tags: Array<string>;
|
|
20
|
-
gitProvider:
|
|
21
|
+
gitProvider: ExporterProvider;
|
|
21
22
|
gitUrl: string;
|
|
22
23
|
gitBranch: string;
|
|
23
24
|
gitDirectory: string;
|
|
@@ -26,6 +27,10 @@ export type ExporterModel = {
|
|
|
26
27
|
customBlocks?: Array<ExporterCustomBlockModel>;
|
|
27
28
|
exporterType: "code" | "documentation";
|
|
28
29
|
};
|
|
30
|
+
export type NewExporterPayload = {
|
|
31
|
+
url?: string;
|
|
32
|
+
provider?: ExporterProvider;
|
|
33
|
+
};
|
|
29
34
|
export declare class Exporter {
|
|
30
35
|
/** Unique exporter installation id. This id is used to referenced exporter within Supernova system (for example, in ds.documentationExporterId) */
|
|
31
36
|
id: string;
|
|
@@ -58,7 +63,7 @@ export declare class Exporter {
|
|
|
58
63
|
/** Exporter feature tags, such as iOS, React, token, styles, components etc. */
|
|
59
64
|
tags: Array<string>;
|
|
60
65
|
exporterType: "code" | "documentation";
|
|
61
|
-
gitProvider:
|
|
66
|
+
gitProvider: ExporterProvider;
|
|
62
67
|
/** URL of the repository containing the exporter package */
|
|
63
68
|
gitUrl: string;
|
|
64
69
|
/** Branch of the repository containing the exporter package. If not provided, exporter is located at the default branch */
|
|
@@ -3,14 +3,14 @@ import { Workspace, WorkspaceRemoteModel } from "../workspaces/SDKWorkspace";
|
|
|
3
3
|
export type MembershipRemoteModel = {
|
|
4
4
|
workspace: WorkspaceRemoteModel;
|
|
5
5
|
role: UserRole;
|
|
6
|
-
|
|
6
|
+
effectiveRole: UserRole;
|
|
7
7
|
};
|
|
8
8
|
export declare class Membership {
|
|
9
|
-
/**
|
|
9
|
+
/** Workspace of this membership. */
|
|
10
10
|
workspace: Workspace;
|
|
11
|
-
/**
|
|
11
|
+
/** Selected role of the user. */
|
|
12
12
|
role: UserRole;
|
|
13
|
-
/**
|
|
14
|
-
|
|
13
|
+
/** Actual role of the user. */
|
|
14
|
+
effectiveRole: UserRole;
|
|
15
15
|
constructor(model: MembershipRemoteModel);
|
|
16
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TokenType } from "../enums/SDKTokenType";
|
|
2
2
|
import { TokenOrigin } from "../support/SDKTokenOrigin";
|
|
3
|
-
import { AnyDimensionTokenRemoteData, AnyOptionTokenRemoteData, AnyStringTokenRemoteData, BlurTokenRemoteData, BorderTokenRemoteData, ColorTokenRemoteData, GradientTokenRemoteData, ShadowTokenRemoteData, TypographyTokenRemoteData } from "../tokens/remote/SDKRemoteTokenData";
|
|
4
3
|
import { AnyTokenValue } from "../tokens/SDKTokenValue";
|
|
4
|
+
import { AnyDimensionTokenRemoteData, AnyOptionTokenRemoteData, AnyStringTokenRemoteData, BlurTokenRemoteData, BorderTokenRemoteData, ColorTokenRemoteData, GradientTokenRemoteData, ShadowTokenRemoteData, TypographyTokenRemoteData } from "../tokens/remote/SDKRemoteTokenData";
|
|
5
5
|
export type TokenThemeOverrideRemoteModel = {
|
|
6
6
|
data: ColorTokenRemoteData | AnyStringTokenRemoteData | TypographyTokenRemoteData | ShadowTokenRemoteData | AnyDimensionTokenRemoteData | BorderTokenRemoteData | GradientTokenRemoteData | BlurTokenRemoteData | AnyOptionTokenRemoteData;
|
|
7
7
|
tokenPersistentId: string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
2
|
+
import { TokenClassTypeMapToken } from "../../utils/TokenUtils";
|
|
1
3
|
import { ElementProperty } from "../elements/SDKElementProperty";
|
|
2
4
|
import { ElementPropertyValue } from "../elements/values/SDKElementPropertyValue";
|
|
3
5
|
import { StringTokenType, TokenType } from "../enums/SDKTokenType";
|
|
@@ -5,8 +7,6 @@ import { StringTokenRemoteModel, TokenRemoteModel } from "./remote/SDKRemoteToke
|
|
|
5
7
|
import { StringTokenRemoteValue } from "./remote/SDKRemoteTokenValue";
|
|
6
8
|
import { Token } from "./SDKToken";
|
|
7
9
|
import { AnyStringTokenValue, FontFamilyTokenValue, FontWeightTokenValue, ProductCopyTokenValue, StringTokenValue } from "./SDKTokenValue";
|
|
8
|
-
import { DTTokenReferenceResolver } from "../../tools/design-tokens/utilities/SDKDTTokenReferenceResolver";
|
|
9
|
-
import { TokenClassTypeMapToken } from "../../utils/TokenUtils";
|
|
10
10
|
export declare class StringCategoryToken<T extends AnyStringTokenValue> extends Token {
|
|
11
11
|
value: T;
|
|
12
12
|
constructor(versionId: string, baseToken: TokenRemoteModel, value: T, alias: StringCategoryToken<T> | null, properties: Array<ElementProperty>, propertyValues: Array<ElementPropertyValue>);
|
|
@@ -2,6 +2,7 @@ export type WorkspaceSSOSettingsRemoteModel = {
|
|
|
2
2
|
providerId: string;
|
|
3
3
|
defaultAutoInviteValue: boolean;
|
|
4
4
|
autoInviteDomains: Record<string, boolean>;
|
|
5
|
+
areInvitesDisabled: boolean;
|
|
5
6
|
};
|
|
6
7
|
export type WorkspaceSSOSettingsUpdateModel = WorkspaceSSOSettingsRemoteModel;
|
|
7
8
|
export type WorkspaceSSOSettingsTransportModel = WorkspaceSSOSettingsRemoteModel;
|
|
@@ -9,6 +10,7 @@ export declare class WorkspaceSSOSettings {
|
|
|
9
10
|
providerId: string;
|
|
10
11
|
defaultAutoInviteValue: boolean;
|
|
11
12
|
autoInviteDomains: Record<string, boolean>;
|
|
13
|
+
areInvitesDisabled: boolean;
|
|
12
14
|
constructor(model: WorkspaceSSOSettingsRemoteModel);
|
|
13
15
|
toUpdateObject(): WorkspaceSSOSettingsUpdateModel;
|
|
14
16
|
toRemote(): WorkspaceSSOSettingsTransportModel;
|
|
@@ -30,6 +30,10 @@ export type WorkspaceSubscriptionCardRemoteModel = {
|
|
|
30
30
|
brand?: string;
|
|
31
31
|
};
|
|
32
32
|
export type WorkspaceSubscriptionTransportModel = WorkspaceSubscriptionRemoteModel;
|
|
33
|
+
export type WorkspaceSubscriptionUpdateModel = {
|
|
34
|
+
priceId: string;
|
|
35
|
+
numberOfSeats: number;
|
|
36
|
+
};
|
|
33
37
|
export declare class WorkspaceSubscription {
|
|
34
38
|
/** Main status of the workspace subscription */
|
|
35
39
|
status: WorkspaceSubscriptionStatus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RemoteVersionIdentifier, RemoteWorkspaceVersionIdentifier } from "../core/areas/SDKRemoteIdentifiers";
|
|
2
1
|
import { Supernova } from "../core/SDKSupernova";
|
|
2
|
+
import { RemoteVersionIdentifier, RemoteWorkspaceVersionIdentifier } from "../core/areas/SDKRemoteIdentifiers";
|
|
3
3
|
export declare const testInstance: Supernova;
|
|
4
4
|
export declare const testVersionIdentifier: RemoteVersionIdentifier;
|
|
5
5
|
export declare const testWorkspaceVersionIdentifier: RemoteWorkspaceVersionIdentifier;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Brand } from "../../../model/base/SDKBrand";
|
|
2
2
|
import { DTOriginalTokenType } from "../../../model/enums/SDKTokenType";
|
|
3
|
+
import { AnyToken } from "../../../model/tokens/SDKTokenValue";
|
|
3
4
|
import { DTParsedNode } from "./SDKDTJSONLoader";
|
|
4
5
|
import { DTPluginToSupernovaMapPack } from "./SDKDTMapLoader";
|
|
5
6
|
import { DTTokenReferenceResolver } from "./SDKDTTokenReferenceResolver";
|
|
6
|
-
import { AnyToken } from "../../../model/tokens/SDKTokenValue";
|
|
7
7
|
export type DTProcessedTokenNode<T extends AnyToken = AnyToken> = {
|
|
8
8
|
token: T;
|
|
9
9
|
originalType: DTOriginalTokenType;
|
|
@@ -11,7 +11,6 @@ import { DocsBlockCodeSandboxPropertyDefinition, DocsBlockCodeSandboxPropertyOpt
|
|
|
11
11
|
import { DocsBlockComponentPropertyDefinition, DocsBlockComponentPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockComponentProperty";
|
|
12
12
|
import { DocsBlockComponentPropertyPropertyDefinition, DocsBlockComponentPropertyPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty";
|
|
13
13
|
import { DocsBlockDividerPropertyDefinition, DocsBlockDividerPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockDividerProperty";
|
|
14
|
-
import { DocsBlockEmbedFramePropertyDefinition, DocsBlockEmbedFramePropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockEmbedFrameProperty";
|
|
15
14
|
import { DocsBlockEmbedUrlPropertyDefinition, DocsBlockEmbedUrlPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty";
|
|
16
15
|
import { DocsBlockImagePropertyDefinition, DocsBlockImagePropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockImageProperty";
|
|
17
16
|
import { DocsBlockMarkdownPropertyDefinition, DocsBlockMarkdownPropertyOptions } from "../../model/docs/blocks/properties/SDKDocsBlockMarkdownProperty";
|
|
@@ -283,16 +282,6 @@ export declare class DocsBlockBuilder {
|
|
|
283
282
|
[key: string]: DocsBlockEmbedUrlPropertyOptions;
|
|
284
283
|
};
|
|
285
284
|
}): DocsBlockEmbedUrlPropertyDefinition;
|
|
286
|
-
/** Create a block property with type .embedFrame and its specific options */
|
|
287
|
-
embedFrameProperty(configuration: {
|
|
288
|
-
id: string;
|
|
289
|
-
name: string;
|
|
290
|
-
description?: string;
|
|
291
|
-
options: DocsBlockEmbedFramePropertyOptions;
|
|
292
|
-
variants?: {
|
|
293
|
-
[key: string]: DocsBlockEmbedFramePropertyOptions;
|
|
294
|
-
};
|
|
295
|
-
}): DocsBlockEmbedFramePropertyDefinition;
|
|
296
285
|
/** Create a block property with type .markdown and its specific options */
|
|
297
286
|
markdownProperty(configuration: {
|
|
298
287
|
id: string;
|
package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Supernova } from "../../core/SDKSupernova";
|
|
2
|
+
import { DocumentationLegacyPage } from "../../model/documentation/SDKDocumentationLegacyPage";
|
|
3
|
+
import { DocumentationLegacyPageBlock } from "../../model/documentation/SDKDocumentationLegacyPageBlock";
|
|
2
4
|
import { DocumentationLegacyPageBlockAssets } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockAssets";
|
|
3
5
|
import { DocumentationLegacyPageBlockCallout } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockCallout";
|
|
4
6
|
import { DocumentationLegacyPageBlockCode } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockCode";
|
|
@@ -25,8 +27,6 @@ import { DocumentationLegacyPageBlockToken } from "../../model/documentation/blo
|
|
|
25
27
|
import { DocumentationLegacyPageBlockTokenGroup } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockTokenGroup";
|
|
26
28
|
import { DocumentationLegacyPageBlockTokenList } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockTokenList";
|
|
27
29
|
import { DocumentationLegacyPageUnorderedList } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockUnorderedList";
|
|
28
|
-
import { DocumentationLegacyPage } from "../../model/documentation/SDKDocumentationLegacyPage";
|
|
29
|
-
import { DocumentationLegacyPageBlock } from "../../model/documentation/SDKDocumentationLegacyPageBlock";
|
|
30
30
|
import { MarkdownTransformType } from "./SDKToolsMarkdownTransform";
|
|
31
31
|
/** Markdown block transformer */
|
|
32
32
|
export declare class MarkdownTransformBlock {
|
package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DocumentationLegacyPageBlockText } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockText";
|
|
2
1
|
import { DocumentationLegacyRichText } from "../../model/documentation/SDKDocumentationLegacyRichText";
|
|
2
|
+
import { DocumentationLegacyPageBlockText } from "../../model/documentation/blocks/SDKDocumentationLegacyPageBlockText";
|
|
3
3
|
import { Token } from "../../model/tokens/SDKToken";
|
|
4
4
|
/** Markdown block transformer */
|
|
5
5
|
export declare class MarkdownTransformUtil {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnyDimensionTokenValue, AnyOptionTokenValue, AnyStringTokenValue, BlurTokenValue, BorderTokenValue, ColorTokenValue, GradientTokenValue, ShadowTokenValue, TypographyTokenValue } from "../../model/tokens/SDKTokenValue";
|
|
2
1
|
import { ColorToken } from "../../model/tokens/SDKColorToken";
|
|
3
2
|
import { Token } from "../../model/tokens/SDKToken";
|
|
3
|
+
import { AnyDimensionTokenValue, AnyOptionTokenValue, AnyStringTokenValue, BlurTokenValue, BorderTokenValue, ColorTokenValue, GradientTokenValue, ShadowTokenValue, TypographyTokenValue } from "../../model/tokens/SDKTokenValue";
|
|
4
4
|
/** Token data transformer. Use for direct representation of token to other representations, such as CSS, rgb etc. More transformers will be added over time */
|
|
5
5
|
export declare class TokenTransform {
|
|
6
6
|
/** Converts a single token to CSS definition. Values are always resolved to plain values, references to other tokens are not yet supported */
|
|
@@ -283,11 +283,11 @@ export declare class TokenUtils {
|
|
|
283
283
|
static mapTypeToPrefix: (type: TokenType) => string;
|
|
284
284
|
static mapTypeToPrefixBack: (type: TokenType) => string;
|
|
285
285
|
static mapTypeToPrefix2: (type: TokenType) => string;
|
|
286
|
-
static buildFallbackKey(node: Pick<DTProcessedTokenNode,
|
|
287
|
-
static buildFallbackKeyBack(node: Pick<DTProcessedTokenNode,
|
|
288
|
-
static buildFallbackKey2(node: Pick<DTProcessedTokenNode,
|
|
289
|
-
static getTokenByKeyOrFallbackKeys<T extends DTProcessedTokenNode | Token>(node: Pick<DTProcessedTokenNode,
|
|
290
|
-
static getKeysByKeyOrFallbackKeys<T extends DTProcessedTokenNode | Token>(node: Pick<DTProcessedTokenNode,
|
|
291
|
-
static getTokenByKeyOrBackwardKey(node: Pick<DTProcessedTokenNode,
|
|
286
|
+
static buildFallbackKey(node: Pick<DTProcessedTokenNode, "path" | "token">): string;
|
|
287
|
+
static buildFallbackKeyBack(node: Pick<DTProcessedTokenNode, "path" | "token">): string;
|
|
288
|
+
static buildFallbackKey2(node: Pick<DTProcessedTokenNode, "path" | "token">): string;
|
|
289
|
+
static getTokenByKeyOrFallbackKeys<T extends DTProcessedTokenNode | Token>(node: Pick<DTProcessedTokenNode, "path" | "token">, map: Map<string, T>): T | undefined;
|
|
290
|
+
static getKeysByKeyOrFallbackKeys<T extends DTProcessedTokenNode | Token>(node: Pick<DTProcessedTokenNode, "path" | "token">): string[];
|
|
291
|
+
static getTokenByKeyOrBackwardKey(node: Pick<DTProcessedTokenNode, "path" | "token">, map: Map<string, DTProcessedTokenNode>): DTProcessedTokenNode | undefined;
|
|
292
292
|
}
|
|
293
293
|
export {};
|