@prismicio/vue 3.0.0-beta.1 → 3.0.0-beta.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/README.md +1 -1
- package/dist/index.cjs +78 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +340 -43
- package/dist/index.js +79 -9
- package/dist/index.js.map +1 -1
- package/package.json +24 -21
- package/src/components/PrismicImage.ts +189 -11
- package/src/components/PrismicLink.ts +1 -0
- package/src/components/PrismicRichText.ts +4 -1
- package/src/components/PrismicText.ts +2 -2
- package/src/components/SliceZone.ts +5 -1
- package/src/components/index.ts +6 -2
- package/src/composables.ts +54 -0
- package/src/createPrismic.ts +9 -3
- package/src/index.ts +2 -0
- package/src/lib/getSlots.ts +1 -0
- package/src/lib/simplyResolveComponent.ts +1 -0
- package/src/types.ts +24 -0
- package/src/useStatefulPrismicClientMethod.ts +2 -0
- package/vetur/attributes.json +10 -2
- package/vetur/tags.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { PropType, DefineComponent, FunctionalComponent, VNodeProps, AllowedComponentProps, ComponentCustomProps, ConcreteComponent, App, Ref, ComputedRef, InjectionKey } from 'vue';
|
|
3
3
|
import * as _prismicio_client from '@prismicio/client';
|
|
4
4
|
import { Client, ClientConfig, predicate, cookie, PrismicError, ParsingError, ForbiddenError } from '@prismicio/client';
|
|
5
|
-
import { asText, asHTML, asLink, LinkResolverFunction, asDate, documentToLinkField, HTMLFunctionSerializer, HTMLMapSerializer } from '@prismicio/helpers';
|
|
6
|
-
import * as _prismicio_types from '@prismicio/types';
|
|
5
|
+
import { asText, asHTML, asLink, LinkResolverFunction, asDate, asImageSrc, asImageWidthSrcSet, asImagePixelDensitySrcSet, documentToLinkField, HTMLFunctionSerializer, HTMLMapSerializer } from '@prismicio/helpers';
|
|
7
6
|
import { Slice, EmbedField, ImageField, LinkField, PrismicDocument, RichTextField, Query } from '@prismicio/types';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -111,7 +110,7 @@ declare type DefineComponentSliceComponentProps<TSlice extends SliceLike = Slice
|
|
|
111
110
|
*
|
|
112
111
|
* @returns Props object to use with {@link defineComponent}
|
|
113
112
|
*/
|
|
114
|
-
declare const getSliceComponentProps: <TSlice extends SliceLike<string> = SliceLike<string>, TContext = unknown>(propsHint?:
|
|
113
|
+
declare const getSliceComponentProps: <TSlice extends SliceLike<string> = SliceLike<string>, TContext = unknown>(propsHint?: ["slice", "index", "slices", "context"] | undefined) => DefineComponentSliceComponentProps<TSlice, TContext>;
|
|
115
114
|
/**
|
|
116
115
|
* A Vue component to be rendered for each instance of its Slice.
|
|
117
116
|
*
|
|
@@ -163,6 +162,7 @@ declare type SliceZoneComponents<TSlice extends SliceLike = SliceLike, TContext
|
|
|
163
162
|
*
|
|
164
163
|
* @typeParam TSlice - The type(s) of slices in the Slice Zone
|
|
165
164
|
* @typeParam TContext - Arbitrary data made available to all Slice components
|
|
165
|
+
*
|
|
166
166
|
* @param components - {@link SliceZoneComponents}
|
|
167
167
|
*
|
|
168
168
|
* @returns A new optimized record of {@link SliceZoneComponents}
|
|
@@ -191,6 +191,7 @@ declare type SliceZoneResolverArgs<TSlice extends SliceLike = SliceLike> = {
|
|
|
191
191
|
* the `components` or `defaultComponent` props to determine the rendered component.
|
|
192
192
|
*
|
|
193
193
|
* @deprecated Use the `components` prop instead.
|
|
194
|
+
*
|
|
194
195
|
* @param args - Arguments for the resolver function.
|
|
195
196
|
*
|
|
196
197
|
* @returns The Vue component to render for a Slice.
|
|
@@ -216,6 +217,7 @@ declare type SliceZoneProps<TSlice extends SliceLike = SliceLike, TContext = unk
|
|
|
216
217
|
* Slice Zone.
|
|
217
218
|
*
|
|
218
219
|
* @deprecated Use the `components` prop instead.
|
|
220
|
+
*
|
|
219
221
|
* @param args - Arguments for the resolver function.
|
|
220
222
|
*
|
|
221
223
|
* @returns The Vue component to render for a Slice.
|
|
@@ -231,6 +233,7 @@ declare type SliceZoneProps<TSlice extends SliceLike = SliceLike, TContext = unk
|
|
|
231
233
|
*
|
|
232
234
|
* @remarks
|
|
233
235
|
* Components will be rendered using the {@link SliceComponentProps} interface.
|
|
236
|
+
*
|
|
234
237
|
* @defaultValue The Slice Zone default component provided to `@prismicio/vue` plugin if configured, otherwise `null` when `process.env.NODE_ENV === "production"` else {@link TODOSliceComponent}.
|
|
235
238
|
*/
|
|
236
239
|
defaultComponent?: SliceComponentType<TSlice, TContext>;
|
|
@@ -279,22 +282,37 @@ declare const SliceZoneImpl: DefineComponent<{
|
|
|
279
282
|
[key: string]: any;
|
|
280
283
|
}> | vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
281
284
|
[key: string]: any;
|
|
282
|
-
}>[]), unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
|
|
283
|
-
slices
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
285
|
+
}>[]), unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
286
|
+
slices: {
|
|
287
|
+
type: PropType<SliceZoneLike<SliceLike<string>>>;
|
|
288
|
+
required: true;
|
|
289
|
+
};
|
|
290
|
+
components: {
|
|
291
|
+
type: PropType<SliceZoneComponents<SliceLike<string>, unknown>>;
|
|
292
|
+
default: undefined;
|
|
293
|
+
required: false;
|
|
294
|
+
};
|
|
295
|
+
resolver: {
|
|
296
|
+
type: PropType<SliceZoneResolver<SliceLike<string>, unknown>>;
|
|
297
|
+
default: undefined;
|
|
298
|
+
required: false;
|
|
299
|
+
};
|
|
300
|
+
context: {
|
|
301
|
+
type: null;
|
|
302
|
+
default: undefined;
|
|
303
|
+
required: false;
|
|
304
|
+
};
|
|
305
|
+
defaultComponent: {
|
|
306
|
+
type: PropType<SliceComponentType<SliceLike<string>, unknown>>;
|
|
307
|
+
default: undefined;
|
|
308
|
+
required: false;
|
|
309
|
+
};
|
|
310
|
+
wrapper: {
|
|
311
|
+
type: PropType<string | ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions>>;
|
|
312
|
+
default: undefined;
|
|
313
|
+
required: false;
|
|
314
|
+
};
|
|
315
|
+
}>>, {
|
|
298
316
|
wrapper: string | ConcreteComponent<{}, any, any, vue.ComputedOptions, vue.MethodOptions>;
|
|
299
317
|
context: any;
|
|
300
318
|
components: SliceZoneComponents<SliceLike<string>, unknown>;
|
|
@@ -363,6 +381,7 @@ declare type PrismicPluginComponentsOptions = {
|
|
|
363
381
|
*
|
|
364
382
|
* @remarks
|
|
365
383
|
* Components will be rendered using the {@link SliceComponentProps} interface.
|
|
384
|
+
*
|
|
366
385
|
* @defaultValue `null` when `process.env.NODE_ENV === "production"` else {@link TODOSliceComponent}
|
|
367
386
|
*/
|
|
368
387
|
sliceZoneDefaultComponent?: SliceComponentType;
|
|
@@ -558,6 +577,23 @@ declare type PrismicPluginHelpers = {
|
|
|
558
577
|
* `@prismicio/helpers` {@link asDate} function.
|
|
559
578
|
*/
|
|
560
579
|
asDate: typeof asDate;
|
|
580
|
+
/**
|
|
581
|
+
* Returns the URL of an Image field with optional image transformations (via
|
|
582
|
+
* Imgix URL parameters). This is `@prismicio/helpers` {@link asImageSrc} function.
|
|
583
|
+
*/
|
|
584
|
+
asImageSrc: typeof asImageSrc;
|
|
585
|
+
/**
|
|
586
|
+
* Creates a width-based `srcset` from an Image field with optional image
|
|
587
|
+
* transformations (via Imgix URL parameters). This is `@prismicio/helpers`
|
|
588
|
+
* {@link asImageWidthSrcSet} function.
|
|
589
|
+
*/
|
|
590
|
+
asImageWidthSrcSet: typeof asImageWidthSrcSet;
|
|
591
|
+
/**
|
|
592
|
+
* Creates a pixel-density-based `srcset` from an Image field with optional
|
|
593
|
+
* image transformations (via Imgix URL parameters). This is
|
|
594
|
+
* `@prismicio/helpers` {@link asImagePixelDensitySrcSet} function.
|
|
595
|
+
*/
|
|
596
|
+
asImagePixelDensitySrcSet: typeof asImagePixelDensitySrcSet;
|
|
561
597
|
/**
|
|
562
598
|
* Converts a document into a link field. This is `@prismicio/helpers`
|
|
563
599
|
* {@link documentToLinkField} function.
|
|
@@ -620,6 +656,7 @@ declare type VueUseOptions<T> = {
|
|
|
620
656
|
* @param options - {@link PrismicPluginOptions}
|
|
621
657
|
*
|
|
622
658
|
* @returns `@prismicio/vue` plugin instance {@link PrismicPlugin}
|
|
659
|
+
*
|
|
623
660
|
* @see Prismic Official Vue.js documentation: {@link https://prismic.io/docs/technologies/vuejs}
|
|
624
661
|
* @see Plugin repository: {@link https://github.com/prismicio/prismic-vue}
|
|
625
662
|
*/
|
|
@@ -684,17 +721,76 @@ declare type PrismicImageProps = {
|
|
|
684
721
|
*
|
|
685
722
|
* @remarks
|
|
686
723
|
* HTML tag names and components will be rendered using the `img` tag
|
|
687
|
-
* interface (`src` and `alt` attribute). Components will also
|
|
688
|
-
* additional `copyright` props.
|
|
724
|
+
* interface (`src`, `srcset`, and `alt` attribute). Components will also
|
|
725
|
+
* receive an additional `copyright` props.
|
|
689
726
|
* @defaultValue The one provided to `@prismicio/vue` plugin if configured, `"img"` otherwise.
|
|
690
727
|
*/
|
|
691
728
|
imageComponent?: string | ConcreteComponent;
|
|
692
729
|
/**
|
|
693
|
-
*
|
|
694
|
-
*
|
|
730
|
+
* An object of Imgix URL API parameters.
|
|
731
|
+
*
|
|
732
|
+
* @see Imgix URL parameters reference: https://docs.imgix.com/apis/rendering
|
|
733
|
+
*/
|
|
734
|
+
imgixParams?: Parameters<typeof asImageSrc>[1];
|
|
735
|
+
/**
|
|
736
|
+
* Adds an additional `srcset` attribute to the image following given widths.
|
|
737
|
+
*
|
|
738
|
+
* @remarks
|
|
739
|
+
* A special value of `"auto"` is accepted to automatically use image widths
|
|
740
|
+
* coming from the API.
|
|
741
|
+
* @remarks
|
|
742
|
+
* A special value of `"defaults"` is accepted to automatically use image
|
|
743
|
+
* widths coming from `@prismicio/helpers`
|
|
744
|
+
* @remarks
|
|
745
|
+
* This prop is not compatible with the `pixelDensities` prop. When both are
|
|
746
|
+
* used the `pixelDensities` prop will be ignored.
|
|
747
|
+
*/
|
|
748
|
+
widths?: NonNullable<Parameters<typeof asImageWidthSrcSet>[1]>["widths"] | "auto" | "defaults";
|
|
749
|
+
/**
|
|
750
|
+
* Adds an additional `srcset` attribute to the image following giving pixel densities.
|
|
751
|
+
*
|
|
752
|
+
* @remarks
|
|
753
|
+
* A special value of `"defaults"` is accepted to automatically use image
|
|
754
|
+
* pixel densities coming from `@prismicio/helpers`
|
|
755
|
+
* @remarks
|
|
756
|
+
* This prop is not compatible with the `widths` prop. When both are used, the
|
|
757
|
+
* `pixelDensities` prop will be ignored.
|
|
758
|
+
*/
|
|
759
|
+
pixelDensities?: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
|
|
760
|
+
};
|
|
761
|
+
/**
|
|
762
|
+
* Options for {@link usePrismicImage}.
|
|
763
|
+
*/
|
|
764
|
+
declare type UsePrismicImageOptions = VueUseOptions<Omit<PrismicImageProps, "imageComponent">>;
|
|
765
|
+
/**
|
|
766
|
+
* Return type of {@link usePrismicImage}.
|
|
767
|
+
*/
|
|
768
|
+
declare type UsePrismicImageReturnType = {
|
|
769
|
+
/**
|
|
770
|
+
* Resolved image `src` value.
|
|
771
|
+
*/
|
|
772
|
+
src: ComputedRef<string | null>;
|
|
773
|
+
/**
|
|
774
|
+
* Resolved image `srcset` value.
|
|
695
775
|
*/
|
|
696
|
-
|
|
776
|
+
srcset: ComputedRef<string | null>;
|
|
777
|
+
/**
|
|
778
|
+
* Resolved image `alt` value.
|
|
779
|
+
*/
|
|
780
|
+
alt: ComputedRef<string | null>;
|
|
781
|
+
/**
|
|
782
|
+
* Resolved image `copyright` value.
|
|
783
|
+
*/
|
|
784
|
+
copyright: ComputedRef<string | null>;
|
|
697
785
|
};
|
|
786
|
+
/**
|
|
787
|
+
* A low level composable that returns a resolved information about a Prismic image field.
|
|
788
|
+
*
|
|
789
|
+
* @param props - {@link UsePrismicImageOptions}
|
|
790
|
+
*
|
|
791
|
+
* @returns - Resolved image information {@link UsePrismicImageReturnType}
|
|
792
|
+
*/
|
|
793
|
+
declare const usePrismicImage: (props: UsePrismicImageOptions) => UsePrismicImageReturnType;
|
|
698
794
|
/**
|
|
699
795
|
* Component to render a Prismic image field.
|
|
700
796
|
*
|
|
@@ -718,6 +814,7 @@ declare type PrismicLinkProps = {
|
|
|
718
814
|
* resolver parameter with `@prismicio/client`.
|
|
719
815
|
*
|
|
720
816
|
* @defaultValue The link resolver provided to `@prismicio/vue` plugin if configured.
|
|
817
|
+
*
|
|
721
818
|
* @see Link resolver documentation {@link https://prismic.io/docs/core-concepts/link-resolver-route-resolver#link-resolver}
|
|
722
819
|
*/
|
|
723
820
|
linkResolver?: LinkResolverFunction;
|
|
@@ -870,6 +967,7 @@ declare type PrismicRichTextProps = {
|
|
|
870
967
|
* resolver parameter with `@prismicio/client`.
|
|
871
968
|
*
|
|
872
969
|
* @defaultValue The link resolver provided to `@prismicio/vue` plugin if configured.
|
|
970
|
+
*
|
|
873
971
|
* @see Link resolver documentation {@link https://prismic.io/docs/core-concepts/link-resolver-route-resolver#link-resolver}
|
|
874
972
|
*/
|
|
875
973
|
linkResolver?: LinkResolverFunction;
|
|
@@ -877,6 +975,7 @@ declare type PrismicRichTextProps = {
|
|
|
877
975
|
* An HTML serializer to customize the way rich text fields are rendered.
|
|
878
976
|
*
|
|
879
977
|
* @defaultValue The HTML serializer provided to `@prismicio/vue` plugin if configured.
|
|
978
|
+
*
|
|
880
979
|
* @see HTML serializer documentation {@link https://prismic.io/docs/core-concepts/html-serializer}
|
|
881
980
|
*/
|
|
882
981
|
htmlSerializer?: HTMLFunctionSerializer | HTMLMapSerializer;
|
|
@@ -954,219 +1053,395 @@ declare type ClientComposableReturnType<TData = unknown> = {
|
|
|
954
1053
|
*
|
|
955
1054
|
* @remarks
|
|
956
1055
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1056
|
+
*
|
|
957
1057
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1058
|
+
*
|
|
958
1059
|
* @param params - Parameters to filter, sort, and paginate results
|
|
959
1060
|
*
|
|
960
1061
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1062
|
+
*
|
|
961
1063
|
* @see Underlying `@prismicio/client` method {@link Client.get}
|
|
962
1064
|
*/
|
|
963
|
-
declare const usePrismicDocuments: <TDocument extends PrismicDocument<Record<string,
|
|
1065
|
+
declare const usePrismicDocuments: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1066
|
+
signal?: {
|
|
1067
|
+
aborted: any;
|
|
1068
|
+
addEventListener: any;
|
|
1069
|
+
removeEventListener: any;
|
|
1070
|
+
dispatchEvent: any;
|
|
1071
|
+
onabort: any;
|
|
1072
|
+
} | undefined;
|
|
1073
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
|
|
964
1074
|
/**
|
|
965
1075
|
* A composable that queries content from the Prismic repository and returns
|
|
966
1076
|
* only the first result, if any.
|
|
967
1077
|
*
|
|
968
1078
|
* @remarks
|
|
969
1079
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1080
|
+
*
|
|
970
1081
|
* @typeParam TDocument - Type of the Prismic document returned
|
|
1082
|
+
*
|
|
971
1083
|
* @param params - Parameters to filter, sort, and paginate results
|
|
972
1084
|
*
|
|
973
1085
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1086
|
+
*
|
|
974
1087
|
* @see Underlying `@prismicio/client` method {@link Client.getFirst}
|
|
975
1088
|
*/
|
|
976
|
-
declare const useFirstPrismicDocument: <TDocument extends PrismicDocument<Record<string,
|
|
1089
|
+
declare const useFirstPrismicDocument: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1090
|
+
signal?: {
|
|
1091
|
+
aborted: any;
|
|
1092
|
+
addEventListener: any;
|
|
1093
|
+
removeEventListener: any;
|
|
1094
|
+
dispatchEvent: any;
|
|
1095
|
+
onabort: any;
|
|
1096
|
+
} | undefined;
|
|
1097
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
|
|
977
1098
|
/**
|
|
978
1099
|
* A composable that queries a document from the Prismic repository with a specific ID.
|
|
979
1100
|
*
|
|
980
1101
|
* @remarks
|
|
981
1102
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1103
|
+
*
|
|
982
1104
|
* @typeParam TDocument - Type of the Prismic document returned
|
|
1105
|
+
*
|
|
983
1106
|
* @param id - ID of the document
|
|
984
1107
|
* @param params - Parameters to filter, sort, and paginate results
|
|
985
1108
|
*
|
|
986
1109
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1110
|
+
*
|
|
987
1111
|
* @see Underlying `@prismicio/client` method {@link Client.getByID}
|
|
988
1112
|
*/
|
|
989
|
-
declare const usePrismicDocumentByID: <TDocument extends PrismicDocument<Record<string,
|
|
1113
|
+
declare const usePrismicDocumentByID: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(id: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1114
|
+
signal?: {
|
|
1115
|
+
aborted: any;
|
|
1116
|
+
addEventListener: any;
|
|
1117
|
+
removeEventListener: any;
|
|
1118
|
+
dispatchEvent: any;
|
|
1119
|
+
onabort: any;
|
|
1120
|
+
} | undefined;
|
|
1121
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
|
|
990
1122
|
/**
|
|
991
1123
|
* A composable that queries documents from the Prismic repository with specific IDs.
|
|
992
1124
|
*
|
|
993
1125
|
* @remarks
|
|
994
1126
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1127
|
+
*
|
|
995
1128
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1129
|
+
*
|
|
996
1130
|
* @param ids - A list of document IDs
|
|
997
1131
|
* @param params - Parameters to filter, sort, and paginate results
|
|
998
1132
|
*
|
|
999
1133
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1134
|
+
*
|
|
1000
1135
|
* @see Underlying `@prismicio/client` method {@link Client.getByIDs}
|
|
1001
1136
|
*/
|
|
1002
|
-
declare const usePrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string,
|
|
1137
|
+
declare const usePrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(ids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1138
|
+
signal?: {
|
|
1139
|
+
aborted: any;
|
|
1140
|
+
addEventListener: any;
|
|
1141
|
+
removeEventListener: any;
|
|
1142
|
+
dispatchEvent: any;
|
|
1143
|
+
onabort: any;
|
|
1144
|
+
} | undefined;
|
|
1145
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
|
|
1003
1146
|
/**
|
|
1004
1147
|
* A composable that queries all documents from the Prismic repository with specific IDs.
|
|
1005
1148
|
*
|
|
1006
1149
|
* @remarks
|
|
1007
1150
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1151
|
+
*
|
|
1008
1152
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1153
|
+
*
|
|
1009
1154
|
* @param ids - A list of document IDs
|
|
1010
1155
|
* @param params - Parameters to filter and sort results
|
|
1011
1156
|
*
|
|
1012
1157
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1158
|
+
*
|
|
1013
1159
|
* @see Underlying `@prismicio/client` method {@link Client.getAllByIDs}
|
|
1014
1160
|
*/
|
|
1015
|
-
declare const useAllPrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string,
|
|
1161
|
+
declare const useAllPrismicDocumentsByIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(ids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1162
|
+
signal?: {
|
|
1163
|
+
aborted: any;
|
|
1164
|
+
addEventListener: any;
|
|
1165
|
+
removeEventListener: any;
|
|
1166
|
+
dispatchEvent: any;
|
|
1167
|
+
onabort: any;
|
|
1168
|
+
} | undefined;
|
|
1169
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
|
|
1016
1170
|
/**
|
|
1017
1171
|
* A composable that queries a document from the Prismic repository with a
|
|
1018
1172
|
* specific UID and Custom Type.
|
|
1019
1173
|
*
|
|
1020
1174
|
* @remarks
|
|
1021
1175
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1176
|
+
*
|
|
1022
1177
|
* @typeParam TDocument - Type of the Prismic document returned
|
|
1178
|
+
*
|
|
1023
1179
|
* @param documentType - The API ID of the document's Custom Type
|
|
1024
1180
|
* @param uid - UID of the document
|
|
1025
1181
|
* @param params - Parameters to filter, sort, and paginate results
|
|
1026
1182
|
*
|
|
1027
1183
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1184
|
+
*
|
|
1028
1185
|
* @see Underlying `@prismicio/client` method {@link Client.getByUID}
|
|
1029
1186
|
*/
|
|
1030
|
-
declare const usePrismicDocumentByUID: <TDocument extends PrismicDocument<Record<string,
|
|
1187
|
+
declare const usePrismicDocumentByUID: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, uid: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1188
|
+
signal?: {
|
|
1189
|
+
aborted: any;
|
|
1190
|
+
addEventListener: any;
|
|
1191
|
+
removeEventListener: any;
|
|
1192
|
+
dispatchEvent: any;
|
|
1193
|
+
onabort: any;
|
|
1194
|
+
} | undefined;
|
|
1195
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
|
|
1031
1196
|
/**
|
|
1032
1197
|
* A composable that queries documents from the Prismic repository with specific UIDs.
|
|
1033
1198
|
*
|
|
1034
1199
|
* @remarks
|
|
1035
1200
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1201
|
+
*
|
|
1036
1202
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1203
|
+
*
|
|
1037
1204
|
* @param documentType - The API ID of the document's Custom Type
|
|
1038
1205
|
* @param uids - A list of document UIDs
|
|
1039
1206
|
* @param params - Parameters to filter, sort, and paginate results
|
|
1040
1207
|
*
|
|
1041
1208
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1209
|
+
*
|
|
1042
1210
|
* @see Underlying `@prismicio/client` method {@link Client.getByIDs}
|
|
1043
1211
|
*/
|
|
1044
|
-
declare const usePrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string,
|
|
1212
|
+
declare const usePrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, uids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1213
|
+
signal?: {
|
|
1214
|
+
aborted: any;
|
|
1215
|
+
addEventListener: any;
|
|
1216
|
+
removeEventListener: any;
|
|
1217
|
+
dispatchEvent: any;
|
|
1218
|
+
onabort: any;
|
|
1219
|
+
} | undefined;
|
|
1220
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
|
|
1045
1221
|
/**
|
|
1046
1222
|
* A composable that queries all documents from the Prismic repository with specific UIDs.
|
|
1047
1223
|
*
|
|
1048
1224
|
* @remarks
|
|
1049
1225
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1226
|
+
*
|
|
1050
1227
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1228
|
+
*
|
|
1051
1229
|
* @param documentType - The API ID of the document's Custom Type
|
|
1052
1230
|
* @param uids - A list of document UIDs
|
|
1053
1231
|
* @param params - Parameters to filter and sort results
|
|
1054
1232
|
*
|
|
1055
1233
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1234
|
+
*
|
|
1056
1235
|
* @see Underlying `@prismicio/client` method {@link Client.getAllByIDs}
|
|
1057
1236
|
*/
|
|
1058
|
-
declare const useAllPrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string,
|
|
1237
|
+
declare const useAllPrismicDocumentsByUIDs: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, ids: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1238
|
+
signal?: {
|
|
1239
|
+
aborted: any;
|
|
1240
|
+
addEventListener: any;
|
|
1241
|
+
removeEventListener: any;
|
|
1242
|
+
dispatchEvent: any;
|
|
1243
|
+
onabort: any;
|
|
1244
|
+
} | undefined;
|
|
1245
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
|
|
1059
1246
|
/**
|
|
1060
1247
|
* A composable that queries a singleton document from the Prismic repository
|
|
1061
1248
|
* for a specific Custom Type.
|
|
1062
1249
|
*
|
|
1063
1250
|
* @remarks
|
|
1064
1251
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1252
|
+
*
|
|
1065
1253
|
* @typeParam TDocument - Type of the Prismic document returned
|
|
1254
|
+
*
|
|
1066
1255
|
* @param documentType - The API ID of the singleton Custom Type
|
|
1067
1256
|
* @param params - Parameters to filter, sort, and paginate results
|
|
1068
1257
|
*
|
|
1069
1258
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1259
|
+
*
|
|
1070
1260
|
* @see Underlying `@prismicio/client` method {@link Client.getSingle}
|
|
1071
1261
|
*/
|
|
1072
|
-
declare const useSinglePrismicDocument: <TDocument extends PrismicDocument<Record<string,
|
|
1262
|
+
declare const useSinglePrismicDocument: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1263
|
+
signal?: {
|
|
1264
|
+
aborted: any;
|
|
1265
|
+
addEventListener: any;
|
|
1266
|
+
removeEventListener: any;
|
|
1267
|
+
dispatchEvent: any;
|
|
1268
|
+
onabort: any;
|
|
1269
|
+
} | undefined;
|
|
1270
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument>;
|
|
1073
1271
|
/**
|
|
1074
1272
|
* A composable that queries documents from the Prismic repository for a
|
|
1075
1273
|
* specific Custom Type.
|
|
1076
1274
|
*
|
|
1077
1275
|
* @remarks
|
|
1078
1276
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1277
|
+
*
|
|
1079
1278
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1279
|
+
*
|
|
1080
1280
|
* @param documentType - The API ID of the Custom Type
|
|
1081
1281
|
* @param params - Parameters to filter, sort, and paginate results
|
|
1082
1282
|
*
|
|
1083
1283
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1284
|
+
*
|
|
1084
1285
|
* @see Underlying `@prismicio/client` method {@link Client.getByType}
|
|
1085
1286
|
*/
|
|
1086
|
-
declare const usePrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string,
|
|
1287
|
+
declare const usePrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1288
|
+
signal?: {
|
|
1289
|
+
aborted: any;
|
|
1290
|
+
addEventListener: any;
|
|
1291
|
+
removeEventListener: any;
|
|
1292
|
+
dispatchEvent: any;
|
|
1293
|
+
onabort: any;
|
|
1294
|
+
} | undefined;
|
|
1295
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
|
|
1087
1296
|
/**
|
|
1088
1297
|
* A composable that queries all documents from the Prismic repository for a
|
|
1089
1298
|
* specific Custom Type.
|
|
1090
1299
|
*
|
|
1091
1300
|
* @remarks
|
|
1092
1301
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1302
|
+
*
|
|
1093
1303
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1304
|
+
*
|
|
1094
1305
|
* @param documentType - The API ID of the Custom Type
|
|
1095
1306
|
* @param params - Parameters to filter and sort results
|
|
1096
1307
|
*
|
|
1097
1308
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1309
|
+
*
|
|
1098
1310
|
* @see Underlying `@prismicio/client` method {@link Client.getAllByType}
|
|
1099
1311
|
*/
|
|
1100
|
-
declare const useAllPrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string,
|
|
1312
|
+
declare const useAllPrismicDocumentsByType: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(documentType: string, params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & {
|
|
1313
|
+
signal?: {
|
|
1314
|
+
aborted: any;
|
|
1315
|
+
addEventListener: any;
|
|
1316
|
+
removeEventListener: any;
|
|
1317
|
+
dispatchEvent: any;
|
|
1318
|
+
onabort: any;
|
|
1319
|
+
} | undefined;
|
|
1320
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
|
|
1101
1321
|
/**
|
|
1102
1322
|
* A composable that queries documents from the Prismic repository with a specific tag.
|
|
1103
1323
|
*
|
|
1104
1324
|
* @remarks
|
|
1105
1325
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1326
|
+
*
|
|
1106
1327
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1328
|
+
*
|
|
1107
1329
|
* @param tag - The tag that must be included on a document
|
|
1108
1330
|
* @param params - Parameters to filter, sort, and paginate results
|
|
1109
1331
|
*
|
|
1110
1332
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1333
|
+
*
|
|
1111
1334
|
* @see Underlying `@prismicio/client` method {@link Client.getByTag}
|
|
1112
1335
|
*/
|
|
1113
|
-
declare const usePrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string,
|
|
1336
|
+
declare const usePrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tag: string, params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1337
|
+
signal?: {
|
|
1338
|
+
aborted: any;
|
|
1339
|
+
addEventListener: any;
|
|
1340
|
+
removeEventListener: any;
|
|
1341
|
+
dispatchEvent: any;
|
|
1342
|
+
onabort: any;
|
|
1343
|
+
} | undefined;
|
|
1344
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
|
|
1114
1345
|
/**
|
|
1115
1346
|
* A composable that queries all documents from the Prismic repository with a
|
|
1116
1347
|
* specific tag.
|
|
1117
1348
|
*
|
|
1118
1349
|
* @remarks
|
|
1119
1350
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1351
|
+
*
|
|
1120
1352
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1353
|
+
*
|
|
1121
1354
|
* @param tag - The tag that must be included on a document
|
|
1122
1355
|
* @param params - Parameters to filter and sort results
|
|
1123
1356
|
*
|
|
1124
1357
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1358
|
+
*
|
|
1125
1359
|
* @see Underlying `@prismicio/client` method {@link Client.getAllByTag}
|
|
1126
1360
|
*/
|
|
1127
|
-
declare const useAllPrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string,
|
|
1361
|
+
declare const useAllPrismicDocumentsByTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tag: string, params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & {
|
|
1362
|
+
signal?: {
|
|
1363
|
+
aborted: any;
|
|
1364
|
+
addEventListener: any;
|
|
1365
|
+
removeEventListener: any;
|
|
1366
|
+
dispatchEvent: any;
|
|
1367
|
+
onabort: any;
|
|
1368
|
+
} | undefined;
|
|
1369
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
|
|
1128
1370
|
/**
|
|
1129
1371
|
* A composable that queries documents from the Prismic repository with specific
|
|
1130
1372
|
* tags. A document must be tagged with all of the queried tags to be included.
|
|
1131
1373
|
*
|
|
1132
1374
|
* @remarks
|
|
1133
1375
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1376
|
+
*
|
|
1134
1377
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1378
|
+
*
|
|
1135
1379
|
* @param tags - A list of tags that must be included on a document
|
|
1136
1380
|
* @param params - Parameters to filter, sort, and paginate results
|
|
1137
1381
|
*
|
|
1138
1382
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1383
|
+
*
|
|
1139
1384
|
* @see Underlying `@prismicio/client` method {@link Client.getByTags}
|
|
1140
1385
|
*/
|
|
1141
|
-
declare const usePrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string,
|
|
1386
|
+
declare const usePrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1387
|
+
signal?: {
|
|
1388
|
+
aborted: any;
|
|
1389
|
+
addEventListener: any;
|
|
1390
|
+
removeEventListener: any;
|
|
1391
|
+
dispatchEvent: any;
|
|
1392
|
+
onabort: any;
|
|
1393
|
+
} | undefined;
|
|
1394
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
|
|
1142
1395
|
/**
|
|
1143
1396
|
* A composable that queries all documents from the Prismic repository with
|
|
1144
1397
|
* specific tags. A document must be tagged with all of the queried tags to be included.
|
|
1145
1398
|
*
|
|
1146
1399
|
* @remarks
|
|
1147
1400
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1401
|
+
*
|
|
1148
1402
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1403
|
+
*
|
|
1149
1404
|
* @param tags - A list of tags that must be included on a document
|
|
1150
1405
|
* @param params - Parameters to filter and sort results
|
|
1151
1406
|
*
|
|
1152
1407
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1408
|
+
*
|
|
1153
1409
|
* @see Underlying `@prismicio/client` method {@link Client.getAllByTags}
|
|
1154
1410
|
*/
|
|
1155
|
-
declare const useAllPrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string,
|
|
1411
|
+
declare const useAllPrismicDocumentsByEveryTag: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & {
|
|
1412
|
+
signal?: {
|
|
1413
|
+
aborted: any;
|
|
1414
|
+
addEventListener: any;
|
|
1415
|
+
removeEventListener: any;
|
|
1416
|
+
dispatchEvent: any;
|
|
1417
|
+
onabort: any;
|
|
1418
|
+
} | undefined;
|
|
1419
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
|
|
1156
1420
|
/**
|
|
1157
1421
|
* A composable that queries documents from the Prismic repository with specific
|
|
1158
1422
|
* tags. A document must be tagged with at least one of the queried tags to be included.
|
|
1159
1423
|
*
|
|
1160
1424
|
* @remarks
|
|
1161
1425
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1426
|
+
*
|
|
1162
1427
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1428
|
+
*
|
|
1163
1429
|
* @param tags - A list of tags that must be included on a document
|
|
1164
1430
|
* @param params - Parameters to filter, sort, and paginate results
|
|
1165
1431
|
*
|
|
1166
1432
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1433
|
+
*
|
|
1167
1434
|
* @see Underlying `@prismicio/client` method {@link Client.getByTags}
|
|
1168
1435
|
*/
|
|
1169
|
-
declare const usePrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string,
|
|
1436
|
+
declare const usePrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<_prismicio_client.BuildQueryURLArgs> & {
|
|
1437
|
+
signal?: {
|
|
1438
|
+
aborted: any;
|
|
1439
|
+
addEventListener: any;
|
|
1440
|
+
removeEventListener: any;
|
|
1441
|
+
dispatchEvent: any;
|
|
1442
|
+
onabort: any;
|
|
1443
|
+
} | undefined;
|
|
1444
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<Query<TDocument>>;
|
|
1170
1445
|
/**
|
|
1171
1446
|
* A composable that queries all documents from the Prismic repository with
|
|
1172
1447
|
* specific tags. A document must be tagged with at least one of the queried
|
|
@@ -1174,14 +1449,25 @@ declare const usePrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<
|
|
|
1174
1449
|
*
|
|
1175
1450
|
* @remarks
|
|
1176
1451
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1452
|
+
*
|
|
1177
1453
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1454
|
+
*
|
|
1178
1455
|
* @param tags - A list of tags that must be included on a document
|
|
1179
1456
|
* @param params - Parameters to filter and sort results
|
|
1180
1457
|
*
|
|
1181
1458
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1459
|
+
*
|
|
1182
1460
|
* @see Underlying `@prismicio/client` method {@link Client.getAllByTags}
|
|
1183
1461
|
*/
|
|
1184
|
-
declare const useAllPrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string,
|
|
1462
|
+
declare const useAllPrismicDocumentsBySomeTags: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(tags: string[], params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & {
|
|
1463
|
+
signal?: {
|
|
1464
|
+
aborted: any;
|
|
1465
|
+
addEventListener: any;
|
|
1466
|
+
removeEventListener: any;
|
|
1467
|
+
dispatchEvent: any;
|
|
1468
|
+
onabort: any;
|
|
1469
|
+
} | undefined;
|
|
1470
|
+
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
|
|
1185
1471
|
/**
|
|
1186
1472
|
* **IMPORTANT**: Avoid using `dangerouslyUseAllPrismicDocuments` as it may be
|
|
1187
1473
|
* slower and require more resources than other composables. Prefer using other
|
|
@@ -1192,14 +1478,25 @@ declare const useAllPrismicDocumentsBySomeTags: <TDocument extends PrismicDocume
|
|
|
1192
1478
|
*
|
|
1193
1479
|
* @remarks
|
|
1194
1480
|
* An additional `@prismicio/client` instance can be provided at `params.client`.
|
|
1481
|
+
*
|
|
1195
1482
|
* @typeParam TDocument - Type of Prismic documents returned
|
|
1483
|
+
*
|
|
1196
1484
|
* @param params - Parameters to filter and sort results
|
|
1197
1485
|
*
|
|
1198
1486
|
* @returns The composable payload {@link ClientComposableReturnType}
|
|
1487
|
+
*
|
|
1199
1488
|
* @see Underlying `@prismicio/client` method {@link Client.getAll}
|
|
1200
1489
|
*/
|
|
1201
|
-
declare const dangerouslyUseAllPrismicDocuments: <TDocument extends PrismicDocument<Record<string,
|
|
1490
|
+
declare const dangerouslyUseAllPrismicDocuments: <TDocument extends PrismicDocument<Record<string, any>, string, string>>(params?: (Partial<Omit<_prismicio_client.BuildQueryURLArgs, "page">> & {
|
|
1202
1491
|
limit?: number | undefined;
|
|
1492
|
+
} & {
|
|
1493
|
+
signal?: {
|
|
1494
|
+
aborted: any;
|
|
1495
|
+
addEventListener: any;
|
|
1496
|
+
removeEventListener: any;
|
|
1497
|
+
dispatchEvent: any;
|
|
1498
|
+
onabort: any;
|
|
1499
|
+
} | undefined;
|
|
1203
1500
|
} & ComposableOnlyParameters) | undefined) => ClientComposableReturnType<TDocument[]>;
|
|
1204
1501
|
|
|
1205
1502
|
/**
|
|
@@ -1220,4 +1517,4 @@ declare module "@vue/runtime-core" {
|
|
|
1220
1517
|
}
|
|
1221
1518
|
}
|
|
1222
1519
|
|
|
1223
|
-
export { ClientComposableReturnType, DefineComponentSliceComponentProps, PrismicClientComposableState, PrismicEmbed, PrismicEmbedProps, PrismicImage, PrismicImageProps, PrismicLink, PrismicLinkProps, PrismicPlugin, PrismicPluginOptions, PrismicRichText, PrismicRichTextProps, PrismicText, PrismicTextProps, SliceComponentProps, SliceComponentType, SliceLike, SliceZone, SliceZoneComponents, SliceZoneImpl, SliceZoneLike, SliceZoneProps, SliceZoneResolver, TODOSliceComponent, UsePrismicLinkOptions, UsePrismicRichTextOptions, UsePrismicTextOptions, createPrismic, dangerouslyUseAllPrismicDocuments, defineSliceZoneComponents, getSliceComponentProps, prismicKey, useAllPrismicDocumentsByEveryTag, useAllPrismicDocumentsByIDs, useAllPrismicDocumentsBySomeTags, useAllPrismicDocumentsByTag, useAllPrismicDocumentsByType, useAllPrismicDocumentsByUIDs, useFirstPrismicDocument, usePrismic, usePrismicDocumentByID, usePrismicDocumentByUID, usePrismicDocuments, usePrismicDocumentsByEveryTag, usePrismicDocumentsByIDs, usePrismicDocumentsBySomeTags, usePrismicDocumentsByTag, usePrismicDocumentsByType, usePrismicDocumentsByUIDs, usePrismicLink, usePrismicRichText, usePrismicText, useSinglePrismicDocument };
|
|
1520
|
+
export { ClientComposableReturnType, DefineComponentSliceComponentProps, PrismicClientComposableState, PrismicEmbed, PrismicEmbedProps, PrismicImage, PrismicImageProps, PrismicLink, PrismicLinkProps, PrismicPlugin, PrismicPluginOptions, PrismicRichText, PrismicRichTextProps, PrismicText, PrismicTextProps, SliceComponentProps, SliceComponentType, SliceLike, SliceZone, SliceZoneComponents, SliceZoneImpl, SliceZoneLike, SliceZoneProps, SliceZoneResolver, TODOSliceComponent, UsePrismicImageOptions, UsePrismicLinkOptions, UsePrismicRichTextOptions, UsePrismicTextOptions, createPrismic, dangerouslyUseAllPrismicDocuments, defineSliceZoneComponents, getSliceComponentProps, prismicKey, useAllPrismicDocumentsByEveryTag, useAllPrismicDocumentsByIDs, useAllPrismicDocumentsBySomeTags, useAllPrismicDocumentsByTag, useAllPrismicDocumentsByType, useAllPrismicDocumentsByUIDs, useFirstPrismicDocument, usePrismic, usePrismicDocumentByID, usePrismicDocumentByUID, usePrismicDocuments, usePrismicDocumentsByEveryTag, usePrismicDocumentsByIDs, usePrismicDocumentsBySomeTags, usePrismicDocumentsByTag, usePrismicDocumentsByType, usePrismicDocumentsByUIDs, usePrismicImage, usePrismicLink, usePrismicRichText, usePrismicText, useSinglePrismicDocument };
|