@valbuild/shared 0.63.5 → 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.
- package/dist/declarations/src/internal/ApiRoutes.d.ts +2725 -0
- package/dist/declarations/src/internal/{ValStore.d.ts → ValCache.d.ts} +26 -19
- package/dist/declarations/src/internal/ValClient.d.ts +3 -0
- package/dist/declarations/src/internal/ValUrls.d.ts +3 -0
- package/dist/declarations/src/internal/index.d.ts +4 -2
- package/dist/declarations/src/internal/richtext/conversion/remirrorTypes.d.ts +26 -350
- package/dist/declarations/src/internal/server/types.d.ts +4 -7
- package/dist/valbuild-shared.cjs.d.ts +3 -3
- package/internal/dist/valbuild-shared-internal.cjs.d.ts +2 -2
- package/internal/dist/valbuild-shared-internal.cjs.dev.js +1360 -1066
- package/internal/dist/valbuild-shared-internal.cjs.prod.js +1360 -1066
- package/internal/dist/valbuild-shared-internal.esm.js +1357 -1061
- package/package.json +4 -3
- package/dist/declarations/src/internal/mimeType/all.d.ts +0 -4
- package/dist/declarations/src/internal/mimeType/convertMimeType.d.ts +0 -3
- package/dist/declarations/src/internal/mimeType/index.d.ts +0 -2
- package/dist/valbuild-shared.cjs.d.ts.map +0 -1
- package/internal/dist/valbuild-shared-internal.cjs.d.ts.map +0 -1
@@ -1,19 +1,33 @@
|
|
1
|
-
import {
|
1
|
+
import { ModuleFilePath, PatchId, SerializedSchema } from "@valbuild/core";
|
2
2
|
import { result } from "@valbuild/core/fp";
|
3
|
-
import { Patch
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
import { Patch } from "@valbuild/core/patch";
|
4
|
+
import { ValClient } from "./ValClient.js";
|
5
|
+
export type ValCacheError = {
|
6
|
+
errorType: "patch-error";
|
7
|
+
errors: {
|
8
|
+
moduleFilePath: string;
|
9
|
+
patchId: PatchId;
|
10
|
+
skipped: boolean;
|
11
|
+
patchError: string;
|
12
|
+
}[];
|
13
|
+
} | {
|
14
|
+
errorType: "other";
|
15
|
+
message: string;
|
16
|
+
};
|
17
|
+
export declare class ValCache {
|
18
|
+
private readonly client;
|
8
19
|
private readonly drafts;
|
9
20
|
private readonly schema;
|
10
|
-
constructor(
|
21
|
+
constructor(client: ValClient);
|
11
22
|
reloadPaths(paths: ModuleFilePath[]): Promise<void>;
|
12
|
-
reset(): Promise<
|
13
|
-
getModule(path: ModuleFilePath, refetch?: boolean): Promise<result.
|
14
|
-
|
23
|
+
reset(): Promise<result.Result<undefined, ValCacheError>>;
|
24
|
+
getModule(path: ModuleFilePath, refetch?: boolean): Promise<result.Err<{
|
25
|
+
message: string;
|
26
|
+
}> | result.Ok<{
|
27
|
+
source: any;
|
15
28
|
schema: SerializedSchema;
|
16
|
-
}
|
29
|
+
}>>;
|
30
|
+
deletePatches(patchIds: PatchId[]): Promise<result.Result<PatchId[], {
|
17
31
|
message: string;
|
18
32
|
}>>;
|
19
33
|
applyPatch(path: ModuleFilePath, patchIds: PatchId[], patch: Patch): Promise<result.Result<{
|
@@ -21,9 +35,7 @@ export declare class ValStore {
|
|
21
35
|
patchIds: PatchId[];
|
22
36
|
}>;
|
23
37
|
newPatchId: PatchId;
|
24
|
-
},
|
25
|
-
message: string;
|
26
|
-
}>>;
|
38
|
+
}, ValCacheError>>;
|
27
39
|
private emitEvent;
|
28
40
|
initialize(): Promise<result.Result<ModuleFilePath[], {
|
29
41
|
message: string;
|
@@ -34,9 +46,4 @@ export declare class ValStore {
|
|
34
46
|
};
|
35
47
|
};
|
36
48
|
}>>;
|
37
|
-
subscribe: (paths: ModuleFilePath[]) => (listener: () => void) => () => void;
|
38
|
-
private emitChange;
|
39
|
-
getSnapshot: (paths: ModuleFilePath[]) => () => Record<ModuleFilePath, Json> | undefined;
|
40
|
-
getServerSnapshot: (paths: ModuleFilePath[]) => () => Record<ModuleFilePath, Json> | undefined;
|
41
|
-
get: (paths: ModuleFilePath[]) => Record<ModuleFilePath, Json> | undefined;
|
42
49
|
}
|
@@ -1,4 +1,6 @@
|
|
1
1
|
export * from "./richtext/conversion/index.js";
|
2
|
-
export * from "./mimeType/index.js";
|
3
2
|
export * from "./server/types.js";
|
4
|
-
export * from "./
|
3
|
+
export * from "./ValCache.js";
|
4
|
+
export * from "./ValClient.js";
|
5
|
+
export * from "./ValUrls.js";
|
6
|
+
export * from "./ApiRoutes.js";
|
@@ -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?:
|
731
|
+
content?: RemirrorListItem[];
|
894
732
|
}, z.ZodTypeDef, {
|
895
733
|
type: "orderedList";
|
896
|
-
content?:
|
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?:
|
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?:
|
840
|
+
content?: RemirrorListItem[];
|
1165
841
|
})[];
|
1166
842
|
}>;
|
1167
843
|
export type RemirrorJSON = z.infer<typeof RemirrorJSON>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Json } from "@valbuild/core";
|
2
2
|
export declare const VAL_SESSION_COOKIE: "val_session";
|
3
3
|
export declare const VAL_STATE_COOKIE: "val_state";
|
4
4
|
export declare const VAL_ENABLE_COOKIE_NAME: "val_enable";
|
@@ -38,17 +38,14 @@ export type ValServerResult<Names extends ValCookiesNames, Body extends string |
|
|
38
38
|
cookies?: ValServerResultCookies<Names>;
|
39
39
|
body?: Body;
|
40
40
|
} | ValServerError;
|
41
|
-
export type ValServerJsonResult<Body extends Json |
|
41
|
+
export type ValServerJsonResult<Body extends Json | never = never, Error extends Json | never = never> = {
|
42
42
|
status: 200 | 201;
|
43
43
|
json: Body;
|
44
|
-
} | ValServerError | (Error extends Json
|
44
|
+
} | ValServerError | (Error extends Json ? {
|
45
45
|
status: 400;
|
46
46
|
json: Error;
|
47
47
|
} : never);
|
48
|
-
export type ValServerGenericResult = ValServerJsonResult<Json> | ValServerError |
|
49
|
-
status: 400;
|
50
|
-
json: ApiPostValidationErrorResponse;
|
51
|
-
} | ValServerRedirectResult<ValCookiesNames> | ValServerResult<ValCookiesNames, string | ReadableStream<Uint8Array>>;
|
48
|
+
export type ValServerGenericResult = ValServerJsonResult<Json> | ValServerError | ValServerRedirectResult<ValCookiesNames> | ValServerResult<ValCookiesNames, string | ReadableStream<Uint8Array>>;
|
52
49
|
export type ValUIRequestHandler = (path: string, url: string) => Promise<ValServerGenericResult>;
|
53
50
|
export type ValSession = {
|
54
51
|
mode: "unauthorized";
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export * from "./declarations/src/index";
|
2
|
-
export { default } from "./declarations/src/index";
|
3
|
-
//# sourceMappingURL=
|
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=
|
1
|
+
export * from "../../dist/declarations/src/internal/index.js";
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsYnVpbGQtc2hhcmVkLWludGVybmFsLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vZGlzdC9kZWNsYXJhdGlvbnMvc3JjL2ludGVybmFsL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
|