@prismicio/vue 4.2.3 → 5.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/PrismicEmbed.vue.cjs +25 -0
- package/dist/PrismicEmbed.vue.cjs.map +1 -0
- package/dist/PrismicEmbed.vue.d.ts +19 -0
- package/dist/PrismicEmbed.vue.js +26 -0
- package/dist/PrismicEmbed.vue.js.map +1 -0
- package/dist/PrismicEmbed.vue2.cjs +4 -0
- package/dist/PrismicEmbed.vue2.cjs.map +1 -0
- package/dist/PrismicEmbed.vue2.js +5 -0
- package/dist/PrismicEmbed.vue2.js.map +1 -0
- package/dist/PrismicImage.vue.cjs +84 -0
- package/dist/PrismicImage.vue.cjs.map +1 -0
- package/dist/PrismicImage.vue.d.ts +224 -0
- package/dist/PrismicImage.vue.js +85 -0
- package/dist/PrismicImage.vue.js.map +1 -0
- package/dist/PrismicImage.vue2.cjs +4 -0
- package/dist/PrismicImage.vue2.cjs.map +1 -0
- package/dist/PrismicImage.vue2.js +5 -0
- package/dist/PrismicImage.vue2.js.map +1 -0
- package/dist/PrismicLink.vue.cjs +100 -0
- package/dist/PrismicLink.vue.cjs.map +1 -0
- package/dist/PrismicLink.vue.d.ts +278 -0
- package/dist/PrismicLink.vue.js +101 -0
- package/dist/PrismicLink.vue.js.map +1 -0
- package/dist/PrismicLink.vue2.cjs +4 -0
- package/dist/PrismicLink.vue2.cjs.map +1 -0
- package/dist/PrismicLink.vue2.js +5 -0
- package/dist/PrismicLink.vue2.js.map +1 -0
- package/dist/PrismicRichText/DeprecatedPrismicRichText.vue.cjs +90 -0
- package/dist/PrismicRichText/DeprecatedPrismicRichText.vue.cjs.map +1 -0
- package/dist/PrismicRichText/DeprecatedPrismicRichText.vue.d.ts +7 -0
- package/dist/PrismicRichText/DeprecatedPrismicRichText.vue.js +91 -0
- package/dist/PrismicRichText/DeprecatedPrismicRichText.vue.js.map +1 -0
- package/dist/PrismicRichText/DeprecatedPrismicRichText.vue2.cjs +4 -0
- package/dist/PrismicRichText/DeprecatedPrismicRichText.vue2.cjs.map +1 -0
- package/dist/PrismicRichText/DeprecatedPrismicRichText.vue2.js +5 -0
- package/dist/PrismicRichText/DeprecatedPrismicRichText.vue2.js.map +1 -0
- package/dist/PrismicRichText/PrismicRichText.vue.cjs +85 -0
- package/dist/PrismicRichText/PrismicRichText.vue.cjs.map +1 -0
- package/dist/PrismicRichText/PrismicRichText.vue.d.ts +57 -0
- package/dist/PrismicRichText/PrismicRichText.vue.js +86 -0
- package/dist/PrismicRichText/PrismicRichText.vue.js.map +1 -0
- package/dist/PrismicRichText/PrismicRichText.vue2.cjs +4 -0
- package/dist/PrismicRichText/PrismicRichText.vue2.cjs.map +1 -0
- package/dist/PrismicRichText/PrismicRichText.vue2.js +5 -0
- package/dist/PrismicRichText/PrismicRichText.vue2.js.map +1 -0
- package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue.cjs +133 -0
- package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue.cjs.map +1 -0
- package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue.d.ts +37 -0
- package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue.js +134 -0
- package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue.js.map +1 -0
- package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue2.cjs +4 -0
- package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue2.cjs.map +1 -0
- package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue2.js +5 -0
- package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue2.js.map +1 -0
- package/dist/PrismicRichText/PrismicRichTextSerialize.vue.cjs +47 -0
- package/dist/PrismicRichText/PrismicRichTextSerialize.vue.cjs.map +1 -0
- package/dist/PrismicRichText/PrismicRichTextSerialize.vue.d.ts +10 -0
- package/dist/PrismicRichText/PrismicRichTextSerialize.vue.js +48 -0
- package/dist/PrismicRichText/PrismicRichTextSerialize.vue.js.map +1 -0
- package/dist/PrismicRichText/PrismicRichTextSerialize.vue2.cjs +4 -0
- package/dist/PrismicRichText/PrismicRichTextSerialize.vue2.cjs.map +1 -0
- package/dist/PrismicRichText/PrismicRichTextSerialize.vue2.js +5 -0
- package/dist/PrismicRichText/PrismicRichTextSerialize.vue2.js.map +1 -0
- package/dist/PrismicRichText/getRichTextComponentProps.cjs +10 -0
- package/dist/PrismicRichText/getRichTextComponentProps.cjs.map +1 -0
- package/dist/PrismicRichText/getRichTextComponentProps.d.ts +49 -0
- package/dist/PrismicRichText/getRichTextComponentProps.js +10 -0
- package/dist/PrismicRichText/getRichTextComponentProps.js.map +1 -0
- package/dist/PrismicRichText/index.d.ts +2 -0
- package/dist/PrismicRichText/types.d.ts +22 -0
- package/dist/PrismicText.vue.cjs +43 -0
- package/dist/PrismicText.vue.cjs.map +1 -0
- package/dist/PrismicText.vue.d.ts +31 -0
- package/dist/PrismicText.vue.js +44 -0
- package/dist/PrismicText.vue.js.map +1 -0
- package/dist/PrismicText.vue2.cjs +4 -0
- package/dist/PrismicText.vue2.cjs.map +1 -0
- package/dist/PrismicText.vue2.js +5 -0
- package/dist/PrismicText.vue2.js.map +1 -0
- package/dist/SliceZone/SliceZone.vue.cjs +63 -0
- package/dist/SliceZone/SliceZone.vue.cjs.map +1 -0
- package/dist/SliceZone/SliceZone.vue.d.ts +40 -0
- package/dist/SliceZone/SliceZone.vue.js +64 -0
- package/dist/SliceZone/SliceZone.vue.js.map +1 -0
- package/dist/SliceZone/SliceZone.vue2.cjs +4 -0
- package/dist/SliceZone/SliceZone.vue2.cjs.map +1 -0
- package/dist/SliceZone/SliceZone.vue2.js +5 -0
- package/dist/SliceZone/SliceZone.vue2.js.map +1 -0
- package/dist/SliceZone/TODOSliceComponent.cjs +29 -0
- package/dist/SliceZone/TODOSliceComponent.cjs.map +1 -0
- package/dist/SliceZone/TODOSliceComponent.d.ts +9 -0
- package/dist/SliceZone/TODOSliceComponent.js +29 -0
- package/dist/SliceZone/TODOSliceComponent.js.map +1 -0
- package/dist/SliceZone/defineSliceZoneComponents.cjs +14 -0
- package/dist/SliceZone/defineSliceZoneComponents.cjs.map +1 -0
- package/dist/SliceZone/defineSliceZoneComponents.d.ts +36 -0
- package/dist/SliceZone/defineSliceZoneComponents.js +14 -0
- package/dist/SliceZone/defineSliceZoneComponents.js.map +1 -0
- package/dist/SliceZone/getSliceComponentProps.cjs +22 -0
- package/dist/SliceZone/getSliceComponentProps.cjs.map +1 -0
- package/dist/SliceZone/getSliceComponentProps.d.ts +66 -0
- package/dist/SliceZone/getSliceComponentProps.js +22 -0
- package/dist/SliceZone/getSliceComponentProps.js.map +1 -0
- package/dist/SliceZone/index.d.ts +4 -0
- package/dist/SliceZone/types.d.ts +97 -0
- package/dist/createPrismic.cjs +17 -50
- package/dist/createPrismic.cjs.map +1 -1
- package/dist/createPrismic.d.ts +10 -0
- package/dist/createPrismic.js +16 -27
- package/dist/createPrismic.js.map +1 -1
- package/dist/index.cjs +21 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +19 -9
- package/dist/index.js +19 -38
- package/dist/index.js.map +1 -1
- package/dist/lib/Wrapper.vue.cjs +20 -0
- package/dist/lib/Wrapper.vue.cjs.map +1 -0
- package/dist/lib/Wrapper.vue.d.ts +34 -0
- package/dist/lib/Wrapper.vue.js +21 -0
- package/dist/lib/Wrapper.vue.js.map +1 -0
- package/dist/lib/Wrapper.vue2.cjs +4 -0
- package/dist/lib/Wrapper.vue2.cjs.map +1 -0
- package/dist/lib/Wrapper.vue2.js +5 -0
- package/dist/lib/Wrapper.vue2.js.map +1 -0
- package/dist/lib/devMsg.cjs +8 -0
- package/dist/lib/devMsg.cjs.map +1 -0
- package/dist/lib/devMsg.d.ts +16 -0
- package/dist/lib/devMsg.js +8 -0
- package/dist/lib/devMsg.js.map +1 -0
- package/dist/lib/isInternalURL.cjs.map +1 -1
- package/dist/lib/isInternalURL.js.map +1 -1
- package/dist/package.json.cjs +5 -0
- package/dist/package.json.cjs.map +1 -0
- package/dist/package.json.js +5 -0
- package/dist/package.json.js.map +1 -0
- package/dist/types.d.ts +42 -58
- package/dist/usePrismic.cjs +3 -2
- package/dist/usePrismic.cjs.map +1 -1
- package/dist/usePrismic.d.ts +13 -5
- package/dist/usePrismic.js +2 -1
- package/dist/usePrismic.js.map +1 -1
- package/package.json +33 -36
- package/src/PrismicEmbed.vue +42 -0
- package/src/PrismicImage.vue +160 -0
- package/src/PrismicLink.vue +191 -0
- package/src/PrismicRichText/DeprecatedPrismicRichText.vue +130 -0
- package/src/PrismicRichText/PrismicRichText.vue +157 -0
- package/src/PrismicRichText/PrismicRichTextDefaultComponent.vue +63 -0
- package/src/PrismicRichText/PrismicRichTextSerialize.vue +52 -0
- package/src/PrismicRichText/getRichTextComponentProps.ts +63 -0
- package/src/PrismicRichText/index.ts +3 -0
- package/src/PrismicRichText/types.ts +37 -0
- package/src/PrismicText.vue +63 -0
- package/src/SliceZone/SliceZone.vue +113 -0
- package/src/SliceZone/TODOSliceComponent.ts +49 -0
- package/src/SliceZone/defineSliceZoneComponents.ts +67 -0
- package/src/SliceZone/getSliceComponentProps.ts +98 -0
- package/src/SliceZone/index.ts +13 -0
- package/src/SliceZone/types.ts +163 -0
- package/src/createPrismic.ts +54 -53
- package/src/index.ts +33 -58
- package/src/lib/Wrapper.vue +22 -0
- package/src/lib/devMsg.ts +20 -0
- package/src/lib/isInternalURL.ts +4 -4
- package/src/types.ts +91 -109
- package/src/usePrismic.ts +16 -9
- package/dist/components/PrismicEmbed.cjs +0 -36
- package/dist/components/PrismicEmbed.cjs.map +0 -1
- package/dist/components/PrismicEmbed.d.ts +0 -59
- package/dist/components/PrismicEmbed.js +0 -36
- package/dist/components/PrismicEmbed.js.map +0 -1
- package/dist/components/PrismicImage.cjs +0 -122
- package/dist/components/PrismicImage.cjs.map +0 -1
- package/dist/components/PrismicImage.d.ts +0 -163
- package/dist/components/PrismicImage.js +0 -122
- package/dist/components/PrismicImage.js.map +0 -1
- package/dist/components/PrismicLink.cjs +0 -115
- package/dist/components/PrismicLink.cjs.map +0 -1
- package/dist/components/PrismicLink.d.ts +0 -192
- package/dist/components/PrismicLink.js +0 -115
- package/dist/components/PrismicLink.js.map +0 -1
- package/dist/components/PrismicRichText.cjs +0 -108
- package/dist/components/PrismicRichText.cjs.map +0 -1
- package/dist/components/PrismicRichText.d.ts +0 -161
- package/dist/components/PrismicRichText.js +0 -108
- package/dist/components/PrismicRichText.js.map +0 -1
- package/dist/components/PrismicText.cjs +0 -57
- package/dist/components/PrismicText.cjs.map +0 -1
- package/dist/components/PrismicText.d.ts +0 -119
- package/dist/components/PrismicText.js +0 -57
- package/dist/components/PrismicText.js.map +0 -1
- package/dist/components/SliceZone.cjs +0 -156
- package/dist/components/SliceZone.cjs.map +0 -1
- package/dist/components/SliceZone.d.ts +0 -375
- package/dist/components/SliceZone.js +0 -156
- package/dist/components/SliceZone.js.map +0 -1
- package/dist/components/index.d.ts +0 -12
- package/dist/composables.cjs +0 -40
- package/dist/composables.cjs.map +0 -1
- package/dist/composables.d.ts +0 -384
- package/dist/composables.js +0 -40
- package/dist/composables.js.map +0 -1
- package/dist/globalExtensions.d.ts +0 -11
- package/dist/injectionSymbols.cjs +0 -5
- package/dist/injectionSymbols.cjs.map +0 -1
- package/dist/injectionSymbols.d.ts +0 -9
- package/dist/injectionSymbols.js +0 -5
- package/dist/injectionSymbols.js.map +0 -1
- package/dist/lib/__PRODUCTION__.cjs +0 -8
- package/dist/lib/__PRODUCTION__.cjs.map +0 -1
- package/dist/lib/__PRODUCTION__.d.ts +0 -7
- package/dist/lib/__PRODUCTION__.js +0 -8
- package/dist/lib/__PRODUCTION__.js.map +0 -1
- package/dist/lib/getSlots.cjs +0 -19
- package/dist/lib/getSlots.cjs.map +0 -1
- package/dist/lib/getSlots.d.ts +0 -14
- package/dist/lib/getSlots.js +0 -19
- package/dist/lib/getSlots.js.map +0 -1
- package/dist/lib/simplyResolveComponent.cjs +0 -8
- package/dist/lib/simplyResolveComponent.cjs.map +0 -1
- package/dist/lib/simplyResolveComponent.d.ts +0 -12
- package/dist/lib/simplyResolveComponent.js +0 -8
- package/dist/lib/simplyResolveComponent.js.map +0 -1
- package/dist/useStatefulPrismicClientMethod.cjs +0 -39
- package/dist/useStatefulPrismicClientMethod.cjs.map +0 -1
- package/dist/useStatefulPrismicClientMethod.d.ts +0 -64
- package/dist/useStatefulPrismicClientMethod.js +0 -39
- package/dist/useStatefulPrismicClientMethod.js.map +0 -1
- package/src/components/PrismicEmbed.ts +0 -91
- package/src/components/PrismicImage.ts +0 -309
- package/src/components/PrismicLink.ts +0 -313
- package/src/components/PrismicRichText.ts +0 -282
- package/src/components/PrismicText.ts +0 -167
- package/src/components/SliceZone.ts +0 -619
- package/src/components/index.ts +0 -46
- package/src/composables.ts +0 -474
- package/src/globalExtensions.ts +0 -12
- package/src/injectionSymbols.ts +0 -17
- package/src/lib/__PRODUCTION__.ts +0 -12
- package/src/lib/getSlots.ts +0 -34
- package/src/lib/simplyResolveComponent.ts +0 -23
- package/src/useStatefulPrismicClientMethod.ts +0 -156
- package/vetur/attributes.json +0 -113
- package/vetur/tags.json +0 -60
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Client,
|
|
3
|
-
ForbiddenError,
|
|
4
|
-
ParsingError,
|
|
5
|
-
PrismicError,
|
|
6
|
-
} from "@prismicio/client";
|
|
7
|
-
import { Ref, isRef, ref, shallowRef, unref, watch } from "vue";
|
|
8
|
-
|
|
9
|
-
import { PrismicClientComposableState, VueUseParameters } from "./types";
|
|
10
|
-
|
|
11
|
-
import { usePrismic } from "./usePrismic";
|
|
12
|
-
|
|
13
|
-
// Helpers
|
|
14
|
-
type UnwrapPromise<T> = T extends Promise<infer U> ? U : T;
|
|
15
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
-
type ClientMethodLike = (...args: any[]) => Promise<any> | any;
|
|
17
|
-
type ClientMethods = typeof Client.prototype;
|
|
18
|
-
type ClientError = PrismicError<unknown> | ParsingError | ForbiddenError;
|
|
19
|
-
|
|
20
|
-
// Interfaces
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
export type ClientMethodParameters<TMethodName extends keyof ClientMethods> =
|
|
26
|
-
ClientMethods[TMethodName] extends ClientMethodLike
|
|
27
|
-
? VueUseParameters<Parameters<ClientMethods[TMethodName]>>
|
|
28
|
-
: never;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
export type ClientMethodReturnType<TMethodName extends keyof ClientMethods> =
|
|
34
|
-
ClientMethods[TMethodName] extends ClientMethodLike
|
|
35
|
-
? ReturnType<ClientMethods[TMethodName]>
|
|
36
|
-
: never;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
export type ComposableOnlyParameters = {
|
|
42
|
-
client?: Ref<Client> | Client;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* The return type of a `@prismicio/client` Vue composable.
|
|
47
|
-
*
|
|
48
|
-
* @typeParam TData - The expected format of the `data` property of the returned
|
|
49
|
-
* object
|
|
50
|
-
*/
|
|
51
|
-
export type ClientComposableReturnType<TData = unknown> = {
|
|
52
|
-
/**
|
|
53
|
-
* The current state of the composable's client method call.
|
|
54
|
-
*/
|
|
55
|
-
state: Ref<PrismicClientComposableState>;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Data returned by the client.
|
|
59
|
-
*/
|
|
60
|
-
data: Ref<TData | null>;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Error returned by the composable's client method call if in an errror
|
|
64
|
-
* state.
|
|
65
|
-
*/
|
|
66
|
-
error: Ref<ClientError | Error | null>;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Perform the composable's client method call again.
|
|
70
|
-
*/
|
|
71
|
-
refresh: () => Promise<void>;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Determines if a value is a `@prismicio/client` params object.
|
|
76
|
-
*
|
|
77
|
-
* @param value - The value to check
|
|
78
|
-
*
|
|
79
|
-
* @returns `true` if `value` is a `@prismicio/client` params object, `false`
|
|
80
|
-
* otherwise
|
|
81
|
-
*/
|
|
82
|
-
const isParams = (
|
|
83
|
-
value: unknown,
|
|
84
|
-
): value is ClientMethodParameters<"get">[0] & ComposableOnlyParameters => {
|
|
85
|
-
// This is a *very* naive check.
|
|
86
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* A low level Vue composable that uses provided method name on plugin or
|
|
91
|
-
* provided client with given arguments. The composable has its own internal
|
|
92
|
-
* state manager to report async status, such as pending or error statuses.
|
|
93
|
-
*
|
|
94
|
-
* @typeParam TClientMethodName - A method name from `@prismicio/client`
|
|
95
|
-
* @typeParam TClientMethodArguments - The method expected arguments
|
|
96
|
-
* @typeParam TClientMethodReturnType - The method expected return type
|
|
97
|
-
*
|
|
98
|
-
* @param method - The `@prismicio/client` method name to use
|
|
99
|
-
* @param args - The arguments to use with requested method
|
|
100
|
-
*
|
|
101
|
-
* @returns The composable payload {@link ClientComposableReturnType}
|
|
102
|
-
*
|
|
103
|
-
* @internal
|
|
104
|
-
*/
|
|
105
|
-
export const useStatefulPrismicClientMethod = <
|
|
106
|
-
TClientMethodName extends keyof ClientMethods,
|
|
107
|
-
TClientMethodArguments extends ClientMethodParameters<TClientMethodName>,
|
|
108
|
-
TClientMethodReturnType extends UnwrapPromise<
|
|
109
|
-
ClientMethodReturnType<TClientMethodName>
|
|
110
|
-
>,
|
|
111
|
-
>(
|
|
112
|
-
methodName: TClientMethodName,
|
|
113
|
-
args: TClientMethodArguments,
|
|
114
|
-
): ClientComposableReturnType<TClientMethodReturnType> => {
|
|
115
|
-
const { client } = usePrismic();
|
|
116
|
-
|
|
117
|
-
const state = ref<PrismicClientComposableState>(
|
|
118
|
-
PrismicClientComposableState.Idle,
|
|
119
|
-
);
|
|
120
|
-
const data = shallowRef<TClientMethodReturnType | null>(null);
|
|
121
|
-
const error = ref<ClientError | Error | null>(null);
|
|
122
|
-
const refresh = async (): Promise<void> => {
|
|
123
|
-
const lastArg = unref(args[args.length - 1]);
|
|
124
|
-
const { client: explicitClient, ...params } = isParams(lastArg)
|
|
125
|
-
? (lastArg as ClientMethodParameters<"get">[0] & ComposableOnlyParameters)
|
|
126
|
-
: ({} as ComposableOnlyParameters);
|
|
127
|
-
const argsWithoutParams = isParams(lastArg) ? args.slice(0, -1) : args;
|
|
128
|
-
|
|
129
|
-
state.value = PrismicClientComposableState.Pending;
|
|
130
|
-
data.value = null;
|
|
131
|
-
error.value = null;
|
|
132
|
-
try {
|
|
133
|
-
data.value = await (
|
|
134
|
-
(unref(explicitClient) || client)[methodName] as ClientMethodLike
|
|
135
|
-
)(
|
|
136
|
-
...argsWithoutParams.map((arg: Ref<unknown> | unknown) => unref(arg)),
|
|
137
|
-
params,
|
|
138
|
-
);
|
|
139
|
-
state.value = PrismicClientComposableState.Success;
|
|
140
|
-
} catch (err) {
|
|
141
|
-
state.value = PrismicClientComposableState.Error;
|
|
142
|
-
error.value = err as ClientError | Error;
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
// Watch reactive args
|
|
147
|
-
const refArgs = args.filter((arg) => isRef(arg));
|
|
148
|
-
if (refArgs.length) {
|
|
149
|
-
watch(refArgs, refresh, { deep: true });
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// Fetch once
|
|
153
|
-
refresh();
|
|
154
|
-
|
|
155
|
-
return { state, data, error, refresh };
|
|
156
|
-
};
|
package/vetur/attributes.json
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"prismic-embed/field": {
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "The Prismic embed field to render."
|
|
5
|
-
},
|
|
6
|
-
"prismic-embed/wrapper": {
|
|
7
|
-
"type": "string | object | function",
|
|
8
|
-
"description": "An HTML tag name, a component, or a functional component used to wrap the output. Defaults to `\"div\"`."
|
|
9
|
-
},
|
|
10
|
-
"prismic-image/field": {
|
|
11
|
-
"type": "object",
|
|
12
|
-
"description": "The Prismic image field to render."
|
|
13
|
-
},
|
|
14
|
-
"prismic-image/image-component": {
|
|
15
|
-
"type": "string | object | function",
|
|
16
|
-
"description": "An HTML tag name, a component, or a functional component used to render images. Defaults to the one provided to `@prismicio/vue` plugin if configured, `\"img\"` otherwise."
|
|
17
|
-
},
|
|
18
|
-
"prismic-image/imgix-params": {
|
|
19
|
-
"type": "object",
|
|
20
|
-
"description": "An object of Imgix URL API parameters."
|
|
21
|
-
},
|
|
22
|
-
"prismic-image/widths": {
|
|
23
|
-
"type": "array | string",
|
|
24
|
-
"description": "Adds an additional `srcset` attribute to the image following given widths."
|
|
25
|
-
},
|
|
26
|
-
"prismic-image/pixel-densities": {
|
|
27
|
-
"type": "array | string",
|
|
28
|
-
"description": "Adds an additional `srcset` attribute to the image following giving pixel densities."
|
|
29
|
-
},
|
|
30
|
-
"prismic-link/field": {
|
|
31
|
-
"type": "object",
|
|
32
|
-
"description": "The Prismic link field or document to render."
|
|
33
|
-
},
|
|
34
|
-
"prismic-link/link-resolver": {
|
|
35
|
-
"type": "function",
|
|
36
|
-
"description": "A link resolver function used to resolve links when not using the route resolver parameter with `@prismicio/client`. Defaults to the link resolver provided to `@prismicio/vue` plugin if configured."
|
|
37
|
-
},
|
|
38
|
-
"prismic-link/target": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"description": "An explicit `target` attribute to apply to the rendered link."
|
|
41
|
-
},
|
|
42
|
-
"prismic-link/rel": {
|
|
43
|
-
"type": "string",
|
|
44
|
-
"description": "An explicit `rel` attribute to apply to the rendered link."
|
|
45
|
-
},
|
|
46
|
-
"prismic-link/blank-target-rel-attribute": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"description": "Value of the `rel` attribute to use on links rendered with `target=\"_blank\"`. Defaults to the one provided to `@prismicio/vue` plugin if configured, `\"noopener noreferrer\"` otherwise."
|
|
49
|
-
},
|
|
50
|
-
"prismic-link/internal-component": {
|
|
51
|
-
"type": "string | object | function",
|
|
52
|
-
"description": "An HTML tag name, a component, or a functional component used to render internal links. Defaults to the one provided to `@prismicio/vue` plugin if configured, `\"router-link\"` otherwise."
|
|
53
|
-
},
|
|
54
|
-
"prismic-link/external-component": {
|
|
55
|
-
"type": "string | object | function",
|
|
56
|
-
"description": "An HTML tag name, a component, or a functional component used to render external links. Defaults to the one provided to `@prismicio/vue` plugin if configured, `\"a\"` otherwise."
|
|
57
|
-
},
|
|
58
|
-
"prismic-rich-text/field": {
|
|
59
|
-
"type": "array",
|
|
60
|
-
"description": "The Prismic rich text or title field to render."
|
|
61
|
-
},
|
|
62
|
-
"prismic-rich-text/link-resolver": {
|
|
63
|
-
"type": "function",
|
|
64
|
-
"description": "A link resolver function used to resolve links when not using the route resolver parameter with `@prismicio/client`. Defaults to the link resolver provided to `@prismicio/vue` plugin if configured."
|
|
65
|
-
},
|
|
66
|
-
"prismic-rich-text/serializer": {
|
|
67
|
-
"type": "function | object",
|
|
68
|
-
"description": "An HTML serializer to customize the way rich text fields are rendered. Defaults to the HTML serializer provided to `@prismicio/vue` plugin if configured."
|
|
69
|
-
},
|
|
70
|
-
"prismic-rich-text/wrapper": {
|
|
71
|
-
"type": "string | object | function",
|
|
72
|
-
"description": "An HTML tag name, a component, or a functional component used to wrap the output. Defaults to `\"div\"`."
|
|
73
|
-
},
|
|
74
|
-
"prismic-rich-text/fallback": {
|
|
75
|
-
"type": "string",
|
|
76
|
-
"description": "The HTML value to be rendered when the field is empty. If a fallback is not given, `\"\"` (nothing) will be rendered."
|
|
77
|
-
},
|
|
78
|
-
"prismic-text/field": {
|
|
79
|
-
"type": "array",
|
|
80
|
-
"description": "The Prismic rich text or title field to render."
|
|
81
|
-
},
|
|
82
|
-
"prismic-text/separator": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"description": "Separator used to join each element. Defaults to `\" \"` (a space)"
|
|
85
|
-
},
|
|
86
|
-
"prismic-text/wrapper": {
|
|
87
|
-
"type": "string | object | function",
|
|
88
|
-
"description": "An HTML tag name, a component, or a functional component used to wrap the output. Defaults to `\"div\"`."
|
|
89
|
-
},
|
|
90
|
-
"prismic-text/fallback": {
|
|
91
|
-
"type": "string",
|
|
92
|
-
"description": "The string value to be rendered when the field is empty. If a fallback is not given, `\"\"` (nothing) will be rendered."
|
|
93
|
-
},
|
|
94
|
-
"slice-zone/slices": {
|
|
95
|
-
"type": "array",
|
|
96
|
-
"description": "List of Slice data from the Slice Zone."
|
|
97
|
-
},
|
|
98
|
-
"slice-zone/components": {
|
|
99
|
-
"type": "array",
|
|
100
|
-
"description": "A record mapping Slice types to Vue components."
|
|
101
|
-
},
|
|
102
|
-
"slice-zone/context": {
|
|
103
|
-
"description": "Arbitrary data made available to all Slice components."
|
|
104
|
-
},
|
|
105
|
-
"slice-zone/default-component": {
|
|
106
|
-
"type": "string | object | function",
|
|
107
|
-
"description": "A component or a functional component rendered if a component mapping from the `components` prop cannot be found. Defaults to the Slice Zone default component provided to `@prismicio/vue` plugin if configured, otherwise `null` when `process.env.NODE_ENV === \"production\"` else `\"todo-slice-component\"`"
|
|
108
|
-
},
|
|
109
|
-
"slice-zone/wrapper": {
|
|
110
|
-
"type": "string | object | function",
|
|
111
|
-
"description": "An HTML tag name, a component, or a functional component used to wrap the output. The Slice Zone is not wrapped by default."
|
|
112
|
-
}
|
|
113
|
-
}
|
package/vetur/tags.json
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"prismic-embed": {
|
|
3
|
-
"attributes": [
|
|
4
|
-
"field",
|
|
5
|
-
"wrapper"
|
|
6
|
-
],
|
|
7
|
-
"description": "Component to render a Prismic embed field."
|
|
8
|
-
},
|
|
9
|
-
"prismic-image": {
|
|
10
|
-
"attributes": [
|
|
11
|
-
"field",
|
|
12
|
-
"image-component",
|
|
13
|
-
"imgix-params",
|
|
14
|
-
"widths",
|
|
15
|
-
"pixel-densities"
|
|
16
|
-
],
|
|
17
|
-
"description": "Component to render a Prismic image field."
|
|
18
|
-
},
|
|
19
|
-
"prismic-link": {
|
|
20
|
-
"attributes": [
|
|
21
|
-
"field",
|
|
22
|
-
"link-resolver",
|
|
23
|
-
"target",
|
|
24
|
-
"rel",
|
|
25
|
-
"blank-target-rel-attribute",
|
|
26
|
-
"internal-component",
|
|
27
|
-
"external-component"
|
|
28
|
-
],
|
|
29
|
-
"description": "Component to render a Prismic link field."
|
|
30
|
-
},
|
|
31
|
-
"prismic-rich-text": {
|
|
32
|
-
"attributes": [
|
|
33
|
-
"field",
|
|
34
|
-
"link-resolver",
|
|
35
|
-
"serializer",
|
|
36
|
-
"wrapper",
|
|
37
|
-
"fallback"
|
|
38
|
-
],
|
|
39
|
-
"description": "Component to render a Prismic rich text field as HTML."
|
|
40
|
-
},
|
|
41
|
-
"prismic-text": {
|
|
42
|
-
"attributes": [
|
|
43
|
-
"field",
|
|
44
|
-
"separator",
|
|
45
|
-
"wrapper",
|
|
46
|
-
"fallback"
|
|
47
|
-
],
|
|
48
|
-
"description": "Component to render a Prismic rich text field as plain text."
|
|
49
|
-
},
|
|
50
|
-
"slice-zone": {
|
|
51
|
-
"attributes": [
|
|
52
|
-
"slices",
|
|
53
|
-
"components",
|
|
54
|
-
"context",
|
|
55
|
-
"default-component",
|
|
56
|
-
"wrapper"
|
|
57
|
-
],
|
|
58
|
-
"description": "Component to render a Prismic Slice Zone."
|
|
59
|
-
}
|
|
60
|
-
}
|