@valbuild/shared 0.64.0 → 0.65.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.
@@ -364,9 +364,6 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
364
364
  }[] | undefined;
365
365
  }>>]>, "many">>;
366
366
  }, "strip", z.ZodTypeAny, {
367
- attrs?: {
368
- level: number;
369
- } | undefined;
370
367
  content?: (({
371
368
  type: "text";
372
369
  text: string;
@@ -402,10 +399,10 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
402
399
  type: "bold" | "strike" | "italic";
403
400
  }[] | undefined;
404
401
  }))[] | undefined;
405
- }, {
406
402
  attrs?: {
407
403
  level: number;
408
404
  } | undefined;
405
+ }, {
409
406
  content?: (({
410
407
  type: "text";
411
408
  text: string;
@@ -441,6 +438,9 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
441
438
  type: "bold" | "strike" | "italic";
442
439
  }[] | undefined;
443
440
  }))[] | undefined;
441
+ attrs?: {
442
+ level: number;
443
+ } | undefined;
444
444
  }>>;
445
445
  export type RemirrorHeading = z.infer<typeof RemirrorHeading>;
446
446
  export declare const RemirrorBulletList: z.ZodType<{
@@ -471,78 +471,10 @@ export declare const RemirrorJSON: z.ZodObject<{
471
471
  type: z.ZodLiteral<"doc">;
472
472
  content: z.ZodArray<z.ZodUnion<[z.ZodType<{
473
473
  type: "paragraph";
474
- content?: (({
475
- type: "text";
476
- text: string;
477
- } & {
478
- marks?: ({
479
- type: "bold" | "strike" | "italic";
480
- } | {
481
- type: "link";
482
- attrs: {
483
- href: string;
484
- target: "_blank" | null;
485
- auto: boolean;
486
- };
487
- })[] | undefined;
488
- }) | ({
489
- type: "image";
490
- } & {
491
- attrs?: ({
492
- src: string;
493
- } & {
494
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
495
- alt?: string | null | undefined;
496
- height?: string | number | null | undefined;
497
- width?: string | number | null | undefined;
498
- rotate?: string | null | undefined;
499
- title?: string | null | undefined;
500
- fileName?: string | null | undefined;
501
- }) | undefined;
502
- }) | ({
503
- type: "hardBreak";
504
- } & {
505
- marks?: {
506
- type: "bold" | "strike" | "italic";
507
- }[] | undefined;
508
- }))[] | undefined;
474
+ content?: (RemirrorText | RemirrorImage | RemirrorBr)[];
509
475
  }, z.ZodTypeDef, {
510
476
  type: "paragraph";
511
- content?: (({
512
- type: "text";
513
- text: string;
514
- } & {
515
- marks?: ({
516
- type: "bold" | "strike" | "italic";
517
- } | {
518
- type: "link";
519
- attrs: {
520
- href: string;
521
- target: "_blank" | null;
522
- auto: boolean;
523
- };
524
- })[] | undefined;
525
- }) | ({
526
- type: "image";
527
- } & {
528
- attrs?: ({
529
- src: string;
530
- } & {
531
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
532
- alt?: string | null | undefined;
533
- height?: string | number | null | undefined;
534
- width?: string | number | null | undefined;
535
- rotate?: string | null | undefined;
536
- title?: string | null | undefined;
537
- fileName?: string | null | undefined;
538
- }) | undefined;
539
- }) | ({
540
- type: "hardBreak";
541
- } & {
542
- marks?: {
543
- type: "bold" | "strike" | "italic";
544
- }[] | undefined;
545
- }))[] | undefined;
477
+ content?: (RemirrorText | RemirrorImage | RemirrorBr)[];
546
478
  }>, z.ZodIntersection<z.ZodObject<{
547
479
  type: z.ZodLiteral<"heading">;
548
480
  }, "strip", z.ZodTypeAny, {
@@ -711,9 +643,6 @@ export declare const RemirrorJSON: z.ZodObject<{
711
643
  }[] | undefined;
712
644
  }>>]>, "many">>;
713
645
  }, "strip", z.ZodTypeAny, {
714
- attrs?: {
715
- level: number;
716
- } | undefined;
717
646
  content?: (({
718
647
  type: "text";
719
648
  text: string;
@@ -749,10 +678,10 @@ export declare const RemirrorJSON: z.ZodObject<{
749
678
  type: "bold" | "strike" | "italic";
750
679
  }[] | undefined;
751
680
  }))[] | undefined;
752
- }, {
753
681
  attrs?: {
754
682
  level: number;
755
683
  } | undefined;
684
+ }, {
756
685
  content?: (({
757
686
  type: "text";
758
687
  text: string;
@@ -788,158 +717,30 @@ export declare const RemirrorJSON: z.ZodObject<{
788
717
  type: "bold" | "strike" | "italic";
789
718
  }[] | undefined;
790
719
  }))[] | undefined;
720
+ attrs?: {
721
+ level: number;
722
+ } | undefined;
791
723
  }>>, z.ZodType<{
792
724
  type: "bulletList";
793
- content?: {
794
- type: "listItem";
795
- attrs?: {
796
- closed?: boolean | undefined;
797
- nested?: boolean | undefined;
798
- } | undefined;
799
- content?: ({
800
- type: "paragraph";
801
- content?: (({
802
- type: "text";
803
- text: string;
804
- } & {
805
- marks?: ({
806
- type: "bold" | "strike" | "italic";
807
- } | {
808
- type: "link";
809
- attrs: {
810
- href: string;
811
- target: "_blank" | null;
812
- auto: boolean;
813
- };
814
- })[] | undefined;
815
- }) | ({
816
- type: "image";
817
- } & {
818
- attrs?: ({
819
- src: string;
820
- } & {
821
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
822
- alt?: string | null | undefined;
823
- height?: string | number | null | undefined;
824
- width?: string | number | null | undefined;
825
- rotate?: string | null | undefined;
826
- title?: string | null | undefined;
827
- fileName?: string | null | undefined;
828
- }) | undefined;
829
- }) | ({
830
- type: "hardBreak";
831
- } & {
832
- marks?: {
833
- type: "bold" | "strike" | "italic";
834
- }[] | undefined;
835
- }))[] | undefined;
836
- } | any | {
837
- type: "orderedList";
838
- content?: any[] | undefined;
839
- })[] | undefined;
840
- }[] | undefined;
725
+ content?: RemirrorListItem[];
841
726
  }, z.ZodTypeDef, {
842
727
  type: "bulletList";
843
- content?: {
844
- type: "listItem";
845
- attrs?: {
846
- closed?: boolean | undefined;
847
- nested?: boolean | undefined;
848
- } | undefined;
849
- content?: ({
850
- type: "paragraph";
851
- content?: (({
852
- type: "text";
853
- text: string;
854
- } & {
855
- marks?: ({
856
- type: "bold" | "strike" | "italic";
857
- } | {
858
- type: "link";
859
- attrs: {
860
- href: string;
861
- target: "_blank" | null;
862
- auto: boolean;
863
- };
864
- })[] | undefined;
865
- }) | ({
866
- type: "image";
867
- } & {
868
- attrs?: ({
869
- src: string;
870
- } & {
871
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
872
- alt?: string | null | undefined;
873
- height?: string | number | null | undefined;
874
- width?: string | number | null | undefined;
875
- rotate?: string | null | undefined;
876
- title?: string | null | undefined;
877
- fileName?: string | null | undefined;
878
- }) | undefined;
879
- }) | ({
880
- type: "hardBreak";
881
- } & {
882
- marks?: {
883
- type: "bold" | "strike" | "italic";
884
- }[] | undefined;
885
- }))[] | undefined;
886
- } | any | {
887
- type: "orderedList";
888
- content?: any[] | undefined;
889
- })[] | undefined;
890
- }[] | undefined;
728
+ content?: RemirrorListItem[];
891
729
  }>, z.ZodType<{
892
730
  type: "orderedList";
893
- content?: any[] | undefined;
731
+ content?: RemirrorListItem[];
894
732
  }, z.ZodTypeDef, {
895
733
  type: "orderedList";
896
- content?: any[] | undefined;
734
+ content?: RemirrorListItem[];
897
735
  }>]>, "many">;
898
736
  }, "strip", z.ZodTypeAny, {
899
737
  type: "doc";
900
738
  content: ({
901
739
  type: "paragraph";
902
- content?: (({
903
- type: "text";
904
- text: string;
905
- } & {
906
- marks?: ({
907
- type: "bold" | "strike" | "italic";
908
- } | {
909
- type: "link";
910
- attrs: {
911
- href: string;
912
- target: "_blank" | null;
913
- auto: boolean;
914
- };
915
- })[] | undefined;
916
- }) | ({
917
- type: "image";
918
- } & {
919
- attrs?: ({
920
- src: string;
921
- } & {
922
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
923
- alt?: string | null | undefined;
924
- height?: string | number | null | undefined;
925
- width?: string | number | null | undefined;
926
- rotate?: string | null | undefined;
927
- title?: string | null | undefined;
928
- fileName?: string | null | undefined;
929
- }) | undefined;
930
- }) | ({
931
- type: "hardBreak";
932
- } & {
933
- marks?: {
934
- type: "bold" | "strike" | "italic";
935
- }[] | undefined;
936
- }))[] | undefined;
740
+ content?: (RemirrorText | RemirrorImage | RemirrorBr)[];
937
741
  } | ({
938
742
  type: "heading";
939
743
  } & {
940
- attrs?: {
941
- level: number;
942
- } | undefined;
943
744
  content?: (({
944
745
  type: "text";
945
746
  text: string;
@@ -975,105 +776,24 @@ export declare const RemirrorJSON: z.ZodObject<{
975
776
  type: "bold" | "strike" | "italic";
976
777
  }[] | undefined;
977
778
  }))[] | undefined;
779
+ attrs?: {
780
+ level: number;
781
+ } | undefined;
978
782
  }) | {
979
783
  type: "bulletList";
980
- content?: {
981
- type: "listItem";
982
- attrs?: {
983
- closed?: boolean | undefined;
984
- nested?: boolean | undefined;
985
- } | undefined;
986
- content?: ({
987
- type: "paragraph";
988
- content?: (({
989
- type: "text";
990
- text: string;
991
- } & {
992
- marks?: ({
993
- type: "bold" | "strike" | "italic";
994
- } | {
995
- type: "link";
996
- attrs: {
997
- href: string;
998
- target: "_blank" | null;
999
- auto: boolean;
1000
- };
1001
- })[] | undefined;
1002
- }) | ({
1003
- type: "image";
1004
- } & {
1005
- attrs?: ({
1006
- src: string;
1007
- } & {
1008
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
1009
- alt?: string | null | undefined;
1010
- height?: string | number | null | undefined;
1011
- width?: string | number | null | undefined;
1012
- rotate?: string | null | undefined;
1013
- title?: string | null | undefined;
1014
- fileName?: string | null | undefined;
1015
- }) | undefined;
1016
- }) | ({
1017
- type: "hardBreak";
1018
- } & {
1019
- marks?: {
1020
- type: "bold" | "strike" | "italic";
1021
- }[] | undefined;
1022
- }))[] | undefined;
1023
- } | any | {
1024
- type: "orderedList";
1025
- content?: any[] | undefined;
1026
- })[] | undefined;
1027
- }[] | undefined;
784
+ content?: RemirrorListItem[];
1028
785
  } | {
1029
786
  type: "orderedList";
1030
- content?: any[] | undefined;
787
+ content?: RemirrorListItem[];
1031
788
  })[];
1032
789
  }, {
1033
790
  type: "doc";
1034
791
  content: ({
1035
792
  type: "paragraph";
1036
- content?: (({
1037
- type: "text";
1038
- text: string;
1039
- } & {
1040
- marks?: ({
1041
- type: "bold" | "strike" | "italic";
1042
- } | {
1043
- type: "link";
1044
- attrs: {
1045
- href: string;
1046
- target: "_blank" | null;
1047
- auto: boolean;
1048
- };
1049
- })[] | undefined;
1050
- }) | ({
1051
- type: "image";
1052
- } & {
1053
- attrs?: ({
1054
- src: string;
1055
- } & {
1056
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
1057
- alt?: string | null | undefined;
1058
- height?: string | number | null | undefined;
1059
- width?: string | number | null | undefined;
1060
- rotate?: string | null | undefined;
1061
- title?: string | null | undefined;
1062
- fileName?: string | null | undefined;
1063
- }) | undefined;
1064
- }) | ({
1065
- type: "hardBreak";
1066
- } & {
1067
- marks?: {
1068
- type: "bold" | "strike" | "italic";
1069
- }[] | undefined;
1070
- }))[] | undefined;
793
+ content?: (RemirrorText | RemirrorImage | RemirrorBr)[];
1071
794
  } | ({
1072
795
  type: "heading";
1073
796
  } & {
1074
- attrs?: {
1075
- level: number;
1076
- } | undefined;
1077
797
  content?: (({
1078
798
  type: "text";
1079
799
  text: string;
@@ -1109,59 +829,15 @@ export declare const RemirrorJSON: z.ZodObject<{
1109
829
  type: "bold" | "strike" | "italic";
1110
830
  }[] | undefined;
1111
831
  }))[] | undefined;
832
+ attrs?: {
833
+ level: number;
834
+ } | undefined;
1112
835
  }) | {
1113
836
  type: "bulletList";
1114
- content?: {
1115
- type: "listItem";
1116
- attrs?: {
1117
- closed?: boolean | undefined;
1118
- nested?: boolean | undefined;
1119
- } | undefined;
1120
- content?: ({
1121
- type: "paragraph";
1122
- content?: (({
1123
- type: "text";
1124
- text: string;
1125
- } & {
1126
- marks?: ({
1127
- type: "bold" | "strike" | "italic";
1128
- } | {
1129
- type: "link";
1130
- attrs: {
1131
- href: string;
1132
- target: "_blank" | null;
1133
- auto: boolean;
1134
- };
1135
- })[] | undefined;
1136
- }) | ({
1137
- type: "image";
1138
- } & {
1139
- attrs?: ({
1140
- src: string;
1141
- } & {
1142
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
1143
- alt?: string | null | undefined;
1144
- height?: string | number | null | undefined;
1145
- width?: string | number | null | undefined;
1146
- rotate?: string | null | undefined;
1147
- title?: string | null | undefined;
1148
- fileName?: string | null | undefined;
1149
- }) | undefined;
1150
- }) | ({
1151
- type: "hardBreak";
1152
- } & {
1153
- marks?: {
1154
- type: "bold" | "strike" | "italic";
1155
- }[] | undefined;
1156
- }))[] | undefined;
1157
- } | any | {
1158
- type: "orderedList";
1159
- content?: any[] | undefined;
1160
- })[] | undefined;
1161
- }[] | undefined;
837
+ content?: RemirrorListItem[];
1162
838
  } | {
1163
839
  type: "orderedList";
1164
- content?: any[] | undefined;
840
+ content?: RemirrorListItem[];
1165
841
  })[];
1166
842
  }>;
1167
843
  export type RemirrorJSON = z.infer<typeof RemirrorJSON>;
@@ -1,3 +1,3 @@
1
- export * from "./declarations/src/index";
2
- export { default } from "./declarations/src/index";
3
- //# sourceMappingURL=valbuild-shared.cjs.d.ts.map
1
+ export * from "./declarations/src/index.js";
2
+ export { default } from "./declarations/src/index.js";
3
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsYnVpbGQtc2hhcmVkLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
@@ -1,2 +1,2 @@
1
- export * from "../../dist/declarations/src/internal/index";
2
- //# sourceMappingURL=valbuild-shared-internal.cjs.d.ts.map
1
+ export * from "../../dist/declarations/src/internal/index.js";
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsYnVpbGQtc2hhcmVkLWludGVybmFsLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vZGlzdC9kZWNsYXJhdGlvbnMvc3JjL2ludGVybmFsL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==