@supernova-studio/model 0.8.0 → 0.9.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 +87 -11
- package/dist/index.d.ts +87 -11
- package/dist/index.js +45 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +73 -64
- 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/data/documentation-block-v2.ts +9 -1
- package/src/workspace/workspace-context.ts +3 -1
package/package.json
CHANGED
|
@@ -241,6 +241,7 @@ export type PageBlockFrame = z.infer<typeof PageBlockFrame>;
|
|
|
241
241
|
export type PageBlockFrameOrigin = z.infer<typeof PageBlockFrameOrigin>;
|
|
242
242
|
export type PageBlockAsset = z.infer<typeof PageBlockAsset>;
|
|
243
243
|
export type PageBlockTableColumn = z.infer<typeof PageBlockTableColumn>;
|
|
244
|
+
export type PageBlockTheme = z.infer<typeof PageBlockTheme>;
|
|
244
245
|
|
|
245
246
|
//
|
|
246
247
|
// Block
|
|
@@ -13,12 +13,14 @@ export const PageBlockImageType = z.enum(["Upload", "Asset", "FigmaFrame"]);
|
|
|
13
13
|
export const PageBlockImageAlignment = z.enum(["Left", "Center", "Stretch"]);
|
|
14
14
|
export const PageBlockTableCellAlignment = z.enum(["Left", "Center", "Right"]);
|
|
15
15
|
export const PageBlockPreviewContainerSize = z.enum(["Centered", "NaturalHeight"]);
|
|
16
|
+
export const PageBlockThemeDisplayMode = z.enum(["Split", "Override"]);
|
|
16
17
|
|
|
17
18
|
export type PageBlockLinkType = z.infer<typeof PageBlockLinkType>;
|
|
18
19
|
export type PageBlockImageType = z.infer<typeof PageBlockImageType>;
|
|
19
20
|
export type PageBlockImageAlignment = z.infer<typeof PageBlockImageAlignment>;
|
|
20
21
|
export type PageBlockTableCellAlignment = z.infer<typeof PageBlockTableCellAlignment>;
|
|
21
22
|
export type PageBlockPreviewContainerSize = z.infer<typeof PageBlockPreviewContainerSize>;
|
|
23
|
+
export type PageBlockThemeDisplayMode = z.infer<typeof PageBlockThemeDisplayMode>;
|
|
22
24
|
|
|
23
25
|
//
|
|
24
26
|
// Definitions - Block
|
|
@@ -122,6 +124,7 @@ export const PageBlockItemSandboxValue = z.object({
|
|
|
122
124
|
showCode: z.boolean().optional(),
|
|
123
125
|
backgroundColor: z.string().optional(),
|
|
124
126
|
alignPreview: z.enum(["Left", "Center"]).optional(),
|
|
127
|
+
previewHeight: z.number().optional(),
|
|
125
128
|
value: z.string(),
|
|
126
129
|
});
|
|
127
130
|
|
|
@@ -195,11 +198,16 @@ export const PageBlockItemTextValue = z.object({
|
|
|
195
198
|
export const PageBlockItemTokenValue = z.object({
|
|
196
199
|
selectedPropertyIds: z.array(z.string()).optional(),
|
|
197
200
|
selectedThemeIds: z.array(z.string()).optional(),
|
|
198
|
-
themeDisplayMode:
|
|
201
|
+
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
199
202
|
value: z.array(
|
|
200
203
|
z.object({
|
|
201
204
|
entityId: z.string(),
|
|
202
205
|
entityType: z.enum(["Token", "TokenGroup"]),
|
|
206
|
+
entityMeta: z
|
|
207
|
+
.object({
|
|
208
|
+
showNestedGroups: z.boolean().optional(),
|
|
209
|
+
})
|
|
210
|
+
.optional(),
|
|
203
211
|
})
|
|
204
212
|
),
|
|
205
213
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { ProductCodeSchema } from "../billing";
|
|
2
1
|
import { z } from "zod";
|
|
2
|
+
import { ProductCodeSchema } from "../billing";
|
|
3
|
+
import { WorkspaceIpSettings } from "./workspace";
|
|
3
4
|
|
|
4
5
|
export const WorkspaceContext = z.object({
|
|
5
6
|
workspaceId: z.string(),
|
|
6
7
|
product: ProductCodeSchema,
|
|
8
|
+
ipWhitelist: WorkspaceIpSettings,
|
|
7
9
|
publicDesignSystem: z.boolean().optional(),
|
|
8
10
|
});
|
|
9
11
|
|