@supernova-studio/client 1.67.0 → 1.68.0
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 +425 -1
- package/dist/index.d.ts +425 -1
- package/dist/index.js +23 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1874,6 +1874,7 @@ var ShallowDesignElement = z46.object({
|
|
|
1874
1874
|
type: DesignElementType,
|
|
1875
1875
|
brandPersistentId: z46.string().optional(),
|
|
1876
1876
|
collectionPersistentId: z46.string().optional(),
|
|
1877
|
+
collectionPersistentIds: z46.string().array(),
|
|
1877
1878
|
parentPersistentId: z46.string().optional(),
|
|
1878
1879
|
shortPersistentId: z46.string().optional(),
|
|
1879
1880
|
childType: DesignElementType.optional(),
|
|
@@ -3378,7 +3379,8 @@ var ThemeElementData = z93.object({
|
|
|
3378
3379
|
var ThemeOriginPart = z93.object({});
|
|
3379
3380
|
var ThemeOriginObject = z93.object({
|
|
3380
3381
|
id: z93.string(),
|
|
3381
|
-
name: z93.string()
|
|
3382
|
+
name: z93.string(),
|
|
3383
|
+
parentModeId: z93.string().optional()
|
|
3382
3384
|
});
|
|
3383
3385
|
var ThemeOriginSource = z93.object({
|
|
3384
3386
|
sourceId: z93.string(),
|
|
@@ -3390,7 +3392,8 @@ var ThemeOrigin = z93.object({
|
|
|
3390
3392
|
var Theme = DesignElementGroupableBase.extend(DesignElementBrandedPart.shape).extend({
|
|
3391
3393
|
origin: ThemeOrigin.optional(),
|
|
3392
3394
|
overrides: z93.array(ThemeOverride),
|
|
3393
|
-
codeName: z93.string()
|
|
3395
|
+
codeName: z93.string(),
|
|
3396
|
+
collectionPersistentIds: z93.string().array()
|
|
3394
3397
|
});
|
|
3395
3398
|
function mapPageBlockItemValuesV2(pageItems, definitionsMap, fn) {
|
|
3396
3399
|
traversePageBlockItemsV2(pageItems, (block, item) => {
|
|
@@ -3686,6 +3689,7 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
|
|
|
3686
3689
|
});
|
|
3687
3690
|
var CollectionOrigin = z99.object({
|
|
3688
3691
|
id: z99.string(),
|
|
3692
|
+
parentId: z99.string().optional(),
|
|
3689
3693
|
sourceId: z99.string()
|
|
3690
3694
|
});
|
|
3691
3695
|
var Collection = z99.object({
|
|
@@ -3715,11 +3719,14 @@ var Collection = z99.object({
|
|
|
3715
3719
|
});
|
|
3716
3720
|
var CollectionImportModelInput = z100.object({
|
|
3717
3721
|
id: z100.string(),
|
|
3718
|
-
name: z100.string()
|
|
3722
|
+
name: z100.string(),
|
|
3723
|
+
parentId: z100.string().optional(),
|
|
3724
|
+
parentPersistentId: z100.string().optional()
|
|
3719
3725
|
});
|
|
3720
3726
|
var CollectionImportModel = z100.object({
|
|
3721
3727
|
id: z100.string(),
|
|
3722
3728
|
name: z100.string(),
|
|
3729
|
+
parentPersistentId: z100.string().optional(),
|
|
3723
3730
|
origin: CollectionOrigin
|
|
3724
3731
|
});
|
|
3725
3732
|
var ImportModelBase = z101.object({
|
|
@@ -3828,12 +3835,16 @@ var ThemeImportModel = z106.object({
|
|
|
3828
3835
|
brandPersistentId: z106.string(),
|
|
3829
3836
|
originSource: ThemeOriginSource,
|
|
3830
3837
|
overrides: z106.array(ThemeOverrideImportModel),
|
|
3831
|
-
sortOrder: z106.number()
|
|
3838
|
+
sortOrder: z106.number(),
|
|
3839
|
+
collectionIds: z106.array(z106.string()).optional(),
|
|
3840
|
+
parentPersistentId: z106.string().optional()
|
|
3832
3841
|
});
|
|
3833
3842
|
var ThemeImportModelInput = z106.object({
|
|
3834
3843
|
meta: ObjectMeta,
|
|
3835
3844
|
originObjects: z106.array(ThemeOriginObject),
|
|
3836
|
-
overrides: z106.array(ThemeOverrideImportModelInput)
|
|
3845
|
+
overrides: z106.array(ThemeOverrideImportModelInput),
|
|
3846
|
+
collectionIds: z106.array(z106.string()).optional(),
|
|
3847
|
+
parentPersistentId: z106.string().optional()
|
|
3837
3848
|
});
|
|
3838
3849
|
var ThemeUpdateImportModel = z106.object({
|
|
3839
3850
|
themePersistentId: z106.string(),
|
|
@@ -7053,9 +7064,11 @@ var VariablesMapping = z235.object({
|
|
|
7053
7064
|
supernovaBrand: z235.string().min(1),
|
|
7054
7065
|
supernovaTheme: z235.string().min(1).nullable().optional()
|
|
7055
7066
|
});
|
|
7067
|
+
var VariableCollectionsSchema = z235.record(z235.string(), Collection2);
|
|
7068
|
+
var VariablesSchema = z235.record(z235.string(), Variable);
|
|
7056
7069
|
var FormattedCollections = z235.object({
|
|
7057
|
-
variableCollections:
|
|
7058
|
-
variables:
|
|
7070
|
+
variableCollections: VariableCollectionsSchema,
|
|
7071
|
+
variables: VariablesSchema,
|
|
7059
7072
|
variablesOrder: z235.string().array().optional(),
|
|
7060
7073
|
mappings: z235.array(VariablesMapping).optional()
|
|
7061
7074
|
});
|
|
@@ -20899,9 +20912,11 @@ export {
|
|
|
20899
20912
|
UsersEndpoint,
|
|
20900
20913
|
Variable,
|
|
20901
20914
|
VariableAlias,
|
|
20915
|
+
VariableCollectionsSchema,
|
|
20902
20916
|
VariableMode,
|
|
20903
20917
|
VariableValue,
|
|
20904
20918
|
VariablesMapping,
|
|
20919
|
+
VariablesSchema,
|
|
20905
20920
|
VersionRoomBaseYDoc,
|
|
20906
20921
|
VersionSQSPayload,
|
|
20907
20922
|
VersionStatsEndpoint,
|