@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.js CHANGED
@@ -4464,6 +4464,44 @@ var PageBlockDefinition = _zod.z.object({
4464
4464
  appearance: PageBlockDefinitionAppearance.optional()
4465
4465
  });
4466
4466
 
4467
+ // src/dsm/documentation/configuration.ts
4468
+
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 = _zod.z.object({
4492
+ // Basic
4493
+ designSystemVersionId: _zod.z.string(),
4494
+ createdAt: _zod.z.coerce.date(),
4495
+ updatedAt: _zod.z.coerce.date(),
4496
+ // Configuration
4497
+ isTabbedLayoutEnabled: _zod.z.boolean(),
4498
+ storybookEmbedErrorMessage: _zod.z.string().optional(),
4499
+ renderCodePackageJson: _zod.z.string().optional(),
4500
+ selectedBrandPersistentId: _zod.z.string().optional(),
4501
+ serveDefaultVersionOnly: _zod.z.boolean(),
4502
+ isPublic: _zod.z.boolean()
4503
+ });
4504
+
4467
4505
  // src/dsm/documentation/group.ts
4468
4506
 
4469
4507
  var DocumentationPageGroup = _zod.z.object({
@@ -4575,44 +4613,6 @@ var PageRedirect = _zod.z.object({
4575
4613
  designSystemId: _zod.z.string()
4576
4614
  });
4577
4615
 
4578
- // src/dsm/documentation/configuration.ts
4579
-
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 = _zod.z.object({
4603
- // Basic
4604
- designSystemVersionId: _zod.z.string(),
4605
- createdAt: _zod.z.coerce.date(),
4606
- updatedAt: _zod.z.coerce.date(),
4607
- // Configuration
4608
- isTabbedLayoutEnabled: _zod.z.boolean(),
4609
- storybookEmbedErrorMessage: _zod.z.string().optional(),
4610
- renderCodePackageJson: _zod.z.string().optional(),
4611
- selectedBrandPersistentId: _zod.z.string().optional(),
4612
- serveDefaultVersionOnly: _zod.z.boolean(),
4613
- isPublic: _zod.z.boolean()
4614
- });
4615
-
4616
4616
  // src/dsm/documentation/thread.ts
4617
4617
 
4618
4618
  var DocumentationComment = _zod.z.object({
@@ -4902,6 +4902,7 @@ var FigmaExporterDesignNodeTypeSchema = _zod.z.union([
4902
4902
  _zod.z.literal("FRAME"),
4903
4903
  _zod.z.literal("TEXT"),
4904
4904
  _zod.z.literal("SVG"),
4905
+ _zod.z.literal("IMAGE"),
4905
4906
  _zod.z.literal("COMPONENT_INSTANCE")
4906
4907
  ]);
4907
4908
  var baseDesignNodeObjectSchema = _zod.z.object({
@@ -4924,6 +4925,10 @@ var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4924
4925
  type: _zod.z.literal("SVG"),
4925
4926
  svgString: _zod.z.string()
4926
4927
  });
4928
+ var imageNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4929
+ type: _zod.z.literal("IMAGE"),
4930
+ src: _zod.z.string()
4931
+ });
4927
4932
  var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
4928
4933
  type: _zod.z.literal("COMPONENT_INSTANCE"),
4929
4934
  componentSetName: _zod.z.string(),
@@ -4943,6 +4948,7 @@ var svgNodeSchema = _zod.z.lazy(
4943
4948
  children: FigmaExporterAnyDesignNodeSchema.array()
4944
4949
  })
4945
4950
  );
4951
+ var imageNodeSchema = imageNodeObjectSchema;
4946
4952
  var componentInstanceNodeSchema = _zod.z.lazy(
4947
4953
  () => componentInstanceObjectSchema.extend({
4948
4954
  children: FigmaExporterAnyDesignNodeSchema.array()
@@ -4952,6 +4958,7 @@ var FigmaExporterAnyDesignNodeSchema = _zod.z.union([
4952
4958
  frameNodeSchema,
4953
4959
  textNodeSchema,
4954
4960
  svgNodeSchema,
4961
+ imageNodeSchema,
4955
4962
  componentInstanceNodeSchema
4956
4963
  ]);
4957
4964