@supernova-studio/model 1.90.6 → 1.90.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.js CHANGED
@@ -4604,6 +4604,9 @@ function pickLatestGroupSnapshots(snapshots) {
4604
4604
 
4605
4605
  // src/dsm/figma-exporter/figma-exporter.ts
4606
4606
 
4607
+
4608
+ // src/dsm/figma-exporter/figma-exporter-styles.ts
4609
+
4607
4610
  var FigmaExporterProcessedStylesSchema = _zod.z.object({
4608
4611
  display: _zod.z.union([
4609
4612
  _zod.z.literal("block"),
@@ -4714,7 +4717,6 @@ var FigmaExporterProcessedStylesSchema = _zod.z.object({
4714
4717
  backgroundSize: _zod.z.string().optional(),
4715
4718
  backgroundPosition: _zod.z.string().optional(),
4716
4719
  backgroundRepeat: _zod.z.string().optional(),
4717
- // Typed as string to support multiple background blend modes
4718
4720
  backgroundBlendMode: _zod.z.string().optional(),
4719
4721
  backgroundClip: _zod.z.union([_zod.z.literal("border-box"), _zod.z.literal("padding-box"), _zod.z.literal("content-box"), _zod.z.literal("text")]).optional(),
4720
4722
  backgroundOrigin: _zod.z.union([_zod.z.literal("border-box"), _zod.z.literal("padding-box"), _zod.z.literal("content-box")]).optional(),
@@ -4831,6 +4833,33 @@ var FigmaExporterProcessedStylesSchema = _zod.z.object({
4831
4833
  ]).optional(),
4832
4834
  visibility: _zod.z.union([_zod.z.literal("visible"), _zod.z.literal("hidden"), _zod.z.literal("collapse")]).optional()
4833
4835
  });
4836
+
4837
+ // src/dsm/figma-exporter/figma-exporter-text-content.ts
4838
+
4839
+ var textSpanSchema = _zod.z.object({
4840
+ text: _zod.z.string(),
4841
+ styles: FigmaExporterProcessedStylesSchema.partial()
4842
+ });
4843
+ var textParagraphBlockSchema = _zod.z.object({
4844
+ type: _zod.z.literal("paragraph"),
4845
+ spans: _zod.z.array(textSpanSchema)
4846
+ });
4847
+ var textListItemSchema = _zod.z.lazy(
4848
+ () => _zod.z.object({
4849
+ spans: _zod.z.array(textSpanSchema),
4850
+ children: _zod.z.array(textBlockSchema)
4851
+ })
4852
+ );
4853
+ var textListBlockSchema = _zod.z.object({
4854
+ type: _zod.z.literal("list"),
4855
+ kind: _zod.z.union([_zod.z.literal("ordered"), _zod.z.literal("unordered")]),
4856
+ items: _zod.z.array(textListItemSchema)
4857
+ });
4858
+ var textBlockSchema = _zod.z.lazy(
4859
+ () => _zod.z.union([textParagraphBlockSchema, textListBlockSchema])
4860
+ );
4861
+
4862
+ // src/dsm/figma-exporter/figma-exporter.ts
4834
4863
  var FigmaExporterDesignNodeTypeSchema = _zod.z.union([
4835
4864
  _zod.z.literal("FRAME"),
4836
4865
  _zod.z.literal("TEXT"),
@@ -4851,9 +4880,7 @@ var frameNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4851
4880
  });
4852
4881
  var textNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4853
4882
  type: _zod.z.literal("TEXT"),
4854
- characters: _zod.z.string(),
4855
- lineTypes: _zod.z.array(_zod.z.union([_zod.z.literal("NONE"), _zod.z.literal("ORDERED"), _zod.z.literal("UNORDERED")])).optional(),
4856
- lineIndentations: _zod.z.array(_zod.z.number()).optional()
4883
+ content: _zod.z.array(textBlockSchema)
4857
4884
  });
4858
4885
  var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4859
4886
  type: _zod.z.literal("SVG"),