@supernova-studio/model 0.46.0 → 0.46.1
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 +91 -4
- package/dist/index.d.ts +91 -4
- package/dist/index.js +18 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/documentation-block-v1.ts +1 -0
- package/src/dsm/elements/figma-node-reference.ts +3 -2
- package/src/dsm/published-doc-page.ts +0 -1
- package/src/dsm/version.ts +19 -1
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
1
|
// src/auth/plugin-oauth-request.ts
|
|
9
2
|
import { z } from "zod";
|
|
10
3
|
var PluginOAuthRequestSchema = z.object({
|
|
@@ -788,6 +781,7 @@ var PageBlockShortcut = z34.object({
|
|
|
788
781
|
description: nullishToOptional(z34.string()),
|
|
789
782
|
asset: nullishToOptional(PageBlockAsset),
|
|
790
783
|
documentationItemId: nullishToOptional(z34.string()),
|
|
784
|
+
pageHeadingId: nullishToOptional(z34.string()),
|
|
791
785
|
url: nullishToOptional(z34.string()),
|
|
792
786
|
openInNewTab: nullishToOptional(z34.boolean()),
|
|
793
787
|
urlPreview: nullishToOptional(PageBlockUrlPreview),
|
|
@@ -1647,7 +1641,8 @@ function traverseStructure(node, action) {
|
|
|
1647
1641
|
// src/dsm/elements/figma-node-reference.ts
|
|
1648
1642
|
import { z as z74 } from "zod";
|
|
1649
1643
|
var FigmaNodeReferenceOrigin = z74.object({
|
|
1650
|
-
sourceId: z74.string()
|
|
1644
|
+
sourceId: z74.string(),
|
|
1645
|
+
parentName: z74.string().optional()
|
|
1651
1646
|
});
|
|
1652
1647
|
var FigmaNodeReference = DesignElementBase.extend({
|
|
1653
1648
|
data: FigmaNodeReferenceData,
|
|
@@ -1900,8 +1895,8 @@ function traversePageItemsV2(pageItems, fn) {
|
|
|
1900
1895
|
}
|
|
1901
1896
|
var PageBlockDefinitionsMap = class {
|
|
1902
1897
|
constructor(definitions) {
|
|
1903
|
-
|
|
1904
|
-
|
|
1898
|
+
this.definitionsMap = /* @__PURE__ */ new Map();
|
|
1899
|
+
this.propertiesMap = /* @__PURE__ */ new Map();
|
|
1905
1900
|
definitions.forEach((d) => {
|
|
1906
1901
|
this.definitionsMap.set(d.id, d);
|
|
1907
1902
|
d.item.properties.forEach((p) => {
|
|
@@ -2944,7 +2939,6 @@ var PublishedDocPage = z118.object({
|
|
|
2944
2939
|
pathV1: z118.string(),
|
|
2945
2940
|
pathV2: z118.string(),
|
|
2946
2941
|
storagePath: z118.string(),
|
|
2947
|
-
fallbackPublicPath: z118.string().optional(),
|
|
2948
2942
|
locale: z118.string().optional(),
|
|
2949
2943
|
isPrivate: z118.boolean(),
|
|
2950
2944
|
isHidden: z118.boolean(),
|
|
@@ -2988,6 +2982,15 @@ var DesignSystemVersion = z120.object({
|
|
|
2988
2982
|
changeLog: z120.string(),
|
|
2989
2983
|
parentId: z120.string().optional()
|
|
2990
2984
|
});
|
|
2985
|
+
var VersionCreationJobStatus = z120.enum(["Success", "InProgress", "Error"]);
|
|
2986
|
+
var VersionCreationJob = z120.object({
|
|
2987
|
+
_id: z120.string().optional(),
|
|
2988
|
+
version: z120.string(),
|
|
2989
|
+
designSystemId: z120.string(),
|
|
2990
|
+
designSystemVersionId: nullishToOptional(z120.string()),
|
|
2991
|
+
status: VersionCreationJobStatus,
|
|
2992
|
+
errorMessage: nullishToOptional(z120.string())
|
|
2993
|
+
});
|
|
2991
2994
|
|
|
2992
2995
|
// src/codegen/export-jobs.ts
|
|
2993
2996
|
import { z as z121 } from "zod";
|
|
@@ -4775,6 +4778,8 @@ export {
|
|
|
4775
4778
|
UserProfile,
|
|
4776
4779
|
UserSession,
|
|
4777
4780
|
UserTest,
|
|
4781
|
+
VersionCreationJob,
|
|
4782
|
+
VersionCreationJobStatus,
|
|
4778
4783
|
Visibility,
|
|
4779
4784
|
VisibilityTokenData,
|
|
4780
4785
|
VisibilityValue,
|