@supernova-studio/client 0.55.27 → 0.55.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/dist/index.d.mts +2258 -858
- package/dist/index.d.ts +2258 -858
- package/dist/index.js +46 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +45 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/documentation/group-v2.ts +9 -9
- package/src/api/dto/elements/documentation/page-v2.ts +8 -8
- package/src/api/dto/workspaces/membership.ts +13 -1
- package/src/api/endpoints/workspaces/workspace-members.ts +2 -2
- package/src/api/endpoints/workspaces/workspaces.ts +4 -0
- package/src/yjs/docs-editor/mock.ts +8 -8
package/dist/index.mjs
CHANGED
|
@@ -552,7 +552,8 @@ var Asset = z21.object({
|
|
|
552
552
|
properties: AssetProperties.nullish(),
|
|
553
553
|
state: AssetProcessStatus.optional(),
|
|
554
554
|
origin: AssetOrigin.optional(),
|
|
555
|
-
originKey: z21.string().optional()
|
|
555
|
+
originKey: z21.string().optional(),
|
|
556
|
+
createdByImportJobId: z21.string().optional()
|
|
556
557
|
});
|
|
557
558
|
var ResolvedAsset = Asset.extend({
|
|
558
559
|
url: z21.string()
|
|
@@ -1824,7 +1825,9 @@ var PageBlockGuideline = z40.object({
|
|
|
1824
1825
|
var PageBlockBaseV1 = z40.object({
|
|
1825
1826
|
persistentId: z40.string(),
|
|
1826
1827
|
type: PageBlockTypeV1,
|
|
1828
|
+
// V2 generic attributes
|
|
1827
1829
|
numberOfColumns: nullishToOptional(z40.number()),
|
|
1830
|
+
itemBackgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1828
1831
|
// Element linking
|
|
1829
1832
|
designObjectId: nullishToOptional(z40.string()),
|
|
1830
1833
|
designObjectIds: nullishToOptional(z40.array(z40.string())),
|
|
@@ -3126,7 +3129,8 @@ var DataSourceUploadRemote = z88.object({
|
|
|
3126
3129
|
remoteId: z88.string(),
|
|
3127
3130
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
3128
3131
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
3129
|
-
warnings: nullishToOptional(ImportWarning.array())
|
|
3132
|
+
warnings: nullishToOptional(ImportWarning.array()),
|
|
3133
|
+
isTokenTypeSplitEnabled: z88.boolean()
|
|
3130
3134
|
});
|
|
3131
3135
|
var DataSourceRemote = z88.discriminatedUnion("type", [
|
|
3132
3136
|
DataSourceFigmaRemote,
|
|
@@ -5686,9 +5690,17 @@ var DTOUserWorkspaceMembership = z202.object({
|
|
|
5686
5690
|
// when a workspace's subscription is downgraded to free tier
|
|
5687
5691
|
effectiveRole: DTOWorkspaceRole
|
|
5688
5692
|
});
|
|
5693
|
+
var DTOWorkspaceMember = z202.object({
|
|
5694
|
+
user: User,
|
|
5695
|
+
role: WorkspaceRoleSchema,
|
|
5696
|
+
effectiveRole: WorkspaceRoleSchema
|
|
5697
|
+
});
|
|
5689
5698
|
var DTOUserWorkspaceMembershipsResponse = z202.object({
|
|
5690
5699
|
membership: z202.array(DTOUserWorkspaceMembership)
|
|
5691
5700
|
});
|
|
5701
|
+
var DTOWorkspaceMembersListResponse = z202.object({
|
|
5702
|
+
members: z202.array(DTOWorkspaceMember)
|
|
5703
|
+
});
|
|
5692
5704
|
|
|
5693
5705
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5694
5706
|
var DTOAppBootstrapDataQuery = z203.object({
|
|
@@ -5816,13 +5828,13 @@ var DTODocumentationPageV2 = z210.object({
|
|
|
5816
5828
|
});
|
|
5817
5829
|
var DTOCreateDocumentationPageInputV2 = z210.object({
|
|
5818
5830
|
// Identifier
|
|
5819
|
-
persistentId: z210.string()
|
|
5831
|
+
persistentId: z210.string(),
|
|
5820
5832
|
// Page properties
|
|
5821
5833
|
title: z210.string(),
|
|
5822
5834
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5823
5835
|
// Page placement properties
|
|
5824
|
-
parentPersistentId: z210.string()
|
|
5825
|
-
afterPersistentId: z210.string().
|
|
5836
|
+
parentPersistentId: z210.string(),
|
|
5837
|
+
afterPersistentId: z210.string().nullish()
|
|
5826
5838
|
});
|
|
5827
5839
|
var DTOUpdateDocumentationPageInputV2 = z210.object({
|
|
5828
5840
|
// Identifier of the group to update
|
|
@@ -5835,17 +5847,17 @@ var DTOMoveDocumentationPageInputV2 = z210.object({
|
|
|
5835
5847
|
// Identifier of the group to update
|
|
5836
5848
|
id: z210.string(),
|
|
5837
5849
|
// Page placement properties
|
|
5838
|
-
parentPersistentId: z210.string()
|
|
5839
|
-
afterPersistentId: z210.string().
|
|
5850
|
+
parentPersistentId: z210.string(),
|
|
5851
|
+
afterPersistentId: z210.string().nullish()
|
|
5840
5852
|
});
|
|
5841
5853
|
var DTODuplicateDocumentationPageInputV2 = z210.object({
|
|
5842
5854
|
// Identifier of the page to duplicate from
|
|
5843
5855
|
id: z210.string(),
|
|
5844
5856
|
// New page persistent id
|
|
5845
|
-
persistentId: z210.string()
|
|
5857
|
+
persistentId: z210.string(),
|
|
5846
5858
|
// Page placement properties
|
|
5847
|
-
parentPersistentId: z210.string()
|
|
5848
|
-
afterPersistentId: z210.string().
|
|
5859
|
+
parentPersistentId: z210.string(),
|
|
5860
|
+
afterPersistentId: z210.string().nullish()
|
|
5849
5861
|
});
|
|
5850
5862
|
var DTODeleteDocumentationPageInputV2 = z210.object({
|
|
5851
5863
|
// Identifier
|
|
@@ -6071,13 +6083,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6071
6083
|
});
|
|
6072
6084
|
var DTOCreateDocumentationGroupInput = z218.object({
|
|
6073
6085
|
// Identifier
|
|
6074
|
-
persistentId: z218.string()
|
|
6086
|
+
persistentId: z218.string(),
|
|
6075
6087
|
// Group properties
|
|
6076
6088
|
title: z218.string(),
|
|
6077
6089
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6078
6090
|
// Group placement properties
|
|
6079
|
-
afterPersistentId: z218.string().
|
|
6080
|
-
parentPersistentId: z218.string()
|
|
6091
|
+
afterPersistentId: z218.string().nullish(),
|
|
6092
|
+
parentPersistentId: z218.string()
|
|
6081
6093
|
});
|
|
6082
6094
|
var DTOUpdateDocumentationGroupInput = z218.object({
|
|
6083
6095
|
// Identifier of the group to update
|
|
@@ -6090,21 +6102,21 @@ var DTOMoveDocumentationGroupInput = z218.object({
|
|
|
6090
6102
|
// Identifier of the group to update
|
|
6091
6103
|
id: z218.string(),
|
|
6092
6104
|
// Group placement properties
|
|
6093
|
-
parentPersistentId: z218.string()
|
|
6094
|
-
afterPersistentId: z218.string().
|
|
6105
|
+
parentPersistentId: z218.string(),
|
|
6106
|
+
afterPersistentId: z218.string().nullish()
|
|
6095
6107
|
});
|
|
6096
6108
|
var DTODuplicateDocumentationGroupInput = z218.object({
|
|
6097
6109
|
// Identifier of the group to duplicate from
|
|
6098
6110
|
id: z218.string(),
|
|
6099
6111
|
// New group persistent id
|
|
6100
|
-
persistentId: z218.string()
|
|
6112
|
+
persistentId: z218.string(),
|
|
6101
6113
|
// Group placement properties
|
|
6102
|
-
afterPersistentId: z218.string().
|
|
6103
|
-
parentPersistentId: z218.string()
|
|
6114
|
+
afterPersistentId: z218.string().nullish(),
|
|
6115
|
+
parentPersistentId: z218.string()
|
|
6104
6116
|
});
|
|
6105
6117
|
var DTOCreateDocumentationTabInput = z218.object({
|
|
6106
6118
|
// New group persistent id
|
|
6107
|
-
persistentId: z218.string()
|
|
6119
|
+
persistentId: z218.string(),
|
|
6108
6120
|
// If this is page, we will attempt to convert it to tab
|
|
6109
6121
|
// If this is tab group, we will add a new tab to it
|
|
6110
6122
|
fromItemPersistentId: z218.string(),
|
|
@@ -6796,7 +6808,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6796
6808
|
this.requestExecutor = requestExecutor;
|
|
6797
6809
|
}
|
|
6798
6810
|
list(workspaceId) {
|
|
6799
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
6811
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, DTOWorkspaceMembersListResponse, {
|
|
6800
6812
|
method: "GET"
|
|
6801
6813
|
});
|
|
6802
6814
|
}
|
|
@@ -6836,6 +6848,9 @@ var WorkspacesEndpoint = class {
|
|
|
6836
6848
|
}
|
|
6837
6849
|
});
|
|
6838
6850
|
}
|
|
6851
|
+
get(workspaceId) {
|
|
6852
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
6853
|
+
}
|
|
6839
6854
|
delete(workspaceId) {
|
|
6840
6855
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z244.any(), { method: "DELETE" });
|
|
6841
6856
|
}
|
|
@@ -10882,7 +10897,7 @@ var blocks = [
|
|
|
10882
10897
|
name: "Component checklist",
|
|
10883
10898
|
description: "Highlight specific component properties",
|
|
10884
10899
|
category: "Components",
|
|
10885
|
-
icon: "https://cdn-assets.supernova.io/blocks/icons/component-checklist.svg",
|
|
10900
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/v2/component-checklist.svg",
|
|
10886
10901
|
searchKeywords: ["components", "health", "properties", "overview", "status"],
|
|
10887
10902
|
item: {
|
|
10888
10903
|
properties: [
|
|
@@ -10944,7 +10959,7 @@ var blocks = [
|
|
|
10944
10959
|
name: "Component overview table",
|
|
10945
10960
|
description: "Show an overview of all components",
|
|
10946
10961
|
category: "Components",
|
|
10947
|
-
icon: "https://cdn-assets.supernova.io/blocks/icons/
|
|
10962
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/component-overview-table.svg",
|
|
10948
10963
|
searchKeywords: ["components", "health", "overview", "status"],
|
|
10949
10964
|
item: {
|
|
10950
10965
|
properties: [
|
|
@@ -11048,9 +11063,9 @@ var blocks = [
|
|
|
11048
11063
|
{
|
|
11049
11064
|
id: "io.supernova.block.figma-components",
|
|
11050
11065
|
name: "Figma component",
|
|
11051
|
-
description: "Display
|
|
11052
|
-
category: "
|
|
11053
|
-
icon: "https://cdn-assets.supernova.io/blocks/icons/component
|
|
11066
|
+
description: "Display components and variants from Figma",
|
|
11067
|
+
category: "Figma",
|
|
11068
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/figma-component.svg",
|
|
11054
11069
|
searchKeywords: ["variants", "properties"],
|
|
11055
11070
|
item: {
|
|
11056
11071
|
properties: [
|
|
@@ -11131,9 +11146,9 @@ var blocks = [
|
|
|
11131
11146
|
{
|
|
11132
11147
|
id: "io.supernova.block.figma-components-propstable",
|
|
11133
11148
|
name: "Figma component properties",
|
|
11134
|
-
description: "Display
|
|
11135
|
-
category: "
|
|
11136
|
-
icon: "https://cdn-assets.supernova.io/blocks/icons/component-
|
|
11149
|
+
description: "Display list of Figma component properties",
|
|
11150
|
+
category: "Figma",
|
|
11151
|
+
icon: "https://cdn-assets.supernova.io/blocks/icons/figma-component-properties.svg",
|
|
11137
11152
|
searchKeywords: ["variants", "properties", "props", "table"],
|
|
11138
11153
|
item: {
|
|
11139
11154
|
properties: [
|
|
@@ -12131,6 +12146,8 @@ export {
|
|
|
12131
12146
|
DTOWorkspaceInvitationInput,
|
|
12132
12147
|
DTOWorkspaceInvitationsListInput,
|
|
12133
12148
|
DTOWorkspaceInvitationsResponse,
|
|
12149
|
+
DTOWorkspaceMember,
|
|
12150
|
+
DTOWorkspaceMembersListResponse,
|
|
12134
12151
|
DTOWorkspaceResponse,
|
|
12135
12152
|
DTOWorkspaceRole,
|
|
12136
12153
|
DesignSystemMembersEndpoint,
|