@prismicio/vue 4.2.0 → 4.2.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.
Files changed (43) hide show
  1. package/dist/components/PrismicEmbed.cjs.map +1 -1
  2. package/dist/components/PrismicEmbed.d.ts +57 -63
  3. package/dist/components/PrismicEmbed.js.map +1 -1
  4. package/dist/components/PrismicImage.cjs.map +1 -1
  5. package/dist/components/PrismicImage.d.ts +161 -161
  6. package/dist/components/PrismicImage.js.map +1 -1
  7. package/dist/components/PrismicLink.cjs.map +1 -1
  8. package/dist/components/PrismicLink.d.ts +190 -190
  9. package/dist/components/PrismicLink.js.map +1 -1
  10. package/dist/components/PrismicRichText.cjs.map +1 -1
  11. package/dist/components/PrismicRichText.d.ts +159 -159
  12. package/dist/components/PrismicRichText.js.map +1 -1
  13. package/dist/components/PrismicText.cjs.map +1 -1
  14. package/dist/components/PrismicText.d.ts +117 -117
  15. package/dist/components/PrismicText.js.map +1 -1
  16. package/dist/components/SliceZone.cjs +26 -18
  17. package/dist/components/SliceZone.cjs.map +1 -1
  18. package/dist/components/SliceZone.d.ts +373 -371
  19. package/dist/components/SliceZone.js +26 -18
  20. package/dist/components/SliceZone.js.map +1 -1
  21. package/dist/components/index.d.ts +12 -12
  22. package/dist/composables.d.ts +384 -384
  23. package/dist/createPrismic.cjs.map +1 -1
  24. package/dist/createPrismic.d.ts +12 -12
  25. package/dist/createPrismic.js.map +1 -1
  26. package/dist/globalExtensions.d.ts +11 -11
  27. package/dist/index.d.ts +10 -10
  28. package/dist/injectionSymbols.d.ts +9 -9
  29. package/dist/lib/__PRODUCTION__.cjs.map +1 -1
  30. package/dist/lib/__PRODUCTION__.d.ts +7 -7
  31. package/dist/lib/__PRODUCTION__.js.map +1 -1
  32. package/dist/lib/getSlots.cjs.map +1 -1
  33. package/dist/lib/getSlots.d.ts +14 -14
  34. package/dist/lib/getSlots.js.map +1 -1
  35. package/dist/lib/isInternalURL.d.ts +8 -8
  36. package/dist/lib/simplyResolveComponent.d.ts +12 -12
  37. package/dist/types.d.ts +384 -384
  38. package/dist/usePrismic.d.ts +22 -22
  39. package/dist/useStatefulPrismicClientMethod.cjs.map +1 -1
  40. package/dist/useStatefulPrismicClientMethod.d.ts +64 -64
  41. package/dist/useStatefulPrismicClientMethod.js.map +1 -1
  42. package/package.json +1 -1
  43. package/src/components/SliceZone.ts +44 -43
@@ -1,384 +1,384 @@
1
- import { PrismicDocument, Query } from "@prismicio/client";
2
- import { ClientComposableReturnType, ComposableOnlyParameters } from "./useStatefulPrismicClientMethod";
3
- /**
4
- * A composable that queries content from the Prismic repository.
5
- *
6
- * @remarks
7
- * An additional `@prismicio/client` instance can be provided at
8
- * `params.client`.
9
- * @typeParam TDocument - Type of Prismic documents returned
10
- *
11
- * @param params - Parameters to filter, sort, and paginate results
12
- *
13
- * @returns The composable payload {@link ClientComposableReturnType}
14
- *
15
- * @see Underlying `@prismicio/client` method {@link Client.get}
16
- */
17
- export declare const usePrismicDocuments: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
18
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
19
- signal?: any;
20
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
21
- /**
22
- * A composable that queries content from the Prismic repository and returns
23
- * only the first result, if any.
24
- *
25
- * @remarks
26
- * An additional `@prismicio/client` instance can be provided at
27
- * `params.client`.
28
- * @typeParam TDocument - Type of the Prismic document returned
29
- *
30
- * @param params - Parameters to filter, sort, and paginate results
31
- *
32
- * @returns The composable payload {@link ClientComposableReturnType}
33
- *
34
- * @see Underlying `@prismicio/client` method {@link Client.getFirst}
35
- */
36
- export declare const useFirstPrismicDocument: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
37
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
38
- signal?: any;
39
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
40
- /**
41
- * A composable that queries a document from the Prismic repository with a
42
- * specific ID.
43
- *
44
- * @remarks
45
- * An additional `@prismicio/client` instance can be provided at
46
- * `params.client`.
47
- * @typeParam TDocument - Type of the Prismic document returned
48
- *
49
- * @param id - ID of the document
50
- * @param params - Parameters to filter, sort, and paginate results
51
- *
52
- * @returns The composable payload {@link ClientComposableReturnType}
53
- *
54
- * @see Underlying `@prismicio/client` method {@link Client.getByID}
55
- */
56
- export declare const usePrismicDocumentByID: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(id: string, params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
57
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
58
- signal?: any;
59
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
60
- /**
61
- * A composable that queries documents from the Prismic repository with specific
62
- * IDs.
63
- *
64
- * @remarks
65
- * An additional `@prismicio/client` instance can be provided at
66
- * `params.client`.
67
- * @typeParam TDocument - Type of Prismic documents returned
68
- *
69
- * @param ids - A list of document IDs
70
- * @param params - Parameters to filter, sort, and paginate results
71
- *
72
- * @returns The composable payload {@link ClientComposableReturnType}
73
- *
74
- * @see Underlying `@prismicio/client` method {@link Client.getByIDs}
75
- */
76
- export declare const usePrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(ids: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
77
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
78
- signal?: any;
79
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
80
- /**
81
- * A composable that queries all documents from the Prismic repository with
82
- * specific IDs.
83
- *
84
- * @remarks
85
- * An additional `@prismicio/client` instance can be provided at
86
- * `params.client`.
87
- * @typeParam TDocument - Type of Prismic documents returned
88
- *
89
- * @param ids - A list of document IDs
90
- * @param params - Parameters to filter and sort results
91
- *
92
- * @returns The composable payload {@link ClientComposableReturnType}
93
- *
94
- * @see Underlying `@prismicio/client` method {@link Client.getAllByIDs}
95
- */
96
- export declare const useAllPrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(ids: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
97
- limit?: number | undefined;
98
- } & {
99
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
100
- signal?: any;
101
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
102
- /**
103
- * A composable that queries a document from the Prismic repository with a
104
- * specific UID and Custom Type.
105
- *
106
- * @remarks
107
- * An additional `@prismicio/client` instance can be provided at
108
- * `params.client`.
109
- * @typeParam TDocument - Type of the Prismic document returned
110
- *
111
- * @param documentType - The API ID of the document's Custom Type
112
- * @param uid - UID of the document
113
- * @param params - Parameters to filter, sort, and paginate results
114
- *
115
- * @returns The composable payload {@link ClientComposableReturnType}
116
- *
117
- * @see Underlying `@prismicio/client` method {@link Client.getByUID}
118
- */
119
- export declare const usePrismicDocumentByUID: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, uid: string, params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
120
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
121
- signal?: any;
122
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
123
- /**
124
- * A composable that queries documents from the Prismic repository with specific
125
- * UIDs.
126
- *
127
- * @remarks
128
- * An additional `@prismicio/client` instance can be provided at
129
- * `params.client`.
130
- * @typeParam TDocument - Type of Prismic documents returned
131
- *
132
- * @param documentType - The API ID of the document's Custom Type
133
- * @param uids - A list of document UIDs
134
- * @param params - Parameters to filter, sort, and paginate results
135
- *
136
- * @returns The composable payload {@link ClientComposableReturnType}
137
- *
138
- * @see Underlying `@prismicio/client` method {@link Client.getByIDs}
139
- */
140
- export declare const usePrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, uids: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
141
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
142
- signal?: any;
143
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
144
- /**
145
- * A composable that queries all documents from the Prismic repository with
146
- * specific UIDs.
147
- *
148
- * @remarks
149
- * An additional `@prismicio/client` instance can be provided at
150
- * `params.client`.
151
- * @typeParam TDocument - Type of Prismic documents returned
152
- *
153
- * @param documentType - The API ID of the document's Custom Type
154
- * @param uids - A list of document UIDs
155
- * @param params - Parameters to filter and sort results
156
- *
157
- * @returns The composable payload {@link ClientComposableReturnType}
158
- *
159
- * @see Underlying `@prismicio/client` method {@link Client.getAllByIDs}
160
- */
161
- export declare const useAllPrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, ids: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
162
- limit?: number | undefined;
163
- } & {
164
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
165
- signal?: any;
166
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
167
- /**
168
- * A composable that queries a singleton document from the Prismic repository
169
- * for a specific Custom Type.
170
- *
171
- * @remarks
172
- * An additional `@prismicio/client` instance can be provided at
173
- * `params.client`.
174
- * @typeParam TDocument - Type of the Prismic document returned
175
- *
176
- * @param documentType - The API ID of the singleton Custom Type
177
- * @param params - Parameters to filter, sort, and paginate results
178
- *
179
- * @returns The composable payload {@link ClientComposableReturnType}
180
- *
181
- * @see Underlying `@prismicio/client` method {@link Client.getSingle}
182
- */
183
- export declare const useSinglePrismicDocument: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
184
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
185
- signal?: any;
186
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
187
- /**
188
- * A composable that queries documents from the Prismic repository for a
189
- * specific Custom Type.
190
- *
191
- * @remarks
192
- * An additional `@prismicio/client` instance can be provided at
193
- * `params.client`.
194
- * @typeParam TDocument - Type of Prismic documents returned
195
- *
196
- * @param documentType - The API ID of the Custom Type
197
- * @param params - Parameters to filter, sort, and paginate results
198
- *
199
- * @returns The composable payload {@link ClientComposableReturnType}
200
- *
201
- * @see Underlying `@prismicio/client` method {@link Client.getByType}
202
- */
203
- export declare const usePrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
204
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
205
- signal?: any;
206
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
207
- /**
208
- * A composable that queries all documents from the Prismic repository for a
209
- * specific Custom Type.
210
- *
211
- * @remarks
212
- * An additional `@prismicio/client` instance can be provided at
213
- * `params.client`.
214
- * @typeParam TDocument - Type of Prismic documents returned
215
- *
216
- * @param documentType - The API ID of the Custom Type
217
- * @param params - Parameters to filter and sort results
218
- *
219
- * @returns The composable payload {@link ClientComposableReturnType}
220
- *
221
- * @see Underlying `@prismicio/client` method {@link Client.getAllByType}
222
- */
223
- export declare const useAllPrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, params?: (Partial<Omit<import("@prismicio/client").BuildQueryURLArgs, "page">> & {
224
- limit?: number | undefined;
225
- } & {
226
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
227
- signal?: any;
228
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
229
- /**
230
- * A composable that queries documents from the Prismic repository with a
231
- * specific tag.
232
- *
233
- * @remarks
234
- * An additional `@prismicio/client` instance can be provided at
235
- * `params.client`.
236
- * @typeParam TDocument - Type of Prismic documents returned
237
- *
238
- * @param tag - The tag that must be included on a document
239
- * @param params - Parameters to filter, sort, and paginate results
240
- *
241
- * @returns The composable payload {@link ClientComposableReturnType}
242
- *
243
- * @see Underlying `@prismicio/client` method {@link Client.getByTag}
244
- */
245
- export declare const usePrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tag: string, params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
246
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
247
- signal?: any;
248
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
249
- /**
250
- * A composable that queries all documents from the Prismic repository with a
251
- * specific tag.
252
- *
253
- * @remarks
254
- * An additional `@prismicio/client` instance can be provided at
255
- * `params.client`.
256
- * @typeParam TDocument - Type of Prismic documents returned
257
- *
258
- * @param tag - The tag that must be included on a document
259
- * @param params - Parameters to filter and sort results
260
- *
261
- * @returns The composable payload {@link ClientComposableReturnType}
262
- *
263
- * @see Underlying `@prismicio/client` method {@link Client.getAllByTag}
264
- */
265
- export declare const useAllPrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tag: string, params?: (Partial<Omit<import("@prismicio/client").BuildQueryURLArgs, "page">> & {
266
- limit?: number | undefined;
267
- } & {
268
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
269
- signal?: any;
270
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
271
- /**
272
- * A composable that queries documents from the Prismic repository with specific
273
- * tags. A document must be tagged with all of the queried tags to be included.
274
- *
275
- * @remarks
276
- * An additional `@prismicio/client` instance can be provided at
277
- * `params.client`.
278
- * @typeParam TDocument - Type of Prismic documents returned
279
- *
280
- * @param tags - A list of tags that must be included on a document
281
- * @param params - Parameters to filter, sort, and paginate results
282
- *
283
- * @returns The composable payload {@link ClientComposableReturnType}
284
- *
285
- * @see Underlying `@prismicio/client` method {@link Client.getByTags}
286
- */
287
- export declare const usePrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
288
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
289
- signal?: any;
290
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
291
- /**
292
- * A composable that queries all documents from the Prismic repository with
293
- * specific tags. A document must be tagged with all of the queried tags to be
294
- * included.
295
- *
296
- * @remarks
297
- * An additional `@prismicio/client` instance can be provided at
298
- * `params.client`.
299
- * @typeParam TDocument - Type of Prismic documents returned
300
- *
301
- * @param tags - A list of tags that must be included on a document
302
- * @param params - Parameters to filter and sort results
303
- *
304
- * @returns The composable payload {@link ClientComposableReturnType}
305
- *
306
- * @see Underlying `@prismicio/client` method {@link Client.getAllByTags}
307
- */
308
- export declare const useAllPrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<Omit<import("@prismicio/client").BuildQueryURLArgs, "page">> & {
309
- limit?: number | undefined;
310
- } & {
311
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
312
- signal?: any;
313
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
314
- /**
315
- * A composable that queries documents from the Prismic repository with specific
316
- * tags. A document must be tagged with at least one of the queried tags to be
317
- * included.
318
- *
319
- * @remarks
320
- * An additional `@prismicio/client` instance can be provided at
321
- * `params.client`.
322
- * @typeParam TDocument - Type of Prismic documents returned
323
- *
324
- * @param tags - A list of tags that must be included on a document
325
- * @param params - Parameters to filter, sort, and paginate results
326
- *
327
- * @returns The composable payload {@link ClientComposableReturnType}
328
- *
329
- * @see Underlying `@prismicio/client` method {@link Client.getByTags}
330
- */
331
- export declare const usePrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
332
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
333
- signal?: any;
334
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
335
- /**
336
- * A composable that queries all documents from the Prismic repository with
337
- * specific tags. A document must be tagged with at least one of the queried
338
- * tags to be included.
339
- *
340
- * @remarks
341
- * An additional `@prismicio/client` instance can be provided at
342
- * `params.client`.
343
- * @typeParam TDocument - Type of Prismic documents returned
344
- *
345
- * @param tags - A list of tags that must be included on a document
346
- * @param params - Parameters to filter and sort results
347
- *
348
- * @returns The composable payload {@link ClientComposableReturnType}
349
- *
350
- * @see Underlying `@prismicio/client` method {@link Client.getAllByTags}
351
- */
352
- export declare const useAllPrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<Omit<import("@prismicio/client").BuildQueryURLArgs, "page">> & {
353
- limit?: number | undefined;
354
- } & {
355
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
356
- signal?: any;
357
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
358
- /**
359
- * **IMPORTANT**: Avoid using `dangerouslyUseAllPrismicDocuments` as it may be
360
- * slower and require more resources than other composables. Prefer using other
361
- * composables that filter by predicates such as
362
- * `useAllPrismicDocumentsByType`.
363
- *
364
- * A composable that queries content from the Prismic repository and returns all
365
- * matching content. If no predicates are provided, all documents will be
366
- * fetched.
367
- *
368
- * @remarks
369
- * An additional `@prismicio/client` instance can be provided at
370
- * `params.client`.
371
- * @typeParam TDocument - Type of Prismic documents returned
372
- *
373
- * @param params - Parameters to filter and sort results
374
- *
375
- * @returns The composable payload {@link ClientComposableReturnType}
376
- *
377
- * @see Underlying `@prismicio/client` method {@link Client.getAll}
378
- */
379
- export declare const dangerouslyUseAllPrismicDocuments: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<Omit<import("@prismicio/client").BuildQueryURLArgs, "page">> & {
380
- limit?: number | undefined;
381
- } & {
382
- fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
383
- signal?: any;
384
- } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
1
+ import { PrismicDocument, Query } from "@prismicio/client";
2
+ import { ClientComposableReturnType, ComposableOnlyParameters } from "./useStatefulPrismicClientMethod";
3
+ /**
4
+ * A composable that queries content from the Prismic repository.
5
+ *
6
+ * @remarks
7
+ * An additional `@prismicio/client` instance can be provided at
8
+ * `params.client`.
9
+ * @typeParam TDocument - Type of Prismic documents returned
10
+ *
11
+ * @param params - Parameters to filter, sort, and paginate results
12
+ *
13
+ * @returns The composable payload {@link ClientComposableReturnType}
14
+ *
15
+ * @see Underlying `@prismicio/client` method {@link Client.get}
16
+ */
17
+ export declare const usePrismicDocuments: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
18
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
19
+ signal?: any;
20
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
21
+ /**
22
+ * A composable that queries content from the Prismic repository and returns
23
+ * only the first result, if any.
24
+ *
25
+ * @remarks
26
+ * An additional `@prismicio/client` instance can be provided at
27
+ * `params.client`.
28
+ * @typeParam TDocument - Type of the Prismic document returned
29
+ *
30
+ * @param params - Parameters to filter, sort, and paginate results
31
+ *
32
+ * @returns The composable payload {@link ClientComposableReturnType}
33
+ *
34
+ * @see Underlying `@prismicio/client` method {@link Client.getFirst}
35
+ */
36
+ export declare const useFirstPrismicDocument: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
37
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
38
+ signal?: any;
39
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
40
+ /**
41
+ * A composable that queries a document from the Prismic repository with a
42
+ * specific ID.
43
+ *
44
+ * @remarks
45
+ * An additional `@prismicio/client` instance can be provided at
46
+ * `params.client`.
47
+ * @typeParam TDocument - Type of the Prismic document returned
48
+ *
49
+ * @param id - ID of the document
50
+ * @param params - Parameters to filter, sort, and paginate results
51
+ *
52
+ * @returns The composable payload {@link ClientComposableReturnType}
53
+ *
54
+ * @see Underlying `@prismicio/client` method {@link Client.getByID}
55
+ */
56
+ export declare const usePrismicDocumentByID: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(id: string, params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
57
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
58
+ signal?: any;
59
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
60
+ /**
61
+ * A composable that queries documents from the Prismic repository with specific
62
+ * IDs.
63
+ *
64
+ * @remarks
65
+ * An additional `@prismicio/client` instance can be provided at
66
+ * `params.client`.
67
+ * @typeParam TDocument - Type of Prismic documents returned
68
+ *
69
+ * @param ids - A list of document IDs
70
+ * @param params - Parameters to filter, sort, and paginate results
71
+ *
72
+ * @returns The composable payload {@link ClientComposableReturnType}
73
+ *
74
+ * @see Underlying `@prismicio/client` method {@link Client.getByIDs}
75
+ */
76
+ export declare const usePrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(ids: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
77
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
78
+ signal?: any;
79
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
80
+ /**
81
+ * A composable that queries all documents from the Prismic repository with
82
+ * specific IDs.
83
+ *
84
+ * @remarks
85
+ * An additional `@prismicio/client` instance can be provided at
86
+ * `params.client`.
87
+ * @typeParam TDocument - Type of Prismic documents returned
88
+ *
89
+ * @param ids - A list of document IDs
90
+ * @param params - Parameters to filter and sort results
91
+ *
92
+ * @returns The composable payload {@link ClientComposableReturnType}
93
+ *
94
+ * @see Underlying `@prismicio/client` method {@link Client.getAllByIDs}
95
+ */
96
+ export declare const useAllPrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(ids: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
97
+ limit?: number | undefined;
98
+ } & {
99
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
100
+ signal?: any;
101
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
102
+ /**
103
+ * A composable that queries a document from the Prismic repository with a
104
+ * specific UID and Custom Type.
105
+ *
106
+ * @remarks
107
+ * An additional `@prismicio/client` instance can be provided at
108
+ * `params.client`.
109
+ * @typeParam TDocument - Type of the Prismic document returned
110
+ *
111
+ * @param documentType - The API ID of the document's Custom Type
112
+ * @param uid - UID of the document
113
+ * @param params - Parameters to filter, sort, and paginate results
114
+ *
115
+ * @returns The composable payload {@link ClientComposableReturnType}
116
+ *
117
+ * @see Underlying `@prismicio/client` method {@link Client.getByUID}
118
+ */
119
+ export declare const usePrismicDocumentByUID: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, uid: string, params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
120
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
121
+ signal?: any;
122
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
123
+ /**
124
+ * A composable that queries documents from the Prismic repository with specific
125
+ * UIDs.
126
+ *
127
+ * @remarks
128
+ * An additional `@prismicio/client` instance can be provided at
129
+ * `params.client`.
130
+ * @typeParam TDocument - Type of Prismic documents returned
131
+ *
132
+ * @param documentType - The API ID of the document's Custom Type
133
+ * @param uids - A list of document UIDs
134
+ * @param params - Parameters to filter, sort, and paginate results
135
+ *
136
+ * @returns The composable payload {@link ClientComposableReturnType}
137
+ *
138
+ * @see Underlying `@prismicio/client` method {@link Client.getByIDs}
139
+ */
140
+ export declare const usePrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, uids: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
141
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
142
+ signal?: any;
143
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
144
+ /**
145
+ * A composable that queries all documents from the Prismic repository with
146
+ * specific UIDs.
147
+ *
148
+ * @remarks
149
+ * An additional `@prismicio/client` instance can be provided at
150
+ * `params.client`.
151
+ * @typeParam TDocument - Type of Prismic documents returned
152
+ *
153
+ * @param documentType - The API ID of the document's Custom Type
154
+ * @param uids - A list of document UIDs
155
+ * @param params - Parameters to filter and sort results
156
+ *
157
+ * @returns The composable payload {@link ClientComposableReturnType}
158
+ *
159
+ * @see Underlying `@prismicio/client` method {@link Client.getAllByIDs}
160
+ */
161
+ export declare const useAllPrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, ids: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
162
+ limit?: number | undefined;
163
+ } & {
164
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
165
+ signal?: any;
166
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
167
+ /**
168
+ * A composable that queries a singleton document from the Prismic repository
169
+ * for a specific Custom Type.
170
+ *
171
+ * @remarks
172
+ * An additional `@prismicio/client` instance can be provided at
173
+ * `params.client`.
174
+ * @typeParam TDocument - Type of the Prismic document returned
175
+ *
176
+ * @param documentType - The API ID of the singleton Custom Type
177
+ * @param params - Parameters to filter, sort, and paginate results
178
+ *
179
+ * @returns The composable payload {@link ClientComposableReturnType}
180
+ *
181
+ * @see Underlying `@prismicio/client` method {@link Client.getSingle}
182
+ */
183
+ export declare const useSinglePrismicDocument: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
184
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
185
+ signal?: any;
186
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
187
+ /**
188
+ * A composable that queries documents from the Prismic repository for a
189
+ * specific Custom Type.
190
+ *
191
+ * @remarks
192
+ * An additional `@prismicio/client` instance can be provided at
193
+ * `params.client`.
194
+ * @typeParam TDocument - Type of Prismic documents returned
195
+ *
196
+ * @param documentType - The API ID of the Custom Type
197
+ * @param params - Parameters to filter, sort, and paginate results
198
+ *
199
+ * @returns The composable payload {@link ClientComposableReturnType}
200
+ *
201
+ * @see Underlying `@prismicio/client` method {@link Client.getByType}
202
+ */
203
+ export declare const usePrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
204
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
205
+ signal?: any;
206
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
207
+ /**
208
+ * A composable that queries all documents from the Prismic repository for a
209
+ * specific Custom Type.
210
+ *
211
+ * @remarks
212
+ * An additional `@prismicio/client` instance can be provided at
213
+ * `params.client`.
214
+ * @typeParam TDocument - Type of Prismic documents returned
215
+ *
216
+ * @param documentType - The API ID of the Custom Type
217
+ * @param params - Parameters to filter and sort results
218
+ *
219
+ * @returns The composable payload {@link ClientComposableReturnType}
220
+ *
221
+ * @see Underlying `@prismicio/client` method {@link Client.getAllByType}
222
+ */
223
+ export declare const useAllPrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: any, params?: (Partial<Omit<import("@prismicio/client").BuildQueryURLArgs, "page">> & {
224
+ limit?: number | undefined;
225
+ } & {
226
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
227
+ signal?: any;
228
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
229
+ /**
230
+ * A composable that queries documents from the Prismic repository with a
231
+ * specific tag.
232
+ *
233
+ * @remarks
234
+ * An additional `@prismicio/client` instance can be provided at
235
+ * `params.client`.
236
+ * @typeParam TDocument - Type of Prismic documents returned
237
+ *
238
+ * @param tag - The tag that must be included on a document
239
+ * @param params - Parameters to filter, sort, and paginate results
240
+ *
241
+ * @returns The composable payload {@link ClientComposableReturnType}
242
+ *
243
+ * @see Underlying `@prismicio/client` method {@link Client.getByTag}
244
+ */
245
+ export declare const usePrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tag: string, params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
246
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
247
+ signal?: any;
248
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
249
+ /**
250
+ * A composable that queries all documents from the Prismic repository with a
251
+ * specific tag.
252
+ *
253
+ * @remarks
254
+ * An additional `@prismicio/client` instance can be provided at
255
+ * `params.client`.
256
+ * @typeParam TDocument - Type of Prismic documents returned
257
+ *
258
+ * @param tag - The tag that must be included on a document
259
+ * @param params - Parameters to filter and sort results
260
+ *
261
+ * @returns The composable payload {@link ClientComposableReturnType}
262
+ *
263
+ * @see Underlying `@prismicio/client` method {@link Client.getAllByTag}
264
+ */
265
+ export declare const useAllPrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tag: string, params?: (Partial<Omit<import("@prismicio/client").BuildQueryURLArgs, "page">> & {
266
+ limit?: number | undefined;
267
+ } & {
268
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
269
+ signal?: any;
270
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
271
+ /**
272
+ * A composable that queries documents from the Prismic repository with specific
273
+ * tags. A document must be tagged with all of the queried tags to be included.
274
+ *
275
+ * @remarks
276
+ * An additional `@prismicio/client` instance can be provided at
277
+ * `params.client`.
278
+ * @typeParam TDocument - Type of Prismic documents returned
279
+ *
280
+ * @param tags - A list of tags that must be included on a document
281
+ * @param params - Parameters to filter, sort, and paginate results
282
+ *
283
+ * @returns The composable payload {@link ClientComposableReturnType}
284
+ *
285
+ * @see Underlying `@prismicio/client` method {@link Client.getByTags}
286
+ */
287
+ export declare const usePrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
288
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
289
+ signal?: any;
290
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
291
+ /**
292
+ * A composable that queries all documents from the Prismic repository with
293
+ * specific tags. A document must be tagged with all of the queried tags to be
294
+ * included.
295
+ *
296
+ * @remarks
297
+ * An additional `@prismicio/client` instance can be provided at
298
+ * `params.client`.
299
+ * @typeParam TDocument - Type of Prismic documents returned
300
+ *
301
+ * @param tags - A list of tags that must be included on a document
302
+ * @param params - Parameters to filter and sort results
303
+ *
304
+ * @returns The composable payload {@link ClientComposableReturnType}
305
+ *
306
+ * @see Underlying `@prismicio/client` method {@link Client.getAllByTags}
307
+ */
308
+ export declare const useAllPrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<Omit<import("@prismicio/client").BuildQueryURLArgs, "page">> & {
309
+ limit?: number | undefined;
310
+ } & {
311
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
312
+ signal?: any;
313
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
314
+ /**
315
+ * A composable that queries documents from the Prismic repository with specific
316
+ * tags. A document must be tagged with at least one of the queried tags to be
317
+ * included.
318
+ *
319
+ * @remarks
320
+ * An additional `@prismicio/client` instance can be provided at
321
+ * `params.client`.
322
+ * @typeParam TDocument - Type of Prismic documents returned
323
+ *
324
+ * @param tags - A list of tags that must be included on a document
325
+ * @param params - Parameters to filter, sort, and paginate results
326
+ *
327
+ * @returns The composable payload {@link ClientComposableReturnType}
328
+ *
329
+ * @see Underlying `@prismicio/client` method {@link Client.getByTags}
330
+ */
331
+ export declare const usePrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<import("@prismicio/client").BuildQueryURLArgs> & {
332
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
333
+ signal?: any;
334
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
335
+ /**
336
+ * A composable that queries all documents from the Prismic repository with
337
+ * specific tags. A document must be tagged with at least one of the queried
338
+ * tags to be included.
339
+ *
340
+ * @remarks
341
+ * An additional `@prismicio/client` instance can be provided at
342
+ * `params.client`.
343
+ * @typeParam TDocument - Type of Prismic documents returned
344
+ *
345
+ * @param tags - A list of tags that must be included on a document
346
+ * @param params - Parameters to filter and sort results
347
+ *
348
+ * @returns The composable payload {@link ClientComposableReturnType}
349
+ *
350
+ * @see Underlying `@prismicio/client` method {@link Client.getAllByTags}
351
+ */
352
+ export declare const useAllPrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<Omit<import("@prismicio/client").BuildQueryURLArgs, "page">> & {
353
+ limit?: number | undefined;
354
+ } & {
355
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
356
+ signal?: any;
357
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
358
+ /**
359
+ * **IMPORTANT**: Avoid using `dangerouslyUseAllPrismicDocuments` as it may be
360
+ * slower and require more resources than other composables. Prefer using other
361
+ * composables that filter by predicates such as
362
+ * `useAllPrismicDocumentsByType`.
363
+ *
364
+ * A composable that queries content from the Prismic repository and returns all
365
+ * matching content. If no predicates are provided, all documents will be
366
+ * fetched.
367
+ *
368
+ * @remarks
369
+ * An additional `@prismicio/client` instance can be provided at
370
+ * `params.client`.
371
+ * @typeParam TDocument - Type of Prismic documents returned
372
+ *
373
+ * @param params - Parameters to filter and sort results
374
+ *
375
+ * @returns The composable payload {@link ClientComposableReturnType}
376
+ *
377
+ * @see Underlying `@prismicio/client` method {@link Client.getAll}
378
+ */
379
+ export declare const dangerouslyUseAllPrismicDocuments: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<Omit<import("@prismicio/client").BuildQueryURLArgs, "page">> & {
380
+ limit?: number | undefined;
381
+ } & {
382
+ fetchOptions?: import("@prismicio/client").RequestInitLike | undefined;
383
+ signal?: any;
384
+ } & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;