@prismicio/editor-fields 0.4.60 → 0.4.61
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/MediaLibrary/MediaLibrary.d.ts +4 -3
- package/dist/core/MediaLibrary/components/MediaLibraryActions.d.ts +2 -2
- package/dist/core/MediaLibrary/components/MediaLibraryContext.d.ts +7 -5
- package/dist/core/MediaLibrary/components/MediaLibrarySkeleton.d.ts +2 -2
- package/dist/core/service/customType.d.ts +1906 -8
- package/dist/core/service/document.d.ts +72 -3
- package/dist/core/service/documentSearch.d.ts +15 -0
- package/dist/fields/LinkField/Documents/documentsData.d.ts +6 -0
- package/dist/index.cjs.js +44 -44
- package/dist/index.es.js +11211 -11167
- package/package.json +4 -4
|
@@ -140,6 +140,13 @@ declare const documentSearchVersionSchema: z.ZodIntersection<z.ZodDiscriminatedU
|
|
|
140
140
|
custom_type_id: z.ZodOptional<z.ZodString>;
|
|
141
141
|
summary: z.ZodOptional<z.ZodString>;
|
|
142
142
|
author_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
143
|
+
highlights: z.ZodOptional<z.ZodObject<{
|
|
144
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
uid?: string | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
uid?: string | undefined;
|
|
149
|
+
}>>;
|
|
143
150
|
}>, "strip", z.ZodTypeAny, {
|
|
144
151
|
tags: string[];
|
|
145
152
|
version_id: string;
|
|
@@ -149,6 +156,9 @@ declare const documentSearchVersionSchema: z.ZodIntersection<z.ZodDiscriminatedU
|
|
|
149
156
|
custom_type_id?: string | undefined;
|
|
150
157
|
summary?: string | undefined;
|
|
151
158
|
author_ids?: string[] | undefined;
|
|
159
|
+
highlights?: {
|
|
160
|
+
uid?: string | undefined;
|
|
161
|
+
} | undefined;
|
|
152
162
|
}, {
|
|
153
163
|
tags: string[];
|
|
154
164
|
version_id: string;
|
|
@@ -158,6 +168,9 @@ declare const documentSearchVersionSchema: z.ZodIntersection<z.ZodDiscriminatedU
|
|
|
158
168
|
custom_type_id?: string | undefined;
|
|
159
169
|
summary?: string | undefined;
|
|
160
170
|
author_ids?: string[] | undefined;
|
|
171
|
+
highlights?: {
|
|
172
|
+
uid?: string | undefined;
|
|
173
|
+
} | undefined;
|
|
161
174
|
}>>;
|
|
162
175
|
export declare function isDocumentVersion(value: unknown): value is z.infer<typeof documentVersionSchema>;
|
|
163
176
|
export declare function isDocumentSearchVersion(value: unknown): value is z.infer<typeof documentSearchVersionSchema>;
|
|
@@ -635,6 +648,13 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
635
648
|
custom_type_id: z.ZodOptional<z.ZodString>;
|
|
636
649
|
summary: z.ZodOptional<z.ZodString>;
|
|
637
650
|
author_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
651
|
+
highlights: z.ZodOptional<z.ZodObject<{
|
|
652
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
653
|
+
}, "strip", z.ZodTypeAny, {
|
|
654
|
+
uid?: string | undefined;
|
|
655
|
+
}, {
|
|
656
|
+
uid?: string | undefined;
|
|
657
|
+
}>>;
|
|
638
658
|
}>, "strip", z.ZodTypeAny, {
|
|
639
659
|
tags: string[];
|
|
640
660
|
version_id: string;
|
|
@@ -644,6 +664,9 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
644
664
|
custom_type_id?: string | undefined;
|
|
645
665
|
summary?: string | undefined;
|
|
646
666
|
author_ids?: string[] | undefined;
|
|
667
|
+
highlights?: {
|
|
668
|
+
uid?: string | undefined;
|
|
669
|
+
} | undefined;
|
|
647
670
|
}, {
|
|
648
671
|
tags: string[];
|
|
649
672
|
version_id: string;
|
|
@@ -653,6 +676,9 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
653
676
|
custom_type_id?: string | undefined;
|
|
654
677
|
summary?: string | undefined;
|
|
655
678
|
author_ids?: string[] | undefined;
|
|
679
|
+
highlights?: {
|
|
680
|
+
uid?: string | undefined;
|
|
681
|
+
} | undefined;
|
|
656
682
|
}>>, "many">;
|
|
657
683
|
locale_id: z.ZodOptional<z.ZodString>;
|
|
658
684
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -678,6 +704,9 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
678
704
|
custom_type_id?: string | undefined;
|
|
679
705
|
summary?: string | undefined;
|
|
680
706
|
author_ids?: string[] | undefined;
|
|
707
|
+
highlights?: {
|
|
708
|
+
uid?: string | undefined;
|
|
709
|
+
} | undefined;
|
|
681
710
|
})[];
|
|
682
711
|
locale_id?: string | undefined;
|
|
683
712
|
}, {
|
|
@@ -702,6 +731,9 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
702
731
|
custom_type_id?: string | undefined;
|
|
703
732
|
summary?: string | undefined;
|
|
704
733
|
author_ids?: string[] | undefined;
|
|
734
|
+
highlights?: {
|
|
735
|
+
uid?: string | undefined;
|
|
736
|
+
} | undefined;
|
|
705
737
|
})[];
|
|
706
738
|
title?: string | null | undefined;
|
|
707
739
|
locale_id?: string | undefined;
|
|
@@ -729,6 +761,9 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
729
761
|
custom_type_id?: string | undefined;
|
|
730
762
|
summary?: string | undefined;
|
|
731
763
|
author_ids?: string[] | undefined;
|
|
764
|
+
highlights?: {
|
|
765
|
+
uid?: string | undefined;
|
|
766
|
+
} | undefined;
|
|
732
767
|
})[];
|
|
733
768
|
}, {
|
|
734
769
|
id: string;
|
|
@@ -752,6 +787,9 @@ declare const documentSearchDocumentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
752
787
|
custom_type_id?: string | undefined;
|
|
753
788
|
summary?: string | undefined;
|
|
754
789
|
author_ids?: string[] | undefined;
|
|
790
|
+
highlights?: {
|
|
791
|
+
uid?: string | undefined;
|
|
792
|
+
} | undefined;
|
|
755
793
|
})[];
|
|
756
794
|
title?: string | null | undefined;
|
|
757
795
|
locale_id?: string | undefined;
|
|
@@ -799,6 +837,13 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
|
|
|
799
837
|
custom_type_id: z.ZodOptional<z.ZodString>;
|
|
800
838
|
summary: z.ZodOptional<z.ZodString>;
|
|
801
839
|
author_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
840
|
+
highlights: z.ZodOptional<z.ZodObject<{
|
|
841
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
842
|
+
}, "strip", z.ZodTypeAny, {
|
|
843
|
+
uid?: string | undefined;
|
|
844
|
+
}, {
|
|
845
|
+
uid?: string | undefined;
|
|
846
|
+
}>>;
|
|
802
847
|
}>, "strip", z.ZodTypeAny, {
|
|
803
848
|
tags: string[];
|
|
804
849
|
version_id: string;
|
|
@@ -808,6 +853,9 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
|
|
|
808
853
|
custom_type_id?: string | undefined;
|
|
809
854
|
summary?: string | undefined;
|
|
810
855
|
author_ids?: string[] | undefined;
|
|
856
|
+
highlights?: {
|
|
857
|
+
uid?: string | undefined;
|
|
858
|
+
} | undefined;
|
|
811
859
|
}, {
|
|
812
860
|
tags: string[];
|
|
813
861
|
version_id: string;
|
|
@@ -817,6 +865,9 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
|
|
|
817
865
|
custom_type_id?: string | undefined;
|
|
818
866
|
summary?: string | undefined;
|
|
819
867
|
author_ids?: string[] | undefined;
|
|
868
|
+
highlights?: {
|
|
869
|
+
uid?: string | undefined;
|
|
870
|
+
} | undefined;
|
|
820
871
|
}>>, "many">;
|
|
821
872
|
locale_id: z.ZodOptional<z.ZodString>;
|
|
822
873
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -842,6 +893,9 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
|
|
|
842
893
|
custom_type_id?: string | undefined;
|
|
843
894
|
summary?: string | undefined;
|
|
844
895
|
author_ids?: string[] | undefined;
|
|
896
|
+
highlights?: {
|
|
897
|
+
uid?: string | undefined;
|
|
898
|
+
} | undefined;
|
|
845
899
|
})[];
|
|
846
900
|
locale_id?: string | undefined;
|
|
847
901
|
}, {
|
|
@@ -866,6 +920,9 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
|
|
|
866
920
|
custom_type_id?: string | undefined;
|
|
867
921
|
summary?: string | undefined;
|
|
868
922
|
author_ids?: string[] | undefined;
|
|
923
|
+
highlights?: {
|
|
924
|
+
uid?: string | undefined;
|
|
925
|
+
} | undefined;
|
|
869
926
|
})[];
|
|
870
927
|
title?: string | null | undefined;
|
|
871
928
|
locale_id?: string | undefined;
|
|
@@ -893,6 +950,9 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
|
|
|
893
950
|
custom_type_id?: string | undefined;
|
|
894
951
|
summary?: string | undefined;
|
|
895
952
|
author_ids?: string[] | undefined;
|
|
953
|
+
highlights?: {
|
|
954
|
+
uid?: string | undefined;
|
|
955
|
+
} | undefined;
|
|
896
956
|
})[];
|
|
897
957
|
}, {
|
|
898
958
|
id: string;
|
|
@@ -916,6 +976,9 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
|
|
|
916
976
|
custom_type_id?: string | undefined;
|
|
917
977
|
summary?: string | undefined;
|
|
918
978
|
author_ids?: string[] | undefined;
|
|
979
|
+
highlights?: {
|
|
980
|
+
uid?: string | undefined;
|
|
981
|
+
} | undefined;
|
|
919
982
|
})[];
|
|
920
983
|
title?: string | null | undefined;
|
|
921
984
|
locale_id?: string | undefined;
|
|
@@ -945,6 +1008,9 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
|
|
|
945
1008
|
custom_type_id?: string | undefined;
|
|
946
1009
|
summary?: string | undefined;
|
|
947
1010
|
author_ids?: string[] | undefined;
|
|
1011
|
+
highlights?: {
|
|
1012
|
+
uid?: string | undefined;
|
|
1013
|
+
} | undefined;
|
|
948
1014
|
})[];
|
|
949
1015
|
}[];
|
|
950
1016
|
}, {
|
|
@@ -970,6 +1036,9 @@ declare const documentsFullTextSearchAPISchemaOkType: z.ZodObject<{
|
|
|
970
1036
|
custom_type_id?: string | undefined;
|
|
971
1037
|
summary?: string | undefined;
|
|
972
1038
|
author_ids?: string[] | undefined;
|
|
1039
|
+
highlights?: {
|
|
1040
|
+
uid?: string | undefined;
|
|
1041
|
+
} | undefined;
|
|
973
1042
|
})[];
|
|
974
1043
|
title?: string | null | undefined;
|
|
975
1044
|
locale_id?: string | undefined;
|
|
@@ -989,11 +1058,11 @@ export interface GetDocumentListArgs {
|
|
|
989
1058
|
signal?: AbortSignal | null | undefined;
|
|
990
1059
|
limit?: number;
|
|
991
1060
|
cursor?: string;
|
|
992
|
-
|
|
1061
|
+
statuses?: string[];
|
|
993
1062
|
authors?: string[];
|
|
994
1063
|
language?: string;
|
|
995
|
-
|
|
996
|
-
|
|
1064
|
+
groupLangIds?: string[];
|
|
1065
|
+
documentIds?: string[];
|
|
997
1066
|
customTypes?: string[];
|
|
998
1067
|
tags?: string[];
|
|
999
1068
|
term?: string;
|
|
@@ -85,6 +85,9 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
85
85
|
custom_type_id?: string | undefined;
|
|
86
86
|
summary?: string | undefined;
|
|
87
87
|
author_ids?: string[] | undefined;
|
|
88
|
+
highlights?: {
|
|
89
|
+
uid?: string | undefined;
|
|
90
|
+
} | undefined;
|
|
88
91
|
})[];
|
|
89
92
|
}[];
|
|
90
93
|
}>;
|
|
@@ -168,6 +171,9 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
168
171
|
custom_type_id?: string | undefined;
|
|
169
172
|
summary?: string | undefined;
|
|
170
173
|
author_ids?: string[] | undefined;
|
|
174
|
+
highlights?: {
|
|
175
|
+
uid?: string | undefined;
|
|
176
|
+
} | undefined;
|
|
171
177
|
})[];
|
|
172
178
|
}[];
|
|
173
179
|
}, Error, {
|
|
@@ -231,6 +237,9 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
231
237
|
custom_type_id?: string | undefined;
|
|
232
238
|
summary?: string | undefined;
|
|
233
239
|
author_ids?: string[] | undefined;
|
|
240
|
+
highlights?: {
|
|
241
|
+
uid?: string | undefined;
|
|
242
|
+
} | undefined;
|
|
234
243
|
})[];
|
|
235
244
|
}[];
|
|
236
245
|
}, readonly ["searchDocuments", {
|
|
@@ -316,6 +325,9 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
316
325
|
custom_type_id?: string | undefined;
|
|
317
326
|
summary?: string | undefined;
|
|
318
327
|
author_ids?: string[] | undefined;
|
|
328
|
+
highlights?: {
|
|
329
|
+
uid?: string | undefined;
|
|
330
|
+
} | undefined;
|
|
319
331
|
})[];
|
|
320
332
|
}[];
|
|
321
333
|
}> | undefined;
|
|
@@ -402,6 +414,9 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
402
414
|
custom_type_id?: string | undefined;
|
|
403
415
|
summary?: string | undefined;
|
|
404
416
|
author_ids?: string[] | undefined;
|
|
417
|
+
highlights?: {
|
|
418
|
+
uid?: string | undefined;
|
|
419
|
+
} | undefined;
|
|
405
420
|
})[];
|
|
406
421
|
}[];
|
|
407
422
|
}>;
|
|
@@ -47,6 +47,9 @@ export declare function useDocuments(params: {
|
|
|
47
47
|
custom_type_id?: string | undefined;
|
|
48
48
|
summary?: string | undefined;
|
|
49
49
|
author_ids?: string[] | undefined;
|
|
50
|
+
highlights?: {
|
|
51
|
+
uid?: string | undefined;
|
|
52
|
+
} | undefined;
|
|
50
53
|
}))[];
|
|
51
54
|
id: string;
|
|
52
55
|
title: string;
|
|
@@ -99,6 +102,9 @@ export declare function useDocuments(params: {
|
|
|
99
102
|
custom_type_id?: string | undefined;
|
|
100
103
|
summary?: string | undefined;
|
|
101
104
|
author_ids?: string[] | undefined;
|
|
105
|
+
highlights?: {
|
|
106
|
+
uid?: string | undefined;
|
|
107
|
+
} | undefined;
|
|
102
108
|
}))[];
|
|
103
109
|
id: string;
|
|
104
110
|
title: string;
|