@prismicio/editor-fields 0.4.66 → 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.
@@ -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;
@@ -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;
@@ -0,0 +1,19 @@
1
+ import type { Editor } from "@tiptap/core";
2
+ export type TableHandleEventDetail = {
3
+ type: "row" | "column";
4
+ referenceElement: HTMLElement;
5
+ };
6
+ export type TableHandleEventType = {
7
+ name: "handleClick";
8
+ detail: TableHandleEventDetail;
9
+ };
10
+ export declare class TableHandleEvent extends CustomEvent<TableHandleEventType["detail"]> {
11
+ constructor({ name, detail }: TableHandleEventType);
12
+ static dispatch<TEvent extends TableHandleEventType>(name: TEvent["name"], args: {
13
+ editor: Editor;
14
+ } & TEvent["detail"]): void;
15
+ static listen<TEvent extends TableHandleEventType>(name: TEvent["name"], args: {
16
+ editor: Editor;
17
+ callback: (detail: TEvent["detail"]) => void;
18
+ }): () => void;
19
+ }