@prismicio/editor-fields 0.4.65 → 0.4.67-alpha.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.
@@ -105,6 +105,9 @@ interface OnAnalyticsEvent {
105
105
  error?: string;
106
106
  url?: string;
107
107
  }): void;
108
+ (event: "Table Limit Reached", args: {
109
+ type: "row" | "column";
110
+ }): void;
108
111
  }
109
112
  interface Analytics {
110
113
  onAnalyticsEvent?: OnAnalyticsEvent;
@@ -7,14 +7,14 @@ declare const CustomType: z.ZodObject<{
7
7
  repeatable: z.ZodBoolean;
8
8
  status: z.ZodBoolean;
9
9
  }, "strip", z.ZodTypeAny, {
10
- status: boolean;
11
10
  id: string;
12
11
  label: string;
12
+ status: boolean;
13
13
  repeatable: boolean;
14
14
  }, {
15
- status: boolean;
16
15
  id: string;
17
16
  label: string;
17
+ status: boolean;
18
18
  repeatable: boolean;
19
19
  }>;
20
20
  export type CustomType = z.TypeOf<typeof CustomType>;
@@ -24,50 +24,50 @@ interface CustomTypesOptionsArgs {
24
24
  authStrategy: AuthStrategy;
25
25
  }
26
26
  export declare function getCustomTypesOptions(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
27
- status: boolean;
28
27
  id: string;
29
28
  label: string;
29
+ status: boolean;
30
30
  repeatable: boolean;
31
31
  }[], Error, {
32
- status: boolean;
33
32
  id: string;
34
33
  label: string;
34
+ status: boolean;
35
35
  repeatable: boolean;
36
36
  }[], string[]> & {
37
37
  initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
38
- status: boolean;
39
38
  id: string;
40
39
  label: string;
40
+ status: boolean;
41
41
  repeatable: boolean;
42
42
  }[]> | undefined;
43
43
  } & {
44
44
  queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
45
- status: boolean;
46
45
  id: string;
47
46
  label: string;
47
+ status: boolean;
48
48
  repeatable: boolean;
49
49
  }[]>;
50
50
  };
51
51
  export declare function prefetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): void;
52
52
  export declare function fetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<{
53
- status: boolean;
54
53
  id: string;
55
54
  label: string;
55
+ status: boolean;
56
56
  repeatable: boolean;
57
57
  }[]>;
58
58
  export declare function useCustomTypes(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{
59
- status: boolean;
60
59
  id: string;
61
60
  label: string;
61
+ status: boolean;
62
62
  repeatable: boolean;
63
63
  }[], Error>;
64
64
  interface CustomTypeOptionsArgs extends CustomTypesOptionsArgs {
65
65
  id: string;
66
66
  }
67
67
  export declare function useCustomType(args: CustomTypeOptionsArgs): {
68
- status: boolean;
69
68
  id: string;
70
69
  label: string;
70
+ status: boolean;
71
71
  repeatable: boolean;
72
72
  };
73
73
  export declare function invalidateCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<void>;
@@ -156,10 +156,10 @@ declare const documentSearchVersionSchema: z.ZodIntersection<z.ZodDiscriminatedU
156
156
  version_id: string;
157
157
  tags: string[];
158
158
  last_modified_date: Date;
159
+ summary?: string | undefined;
159
160
  preview_image?: string | undefined;
160
161
  uid?: string | undefined;
161
162
  custom_type_id?: string | undefined;
162
- summary?: string | undefined;
163
163
  author_ids?: string[] | undefined;
164
164
  highlights?: {
165
165
  uid?: string | undefined;
@@ -168,10 +168,10 @@ declare const documentSearchVersionSchema: z.ZodIntersection<z.ZodDiscriminatedU
168
168
  version_id: string;
169
169
  tags: string[];
170
170
  last_modified_date: Date;
171
+ summary?: string | undefined;
171
172
  preview_image?: string | undefined;
172
173
  uid?: string | undefined;
173
174
  custom_type_id?: string | undefined;
174
- summary?: string | undefined;
175
175
  author_ids?: string[] | undefined;
176
176
  highlights?: {
177
177
  uid?: string | undefined;
@@ -680,10 +680,10 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
680
680
  version_id: string;
681
681
  tags: string[];
682
682
  last_modified_date: Date;
683
+ summary?: string | undefined;
683
684
  preview_image?: string | undefined;
684
685
  uid?: string | undefined;
685
686
  custom_type_id?: string | undefined;
686
- summary?: string | undefined;
687
687
  author_ids?: string[] | undefined;
688
688
  highlights?: {
689
689
  uid?: string | undefined;
@@ -692,10 +692,10 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
692
692
  version_id: string;
693
693
  tags: string[];
694
694
  last_modified_date: Date;
695
+ summary?: string | undefined;
695
696
  preview_image?: string | undefined;
696
697
  uid?: string | undefined;
697
698
  custom_type_id?: string | undefined;
698
- summary?: string | undefined;
699
699
  author_ids?: string[] | undefined;
700
700
  highlights?: {
701
701
  uid?: string | undefined;
@@ -720,10 +720,10 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
720
720
  version_id: string;
721
721
  tags: string[];
722
722
  last_modified_date: Date;
723
+ summary?: string | undefined;
723
724
  preview_image?: string | undefined;
724
725
  uid?: string | undefined;
725
726
  custom_type_id?: string | undefined;
726
- summary?: string | undefined;
727
727
  author_ids?: string[] | undefined;
728
728
  highlights?: {
729
729
  uid?: string | undefined;
@@ -747,10 +747,10 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
747
747
  version_id: string;
748
748
  tags: string[];
749
749
  last_modified_date: Date;
750
+ summary?: string | undefined;
750
751
  preview_image?: string | undefined;
751
752
  uid?: string | undefined;
752
753
  custom_type_id?: string | undefined;
753
- summary?: string | undefined;
754
754
  author_ids?: string[] | undefined;
755
755
  highlights?: {
756
756
  uid?: string | undefined;
@@ -777,10 +777,10 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
777
777
  version_id: string;
778
778
  tags: string[];
779
779
  last_modified_date: Date;
780
+ summary?: string | undefined;
780
781
  preview_image?: string | undefined;
781
782
  uid?: string | undefined;
782
783
  custom_type_id?: string | undefined;
783
- summary?: string | undefined;
784
784
  author_ids?: string[] | undefined;
785
785
  highlights?: {
786
786
  uid?: string | undefined;
@@ -803,10 +803,10 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
803
803
  version_id: string;
804
804
  tags: string[];
805
805
  last_modified_date: Date;
806
+ summary?: string | undefined;
806
807
  preview_image?: string | undefined;
807
808
  uid?: string | undefined;
808
809
  custom_type_id?: string | undefined;
809
- summary?: string | undefined;
810
810
  author_ids?: string[] | undefined;
811
811
  highlights?: {
812
812
  uid?: string | undefined;
@@ -869,10 +869,10 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
869
869
  version_id: string;
870
870
  tags: string[];
871
871
  last_modified_date: Date;
872
+ summary?: string | undefined;
872
873
  preview_image?: string | undefined;
873
874
  uid?: string | undefined;
874
875
  custom_type_id?: string | undefined;
875
- summary?: string | undefined;
876
876
  author_ids?: string[] | undefined;
877
877
  highlights?: {
878
878
  uid?: string | undefined;
@@ -881,10 +881,10 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
881
881
  version_id: string;
882
882
  tags: string[];
883
883
  last_modified_date: Date;
884
+ summary?: string | undefined;
884
885
  preview_image?: string | undefined;
885
886
  uid?: string | undefined;
886
887
  custom_type_id?: string | undefined;
887
- summary?: string | undefined;
888
888
  author_ids?: string[] | undefined;
889
889
  highlights?: {
890
890
  uid?: string | undefined;
@@ -909,10 +909,10 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
909
909
  version_id: string;
910
910
  tags: string[];
911
911
  last_modified_date: Date;
912
+ summary?: string | undefined;
912
913
  preview_image?: string | undefined;
913
914
  uid?: string | undefined;
914
915
  custom_type_id?: string | undefined;
915
- summary?: string | undefined;
916
916
  author_ids?: string[] | undefined;
917
917
  highlights?: {
918
918
  uid?: string | undefined;
@@ -936,10 +936,10 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
936
936
  version_id: string;
937
937
  tags: string[];
938
938
  last_modified_date: Date;
939
+ summary?: string | undefined;
939
940
  preview_image?: string | undefined;
940
941
  uid?: string | undefined;
941
942
  custom_type_id?: string | undefined;
942
- summary?: string | undefined;
943
943
  author_ids?: string[] | undefined;
944
944
  highlights?: {
945
945
  uid?: string | undefined;
@@ -966,10 +966,10 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
966
966
  version_id: string;
967
967
  tags: string[];
968
968
  last_modified_date: Date;
969
+ summary?: string | undefined;
969
970
  preview_image?: string | undefined;
970
971
  uid?: string | undefined;
971
972
  custom_type_id?: string | undefined;
972
- summary?: string | undefined;
973
973
  author_ids?: string[] | undefined;
974
974
  highlights?: {
975
975
  uid?: string | undefined;
@@ -992,10 +992,10 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
992
992
  version_id: string;
993
993
  tags: string[];
994
994
  last_modified_date: Date;
995
+ summary?: string | undefined;
995
996
  preview_image?: string | undefined;
996
997
  uid?: string | undefined;
997
998
  custom_type_id?: string | undefined;
998
- summary?: string | undefined;
999
999
  author_ids?: string[] | undefined;
1000
1000
  highlights?: {
1001
1001
  uid?: string | undefined;
@@ -1024,10 +1024,10 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
1024
1024
  version_id: string;
1025
1025
  tags: string[];
1026
1026
  last_modified_date: Date;
1027
+ summary?: string | undefined;
1027
1028
  preview_image?: string | undefined;
1028
1029
  uid?: string | undefined;
1029
1030
  custom_type_id?: string | undefined;
1030
- summary?: string | undefined;
1031
1031
  author_ids?: string[] | undefined;
1032
1032
  highlights?: {
1033
1033
  uid?: string | undefined;
@@ -1052,10 +1052,10 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
1052
1052
  version_id: string;
1053
1053
  tags: string[];
1054
1054
  last_modified_date: Date;
1055
+ summary?: string | undefined;
1055
1056
  preview_image?: string | undefined;
1056
1057
  uid?: string | undefined;
1057
1058
  custom_type_id?: string | undefined;
1058
- summary?: string | undefined;
1059
1059
  author_ids?: string[] | undefined;
1060
1060
  highlights?: {
1061
1061
  uid?: string | undefined;
@@ -1453,9 +1453,13 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1453
1453
  __TYPE__: "SeparatorContent";
1454
1454
  } | {
1455
1455
  __TYPE__: "TableContent";
1456
- content: {
1456
+ content: ({
1457
+ key: string;
1458
+ } & {
1457
1459
  type: "tableRow";
1458
1460
  content: ({
1461
+ key: string;
1462
+ } & {
1459
1463
  type: "tableCell" | "tableHeader";
1460
1464
  content: {
1461
1465
  __TYPE__: "StructuredTextContent";
@@ -1614,7 +1618,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
1614
1618
  } & {
1615
1619
  columnWidth?: number | undefined;
1616
1620
  })[];
1617
- }[];
1621
+ })[];
1618
1622
  } | {
1619
1623
  __TYPE__: "RepeatableContent";
1620
1624
  type: "Link";
@@ -2050,9 +2054,13 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2050
2054
  __TYPE__: "SeparatorContent";
2051
2055
  } | {
2052
2056
  __TYPE__: "TableContent";
2053
- content: {
2057
+ content: ({
2058
+ key: string;
2059
+ } & {
2054
2060
  type: "tableRow";
2055
2061
  content: ({
2062
+ key: string;
2063
+ } & {
2056
2064
  type: "tableCell" | "tableHeader";
2057
2065
  content: {
2058
2066
  __TYPE__: "StructuredTextContent";
@@ -2211,7 +2219,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2211
2219
  } & {
2212
2220
  columnWidth?: number | undefined;
2213
2221
  })[];
2214
- }[];
2222
+ })[];
2215
2223
  } | {
2216
2224
  __TYPE__: "RepeatableContent";
2217
2225
  type: "Link";
@@ -2639,9 +2647,13 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2639
2647
  __TYPE__: "SeparatorContent";
2640
2648
  } | {
2641
2649
  __TYPE__: "TableContent";
2642
- content: {
2650
+ content: ({
2651
+ key: string;
2652
+ } & {
2643
2653
  type: "tableRow";
2644
2654
  content: ({
2655
+ key: string;
2656
+ } & {
2645
2657
  type: "tableCell" | "tableHeader";
2646
2658
  content: {
2647
2659
  __TYPE__: "StructuredTextContent";
@@ -2797,7 +2809,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
2797
2809
  } & {
2798
2810
  columnWidth?: number | undefined;
2799
2811
  })[];
2800
- }[];
2812
+ })[];
2801
2813
  } | {
2802
2814
  __TYPE__: "RepeatableContent";
2803
2815
  type: "Link";
@@ -3227,9 +3239,13 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
3227
3239
  __TYPE__: "SeparatorContent";
3228
3240
  } | {
3229
3241
  __TYPE__: "TableContent";
3230
- content: {
3242
+ content: ({
3243
+ key: string;
3244
+ } & {
3231
3245
  type: "tableRow";
3232
3246
  content: ({
3247
+ key: string;
3248
+ } & {
3233
3249
  type: "tableCell" | "tableHeader";
3234
3250
  content: {
3235
3251
  __TYPE__: "StructuredTextContent";
@@ -3388,7 +3404,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
3388
3404
  } & {
3389
3405
  columnWidth?: number | undefined;
3390
3406
  })[];
3391
- }[];
3407
+ })[];
3392
3408
  } | {
3393
3409
  __TYPE__: "RepeatableContent";
3394
3410
  type: "Link";
@@ -3816,9 +3832,13 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
3816
3832
  __TYPE__: "SeparatorContent";
3817
3833
  } | {
3818
3834
  __TYPE__: "TableContent";
3819
- content: {
3835
+ content: ({
3836
+ key: string;
3837
+ } & {
3820
3838
  type: "tableRow";
3821
3839
  content: ({
3840
+ key: string;
3841
+ } & {
3822
3842
  type: "tableCell" | "tableHeader";
3823
3843
  content: {
3824
3844
  __TYPE__: "StructuredTextContent";
@@ -3974,7 +3994,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
3974
3994
  } & {
3975
3995
  columnWidth?: number | undefined;
3976
3996
  })[];
3977
- }[];
3997
+ })[];
3978
3998
  } | {
3979
3999
  __TYPE__: "RepeatableContent";
3980
4000
  type: "Link";
@@ -4400,9 +4420,13 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
4400
4420
  __TYPE__: "SeparatorContent";
4401
4421
  } | {
4402
4422
  __TYPE__: "TableContent";
4403
- content: {
4423
+ content: ({
4424
+ key: string;
4425
+ } & {
4404
4426
  type: "tableRow";
4405
4427
  content: ({
4428
+ key: string;
4429
+ } & {
4406
4430
  type: "tableCell" | "tableHeader";
4407
4431
  content: {
4408
4432
  __TYPE__: "StructuredTextContent";
@@ -4561,7 +4585,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
4561
4585
  } & {
4562
4586
  columnWidth?: number | undefined;
4563
4587
  })[];
4564
- }[];
4588
+ })[];
4565
4589
  } | {
4566
4590
  __TYPE__: "RepeatableContent";
4567
4591
  type: "Link";
@@ -4996,9 +5020,13 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
4996
5020
  __TYPE__: "SeparatorContent";
4997
5021
  } | {
4998
5022
  __TYPE__: "TableContent";
4999
- content: {
5023
+ content: ({
5024
+ key: string;
5025
+ } & {
5000
5026
  type: "tableRow";
5001
5027
  content: ({
5028
+ key: string;
5029
+ } & {
5002
5030
  type: "tableCell" | "tableHeader";
5003
5031
  content: {
5004
5032
  __TYPE__: "StructuredTextContent";
@@ -5157,7 +5185,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
5157
5185
  } & {
5158
5186
  columnWidth?: number | undefined;
5159
5187
  })[];
5160
- }[];
5188
+ })[];
5161
5189
  } | {
5162
5190
  __TYPE__: "RepeatableContent";
5163
5191
  type: "Link";
@@ -5585,9 +5613,13 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
5585
5613
  __TYPE__: "SeparatorContent";
5586
5614
  } | {
5587
5615
  __TYPE__: "TableContent";
5588
- content: {
5616
+ content: ({
5617
+ key: string;
5618
+ } & {
5589
5619
  type: "tableRow";
5590
5620
  content: ({
5621
+ key: string;
5622
+ } & {
5591
5623
  type: "tableCell" | "tableHeader";
5592
5624
  content: {
5593
5625
  __TYPE__: "StructuredTextContent";
@@ -5746,7 +5778,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
5746
5778
  } & {
5747
5779
  columnWidth?: number | undefined;
5748
5780
  })[];
5749
- }[];
5781
+ })[];
5750
5782
  } | {
5751
5783
  __TYPE__: "RepeatableContent";
5752
5784
  type: "Link";
@@ -6176,9 +6208,13 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
6176
6208
  __TYPE__: "SeparatorContent";
6177
6209
  } | {
6178
6210
  __TYPE__: "TableContent";
6179
- content: {
6211
+ content: ({
6212
+ key: string;
6213
+ } & {
6180
6214
  type: "tableRow";
6181
6215
  content: ({
6216
+ key: string;
6217
+ } & {
6182
6218
  type: "tableCell" | "tableHeader";
6183
6219
  content: {
6184
6220
  __TYPE__: "StructuredTextContent";
@@ -6337,7 +6373,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
6337
6373
  } & {
6338
6374
  columnWidth?: number | undefined;
6339
6375
  })[];
6340
- }[];
6376
+ })[];
6341
6377
  } | {
6342
6378
  __TYPE__: "RepeatableContent";
6343
6379
  type: "Link";
@@ -6765,9 +6801,13 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
6765
6801
  __TYPE__: "SeparatorContent";
6766
6802
  } | {
6767
6803
  __TYPE__: "TableContent";
6768
- content: {
6804
+ content: ({
6805
+ key: string;
6806
+ } & {
6769
6807
  type: "tableRow";
6770
6808
  content: ({
6809
+ key: string;
6810
+ } & {
6771
6811
  type: "tableCell" | "tableHeader";
6772
6812
  content: {
6773
6813
  __TYPE__: "StructuredTextContent";
@@ -6926,7 +6966,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
6926
6966
  } & {
6927
6967
  columnWidth?: number | undefined;
6928
6968
  })[];
6929
- }[];
6969
+ })[];
6930
6970
  } | {
6931
6971
  __TYPE__: "RepeatableContent";
6932
6972
  type: "Link";
@@ -7352,9 +7392,13 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
7352
7392
  __TYPE__: "SeparatorContent";
7353
7393
  } | {
7354
7394
  __TYPE__: "TableContent";
7355
- content: {
7395
+ content: ({
7396
+ key: string;
7397
+ } & {
7356
7398
  type: "tableRow";
7357
7399
  content: ({
7400
+ key: string;
7401
+ } & {
7358
7402
  type: "tableCell" | "tableHeader";
7359
7403
  content: {
7360
7404
  __TYPE__: "StructuredTextContent";
@@ -7513,7 +7557,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
7513
7557
  } & {
7514
7558
  columnWidth?: number | undefined;
7515
7559
  })[];
7516
- }[];
7560
+ })[];
7517
7561
  } | {
7518
7562
  __TYPE__: "RepeatableContent";
7519
7563
  type: "Link";
@@ -75,10 +75,10 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
75
75
  version_id: string;
76
76
  tags: string[];
77
77
  last_modified_date: Date;
78
+ summary?: string | undefined;
78
79
  preview_image?: string | undefined;
79
80
  uid?: string | undefined;
80
81
  custom_type_id?: string | undefined;
81
- summary?: string | undefined;
82
82
  author_ids?: string[] | undefined;
83
83
  highlights?: {
84
84
  uid?: string | undefined;
@@ -156,10 +156,10 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
156
156
  version_id: string;
157
157
  tags: string[];
158
158
  last_modified_date: Date;
159
+ summary?: string | undefined;
159
160
  preview_image?: string | undefined;
160
161
  uid?: string | undefined;
161
162
  custom_type_id?: string | undefined;
162
- summary?: string | undefined;
163
163
  author_ids?: string[] | undefined;
164
164
  highlights?: {
165
165
  uid?: string | undefined;
@@ -223,10 +223,10 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
223
223
  version_id: string;
224
224
  tags: string[];
225
225
  last_modified_date: Date;
226
+ summary?: string | undefined;
226
227
  preview_image?: string | undefined;
227
228
  uid?: string | undefined;
228
229
  custom_type_id?: string | undefined;
229
- summary?: string | undefined;
230
230
  author_ids?: string[] | undefined;
231
231
  highlights?: {
232
232
  uid?: string | undefined;
@@ -306,10 +306,10 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
306
306
  version_id: string;
307
307
  tags: string[];
308
308
  last_modified_date: Date;
309
+ summary?: string | undefined;
309
310
  preview_image?: string | undefined;
310
311
  uid?: string | undefined;
311
312
  custom_type_id?: string | undefined;
312
- summary?: string | undefined;
313
313
  author_ids?: string[] | undefined;
314
314
  highlights?: {
315
315
  uid?: string | undefined;
@@ -390,10 +390,10 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
390
390
  version_id: string;
391
391
  tags: string[];
392
392
  last_modified_date: Date;
393
+ summary?: string | undefined;
393
394
  preview_image?: string | undefined;
394
395
  uid?: string | undefined;
395
396
  custom_type_id?: string | undefined;
396
- summary?: string | undefined;
397
397
  author_ids?: string[] | undefined;
398
398
  highlights?: {
399
399
  uid?: string | undefined;
@@ -43,10 +43,10 @@ export declare function useDocuments(params: {
43
43
  version_id: string;
44
44
  tags: string[];
45
45
  last_modified_date: Date;
46
+ summary?: string | undefined;
46
47
  preview_image?: string | undefined;
47
48
  uid?: string | undefined;
48
49
  custom_type_id?: string | undefined;
49
- summary?: string | undefined;
50
50
  author_ids?: string[] | undefined;
51
51
  highlights?: {
52
52
  uid?: string | undefined;
@@ -99,10 +99,10 @@ export declare function useDocuments(params: {
99
99
  version_id: string;
100
100
  tags: string[];
101
101
  last_modified_date: Date;
102
+ summary?: string | undefined;
102
103
  preview_image?: string | undefined;
103
104
  uid?: string | undefined;
104
105
  custom_type_id?: string | undefined;
105
- summary?: string | undefined;
106
106
  author_ids?: string[] | undefined;
107
107
  highlights?: {
108
108
  uid?: string | undefined;
@@ -14,6 +14,12 @@ declare module "@tiptap/core" {
14
14
  * @example editor.commands.addColumnToEnd()
15
15
  */
16
16
  addColumnToEnd: () => ReturnType;
17
+ /**
18
+ * Move the selected row up or down
19
+ * @returns True if the command was successful, otherwise false
20
+ * @example editor.commands.moveRow("up")
21
+ */
22
+ moveRow: (direction: "up" | "down") => ReturnType;
17
23
  };
18
24
  }
19
25
  }
@@ -1,13 +1,16 @@
1
1
  import { z } from "zod";
2
2
  export declare const tableCellAttrs: z.ZodObject<{
3
+ key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3
4
  colspan: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4
5
  rowspan: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
6
  colwidth: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
6
7
  }, "strip", z.ZodTypeAny, {
8
+ key?: string | null | undefined;
7
9
  colspan?: number | null | undefined;
8
10
  rowspan?: number | null | undefined;
9
11
  colwidth?: number[] | null | undefined;
10
12
  }, {
13
+ key?: string | null | undefined;
11
14
  colspan?: number | null | undefined;
12
15
  rowspan?: number | null | undefined;
13
16
  colwidth?: number[] | null | undefined;
@@ -5,7 +5,6 @@ interface CreateButtonElementArgs {
5
5
  title: string;
6
6
  className: string;
7
7
  tabIndex?: number;
8
- disabled?: boolean;
9
8
  onMouseDown?: (event: MouseEvent, currentTarget: HTMLButtonElement) => void;
10
9
  onClick: (event: MouseEvent, currentTarget: HTMLButtonElement) => void;
11
10
  [key: `data-${string}`]: string | number | boolean;
@@ -0,0 +1,31 @@
1
+ import type { Editor } from "@tiptap/core";
2
+ type Type = "row" | "column";
3
+ export type TableHandleEventDetail = {
4
+ type: Type;
5
+ referenceElement: HTMLElement;
6
+ };
7
+ export type TableAddAtLimitEventDetail = {
8
+ type: Type;
9
+ };
10
+ export type TableEventType = {
11
+ name: "handleClick";
12
+ detail: TableHandleEventDetail;
13
+ } | {
14
+ name: "addAtLimit";
15
+ detail: TableAddAtLimitEventDetail;
16
+ };
17
+ type EventName = TableEventType["name"];
18
+ type EventDetail<TName extends EventName> = Extract<TableEventType, {
19
+ name: TName;
20
+ }>["detail"];
21
+ export declare class TableEvent extends CustomEvent<TableEventType["detail"]> {
22
+ constructor({ name, detail }: TableEventType);
23
+ static dispatch<TName extends EventName>(name: TName, args: {
24
+ editor: Editor;
25
+ } & EventDetail<TName>): void;
26
+ static listen<TName extends EventName>(name: TName, args: {
27
+ editor: Editor;
28
+ callback: (detail: EventDetail<TName>) => void;
29
+ }): () => void;
30
+ }
31
+ export {};