@prismicio/editor-fields 0.4.67-alpha.1 → 0.4.67-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/service/customType.d.ts +9 -9
- package/dist/core/service/document.d.ts +16 -16
- package/dist/core/service/documentSearch.d.ts +5 -5
- package/dist/fields/LinkField/Documents/documentsData.d.ts +2 -2
- package/dist/index.cjs.js +41 -33
- package/dist/index.es.js +36429 -27531
- package/package.json +4 -4
|
@@ -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;
|
|
10
11
|
id: string;
|
|
11
12
|
label: string;
|
|
12
|
-
status: boolean;
|
|
13
13
|
repeatable: boolean;
|
|
14
14
|
}, {
|
|
15
|
+
status: boolean;
|
|
15
16
|
id: string;
|
|
16
17
|
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;
|
|
27
28
|
id: string;
|
|
28
29
|
label: string;
|
|
29
|
-
status: boolean;
|
|
30
30
|
repeatable: boolean;
|
|
31
31
|
}[], Error, {
|
|
32
|
+
status: boolean;
|
|
32
33
|
id: string;
|
|
33
34
|
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;
|
|
38
39
|
id: string;
|
|
39
40
|
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;
|
|
45
46
|
id: string;
|
|
46
47
|
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;
|
|
53
54
|
id: string;
|
|
54
55
|
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;
|
|
59
60
|
id: string;
|
|
60
61
|
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;
|
|
68
69
|
id: string;
|
|
69
70
|
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;
|
|
160
159
|
preview_image?: string | undefined;
|
|
161
160
|
uid?: string | undefined;
|
|
162
161
|
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;
|
|
172
171
|
preview_image?: string | undefined;
|
|
173
172
|
uid?: string | undefined;
|
|
174
173
|
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;
|
|
684
683
|
preview_image?: string | undefined;
|
|
685
684
|
uid?: string | undefined;
|
|
686
685
|
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;
|
|
696
695
|
preview_image?: string | undefined;
|
|
697
696
|
uid?: string | undefined;
|
|
698
697
|
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;
|
|
724
723
|
preview_image?: string | undefined;
|
|
725
724
|
uid?: string | undefined;
|
|
726
725
|
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;
|
|
751
750
|
preview_image?: string | undefined;
|
|
752
751
|
uid?: string | undefined;
|
|
753
752
|
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;
|
|
781
780
|
preview_image?: string | undefined;
|
|
782
781
|
uid?: string | undefined;
|
|
783
782
|
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;
|
|
807
806
|
preview_image?: string | undefined;
|
|
808
807
|
uid?: string | undefined;
|
|
809
808
|
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;
|
|
873
872
|
preview_image?: string | undefined;
|
|
874
873
|
uid?: string | undefined;
|
|
875
874
|
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;
|
|
885
884
|
preview_image?: string | undefined;
|
|
886
885
|
uid?: string | undefined;
|
|
887
886
|
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;
|
|
913
912
|
preview_image?: string | undefined;
|
|
914
913
|
uid?: string | undefined;
|
|
915
914
|
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;
|
|
940
939
|
preview_image?: string | undefined;
|
|
941
940
|
uid?: string | undefined;
|
|
942
941
|
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;
|
|
970
969
|
preview_image?: string | undefined;
|
|
971
970
|
uid?: string | undefined;
|
|
972
971
|
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;
|
|
996
995
|
preview_image?: string | undefined;
|
|
997
996
|
uid?: string | undefined;
|
|
998
997
|
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;
|
|
1028
1027
|
preview_image?: string | undefined;
|
|
1029
1028
|
uid?: string | undefined;
|
|
1030
1029
|
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;
|
|
1056
1055
|
preview_image?: string | undefined;
|
|
1057
1056
|
uid?: string | undefined;
|
|
1058
1057
|
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;
|
|
79
78
|
preview_image?: string | undefined;
|
|
80
79
|
uid?: string | undefined;
|
|
81
80
|
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;
|
|
160
159
|
preview_image?: string | undefined;
|
|
161
160
|
uid?: string | undefined;
|
|
162
161
|
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;
|
|
227
226
|
preview_image?: string | undefined;
|
|
228
227
|
uid?: string | undefined;
|
|
229
228
|
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;
|
|
310
309
|
preview_image?: string | undefined;
|
|
311
310
|
uid?: string | undefined;
|
|
312
311
|
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;
|
|
394
393
|
preview_image?: string | undefined;
|
|
395
394
|
uid?: string | undefined;
|
|
396
395
|
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;
|
|
47
46
|
preview_image?: string | undefined;
|
|
48
47
|
uid?: string | undefined;
|
|
49
48
|
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;
|
|
103
102
|
preview_image?: string | undefined;
|
|
104
103
|
uid?: string | undefined;
|
|
105
104
|
custom_type_id?: string | undefined;
|
|
105
|
+
summary?: string | undefined;
|
|
106
106
|
author_ids?: string[] | undefined;
|
|
107
107
|
highlights?: {
|
|
108
108
|
uid?: string | undefined;
|