@supernova-studio/model 1.87.3 → 1.87.4

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.mjs CHANGED
@@ -4464,153 +4464,153 @@ var PageBlockDefinition = z112.object({
4464
4464
  appearance: PageBlockDefinitionAppearance.optional()
4465
4465
  });
4466
4466
 
4467
- // src/dsm/documentation/group.ts
4467
+ // src/dsm/documentation/configuration.ts
4468
4468
  import { z as z113 } from "zod";
4469
- var DocumentationPageGroup = z113.object({
4470
- type: z113.literal("ElementGroup"),
4471
- childType: z113.literal("DocumentationPage"),
4472
- id: z113.string(),
4473
- persistentId: z113.string(),
4474
- shortPersistentId: z113.string(),
4469
+ var defaultDocsRenderCodePackageJson = `{
4470
+ "name": "supernova-live-react",
4471
+ "version": "1.0.0",
4472
+ "description": "Live React Code Packager",
4473
+ "keywords": ["react", "supernova"],
4474
+ "main": "src/index.js",
4475
+ "dependencies": {
4476
+ "react-dom": "latest",
4477
+ "react": "latest"
4478
+ },
4479
+ "devDependencies": {
4480
+ "@babel/runtime": "7.13.8",
4481
+ "typescript": "4.1.3"
4482
+ },
4483
+ "scripts": {
4484
+ "start": "react-scripts start",
4485
+ "build": "react-scripts build",
4486
+ "test": "react-scripts test --env=jsdom",
4487
+ "eject": "react-scripts eject"
4488
+ },
4489
+ "browserslist": [">0.2%", "not dead", "not ie <= 11", "not op_mini all"]
4490
+ }`;
4491
+ var DocumentationConfiguration = z113.object({
4492
+ // Basic
4475
4493
  designSystemVersionId: z113.string(),
4476
- parentPersistentId: z113.string().nullish(),
4477
- sortOrder: z113.number(),
4478
- title: z113.string(),
4479
- slug: z113.string(),
4480
- userSlug: z113.string().nullish(),
4481
4494
  createdAt: z113.coerce.date(),
4482
- updatedAt: z113.coerce.date()
4495
+ updatedAt: z113.coerce.date(),
4496
+ // Configuration
4497
+ isTabbedLayoutEnabled: z113.boolean(),
4498
+ storybookEmbedErrorMessage: z113.string().optional(),
4499
+ renderCodePackageJson: z113.string().optional(),
4500
+ selectedBrandPersistentId: z113.string().optional(),
4501
+ serveDefaultVersionOnly: z113.boolean(),
4502
+ isPublic: z113.boolean()
4483
4503
  });
4484
4504
 
4485
- // src/dsm/documentation/link-preview.ts
4505
+ // src/dsm/documentation/group.ts
4486
4506
  import { z as z114 } from "zod";
4487
- var DocumentationLinkPreview = z114.object({
4488
- title: z114.string().optional(),
4489
- description: z114.string().optional(),
4490
- thumbnail: PageBlockImageReference.optional()
4507
+ var DocumentationPageGroup = z114.object({
4508
+ type: z114.literal("ElementGroup"),
4509
+ childType: z114.literal("DocumentationPage"),
4510
+ id: z114.string(),
4511
+ persistentId: z114.string(),
4512
+ shortPersistentId: z114.string(),
4513
+ designSystemVersionId: z114.string(),
4514
+ parentPersistentId: z114.string().nullish(),
4515
+ sortOrder: z114.number(),
4516
+ title: z114.string(),
4517
+ slug: z114.string(),
4518
+ userSlug: z114.string().nullish(),
4519
+ createdAt: z114.coerce.date(),
4520
+ updatedAt: z114.coerce.date()
4491
4521
  });
4492
4522
 
4493
- // src/dsm/documentation/page-anchor.ts
4523
+ // src/dsm/documentation/link-preview.ts
4494
4524
  import { z as z115 } from "zod";
4495
- var DocumentationPageAnchor = z115.object({
4496
- blockId: z115.string(),
4497
- level: z115.number(),
4498
- text: z115.string()
4525
+ var DocumentationLinkPreview = z115.object({
4526
+ title: z115.string().optional(),
4527
+ description: z115.string().optional(),
4528
+ thumbnail: PageBlockImageReference.optional()
4499
4529
  });
4500
4530
 
4501
- // src/dsm/documentation/page-content-backup.ts
4531
+ // src/dsm/documentation/page-anchor.ts
4502
4532
  import { z as z116 } from "zod";
4503
- var DocumentationPageContentBackup = z116.object({
4504
- id: z116.string(),
4505
- designSystemVersionId: z116.string(),
4506
- createdAt: z116.coerce.date(),
4507
- updatedAt: z116.coerce.date(),
4508
- documentationPageId: z116.string(),
4509
- documentationPageName: z116.string(),
4510
- storagePath: z116.string()
4533
+ var DocumentationPageAnchor = z116.object({
4534
+ blockId: z116.string(),
4535
+ level: z116.number(),
4536
+ text: z116.string()
4511
4537
  });
4512
4538
 
4513
- // src/dsm/documentation/page-content.ts
4539
+ // src/dsm/documentation/page-content-backup.ts
4514
4540
  import { z as z117 } from "zod";
4515
- var DocumentationPageContentItem = z117.discriminatedUnion("type", [
4516
- PageBlockEditorModelV2,
4517
- PageSectionEditorModelV2
4518
- ]);
4519
- var DocumentationPageContentData = z117.object({
4520
- items: z117.array(DocumentationPageContentItem)
4521
- });
4522
- var DocumentationPageContent = z117.object({
4541
+ var DocumentationPageContentBackup = z117.object({
4523
4542
  id: z117.string(),
4524
4543
  designSystemVersionId: z117.string(),
4525
4544
  createdAt: z117.coerce.date(),
4526
4545
  updatedAt: z117.coerce.date(),
4527
4546
  documentationPageId: z117.string(),
4528
- data: DocumentationPageContentData
4547
+ documentationPageName: z117.string(),
4548
+ storagePath: z117.string()
4529
4549
  });
4530
4550
 
4531
- // src/dsm/documentation/page-dependencies.ts
4551
+ // src/dsm/documentation/page-content.ts
4532
4552
  import { z as z118 } from "zod";
4533
- var DocumentationPageDependencies = z118.object({
4553
+ var DocumentationPageContentItem = z118.discriminatedUnion("type", [
4554
+ PageBlockEditorModelV2,
4555
+ PageSectionEditorModelV2
4556
+ ]);
4557
+ var DocumentationPageContentData = z118.object({
4558
+ items: z118.array(DocumentationPageContentItem)
4559
+ });
4560
+ var DocumentationPageContent = z118.object({
4534
4561
  id: z118.string(),
4535
4562
  designSystemVersionId: z118.string(),
4536
4563
  createdAt: z118.coerce.date(),
4537
4564
  updatedAt: z118.coerce.date(),
4538
4565
  documentationPageId: z118.string(),
4539
- tokenPersistentIds: z118.set(z118.string()),
4540
- figmaComponentPersistentIds: z118.set(z118.string()),
4541
- componentPersistentIds: z118.set(z118.string()),
4542
- figmaNodePersistentIds: z118.set(z118.string()),
4543
- groupPersistentIds: z118.set(z118.string()),
4544
- propertyPersistentIds: z118.set(z118.string()),
4545
- themePersistentIds: z118.set(z118.string()),
4546
- documentationPagePersistentIds: z118.set(z118.string()),
4547
- storybookEntriesStoryIds: z118.array(z118.string())
4566
+ data: DocumentationPageContentData
4548
4567
  });
4549
4568
 
4550
- // src/dsm/documentation/page.ts
4569
+ // src/dsm/documentation/page-dependencies.ts
4551
4570
  import { z as z119 } from "zod";
4552
- var DocumentationPage = z119.object({
4553
- type: z119.literal("DocumentationPage"),
4571
+ var DocumentationPageDependencies = z119.object({
4554
4572
  id: z119.string(),
4555
- persistentId: z119.string(),
4556
- shortPersistentId: z119.string(),
4557
4573
  designSystemVersionId: z119.string(),
4558
- parentPersistentId: z119.string().nullish(),
4559
- sortOrder: z119.number(),
4560
- title: z119.string(),
4561
- slug: z119.string(),
4562
- userSlug: z119.string().nullish(),
4563
4574
  createdAt: z119.coerce.date(),
4564
- updatedAt: z119.coerce.date()
4575
+ updatedAt: z119.coerce.date(),
4576
+ documentationPageId: z119.string(),
4577
+ tokenPersistentIds: z119.set(z119.string()),
4578
+ figmaComponentPersistentIds: z119.set(z119.string()),
4579
+ componentPersistentIds: z119.set(z119.string()),
4580
+ figmaNodePersistentIds: z119.set(z119.string()),
4581
+ groupPersistentIds: z119.set(z119.string()),
4582
+ propertyPersistentIds: z119.set(z119.string()),
4583
+ themePersistentIds: z119.set(z119.string()),
4584
+ documentationPagePersistentIds: z119.set(z119.string()),
4585
+ storybookEntriesStoryIds: z119.array(z119.string())
4565
4586
  });
4566
4587
 
4567
- // src/dsm/documentation/redirects.ts
4588
+ // src/dsm/documentation/page.ts
4568
4589
  import { z as z120 } from "zod";
4569
- var PageRedirect = z120.object({
4590
+ var DocumentationPage = z120.object({
4591
+ type: z120.literal("DocumentationPage"),
4570
4592
  id: z120.string(),
4571
- pagePersistentId: z120.string(),
4572
- path: z120.string(),
4593
+ persistentId: z120.string(),
4594
+ shortPersistentId: z120.string(),
4595
+ designSystemVersionId: z120.string(),
4596
+ parentPersistentId: z120.string().nullish(),
4597
+ sortOrder: z120.number(),
4598
+ title: z120.string(),
4599
+ slug: z120.string(),
4600
+ userSlug: z120.string().nullish(),
4573
4601
  createdAt: z120.coerce.date(),
4574
- updatedAt: z120.coerce.date(),
4575
- designSystemId: z120.string()
4602
+ updatedAt: z120.coerce.date()
4576
4603
  });
4577
4604
 
4578
- // src/dsm/documentation/configuration.ts
4605
+ // src/dsm/documentation/redirects.ts
4579
4606
  import { z as z121 } from "zod";
4580
- var defaultDocsRenderCodePackageJson = `{
4581
- "name": "supernova-live-react",
4582
- "version": "1.0.0",
4583
- "description": "Live React Code Packager",
4584
- "keywords": ["react", "supernova"],
4585
- "main": "src/index.js",
4586
- "dependencies": {
4587
- "react-dom": "latest",
4588
- "react": "latest"
4589
- },
4590
- "devDependencies": {
4591
- "@babel/runtime": "7.13.8",
4592
- "typescript": "4.1.3"
4593
- },
4594
- "scripts": {
4595
- "start": "react-scripts start",
4596
- "build": "react-scripts build",
4597
- "test": "react-scripts test --env=jsdom",
4598
- "eject": "react-scripts eject"
4599
- },
4600
- "browserslist": [">0.2%", "not dead", "not ie <= 11", "not op_mini all"]
4601
- }`;
4602
- var DocumentationConfiguration = z121.object({
4603
- // Basic
4604
- designSystemVersionId: z121.string(),
4607
+ var PageRedirect = z121.object({
4608
+ id: z121.string(),
4609
+ pagePersistentId: z121.string(),
4610
+ path: z121.string(),
4605
4611
  createdAt: z121.coerce.date(),
4606
4612
  updatedAt: z121.coerce.date(),
4607
- // Configuration
4608
- isTabbedLayoutEnabled: z121.boolean(),
4609
- storybookEmbedErrorMessage: z121.string().optional(),
4610
- renderCodePackageJson: z121.string().optional(),
4611
- selectedBrandPersistentId: z121.string().optional(),
4612
- serveDefaultVersionOnly: z121.boolean(),
4613
- isPublic: z121.boolean()
4613
+ designSystemId: z121.string()
4614
4614
  });
4615
4615
 
4616
4616
  // src/dsm/documentation/thread.ts
@@ -4902,6 +4902,7 @@ var FigmaExporterDesignNodeTypeSchema = z125.union([
4902
4902
  z125.literal("FRAME"),
4903
4903
  z125.literal("TEXT"),
4904
4904
  z125.literal("SVG"),
4905
+ z125.literal("IMAGE"),
4905
4906
  z125.literal("COMPONENT_INSTANCE")
4906
4907
  ]);
4907
4908
  var baseDesignNodeObjectSchema = z125.object({
@@ -4924,6 +4925,10 @@ var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4924
4925
  type: z125.literal("SVG"),
4925
4926
  svgString: z125.string()
4926
4927
  });
4928
+ var imageNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4929
+ type: z125.literal("IMAGE"),
4930
+ src: z125.string()
4931
+ });
4927
4932
  var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
4928
4933
  type: z125.literal("COMPONENT_INSTANCE"),
4929
4934
  componentSetName: z125.string(),
@@ -4943,6 +4948,7 @@ var svgNodeSchema = z125.lazy(
4943
4948
  children: FigmaExporterAnyDesignNodeSchema.array()
4944
4949
  })
4945
4950
  );
4951
+ var imageNodeSchema = imageNodeObjectSchema;
4946
4952
  var componentInstanceNodeSchema = z125.lazy(
4947
4953
  () => componentInstanceObjectSchema.extend({
4948
4954
  children: FigmaExporterAnyDesignNodeSchema.array()
@@ -4952,6 +4958,7 @@ var FigmaExporterAnyDesignNodeSchema = z125.union([
4952
4958
  frameNodeSchema,
4953
4959
  textNodeSchema,
4954
4960
  svgNodeSchema,
4961
+ imageNodeSchema,
4955
4962
  componentInstanceNodeSchema
4956
4963
  ]);
4957
4964