@supernova-studio/model 0.54.5 → 0.54.7
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 +248 -200
- package/dist/index.d.ts +248 -200
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +673 -657
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/documentation-block-v2.ts +8 -0
- package/src/dsm/index.ts +1 -0
- package/src/dsm/membership/design-system-membership.ts +10 -0
- package/src/dsm/membership/index.ts +1 -0
package/package.json
CHANGED
|
@@ -264,9 +264,15 @@ export const PageBlockItemTextValue = z.object({
|
|
|
264
264
|
value: z.string(),
|
|
265
265
|
});
|
|
266
266
|
|
|
267
|
+
export const PageBlockItemSwatch = z.object({
|
|
268
|
+
id: z.string(),
|
|
269
|
+
selectedThemeIds: z.string().array(),
|
|
270
|
+
});
|
|
271
|
+
|
|
267
272
|
export const PageBlockItemTokenValue = z.object({
|
|
268
273
|
selectedPropertyIds: z.array(z.string()).optional(),
|
|
269
274
|
selectedThemeIds: z.array(z.string()).optional(),
|
|
275
|
+
swatches: z.array(PageBlockItemSwatch).optional(),
|
|
270
276
|
themeDisplayMode: PageBlockThemeDisplayMode.optional(),
|
|
271
277
|
value: z
|
|
272
278
|
.array(
|
|
@@ -299,6 +305,7 @@ export const PageBlockItemUrlValue = z.object({
|
|
|
299
305
|
|
|
300
306
|
export type PageBlockItemAssetValue = z.infer<typeof PageBlockItemAssetValue>;
|
|
301
307
|
export type PageBlockItemAssetPropertyValue = z.infer<typeof PageBlockItemAssetPropertyValue>;
|
|
308
|
+
export type PageBlockItemFigmaComponentValue = z.infer<typeof PageBlockItemFigmaComponentValue>;
|
|
302
309
|
export type PageBlockItemBooleanValue = z.infer<typeof PageBlockItemBooleanValue>;
|
|
303
310
|
export type PageBlockItemCodeValue = z.infer<typeof PageBlockItemCodeValue>;
|
|
304
311
|
export type PageBlockItemSandboxValue = z.infer<typeof PageBlockItemSandboxValue>;
|
|
@@ -317,6 +324,7 @@ export type PageBlockItemRichTextValue = z.infer<typeof PageBlockItemRichTextVal
|
|
|
317
324
|
export type PageBlockItemSingleSelectValue = z.infer<typeof PageBlockItemSingleSelectValue>;
|
|
318
325
|
export type PageBlockItemStorybookValue = z.infer<typeof PageBlockItemStorybookValue>;
|
|
319
326
|
export type PageBlockItemTextValue = z.infer<typeof PageBlockItemTextValue>;
|
|
327
|
+
export type PageBlockItemSwatch = z.infer<typeof PageBlockItemSwatch>;
|
|
320
328
|
export type PageBlockItemTokenValue = z.infer<typeof PageBlockItemTokenValue>;
|
|
321
329
|
export type PageBlockItemTokenPropertyValue = z.infer<typeof PageBlockItemTokenPropertyValue>;
|
|
322
330
|
export type PageBlockItemTokenTypeValue = z.infer<typeof PageBlockItemTokenTypeValue>;
|
package/src/dsm/index.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
export const DesignSystemMembership = z.object({
|
|
4
|
+
id: z.string(),
|
|
5
|
+
userId: z.string(),
|
|
6
|
+
designSystemId: z.string(),
|
|
7
|
+
workspaceMembershipId: z.string(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export type DesignSystemMembership = z.infer<typeof DesignSystemMembership>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./design-system-membership";
|