@supernova-studio/client 0.59.8 → 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 +233 -39
- package/dist/index.d.ts +233 -39
- package/dist/index.js +82 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +82 -19
- 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
|
@@ -4357,7 +4357,8 @@ var DesignSystemVersionRoomInitialState = _zod.z.object({
|
|
|
4357
4357
|
pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
|
|
4358
4358
|
groupSnapshots: _zod.z.array(ElementGroupSnapshot),
|
|
4359
4359
|
pageApprovals: _zod.z.array(DocumentationPageApproval),
|
|
4360
|
-
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4360
|
+
internalSettings: DesignSystemVersionRoomInternalSettings,
|
|
4361
|
+
pageHashes: _zod.z.record(_zod.z.string()).optional()
|
|
4361
4362
|
});
|
|
4362
4363
|
var DesignSystemVersionRoomUpdate = _zod.z.object({
|
|
4363
4364
|
pages: _zod.z.array(DocumentationPageV2),
|
|
@@ -5895,8 +5896,26 @@ var DTOPipelineCreateBody = _zod.z.object({
|
|
|
5895
5896
|
webhookUrl: _zod.z.string().nullish()
|
|
5896
5897
|
})
|
|
5897
5898
|
});
|
|
5898
|
-
var DTOPipelineUpdateBody =
|
|
5899
|
-
|
|
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()
|
|
5900
5919
|
});
|
|
5901
5920
|
var DTOPipelineTriggerBody = _zod.z.object({
|
|
5902
5921
|
designSystemVersionId: _zod.z.string()
|
|
@@ -7485,6 +7504,12 @@ var PipelinesEndpoint = class {
|
|
|
7485
7504
|
method: "POST"
|
|
7486
7505
|
});
|
|
7487
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
|
+
}
|
|
7488
7513
|
trigger(workspaceId, pipelineId, payload) {
|
|
7489
7514
|
return this.requestExecutor.json(
|
|
7490
7515
|
`/codegen/workspaces/${workspaceId}/pipelines/${pipelineId}/trigger`,
|
|
@@ -12005,49 +12030,87 @@ var blocks = [
|
|
|
12005
12030
|
},
|
|
12006
12031
|
{
|
|
12007
12032
|
id: "io.supernova.block.assets",
|
|
12008
|
-
name: "
|
|
12033
|
+
name: "Vector assets",
|
|
12009
12034
|
description: "Display icons or illustrations",
|
|
12010
12035
|
category: "Assets",
|
|
12011
12036
|
icon: "https://cdn-assets.supernova.io/blocks/icons/v2/assets.svg",
|
|
12012
|
-
searchKeywords: ["icons", "illustrations", "grid", "svg", "logos"],
|
|
12037
|
+
searchKeywords: ["icons", "illustrations", "grid", "svg", "logos", "vectors"],
|
|
12013
12038
|
item: {
|
|
12014
|
-
properties: [
|
|
12015
|
-
|
|
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
|
+
},
|
|
12016
12051
|
variants: [
|
|
12017
12052
|
{
|
|
12018
12053
|
id: "default",
|
|
12019
12054
|
name: "Simple grid",
|
|
12020
12055
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-simple-grid.svg",
|
|
12021
|
-
description: "A simple grid
|
|
12022
|
-
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
|
+
},
|
|
12023
12064
|
maxColumns: 8,
|
|
12024
|
-
defaultColumns:
|
|
12065
|
+
defaultColumns: 4,
|
|
12025
12066
|
appearance: {}
|
|
12026
12067
|
},
|
|
12027
12068
|
{
|
|
12028
12069
|
id: "square-grid",
|
|
12029
12070
|
name: "Square grid",
|
|
12030
12071
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-square-grid.svg",
|
|
12031
|
-
description: "Bordered square grid tailored for displaying icon assets.
|
|
12032
|
-
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
|
+
},
|
|
12033
12080
|
maxColumns: 8,
|
|
12034
|
-
defaultColumns:
|
|
12035
|
-
appearance: {
|
|
12081
|
+
defaultColumns: 4,
|
|
12082
|
+
appearance: {
|
|
12083
|
+
isEditorPresentationDifferent: true
|
|
12084
|
+
}
|
|
12036
12085
|
},
|
|
12037
12086
|
{
|
|
12038
12087
|
id: "borderless-grid",
|
|
12039
12088
|
name: "Borderless grid",
|
|
12040
12089
|
image: "https://cdn-assets.supernova.io/blocks/variants/assets-borderless-grid.svg",
|
|
12041
|
-
description: "Borderless grid, perfect for displaying assets of the same height.
|
|
12042
|
-
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
|
+
},
|
|
12043
12098
|
maxColumns: 8,
|
|
12044
|
-
defaultColumns:
|
|
12045
|
-
appearance: {
|
|
12099
|
+
defaultColumns: 4,
|
|
12100
|
+
appearance: {
|
|
12101
|
+
isEditorPresentationDifferent: true
|
|
12102
|
+
}
|
|
12046
12103
|
}
|
|
12047
12104
|
],
|
|
12048
12105
|
defaultVariantKey: "default"
|
|
12049
12106
|
},
|
|
12050
|
-
behavior: {
|
|
12107
|
+
behavior: {
|
|
12108
|
+
dataType: "Asset",
|
|
12109
|
+
entities: {
|
|
12110
|
+
selectionType: "EntityAndGroup",
|
|
12111
|
+
maxSelected: 0
|
|
12112
|
+
}
|
|
12113
|
+
},
|
|
12051
12114
|
editorOptions: {
|
|
12052
12115
|
onboarding: {
|
|
12053
12116
|
helpText: "Display a grid of icons or illustrations.",
|