@supernova-studio/model 0.31.0 → 0.32.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 +329 -279
- package/dist/index.d.ts +329 -279
- package/dist/index.js +18 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/codegen/pulsar.ts +5 -5
- package/src/dsm/elements/data/documentation-block-v1.ts +1 -0
- package/src/dsm/elements/data/documentation-block-v2.ts +14 -13
package/package.json
CHANGED
package/src/codegen/pulsar.ts
CHANGED
|
@@ -51,13 +51,13 @@ export const PulsarContributionVariant = z.object({
|
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
export const PulsarCustomBlock = z.object({
|
|
54
|
-
title: z.string(),
|
|
54
|
+
title: nullishToOptional(z.string()),
|
|
55
55
|
key: z.string(),
|
|
56
|
-
category: z.string(),
|
|
56
|
+
category: nullishToOptional(z.string()),
|
|
57
57
|
description: nullishToOptional(z.string()),
|
|
58
|
-
iconURL: z.string(),
|
|
59
|
-
mode: z.enum(["array", "block"]),
|
|
60
|
-
properties: z.array(PulsarBaseProperty),
|
|
58
|
+
iconURL: nullishToOptional(z.string()),
|
|
59
|
+
mode: nullishToOptional(z.enum(["array", "block"])),
|
|
60
|
+
properties: nullishToOptional(z.array(PulsarBaseProperty)).transform(v => v ?? []),
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
//
|
|
@@ -244,6 +244,7 @@ export type PageBlockTableColumn = z.infer<typeof PageBlockTableColumn>;
|
|
|
244
244
|
export type PageBlockTheme = z.infer<typeof PageBlockTheme>;
|
|
245
245
|
export type PageBlockShortcut = z.infer<typeof PageBlockShortcut>;
|
|
246
246
|
export type PageBlockCustomBlockPropertyValue = z.infer<typeof PageBlockCustomBlockPropertyValue>;
|
|
247
|
+
export type PageBlockCustomBlockPropertyImageValue = z.infer<typeof PageBlockCustomBlockPropertyImageValue>;
|
|
247
248
|
|
|
248
249
|
//
|
|
249
250
|
// Block
|
|
@@ -24,22 +24,21 @@ export type PageBlockThemeDisplayMode = z.infer<typeof PageBlockThemeDisplayMode
|
|
|
24
24
|
// Definitions - Block
|
|
25
25
|
//
|
|
26
26
|
|
|
27
|
+
export const PageBlockImageResourceReference = z.object({
|
|
28
|
+
resourceId: z.string(),
|
|
29
|
+
url: z.string(),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export const PageBlockResourceFrameNodeReference = z.object({
|
|
33
|
+
sourceId: z.string(),
|
|
34
|
+
frameReferenceId: z.string(),
|
|
35
|
+
});
|
|
36
|
+
|
|
27
37
|
export const PageBlockImageReference = z.object({
|
|
28
38
|
type: PageBlockImageType,
|
|
29
39
|
|
|
30
|
-
resource:
|
|
31
|
-
|
|
32
|
-
url: z.string(),
|
|
33
|
-
resourceId: z.string(),
|
|
34
|
-
})
|
|
35
|
-
.optional(),
|
|
36
|
-
|
|
37
|
-
figmaFile: z
|
|
38
|
-
.object({
|
|
39
|
-
sourceId: z.string(),
|
|
40
|
-
frameReferenceId: z.string(),
|
|
41
|
-
})
|
|
42
|
-
.optional(),
|
|
40
|
+
resource: PageBlockImageResourceReference.optional(),
|
|
41
|
+
figmaFile: PageBlockResourceFrameNodeReference.optional(),
|
|
43
42
|
});
|
|
44
43
|
|
|
45
44
|
export const PageBlockColorV2 = z.object({
|
|
@@ -92,6 +91,8 @@ export const PageBlockDataV2 = z.object({
|
|
|
92
91
|
items: z.array(PageBlockItemV2),
|
|
93
92
|
});
|
|
94
93
|
|
|
94
|
+
export type PageBlockImageResourceReference = z.infer<typeof PageBlockImageResourceReference>;
|
|
95
|
+
export type PageBlockResourceFrameNodeReference = z.infer<typeof PageBlockResourceFrameNodeReference>;
|
|
95
96
|
export type PageBlockImageReference = z.infer<typeof PageBlockImageReference>;
|
|
96
97
|
export type PageBlockColorV2 = z.infer<typeof PageBlockColorV2>;
|
|
97
98
|
export type PageBlockAssetEntityMeta = z.infer<typeof PageBlockAssetEntityMeta>;
|