@valbuild/shared 0.67.0 → 0.68.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.
- package/dist/declarations/src/internal/ApiRoutes.d.ts +475 -354
- package/dist/declarations/src/internal/index.d.ts +1 -1
- package/dist/declarations/src/internal/richtext/conversion/remirrorTypes.d.ts +336 -12
- package/dist/declarations/src/internal/zod/Patch.d.ts +23 -0
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +190 -611
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +190 -611
- package/internal/dist/valbuild-shared-internal.esm.js +186 -611
- package/package.json +2 -2
- package/dist/declarations/src/internal/ValCache.d.ts +0 -49
|
@@ -471,10 +471,78 @@ 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?: (
|
|
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;
|
|
475
509
|
}, z.ZodTypeDef, {
|
|
476
510
|
type: "paragraph";
|
|
477
|
-
content?: (
|
|
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;
|
|
478
546
|
}>, z.ZodIntersection<z.ZodObject<{
|
|
479
547
|
type: z.ZodLiteral<"heading">;
|
|
480
548
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -722,22 +790,150 @@ export declare const RemirrorJSON: z.ZodObject<{
|
|
|
722
790
|
} | undefined;
|
|
723
791
|
}>>, z.ZodType<{
|
|
724
792
|
type: "bulletList";
|
|
725
|
-
content?:
|
|
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;
|
|
726
841
|
}, z.ZodTypeDef, {
|
|
727
842
|
type: "bulletList";
|
|
728
|
-
content?:
|
|
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;
|
|
729
891
|
}>, z.ZodType<{
|
|
730
892
|
type: "orderedList";
|
|
731
|
-
content?:
|
|
893
|
+
content?: any[] | undefined;
|
|
732
894
|
}, z.ZodTypeDef, {
|
|
733
895
|
type: "orderedList";
|
|
734
|
-
content?:
|
|
896
|
+
content?: any[] | undefined;
|
|
735
897
|
}>]>, "many">;
|
|
736
898
|
}, "strip", z.ZodTypeAny, {
|
|
737
899
|
type: "doc";
|
|
738
900
|
content: ({
|
|
739
901
|
type: "paragraph";
|
|
740
|
-
content?: (
|
|
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;
|
|
741
937
|
} | ({
|
|
742
938
|
type: "heading";
|
|
743
939
|
} & {
|
|
@@ -781,16 +977,97 @@ export declare const RemirrorJSON: z.ZodObject<{
|
|
|
781
977
|
} | undefined;
|
|
782
978
|
}) | {
|
|
783
979
|
type: "bulletList";
|
|
784
|
-
content?:
|
|
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;
|
|
785
1028
|
} | {
|
|
786
1029
|
type: "orderedList";
|
|
787
|
-
content?:
|
|
1030
|
+
content?: any[] | undefined;
|
|
788
1031
|
})[];
|
|
789
1032
|
}, {
|
|
790
1033
|
type: "doc";
|
|
791
1034
|
content: ({
|
|
792
1035
|
type: "paragraph";
|
|
793
|
-
content?: (
|
|
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;
|
|
794
1071
|
} | ({
|
|
795
1072
|
type: "heading";
|
|
796
1073
|
} & {
|
|
@@ -834,10 +1111,57 @@ export declare const RemirrorJSON: z.ZodObject<{
|
|
|
834
1111
|
} | undefined;
|
|
835
1112
|
}) | {
|
|
836
1113
|
type: "bulletList";
|
|
837
|
-
content?:
|
|
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;
|
|
838
1162
|
} | {
|
|
839
1163
|
type: "orderedList";
|
|
840
|
-
content?:
|
|
1164
|
+
content?: any[] | undefined;
|
|
841
1165
|
})[];
|
|
842
1166
|
}>;
|
|
843
1167
|
export type RemirrorJSON = z.infer<typeof RemirrorJSON>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { PatchJSON as PatchJSONT, Patch as PatchT, PatchBlock as PatchBlockT, ParentRef as ParentRefT } from "@valbuild/core/patch";
|
|
2
|
+
import type { PatchId as PatchIdT } from "@valbuild/core";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
export declare const PatchJSON: z.ZodType<PatchJSONT>;
|
|
5
|
+
export type PatchJSON = PatchJSONT;
|
|
6
|
+
export declare const Patch: z.ZodType<PatchT>;
|
|
7
|
+
export type Patch = PatchT;
|
|
8
|
+
export declare const PatchId: z.ZodEffects<z.ZodString, PatchIdT, string>;
|
|
9
|
+
type ParentRefInput = {
|
|
10
|
+
type: "head";
|
|
11
|
+
headBaseSha: string;
|
|
12
|
+
} | {
|
|
13
|
+
type: "patch";
|
|
14
|
+
patchId: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const ParentRef: z.ZodType<ParentRefT, z.ZodTypeDef, ParentRefInput>;
|
|
17
|
+
export type ParentRef = ParentRefT;
|
|
18
|
+
export declare const PatchBlock: z.ZodType<PatchBlockT, z.ZodTypeDef, {
|
|
19
|
+
patch: Patch;
|
|
20
|
+
parentRef: ParentRefInput;
|
|
21
|
+
}>;
|
|
22
|
+
export type PatchBlock = PatchBlockT;
|
|
23
|
+
export {};
|