@valbuild/shared 0.80.0 → 0.82.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.
@@ -2,9 +2,9 @@ import { z } from "zod";
2
2
  export declare const RemirrorTextMark: z.ZodObject<{
3
3
  type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
4
4
  }, "strip", z.ZodTypeAny, {
5
- type: "bold" | "strike" | "italic";
5
+ type: "italic" | "bold" | "strike";
6
6
  }, {
7
- type: "bold" | "strike" | "italic";
7
+ type: "italic" | "bold" | "strike";
8
8
  }>;
9
9
  export type RemirrorTextMark = z.infer<typeof RemirrorTextMark>;
10
10
  export declare const RemirrorLinkMark: z.ZodObject<{
@@ -51,9 +51,9 @@ export declare const RemirrorText: z.ZodIntersection<z.ZodObject<{
51
51
  marks: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
52
52
  type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
53
53
  }, "strip", z.ZodTypeAny, {
54
- type: "bold" | "strike" | "italic";
54
+ type: "italic" | "bold" | "strike";
55
55
  }, {
56
- type: "bold" | "strike" | "italic";
56
+ type: "italic" | "bold" | "strike";
57
57
  }>, z.ZodObject<{
58
58
  type: z.ZodLiteral<"link">;
59
59
  attrs: z.ZodObject<{
@@ -86,7 +86,7 @@ export declare const RemirrorText: z.ZodIntersection<z.ZodObject<{
86
86
  }>]>, "many">>;
87
87
  }, "strip", z.ZodTypeAny, {
88
88
  marks?: ({
89
- type: "bold" | "strike" | "italic";
89
+ type: "italic" | "bold" | "strike";
90
90
  } | {
91
91
  type: "link";
92
92
  attrs: {
@@ -97,7 +97,7 @@ export declare const RemirrorText: z.ZodIntersection<z.ZodObject<{
97
97
  })[] | undefined;
98
98
  }, {
99
99
  marks?: ({
100
- type: "bold" | "strike" | "italic";
100
+ type: "italic" | "bold" | "strike";
101
101
  } | {
102
102
  type: "link";
103
103
  attrs: {
@@ -118,17 +118,17 @@ export declare const RemirrorBr: z.ZodIntersection<z.ZodObject<{
118
118
  marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
119
  type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
120
120
  }, "strip", z.ZodTypeAny, {
121
- type: "bold" | "strike" | "italic";
121
+ type: "italic" | "bold" | "strike";
122
122
  }, {
123
- type: "bold" | "strike" | "italic";
123
+ type: "italic" | "bold" | "strike";
124
124
  }>, "many">>;
125
125
  }, "strip", z.ZodTypeAny, {
126
126
  marks?: {
127
- type: "bold" | "strike" | "italic";
127
+ type: "italic" | "bold" | "strike";
128
128
  }[] | undefined;
129
129
  }, {
130
130
  marks?: {
131
- type: "bold" | "strike" | "italic";
131
+ type: "italic" | "bold" | "strike";
132
132
  }[] | undefined;
133
133
  }>>;
134
134
  export type RemirrorBr = z.infer<typeof RemirrorBr>;
@@ -223,9 +223,9 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
223
223
  marks: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
224
224
  type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
225
225
  }, "strip", z.ZodTypeAny, {
226
- type: "bold" | "strike" | "italic";
226
+ type: "italic" | "bold" | "strike";
227
227
  }, {
228
- type: "bold" | "strike" | "italic";
228
+ type: "italic" | "bold" | "strike";
229
229
  }>, z.ZodObject<{
230
230
  type: z.ZodLiteral<"link">;
231
231
  attrs: z.ZodObject<{
@@ -258,7 +258,7 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
258
258
  }>]>, "many">>;
259
259
  }, "strip", z.ZodTypeAny, {
260
260
  marks?: ({
261
- type: "bold" | "strike" | "italic";
261
+ type: "italic" | "bold" | "strike";
262
262
  } | {
263
263
  type: "link";
264
264
  attrs: {
@@ -269,7 +269,7 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
269
269
  })[] | undefined;
270
270
  }, {
271
271
  marks?: ({
272
- type: "bold" | "strike" | "italic";
272
+ type: "italic" | "bold" | "strike";
273
273
  } | {
274
274
  type: "link";
275
275
  attrs: {
@@ -350,17 +350,17 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
350
350
  marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
351
351
  type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
352
352
  }, "strip", z.ZodTypeAny, {
353
- type: "bold" | "strike" | "italic";
353
+ type: "italic" | "bold" | "strike";
354
354
  }, {
355
- type: "bold" | "strike" | "italic";
355
+ type: "italic" | "bold" | "strike";
356
356
  }>, "many">>;
357
357
  }, "strip", z.ZodTypeAny, {
358
358
  marks?: {
359
- type: "bold" | "strike" | "italic";
359
+ type: "italic" | "bold" | "strike";
360
360
  }[] | undefined;
361
361
  }, {
362
362
  marks?: {
363
- type: "bold" | "strike" | "italic";
363
+ type: "italic" | "bold" | "strike";
364
364
  }[] | undefined;
365
365
  }>>]>, "many">>;
366
366
  }, "strip", z.ZodTypeAny, {
@@ -369,7 +369,7 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
369
369
  text: string;
370
370
  } & {
371
371
  marks?: ({
372
- type: "bold" | "strike" | "italic";
372
+ type: "italic" | "bold" | "strike";
373
373
  } | {
374
374
  type: "link";
375
375
  attrs: {
@@ -396,7 +396,7 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
396
396
  type: "hardBreak";
397
397
  } & {
398
398
  marks?: {
399
- type: "bold" | "strike" | "italic";
399
+ type: "italic" | "bold" | "strike";
400
400
  }[] | undefined;
401
401
  }))[] | undefined;
402
402
  attrs?: {
@@ -408,7 +408,7 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
408
408
  text: string;
409
409
  } & {
410
410
  marks?: ({
411
- type: "bold" | "strike" | "italic";
411
+ type: "italic" | "bold" | "strike";
412
412
  } | {
413
413
  type: "link";
414
414
  attrs: {
@@ -435,7 +435,7 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
435
435
  type: "hardBreak";
436
436
  } & {
437
437
  marks?: {
438
- type: "bold" | "strike" | "italic";
438
+ type: "italic" | "bold" | "strike";
439
439
  }[] | undefined;
440
440
  }))[] | undefined;
441
441
  attrs?: {
@@ -476,7 +476,7 @@ export declare const RemirrorJSON: z.ZodObject<{
476
476
  text: string;
477
477
  } & {
478
478
  marks?: ({
479
- type: "bold" | "strike" | "italic";
479
+ type: "italic" | "bold" | "strike";
480
480
  } | {
481
481
  type: "link";
482
482
  attrs: {
@@ -503,7 +503,7 @@ export declare const RemirrorJSON: z.ZodObject<{
503
503
  type: "hardBreak";
504
504
  } & {
505
505
  marks?: {
506
- type: "bold" | "strike" | "italic";
506
+ type: "italic" | "bold" | "strike";
507
507
  }[] | undefined;
508
508
  }))[] | undefined;
509
509
  }, z.ZodTypeDef, {
@@ -513,7 +513,7 @@ export declare const RemirrorJSON: z.ZodObject<{
513
513
  text: string;
514
514
  } & {
515
515
  marks?: ({
516
- type: "bold" | "strike" | "italic";
516
+ type: "italic" | "bold" | "strike";
517
517
  } | {
518
518
  type: "link";
519
519
  attrs: {
@@ -540,7 +540,7 @@ export declare const RemirrorJSON: z.ZodObject<{
540
540
  type: "hardBreak";
541
541
  } & {
542
542
  marks?: {
543
- type: "bold" | "strike" | "italic";
543
+ type: "italic" | "bold" | "strike";
544
544
  }[] | undefined;
545
545
  }))[] | undefined;
546
546
  }>, z.ZodIntersection<z.ZodObject<{
@@ -570,9 +570,9 @@ export declare const RemirrorJSON: z.ZodObject<{
570
570
  marks: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
571
571
  type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
572
572
  }, "strip", z.ZodTypeAny, {
573
- type: "bold" | "strike" | "italic";
573
+ type: "italic" | "bold" | "strike";
574
574
  }, {
575
- type: "bold" | "strike" | "italic";
575
+ type: "italic" | "bold" | "strike";
576
576
  }>, z.ZodObject<{
577
577
  type: z.ZodLiteral<"link">;
578
578
  attrs: z.ZodObject<{
@@ -605,7 +605,7 @@ export declare const RemirrorJSON: z.ZodObject<{
605
605
  }>]>, "many">>;
606
606
  }, "strip", z.ZodTypeAny, {
607
607
  marks?: ({
608
- type: "bold" | "strike" | "italic";
608
+ type: "italic" | "bold" | "strike";
609
609
  } | {
610
610
  type: "link";
611
611
  attrs: {
@@ -616,7 +616,7 @@ export declare const RemirrorJSON: z.ZodObject<{
616
616
  })[] | undefined;
617
617
  }, {
618
618
  marks?: ({
619
- type: "bold" | "strike" | "italic";
619
+ type: "italic" | "bold" | "strike";
620
620
  } | {
621
621
  type: "link";
622
622
  attrs: {
@@ -697,17 +697,17 @@ export declare const RemirrorJSON: z.ZodObject<{
697
697
  marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
698
698
  type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
699
699
  }, "strip", z.ZodTypeAny, {
700
- type: "bold" | "strike" | "italic";
700
+ type: "italic" | "bold" | "strike";
701
701
  }, {
702
- type: "bold" | "strike" | "italic";
702
+ type: "italic" | "bold" | "strike";
703
703
  }>, "many">>;
704
704
  }, "strip", z.ZodTypeAny, {
705
705
  marks?: {
706
- type: "bold" | "strike" | "italic";
706
+ type: "italic" | "bold" | "strike";
707
707
  }[] | undefined;
708
708
  }, {
709
709
  marks?: {
710
- type: "bold" | "strike" | "italic";
710
+ type: "italic" | "bold" | "strike";
711
711
  }[] | undefined;
712
712
  }>>]>, "many">>;
713
713
  }, "strip", z.ZodTypeAny, {
@@ -716,7 +716,7 @@ export declare const RemirrorJSON: z.ZodObject<{
716
716
  text: string;
717
717
  } & {
718
718
  marks?: ({
719
- type: "bold" | "strike" | "italic";
719
+ type: "italic" | "bold" | "strike";
720
720
  } | {
721
721
  type: "link";
722
722
  attrs: {
@@ -743,7 +743,7 @@ export declare const RemirrorJSON: z.ZodObject<{
743
743
  type: "hardBreak";
744
744
  } & {
745
745
  marks?: {
746
- type: "bold" | "strike" | "italic";
746
+ type: "italic" | "bold" | "strike";
747
747
  }[] | undefined;
748
748
  }))[] | undefined;
749
749
  attrs?: {
@@ -755,7 +755,7 @@ export declare const RemirrorJSON: z.ZodObject<{
755
755
  text: string;
756
756
  } & {
757
757
  marks?: ({
758
- type: "bold" | "strike" | "italic";
758
+ type: "italic" | "bold" | "strike";
759
759
  } | {
760
760
  type: "link";
761
761
  attrs: {
@@ -782,7 +782,7 @@ export declare const RemirrorJSON: z.ZodObject<{
782
782
  type: "hardBreak";
783
783
  } & {
784
784
  marks?: {
785
- type: "bold" | "strike" | "italic";
785
+ type: "italic" | "bold" | "strike";
786
786
  }[] | undefined;
787
787
  }))[] | undefined;
788
788
  attrs?: {
@@ -803,7 +803,7 @@ export declare const RemirrorJSON: z.ZodObject<{
803
803
  text: string;
804
804
  } & {
805
805
  marks?: ({
806
- type: "bold" | "strike" | "italic";
806
+ type: "italic" | "bold" | "strike";
807
807
  } | {
808
808
  type: "link";
809
809
  attrs: {
@@ -830,7 +830,7 @@ export declare const RemirrorJSON: z.ZodObject<{
830
830
  type: "hardBreak";
831
831
  } & {
832
832
  marks?: {
833
- type: "bold" | "strike" | "italic";
833
+ type: "italic" | "bold" | "strike";
834
834
  }[] | undefined;
835
835
  }))[] | undefined;
836
836
  } | any | {
@@ -853,7 +853,7 @@ export declare const RemirrorJSON: z.ZodObject<{
853
853
  text: string;
854
854
  } & {
855
855
  marks?: ({
856
- type: "bold" | "strike" | "italic";
856
+ type: "italic" | "bold" | "strike";
857
857
  } | {
858
858
  type: "link";
859
859
  attrs: {
@@ -880,7 +880,7 @@ export declare const RemirrorJSON: z.ZodObject<{
880
880
  type: "hardBreak";
881
881
  } & {
882
882
  marks?: {
883
- type: "bold" | "strike" | "italic";
883
+ type: "italic" | "bold" | "strike";
884
884
  }[] | undefined;
885
885
  }))[] | undefined;
886
886
  } | any | {
@@ -904,7 +904,7 @@ export declare const RemirrorJSON: z.ZodObject<{
904
904
  text: string;
905
905
  } & {
906
906
  marks?: ({
907
- type: "bold" | "strike" | "italic";
907
+ type: "italic" | "bold" | "strike";
908
908
  } | {
909
909
  type: "link";
910
910
  attrs: {
@@ -931,7 +931,7 @@ export declare const RemirrorJSON: z.ZodObject<{
931
931
  type: "hardBreak";
932
932
  } & {
933
933
  marks?: {
934
- type: "bold" | "strike" | "italic";
934
+ type: "italic" | "bold" | "strike";
935
935
  }[] | undefined;
936
936
  }))[] | undefined;
937
937
  } | ({
@@ -942,7 +942,7 @@ export declare const RemirrorJSON: z.ZodObject<{
942
942
  text: string;
943
943
  } & {
944
944
  marks?: ({
945
- type: "bold" | "strike" | "italic";
945
+ type: "italic" | "bold" | "strike";
946
946
  } | {
947
947
  type: "link";
948
948
  attrs: {
@@ -969,7 +969,7 @@ export declare const RemirrorJSON: z.ZodObject<{
969
969
  type: "hardBreak";
970
970
  } & {
971
971
  marks?: {
972
- type: "bold" | "strike" | "italic";
972
+ type: "italic" | "bold" | "strike";
973
973
  }[] | undefined;
974
974
  }))[] | undefined;
975
975
  attrs?: {
@@ -990,7 +990,7 @@ export declare const RemirrorJSON: z.ZodObject<{
990
990
  text: string;
991
991
  } & {
992
992
  marks?: ({
993
- type: "bold" | "strike" | "italic";
993
+ type: "italic" | "bold" | "strike";
994
994
  } | {
995
995
  type: "link";
996
996
  attrs: {
@@ -1017,7 +1017,7 @@ export declare const RemirrorJSON: z.ZodObject<{
1017
1017
  type: "hardBreak";
1018
1018
  } & {
1019
1019
  marks?: {
1020
- type: "bold" | "strike" | "italic";
1020
+ type: "italic" | "bold" | "strike";
1021
1021
  }[] | undefined;
1022
1022
  }))[] | undefined;
1023
1023
  } | any | {
@@ -1038,7 +1038,7 @@ export declare const RemirrorJSON: z.ZodObject<{
1038
1038
  text: string;
1039
1039
  } & {
1040
1040
  marks?: ({
1041
- type: "bold" | "strike" | "italic";
1041
+ type: "italic" | "bold" | "strike";
1042
1042
  } | {
1043
1043
  type: "link";
1044
1044
  attrs: {
@@ -1065,7 +1065,7 @@ export declare const RemirrorJSON: z.ZodObject<{
1065
1065
  type: "hardBreak";
1066
1066
  } & {
1067
1067
  marks?: {
1068
- type: "bold" | "strike" | "italic";
1068
+ type: "italic" | "bold" | "strike";
1069
1069
  }[] | undefined;
1070
1070
  }))[] | undefined;
1071
1071
  } | ({
@@ -1076,7 +1076,7 @@ export declare const RemirrorJSON: z.ZodObject<{
1076
1076
  text: string;
1077
1077
  } & {
1078
1078
  marks?: ({
1079
- type: "bold" | "strike" | "italic";
1079
+ type: "italic" | "bold" | "strike";
1080
1080
  } | {
1081
1081
  type: "link";
1082
1082
  attrs: {
@@ -1103,7 +1103,7 @@ export declare const RemirrorJSON: z.ZodObject<{
1103
1103
  type: "hardBreak";
1104
1104
  } & {
1105
1105
  marks?: {
1106
- type: "bold" | "strike" | "italic";
1106
+ type: "italic" | "bold" | "strike";
1107
1107
  }[] | undefined;
1108
1108
  }))[] | undefined;
1109
1109
  attrs?: {
@@ -1124,7 +1124,7 @@ export declare const RemirrorJSON: z.ZodObject<{
1124
1124
  text: string;
1125
1125
  } & {
1126
1126
  marks?: ({
1127
- type: "bold" | "strike" | "italic";
1127
+ type: "italic" | "bold" | "strike";
1128
1128
  } | {
1129
1129
  type: "link";
1130
1130
  attrs: {
@@ -1151,7 +1151,7 @@ export declare const RemirrorJSON: z.ZodObject<{
1151
1151
  type: "hardBreak";
1152
1152
  } & {
1153
1153
  marks?: {
1154
- type: "bold" | "strike" | "italic";
1154
+ type: "italic" | "bold" | "strike";
1155
1155
  }[] | undefined;
1156
1156
  }))[] | undefined;
1157
1157
  } | any | {
@@ -1,7 +1,7 @@
1
1
  import { Json } from "@valbuild/core";
2
- export declare const VAL_SESSION_COOKIE: any;
3
- export declare const VAL_STATE_COOKIE: any;
4
- export declare const VAL_ENABLE_COOKIE_NAME: any;
2
+ export declare const VAL_SESSION_COOKIE: "val_session";
3
+ export declare const VAL_STATE_COOKIE: "val_state";
4
+ export declare const VAL_ENABLE_COOKIE_NAME: "val_enable";
5
5
  export type VAL_SESSION_COOKIE = typeof VAL_SESSION_COOKIE;
6
6
  export type VAL_STATE_COOKIE = typeof VAL_STATE_COOKIE;
7
7
  export type VAL_ENABLE_COOKIE_NAME = typeof VAL_ENABLE_COOKIE_NAME;
@@ -1,4 +1,5 @@
1
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";
2
3
  import { z } from "zod";
3
4
  export declare const PatchJSON: z.ZodType<PatchJSONT>;
4
5
  export type PatchJSON = PatchJSONT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.80.0",
3
+ "version": "0.82.0",
4
4
  "private": false,
5
5
  "description": "Val shared types and utilities",
6
6
  "scripts": {
@@ -29,7 +29,7 @@
29
29
  "exports": true
30
30
  },
31
31
  "dependencies": {
32
- "@valbuild/core": "~0.80.0",
32
+ "@valbuild/core": "~0.82.0",
33
33
  "zod": "^3.22.4",
34
34
  "zod-validation-error": "^3.3.0"
35
35
  },