@hirokisakabe/pom 1.4.0 → 3.0.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.
Files changed (87) hide show
  1. package/README.md +158 -193
  2. package/dist/buildPptx.d.ts +2 -2
  3. package/dist/buildPptx.d.ts.map +1 -1
  4. package/dist/buildPptx.js +3 -1
  5. package/dist/calcYogaLayout/calcYogaLayout.d.ts.map +1 -1
  6. package/dist/calcYogaLayout/calcYogaLayout.js +95 -19
  7. package/dist/calcYogaLayout/fontLoader.d.ts +0 -7
  8. package/dist/calcYogaLayout/fontLoader.d.ts.map +1 -1
  9. package/dist/calcYogaLayout/fontLoader.js +1 -1
  10. package/dist/calcYogaLayout/measureText.d.ts +0 -4
  11. package/dist/calcYogaLayout/measureText.d.ts.map +1 -1
  12. package/dist/calcYogaLayout/measureText.js +0 -6
  13. package/dist/index.d.ts +2 -5
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +1 -4
  16. package/dist/{inputSchema.d.ts → parseXml/inputSchema.d.ts} +254 -460
  17. package/dist/parseXml/inputSchema.d.ts.map +1 -0
  18. package/dist/{inputSchema.js → parseXml/inputSchema.js} +42 -140
  19. package/dist/{parseXml.d.ts → parseXml/parseXml.d.ts} +6 -2
  20. package/dist/parseXml/parseXml.d.ts.map +1 -0
  21. package/dist/parseXml/parseXml.js +823 -0
  22. package/dist/renderPptx/nodes/flow.d.ts.map +1 -1
  23. package/dist/renderPptx/nodes/flow.js +26 -16
  24. package/dist/renderPptx/nodes/index.d.ts +1 -0
  25. package/dist/renderPptx/nodes/index.d.ts.map +1 -1
  26. package/dist/renderPptx/nodes/index.js +1 -0
  27. package/dist/renderPptx/nodes/list.d.ts +12 -0
  28. package/dist/renderPptx/nodes/list.d.ts.map +1 -0
  29. package/dist/renderPptx/nodes/list.js +145 -0
  30. package/dist/renderPptx/nodes/matrix.d.ts.map +1 -1
  31. package/dist/renderPptx/nodes/matrix.js +43 -31
  32. package/dist/renderPptx/nodes/processArrow.d.ts.map +1 -1
  33. package/dist/renderPptx/nodes/processArrow.js +14 -6
  34. package/dist/renderPptx/nodes/shape.js +2 -2
  35. package/dist/renderPptx/nodes/table.d.ts.map +1 -1
  36. package/dist/renderPptx/nodes/table.js +1 -1
  37. package/dist/renderPptx/nodes/timeline.d.ts.map +1 -1
  38. package/dist/renderPptx/nodes/timeline.js +58 -37
  39. package/dist/renderPptx/nodes/tree.d.ts.map +1 -1
  40. package/dist/renderPptx/nodes/tree.js +49 -40
  41. package/dist/renderPptx/renderPptx.d.ts +1 -2
  42. package/dist/renderPptx/renderPptx.d.ts.map +1 -1
  43. package/dist/renderPptx/renderPptx.js +8 -4
  44. package/dist/renderPptx/textOptions.d.ts +1 -29
  45. package/dist/renderPptx/textOptions.d.ts.map +1 -1
  46. package/dist/renderPptx/textOptions.js +1 -27
  47. package/dist/renderPptx/types.d.ts +0 -2
  48. package/dist/renderPptx/types.d.ts.map +1 -1
  49. package/dist/renderPptx/utils/backgroundBorder.js +1 -1
  50. package/dist/renderPptx/utils/scaleToFit.d.ts +8 -0
  51. package/dist/renderPptx/utils/scaleToFit.d.ts.map +1 -0
  52. package/dist/renderPptx/utils/scaleToFit.js +19 -0
  53. package/dist/shared/measureImage.d.ts.map +1 -0
  54. package/dist/{table/utils.d.ts → shared/tableUtils.d.ts} +1 -3
  55. package/dist/shared/tableUtils.d.ts.map +1 -0
  56. package/dist/{table/utils.js → shared/tableUtils.js} +2 -2
  57. package/dist/toPositioned/toPositioned.d.ts.map +1 -1
  58. package/dist/toPositioned/toPositioned.js +4 -2
  59. package/dist/types.d.ts +271 -154
  60. package/dist/types.d.ts.map +1 -1
  61. package/dist/types.js +67 -33
  62. package/package.json +3 -6
  63. package/dist/calcYogaLayout/measureImage.d.ts.map +0 -1
  64. package/dist/component.d.ts +0 -90
  65. package/dist/component.d.ts.map +0 -1
  66. package/dist/component.js +0 -123
  67. package/dist/inputSchema.d.ts.map +0 -1
  68. package/dist/parseXml.d.ts.map +0 -1
  69. package/dist/parseXml.js +0 -332
  70. package/dist/renderPptx/nodes/box.d.ts +0 -2
  71. package/dist/renderPptx/nodes/box.d.ts.map +0 -1
  72. package/dist/renderPptx/nodes/box.js +0 -3
  73. package/dist/renderPptx/utils/index.d.ts +0 -6
  74. package/dist/renderPptx/utils/index.d.ts.map +0 -1
  75. package/dist/renderPptx/utils/index.js +0 -3
  76. package/dist/renderPptx/utils/shapeDrawing.d.ts +0 -27
  77. package/dist/renderPptx/utils/shapeDrawing.d.ts.map +0 -1
  78. package/dist/renderPptx/utils/shapeDrawing.js +0 -36
  79. package/dist/renderPptx/utils/textDrawing.d.ts +0 -25
  80. package/dist/renderPptx/utils/textDrawing.d.ts.map +0 -1
  81. package/dist/renderPptx/utils/textDrawing.js +0 -25
  82. package/dist/schema.d.ts +0 -23
  83. package/dist/schema.d.ts.map +0 -1
  84. package/dist/schema.js +0 -24
  85. package/dist/table/utils.d.ts.map +0 -1
  86. /package/dist/{calcYogaLayout → shared}/measureImage.d.ts +0 -0
  87. /package/dist/{calcYogaLayout → shared}/measureImage.js +0 -0
package/dist/types.d.ts CHANGED
@@ -64,32 +64,6 @@ export declare const bulletNumberTypeSchema: z.ZodEnum<{
64
64
  romanUcParenR: "romanUcParenR";
65
65
  romanUcPeriod: "romanUcPeriod";
66
66
  }>;
67
- export declare const bulletOptionsSchema: z.ZodObject<{
68
- type: z.ZodOptional<z.ZodEnum<{
69
- number: "number";
70
- bullet: "bullet";
71
- }>>;
72
- indent: z.ZodOptional<z.ZodNumber>;
73
- numberType: z.ZodOptional<z.ZodEnum<{
74
- alphaLcParenBoth: "alphaLcParenBoth";
75
- alphaLcParenR: "alphaLcParenR";
76
- alphaLcPeriod: "alphaLcPeriod";
77
- alphaUcParenBoth: "alphaUcParenBoth";
78
- alphaUcParenR: "alphaUcParenR";
79
- alphaUcPeriod: "alphaUcPeriod";
80
- arabicParenBoth: "arabicParenBoth";
81
- arabicParenR: "arabicParenR";
82
- arabicPeriod: "arabicPeriod";
83
- arabicPlain: "arabicPlain";
84
- romanLcParenBoth: "romanLcParenBoth";
85
- romanLcParenR: "romanLcParenR";
86
- romanLcPeriod: "romanLcPeriod";
87
- romanUcParenBoth: "romanUcParenBoth";
88
- romanUcParenR: "romanUcParenR";
89
- romanUcPeriod: "romanUcPeriod";
90
- }>>;
91
- numberStartAt: z.ZodOptional<z.ZodNumber>;
92
- }, z.core.$strip>;
93
67
  export declare const underlineStyleSchema: z.ZodEnum<{
94
68
  dash: "dash";
95
69
  dashHeavy: "dashHeavy";
@@ -141,10 +115,6 @@ export declare const justifyContentSchema: z.ZodEnum<{
141
115
  spaceAround: "spaceAround";
142
116
  spaceEvenly: "spaceEvenly";
143
117
  }>;
144
- export declare const flexDirectionSchema: z.ZodEnum<{
145
- row: "row";
146
- column: "column";
147
- }>;
148
118
  export declare const shapeTypeSchema: z.ZodEnum<{
149
119
  accentBorderCallout1: "accentBorderCallout1";
150
120
  accentBorderCallout2: "accentBorderCallout2";
@@ -325,24 +295,11 @@ export declare const shapeTypeSchema: z.ZodEnum<{
325
295
  wedgeRectCallout: "wedgeRectCallout";
326
296
  wedgeRoundRectCallout: "wedgeRoundRectCallout";
327
297
  }>;
328
- export type Length = z.infer<typeof lengthSchema>;
329
- export type Padding = z.infer<typeof paddingSchema>;
330
- export type BorderDash = z.infer<typeof borderDashSchema>;
331
- export type BorderStyle = z.infer<typeof borderStyleSchema>;
332
- export type FillStyle = z.infer<typeof fillStyleSchema>;
333
298
  export type ShadowStyle = z.infer<typeof shadowStyleSchema>;
334
- export type BulletNumberType = z.infer<typeof bulletNumberTypeSchema>;
335
- export type BulletOptions = z.infer<typeof bulletOptionsSchema>;
336
299
  export type AlignItems = z.infer<typeof alignItemsSchema>;
337
300
  export type JustifyContent = z.infer<typeof justifyContentSchema>;
338
- export type FlexDirection = z.infer<typeof flexDirectionSchema>;
339
- export type ShapeType = z.infer<typeof shapeTypeSchema>;
340
301
  export type UnderlineStyle = z.infer<typeof underlineStyleSchema>;
341
302
  export type Underline = z.infer<typeof underlineSchema>;
342
- export declare const backgroundImageSizingSchema: z.ZodEnum<{
343
- cover: "cover";
344
- contain: "contain";
345
- }>;
346
303
  export declare const backgroundImageSchema: z.ZodObject<{
347
304
  src: z.ZodString;
348
305
  sizing: z.ZodOptional<z.ZodEnum<{
@@ -350,8 +307,6 @@ export declare const backgroundImageSchema: z.ZodObject<{
350
307
  contain: "contain";
351
308
  }>>;
352
309
  }, z.core.$strip>;
353
- export type BackgroundImageSizing = z.infer<typeof backgroundImageSizingSchema>;
354
- export type BackgroundImage = z.infer<typeof backgroundImageSchema>;
355
310
  declare const basePOMNodeSchema: z.ZodObject<{
356
311
  yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
357
312
  w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
@@ -392,7 +347,7 @@ declare const basePOMNodeSchema: z.ZodObject<{
392
347
  opacity: z.ZodOptional<z.ZodNumber>;
393
348
  }, z.core.$strip>;
394
349
  type BasePOMNode = z.infer<typeof basePOMNodeSchema>;
395
- export declare const textNodeSchema: z.ZodObject<{
350
+ declare const textNodeSchema: z.ZodObject<{
396
351
  yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
397
352
  w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
398
353
  h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
@@ -465,45 +420,263 @@ export declare const textNodeSchema: z.ZodObject<{
465
420
  highlight: z.ZodOptional<z.ZodString>;
466
421
  fontFamily: z.ZodOptional<z.ZodString>;
467
422
  lineSpacingMultiple: z.ZodOptional<z.ZodNumber>;
468
- bullet: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
469
- type: z.ZodOptional<z.ZodEnum<{
470
- number: "number";
471
- bullet: "bullet";
423
+ }, z.core.$strip>;
424
+ export declare const liNodeSchema: z.ZodObject<{
425
+ text: z.ZodString;
426
+ bold: z.ZodOptional<z.ZodBoolean>;
427
+ italic: z.ZodOptional<z.ZodBoolean>;
428
+ underline: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
429
+ style: z.ZodOptional<z.ZodEnum<{
430
+ dash: "dash";
431
+ dashHeavy: "dashHeavy";
432
+ dashLong: "dashLong";
433
+ dashLongHeavy: "dashLongHeavy";
434
+ dbl: "dbl";
435
+ dotDash: "dotDash";
436
+ dotDotDash: "dotDotDash";
437
+ dotted: "dotted";
438
+ dottedHeavy: "dottedHeavy";
439
+ heavy: "heavy";
440
+ none: "none";
441
+ sng: "sng";
442
+ wavy: "wavy";
443
+ wavyDbl: "wavyDbl";
444
+ wavyHeavy: "wavyHeavy";
445
+ }>>;
446
+ color: z.ZodOptional<z.ZodString>;
447
+ }, z.core.$strip>]>>;
448
+ strike: z.ZodOptional<z.ZodBoolean>;
449
+ highlight: z.ZodOptional<z.ZodString>;
450
+ color: z.ZodOptional<z.ZodString>;
451
+ fontPx: z.ZodOptional<z.ZodNumber>;
452
+ fontFamily: z.ZodOptional<z.ZodString>;
453
+ }, z.core.$strip>;
454
+ declare const ulNodeSchema: z.ZodObject<{
455
+ yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
456
+ w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
457
+ h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
458
+ minW: z.ZodOptional<z.ZodNumber>;
459
+ maxW: z.ZodOptional<z.ZodNumber>;
460
+ minH: z.ZodOptional<z.ZodNumber>;
461
+ maxH: z.ZodOptional<z.ZodNumber>;
462
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
463
+ top: z.ZodOptional<z.ZodNumber>;
464
+ right: z.ZodOptional<z.ZodNumber>;
465
+ bottom: z.ZodOptional<z.ZodNumber>;
466
+ left: z.ZodOptional<z.ZodNumber>;
467
+ }, z.core.$strip>]>>;
468
+ backgroundColor: z.ZodOptional<z.ZodString>;
469
+ backgroundImage: z.ZodOptional<z.ZodObject<{
470
+ src: z.ZodString;
471
+ sizing: z.ZodOptional<z.ZodEnum<{
472
+ cover: "cover";
473
+ contain: "contain";
474
+ }>>;
475
+ }, z.core.$strip>>;
476
+ border: z.ZodOptional<z.ZodObject<{
477
+ color: z.ZodOptional<z.ZodString>;
478
+ width: z.ZodOptional<z.ZodNumber>;
479
+ dashType: z.ZodOptional<z.ZodEnum<{
480
+ solid: "solid";
481
+ dash: "dash";
482
+ dashDot: "dashDot";
483
+ lgDash: "lgDash";
484
+ lgDashDot: "lgDashDot";
485
+ lgDashDotDot: "lgDashDotDot";
486
+ sysDash: "sysDash";
487
+ sysDot: "sysDot";
472
488
  }>>;
473
- indent: z.ZodOptional<z.ZodNumber>;
474
- numberType: z.ZodOptional<z.ZodEnum<{
475
- alphaLcParenBoth: "alphaLcParenBoth";
476
- alphaLcParenR: "alphaLcParenR";
477
- alphaLcPeriod: "alphaLcPeriod";
478
- alphaUcParenBoth: "alphaUcParenBoth";
479
- alphaUcParenR: "alphaUcParenR";
480
- alphaUcPeriod: "alphaUcPeriod";
481
- arabicParenBoth: "arabicParenBoth";
482
- arabicParenR: "arabicParenR";
483
- arabicPeriod: "arabicPeriod";
484
- arabicPlain: "arabicPlain";
485
- romanLcParenBoth: "romanLcParenBoth";
486
- romanLcParenR: "romanLcParenR";
487
- romanLcPeriod: "romanLcPeriod";
488
- romanUcParenBoth: "romanUcParenBoth";
489
- romanUcParenR: "romanUcParenR";
490
- romanUcPeriod: "romanUcPeriod";
489
+ }, z.core.$strip>>;
490
+ borderRadius: z.ZodOptional<z.ZodNumber>;
491
+ opacity: z.ZodOptional<z.ZodNumber>;
492
+ type: z.ZodLiteral<"ul">;
493
+ items: z.ZodArray<z.ZodObject<{
494
+ text: z.ZodString;
495
+ bold: z.ZodOptional<z.ZodBoolean>;
496
+ italic: z.ZodOptional<z.ZodBoolean>;
497
+ underline: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
498
+ style: z.ZodOptional<z.ZodEnum<{
499
+ dash: "dash";
500
+ dashHeavy: "dashHeavy";
501
+ dashLong: "dashLong";
502
+ dashLongHeavy: "dashLongHeavy";
503
+ dbl: "dbl";
504
+ dotDash: "dotDash";
505
+ dotDotDash: "dotDotDash";
506
+ dotted: "dotted";
507
+ dottedHeavy: "dottedHeavy";
508
+ heavy: "heavy";
509
+ none: "none";
510
+ sng: "sng";
511
+ wavy: "wavy";
512
+ wavyDbl: "wavyDbl";
513
+ wavyHeavy: "wavyHeavy";
514
+ }>>;
515
+ color: z.ZodOptional<z.ZodString>;
516
+ }, z.core.$strip>]>>;
517
+ strike: z.ZodOptional<z.ZodBoolean>;
518
+ highlight: z.ZodOptional<z.ZodString>;
519
+ color: z.ZodOptional<z.ZodString>;
520
+ fontPx: z.ZodOptional<z.ZodNumber>;
521
+ fontFamily: z.ZodOptional<z.ZodString>;
522
+ }, z.core.$strip>>;
523
+ fontPx: z.ZodOptional<z.ZodNumber>;
524
+ color: z.ZodOptional<z.ZodString>;
525
+ alignText: z.ZodOptional<z.ZodEnum<{
526
+ right: "right";
527
+ left: "left";
528
+ center: "center";
529
+ }>>;
530
+ bold: z.ZodOptional<z.ZodBoolean>;
531
+ italic: z.ZodOptional<z.ZodBoolean>;
532
+ underline: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
533
+ style: z.ZodOptional<z.ZodEnum<{
534
+ dash: "dash";
535
+ dashHeavy: "dashHeavy";
536
+ dashLong: "dashLong";
537
+ dashLongHeavy: "dashLongHeavy";
538
+ dbl: "dbl";
539
+ dotDash: "dotDash";
540
+ dotDotDash: "dotDotDash";
541
+ dotted: "dotted";
542
+ dottedHeavy: "dottedHeavy";
543
+ heavy: "heavy";
544
+ none: "none";
545
+ sng: "sng";
546
+ wavy: "wavy";
547
+ wavyDbl: "wavyDbl";
548
+ wavyHeavy: "wavyHeavy";
491
549
  }>>;
492
- numberStartAt: z.ZodOptional<z.ZodNumber>;
550
+ color: z.ZodOptional<z.ZodString>;
493
551
  }, z.core.$strip>]>>;
552
+ strike: z.ZodOptional<z.ZodBoolean>;
553
+ highlight: z.ZodOptional<z.ZodString>;
554
+ fontFamily: z.ZodOptional<z.ZodString>;
555
+ lineSpacingMultiple: z.ZodOptional<z.ZodNumber>;
494
556
  }, z.core.$strip>;
495
- export declare const imageSizingSchema: z.ZodObject<{
496
- type: z.ZodEnum<{
497
- cover: "cover";
498
- contain: "contain";
499
- crop: "crop";
500
- }>;
501
- w: z.ZodOptional<z.ZodNumber>;
502
- h: z.ZodOptional<z.ZodNumber>;
503
- x: z.ZodOptional<z.ZodNumber>;
504
- y: z.ZodOptional<z.ZodNumber>;
557
+ declare const olNodeSchema: z.ZodObject<{
558
+ yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
559
+ w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
560
+ h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
561
+ minW: z.ZodOptional<z.ZodNumber>;
562
+ maxW: z.ZodOptional<z.ZodNumber>;
563
+ minH: z.ZodOptional<z.ZodNumber>;
564
+ maxH: z.ZodOptional<z.ZodNumber>;
565
+ padding: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
566
+ top: z.ZodOptional<z.ZodNumber>;
567
+ right: z.ZodOptional<z.ZodNumber>;
568
+ bottom: z.ZodOptional<z.ZodNumber>;
569
+ left: z.ZodOptional<z.ZodNumber>;
570
+ }, z.core.$strip>]>>;
571
+ backgroundColor: z.ZodOptional<z.ZodString>;
572
+ backgroundImage: z.ZodOptional<z.ZodObject<{
573
+ src: z.ZodString;
574
+ sizing: z.ZodOptional<z.ZodEnum<{
575
+ cover: "cover";
576
+ contain: "contain";
577
+ }>>;
578
+ }, z.core.$strip>>;
579
+ border: z.ZodOptional<z.ZodObject<{
580
+ color: z.ZodOptional<z.ZodString>;
581
+ width: z.ZodOptional<z.ZodNumber>;
582
+ dashType: z.ZodOptional<z.ZodEnum<{
583
+ solid: "solid";
584
+ dash: "dash";
585
+ dashDot: "dashDot";
586
+ lgDash: "lgDash";
587
+ lgDashDot: "lgDashDot";
588
+ lgDashDotDot: "lgDashDotDot";
589
+ sysDash: "sysDash";
590
+ sysDot: "sysDot";
591
+ }>>;
592
+ }, z.core.$strip>>;
593
+ borderRadius: z.ZodOptional<z.ZodNumber>;
594
+ opacity: z.ZodOptional<z.ZodNumber>;
595
+ type: z.ZodLiteral<"ol">;
596
+ items: z.ZodArray<z.ZodObject<{
597
+ text: z.ZodString;
598
+ bold: z.ZodOptional<z.ZodBoolean>;
599
+ italic: z.ZodOptional<z.ZodBoolean>;
600
+ underline: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
601
+ style: z.ZodOptional<z.ZodEnum<{
602
+ dash: "dash";
603
+ dashHeavy: "dashHeavy";
604
+ dashLong: "dashLong";
605
+ dashLongHeavy: "dashLongHeavy";
606
+ dbl: "dbl";
607
+ dotDash: "dotDash";
608
+ dotDotDash: "dotDotDash";
609
+ dotted: "dotted";
610
+ dottedHeavy: "dottedHeavy";
611
+ heavy: "heavy";
612
+ none: "none";
613
+ sng: "sng";
614
+ wavy: "wavy";
615
+ wavyDbl: "wavyDbl";
616
+ wavyHeavy: "wavyHeavy";
617
+ }>>;
618
+ color: z.ZodOptional<z.ZodString>;
619
+ }, z.core.$strip>]>>;
620
+ strike: z.ZodOptional<z.ZodBoolean>;
621
+ highlight: z.ZodOptional<z.ZodString>;
622
+ color: z.ZodOptional<z.ZodString>;
623
+ fontPx: z.ZodOptional<z.ZodNumber>;
624
+ fontFamily: z.ZodOptional<z.ZodString>;
625
+ }, z.core.$strip>>;
626
+ fontPx: z.ZodOptional<z.ZodNumber>;
627
+ color: z.ZodOptional<z.ZodString>;
628
+ alignText: z.ZodOptional<z.ZodEnum<{
629
+ right: "right";
630
+ left: "left";
631
+ center: "center";
632
+ }>>;
633
+ bold: z.ZodOptional<z.ZodBoolean>;
634
+ italic: z.ZodOptional<z.ZodBoolean>;
635
+ underline: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
636
+ style: z.ZodOptional<z.ZodEnum<{
637
+ dash: "dash";
638
+ dashHeavy: "dashHeavy";
639
+ dashLong: "dashLong";
640
+ dashLongHeavy: "dashLongHeavy";
641
+ dbl: "dbl";
642
+ dotDash: "dotDash";
643
+ dotDotDash: "dotDotDash";
644
+ dotted: "dotted";
645
+ dottedHeavy: "dottedHeavy";
646
+ heavy: "heavy";
647
+ none: "none";
648
+ sng: "sng";
649
+ wavy: "wavy";
650
+ wavyDbl: "wavyDbl";
651
+ wavyHeavy: "wavyHeavy";
652
+ }>>;
653
+ color: z.ZodOptional<z.ZodString>;
654
+ }, z.core.$strip>]>>;
655
+ strike: z.ZodOptional<z.ZodBoolean>;
656
+ highlight: z.ZodOptional<z.ZodString>;
657
+ fontFamily: z.ZodOptional<z.ZodString>;
658
+ lineSpacingMultiple: z.ZodOptional<z.ZodNumber>;
659
+ numberType: z.ZodOptional<z.ZodEnum<{
660
+ alphaLcParenBoth: "alphaLcParenBoth";
661
+ alphaLcParenR: "alphaLcParenR";
662
+ alphaLcPeriod: "alphaLcPeriod";
663
+ alphaUcParenBoth: "alphaUcParenBoth";
664
+ alphaUcParenR: "alphaUcParenR";
665
+ alphaUcPeriod: "alphaUcPeriod";
666
+ arabicParenBoth: "arabicParenBoth";
667
+ arabicParenR: "arabicParenR";
668
+ arabicPeriod: "arabicPeriod";
669
+ arabicPlain: "arabicPlain";
670
+ romanLcParenBoth: "romanLcParenBoth";
671
+ romanLcParenR: "romanLcParenR";
672
+ romanLcPeriod: "romanLcPeriod";
673
+ romanUcParenBoth: "romanUcParenBoth";
674
+ romanUcParenR: "romanUcParenR";
675
+ romanUcPeriod: "romanUcPeriod";
676
+ }>>;
677
+ numberStartAt: z.ZodOptional<z.ZodNumber>;
505
678
  }, z.core.$strip>;
506
- export declare const imageNodeSchema: z.ZodObject<{
679
+ declare const imageNodeSchema: z.ZodObject<{
507
680
  yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
508
681
  w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
509
682
  h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
@@ -724,7 +897,7 @@ export declare const tableNodeSchema: z.ZodObject<{
724
897
  }, z.core.$strip>>;
725
898
  defaultRowHeight: z.ZodOptional<z.ZodNumber>;
726
899
  }, z.core.$strip>;
727
- export declare const shapeNodeSchema: z.ZodObject<{
900
+ declare const shapeNodeSchema: z.ZodObject<{
728
901
  yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
729
902
  w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
730
903
  h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
@@ -1004,6 +1177,8 @@ export declare const shapeNodeSchema: z.ZodObject<{
1004
1177
  }, z.core.$strip>]>>;
1005
1178
  strike: z.ZodOptional<z.ZodBoolean>;
1006
1179
  highlight: z.ZodOptional<z.ZodString>;
1180
+ fontFamily: z.ZodOptional<z.ZodString>;
1181
+ lineSpacingMultiple: z.ZodOptional<z.ZodNumber>;
1007
1182
  }, z.core.$strip>;
1008
1183
  export declare const chartTypeSchema: z.ZodEnum<{
1009
1184
  line: "line";
@@ -1023,7 +1198,7 @@ export declare const chartDataSchema: z.ZodObject<{
1023
1198
  labels: z.ZodArray<z.ZodString>;
1024
1199
  values: z.ZodArray<z.ZodNumber>;
1025
1200
  }, z.core.$strip>;
1026
- export declare const chartNodeSchema: z.ZodObject<{
1201
+ declare const chartNodeSchema: z.ZodObject<{
1027
1202
  yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
1028
1203
  w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
1029
1204
  h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
@@ -1086,17 +1261,13 @@ export declare const chartNodeSchema: z.ZodObject<{
1086
1261
  }>>;
1087
1262
  }, z.core.$strip>;
1088
1263
  export type TextNode = z.infer<typeof textNodeSchema>;
1089
- export type ImageSizing = z.infer<typeof imageSizingSchema>;
1264
+ export type LiNode = z.infer<typeof liNodeSchema>;
1265
+ export type UlNode = z.infer<typeof ulNodeSchema>;
1266
+ export type OlNode = z.infer<typeof olNodeSchema>;
1090
1267
  export type ImageNode = z.infer<typeof imageNodeSchema>;
1091
- export type TableCell = z.infer<typeof tableCellSchema>;
1092
- export type TableRow = z.infer<typeof tableRowSchema>;
1093
- export type TableColumn = z.infer<typeof tableColumnSchema>;
1094
1268
  export type TableNode = z.infer<typeof tableNodeSchema>;
1095
1269
  export type ShapeNode = z.infer<typeof shapeNodeSchema>;
1096
- export type ChartType = z.infer<typeof chartTypeSchema>;
1097
- export type ChartData = z.infer<typeof chartDataSchema>;
1098
1270
  export type ChartNode = z.infer<typeof chartNodeSchema>;
1099
- export type RadarStyle = z.infer<typeof radarStyleSchema>;
1100
1271
  export declare const timelineDirectionSchema: z.ZodEnum<{
1101
1272
  horizontal: "horizontal";
1102
1273
  vertical: "vertical";
@@ -1157,8 +1328,6 @@ export declare const timelineNodeSchema: z.ZodObject<{
1157
1328
  color: z.ZodOptional<z.ZodString>;
1158
1329
  }, z.core.$strip>>;
1159
1330
  }, z.core.$strip>;
1160
- export type TimelineDirection = z.infer<typeof timelineDirectionSchema>;
1161
- export type TimelineItem = z.infer<typeof timelineItemSchema>;
1162
1331
  export type TimelineNode = z.infer<typeof timelineNodeSchema>;
1163
1332
  export declare const matrixAxisSchema: z.ZodObject<{
1164
1333
  x: z.ZodString;
@@ -1232,9 +1401,6 @@ export declare const matrixNodeSchema: z.ZodObject<{
1232
1401
  color: z.ZodOptional<z.ZodString>;
1233
1402
  }, z.core.$strip>>;
1234
1403
  }, z.core.$strip>;
1235
- export type MatrixAxis = z.infer<typeof matrixAxisSchema>;
1236
- export type MatrixQuadrants = z.infer<typeof matrixQuadrantsSchema>;
1237
- export type MatrixItem = z.infer<typeof matrixItemSchema>;
1238
1404
  export type MatrixNode = z.infer<typeof matrixNodeSchema>;
1239
1405
  export declare const treeLayoutSchema: z.ZodEnum<{
1240
1406
  horizontal: "horizontal";
@@ -1254,7 +1420,6 @@ export type TreeDataItem = {
1254
1420
  color?: string;
1255
1421
  children?: TreeDataItem[];
1256
1422
  };
1257
- export declare const treeDataItemSchema: z.ZodType<TreeDataItem>;
1258
1423
  export declare const treeNodeSchema: z.ZodObject<{
1259
1424
  yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
1260
1425
  w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
@@ -1313,7 +1478,6 @@ export declare const treeNodeSchema: z.ZodObject<{
1313
1478
  levelGap: z.ZodOptional<z.ZodNumber>;
1314
1479
  siblingGap: z.ZodOptional<z.ZodNumber>;
1315
1480
  }, z.core.$strip>;
1316
- export type TreeLayout = z.infer<typeof treeLayoutSchema>;
1317
1481
  export type TreeNodeShape = z.infer<typeof treeNodeShapeSchema>;
1318
1482
  export type TreeConnectorStyle = z.infer<typeof treeConnectorStyleSchema>;
1319
1483
  export type TreeNode = z.infer<typeof treeNodeSchema>;
@@ -1403,27 +1567,11 @@ export declare const processArrowNodeSchema: z.ZodObject<{
1403
1567
  strike: z.ZodOptional<z.ZodBoolean>;
1404
1568
  highlight: z.ZodOptional<z.ZodString>;
1405
1569
  }, z.core.$strip>;
1406
- export type ProcessArrowDirection = z.infer<typeof processArrowDirectionSchema>;
1407
- export type ProcessArrowStep = z.infer<typeof processArrowStepSchema>;
1408
1570
  export type ProcessArrowNode = z.infer<typeof processArrowNodeSchema>;
1409
1571
  export declare const flowDirectionSchema: z.ZodEnum<{
1410
1572
  horizontal: "horizontal";
1411
1573
  vertical: "vertical";
1412
1574
  }>;
1413
- export declare const flowNodeShapeSchema: z.ZodEnum<{
1414
- flowChartConnector: "flowChartConnector";
1415
- flowChartDecision: "flowChartDecision";
1416
- flowChartDelay: "flowChartDelay";
1417
- flowChartDocument: "flowChartDocument";
1418
- flowChartInputOutput: "flowChartInputOutput";
1419
- flowChartMagneticDisk: "flowChartMagneticDisk";
1420
- flowChartManualInput: "flowChartManualInput";
1421
- flowChartManualOperation: "flowChartManualOperation";
1422
- flowChartPredefinedProcess: "flowChartPredefinedProcess";
1423
- flowChartPreparation: "flowChartPreparation";
1424
- flowChartProcess: "flowChartProcess";
1425
- flowChartTerminator: "flowChartTerminator";
1426
- }>;
1427
1575
  export declare const flowNodeItemSchema: z.ZodObject<{
1428
1576
  id: z.ZodString;
1429
1577
  shape: z.ZodEnum<{
@@ -1551,30 +1699,7 @@ export declare const flowNodeSchema: z.ZodObject<{
1551
1699
  nodeHeight: z.ZodOptional<z.ZodNumber>;
1552
1700
  nodeGap: z.ZodOptional<z.ZodNumber>;
1553
1701
  }, z.core.$strip>;
1554
- export type FlowDirection = z.infer<typeof flowDirectionSchema>;
1555
- export type FlowNodeShape = z.infer<typeof flowNodeShapeSchema>;
1556
- export type FlowNodeItem = z.infer<typeof flowNodeItemSchema>;
1557
- export type FlowConnection = z.infer<typeof flowConnectionSchema>;
1558
- export type FlowConnectorStyle = z.infer<typeof flowConnectorStyleSchema>;
1559
1702
  export type FlowNode = z.infer<typeof flowNodeSchema>;
1560
- export declare const lineArrowTypeSchema: z.ZodEnum<{
1561
- none: "none";
1562
- diamond: "diamond";
1563
- triangle: "triangle";
1564
- arrow: "arrow";
1565
- oval: "oval";
1566
- stealth: "stealth";
1567
- }>;
1568
- export declare const lineArrowOptionsSchema: z.ZodObject<{
1569
- type: z.ZodOptional<z.ZodEnum<{
1570
- none: "none";
1571
- diamond: "diamond";
1572
- triangle: "triangle";
1573
- arrow: "arrow";
1574
- oval: "oval";
1575
- stealth: "stealth";
1576
- }>>;
1577
- }, z.core.$strip>;
1578
1703
  export declare const lineArrowSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
1579
1704
  type: z.ZodOptional<z.ZodEnum<{
1580
1705
  none: "none";
@@ -1585,7 +1710,7 @@ export declare const lineArrowSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodOb
1585
1710
  stealth: "stealth";
1586
1711
  }>>;
1587
1712
  }, z.core.$strip>]>;
1588
- export declare const lineNodeSchema: z.ZodObject<{
1713
+ declare const lineNodeSchema: z.ZodObject<{
1589
1714
  yogaNode: z.ZodOptional<z.ZodCustom<YogaNode, YogaNode>>;
1590
1715
  w: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
1591
1716
  h: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"max">, z.ZodString]>>;
@@ -1661,8 +1786,6 @@ export declare const lineNodeSchema: z.ZodObject<{
1661
1786
  }>>;
1662
1787
  }, z.core.$strip>]>>;
1663
1788
  }, z.core.$strip>;
1664
- export type LineArrowType = z.infer<typeof lineArrowTypeSchema>;
1665
- export type LineArrowOptions = z.infer<typeof lineArrowOptionsSchema>;
1666
1789
  export type LineArrow = z.infer<typeof lineArrowSchema>;
1667
1790
  export type LineNode = z.infer<typeof lineNodeSchema>;
1668
1791
  export type BoxNode = BasePOMNode & {
@@ -1684,7 +1807,7 @@ export type HStackNode = BasePOMNode & {
1684
1807
  alignItems?: AlignItems;
1685
1808
  justifyContent?: JustifyContent;
1686
1809
  };
1687
- export type LayerChild = POMNode & {
1810
+ type LayerChild = POMNode & {
1688
1811
  x: number;
1689
1812
  y: number;
1690
1813
  };
@@ -1692,12 +1815,7 @@ export type LayerNode = BasePOMNode & {
1692
1815
  type: "layer";
1693
1816
  children: LayerChild[];
1694
1817
  };
1695
- export type POMNode = TextNode | ImageNode | TableNode | BoxNode | VStackNode | HStackNode | ShapeNode | ChartNode | TimelineNode | MatrixNode | TreeNode | FlowNode | ProcessArrowNode | LineNode | LayerNode;
1696
- export declare const boxNodeSchema: z.ZodType<BoxNode>;
1697
- export declare const vStackNodeSchema: z.ZodType<VStackNode>;
1698
- export declare const hStackNodeSchema: z.ZodType<HStackNode>;
1699
- export declare const layerNodeSchema: z.ZodType<LayerNode>;
1700
- export declare const pomNodeSchema: z.ZodType<POMNode>;
1818
+ export type POMNode = TextNode | UlNode | OlNode | ImageNode | TableNode | BoxNode | VStackNode | HStackNode | ShapeNode | ChartNode | TimelineNode | MatrixNode | TreeNode | FlowNode | ProcessArrowNode | LineNode | LayerNode;
1701
1819
  declare const positionedBaseSchema: z.ZodObject<{
1702
1820
  x: z.ZodNumber;
1703
1821
  y: z.ZodNumber;
@@ -1709,7 +1827,7 @@ export type PositionedLayerChild = PositionedNode & {
1709
1827
  x: number;
1710
1828
  y: number;
1711
1829
  };
1712
- export type PositionedNode = (TextNode & PositionedBase) | (ImageNode & PositionedBase & {
1830
+ export type PositionedNode = (TextNode & PositionedBase) | (UlNode & PositionedBase) | (OlNode & PositionedBase) | (ImageNode & PositionedBase & {
1713
1831
  imageData?: string;
1714
1832
  }) | (TableNode & PositionedBase) | (BoxNode & PositionedBase & {
1715
1833
  children: PositionedNode;
@@ -1720,8 +1838,7 @@ export type PositionedNode = (TextNode & PositionedBase) | (ImageNode & Position
1720
1838
  }) | (ShapeNode & PositionedBase) | (ChartNode & PositionedBase) | (TimelineNode & PositionedBase) | (MatrixNode & PositionedBase) | (TreeNode & PositionedBase) | (FlowNode & PositionedBase) | (ProcessArrowNode & PositionedBase) | (LineNode & PositionedBase) | (LayerNode & PositionedBase & {
1721
1839
  children: PositionedLayerChild[];
1722
1840
  });
1723
- export declare const positionedNodeSchema: z.ZodType<PositionedNode>;
1724
- export declare const masterTextObjectSchema: z.ZodObject<{
1841
+ declare const masterTextObjectSchema: z.ZodObject<{
1725
1842
  type: z.ZodLiteral<"text">;
1726
1843
  text: z.ZodString;
1727
1844
  x: z.ZodNumber;
@@ -1761,7 +1878,7 @@ export declare const masterTextObjectSchema: z.ZodObject<{
1761
1878
  center: "center";
1762
1879
  }>>;
1763
1880
  }, z.core.$strip>;
1764
- export declare const masterImageObjectSchema: z.ZodObject<{
1881
+ declare const masterImageObjectSchema: z.ZodObject<{
1765
1882
  type: z.ZodLiteral<"image">;
1766
1883
  src: z.ZodString;
1767
1884
  x: z.ZodNumber;
@@ -1769,7 +1886,7 @@ export declare const masterImageObjectSchema: z.ZodObject<{
1769
1886
  w: z.ZodNumber;
1770
1887
  h: z.ZodNumber;
1771
1888
  }, z.core.$strip>;
1772
- export declare const masterRectObjectSchema: z.ZodObject<{
1889
+ declare const masterRectObjectSchema: z.ZodObject<{
1773
1890
  type: z.ZodLiteral<"rect">;
1774
1891
  x: z.ZodNumber;
1775
1892
  y: z.ZodNumber;
@@ -1794,7 +1911,7 @@ export declare const masterRectObjectSchema: z.ZodObject<{
1794
1911
  }>>;
1795
1912
  }, z.core.$strip>>;
1796
1913
  }, z.core.$strip>;
1797
- export declare const masterLineObjectSchema: z.ZodObject<{
1914
+ declare const masterLineObjectSchema: z.ZodObject<{
1798
1915
  type: z.ZodLiteral<"line">;
1799
1916
  x: z.ZodNumber;
1800
1917
  y: z.ZodNumber;
@@ -1906,7 +2023,7 @@ export declare const masterObjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1906
2023
  }>>;
1907
2024
  }, z.core.$strip>>;
1908
2025
  }, z.core.$strip>], "type">;
1909
- export declare const slideNumberOptionsSchema: z.ZodObject<{
2026
+ declare const slideNumberOptionsSchema: z.ZodObject<{
1910
2027
  x: z.ZodNumber;
1911
2028
  y: z.ZodNumber;
1912
2029
  w: z.ZodOptional<z.ZodNumber>;
@@ -1915,7 +2032,7 @@ export declare const slideNumberOptionsSchema: z.ZodObject<{
1915
2032
  fontFamily: z.ZodOptional<z.ZodString>;
1916
2033
  color: z.ZodOptional<z.ZodString>;
1917
2034
  }, z.core.$strip>;
1918
- export declare const slideMasterBackgroundSchema: z.ZodUnion<readonly [z.ZodObject<{
2035
+ declare const slideMasterBackgroundSchema: z.ZodUnion<readonly [z.ZodObject<{
1919
2036
  color: z.ZodString;
1920
2037
  }, z.core.$strip>, z.ZodObject<{
1921
2038
  path: z.ZodString;
@@ -1924,7 +2041,7 @@ export declare const slideMasterBackgroundSchema: z.ZodUnion<readonly [z.ZodObje
1924
2041
  }, z.core.$strip>, z.ZodObject<{
1925
2042
  image: z.ZodString;
1926
2043
  }, z.core.$strip>]>;
1927
- export declare const slideMasterMarginSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2044
+ declare const slideMasterMarginSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1928
2045
  top: z.ZodOptional<z.ZodNumber>;
1929
2046
  right: z.ZodOptional<z.ZodNumber>;
1930
2047
  bottom: z.ZodOptional<z.ZodNumber>;