@valbuild/shared 0.62.5 → 0.63.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.
@@ -210,708 +210,6 @@ export declare const RemirrorHeading: z.ZodIntersection<z.ZodObject<{
210
210
  }, {
211
211
  level: number;
212
212
  }>>;
213
- content: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
214
- type: z.ZodLiteral<"text">;
215
- text: z.ZodString;
216
- }, "strip", z.ZodTypeAny, {
217
- type: "text";
218
- text: string;
219
- }, {
220
- type: "text";
221
- text: string;
222
- }>, z.ZodObject<{
223
- marks: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
224
- type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
225
- }, "strip", z.ZodTypeAny, {
226
- type: "bold" | "strike" | "italic";
227
- }, {
228
- type: "bold" | "strike" | "italic";
229
- }>, z.ZodObject<{
230
- type: z.ZodLiteral<"link">;
231
- attrs: z.ZodObject<{
232
- href: z.ZodString;
233
- target: z.ZodUnion<[z.ZodLiteral<"_blank">, z.ZodNull]>;
234
- auto: z.ZodBoolean;
235
- }, "strip", z.ZodTypeAny, {
236
- href: string;
237
- target: "_blank" | null;
238
- auto: boolean;
239
- }, {
240
- href: string;
241
- target: "_blank" | null;
242
- auto: boolean;
243
- }>;
244
- }, "strip", z.ZodTypeAny, {
245
- type: "link";
246
- attrs: {
247
- href: string;
248
- target: "_blank" | null;
249
- auto: boolean;
250
- };
251
- }, {
252
- type: "link";
253
- attrs: {
254
- href: string;
255
- target: "_blank" | null;
256
- auto: boolean;
257
- };
258
- }>]>, "many">>;
259
- }, "strip", z.ZodTypeAny, {
260
- marks?: ({
261
- type: "bold" | "strike" | "italic";
262
- } | {
263
- type: "link";
264
- attrs: {
265
- href: string;
266
- target: "_blank" | null;
267
- auto: boolean;
268
- };
269
- })[] | undefined;
270
- }, {
271
- marks?: ({
272
- type: "bold" | "strike" | "italic";
273
- } | {
274
- type: "link";
275
- attrs: {
276
- href: string;
277
- target: "_blank" | null;
278
- auto: boolean;
279
- };
280
- })[] | undefined;
281
- }>>, z.ZodIntersection<z.ZodObject<{
282
- type: z.ZodLiteral<"hardBreak">;
283
- }, "strip", z.ZodTypeAny, {
284
- type: "hardBreak";
285
- }, {
286
- type: "hardBreak";
287
- }>, z.ZodObject<{
288
- marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
289
- type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
290
- }, "strip", z.ZodTypeAny, {
291
- type: "bold" | "strike" | "italic";
292
- }, {
293
- type: "bold" | "strike" | "italic";
294
- }>, "many">>;
295
- }, "strip", z.ZodTypeAny, {
296
- marks?: {
297
- type: "bold" | "strike" | "italic";
298
- }[] | undefined;
299
- }, {
300
- marks?: {
301
- type: "bold" | "strike" | "italic";
302
- }[] | undefined;
303
- }>>]>, "many">>;
304
- }, "strip", z.ZodTypeAny, {
305
- attrs?: {
306
- level: number;
307
- } | undefined;
308
- content?: (({
309
- type: "text";
310
- text: string;
311
- } & {
312
- marks?: ({
313
- type: "bold" | "strike" | "italic";
314
- } | {
315
- type: "link";
316
- attrs: {
317
- href: string;
318
- target: "_blank" | null;
319
- auto: boolean;
320
- };
321
- })[] | undefined;
322
- }) | ({
323
- type: "hardBreak";
324
- } & {
325
- marks?: {
326
- type: "bold" | "strike" | "italic";
327
- }[] | undefined;
328
- }))[] | undefined;
329
- }, {
330
- attrs?: {
331
- level: number;
332
- } | undefined;
333
- content?: (({
334
- type: "text";
335
- text: string;
336
- } & {
337
- marks?: ({
338
- type: "bold" | "strike" | "italic";
339
- } | {
340
- type: "link";
341
- attrs: {
342
- href: string;
343
- target: "_blank" | null;
344
- auto: boolean;
345
- };
346
- })[] | undefined;
347
- }) | ({
348
- type: "hardBreak";
349
- } & {
350
- marks?: {
351
- type: "bold" | "strike" | "italic";
352
- }[] | undefined;
353
- }))[] | undefined;
354
- }>>;
355
- export type RemirrorHeading = z.infer<typeof RemirrorHeading>;
356
- export declare const RemirrorBulletList: z.ZodType<{
357
- type: "bulletList";
358
- content?: RemirrorListItem[];
359
- }>;
360
- export type RemirrorBulletList = z.infer<typeof RemirrorBulletList>;
361
- export declare const RemirrorOrderedList: z.ZodType<{
362
- type: "orderedList";
363
- content?: RemirrorListItem[];
364
- }>;
365
- export type RemirrorOrderedList = z.infer<typeof RemirrorOrderedList>;
366
- export declare const RemirrorListItem: z.ZodLazy<z.ZodIntersection<z.ZodObject<{
367
- type: z.ZodLiteral<"listItem">;
368
- }, "strip", z.ZodTypeAny, {
369
- type: "listItem";
370
- }, {
371
- type: "listItem";
372
- }>, z.ZodObject<{
373
- content: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
374
- type: z.ZodLiteral<"paragraph">;
375
- }, "strip", z.ZodTypeAny, {
376
- type: "paragraph";
377
- }, {
378
- type: "paragraph";
379
- }>, z.ZodObject<{
380
- content: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
381
- type: z.ZodLiteral<"text">;
382
- text: z.ZodString;
383
- }, "strip", z.ZodTypeAny, {
384
- type: "text";
385
- text: string;
386
- }, {
387
- type: "text";
388
- text: string;
389
- }>, z.ZodObject<{
390
- marks: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
391
- type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
392
- }, "strip", z.ZodTypeAny, {
393
- type: "bold" | "strike" | "italic";
394
- }, {
395
- type: "bold" | "strike" | "italic";
396
- }>, z.ZodObject<{
397
- type: z.ZodLiteral<"link">;
398
- attrs: z.ZodObject<{
399
- href: z.ZodString;
400
- target: z.ZodUnion<[z.ZodLiteral<"_blank">, z.ZodNull]>;
401
- auto: z.ZodBoolean;
402
- }, "strip", z.ZodTypeAny, {
403
- href: string;
404
- target: "_blank" | null;
405
- auto: boolean;
406
- }, {
407
- href: string;
408
- target: "_blank" | null;
409
- auto: boolean;
410
- }>;
411
- }, "strip", z.ZodTypeAny, {
412
- type: "link";
413
- attrs: {
414
- href: string;
415
- target: "_blank" | null;
416
- auto: boolean;
417
- };
418
- }, {
419
- type: "link";
420
- attrs: {
421
- href: string;
422
- target: "_blank" | null;
423
- auto: boolean;
424
- };
425
- }>]>, "many">>;
426
- }, "strip", z.ZodTypeAny, {
427
- marks?: ({
428
- type: "bold" | "strike" | "italic";
429
- } | {
430
- type: "link";
431
- attrs: {
432
- href: string;
433
- target: "_blank" | null;
434
- auto: boolean;
435
- };
436
- })[] | undefined;
437
- }, {
438
- marks?: ({
439
- type: "bold" | "strike" | "italic";
440
- } | {
441
- type: "link";
442
- attrs: {
443
- href: string;
444
- target: "_blank" | null;
445
- auto: boolean;
446
- };
447
- })[] | undefined;
448
- }>>, z.ZodIntersection<z.ZodObject<{
449
- type: z.ZodLiteral<"image">;
450
- }, "strip", z.ZodTypeAny, {
451
- type: "image";
452
- }, {
453
- type: "image";
454
- }>, z.ZodObject<{
455
- attrs: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
456
- src: z.ZodString;
457
- }, "strip", z.ZodTypeAny, {
458
- src: string;
459
- }, {
460
- src: string;
461
- }>, z.ZodObject<{
462
- align: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"center">, z.ZodLiteral<"end">, z.ZodLiteral<"justify">, z.ZodLiteral<"left">, z.ZodLiteral<"match-parent">, z.ZodLiteral<"right">, z.ZodLiteral<"start">, z.ZodNull]>>;
463
- alt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
464
- height: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
465
- width: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
466
- rotate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
467
- title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
468
- fileName: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
469
- }, "strip", z.ZodTypeAny, {
470
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
471
- alt?: string | null | undefined;
472
- height?: string | number | null | undefined;
473
- width?: string | number | null | undefined;
474
- rotate?: string | null | undefined;
475
- title?: string | null | undefined;
476
- fileName?: string | null | undefined;
477
- }, {
478
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
479
- alt?: string | null | undefined;
480
- height?: string | number | null | undefined;
481
- width?: string | number | null | undefined;
482
- rotate?: string | null | undefined;
483
- title?: string | null | undefined;
484
- fileName?: string | null | undefined;
485
- }>>>;
486
- }, "strip", z.ZodTypeAny, {
487
- attrs?: ({
488
- src: string;
489
- } & {
490
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
491
- alt?: string | null | undefined;
492
- height?: string | number | null | undefined;
493
- width?: string | number | null | undefined;
494
- rotate?: string | null | undefined;
495
- title?: string | null | undefined;
496
- fileName?: string | null | undefined;
497
- }) | undefined;
498
- }, {
499
- attrs?: ({
500
- src: string;
501
- } & {
502
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
503
- alt?: string | null | undefined;
504
- height?: string | number | null | undefined;
505
- width?: string | number | null | undefined;
506
- rotate?: string | null | undefined;
507
- title?: string | null | undefined;
508
- fileName?: string | null | undefined;
509
- }) | undefined;
510
- }>>, z.ZodIntersection<z.ZodObject<{
511
- type: z.ZodLiteral<"hardBreak">;
512
- }, "strip", z.ZodTypeAny, {
513
- type: "hardBreak";
514
- }, {
515
- type: "hardBreak";
516
- }>, z.ZodObject<{
517
- marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
518
- type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
519
- }, "strip", z.ZodTypeAny, {
520
- type: "bold" | "strike" | "italic";
521
- }, {
522
- type: "bold" | "strike" | "italic";
523
- }>, "many">>;
524
- }, "strip", z.ZodTypeAny, {
525
- marks?: {
526
- type: "bold" | "strike" | "italic";
527
- }[] | undefined;
528
- }, {
529
- marks?: {
530
- type: "bold" | "strike" | "italic";
531
- }[] | undefined;
532
- }>>]>, "many">>;
533
- }, "strip", z.ZodTypeAny, {
534
- content?: (({
535
- type: "text";
536
- text: string;
537
- } & {
538
- marks?: ({
539
- type: "bold" | "strike" | "italic";
540
- } | {
541
- type: "link";
542
- attrs: {
543
- href: string;
544
- target: "_blank" | null;
545
- auto: boolean;
546
- };
547
- })[] | undefined;
548
- }) | ({
549
- type: "image";
550
- } & {
551
- attrs?: ({
552
- src: string;
553
- } & {
554
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
555
- alt?: string | null | undefined;
556
- height?: string | number | null | undefined;
557
- width?: string | number | null | undefined;
558
- rotate?: string | null | undefined;
559
- title?: string | null | undefined;
560
- fileName?: string | null | undefined;
561
- }) | undefined;
562
- }) | ({
563
- type: "hardBreak";
564
- } & {
565
- marks?: {
566
- type: "bold" | "strike" | "italic";
567
- }[] | undefined;
568
- }))[] | undefined;
569
- }, {
570
- content?: (({
571
- type: "text";
572
- text: string;
573
- } & {
574
- marks?: ({
575
- type: "bold" | "strike" | "italic";
576
- } | {
577
- type: "link";
578
- attrs: {
579
- href: string;
580
- target: "_blank" | null;
581
- auto: boolean;
582
- };
583
- })[] | undefined;
584
- }) | ({
585
- type: "image";
586
- } & {
587
- attrs?: ({
588
- src: string;
589
- } & {
590
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
591
- alt?: string | null | undefined;
592
- height?: string | number | null | undefined;
593
- width?: string | number | null | undefined;
594
- rotate?: string | null | undefined;
595
- title?: string | null | undefined;
596
- fileName?: string | null | undefined;
597
- }) | undefined;
598
- }) | ({
599
- type: "hardBreak";
600
- } & {
601
- marks?: {
602
- type: "bold" | "strike" | "italic";
603
- }[] | undefined;
604
- }))[] | undefined;
605
- }>>, z.ZodType<{
606
- type: "bulletList";
607
- content?: ({
608
- type: "listItem";
609
- } & {
610
- content?: (({
611
- type: "paragraph";
612
- } & {
613
- content?: (({
614
- type: "text";
615
- text: string;
616
- } & {
617
- marks?: ({
618
- type: "bold" | "strike" | "italic";
619
- } | {
620
- type: "link";
621
- attrs: {
622
- href: string;
623
- target: "_blank" | null;
624
- auto: boolean;
625
- };
626
- })[] | undefined;
627
- }) | ({
628
- type: "image";
629
- } & {
630
- attrs?: ({
631
- src: string;
632
- } & {
633
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
634
- alt?: string | null | undefined;
635
- height?: string | number | null | undefined;
636
- width?: string | number | null | undefined;
637
- rotate?: string | null | undefined;
638
- title?: string | null | undefined;
639
- fileName?: string | null | undefined;
640
- }) | undefined;
641
- }) | ({
642
- type: "hardBreak";
643
- } & {
644
- marks?: {
645
- type: "bold" | "strike" | "italic";
646
- }[] | undefined;
647
- }))[] | undefined;
648
- }) | any | {
649
- type: "orderedList";
650
- content?: ({
651
- type: "listItem";
652
- } & any)[] | undefined;
653
- })[] | undefined;
654
- })[] | undefined;
655
- }, z.ZodTypeDef, {
656
- type: "bulletList";
657
- content?: ({
658
- type: "listItem";
659
- } & {
660
- content?: (({
661
- type: "paragraph";
662
- } & {
663
- content?: (({
664
- type: "text";
665
- text: string;
666
- } & {
667
- marks?: ({
668
- type: "bold" | "strike" | "italic";
669
- } | {
670
- type: "link";
671
- attrs: {
672
- href: string;
673
- target: "_blank" | null;
674
- auto: boolean;
675
- };
676
- })[] | undefined;
677
- }) | ({
678
- type: "image";
679
- } & {
680
- attrs?: ({
681
- src: string;
682
- } & {
683
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
684
- alt?: string | null | undefined;
685
- height?: string | number | null | undefined;
686
- width?: string | number | null | undefined;
687
- rotate?: string | null | undefined;
688
- title?: string | null | undefined;
689
- fileName?: string | null | undefined;
690
- }) | undefined;
691
- }) | ({
692
- type: "hardBreak";
693
- } & {
694
- marks?: {
695
- type: "bold" | "strike" | "italic";
696
- }[] | undefined;
697
- }))[] | undefined;
698
- }) | any | {
699
- type: "orderedList";
700
- content?: ({
701
- type: "listItem";
702
- } & any)[] | undefined;
703
- })[] | undefined;
704
- })[] | undefined;
705
- }>, z.ZodType<{
706
- type: "orderedList";
707
- content?: ({
708
- type: "listItem";
709
- } & any)[] | undefined;
710
- }, z.ZodTypeDef, {
711
- type: "orderedList";
712
- content?: ({
713
- type: "listItem";
714
- } & any)[] | undefined;
715
- }>]>, "many">>;
716
- }, "strip", z.ZodTypeAny, {
717
- content?: (({
718
- type: "paragraph";
719
- } & {
720
- content?: (({
721
- type: "text";
722
- text: string;
723
- } & {
724
- marks?: ({
725
- type: "bold" | "strike" | "italic";
726
- } | {
727
- type: "link";
728
- attrs: {
729
- href: string;
730
- target: "_blank" | null;
731
- auto: boolean;
732
- };
733
- })[] | undefined;
734
- }) | ({
735
- type: "image";
736
- } & {
737
- attrs?: ({
738
- src: string;
739
- } & {
740
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
741
- alt?: string | null | undefined;
742
- height?: string | number | null | undefined;
743
- width?: string | number | null | undefined;
744
- rotate?: string | null | undefined;
745
- title?: string | null | undefined;
746
- fileName?: string | null | undefined;
747
- }) | undefined;
748
- }) | ({
749
- type: "hardBreak";
750
- } & {
751
- marks?: {
752
- type: "bold" | "strike" | "italic";
753
- }[] | undefined;
754
- }))[] | undefined;
755
- }) | {
756
- type: "bulletList";
757
- content?: ({
758
- type: "listItem";
759
- } & {
760
- content?: (({
761
- type: "paragraph";
762
- } & {
763
- content?: (({
764
- type: "text";
765
- text: string;
766
- } & {
767
- marks?: ({
768
- type: "bold" | "strike" | "italic";
769
- } | {
770
- type: "link";
771
- attrs: {
772
- href: string;
773
- target: "_blank" | null;
774
- auto: boolean;
775
- };
776
- })[] | undefined;
777
- }) | ({
778
- type: "image";
779
- } & {
780
- attrs?: ({
781
- src: string;
782
- } & {
783
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
784
- alt?: string | null | undefined;
785
- height?: string | number | null | undefined;
786
- width?: string | number | null | undefined;
787
- rotate?: string | null | undefined;
788
- title?: string | null | undefined;
789
- fileName?: string | null | undefined;
790
- }) | undefined;
791
- }) | ({
792
- type: "hardBreak";
793
- } & {
794
- marks?: {
795
- type: "bold" | "strike" | "italic";
796
- }[] | undefined;
797
- }))[] | undefined;
798
- }) | any | {
799
- type: "orderedList";
800
- content?: ({
801
- type: "listItem";
802
- } & any)[] | undefined;
803
- })[] | undefined;
804
- })[] | undefined;
805
- } | {
806
- type: "orderedList";
807
- content?: ({
808
- type: "listItem";
809
- } & any)[] | undefined;
810
- })[] | undefined;
811
- }, {
812
- content?: (({
813
- type: "paragraph";
814
- } & {
815
- content?: (({
816
- type: "text";
817
- text: string;
818
- } & {
819
- marks?: ({
820
- type: "bold" | "strike" | "italic";
821
- } | {
822
- type: "link";
823
- attrs: {
824
- href: string;
825
- target: "_blank" | null;
826
- auto: boolean;
827
- };
828
- })[] | undefined;
829
- }) | ({
830
- type: "image";
831
- } & {
832
- attrs?: ({
833
- src: string;
834
- } & {
835
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
836
- alt?: string | null | undefined;
837
- height?: string | number | null | undefined;
838
- width?: string | number | null | undefined;
839
- rotate?: string | null | undefined;
840
- title?: string | null | undefined;
841
- fileName?: string | null | undefined;
842
- }) | undefined;
843
- }) | ({
844
- type: "hardBreak";
845
- } & {
846
- marks?: {
847
- type: "bold" | "strike" | "italic";
848
- }[] | undefined;
849
- }))[] | undefined;
850
- }) | {
851
- type: "bulletList";
852
- content?: ({
853
- type: "listItem";
854
- } & {
855
- content?: (({
856
- type: "paragraph";
857
- } & {
858
- content?: (({
859
- type: "text";
860
- text: string;
861
- } & {
862
- marks?: ({
863
- type: "bold" | "strike" | "italic";
864
- } | {
865
- type: "link";
866
- attrs: {
867
- href: string;
868
- target: "_blank" | null;
869
- auto: boolean;
870
- };
871
- })[] | undefined;
872
- }) | ({
873
- type: "image";
874
- } & {
875
- attrs?: ({
876
- src: string;
877
- } & {
878
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
879
- alt?: string | null | undefined;
880
- height?: string | number | null | undefined;
881
- width?: string | number | null | undefined;
882
- rotate?: string | null | undefined;
883
- title?: string | null | undefined;
884
- fileName?: string | null | undefined;
885
- }) | undefined;
886
- }) | ({
887
- type: "hardBreak";
888
- } & {
889
- marks?: {
890
- type: "bold" | "strike" | "italic";
891
- }[] | undefined;
892
- }))[] | undefined;
893
- }) | any | {
894
- type: "orderedList";
895
- content?: ({
896
- type: "listItem";
897
- } & any)[] | undefined;
898
- })[] | undefined;
899
- })[] | undefined;
900
- } | {
901
- type: "orderedList";
902
- content?: ({
903
- type: "listItem";
904
- } & any)[] | undefined;
905
- })[] | undefined;
906
- }>>>;
907
- export type RemirrorListItem = z.infer<typeof RemirrorListItem>;
908
- export declare const RemirrorParagraph: z.ZodIntersection<z.ZodObject<{
909
- type: z.ZodLiteral<"paragraph">;
910
- }, "strip", z.ZodTypeAny, {
911
- type: "paragraph";
912
- }, {
913
- type: "paragraph";
914
- }>, z.ZodObject<{
915
213
  content: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
916
214
  type: z.ZodLiteral<"text">;
917
215
  text: z.ZodString;
@@ -1066,6 +364,9 @@ export declare const RemirrorParagraph: z.ZodIntersection<z.ZodObject<{
1066
364
  }[] | undefined;
1067
365
  }>>]>, "many">>;
1068
366
  }, "strip", z.ZodTypeAny, {
367
+ attrs?: {
368
+ level: number;
369
+ } | undefined;
1069
370
  content?: (({
1070
371
  type: "text";
1071
372
  text: string;
@@ -1102,6 +403,9 @@ export declare const RemirrorParagraph: z.ZodIntersection<z.ZodObject<{
1102
403
  }[] | undefined;
1103
404
  }))[] | undefined;
1104
405
  }, {
406
+ attrs?: {
407
+ level: number;
408
+ } | undefined;
1105
409
  content?: (({
1106
410
  type: "text";
1107
411
  text: string;
@@ -1122,32 +426,137 @@ export declare const RemirrorParagraph: z.ZodIntersection<z.ZodObject<{
1122
426
  attrs?: ({
1123
427
  src: string;
1124
428
  } & {
1125
- align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
1126
- alt?: string | null | undefined;
1127
- height?: string | number | null | undefined;
1128
- width?: string | number | null | undefined;
1129
- rotate?: string | null | undefined;
1130
- title?: string | null | undefined;
1131
- fileName?: string | null | undefined;
1132
- }) | undefined;
1133
- }) | ({
1134
- type: "hardBreak";
1135
- } & {
1136
- marks?: {
1137
- type: "bold" | "strike" | "italic";
1138
- }[] | undefined;
1139
- }))[] | undefined;
1140
- }>>;
1141
- export type RemirrorParagraph = z.infer<typeof RemirrorParagraph>;
1142
- export declare const RemirrorJSON: z.ZodObject<{
1143
- type: z.ZodLiteral<"doc">;
1144
- content: z.ZodArray<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
1145
- type: z.ZodLiteral<"paragraph">;
429
+ align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
430
+ alt?: string | null | undefined;
431
+ height?: string | number | null | undefined;
432
+ width?: string | number | null | undefined;
433
+ rotate?: string | null | undefined;
434
+ title?: string | null | undefined;
435
+ fileName?: string | null | undefined;
436
+ }) | undefined;
437
+ }) | ({
438
+ type: "hardBreak";
439
+ } & {
440
+ marks?: {
441
+ type: "bold" | "strike" | "italic";
442
+ }[] | undefined;
443
+ }))[] | undefined;
444
+ }>>;
445
+ export type RemirrorHeading = z.infer<typeof RemirrorHeading>;
446
+ export declare const RemirrorBulletList: z.ZodType<{
447
+ type: "bulletList";
448
+ content?: RemirrorListItem[];
449
+ }>;
450
+ export type RemirrorBulletList = z.infer<typeof RemirrorBulletList>;
451
+ export declare const RemirrorOrderedList: z.ZodType<{
452
+ type: "orderedList";
453
+ content?: RemirrorListItem[];
454
+ }>;
455
+ export type RemirrorOrderedList = z.infer<typeof RemirrorOrderedList>;
456
+ export declare const RemirrorListItem: z.ZodType<{
457
+ type: "listItem";
458
+ attrs?: {
459
+ closed?: boolean;
460
+ nested?: boolean;
461
+ };
462
+ content?: (RemirrorParagraph | RemirrorBulletList | RemirrorOrderedList)[];
463
+ }>;
464
+ export type RemirrorListItem = z.infer<typeof RemirrorListItem>;
465
+ export declare const RemirrorParagraph: z.ZodType<{
466
+ type: "paragraph";
467
+ content?: (RemirrorText | RemirrorImage | RemirrorBr)[];
468
+ }>;
469
+ export type RemirrorParagraph = z.infer<typeof RemirrorParagraph>;
470
+ export declare const RemirrorJSON: z.ZodObject<{
471
+ type: z.ZodLiteral<"doc">;
472
+ content: z.ZodArray<z.ZodUnion<[z.ZodType<{
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;
509
+ }, z.ZodTypeDef, {
510
+ 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;
546
+ }>, z.ZodIntersection<z.ZodObject<{
547
+ type: z.ZodLiteral<"heading">;
1146
548
  }, "strip", z.ZodTypeAny, {
1147
- type: "paragraph";
549
+ type: "heading";
1148
550
  }, {
1149
- type: "paragraph";
551
+ type: "heading";
1150
552
  }>, z.ZodObject<{
553
+ attrs: z.ZodOptional<z.ZodObject<{
554
+ level: z.ZodNumber;
555
+ }, "strip", z.ZodTypeAny, {
556
+ level: number;
557
+ }, {
558
+ level: number;
559
+ }>>;
1151
560
  content: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
1152
561
  type: z.ZodLiteral<"text">;
1153
562
  text: z.ZodString;
@@ -1302,6 +711,9 @@ export declare const RemirrorJSON: z.ZodObject<{
1302
711
  }[] | undefined;
1303
712
  }>>]>, "many">>;
1304
713
  }, "strip", z.ZodTypeAny, {
714
+ attrs?: {
715
+ level: number;
716
+ } | undefined;
1305
717
  content?: (({
1306
718
  type: "text";
1307
719
  text: string;
@@ -1338,6 +750,9 @@ export declare const RemirrorJSON: z.ZodObject<{
1338
750
  }[] | undefined;
1339
751
  }))[] | undefined;
1340
752
  }, {
753
+ attrs?: {
754
+ level: number;
755
+ } | undefined;
1341
756
  content?: (({
1342
757
  type: "text";
1343
758
  text: string;
@@ -1373,169 +788,16 @@ export declare const RemirrorJSON: z.ZodObject<{
1373
788
  type: "bold" | "strike" | "italic";
1374
789
  }[] | undefined;
1375
790
  }))[] | undefined;
1376
- }>>, z.ZodIntersection<z.ZodObject<{
1377
- type: z.ZodLiteral<"heading">;
1378
- }, "strip", z.ZodTypeAny, {
1379
- type: "heading";
1380
- }, {
1381
- type: "heading";
1382
- }>, z.ZodObject<{
1383
- attrs: z.ZodOptional<z.ZodObject<{
1384
- level: z.ZodNumber;
1385
- }, "strip", z.ZodTypeAny, {
1386
- level: number;
1387
- }, {
1388
- level: number;
1389
- }>>;
1390
- content: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
1391
- type: z.ZodLiteral<"text">;
1392
- text: z.ZodString;
1393
- }, "strip", z.ZodTypeAny, {
1394
- type: "text";
1395
- text: string;
1396
- }, {
1397
- type: "text";
1398
- text: string;
1399
- }>, z.ZodObject<{
1400
- marks: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1401
- type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
1402
- }, "strip", z.ZodTypeAny, {
1403
- type: "bold" | "strike" | "italic";
1404
- }, {
1405
- type: "bold" | "strike" | "italic";
1406
- }>, z.ZodObject<{
1407
- type: z.ZodLiteral<"link">;
1408
- attrs: z.ZodObject<{
1409
- href: z.ZodString;
1410
- target: z.ZodUnion<[z.ZodLiteral<"_blank">, z.ZodNull]>;
1411
- auto: z.ZodBoolean;
1412
- }, "strip", z.ZodTypeAny, {
1413
- href: string;
1414
- target: "_blank" | null;
1415
- auto: boolean;
1416
- }, {
1417
- href: string;
1418
- target: "_blank" | null;
1419
- auto: boolean;
1420
- }>;
1421
- }, "strip", z.ZodTypeAny, {
1422
- type: "link";
1423
- attrs: {
1424
- href: string;
1425
- target: "_blank" | null;
1426
- auto: boolean;
1427
- };
1428
- }, {
1429
- type: "link";
1430
- attrs: {
1431
- href: string;
1432
- target: "_blank" | null;
1433
- auto: boolean;
1434
- };
1435
- }>]>, "many">>;
1436
- }, "strip", z.ZodTypeAny, {
1437
- marks?: ({
1438
- type: "bold" | "strike" | "italic";
1439
- } | {
1440
- type: "link";
1441
- attrs: {
1442
- href: string;
1443
- target: "_blank" | null;
1444
- auto: boolean;
1445
- };
1446
- })[] | undefined;
1447
- }, {
1448
- marks?: ({
1449
- type: "bold" | "strike" | "italic";
1450
- } | {
1451
- type: "link";
1452
- attrs: {
1453
- href: string;
1454
- target: "_blank" | null;
1455
- auto: boolean;
1456
- };
1457
- })[] | undefined;
1458
- }>>, z.ZodIntersection<z.ZodObject<{
1459
- type: z.ZodLiteral<"hardBreak">;
1460
- }, "strip", z.ZodTypeAny, {
1461
- type: "hardBreak";
1462
- }, {
1463
- type: "hardBreak";
1464
- }>, z.ZodObject<{
1465
- marks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1466
- type: z.ZodUnion<[z.ZodLiteral<"bold">, z.ZodLiteral<"strike">, z.ZodLiteral<"italic">]>;
1467
- }, "strip", z.ZodTypeAny, {
1468
- type: "bold" | "strike" | "italic";
1469
- }, {
1470
- type: "bold" | "strike" | "italic";
1471
- }>, "many">>;
1472
- }, "strip", z.ZodTypeAny, {
1473
- marks?: {
1474
- type: "bold" | "strike" | "italic";
1475
- }[] | undefined;
1476
- }, {
1477
- marks?: {
1478
- type: "bold" | "strike" | "italic";
1479
- }[] | undefined;
1480
- }>>]>, "many">>;
1481
- }, "strip", z.ZodTypeAny, {
1482
- attrs?: {
1483
- level: number;
1484
- } | undefined;
1485
- content?: (({
1486
- type: "text";
1487
- text: string;
1488
- } & {
1489
- marks?: ({
1490
- type: "bold" | "strike" | "italic";
1491
- } | {
1492
- type: "link";
1493
- attrs: {
1494
- href: string;
1495
- target: "_blank" | null;
1496
- auto: boolean;
1497
- };
1498
- })[] | undefined;
1499
- }) | ({
1500
- type: "hardBreak";
1501
- } & {
1502
- marks?: {
1503
- type: "bold" | "strike" | "italic";
1504
- }[] | undefined;
1505
- }))[] | undefined;
1506
- }, {
1507
- attrs?: {
1508
- level: number;
1509
- } | undefined;
1510
- content?: (({
1511
- type: "text";
1512
- text: string;
1513
- } & {
1514
- marks?: ({
1515
- type: "bold" | "strike" | "italic";
1516
- } | {
1517
- type: "link";
1518
- attrs: {
1519
- href: string;
1520
- target: "_blank" | null;
1521
- auto: boolean;
1522
- };
1523
- })[] | undefined;
1524
- }) | ({
1525
- type: "hardBreak";
1526
- } & {
1527
- marks?: {
1528
- type: "bold" | "strike" | "italic";
1529
- }[] | undefined;
1530
- }))[] | undefined;
1531
791
  }>>, z.ZodType<{
1532
792
  type: "bulletList";
1533
- content?: ({
793
+ content?: {
1534
794
  type: "listItem";
1535
- } & {
1536
- content?: (({
795
+ attrs?: {
796
+ closed?: boolean | undefined;
797
+ nested?: boolean | undefined;
798
+ } | undefined;
799
+ content?: ({
1537
800
  type: "paragraph";
1538
- } & {
1539
801
  content?: (({
1540
802
  type: "text";
1541
803
  text: string;
@@ -1571,21 +833,21 @@ export declare const RemirrorJSON: z.ZodObject<{
1571
833
  type: "bold" | "strike" | "italic";
1572
834
  }[] | undefined;
1573
835
  }))[] | undefined;
1574
- }) | any | {
836
+ } | any | {
1575
837
  type: "orderedList";
1576
- content?: ({
1577
- type: "listItem";
1578
- } & any)[] | undefined;
838
+ content?: any[] | undefined;
1579
839
  })[] | undefined;
1580
- })[] | undefined;
840
+ }[] | undefined;
1581
841
  }, z.ZodTypeDef, {
1582
842
  type: "bulletList";
1583
- content?: ({
843
+ content?: {
1584
844
  type: "listItem";
1585
- } & {
1586
- content?: (({
845
+ attrs?: {
846
+ closed?: boolean | undefined;
847
+ nested?: boolean | undefined;
848
+ } | undefined;
849
+ content?: ({
1587
850
  type: "paragraph";
1588
- } & {
1589
851
  content?: (({
1590
852
  type: "text";
1591
853
  text: string;
@@ -1621,29 +883,22 @@ export declare const RemirrorJSON: z.ZodObject<{
1621
883
  type: "bold" | "strike" | "italic";
1622
884
  }[] | undefined;
1623
885
  }))[] | undefined;
1624
- }) | any | {
886
+ } | any | {
1625
887
  type: "orderedList";
1626
- content?: ({
1627
- type: "listItem";
1628
- } & any)[] | undefined;
888
+ content?: any[] | undefined;
1629
889
  })[] | undefined;
1630
- })[] | undefined;
890
+ }[] | undefined;
1631
891
  }>, z.ZodType<{
1632
892
  type: "orderedList";
1633
- content?: ({
1634
- type: "listItem";
1635
- } & any)[] | undefined;
893
+ content?: any[] | undefined;
1636
894
  }, z.ZodTypeDef, {
1637
895
  type: "orderedList";
1638
- content?: ({
1639
- type: "listItem";
1640
- } & any)[] | undefined;
896
+ content?: any[] | undefined;
1641
897
  }>]>, "many">;
1642
898
  }, "strip", z.ZodTypeAny, {
1643
899
  type: "doc";
1644
- content: (({
900
+ content: ({
1645
901
  type: "paragraph";
1646
- } & {
1647
902
  content?: (({
1648
903
  type: "text";
1649
904
  text: string;
@@ -1679,7 +934,7 @@ export declare const RemirrorJSON: z.ZodObject<{
1679
934
  type: "bold" | "strike" | "italic";
1680
935
  }[] | undefined;
1681
936
  }))[] | undefined;
1682
- }) | ({
937
+ } | ({
1683
938
  type: "heading";
1684
939
  } & {
1685
940
  attrs?: {
@@ -1699,6 +954,20 @@ export declare const RemirrorJSON: z.ZodObject<{
1699
954
  auto: boolean;
1700
955
  };
1701
956
  })[] | undefined;
957
+ }) | ({
958
+ type: "image";
959
+ } & {
960
+ attrs?: ({
961
+ src: string;
962
+ } & {
963
+ align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
964
+ alt?: string | null | undefined;
965
+ height?: string | number | null | undefined;
966
+ width?: string | number | null | undefined;
967
+ rotate?: string | null | undefined;
968
+ title?: string | null | undefined;
969
+ fileName?: string | null | undefined;
970
+ }) | undefined;
1702
971
  }) | ({
1703
972
  type: "hardBreak";
1704
973
  } & {
@@ -1708,12 +977,14 @@ export declare const RemirrorJSON: z.ZodObject<{
1708
977
  }))[] | undefined;
1709
978
  }) | {
1710
979
  type: "bulletList";
1711
- content?: ({
980
+ content?: {
1712
981
  type: "listItem";
1713
- } & {
1714
- content?: (({
982
+ attrs?: {
983
+ closed?: boolean | undefined;
984
+ nested?: boolean | undefined;
985
+ } | undefined;
986
+ content?: ({
1715
987
  type: "paragraph";
1716
- } & {
1717
988
  content?: (({
1718
989
  type: "text";
1719
990
  text: string;
@@ -1749,24 +1020,19 @@ export declare const RemirrorJSON: z.ZodObject<{
1749
1020
  type: "bold" | "strike" | "italic";
1750
1021
  }[] | undefined;
1751
1022
  }))[] | undefined;
1752
- }) | any | {
1023
+ } | any | {
1753
1024
  type: "orderedList";
1754
- content?: ({
1755
- type: "listItem";
1756
- } & any)[] | undefined;
1025
+ content?: any[] | undefined;
1757
1026
  })[] | undefined;
1758
- })[] | undefined;
1027
+ }[] | undefined;
1759
1028
  } | {
1760
1029
  type: "orderedList";
1761
- content?: ({
1762
- type: "listItem";
1763
- } & any)[] | undefined;
1030
+ content?: any[] | undefined;
1764
1031
  })[];
1765
1032
  }, {
1766
1033
  type: "doc";
1767
- content: (({
1034
+ content: ({
1768
1035
  type: "paragraph";
1769
- } & {
1770
1036
  content?: (({
1771
1037
  type: "text";
1772
1038
  text: string;
@@ -1802,7 +1068,7 @@ export declare const RemirrorJSON: z.ZodObject<{
1802
1068
  type: "bold" | "strike" | "italic";
1803
1069
  }[] | undefined;
1804
1070
  }))[] | undefined;
1805
- }) | ({
1071
+ } | ({
1806
1072
  type: "heading";
1807
1073
  } & {
1808
1074
  attrs?: {
@@ -1822,6 +1088,20 @@ export declare const RemirrorJSON: z.ZodObject<{
1822
1088
  auto: boolean;
1823
1089
  };
1824
1090
  })[] | undefined;
1091
+ }) | ({
1092
+ type: "image";
1093
+ } & {
1094
+ attrs?: ({
1095
+ src: string;
1096
+ } & {
1097
+ align?: "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start" | null | undefined;
1098
+ alt?: string | null | undefined;
1099
+ height?: string | number | null | undefined;
1100
+ width?: string | number | null | undefined;
1101
+ rotate?: string | null | undefined;
1102
+ title?: string | null | undefined;
1103
+ fileName?: string | null | undefined;
1104
+ }) | undefined;
1825
1105
  }) | ({
1826
1106
  type: "hardBreak";
1827
1107
  } & {
@@ -1831,12 +1111,14 @@ export declare const RemirrorJSON: z.ZodObject<{
1831
1111
  }))[] | undefined;
1832
1112
  }) | {
1833
1113
  type: "bulletList";
1834
- content?: ({
1114
+ content?: {
1835
1115
  type: "listItem";
1836
- } & {
1837
- content?: (({
1116
+ attrs?: {
1117
+ closed?: boolean | undefined;
1118
+ nested?: boolean | undefined;
1119
+ } | undefined;
1120
+ content?: ({
1838
1121
  type: "paragraph";
1839
- } & {
1840
1122
  content?: (({
1841
1123
  type: "text";
1842
1124
  text: string;
@@ -1872,18 +1154,14 @@ export declare const RemirrorJSON: z.ZodObject<{
1872
1154
  type: "bold" | "strike" | "italic";
1873
1155
  }[] | undefined;
1874
1156
  }))[] | undefined;
1875
- }) | any | {
1157
+ } | any | {
1876
1158
  type: "orderedList";
1877
- content?: ({
1878
- type: "listItem";
1879
- } & any)[] | undefined;
1159
+ content?: any[] | undefined;
1880
1160
  })[] | undefined;
1881
- })[] | undefined;
1161
+ }[] | undefined;
1882
1162
  } | {
1883
1163
  type: "orderedList";
1884
- content?: ({
1885
- type: "listItem";
1886
- } & any)[] | undefined;
1164
+ content?: any[] | undefined;
1887
1165
  })[];
1888
1166
  }>;
1889
1167
  export type RemirrorJSON = z.infer<typeof RemirrorJSON>;