@supernova-studio/supernova-sdk-beta 1.6.29 → 1.6.31

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.
Files changed (47) hide show
  1. package/build/sdk-typescript/src/core/SDKSupernova.d.ts +3 -0
  2. package/build/sdk-typescript/src/core/areas/SDKAreaResources.d.ts +24 -0
  3. package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +12 -0
  4. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +6 -0
  5. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +8 -0
  6. package/build/sdk-typescript/src/exports-pulsar.d.ts +1 -1
  7. package/build/sdk-typescript/src/exports.d.ts +12 -1
  8. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockDefinition.d.ts +4 -4
  9. package/build/sdk-typescript/src/model/docs/blocks/definition/{SDKDocsBlockItem.d.ts → SDKDocsBlockItemDefinition.d.ts} +3 -3
  10. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockVariant.d.ts +3 -0
  11. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/assets/SDKDocsBlockActualAssets.d.ts +6 -0
  12. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/code/SDKDocsBlockActualCode.d.ts +6 -0
  13. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/code-react/SDKDocsBlockActualCodeReact.d.ts +6 -0
  14. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/component-checklist/SDKDocsBlockActualComponentChecklist.d.ts +6 -0
  15. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/component-checklist-all/SDKDocsBlockActualComponentChecklistAll.d.ts +6 -0
  16. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/component-health/SDKDocsBlockActualComponentHealth.d.ts +6 -0
  17. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/figma-frames/SDKDocsBlockActualFigmaFrames.d.ts +6 -0
  18. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/link/SDKDocsBlockActualLink.d.ts +8 -0
  19. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/omni-multi-item/SDKDocsBlockActualOmniMultiItem.d.ts +6 -0
  20. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/omni-single-item/SDKDocsBlockActualOmniSingleItem.d.ts +6 -0
  21. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/release-notes/SDKDocsBlockActualReleaseNotes.d.ts +6 -0
  22. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +7 -0
  23. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +4 -1
  24. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +6 -1
  25. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockNumberProperty.d.ts +2 -0
  26. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +5 -1
  27. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +1 -1
  28. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockUrlProperty.d.ts +14 -0
  29. package/build/sdk-typescript/src/model/docs/blocks/usage/SDKDocsBlock.d.ts +13 -19
  30. package/build/sdk-typescript/src/model/docs/blocks/usage/SDKDocsBlockItem.d.ts +21 -0
  31. package/build/sdk-typescript/src/model/enums/SDKDocsBlockAssetPropertyPreviewContainerSize.d.ts +6 -0
  32. package/build/sdk-typescript/src/model/enums/SDKDocsBlockBehaviorDataType.d.ts +3 -1
  33. package/build/sdk-typescript/src/model/enums/SDKDocsBlockImagePropertyAspectRatio.d.ts +4 -2
  34. package/build/sdk-typescript/src/model/enums/SDKDocsBlockImagePropertyWidth.d.ts +2 -0
  35. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyType.d.ts +2 -0
  36. package/build/sdk-typescript/src/model/enums/SDKSourceType.d.ts +2 -1
  37. package/build/sdk-typescript/src/model/resources/SDKResource.d.ts +26 -0
  38. package/build/sdk-typescript/src/model/resources/SDKResourceAsset.d.ts +6 -0
  39. package/build/sdk-typescript/src/model/resources/SDKResourceFont.d.ts +15 -0
  40. package/build/sdk-typescript/src/model/support/SDKSource.d.ts +10 -0
  41. package/build/sdk-typescript/src/model/users/SDKUserProfile.d.ts +10 -4
  42. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +1 -0
  43. package/build/sdk-typescript/src/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +29 -6
  44. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +1 -1
  45. package/build/supernova-sdk-typescript.js +1 -1
  46. package/build/supernova-sdk-typescript.js.map +1 -1
  47. package/package.json +118 -118
@@ -9,6 +9,7 @@ import { AreaDocumentation } from "./areas/SDKAreaDocumentation";
9
9
  import { AreaIntegrations } from "./areas/SDKAreaIntegrations";
10
10
  import { AreaMe } from "./areas/SDKAreaMe";
11
11
  import { AreaNetwork } from "./areas/SDKAreaNetwork";
12
+ import { AreaResources } from "./areas/SDKAreaResources";
12
13
  import { AreaStorage } from "./areas/SDKAreaStorage";
13
14
  import { AreaTokens } from "./areas/SDKAreaTokens";
14
15
  import { AreaUsers } from "./areas/SDKAreaUsers";
@@ -36,6 +37,8 @@ export declare class Supernova {
36
37
  components: AreaComponents;
37
38
  /** Get, create, update, manipulate or delete assets */
38
39
  assets: AreaAssets;
40
+ /** Get, create, update, manipulate or delete resources */
41
+ resources: AreaResources;
39
42
  /** Get, create, update, manipulate or delete documentation items */
40
43
  documentation: AreaDocumentation;
41
44
  /** Get, create, update, manipulate or delete pipelines and automation jobs */
@@ -0,0 +1,24 @@
1
+ import { ResourceAsset, ResourceFont } from "../../exports";
2
+ import { DataCore } from "../data/SDKDataCore";
3
+ import { RemoteVersionIdentifier } from "./SDKRemoteIdentifiers";
4
+ export declare class AreaResources {
5
+ /** Internal: Engine */
6
+ private dataCore;
7
+ constructor(dataCore: DataCore);
8
+ /** Fetches all remote asset resources in the version
9
+ * @param from - Remote version to fetch from
10
+ * @returns All image resources in the specified version
11
+ */
12
+ getAssetResources(from: RemoteVersionIdentifier): Promise<Array<ResourceAsset>>;
13
+ /** Fetches all remote font resources in the version
14
+ * @param from - Remote version to fetch from
15
+ * @returns All font resources in the specified version
16
+ */
17
+ getFontResources(from: RemoteVersionIdentifier): Promise<Array<ResourceFont>>;
18
+ /** Uploads new asset resource */
19
+ uploadAssetResource(from: RemoteVersionIdentifier, asset: File): Promise<ResourceAsset>;
20
+ /** Uploads new font resource */
21
+ uploadFontResource(from: RemoteVersionIdentifier, font: File): Promise<ResourceFont>;
22
+ /** Deletes resource of any type */
23
+ deleteResource(from: RemoteVersionIdentifier, resourceId: string): Promise<void>;
24
+ }
@@ -1,3 +1,4 @@
1
+ import { ResourceFont } from "../../exports";
1
2
  import { Acl } from "../../model/acl/SDKAcl";
2
3
  import { Asset } from "../../model/assets/SDKAsset";
3
4
  import { RenderedAsset } from "../../model/assets/SDKRenderedAsset";
@@ -48,6 +49,7 @@ import { DesignComponentGroup } from "../../model/groups/SDKDesignComponentGroup
48
49
  import { TokenGroup } from "../../model/groups/SDKTokenGroup";
49
50
  import { ImportJob } from "../../model/jobs/SDKImportJob";
50
51
  import { Membership } from "../../model/membership/SDKMembership";
52
+ import { ResourceAsset } from "../../model/resources/SDKResourceAsset";
51
53
  import { CustomDomain } from "../../model/support/SDKCustomDomain";
52
54
  import { FigmaStructure } from "../../model/support/SDKFigmaStructure";
53
55
  import { FigmaStructureDetail } from "../../model/support/SDKFigmaStructureDetail";
@@ -269,6 +271,16 @@ export declare class DataCore {
269
271
  jobId: string;
270
272
  exporterId: string;
271
273
  }>;
274
+ /** Retrieve all asset resources */
275
+ assetResources(designSystemId: string, versionId: string): Promise<Array<ResourceAsset>>;
276
+ /** Retrieve all font resources */
277
+ fontResources(designSystemId: string, versionId: string): Promise<Array<ResourceFont>>;
278
+ /** Upload asset resource */
279
+ uploadAssetResource(designSystemId: string, versionId: string, asset: File): Promise<ResourceAsset>;
280
+ /** Upload font resource */
281
+ uploadFontResource(designSystemId: string, versionId: string, font: File): Promise<ResourceFont>;
282
+ /** Delete any resource */
283
+ deleteResource(designSystemId: string, versionId: string, resourceId: string): Promise<void>;
272
284
  pipelines(workspaceId: string, designSystemId?: string): Promise<Array<Pipeline>>;
273
285
  githubConnections(): Promise<Array<CodegenConnection>>;
274
286
  githubAccounts(githubConnectionId: string): Promise<Array<CodegenAccount>>;
@@ -37,6 +37,8 @@ import { DesignComponentGroupRemoteModel } from "../../../model/groups/SDKDesign
37
37
  import { TokenGroupRemoteModel } from "../../../model/groups/SDKTokenGroup";
38
38
  import { ImportJobRemoteModel } from "../../../model/jobs/SDKImportJob";
39
39
  import { MembershipRemoteModel } from "../../../model/membership/SDKMembership";
40
+ import { ResourceAssetModel } from "../../../model/resources/SDKResourceAsset";
41
+ import { ResourceFontModel } from "../../../model/resources/SDKResourceFont";
40
42
  import { CustomDomainRemoteModel } from "../../../model/support/SDKCustomDomain";
41
43
  import { FigmaStructureModel } from "../../../model/support/SDKFigmaStructure";
42
44
  import { FigmaStructureDetailModel } from "../../../model/support/SDKFigmaStructureDetail";
@@ -121,6 +123,10 @@ export declare class DataCoreReadRequests {
121
123
  getRemoteExporters(workspaceId: string, filter?: {
122
124
  installedOnly?: boolean;
123
125
  }): Promise<Array<ExporterModel>>;
126
+ /** Remote: Get all asset resources */
127
+ getRemoteAssetResources(designSystemId: string, versionId: string): Promise<Array<ResourceAssetModel>>;
128
+ /** Remote: Get all font resources */
129
+ getRemoteFontResources(designSystemId: string, versionId: string): Promise<Array<ResourceFontModel>>;
124
130
  /** Remote: Get all tokens from all categories */
125
131
  getRemoteTokens(designSystemId: string, versionId: string, filter?: {
126
132
  type?: TokenType;
@@ -16,6 +16,8 @@ import { ConnectionRemoteModel } from "../../../model/exporters/remote/SDKRemote
16
16
  import { ComponentGroup, ComponentGroupRemoteModel } from "../../../model/groups/SDKComponentGroup";
17
17
  import { TokenGroup, TokenGroupRemoteModel } from "../../../model/groups/SDKTokenGroup";
18
18
  import { ImportJobRemoteModel } from "../../../model/jobs/SDKImportJob";
19
+ import { ResourceAssetModel } from "../../../model/resources/SDKResourceAsset";
20
+ import { ResourceFontModel } from "../../../model/resources/SDKResourceFont";
19
21
  import { CustomDomainRemoteModel } from "../../../model/support/SDKCustomDomain";
20
22
  import { SourceRemoteModel } from "../../../model/support/SDKSource";
21
23
  import { TokenThemeRemoteModel } from "../../../model/themes/SDKTokenTheme";
@@ -193,6 +195,12 @@ export declare class DataCoreWriteRequests {
193
195
  deleteTokenProperty(designSystemId: string, versionId: string, propertyId: string): Promise<void>;
194
196
  updateReorderTokenColumn(designSystemId: string, versionId: string, viewId: string, columnId: string, newIndex: number): Promise<void>;
195
197
  updateResizeTokenColumn(designSystemId: string, versionId: string, viewId: string, columnType: ElementDataViewColumnType, columnId: string, columnThemeId: string | undefined, columnBasePropertyType: string | undefined, columnPropertyDefinitionId: string | undefined, newWidth: number): Promise<void>;
198
+ /** Remote: Upload a new asset resource */
199
+ uploadAssetResource(designSystemId: string, versionId: string, asset: File): Promise<ResourceAssetModel>;
200
+ /** Remote: Upload a new font resource */
201
+ uploadFontResource(designSystemId: string, versionId: string, font: File): Promise<ResourceFontModel>;
202
+ /** Remote: Delete a resource */
203
+ deleteResource(designSystemId: string, versionId: string, resourceId: string): Promise<void>;
196
204
  createRemoteComponent(designSystemId: string, versionId: string, component: ComponentRemoteModel): Promise<ComponentRemoteModel>;
197
205
  updateRemoteComponent(designSystemId: string, versionId: string, component: ComponentUpdateRemoteModel): Promise<ComponentRemoteModel>;
198
206
  createRemoteComponentGroup(designSystemId: string, versionId: string, group: ComponentGroupRemoteModel): Promise<ComponentGroupRemoteModel>;
@@ -39,7 +39,7 @@ export type { ElementDataViewColumn } from "./model/elements/SDKElementDataViewC
39
39
  export type { DesignComponent } from "./model/components/SDKDesignComponent";
40
40
  export type { DocsBlockBehavior } from "./model/docs/blocks/definition/SDKDocsBlockBehavior";
41
41
  export type { DocsBlockDefinition } from "./model/docs/blocks/definition/SDKDocsBlockDefinition";
42
- export type { DocsBlockItem } from "./model/docs/blocks/definition/SDKDocsBlockItem";
42
+ export type { DocsBlockItemDefinition } from "./model/docs/blocks/definition/SDKDocsBlockItemDefinition";
43
43
  export type { DocsBlockLayout } from "./model/docs/blocks/definition/SDKDocsBlockLayout";
44
44
  export type { DocsBlockOnboarding } from "./model/docs/blocks/definition/SDKDocsBlockOnboarding";
45
45
  export type { DocsBlockVariant } from "./model/docs/blocks/definition/SDKDocsBlockVariant";
@@ -55,10 +55,11 @@ export { ElementDataViewColumn, ElementDataViewColumnBasePropertyType, ElementDa
55
55
  export { DesignComponent } from "./model/components/SDKDesignComponent";
56
56
  export { DocsBlockBehavior } from "./model/docs/blocks/definition/SDKDocsBlockBehavior";
57
57
  export { DocsBlockDefinition } from "./model/docs/blocks/definition/SDKDocsBlockDefinition";
58
- export { DocsBlockItem } from "./model/docs/blocks/definition/SDKDocsBlockItem";
58
+ export { DocsBlockItemDefinition } from "./model/docs/blocks/definition/SDKDocsBlockItemDefinition";
59
59
  export { DocsBlockLayout } from "./model/docs/blocks/definition/SDKDocsBlockLayout";
60
60
  export { DocsBlockOnboarding } from "./model/docs/blocks/definition/SDKDocsBlockOnboarding";
61
61
  export { DocsBlockVariant } from "./model/docs/blocks/definition/SDKDocsBlockVariant";
62
+ export { DocsBlockMode } from "./model/enums/SDKDocBlockMode";
62
63
  export { DocsEntity } from "./model/docs/entities/SDKDocsEntity";
63
64
  export { DocsEntityGroup } from "./model/docs/entities/SDKDocsEntityGroup";
64
65
  export { DocsEntityPage } from "./model/docs/entities/SDKDocsEntityPage";
@@ -95,6 +96,8 @@ export type { DocsBlockSingleSelectPropertyData, DocsBlockSingleSelectPropertyOp
95
96
  export { DocsBlockTablePropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTableProperty";
96
97
  export type { DocsBlockTablePropertyData, DocsBlockTablePropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTableProperty";
97
98
  export { DocsBlockTextPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTextProperty";
99
+ export type { DocsBlockUrlPropertyData, DocsBlockUrlPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockUrlProperty";
100
+ export { DocsBlockUrlPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockUrlProperty";
98
101
  export type { DocsBlockTextPropertyData, DocsBlockTextPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTextProperty";
99
102
  export { DocsBlockTokenPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTokenProperty";
100
103
  export type { DocsBlockTokenPropertyData, DocsBlockTokenPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTokenProperty";
@@ -104,6 +107,7 @@ export { DocsBlockTokenTypePropertyDefinition } from "./model/docs/blocks/proper
104
107
  export type { DocsBlockTokenTypePropertyData, DocsBlockTokenTypePropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty";
105
108
  export { DocsBlockDividerPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockDividerProperty";
106
109
  export type { DocsBlockDividerPropertyData, DocsBlockDividerPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockDividerProperty";
110
+ export { DocsBlockStorybookPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockStorybookProperty";
107
111
  export type { DocsBlockStorybookPropertyData, DocsBlockStorybookPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockStorybookProperty";
108
112
  export type { DocsColorRef } from "./model/docs/blocks/support/SDKDocsColorRef";
109
113
  export { DocsImageRefType } from "./model/docs/blocks/support/SDKDocsImageRef";
@@ -112,6 +116,7 @@ export { DocsLinkRefType } from "./model/docs/blocks/support/SDKDocsLinkRef";
112
116
  export type { DocsLinkRef } from "./model/docs/blocks/support/SDKDocsLinkRef";
113
117
  export type { DocsSizeRef } from "./model/docs/blocks/support/SDKDocsSizeRef";
114
118
  export { DocsBlock } from "./model/docs/blocks/usage/SDKDocsBlock";
119
+ export { DocsBlockItem } from "./model/docs/blocks/usage/SDKDocsBlockItem";
115
120
  export { DocumentationLegacy } from "./model/base/SDKDocumentationLegacy";
116
121
  export { DocumentationLegacyPageBlockAsset } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockAsset";
117
122
  export { DocumentationLegacyPageBlockAssets } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockAssets";
@@ -175,6 +180,7 @@ export { DocumentationLegacyPageAssetType } from "./model/enums/SDKDocumentation
175
180
  export { DocumentationLegacyPageBlockType } from "./model/enums/SDKDocumentationLegacyPageBlockType";
176
181
  export { DocumentationLegacyPageBlockThemeType } from "./model/enums/SDKDocumentationLegacyPageBlockThemeType";
177
182
  export { DocsBlockBehaviorDataType } from "./model/enums/SDKDocsBlockBehaviorDataType";
183
+ export { DocsBlockAssetPropertyPreviewContainerSize } from "./model/enums/SDKDocsBlockAssetPropertyPreviewContainerSize";
178
184
  export { DocsBlockBehaviorSelectionType } from "./model/enums/SDKDocsBlockBehaviorSelectionType";
179
185
  export { DocsBlockImagePropertyAspectRatio } from "./model/enums/SDKDocsBlockImagePropertyAspectRatio";
180
186
  export { DocsBlockItemEntityType } from "./model/enums/SDKDocsBlockItemEntityType";
@@ -187,10 +193,12 @@ export { DocsBlockItemVariantLayoutWidth } from "./model/enums/SDKDocsBlockItemV
187
193
  export { DocsBlockOptionRenderingStyle } from "./model/enums/SDKDocsBlockOptionRenderStyle";
188
194
  export { DocsBlockRichTextPropertyStyle } from "./model/enums/SDKDocsBlockRichTextPropertyStyle";
189
195
  export { DocsBlockTextPropertyStyle } from "./model/enums/SDKDocsBlockTextPropertyStyle";
196
+ export { DocsBlockTextPropertyColor } from "./model/enums/SDKDocsBlockTextPropertyColor";
190
197
  export { DocsEntityGroupBehavior } from "./model/enums/SDKDocsEntityGroupBehavior";
191
198
  export { DocsEntityType } from "./model/enums/SDKDocsEntityType";
192
199
  export { DocsSectionType } from "./model/enums/SDKDocsSectionType";
193
200
  export { SourceType } from "./model/enums/SDKSourceType";
201
+ export { DocsBlockImagePropertyWidth } from "./model/enums/SDKDocsBlockImagePropertyWidth";
194
202
  export { FrameAlignment } from "./model/enums/SDKFrameAlignment";
195
203
  export { FrameLayout } from "./model/enums/SDKFrameLayout";
196
204
  export { GradientType } from "./model/enums/SDKGradientType";
@@ -224,6 +232,9 @@ export { FigmaFrame, FrameType } from "./model/support/SDKFigmaFrame";
224
232
  export { ExportBuild } from "./model/exporters/exporter_builds/SDKExportBuild";
225
233
  export { ExportBuildStatus } from "./model/exporters/exporter_builds/SDKExportBuild";
226
234
  export { ExportBuildResultLog } from "./model/exporters/exporter_builds/SDKExportBuildResults";
235
+ export type { ResourceType } from "./model/resources/SDKResource";
236
+ export { ResourceAsset } from "./model/resources/SDKResourceAsset";
237
+ export { ResourceFont } from "./model/resources/SDKResourceFont";
227
238
  export { BlurToken } from "./model/tokens/SDKBlurToken";
228
239
  export { BorderToken } from "./model/tokens/SDKBorderToken";
229
240
  export { ColorToken } from "./model/tokens/SDKColorToken";
@@ -2,7 +2,7 @@ import { DocsBlockMode } from "../../../enums/SDKDocBlockMode";
2
2
  import { DocsBlockCategory } from "../../../enums/SDKDocsBlockCategory";
3
3
  import { DocsImageRef } from "../support/SDKDocsImageRef";
4
4
  import { DocsBlockBehavior, DocsBlockBehaviorModel } from "./SDKDocsBlockBehavior";
5
- import { DocsBlockItem, DocsBlockItemModel } from "./SDKDocsBlockItem";
5
+ import { DocsBlockItemDefinition, DocsBlockItemDefinitionModel } from "./SDKDocsBlockItemDefinition";
6
6
  import { DocsBlockOnboarding, DocsBlockOnboardingModel } from "./SDKDocsBlockOnboarding";
7
7
  export type DocsBlockDefinitionModel = {
8
8
  id: string;
@@ -12,7 +12,7 @@ export type DocsBlockDefinitionModel = {
12
12
  icon?: DocsImageRef;
13
13
  documentationLink?: string;
14
14
  searchKeywords?: Array<string>;
15
- item: DocsBlockItemModel;
15
+ item: DocsBlockItemDefinitionModel;
16
16
  behavior: DocsBlockBehaviorModel;
17
17
  editorOptions?: {
18
18
  onboarding?: DocsBlockOnboardingModel;
@@ -36,8 +36,8 @@ export declare class DocsBlockDefinition {
36
36
  /** Link to documentation or resource explaining the behavior of the block and its options */
37
37
  documentationLink: string | null;
38
38
  searchKeywords: Array<string>;
39
- /** Primary definition of the block. See DocsBlockItem for more information */
40
- item: DocsBlockItem;
39
+ /** Primary definition of the block. See DocsBlockItemDefinition for more information */
40
+ item: DocsBlockItemDefinition;
41
41
  /** Primary definition of the layered block behavior. See Block Behaviors for more information */
42
42
  behavior: DocsBlockBehavior;
43
43
  /** Top-level editor options for the block itself (but not for its items). This configuration has no bearing on front-end side of rendering and is only for editor */
@@ -1,6 +1,6 @@
1
1
  import { DocsBlockItemPropertyAnyDefinition } from "../properties/SDKDocsBlockProperty";
2
2
  import { DocsBlockVariant, DocsBlockVariantModel } from "./SDKDocsBlockVariant";
3
- export type DocsBlockItemModel = {
3
+ export type DocsBlockItemDefinitionModel = {
4
4
  properties: Array<DocsBlockItemPropertyAnyDefinition>;
5
5
  appearance?: {
6
6
  isBordered?: boolean;
@@ -9,7 +9,7 @@ export type DocsBlockItemModel = {
9
9
  variants: Array<DocsBlockVariantModel>;
10
10
  defaultVariantKey: string;
11
11
  };
12
- export declare class DocsBlockItem {
12
+ export declare class DocsBlockItemDefinition {
13
13
  /** All properties that user can potentially input via one block / item */
14
14
  properties: Array<DocsBlockItemPropertyAnyDefinition>;
15
15
  /** All appearance options for item wrapper */
@@ -23,5 +23,5 @@ export declare class DocsBlockItem {
23
23
  variants: Array<DocsBlockVariant>;
24
24
  /** Key of the default variant. There must always be at least one variant to point to */
25
25
  defaultVariantKey: string;
26
- constructor(model: DocsBlockItemModel);
26
+ constructor(model: DocsBlockItemDefinitionModel);
27
27
  }
@@ -11,6 +11,7 @@ export type DocsBlockVariantModel = {
11
11
  appearance?: {
12
12
  isBordered?: boolean;
13
13
  hasBackground?: boolean;
14
+ isEditorPresentationDifferent?: boolean;
14
15
  };
15
16
  };
16
17
  export declare class DocsBlockVariant {
@@ -36,6 +37,8 @@ export declare class DocsBlockVariant {
36
37
  isBordered: boolean;
37
38
  /** When background option is enabled, background color can be set for the item */
38
39
  hasBackground: boolean;
40
+ /** When enabled, signifies that variants renders differently in the editor and in the published version */
41
+ isEditorPresentationDifferent: boolean;
39
42
  };
40
43
  constructor(model: DocsBlockVariantModel);
41
44
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 5. Block definition
3
+ */
4
+ declare const block: import("../../SDKDocsBlockDefinition").DocsBlockDefinition;
5
+ /** 6. Block export */
6
+ export { block as Assets };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 5. Block definition
3
+ */
4
+ declare const block: import("../../SDKDocsBlockDefinition").DocsBlockDefinition;
5
+ /** 6. Block export */
6
+ export { block as Code };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 5. Block definition
3
+ */
4
+ declare const block: import("../../SDKDocsBlockDefinition").DocsBlockDefinition;
5
+ /** 6. Block export */
6
+ export { block as CodeReact };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 5. Block definition
3
+ */
4
+ declare const block: import("../../SDKDocsBlockDefinition").DocsBlockDefinition;
5
+ /** 6. Block export */
6
+ export { block as ComponentChecklist };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 5. Block definition
3
+ */
4
+ declare const block: import("../../SDKDocsBlockDefinition").DocsBlockDefinition;
5
+ /** 6. Block export */
6
+ export { block as ComponentChecklistAll };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 5. Block definition
3
+ */
4
+ declare const block: import("../../SDKDocsBlockDefinition").DocsBlockDefinition;
5
+ /** 6. Block export */
6
+ export { block as ComponentHealth };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 5. Block definition
3
+ */
4
+ declare const block: import("../../SDKDocsBlockDefinition").DocsBlockDefinition;
5
+ /** 6. Block export */
6
+ export { block as FigmaFrames };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 5. Block definition
3
+ */
4
+ declare const block: import("../../SDKDocsBlockDefinition").DocsBlockDefinition;
5
+ /**
6
+ * 6. Block export
7
+ */
8
+ export { block as Link };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 5. Block definition
3
+ */
4
+ declare const block: import("../../SDKDocsBlockDefinition").DocsBlockDefinition;
5
+ /** 6. Block export */
6
+ export { block as OmniMultiItem };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 5. Block definition
3
+ */
4
+ declare const block: import("../../SDKDocsBlockDefinition").DocsBlockDefinition;
5
+ /** 6. Block export */
6
+ export { block as OmniSingleItem };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 5. Block definition
3
+ */
4
+ declare const block: import("../../SDKDocsBlockDefinition").DocsBlockDefinition;
5
+ /** 6. Block export */
6
+ export { block as ReleaseNotes };
@@ -1,3 +1,4 @@
1
+ import { DocsBlockAssetPropertyPreviewContainerSize } from "../../../enums/SDKDocsBlockAssetPropertyPreviewContainerSize";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
3
  import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
4
  /** Asset property - Additional non-value options */
@@ -9,6 +10,12 @@ export type DocsBlockAssetPropertyData = DocsBlockPropertyData<Array<{
9
10
  }>> & {
10
11
  /** Selected asset ids */
11
12
  selectedPropertyIds?: Array<string>;
13
+ /** If enabled, search is visible */
14
+ showSearch?: boolean;
15
+ /** Preview container size */
16
+ previewContainerSize?: DocsBlockAssetPropertyPreviewContainerSize.centered | DocsBlockAssetPropertyPreviewContainerSize.naturalHeight;
17
+ /** If enabled, each assets uses this for background */
18
+ backgroundColor?: string;
12
19
  };
13
20
  /** Asset property - Definition model */
14
21
  export type DocsBlockAssetPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockAssetPropertyOptions;
@@ -1,7 +1,10 @@
1
1
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
2
  import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel, DocsBlockPropertyData } from "./SDKDocsBlockProperty";
3
3
  /** Code Sandbox property - Additional non-value options */
4
- export type DocsBlockCodeSandboxPropertyOptions = Record<string, never>;
4
+ export type DocsBlockCodeSandboxPropertyOptions = {
5
+ /** How should we render the code example in editor */
6
+ renderLayoutAs?: "previewOnTop" | "previewOnBottom" | "previewOnLeft" | "previewOnRight";
7
+ };
5
8
  /** Code Sandbox property - Data */
6
9
  export type DocsBlockCodeSandboxPropertyData = DocsBlockPropertyData<string> & {
7
10
  showCode?: boolean;
@@ -1,7 +1,12 @@
1
1
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
2
  import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
3
  /** Component property - Additional non-value options */
4
- export type DocsBlockComponentPropertyOptions = Record<string, never>;
4
+ export type DocsBlockComponentPropertyOptions = {
5
+ /** How should the tokens be rendered in editor */
6
+ renderLayoutAs?: "list" | "table";
7
+ /** Whether to allow selecting component custom properties. True by default */
8
+ allowPropertySelection?: boolean;
9
+ };
5
10
  /** Component property - Data */
6
11
  export type DocsBlockComponentPropertyData = DocsBlockPropertyData<Array<{
7
12
  entityId: string;
@@ -10,6 +10,8 @@ export type DocsBlockNumberPropertyOptions = {
10
10
  max: number;
11
11
  /** Step value */
12
12
  step: number;
13
+ /** Field placeholder */
14
+ placeholder?: string;
13
15
  };
14
16
  /** Number property - Data */
15
17
  export type DocsBlockNumberPropertyData = DocsBlockPropertyData<number> & Record<string, never>;
@@ -1,6 +1,7 @@
1
1
  import { RichTextSpan } from "../../../documentation/SDKDocumentationLegacyRichTextSpan";
2
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
3
3
  import { DocsBlockRichTextPropertyStyle } from "../../../enums/SDKDocsBlockRichTextPropertyStyle";
4
+ import { DocumentationLegacyCalloutType } from "../../../enums/SDKDocumentationLegacyCalloutType";
4
5
  import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
5
6
  /** RichText property - Additional non-value options */
6
7
  export type DocsBlockRichTextPropertyOptions = {
@@ -10,7 +11,10 @@ export type DocsBlockRichTextPropertyOptions = {
10
11
  style?: DocsBlockRichTextPropertyStyle;
11
12
  };
12
13
  /** RichText property - Data */
13
- export type DocsBlockRichTextPropertyData = DocsBlockPropertyData<Array<RichTextSpan>> & Record<string, never>;
14
+ export type DocsBlockRichTextPropertyData = DocsBlockPropertyData<Array<RichTextSpan>> & {
15
+ /** Selected token ids */
16
+ calloutType?: DocumentationLegacyCalloutType;
17
+ };
14
18
  /** RichText property - Definition model */
15
19
  export type DocsBlockRichTextPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockRichTextPropertyOptions;
16
20
  /** RichText property - Definition */
@@ -4,7 +4,7 @@ import { DocsBlockTextPropertyStyle } from "../../../enums/SDKDocsBlockTextPrope
4
4
  import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
5
5
  /** Text property - Additional non-value options */
6
6
  export type DocsBlockTextPropertyOptions = {
7
- /** Placeholder to show when textfield is empty */
7
+ /** Field placeholder */
8
8
  placeholder?: string;
9
9
  /** Default value to set when block is created */
10
10
  defaultValue?: string;
@@ -0,0 +1,14 @@
1
+ import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel, DocsBlockPropertyData } from "./SDKDocsBlockProperty";
3
+ /** Url property - Additional non-value options */
4
+ export type DocsBlockUrlPropertyOptions = {
5
+ urlValidationRegex?: string;
6
+ };
7
+ /** Url property - Data */
8
+ export type DocsBlockUrlPropertyData = DocsBlockPropertyData<string> & Record<string, never>;
9
+ /** Url property - Definition model */
10
+ export type DocsBlockUrlPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockUrlPropertyOptions;
11
+ /** Url property - Definition */
12
+ export declare class DocsBlockUrlPropertyDefinition extends DocsBlockPropertyDefinition<DocsBlockUrlPropertyOptions, DocsBlockUrlPropertyData> {
13
+ type: DocsBlockItemPropertyType.embedURL;
14
+ }
@@ -1,5 +1,6 @@
1
1
  import { DocsColorRef } from "../support/SDKDocsColorRef";
2
2
  import { DocsLinkRef } from "../support/SDKDocsLinkRef";
3
+ import { DocsBlockItem } from "./SDKDocsBlockItem";
3
4
  export type DocsBlockModel = {
4
5
  id: string;
5
6
  packageId: string;
@@ -8,12 +9,14 @@ export type DocsBlockModel = {
8
9
  appearance?: {
9
10
  itemBackgroundColor?: DocsColorRef;
10
11
  };
11
- data?: Array<{
12
- props: {
13
- [key: string]: object;
14
- };
15
- linksTo?: DocsLinkRef;
16
- }>;
12
+ data?: Array<DocsBlockItemDefinitionModel>;
13
+ };
14
+ export type DocsBlockItemDefinitionModel = {
15
+ id: string;
16
+ props: {
17
+ [key: string]: object;
18
+ };
19
+ linksTo?: DocsLinkRef;
17
20
  };
18
21
  export declare class DocsBlock {
19
22
  /** Unique identifier of the block */
@@ -29,19 +32,8 @@ export declare class DocsBlock {
29
32
  /** Background color of all items of the block. Can be further overriden on every item */
30
33
  itemBackgroundColor: DocsColorRef | null;
31
34
  };
32
- /** Static data represents data for items that are created without dynamic reference to entities in Supernova - an example of this would be a shortcut.
33
- * This is an array, because for blocks with items being able to form grids, we need more than a single definition (each item has its own settings then)
34
- * Property resolution:
35
- * data > default (in block property definition) > not set
36
- */
37
- data: Array<{
38
- /** Dynamic key coming from property.id block definition */
39
- props: {
40
- [key: string]: object;
41
- };
42
- /** Link where the item points to, if any. Must be enabled in behaviors */
43
- linksTo?: DocsLinkRef;
44
- }>;
35
+ /** Data of all items of the block */
36
+ data: Array<DocsBlockItem>;
45
37
  constructor(model: DocsBlockModel);
46
38
  /** Returns stored data of all properties. This will retrieve properties for item on the first position, ideal for single-item blocks */
47
39
  allPropertyDataForSingleItem(): Record<string, object> | null;
@@ -63,4 +55,6 @@ export declare class DocsBlock {
63
55
  updateLinkForItemAtIndex(index: number, link: DocsLinkRef | null): void;
64
56
  /** Update link for item at specific index */
65
57
  updateLinkForSingleItem(link: DocsLinkRef | null): void;
58
+ /** Constructs representation that can be used to write full object to remote */
59
+ toRemote(): DocsBlockModel;
66
60
  }
@@ -0,0 +1,21 @@
1
+ import { DocsLinkRef } from "../support/SDKDocsLinkRef";
2
+ export type DocsBlockItemModel = {
3
+ id: string;
4
+ props: {
5
+ [key: string]: object;
6
+ };
7
+ linksTo?: DocsLinkRef;
8
+ };
9
+ export declare class DocsBlockItem {
10
+ /** Unique identifier of the block item */
11
+ id: string;
12
+ /** Dynamic key coming from property.id block definition */
13
+ props: {
14
+ [key: string]: object;
15
+ };
16
+ /** Link where the item points to, if any. Must be enabled in behaviors */
17
+ linksTo: DocsLinkRef | undefined;
18
+ constructor(model: DocsBlockItemModel);
19
+ /** Constructs representation that can be used to write full object to remote */
20
+ toRemote(): DocsBlockItemModel;
21
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum DocsBlockAssetPropertyPreviewContainerSize {
2
+ /** Default. Image is centered within a container */
3
+ centered = "Centered",
4
+ /** The container has the height of the asset within */
5
+ naturalHeight = "NaturalHeight"
6
+ }
@@ -6,5 +6,7 @@ export declare enum DocsBlockBehaviorDataType {
6
6
  /** Asset type allows selection of asset entity and associated groups * */
7
7
  asset = "Asset",
8
8
  /** Component type allows selection of asset entity and associated groups * */
9
- component = "Component"
9
+ component = "Component",
10
+ /** Figma frame type allows selection of any frame coming from Figma * */
11
+ figmaFrame = "FigmaFrame"
10
12
  }
@@ -1,9 +1,11 @@
1
1
  export declare enum DocsBlockImagePropertyAspectRatio {
2
+ /** Default. Automatic aspect ratio */
3
+ auto = "Auto",
2
4
  /** 1:1 aspect ratio */
3
5
  square = "Square",
4
- /** 4:3 aspect ratio */
6
+ /** 3:2 aspect ratio */
5
7
  landscape = "Landscape",
6
- /** 3:4 aspect ratio */
8
+ /** 2:3 aspect ratio */
7
9
  portrait = "Portrait",
8
10
  /** 16:9 aspect ratio */
9
11
  wide = "Wide"
@@ -1,4 +1,6 @@
1
1
  export declare enum DocsBlockImagePropertyWidth {
2
+ /** Default. Translates to width: 100% */
3
+ full = "Full",
2
4
  /** width: 48px */
3
5
  icon = "Icon",
4
6
  /** width: 120px */
@@ -31,6 +31,8 @@ export declare enum DocsBlockItemPropertyType {
31
31
  /** Page property allows selection of custom page properties (columns) */
32
32
  /** Embed property allows user to input page to be embedded via URL */
33
33
  embedURL = "EmbedURL",
34
+ /** URL property allows user to input a valid URL */
35
+ url = "URL",
34
36
  /** Embed property allows user to input page to be embedded via iframe */
35
37
  /** Markdown property allows user to add markdown to render */
36
38
  markdown = "Markdown",
@@ -1,4 +1,5 @@
1
1
  export declare enum SourceType {
2
2
  figma = "Figma",
3
- tokenStudio = "TokenStudio"
3
+ tokenStudio = "TokenStudio",
4
+ figmaVariablesPlugin = "FigmaVariablesPlugin"
4
5
  }