@supernova-studio/client 0.59.7 → 0.59.9
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 +645 -61
- package/dist/index.d.ts +645 -61
- package/dist/index.js +94 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +94 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/endpoints/codegen/pipelines.ts +8 -1
- package/src/api/payloads/export/pipeline.ts +26 -2
- package/src/yjs/docs-editor/mock.ts +54 -16
package/dist/index.js
CHANGED
|
@@ -3927,6 +3927,16 @@ var UserNotificationSettings = _zod.z.object({
|
|
|
3927
3927
|
});
|
|
3928
3928
|
var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3929
3929
|
var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3930
|
+
var UserTheme = _zod.z.object({
|
|
3931
|
+
preset: _zod.z.enum(["Custom", "Default", "HighContrast", "DefaultDark", "HighContrastDark", "SpaceBlue", "DarkGrey"]).optional(),
|
|
3932
|
+
backgroundColor: _zod.z.string().optional(),
|
|
3933
|
+
accentColor: _zod.z.string().optional(),
|
|
3934
|
+
contrast: _zod.z.number().min(16).max(100).optional(),
|
|
3935
|
+
isSecondaryEnabled: _zod.z.boolean().optional(),
|
|
3936
|
+
secondaryBackgroundColor: _zod.z.string().optional(),
|
|
3937
|
+
secondaryContrast: _zod.z.number().min(16).max(100).optional(),
|
|
3938
|
+
isEditorWhite: _zod.z.boolean().optional()
|
|
3939
|
+
});
|
|
3930
3940
|
var UserOnboarding = _zod.z.object({
|
|
3931
3941
|
companyName: _zod.z.string().optional(),
|
|
3932
3942
|
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
@@ -3945,7 +3955,8 @@ var UserProfile = _zod.z.object({
|
|
|
3945
3955
|
name: _zod.z.string(),
|
|
3946
3956
|
avatar: _zod.z.string().optional(),
|
|
3947
3957
|
nickname: _zod.z.string().optional(),
|
|
3948
|
-
onboarding: UserOnboarding.optional()
|
|
3958
|
+
onboarding: UserOnboarding.optional(),
|
|
3959
|
+
theme: UserTheme.optional()
|
|
3949
3960
|
});
|
|
3950
3961
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3951
3962
|
avatar: true
|
|
@@ -4346,7 +4357,8 @@ var DesignSystemVersionRoomInitialState = _zod.z.object({
|
|
|
4346
4357
|
pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
|
|
4347
4358
|
groupSnapshots: _zod.z.array(ElementGroupSnapshot),
|
|
4348
4359
|
pageApprovals: _zod.z.array(DocumentationPageApproval),
|
|
4349
|
-
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4360
|
+
internalSettings: DesignSystemVersionRoomInternalSettings,
|
|
4361
|
+
pageHashes: _zod.z.record(_zod.z.string()).optional()
|
|
4350
4362
|
});
|
|
4351
4363
|
var DesignSystemVersionRoomUpdate = _zod.z.object({
|
|
4352
4364
|
pages: _zod.z.array(DocumentationPageV2),
|
|
@@ -5884,8 +5896,26 @@ var DTOPipelineCreateBody = _zod.z.object({
|
|
|
5884
5896
|
webhookUrl: _zod.z.string().nullish()
|
|
5885
5897
|
})
|
|
5886
5898
|
});
|
|
5887
|
-
var DTOPipelineUpdateBody =
|
|
5888
|
-
|
|
5899
|
+
var DTOPipelineUpdateBody = _zod.z.object({
|
|
5900
|
+
exporterId: _zod.z.string().optional(),
|
|
5901
|
+
name: _zod.z.string().optional(),
|
|
5902
|
+
isEnabled: _zod.z.boolean().optional(),
|
|
5903
|
+
eventType: PipelineEventType.optional(),
|
|
5904
|
+
brandPersistentId: _zod.z.string().optional(),
|
|
5905
|
+
themePersistentId: _zod.z.string().optional(),
|
|
5906
|
+
themePersistentIds: _zod.z.string().array().optional(),
|
|
5907
|
+
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
5908
|
+
destination: PipelineDestinationType.optional(),
|
|
5909
|
+
gitQuery: GitObjectsQuery.optional(),
|
|
5910
|
+
destinations: _zod.z.object({
|
|
5911
|
+
s3: ExporterDestinationS3.nullish(),
|
|
5912
|
+
azure: ExporterDestinationAzure.nullish(),
|
|
5913
|
+
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5914
|
+
github: ExporterDestinationGithub.nullish(),
|
|
5915
|
+
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5916
|
+
documentation: ExporterDestinationDocs.nullish(),
|
|
5917
|
+
webhookUrl: _zod.z.string().nullish()
|
|
5918
|
+
}).optional()
|
|
5889
5919
|
});
|
|
5890
5920
|
var DTOPipelineTriggerBody = _zod.z.object({
|
|
5891
5921
|
designSystemVersionId: _zod.z.string()
|
|
@@ -7474,6 +7504,12 @@ var PipelinesEndpoint = class {
|
|
|
7474
7504
|
method: "POST"
|
|
7475
7505
|
});
|
|
7476
7506
|
}
|
|
7507
|
+
update(designSystemId, pipelineId, payload) {
|
|
7508
|
+
return this.requestExecutor.json(`/design-systems/${designSystemId}/pipelines/${pipelineId}`, DTOPipelineResponse, {
|
|
7509
|
+
body: payload,
|
|
7510
|
+
method: "PUT"
|
|
7511
|
+
});
|
|
7512
|
+
}
|
|
7477
7513
|
trigger(workspaceId, pipelineId, payload) {
|
|
7478
7514
|
return this.requestExecutor.json(
|
|
7479
7515
|
`/codegen/workspaces/${workspaceId}/pipelines/${pipelineId}/trigger`,
|
|
@@ -11994,49 +12030,87 @@ var blocks = [
|
|
|
11994
12030
|
},
|
|
11995
12031
|
{
|
|
11996
12032
|
id: "io.supernova.block.assets",
|
|
11997
|
-
name: "
|
|
12033
|
+
name: "Vector assets",
|
|
11998
12034
|
description: "Display icons or illustrations",
|
|
11999
12035
|
category: "Assets",
|
|
12000
12036
|
icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
|
|
12001
|
-
searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
|
|
12037
|
+
searchKeywords: ["icons", "illustrations", "grid", "svg", "logos", "vectors"],
|
|
12002
12038
|
item: {
|
|
12003
|
-
properties: [
|
|
12004
|
-
|
|
12039
|
+
properties: [
|
|
12040
|
+
{
|
|
12041
|
+
id: "assets",
|
|
12042
|
+
name: "Assets",
|
|
12043
|
+
type: "Asset",
|
|
12044
|
+
options: {}
|
|
12045
|
+
}
|
|
12046
|
+
],
|
|
12047
|
+
appearance: {
|
|
12048
|
+
isBordered: true,
|
|
12049
|
+
hasBackground: false
|
|
12050
|
+
},
|
|
12005
12051
|
variants: [
|
|
12006
12052
|
{
|
|
12007
12053
|
id: "default",
|
|
12008
12054
|
name: "Simple grid",
|
|
12009
12055
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
|
|
12010
|
-
description: "A simple grid
|
|
12011
|
-
layout: {
|
|
12056
|
+
description: "A simple grid. Both the title and description are displayed below the preview.",
|
|
12057
|
+
layout: {
|
|
12058
|
+
type: "Column",
|
|
12059
|
+
children: ["assets"],
|
|
12060
|
+
columnAlign: "Start",
|
|
12061
|
+
columnResizing: "Fill",
|
|
12062
|
+
gap: "Medium"
|
|
12063
|
+
},
|
|
12012
12064
|
maxColumns: 8,
|
|
12013
|
-
defaultColumns:
|
|
12065
|
+
defaultColumns: 4,
|
|
12014
12066
|
appearance: {}
|
|
12015
12067
|
},
|
|
12016
12068
|
{
|
|
12017
12069
|
id: "square-grid",
|
|
12018
12070
|
name: "Square grid",
|
|
12019
12071
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
|
|
12020
|
-
description: "Bordered square grid tailored for displaying icon assets.
|
|
12021
|
-
layout: {
|
|
12072
|
+
description: "Bordered square grid tailored for displaying icon assets.",
|
|
12073
|
+
layout: {
|
|
12074
|
+
type: "Column",
|
|
12075
|
+
children: ["assets"],
|
|
12076
|
+
columnAlign: "Start",
|
|
12077
|
+
columnResizing: "Fill",
|
|
12078
|
+
gap: "Medium"
|
|
12079
|
+
},
|
|
12022
12080
|
maxColumns: 8,
|
|
12023
|
-
defaultColumns:
|
|
12024
|
-
appearance: {
|
|
12081
|
+
defaultColumns: 4,
|
|
12082
|
+
appearance: {
|
|
12083
|
+
isEditorPresentationDifferent: true
|
|
12084
|
+
}
|
|
12025
12085
|
},
|
|
12026
12086
|
{
|
|
12027
12087
|
id: "borderless-grid",
|
|
12028
12088
|
name: "Borderless grid",
|
|
12029
12089
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
|
|
12030
|
-
description: "Borderless grid, perfect for displaying assets of the same height.
|
|
12031
|
-
layout: {
|
|
12090
|
+
description: "Borderless grid, perfect for displaying vector assets of the same height.",
|
|
12091
|
+
layout: {
|
|
12092
|
+
type: "Column",
|
|
12093
|
+
children: ["assets"],
|
|
12094
|
+
columnAlign: "Start",
|
|
12095
|
+
columnResizing: "Fill",
|
|
12096
|
+
gap: "Medium"
|
|
12097
|
+
},
|
|
12032
12098
|
maxColumns: 8,
|
|
12033
|
-
defaultColumns:
|
|
12034
|
-
appearance: {
|
|
12099
|
+
defaultColumns: 4,
|
|
12100
|
+
appearance: {
|
|
12101
|
+
isEditorPresentationDifferent: true
|
|
12102
|
+
}
|
|
12035
12103
|
}
|
|
12036
12104
|
],
|
|
12037
12105
|
defaultVariantKey: "default"
|
|
12038
12106
|
},
|
|
12039
|
-
behavior: {
|
|
12107
|
+
behavior: {
|
|
12108
|
+
dataType: "Asset",
|
|
12109
|
+
entities: {
|
|
12110
|
+
selectionType: "EntityAndGroup",
|
|
12111
|
+
maxSelected: 0
|
|
12112
|
+
}
|
|
12113
|
+
},
|
|
12040
12114
|
editorOptions: {
|
|
12041
12115
|
onboarding: {
|
|
12042
12116
|
helpText: "Display a grid of icons or illustrations.",
|