@gxpl/sdk 0.0.8 → 0.0.9

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 (96) hide show
  1. package/lib/index.d.ts +1 -4
  2. package/lib/index.js +1 -4
  3. package/lib/sdk/Client/Client.d.ts +0 -2
  4. package/lib/sdk/Client/Client.js +0 -11
  5. package/lib/sdk/schemas/article/Article.schema.d.ts +40 -45
  6. package/lib/sdk/schemas/article/Article.schema.js +1 -1
  7. package/lib/sdk/schemas/article/Item.schema.js +64 -84
  8. package/lib/sdk/schemas/article/ItemBase.schema.d.ts +15 -18
  9. package/lib/sdk/schemas/article/ItemBase.schema.js +3 -4
  10. package/lib/sdk/schemas/article/ItemState.schema.d.ts +76 -76
  11. package/lib/sdk/schemas/article/RichTextItem.schema.d.ts +78 -86
  12. package/lib/sdk/schemas/article/RichTextItem.schema.js +9 -11
  13. package/lib/sdk/schemas/article/Section.schema.d.ts +20 -23
  14. package/lib/sdk/schemas/article/Section.schema.js +4 -5
  15. package/lib/sdk/schemas/keyframe/Keyframes.schema.d.ts +0 -90
  16. package/lib/sdk/schemas/keyframe/Keyframes.schema.js +0 -1
  17. package/lib/sdk/schemas/project/Project.schema.d.ts +3 -28
  18. package/lib/sdk/schemas/project/Project.schema.js +1 -2
  19. package/lib/sdk/types/article/Article.d.ts +1 -1
  20. package/lib/sdk/types/article/Item.d.ts +75 -114
  21. package/lib/sdk/types/article/Section.d.ts +4 -5
  22. package/lib/sdk/types/keyframe/Keyframe.d.ts +0 -1
  23. package/lib/sdk/types/project/Project.d.ts +1 -2
  24. package/lib/sdk-nextjs/common/useExemplary.js +1 -5
  25. package/lib/sdk-nextjs/common/useItemFXData.js +1 -1
  26. package/lib/sdk-nextjs/common/useKeyframeValue.d.ts +1 -1
  27. package/lib/sdk-nextjs/common/useKeyframeValue.js +4 -7
  28. package/lib/sdk-nextjs/common/useLayoutDeviation.d.ts +5 -0
  29. package/lib/sdk-nextjs/common/useLayoutDeviation.js +20 -0
  30. package/lib/sdk-nextjs/components/ArticleWrapper.js +3 -4
  31. package/lib/sdk-nextjs/components/Section/Section.js +12 -31
  32. package/lib/sdk-nextjs/components/Section/useSectionHeightMap.d.ts +1 -3
  33. package/lib/sdk-nextjs/components/Section/useSectionHeightMap.js +1 -9
  34. package/lib/sdk-nextjs/components/items/CodeEmbedItem/CodeEmbedItem.js +16 -35
  35. package/lib/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.d.ts +2 -4
  36. package/lib/sdk-nextjs/components/items/CodeEmbedItem/useCodeEmbedItem.js +3 -17
  37. package/lib/sdk-nextjs/components/items/ComponentItem/ComponentItem.js +13 -23
  38. package/lib/sdk-nextjs/components/items/ComponentItem/useComponentItem.d.ts +2 -2
  39. package/lib/sdk-nextjs/components/items/ComponentItem/useComponentItem.js +2 -14
  40. package/lib/sdk-nextjs/components/items/CompoundItem/CompoundChild.js +40 -46
  41. package/lib/sdk-nextjs/components/items/CompoundItem/CompoundItem.js +8 -14
  42. package/lib/sdk-nextjs/components/items/CompoundItem/useCompoundItem.d.ts +1 -1
  43. package/lib/sdk-nextjs/components/items/CompoundItem/useCompoundItem.js +1 -8
  44. package/lib/sdk-nextjs/components/items/CustomItem/CustomItem.js +11 -16
  45. package/lib/sdk-nextjs/components/items/EmbedVideoItem/VimeoEmbed.js +28 -37
  46. package/lib/sdk-nextjs/components/items/EmbedVideoItem/YoutubeEmbed.js +17 -29
  47. package/lib/sdk-nextjs/components/items/EmbedVideoItem/useEmbedVideoItem.d.ts +3 -3
  48. package/lib/sdk-nextjs/components/items/EmbedVideoItem/useEmbedVideoItem.js +3 -20
  49. package/lib/sdk-nextjs/components/items/FileItem/ImageItem.js +48 -54
  50. package/lib/sdk-nextjs/components/items/FileItem/VideoItem.js +53 -64
  51. package/lib/sdk-nextjs/components/items/FileItem/useFileItem.d.ts +6 -6
  52. package/lib/sdk-nextjs/components/items/FileItem/useFileItem.js +5 -32
  53. package/lib/sdk-nextjs/components/items/GroupItem/GroupItem.js +3 -13
  54. package/lib/sdk-nextjs/components/items/GroupItem/useGroupItem.d.ts +2 -2
  55. package/lib/sdk-nextjs/components/items/GroupItem/useGroupItem.js +2 -14
  56. package/lib/sdk-nextjs/components/items/Item.js +23 -48
  57. package/lib/sdk-nextjs/components/items/RectangleItem/RectangleItem.js +19 -29
  58. package/lib/sdk-nextjs/components/items/RectangleItem/useRectangleItem.d.ts +6 -6
  59. package/lib/sdk-nextjs/components/items/RectangleItem/useRectangleItem.js +6 -38
  60. package/lib/sdk-nextjs/components/items/RichTextItem/RichTextItem.js +23 -31
  61. package/lib/sdk-nextjs/components/items/RichTextItem/useRichTextItem.js +2 -2
  62. package/lib/sdk-nextjs/components/items/useItemAngle.d.ts +1 -1
  63. package/lib/sdk-nextjs/components/items/useItemAngle.js +1 -1
  64. package/lib/sdk-nextjs/components/items/useItemArea.d.ts +4 -4
  65. package/lib/sdk-nextjs/components/items/useItemArea.js +2 -8
  66. package/lib/sdk-nextjs/components/items/useItemScale.d.ts +1 -1
  67. package/lib/sdk-nextjs/components/items/useItemScale.js +1 -3
  68. package/lib/sdk-nextjs/components/items/useRichTextItemValues.d.ts +6 -6
  69. package/lib/sdk-nextjs/components/items/useRichTextItemValues.js +6 -28
  70. package/lib/sdk-nextjs/components/items/useSizing.js +2 -4
  71. package/lib/sdk-nextjs/components/items/useStickyItemTop.js +3 -9
  72. package/lib/sdk-nextjs/interactions/InteractionsRegistry.d.ts +1 -1
  73. package/lib/sdk-nextjs/interactions/InteractionsRegistry.js +2 -2
  74. package/lib/sdk-nextjs/provider/CntrlSdkContext.d.ts +5 -6
  75. package/lib/sdk-nextjs/provider/CntrlSdkContext.js +6 -6
  76. package/lib/sdk-nextjs/provider/InteractionsContext.js +2 -6
  77. package/lib/sdk-nextjs/utils/RichTextConverter/RichTextConverter.d.ts +1 -2
  78. package/lib/sdk-nextjs/utils/RichTextConverter/RichTextConverter.js +37 -62
  79. package/lib/sdk-nextjs/utils/getStyleFromItemStateAndParams.d.ts +1 -1
  80. package/package.json +1 -1
  81. package/lib/cli.d.ts +0 -10
  82. package/lib/cli.js +0 -64
  83. package/lib/sdk/schemas/project/Layout.schema.d.ts +0 -17
  84. package/lib/sdk/schemas/project/Layout.schema.js +0 -10
  85. package/lib/sdk/types/component/Component.d.ts +0 -15
  86. package/lib/sdk/types/component/Component.js +0 -2
  87. package/lib/sdk/types/project/Layout.d.ts +0 -6
  88. package/lib/sdk/types/project/Layout.js +0 -2
  89. package/lib/sdk-nextjs/common/useCurrentLayout.d.ts +0 -6
  90. package/lib/sdk-nextjs/common/useCurrentLayout.js +0 -42
  91. package/lib/sdk-nextjs/components/useLayoutContext.d.ts +0 -1
  92. package/lib/sdk-nextjs/components/useLayoutContext.js +0 -9
  93. package/lib/sdk-nextjs/provider/LayoutContext.d.ts +0 -1
  94. package/lib/sdk-nextjs/provider/LayoutContext.js +0 -5
  95. package/lib/utils.d.ts +0 -3
  96. package/lib/utils.js +0 -30
@@ -2,7 +2,6 @@ import { KeyframeType } from '../../types/keyframe/Keyframe';
2
2
  import { z } from 'zod';
3
3
  export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4
4
  id: z.ZodString;
5
- layoutId: z.ZodString;
6
5
  itemId: z.ZodString;
7
6
  position: z.ZodNumber;
8
7
  } & {
@@ -26,7 +25,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
26
25
  };
27
26
  type: KeyframeType.Dimensions;
28
27
  itemId: string;
29
- layoutId: string;
30
28
  }, {
31
29
  position: number;
32
30
  id: string;
@@ -36,10 +34,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
36
34
  };
37
35
  type: KeyframeType.Dimensions;
38
36
  itemId: string;
39
- layoutId: string;
40
37
  }>, z.ZodObject<{
41
38
  id: z.ZodString;
42
- layoutId: z.ZodString;
43
39
  itemId: z.ZodString;
44
40
  position: z.ZodNumber;
45
41
  } & {
@@ -63,7 +59,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
63
59
  };
64
60
  type: KeyframeType.Position;
65
61
  itemId: string;
66
- layoutId: string;
67
62
  }, {
68
63
  position: number;
69
64
  id: string;
@@ -73,10 +68,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
73
68
  };
74
69
  type: KeyframeType.Position;
75
70
  itemId: string;
76
- layoutId: string;
77
71
  }>, z.ZodObject<{
78
72
  id: z.ZodString;
79
- layoutId: z.ZodString;
80
73
  itemId: z.ZodString;
81
74
  position: z.ZodNumber;
82
75
  } & {
@@ -96,7 +89,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
96
89
  };
97
90
  type: KeyframeType.Rotation;
98
91
  itemId: string;
99
- layoutId: string;
100
92
  }, {
101
93
  position: number;
102
94
  id: string;
@@ -105,10 +97,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
105
97
  };
106
98
  type: KeyframeType.Rotation;
107
99
  itemId: string;
108
- layoutId: string;
109
100
  }>, z.ZodObject<{
110
101
  id: z.ZodString;
111
- layoutId: z.ZodString;
112
102
  itemId: z.ZodString;
113
103
  position: z.ZodNumber;
114
104
  } & {
@@ -128,7 +118,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
128
118
  };
129
119
  type: KeyframeType.BorderRadius;
130
120
  itemId: string;
131
- layoutId: string;
132
121
  }, {
133
122
  position: number;
134
123
  id: string;
@@ -137,10 +126,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
137
126
  };
138
127
  type: KeyframeType.BorderRadius;
139
128
  itemId: string;
140
- layoutId: string;
141
129
  }>, z.ZodObject<{
142
130
  id: z.ZodString;
143
- layoutId: z.ZodString;
144
131
  itemId: z.ZodString;
145
132
  position: z.ZodNumber;
146
133
  } & {
@@ -160,7 +147,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
160
147
  };
161
148
  type: KeyframeType.BorderWidth;
162
149
  itemId: string;
163
- layoutId: string;
164
150
  }, {
165
151
  position: number;
166
152
  id: string;
@@ -169,10 +155,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
169
155
  };
170
156
  type: KeyframeType.BorderWidth;
171
157
  itemId: string;
172
- layoutId: string;
173
158
  }>, z.ZodObject<{
174
159
  id: z.ZodString;
175
- layoutId: z.ZodString;
176
160
  itemId: z.ZodString;
177
161
  position: z.ZodNumber;
178
162
  } & {
@@ -404,7 +388,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
404
388
  })[];
405
389
  type: KeyframeType.BorderFill;
406
390
  itemId: string;
407
- layoutId: string;
408
391
  }, {
409
392
  position: number;
410
393
  id: string;
@@ -460,10 +443,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
460
443
  })[];
461
444
  type: KeyframeType.BorderFill;
462
445
  itemId: string;
463
- layoutId: string;
464
446
  }>, z.ZodObject<{
465
447
  id: z.ZodString;
466
- layoutId: z.ZodString;
467
448
  itemId: z.ZodString;
468
449
  position: z.ZodNumber;
469
450
  } & {
@@ -483,7 +464,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
483
464
  };
484
465
  type: KeyframeType.Opacity;
485
466
  itemId: string;
486
- layoutId: string;
487
467
  }, {
488
468
  position: number;
489
469
  id: string;
@@ -492,10 +472,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
492
472
  };
493
473
  type: KeyframeType.Opacity;
494
474
  itemId: string;
495
- layoutId: string;
496
475
  }>, z.ZodObject<{
497
476
  id: z.ZodString;
498
- layoutId: z.ZodString;
499
477
  itemId: z.ZodString;
500
478
  position: z.ZodNumber;
501
479
  } & {
@@ -515,7 +493,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
515
493
  };
516
494
  type: KeyframeType.Scale;
517
495
  itemId: string;
518
- layoutId: string;
519
496
  }, {
520
497
  position: number;
521
498
  id: string;
@@ -524,10 +501,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
524
501
  };
525
502
  type: KeyframeType.Scale;
526
503
  itemId: string;
527
- layoutId: string;
528
504
  }>, z.ZodObject<{
529
505
  id: z.ZodString;
530
- layoutId: z.ZodString;
531
506
  itemId: z.ZodString;
532
507
  position: z.ZodNumber;
533
508
  } & {
@@ -547,7 +522,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
547
522
  };
548
523
  type: KeyframeType.Blur;
549
524
  itemId: string;
550
- layoutId: string;
551
525
  }, {
552
526
  position: number;
553
527
  id: string;
@@ -556,10 +530,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
556
530
  };
557
531
  type: KeyframeType.Blur;
558
532
  itemId: string;
559
- layoutId: string;
560
533
  }>, z.ZodObject<{
561
534
  id: z.ZodString;
562
- layoutId: z.ZodString;
563
535
  itemId: z.ZodString;
564
536
  position: z.ZodNumber;
565
537
  } & {
@@ -579,7 +551,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
579
551
  };
580
552
  type: KeyframeType.BackdropBlur;
581
553
  itemId: string;
582
- layoutId: string;
583
554
  }, {
584
555
  position: number;
585
556
  id: string;
@@ -588,10 +559,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
588
559
  };
589
560
  type: KeyframeType.BackdropBlur;
590
561
  itemId: string;
591
- layoutId: string;
592
562
  }>, z.ZodObject<{
593
563
  id: z.ZodString;
594
- layoutId: z.ZodString;
595
564
  itemId: z.ZodString;
596
565
  position: z.ZodNumber;
597
566
  } & {
@@ -611,7 +580,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
611
580
  };
612
581
  type: KeyframeType.TextColor;
613
582
  itemId: string;
614
- layoutId: string;
615
583
  }, {
616
584
  position: number;
617
585
  id: string;
@@ -620,10 +588,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
620
588
  };
621
589
  type: KeyframeType.TextColor;
622
590
  itemId: string;
623
- layoutId: string;
624
591
  }>, z.ZodObject<{
625
592
  id: z.ZodString;
626
- layoutId: z.ZodString;
627
593
  itemId: z.ZodString;
628
594
  position: z.ZodNumber;
629
595
  } & {
@@ -643,7 +609,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
643
609
  };
644
610
  type: KeyframeType.LetterSpacing;
645
611
  itemId: string;
646
- layoutId: string;
647
612
  }, {
648
613
  position: number;
649
614
  id: string;
@@ -652,10 +617,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
652
617
  };
653
618
  type: KeyframeType.LetterSpacing;
654
619
  itemId: string;
655
- layoutId: string;
656
620
  }>, z.ZodObject<{
657
621
  id: z.ZodString;
658
- layoutId: z.ZodString;
659
622
  itemId: z.ZodString;
660
623
  position: z.ZodNumber;
661
624
  } & {
@@ -675,7 +638,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
675
638
  };
676
639
  type: KeyframeType.WordSpacing;
677
640
  itemId: string;
678
- layoutId: string;
679
641
  }, {
680
642
  position: number;
681
643
  id: string;
@@ -684,10 +646,8 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
684
646
  };
685
647
  type: KeyframeType.WordSpacing;
686
648
  itemId: string;
687
- layoutId: string;
688
649
  }>, z.ZodObject<{
689
650
  id: z.ZodString;
690
- layoutId: z.ZodString;
691
651
  itemId: z.ZodString;
692
652
  position: z.ZodNumber;
693
653
  } & {
@@ -699,17 +659,14 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
699
659
  value: Record<string, number>;
700
660
  type: KeyframeType.FXParams;
701
661
  itemId: string;
702
- layoutId: string;
703
662
  }, {
704
663
  position: number;
705
664
  id: string;
706
665
  value: Record<string, number>;
707
666
  type: KeyframeType.FXParams;
708
667
  itemId: string;
709
- layoutId: string;
710
668
  }>, z.ZodObject<{
711
669
  id: z.ZodString;
712
- layoutId: z.ZodString;
713
670
  itemId: z.ZodString;
714
671
  position: z.ZodNumber;
715
672
  } & {
@@ -941,7 +898,6 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
941
898
  })[];
942
899
  type: KeyframeType.Fill;
943
900
  itemId: string;
944
- layoutId: string;
945
901
  }, {
946
902
  position: number;
947
903
  id: string;
@@ -997,11 +953,9 @@ export declare const KeyframeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
997
953
  })[];
998
954
  type: KeyframeType.Fill;
999
955
  itemId: string;
1000
- layoutId: string;
1001
956
  }>]>;
1002
957
  export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1003
958
  id: z.ZodString;
1004
- layoutId: z.ZodString;
1005
959
  itemId: z.ZodString;
1006
960
  position: z.ZodNumber;
1007
961
  } & {
@@ -1025,7 +979,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1025
979
  };
1026
980
  type: KeyframeType.Dimensions;
1027
981
  itemId: string;
1028
- layoutId: string;
1029
982
  }, {
1030
983
  position: number;
1031
984
  id: string;
@@ -1035,10 +988,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1035
988
  };
1036
989
  type: KeyframeType.Dimensions;
1037
990
  itemId: string;
1038
- layoutId: string;
1039
991
  }>, z.ZodObject<{
1040
992
  id: z.ZodString;
1041
- layoutId: z.ZodString;
1042
993
  itemId: z.ZodString;
1043
994
  position: z.ZodNumber;
1044
995
  } & {
@@ -1062,7 +1013,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1062
1013
  };
1063
1014
  type: KeyframeType.Position;
1064
1015
  itemId: string;
1065
- layoutId: string;
1066
1016
  }, {
1067
1017
  position: number;
1068
1018
  id: string;
@@ -1072,10 +1022,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1072
1022
  };
1073
1023
  type: KeyframeType.Position;
1074
1024
  itemId: string;
1075
- layoutId: string;
1076
1025
  }>, z.ZodObject<{
1077
1026
  id: z.ZodString;
1078
- layoutId: z.ZodString;
1079
1027
  itemId: z.ZodString;
1080
1028
  position: z.ZodNumber;
1081
1029
  } & {
@@ -1095,7 +1043,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1095
1043
  };
1096
1044
  type: KeyframeType.Rotation;
1097
1045
  itemId: string;
1098
- layoutId: string;
1099
1046
  }, {
1100
1047
  position: number;
1101
1048
  id: string;
@@ -1104,10 +1051,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1104
1051
  };
1105
1052
  type: KeyframeType.Rotation;
1106
1053
  itemId: string;
1107
- layoutId: string;
1108
1054
  }>, z.ZodObject<{
1109
1055
  id: z.ZodString;
1110
- layoutId: z.ZodString;
1111
1056
  itemId: z.ZodString;
1112
1057
  position: z.ZodNumber;
1113
1058
  } & {
@@ -1127,7 +1072,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1127
1072
  };
1128
1073
  type: KeyframeType.BorderRadius;
1129
1074
  itemId: string;
1130
- layoutId: string;
1131
1075
  }, {
1132
1076
  position: number;
1133
1077
  id: string;
@@ -1136,10 +1080,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1136
1080
  };
1137
1081
  type: KeyframeType.BorderRadius;
1138
1082
  itemId: string;
1139
- layoutId: string;
1140
1083
  }>, z.ZodObject<{
1141
1084
  id: z.ZodString;
1142
- layoutId: z.ZodString;
1143
1085
  itemId: z.ZodString;
1144
1086
  position: z.ZodNumber;
1145
1087
  } & {
@@ -1159,7 +1101,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1159
1101
  };
1160
1102
  type: KeyframeType.BorderWidth;
1161
1103
  itemId: string;
1162
- layoutId: string;
1163
1104
  }, {
1164
1105
  position: number;
1165
1106
  id: string;
@@ -1168,10 +1109,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1168
1109
  };
1169
1110
  type: KeyframeType.BorderWidth;
1170
1111
  itemId: string;
1171
- layoutId: string;
1172
1112
  }>, z.ZodObject<{
1173
1113
  id: z.ZodString;
1174
- layoutId: z.ZodString;
1175
1114
  itemId: z.ZodString;
1176
1115
  position: z.ZodNumber;
1177
1116
  } & {
@@ -1403,7 +1342,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1403
1342
  })[];
1404
1343
  type: KeyframeType.BorderFill;
1405
1344
  itemId: string;
1406
- layoutId: string;
1407
1345
  }, {
1408
1346
  position: number;
1409
1347
  id: string;
@@ -1459,10 +1397,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1459
1397
  })[];
1460
1398
  type: KeyframeType.BorderFill;
1461
1399
  itemId: string;
1462
- layoutId: string;
1463
1400
  }>, z.ZodObject<{
1464
1401
  id: z.ZodString;
1465
- layoutId: z.ZodString;
1466
1402
  itemId: z.ZodString;
1467
1403
  position: z.ZodNumber;
1468
1404
  } & {
@@ -1482,7 +1418,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1482
1418
  };
1483
1419
  type: KeyframeType.Opacity;
1484
1420
  itemId: string;
1485
- layoutId: string;
1486
1421
  }, {
1487
1422
  position: number;
1488
1423
  id: string;
@@ -1491,10 +1426,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1491
1426
  };
1492
1427
  type: KeyframeType.Opacity;
1493
1428
  itemId: string;
1494
- layoutId: string;
1495
1429
  }>, z.ZodObject<{
1496
1430
  id: z.ZodString;
1497
- layoutId: z.ZodString;
1498
1431
  itemId: z.ZodString;
1499
1432
  position: z.ZodNumber;
1500
1433
  } & {
@@ -1514,7 +1447,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1514
1447
  };
1515
1448
  type: KeyframeType.Scale;
1516
1449
  itemId: string;
1517
- layoutId: string;
1518
1450
  }, {
1519
1451
  position: number;
1520
1452
  id: string;
@@ -1523,10 +1455,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1523
1455
  };
1524
1456
  type: KeyframeType.Scale;
1525
1457
  itemId: string;
1526
- layoutId: string;
1527
1458
  }>, z.ZodObject<{
1528
1459
  id: z.ZodString;
1529
- layoutId: z.ZodString;
1530
1460
  itemId: z.ZodString;
1531
1461
  position: z.ZodNumber;
1532
1462
  } & {
@@ -1546,7 +1476,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1546
1476
  };
1547
1477
  type: KeyframeType.Blur;
1548
1478
  itemId: string;
1549
- layoutId: string;
1550
1479
  }, {
1551
1480
  position: number;
1552
1481
  id: string;
@@ -1555,10 +1484,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1555
1484
  };
1556
1485
  type: KeyframeType.Blur;
1557
1486
  itemId: string;
1558
- layoutId: string;
1559
1487
  }>, z.ZodObject<{
1560
1488
  id: z.ZodString;
1561
- layoutId: z.ZodString;
1562
1489
  itemId: z.ZodString;
1563
1490
  position: z.ZodNumber;
1564
1491
  } & {
@@ -1578,7 +1505,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1578
1505
  };
1579
1506
  type: KeyframeType.BackdropBlur;
1580
1507
  itemId: string;
1581
- layoutId: string;
1582
1508
  }, {
1583
1509
  position: number;
1584
1510
  id: string;
@@ -1587,10 +1513,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1587
1513
  };
1588
1514
  type: KeyframeType.BackdropBlur;
1589
1515
  itemId: string;
1590
- layoutId: string;
1591
1516
  }>, z.ZodObject<{
1592
1517
  id: z.ZodString;
1593
- layoutId: z.ZodString;
1594
1518
  itemId: z.ZodString;
1595
1519
  position: z.ZodNumber;
1596
1520
  } & {
@@ -1610,7 +1534,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1610
1534
  };
1611
1535
  type: KeyframeType.TextColor;
1612
1536
  itemId: string;
1613
- layoutId: string;
1614
1537
  }, {
1615
1538
  position: number;
1616
1539
  id: string;
@@ -1619,10 +1542,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1619
1542
  };
1620
1543
  type: KeyframeType.TextColor;
1621
1544
  itemId: string;
1622
- layoutId: string;
1623
1545
  }>, z.ZodObject<{
1624
1546
  id: z.ZodString;
1625
- layoutId: z.ZodString;
1626
1547
  itemId: z.ZodString;
1627
1548
  position: z.ZodNumber;
1628
1549
  } & {
@@ -1642,7 +1563,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1642
1563
  };
1643
1564
  type: KeyframeType.LetterSpacing;
1644
1565
  itemId: string;
1645
- layoutId: string;
1646
1566
  }, {
1647
1567
  position: number;
1648
1568
  id: string;
@@ -1651,10 +1571,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1651
1571
  };
1652
1572
  type: KeyframeType.LetterSpacing;
1653
1573
  itemId: string;
1654
- layoutId: string;
1655
1574
  }>, z.ZodObject<{
1656
1575
  id: z.ZodString;
1657
- layoutId: z.ZodString;
1658
1576
  itemId: z.ZodString;
1659
1577
  position: z.ZodNumber;
1660
1578
  } & {
@@ -1674,7 +1592,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1674
1592
  };
1675
1593
  type: KeyframeType.WordSpacing;
1676
1594
  itemId: string;
1677
- layoutId: string;
1678
1595
  }, {
1679
1596
  position: number;
1680
1597
  id: string;
@@ -1683,10 +1600,8 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1683
1600
  };
1684
1601
  type: KeyframeType.WordSpacing;
1685
1602
  itemId: string;
1686
- layoutId: string;
1687
1603
  }>, z.ZodObject<{
1688
1604
  id: z.ZodString;
1689
- layoutId: z.ZodString;
1690
1605
  itemId: z.ZodString;
1691
1606
  position: z.ZodNumber;
1692
1607
  } & {
@@ -1698,17 +1613,14 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1698
1613
  value: Record<string, number>;
1699
1614
  type: KeyframeType.FXParams;
1700
1615
  itemId: string;
1701
- layoutId: string;
1702
1616
  }, {
1703
1617
  position: number;
1704
1618
  id: string;
1705
1619
  value: Record<string, number>;
1706
1620
  type: KeyframeType.FXParams;
1707
1621
  itemId: string;
1708
- layoutId: string;
1709
1622
  }>, z.ZodObject<{
1710
1623
  id: z.ZodString;
1711
- layoutId: z.ZodString;
1712
1624
  itemId: z.ZodString;
1713
1625
  position: z.ZodNumber;
1714
1626
  } & {
@@ -1940,7 +1852,6 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1940
1852
  })[];
1941
1853
  type: KeyframeType.Fill;
1942
1854
  itemId: string;
1943
- layoutId: string;
1944
1855
  }, {
1945
1856
  position: number;
1946
1857
  id: string;
@@ -1996,5 +1907,4 @@ export declare const KeyframesSchema: z.ZodArray<z.ZodDiscriminatedUnion<"type",
1996
1907
  })[];
1997
1908
  type: KeyframeType.Fill;
1998
1909
  itemId: string;
1999
- layoutId: string;
2000
1910
  }>]>, "many">;
@@ -6,7 +6,6 @@ const zod_1 = require("zod");
6
6
  const FillLayer_schema_1 = require("../article/FillLayer.schema");
7
7
  const KeyframesBaseSchema = zod_1.z.object({
8
8
  id: zod_1.z.string().min(1),
9
- layoutId: zod_1.z.string().min(1),
10
9
  itemId: zod_1.z.string().min(1),
11
10
  position: zod_1.z.number()
12
11
  });
@@ -34,22 +34,7 @@ export declare const ProjectSchema: z.ZodObject<{
34
34
  opengraphThumbnail?: string | undefined;
35
35
  keywords?: string | undefined;
36
36
  }>;
37
- layouts: z.ZodArray<z.ZodObject<{
38
- id: z.ZodString;
39
- title: z.ZodString;
40
- startsWith: z.ZodNumber;
41
- exemplary: z.ZodNumber;
42
- }, "strip", z.ZodTypeAny, {
43
- id: string;
44
- title: string;
45
- startsWith: number;
46
- exemplary: number;
47
- }, {
48
- id: string;
49
- title: string;
50
- startsWith: number;
51
- exemplary: number;
52
- }>, "many">;
37
+ exemplary: z.ZodNumber;
53
38
  pages: z.ZodArray<z.ZodObject<{
54
39
  title: z.ZodString;
55
40
  articleId: z.ZodString;
@@ -172,12 +157,7 @@ export declare const ProjectSchema: z.ZodObject<{
172
157
  opengraphThumbnail?: string | undefined;
173
158
  keywords?: string | undefined;
174
159
  };
175
- layouts: {
176
- id: string;
177
- title: string;
178
- startsWith: number;
179
- exemplary: number;
180
- }[];
160
+ exemplary: number;
181
161
  pages: {
182
162
  id: string;
183
163
  title: string;
@@ -218,12 +198,7 @@ export declare const ProjectSchema: z.ZodObject<{
218
198
  opengraphThumbnail?: string | undefined;
219
199
  keywords?: string | undefined;
220
200
  };
221
- layouts: {
222
- id: string;
223
- title: string;
224
- startsWith: number;
225
- exemplary: number;
226
- }[];
201
+ exemplary: number;
227
202
  pages: {
228
203
  id: string;
229
204
  title: string;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProjectSchema = void 0;
4
4
  const zod_1 = require("zod");
5
- const Layout_schema_1 = require("./Layout.schema");
6
5
  const Fonts_1 = require("../../types/project/Fonts");
7
6
  exports.ProjectSchema = zod_1.z.object({
8
7
  id: zod_1.z.string().min(1),
@@ -18,7 +17,7 @@ exports.ProjectSchema = zod_1.z.object({
18
17
  keywords: zod_1.z.string().optional(),
19
18
  favicon: zod_1.z.string().optional()
20
19
  }),
21
- layouts: zod_1.z.array(Layout_schema_1.LayoutSchema),
20
+ exemplary: zod_1.z.number().positive(),
22
21
  pages: zod_1.z.array(zod_1.z.object({
23
22
  title: zod_1.z.string(),
24
23
  articleId: zod_1.z.string().min(1),
@@ -3,5 +3,5 @@ import { Interaction } from './Interaction';
3
3
  export interface Article {
4
4
  id: string;
5
5
  sections: Section[];
6
- interactions: Record<string, Interaction[]>;
6
+ interactions: Interaction[];
7
7
  }