@prismicio/vue 5.3.0-canary.5d9ea4c → 5.3.0-canary.87748cc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PrismicImage.vue.d.cts +30 -58
- package/dist/PrismicImage.vue.d.cts.map +1 -1
- package/dist/PrismicLink.vue.d.cts +65 -137
- package/dist/PrismicLink.vue.d.cts.map +1 -1
- package/dist/PrismicRichText/PrismicRichText.vue.d.cts +25 -53
- package/dist/PrismicRichText/PrismicRichText.vue.d.cts.map +1 -1
- package/dist/PrismicRichText/types.d.cts +18 -5
- package/dist/PrismicRichText/types.d.cts.map +1 -1
- package/dist/PrismicTable/PrismicTable.vue.d.cts +10 -10
- package/dist/PrismicTable/PrismicTable.vue.d.cts.map +1 -1
- package/dist/PrismicTable/types.d.cts +8 -8
- package/dist/PrismicTable/types.d.cts.map +1 -1
- package/dist/PrismicText.vue.d.cts +3 -13
- package/dist/PrismicText.vue.d.cts.map +1 -1
- package/dist/SliceZone/SliceZone.vue.d.cts +5 -24
- package/dist/SliceZone/SliceZone.vue.d.cts.map +1 -1
- package/dist/index.cjs +3 -10
- package/dist/index.d.cts +9 -13
- package/dist/index.d.ts +11 -15
- package/dist/index.js +3 -6
- package/dist/package.cjs +1 -1
- package/dist/package.cjs.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/dist/src/PrismicImage.cjs.map +1 -1
- package/dist/src/PrismicImage.js.map +1 -1
- package/dist/src/PrismicImage.vue.d.ts +26 -54
- package/dist/src/PrismicImage.vue.d.ts.map +1 -1
- package/dist/src/PrismicImage.vue_vue_type_script_setup_true_lang.cjs +2 -4
- package/dist/src/PrismicImage.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/src/PrismicImage.vue_vue_type_script_setup_true_lang.js +2 -4
- package/dist/src/PrismicImage.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/PrismicLink.cjs.map +1 -1
- package/dist/src/PrismicLink.js.map +1 -1
- package/dist/src/PrismicLink.vue.d.ts +61 -133
- package/dist/src/PrismicLink.vue.d.ts.map +1 -1
- package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.cjs +3 -6
- package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.js +3 -6
- package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichText.cjs.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichText.js.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichText.vue.d.ts +25 -53
- package/dist/src/PrismicRichText/PrismicRichText.vue.d.ts.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs +41 -57
- package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.js +42 -58
- package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.cjs.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.js.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.cjs +53 -33
- package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.js +54 -34
- package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichTextSerialize.cjs.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichTextSerialize.js.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.cjs +9 -29
- package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.js +10 -30
- package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/PrismicRichText/types.d.ts +18 -5
- package/dist/src/PrismicRichText/types.d.ts.map +1 -1
- package/dist/src/PrismicTable/PrismicTable.cjs.map +1 -1
- package/dist/src/PrismicTable/PrismicTable.js.map +1 -1
- package/dist/src/PrismicTable/PrismicTable.vue.d.ts +13 -13
- package/dist/src/PrismicTable/PrismicTable.vue.d.ts.map +1 -1
- package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs +47 -19
- package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.js +48 -20
- package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/PrismicTable/PrismicTableDefaultComponents.cjs +36 -18
- package/dist/src/PrismicTable/PrismicTableDefaultComponents.cjs.map +1 -1
- package/dist/src/PrismicTable/PrismicTableDefaultComponents.js +36 -18
- package/dist/src/PrismicTable/PrismicTableDefaultComponents.js.map +1 -1
- package/dist/src/PrismicTable/PrismicTableRow.cjs.map +1 -1
- package/dist/src/PrismicTable/PrismicTableRow.js.map +1 -1
- package/dist/src/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.cjs +13 -10
- package/dist/src/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/src/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.js +14 -11
- package/dist/src/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/PrismicTable/types.d.ts +8 -8
- package/dist/src/PrismicTable/types.d.ts.map +1 -1
- package/dist/src/PrismicText.cjs.map +1 -1
- package/dist/src/PrismicText.js.map +1 -1
- package/dist/src/PrismicText.vue.d.ts +1 -11
- package/dist/src/PrismicText.vue.d.ts.map +1 -1
- package/dist/src/PrismicText.vue_vue_type_script_setup_true_lang.cjs +1 -12
- package/dist/src/PrismicText.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/src/PrismicText.vue_vue_type_script_setup_true_lang.js +3 -14
- package/dist/src/PrismicText.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/SliceZone/SliceZone.cjs.map +1 -1
- package/dist/src/SliceZone/SliceZone.js.map +1 -1
- package/dist/src/SliceZone/SliceZone.vue.d.ts +5 -24
- package/dist/src/SliceZone/SliceZone.vue.d.ts.map +1 -1
- package/dist/src/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.cjs +5 -17
- package/dist/src/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
- package/dist/src/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.js +6 -18
- package/dist/src/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/types.cjs +9 -0
- package/dist/src/types.cjs.map +1 -0
- package/dist/src/types.d.ts +3 -352
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +8 -0
- package/dist/src/types.js.map +1 -0
- package/dist/types.d.cts +3 -352
- package/dist/types.d.cts.map +1 -1
- package/package.json +6 -5
- package/src/PrismicImage.vue +10 -27
- package/src/PrismicLink.vue +18 -43
- package/src/PrismicRichText/PrismicRichText.vue +68 -118
- package/src/PrismicRichText/PrismicRichTextDefaultComponent.vue +61 -19
- package/src/PrismicRichText/PrismicRichTextSerialize.vue +5 -30
- package/src/PrismicRichText/types.ts +33 -14
- package/src/PrismicTable/PrismicTable.vue +50 -23
- package/src/PrismicTable/PrismicTableDefaultComponents.ts +45 -20
- package/src/PrismicTable/PrismicTableRow.vue +17 -24
- package/src/PrismicTable/types.ts +28 -15
- package/src/PrismicText.vue +3 -18
- package/src/SliceZone/SliceZone.vue +12 -41
- package/src/index.ts +13 -21
- package/src/types.ts +30 -438
- package/dist/PrismicEmbed.vue.d.cts +0 -25
- package/dist/PrismicEmbed.vue.d.cts.map +0 -1
- package/dist/createPrismic.d.cts +0 -29
- package/dist/createPrismic.d.cts.map +0 -1
- package/dist/src/PrismicEmbed.cjs +0 -8
- package/dist/src/PrismicEmbed.cjs.map +0 -1
- package/dist/src/PrismicEmbed.js +0 -8
- package/dist/src/PrismicEmbed.js.map +0 -1
- package/dist/src/PrismicEmbed.vue.d.ts +0 -25
- package/dist/src/PrismicEmbed.vue.d.ts.map +0 -1
- package/dist/src/PrismicEmbed.vue_vue_type_script_setup_true_lang.cjs +0 -42
- package/dist/src/PrismicEmbed.vue_vue_type_script_setup_true_lang.cjs.map +0 -1
- package/dist/src/PrismicEmbed.vue_vue_type_script_setup_true_lang.js +0 -42
- package/dist/src/PrismicEmbed.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/src/PrismicRichText/DeprecatedPrismicRichText.cjs +0 -8
- package/dist/src/PrismicRichText/DeprecatedPrismicRichText.cjs.map +0 -1
- package/dist/src/PrismicRichText/DeprecatedPrismicRichText.js +0 -8
- package/dist/src/PrismicRichText/DeprecatedPrismicRichText.js.map +0 -1
- package/dist/src/PrismicRichText/DeprecatedPrismicRichText.vue_vue_type_script_setup_true_lang.cjs +0 -92
- package/dist/src/PrismicRichText/DeprecatedPrismicRichText.vue_vue_type_script_setup_true_lang.cjs.map +0 -1
- package/dist/src/PrismicRichText/DeprecatedPrismicRichText.vue_vue_type_script_setup_true_lang.js +0 -92
- package/dist/src/PrismicRichText/DeprecatedPrismicRichText.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/src/createPrismic.cjs +0 -85
- package/dist/src/createPrismic.cjs.map +0 -1
- package/dist/src/createPrismic.d.ts +0 -29
- package/dist/src/createPrismic.d.ts.map +0 -1
- package/dist/src/createPrismic.js +0 -85
- package/dist/src/createPrismic.js.map +0 -1
- package/dist/src/lib/Wrapper.cjs +0 -8
- package/dist/src/lib/Wrapper.cjs.map +0 -1
- package/dist/src/lib/Wrapper.js +0 -8
- package/dist/src/lib/Wrapper.js.map +0 -1
- package/dist/src/lib/Wrapper.vue_vue_type_script_setup_true_lang.cjs +0 -22
- package/dist/src/lib/Wrapper.vue_vue_type_script_setup_true_lang.cjs.map +0 -1
- package/dist/src/lib/Wrapper.vue_vue_type_script_setup_true_lang.js +0 -22
- package/dist/src/lib/Wrapper.vue_vue_type_script_setup_true_lang.js.map +0 -1
- package/dist/src/usePrismic.cjs +0 -38
- package/dist/src/usePrismic.cjs.map +0 -1
- package/dist/src/usePrismic.d.ts +0 -36
- package/dist/src/usePrismic.d.ts.map +0 -1
- package/dist/src/usePrismic.js +0 -37
- package/dist/src/usePrismic.js.map +0 -1
- package/dist/usePrismic.d.cts +0 -36
- package/dist/usePrismic.d.cts.map +0 -1
- package/src/PrismicEmbed.vue +0 -42
- package/src/PrismicRichText/DeprecatedPrismicRichText.vue +0 -146
- package/src/createPrismic.ts +0 -154
- package/src/lib/Wrapper.vue +0 -22
- package/src/usePrismic.ts +0 -36
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue11 from "vue";
|
|
2
2
|
import { ImageField, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet } from "@prismicio/client";
|
|
3
3
|
|
|
4
4
|
//#region src/PrismicImage.vue.d.ts
|
|
@@ -7,9 +7,7 @@ import { ImageField, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet }
|
|
|
7
7
|
* Props for `<PrismicImage />`.
|
|
8
8
|
*/
|
|
9
9
|
type PrismicImageProps = {
|
|
10
|
-
/**
|
|
11
|
-
* The Prismic image field or thumbnail to render.
|
|
12
|
-
*/
|
|
10
|
+
/** The Prismic image field or thumbnail to render. */
|
|
13
11
|
field: ImageField | ImageField<string>;
|
|
14
12
|
/**
|
|
15
13
|
* An object of Imgix URL API parameters to transform the image.
|
|
@@ -48,25 +46,19 @@ type PrismicImageProps = {
|
|
|
48
46
|
height?: number | string;
|
|
49
47
|
} & ({
|
|
50
48
|
/**
|
|
51
|
-
* Widths used to build a `srcset` value for the image
|
|
49
|
+
* Widths (in pixels) used to build a `srcset` value for the image
|
|
50
|
+
* field.
|
|
52
51
|
*
|
|
53
|
-
* If
|
|
54
|
-
*
|
|
55
|
-
* 3840.
|
|
52
|
+
* If omitted or set to `"defaults"`, the following widths will be used:
|
|
53
|
+
* 640, 750, 828, 1080, 1200, 1920, 2048, 3840.
|
|
56
54
|
*
|
|
57
|
-
* If the image field contains responsive views, each responsive view
|
|
58
|
-
* be used as a width in the resulting `srcset` by passing
|
|
59
|
-
* as the `widths` prop.
|
|
55
|
+
* If the image field contains responsive views, each responsive view
|
|
56
|
+
* can be used as a width in the resulting `srcset` by passing
|
|
57
|
+
* `"thumbnails"` as the `widths` prop.
|
|
60
58
|
*/
|
|
61
59
|
widths?: NonNullable<Parameters<typeof asImageWidthSrcSet>[1]>["widths"] | "thumbnails" | "defaults";
|
|
62
|
-
/**
|
|
63
|
-
* Not used when the `widths` prop is used.
|
|
64
|
-
*/
|
|
65
60
|
pixelDensities?: never;
|
|
66
61
|
} | {
|
|
67
|
-
/**
|
|
68
|
-
* Not used when the `widths` prop is used.
|
|
69
|
-
*/
|
|
70
62
|
widths?: never;
|
|
71
63
|
/**
|
|
72
64
|
* Pixel densities used to build a `srcset` value for the image field.
|
|
@@ -76,10 +68,8 @@ type PrismicImageProps = {
|
|
|
76
68
|
*/
|
|
77
69
|
pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
|
|
78
70
|
});
|
|
79
|
-
declare const __VLS_export:
|
|
80
|
-
/**
|
|
81
|
-
* The Prismic image field or thumbnail to render.
|
|
82
|
-
*/
|
|
71
|
+
declare const __VLS_export: vue11.DefineComponent<({
|
|
72
|
+
/** The Prismic image field or thumbnail to render. */
|
|
83
73
|
field: ImageField | ImageField<string>;
|
|
84
74
|
/**
|
|
85
75
|
* An object of Imgix URL API parameters to transform the image.
|
|
@@ -118,25 +108,20 @@ declare const __VLS_export: vue21.DefineComponent<({
|
|
|
118
108
|
height?: number | string;
|
|
119
109
|
} & {
|
|
120
110
|
/**
|
|
121
|
-
* Widths used to build a `srcset` value for the image
|
|
111
|
+
* Widths (in pixels) used to build a `srcset` value for the image
|
|
112
|
+
* field.
|
|
122
113
|
*
|
|
123
|
-
* If
|
|
124
|
-
*
|
|
125
|
-
* 3840.
|
|
114
|
+
* If omitted or set to `"defaults"`, the following widths will be used:
|
|
115
|
+
* 640, 750, 828, 1080, 1200, 1920, 2048, 3840.
|
|
126
116
|
*
|
|
127
|
-
* If the image field contains responsive views, each responsive view
|
|
128
|
-
* be used as a width in the resulting `srcset` by passing
|
|
129
|
-
* as the `widths` prop.
|
|
117
|
+
* If the image field contains responsive views, each responsive view
|
|
118
|
+
* can be used as a width in the resulting `srcset` by passing
|
|
119
|
+
* `"thumbnails"` as the `widths` prop.
|
|
130
120
|
*/
|
|
131
121
|
widths?: NonNullable<Parameters<typeof asImageWidthSrcSet>[1]>["widths"] | "thumbnails" | "defaults";
|
|
132
|
-
/**
|
|
133
|
-
* Not used when the `widths` prop is used.
|
|
134
|
-
*/
|
|
135
122
|
pixelDensities?: never;
|
|
136
123
|
}) | ({
|
|
137
|
-
/**
|
|
138
|
-
* The Prismic image field or thumbnail to render.
|
|
139
|
-
*/
|
|
124
|
+
/** The Prismic image field or thumbnail to render. */
|
|
140
125
|
field: ImageField | ImageField<string>;
|
|
141
126
|
/**
|
|
142
127
|
* An object of Imgix URL API parameters to transform the image.
|
|
@@ -174,9 +159,6 @@ declare const __VLS_export: vue21.DefineComponent<({
|
|
|
174
159
|
*/
|
|
175
160
|
height?: number | string;
|
|
176
161
|
} & {
|
|
177
|
-
/**
|
|
178
|
-
* Not used when the `widths` prop is used.
|
|
179
|
-
*/
|
|
180
162
|
widths?: never;
|
|
181
163
|
/**
|
|
182
164
|
* Pixel densities used to build a `srcset` value for the image field.
|
|
@@ -185,10 +167,8 @@ declare const __VLS_export: vue21.DefineComponent<({
|
|
|
185
167
|
* densities will be used: 1, 2, 3.
|
|
186
168
|
*/
|
|
187
169
|
pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
|
|
188
|
-
}), {}, {}, {}, {},
|
|
189
|
-
/**
|
|
190
|
-
* The Prismic image field or thumbnail to render.
|
|
191
|
-
*/
|
|
170
|
+
}), {}, {}, {}, {}, vue11.ComponentOptionsMixin, vue11.ComponentOptionsMixin, {}, string, vue11.PublicProps, Readonly<({
|
|
171
|
+
/** The Prismic image field or thumbnail to render. */
|
|
192
172
|
field: ImageField | ImageField<string>;
|
|
193
173
|
/**
|
|
194
174
|
* An object of Imgix URL API parameters to transform the image.
|
|
@@ -227,25 +207,20 @@ declare const __VLS_export: vue21.DefineComponent<({
|
|
|
227
207
|
height?: number | string;
|
|
228
208
|
} & {
|
|
229
209
|
/**
|
|
230
|
-
* Widths used to build a `srcset` value for the image
|
|
210
|
+
* Widths (in pixels) used to build a `srcset` value for the image
|
|
211
|
+
* field.
|
|
231
212
|
*
|
|
232
|
-
* If
|
|
233
|
-
*
|
|
234
|
-
* 3840.
|
|
213
|
+
* If omitted or set to `"defaults"`, the following widths will be used:
|
|
214
|
+
* 640, 750, 828, 1080, 1200, 1920, 2048, 3840.
|
|
235
215
|
*
|
|
236
|
-
* If the image field contains responsive views, each responsive view
|
|
237
|
-
* be used as a width in the resulting `srcset` by passing
|
|
238
|
-
* as the `widths` prop.
|
|
216
|
+
* If the image field contains responsive views, each responsive view
|
|
217
|
+
* can be used as a width in the resulting `srcset` by passing
|
|
218
|
+
* `"thumbnails"` as the `widths` prop.
|
|
239
219
|
*/
|
|
240
220
|
widths?: NonNullable<Parameters<typeof asImageWidthSrcSet>[1]>["widths"] | "thumbnails" | "defaults";
|
|
241
|
-
/**
|
|
242
|
-
* Not used when the `widths` prop is used.
|
|
243
|
-
*/
|
|
244
221
|
pixelDensities?: never;
|
|
245
222
|
}) | ({
|
|
246
|
-
/**
|
|
247
|
-
* The Prismic image field or thumbnail to render.
|
|
248
|
-
*/
|
|
223
|
+
/** The Prismic image field or thumbnail to render. */
|
|
249
224
|
field: ImageField | ImageField<string>;
|
|
250
225
|
/**
|
|
251
226
|
* An object of Imgix URL API parameters to transform the image.
|
|
@@ -283,9 +258,6 @@ declare const __VLS_export: vue21.DefineComponent<({
|
|
|
283
258
|
*/
|
|
284
259
|
height?: number | string;
|
|
285
260
|
} & {
|
|
286
|
-
/**
|
|
287
|
-
* Not used when the `widths` prop is used.
|
|
288
|
-
*/
|
|
289
261
|
widths?: never;
|
|
290
262
|
/**
|
|
291
263
|
* Pixel densities used to build a `srcset` value for the image field.
|
|
@@ -294,7 +266,7 @@ declare const __VLS_export: vue21.DefineComponent<({
|
|
|
294
266
|
* densities will be used: 1, 2, 3.
|
|
295
267
|
*/
|
|
296
268
|
pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
|
|
297
|
-
})> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
269
|
+
})> & Readonly<{}>, {}, {}, {}, {}, string, vue11.ComponentProvideOptions, false, {}, any>;
|
|
298
270
|
declare const _default: typeof __VLS_export;
|
|
299
271
|
//#endregion
|
|
300
272
|
export { PrismicImageProps, _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicImage.vue.d.cts","names":[],"sources":["../src/PrismicImage.vue"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"PrismicImage.vue.d.cts","names":[],"sources":["../src/PrismicImage.vue"],"sourcesContent":[],"mappings":";;;;;;;AAoNA;AAEQ,KAFI,iBAAA,GAEJ;EAAa;EAOY,KAAA,EAPzB,UAOyB,GAPZ,UAOY,CAAA,MAAA,CAAA;EAAlB;;;;;EA+DT,WAAA,CAAA,EA/DS,UA+DT,CAAA,OA/D2B,UA+D3B,CAAA,CAAA,CAAA,CAAA;EADA;;AAKL;;;;EAnEc,GAAA,CAAA,EAAA,EAAA;EAgDqB;;;;;;;EAeZ,WAAA,CAAA,EAAA,EAAA;EAAlB;;;;;;EAtEe,KAAA,CAAA,EAAA,MAAA,GAAA,MAAA;EAOY;;;;;;EAPZ,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA;CAOY,GAAA,CAAA;EAAlB;;;;;;;;;AA+LG;;WA/IZ,YAAY,kBAAkB;;;;;;;;;;kBAc9B,YACA,kBAAkB;;cAgIlB,oBAAY;;SAtMV,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgD3B,YAAY,kBAAkB;;;;SAvD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8D3B,YACA,kBAAkB;oBADP,KAAA,CAAA,qBAAA;;SArET,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgD3B,YAAY,kBAAkB;;;;SAvD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8D3B,YACA,kBAAkB;;cAgIN,iBAGU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentOrTagName } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue16 from "vue";
|
|
3
3
|
import { AsLinkAttrsConfig, LinkField, LinkResolverFunction, PrismicDocument } from "@prismicio/client";
|
|
4
4
|
|
|
5
5
|
//#region src/PrismicLink.vue.d.ts
|
|
@@ -9,58 +9,42 @@ import { AsLinkAttrsConfig, LinkField, LinkResolverFunction, PrismicDocument } f
|
|
|
9
9
|
*/
|
|
10
10
|
type PrismicLinkProps = {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* resolver parameter with `@prismicio/client`.
|
|
12
|
+
* The link resolver used to resolve links.
|
|
14
13
|
*
|
|
15
|
-
* @
|
|
14
|
+
* @remarks
|
|
15
|
+
* If your app uses route resolvers when querying for your Prismic
|
|
16
|
+
* repository's content, a link resolver does not need to be provided.
|
|
16
17
|
*
|
|
17
|
-
* @see
|
|
18
|
+
* @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}
|
|
18
19
|
*/
|
|
19
20
|
linkResolver?: LinkResolverFunction;
|
|
20
21
|
/**
|
|
21
22
|
* The `rel` attribute for the link. By default, `"noreferrer"` is provided if
|
|
22
23
|
* the link's URL is external. This prop can be provided a function to use the
|
|
23
24
|
* link's metadata to determine the `rel` value.
|
|
24
|
-
*
|
|
25
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured.
|
|
26
25
|
*/
|
|
27
26
|
rel?: string | AsLinkAttrsConfig["rel"];
|
|
28
27
|
/**
|
|
29
|
-
*
|
|
28
|
+
* The component rendered for internal URLs.
|
|
30
29
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* `target`, and `rel` attributes).
|
|
34
|
-
* @remarks
|
|
35
|
-
* Components will be rendered using Vue Router {@link RouterLink} interface
|
|
36
|
-
* (`to` props).
|
|
30
|
+
* If your app uses a client-side router that requires a special Link
|
|
31
|
+
* component, provide the Link component to this prop.
|
|
37
32
|
*
|
|
38
|
-
* @defaultValue
|
|
33
|
+
* @defaultValue `<RouterLink>`
|
|
39
34
|
*/
|
|
40
35
|
internalComponent?: ComponentOrTagName;
|
|
41
36
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* @remarks
|
|
45
|
-
* HTML tag names will be rendered using the anchor tag interface (`href`,
|
|
46
|
-
* `target`, and `rel` attributes).
|
|
47
|
-
* @remarks
|
|
48
|
-
* Components will be rendered using Vue Router {@link RouterLink} interface
|
|
49
|
-
* (`to` props).
|
|
37
|
+
* The component rendered for external URLs.
|
|
50
38
|
*
|
|
51
|
-
* @defaultValue
|
|
39
|
+
* @defaultValue `<a>`
|
|
52
40
|
*/
|
|
53
41
|
externalComponent?: ComponentOrTagName;
|
|
54
42
|
} & ({
|
|
55
|
-
/**
|
|
56
|
-
* The Prismic link field to render.
|
|
57
|
-
*/
|
|
43
|
+
/** The Prismic link field to render. */
|
|
58
44
|
field: LinkField;
|
|
59
45
|
document?: never;
|
|
60
46
|
} | {
|
|
61
|
-
/**
|
|
62
|
-
* The Prismic document to render as a link.
|
|
63
|
-
*/
|
|
47
|
+
/** The Prismic document to render as a link. */
|
|
64
48
|
document: PrismicDocument;
|
|
65
49
|
field?: never;
|
|
66
50
|
});
|
|
@@ -68,207 +52,151 @@ declare var __VLS_8: {};
|
|
|
68
52
|
type __VLS_Slots = {} & {
|
|
69
53
|
default?: (props: typeof __VLS_8) => any;
|
|
70
54
|
};
|
|
71
|
-
declare const __VLS_base:
|
|
55
|
+
declare const __VLS_base: vue16.DefineComponent<({
|
|
72
56
|
/**
|
|
73
|
-
*
|
|
74
|
-
* resolver parameter with `@prismicio/client`.
|
|
57
|
+
* The link resolver used to resolve links.
|
|
75
58
|
*
|
|
76
|
-
* @
|
|
59
|
+
* @remarks
|
|
60
|
+
* If your app uses route resolvers when querying for your Prismic
|
|
61
|
+
* repository's content, a link resolver does not need to be provided.
|
|
77
62
|
*
|
|
78
|
-
* @see
|
|
63
|
+
* @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}
|
|
79
64
|
*/
|
|
80
65
|
linkResolver?: LinkResolverFunction;
|
|
81
66
|
/**
|
|
82
67
|
* The `rel` attribute for the link. By default, `"noreferrer"` is provided if
|
|
83
68
|
* the link's URL is external. This prop can be provided a function to use the
|
|
84
69
|
* link's metadata to determine the `rel` value.
|
|
85
|
-
*
|
|
86
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured.
|
|
87
70
|
*/
|
|
88
71
|
rel?: string | AsLinkAttrsConfig["rel"];
|
|
89
72
|
/**
|
|
90
|
-
*
|
|
73
|
+
* The component rendered for internal URLs.
|
|
91
74
|
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* `target`, and `rel` attributes).
|
|
95
|
-
* @remarks
|
|
96
|
-
* Components will be rendered using Vue Router {@link RouterLink} interface
|
|
97
|
-
* (`to` props).
|
|
75
|
+
* If your app uses a client-side router that requires a special Link
|
|
76
|
+
* component, provide the Link component to this prop.
|
|
98
77
|
*
|
|
99
|
-
* @defaultValue
|
|
78
|
+
* @defaultValue `<RouterLink>`
|
|
100
79
|
*/
|
|
101
80
|
internalComponent?: ComponentOrTagName;
|
|
102
81
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* @remarks
|
|
106
|
-
* HTML tag names will be rendered using the anchor tag interface (`href`,
|
|
107
|
-
* `target`, and `rel` attributes).
|
|
108
|
-
* @remarks
|
|
109
|
-
* Components will be rendered using Vue Router {@link RouterLink} interface
|
|
110
|
-
* (`to` props).
|
|
82
|
+
* The component rendered for external URLs.
|
|
111
83
|
*
|
|
112
|
-
* @defaultValue
|
|
84
|
+
* @defaultValue `<a>`
|
|
113
85
|
*/
|
|
114
86
|
externalComponent?: ComponentOrTagName;
|
|
115
87
|
} & {
|
|
116
|
-
/**
|
|
117
|
-
* The Prismic link field to render.
|
|
118
|
-
*/
|
|
88
|
+
/** The Prismic link field to render. */
|
|
119
89
|
field: LinkField;
|
|
120
90
|
document?: never;
|
|
121
91
|
}) | ({
|
|
122
92
|
/**
|
|
123
|
-
*
|
|
124
|
-
* resolver parameter with `@prismicio/client`.
|
|
93
|
+
* The link resolver used to resolve links.
|
|
125
94
|
*
|
|
126
|
-
* @
|
|
95
|
+
* @remarks
|
|
96
|
+
* If your app uses route resolvers when querying for your Prismic
|
|
97
|
+
* repository's content, a link resolver does not need to be provided.
|
|
127
98
|
*
|
|
128
|
-
* @see
|
|
99
|
+
* @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}
|
|
129
100
|
*/
|
|
130
101
|
linkResolver?: LinkResolverFunction;
|
|
131
102
|
/**
|
|
132
103
|
* The `rel` attribute for the link. By default, `"noreferrer"` is provided if
|
|
133
104
|
* the link's URL is external. This prop can be provided a function to use the
|
|
134
105
|
* link's metadata to determine the `rel` value.
|
|
135
|
-
*
|
|
136
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured.
|
|
137
106
|
*/
|
|
138
107
|
rel?: string | AsLinkAttrsConfig["rel"];
|
|
139
108
|
/**
|
|
140
|
-
*
|
|
109
|
+
* The component rendered for internal URLs.
|
|
141
110
|
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* `target`, and `rel` attributes).
|
|
145
|
-
* @remarks
|
|
146
|
-
* Components will be rendered using Vue Router {@link RouterLink} interface
|
|
147
|
-
* (`to` props).
|
|
111
|
+
* If your app uses a client-side router that requires a special Link
|
|
112
|
+
* component, provide the Link component to this prop.
|
|
148
113
|
*
|
|
149
|
-
* @defaultValue
|
|
114
|
+
* @defaultValue `<RouterLink>`
|
|
150
115
|
*/
|
|
151
116
|
internalComponent?: ComponentOrTagName;
|
|
152
117
|
/**
|
|
153
|
-
*
|
|
118
|
+
* The component rendered for external URLs.
|
|
154
119
|
*
|
|
155
|
-
* @
|
|
156
|
-
* HTML tag names will be rendered using the anchor tag interface (`href`,
|
|
157
|
-
* `target`, and `rel` attributes).
|
|
158
|
-
* @remarks
|
|
159
|
-
* Components will be rendered using Vue Router {@link RouterLink} interface
|
|
160
|
-
* (`to` props).
|
|
161
|
-
*
|
|
162
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured, `"a"` otherwise.
|
|
120
|
+
* @defaultValue `<a>`
|
|
163
121
|
*/
|
|
164
122
|
externalComponent?: ComponentOrTagName;
|
|
165
123
|
} & {
|
|
166
|
-
/**
|
|
167
|
-
* The Prismic document to render as a link.
|
|
168
|
-
*/
|
|
124
|
+
/** The Prismic document to render as a link. */
|
|
169
125
|
document: PrismicDocument;
|
|
170
126
|
field?: never;
|
|
171
|
-
}), {}, {}, {}, {},
|
|
127
|
+
}), {}, {}, {}, {}, vue16.ComponentOptionsMixin, vue16.ComponentOptionsMixin, {}, string, vue16.PublicProps, Readonly<({
|
|
172
128
|
/**
|
|
173
|
-
*
|
|
174
|
-
* resolver parameter with `@prismicio/client`.
|
|
129
|
+
* The link resolver used to resolve links.
|
|
175
130
|
*
|
|
176
|
-
* @
|
|
131
|
+
* @remarks
|
|
132
|
+
* If your app uses route resolvers when querying for your Prismic
|
|
133
|
+
* repository's content, a link resolver does not need to be provided.
|
|
177
134
|
*
|
|
178
|
-
* @see
|
|
135
|
+
* @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}
|
|
179
136
|
*/
|
|
180
137
|
linkResolver?: LinkResolverFunction;
|
|
181
138
|
/**
|
|
182
139
|
* The `rel` attribute for the link. By default, `"noreferrer"` is provided if
|
|
183
140
|
* the link's URL is external. This prop can be provided a function to use the
|
|
184
141
|
* link's metadata to determine the `rel` value.
|
|
185
|
-
*
|
|
186
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured.
|
|
187
142
|
*/
|
|
188
143
|
rel?: string | AsLinkAttrsConfig["rel"];
|
|
189
144
|
/**
|
|
190
|
-
*
|
|
145
|
+
* The component rendered for internal URLs.
|
|
191
146
|
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* `target`, and `rel` attributes).
|
|
195
|
-
* @remarks
|
|
196
|
-
* Components will be rendered using Vue Router {@link RouterLink} interface
|
|
197
|
-
* (`to` props).
|
|
147
|
+
* If your app uses a client-side router that requires a special Link
|
|
148
|
+
* component, provide the Link component to this prop.
|
|
198
149
|
*
|
|
199
|
-
* @defaultValue
|
|
150
|
+
* @defaultValue `<RouterLink>`
|
|
200
151
|
*/
|
|
201
152
|
internalComponent?: ComponentOrTagName;
|
|
202
153
|
/**
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
* @remarks
|
|
206
|
-
* HTML tag names will be rendered using the anchor tag interface (`href`,
|
|
207
|
-
* `target`, and `rel` attributes).
|
|
208
|
-
* @remarks
|
|
209
|
-
* Components will be rendered using Vue Router {@link RouterLink} interface
|
|
210
|
-
* (`to` props).
|
|
154
|
+
* The component rendered for external URLs.
|
|
211
155
|
*
|
|
212
|
-
* @defaultValue
|
|
156
|
+
* @defaultValue `<a>`
|
|
213
157
|
*/
|
|
214
158
|
externalComponent?: ComponentOrTagName;
|
|
215
159
|
} & {
|
|
216
|
-
/**
|
|
217
|
-
* The Prismic link field to render.
|
|
218
|
-
*/
|
|
160
|
+
/** The Prismic link field to render. */
|
|
219
161
|
field: LinkField;
|
|
220
162
|
document?: never;
|
|
221
163
|
}) | ({
|
|
222
164
|
/**
|
|
223
|
-
*
|
|
224
|
-
* resolver parameter with `@prismicio/client`.
|
|
165
|
+
* The link resolver used to resolve links.
|
|
225
166
|
*
|
|
226
|
-
* @
|
|
167
|
+
* @remarks
|
|
168
|
+
* If your app uses route resolvers when querying for your Prismic
|
|
169
|
+
* repository's content, a link resolver does not need to be provided.
|
|
227
170
|
*
|
|
228
|
-
* @see
|
|
171
|
+
* @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}
|
|
229
172
|
*/
|
|
230
173
|
linkResolver?: LinkResolverFunction;
|
|
231
174
|
/**
|
|
232
175
|
* The `rel` attribute for the link. By default, `"noreferrer"` is provided if
|
|
233
176
|
* the link's URL is external. This prop can be provided a function to use the
|
|
234
177
|
* link's metadata to determine the `rel` value.
|
|
235
|
-
*
|
|
236
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured.
|
|
237
178
|
*/
|
|
238
179
|
rel?: string | AsLinkAttrsConfig["rel"];
|
|
239
180
|
/**
|
|
240
|
-
*
|
|
181
|
+
* The component rendered for internal URLs.
|
|
241
182
|
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
* `target`, and `rel` attributes).
|
|
245
|
-
* @remarks
|
|
246
|
-
* Components will be rendered using Vue Router {@link RouterLink} interface
|
|
247
|
-
* (`to` props).
|
|
183
|
+
* If your app uses a client-side router that requires a special Link
|
|
184
|
+
* component, provide the Link component to this prop.
|
|
248
185
|
*
|
|
249
|
-
* @defaultValue
|
|
186
|
+
* @defaultValue `<RouterLink>`
|
|
250
187
|
*/
|
|
251
188
|
internalComponent?: ComponentOrTagName;
|
|
252
189
|
/**
|
|
253
|
-
*
|
|
190
|
+
* The component rendered for external URLs.
|
|
254
191
|
*
|
|
255
|
-
* @
|
|
256
|
-
* HTML tag names will be rendered using the anchor tag interface (`href`,
|
|
257
|
-
* `target`, and `rel` attributes).
|
|
258
|
-
* @remarks
|
|
259
|
-
* Components will be rendered using Vue Router {@link RouterLink} interface
|
|
260
|
-
* (`to` props).
|
|
261
|
-
*
|
|
262
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured, `"a"` otherwise.
|
|
192
|
+
* @defaultValue `<a>`
|
|
263
193
|
*/
|
|
264
194
|
externalComponent?: ComponentOrTagName;
|
|
265
195
|
} & {
|
|
266
|
-
/**
|
|
267
|
-
* The Prismic document to render as a link.
|
|
268
|
-
*/
|
|
196
|
+
/** The Prismic document to render as a link. */
|
|
269
197
|
document: PrismicDocument;
|
|
270
198
|
field?: never;
|
|
271
|
-
})> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
199
|
+
})> & Readonly<{}>, {}, {}, {}, {}, string, vue16.ComponentProvideOptions, false, {}, any>;
|
|
272
200
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
273
201
|
declare const _default: typeof __VLS_export;
|
|
274
202
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicLink.vue.d.cts","names":[],"sources":["../src/PrismicLink.vue"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"PrismicLink.vue.d.cts","names":[],"sources":["../src/PrismicLink.vue"],"sourcesContent":[],"mappings":";;;;;;;;AA8JA;AAUgB,KAVJ,gBAAA,GAUI;EAOA;;;;;;AA6Bf;AA0EqB;AAEc;EAhHpB,YAAA,CAAA,EAAA,oBAAA;EAOA;;;;;EAAA,GAAA,CAAA,EAAA,MAAA,GAAA,iBAAA,CAAA,KAAA,CAAA;EAUK;;;;;;;;EAAA,iBAAA,CAAA,EAAA,kBAAA;EAOA;;;;;EAAA,iBAAA,CAAA,EAAA,kBAAA;CASR,GAAA,CAAA;;SALH;;;EAyFM;EAGV,QAAA,EAvFO,eAuF6D;EAAxB,KAAA,CAAA,EAAA,KAAA;CAAY,CAAA;YAV1D,OAUuB,EAAA,CAAA,CAAA;KATtB,WAAA,GASqC,CAAA,CAAA,GAAA;EAAA,OAAA,CAAA,EAAA,CACF,KAAA,EAAA,OATX,OASD,EAAA,GAAY,GAAA;AAAxC,CAAA;cAJM,kBAAU;;;;;;;;;;iBArHA;;;;;;iBAOA;;;;;;;;;sBAUK;;;;;;sBAOA;;;SAIX;;;;;;;;;;;;iBA5BM;;;;;;iBAOA;;;;;;;;;sBAUK;;;;;;sBAOA;;;YASR;;oBAAe,KAAA,CAAA,qBAAA;;;;;;;;;;iBAjCZ;;;;;;iBAOA;;;;;;;;;sBAUK;;;;;;sBAOA;;;SAIX;;;;;;;;;;;;iBA5BM;;;;;;iBAOA;;;;;;;;;sBAUK;;;;;;sBAOA;;;YASR;;;cAuFP,cAAqB,uBAAuB,YAAY;cAApB,iBACd;KACvB,wBAAwB;;YAEnB"}
|
|
@@ -1,99 +1,71 @@
|
|
|
1
|
-
import { VueRichTextSerializer } from "./types.cjs";
|
|
2
1
|
import { ComponentOrTagName } from "../types.cjs";
|
|
2
|
+
import { VueRichTextSerializer } from "./types.cjs";
|
|
3
3
|
import * as vue0 from "vue";
|
|
4
4
|
import { PropType } from "vue";
|
|
5
|
-
import {
|
|
5
|
+
import { LinkResolverFunction, RichTextField } from "@prismicio/client";
|
|
6
6
|
|
|
7
7
|
//#region src/PrismicRichText/PrismicRichText.vue.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Props for `<PrismicRichText />`.
|
|
10
10
|
*/
|
|
11
11
|
type PrismicRichTextProps = {
|
|
12
|
-
/**
|
|
13
|
-
* The Prismic rich text or title field to render.
|
|
14
|
-
*/
|
|
12
|
+
/** The Prismic rich text field to render. */
|
|
15
13
|
field: RichTextField | null | undefined;
|
|
16
14
|
/**
|
|
17
|
-
* The
|
|
18
|
-
*
|
|
15
|
+
* The link resolver used to resolve links.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* If your app uses route resolvers when querying for your Prismic
|
|
19
|
+
* repository's content, a link resolver does not need to be provided.
|
|
20
|
+
*
|
|
21
|
+
* @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}
|
|
19
22
|
*/
|
|
20
|
-
|
|
23
|
+
linkResolver?: LinkResolverFunction;
|
|
21
24
|
/**
|
|
22
|
-
* An object that maps a rich text block type to a Vue component.
|
|
25
|
+
* An object that maps a rich text block type to a Vue component or a shorthand definition.
|
|
23
26
|
*
|
|
24
27
|
* @example
|
|
25
28
|
*
|
|
26
29
|
* ```javascript
|
|
27
30
|
* {
|
|
28
31
|
* heading1: Heading1,
|
|
32
|
+
* paragraph: { class: 'prose'},
|
|
33
|
+
* strong: { as: 'em', class: 'font-bold' },
|
|
29
34
|
* }
|
|
30
35
|
* ```
|
|
31
36
|
*/
|
|
32
37
|
components?: VueRichTextSerializer;
|
|
33
38
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @defaultValue The link resolver provided to `@prismicio/vue` plugin if configured.
|
|
38
|
-
*
|
|
39
|
-
* @see Link resolver documentation {@link https://prismic.io/docs/core-concepts/link-resolver-route-resolver#link-resolver}
|
|
40
|
-
*/
|
|
41
|
-
linkResolver?: LinkResolverFunction;
|
|
42
|
-
/**
|
|
43
|
-
* An HTML serializer to customize the way rich text fields are rendered.
|
|
44
|
-
*
|
|
45
|
-
* @deprecated Use `components` instead.
|
|
46
|
-
*
|
|
47
|
-
* @defaultValue The HTML serializer provided to `@prismicio/vue` plugin if configured.
|
|
48
|
-
*
|
|
49
|
-
* @see HTML serializer documentation {@link https://prismic.io/docs/core-concepts/html-serializer}
|
|
50
|
-
*/
|
|
51
|
-
serializer?: HTMLRichTextFunctionSerializer | HTMLRichTextMapSerializer;
|
|
52
|
-
/**
|
|
53
|
-
* An HTML tag name or a component used to wrap the output. `<PrismicText />`
|
|
54
|
-
* is not wrapped by default.
|
|
55
|
-
*
|
|
56
|
-
* @defaultValue `"template"` (no wrapper)
|
|
39
|
+
* The value to be rendered when the field is empty. If a fallback is not
|
|
40
|
+
* given, `null` will be rendered.
|
|
57
41
|
*/
|
|
58
|
-
|
|
42
|
+
fallback?: ComponentOrTagName;
|
|
59
43
|
};
|
|
60
44
|
declare const __VLS_export: vue0.DefineComponent<vue0.ExtractPropTypes<{
|
|
61
45
|
field: {
|
|
62
46
|
type: PropType<PrismicRichTextProps["field"]>;
|
|
63
47
|
};
|
|
64
|
-
fallback: {
|
|
65
|
-
type: PropType<PrismicRichTextProps["fallback"]>;
|
|
66
|
-
};
|
|
67
|
-
components: {
|
|
68
|
-
type: PropType<PrismicRichTextProps["components"]>;
|
|
69
|
-
};
|
|
70
48
|
linkResolver: {
|
|
71
49
|
type: PropType<PrismicRichTextProps["linkResolver"]>;
|
|
72
50
|
};
|
|
73
|
-
|
|
74
|
-
type: PropType<PrismicRichTextProps["
|
|
51
|
+
components: {
|
|
52
|
+
type: PropType<PrismicRichTextProps["components"]>;
|
|
75
53
|
};
|
|
76
|
-
|
|
77
|
-
type: PropType<PrismicRichTextProps["
|
|
54
|
+
fallback: {
|
|
55
|
+
type: PropType<PrismicRichTextProps["fallback"]>;
|
|
78
56
|
};
|
|
79
57
|
}>, {}, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<vue0.ExtractPropTypes<{
|
|
80
58
|
field: {
|
|
81
59
|
type: PropType<PrismicRichTextProps["field"]>;
|
|
82
60
|
};
|
|
83
|
-
fallback: {
|
|
84
|
-
type: PropType<PrismicRichTextProps["fallback"]>;
|
|
85
|
-
};
|
|
86
|
-
components: {
|
|
87
|
-
type: PropType<PrismicRichTextProps["components"]>;
|
|
88
|
-
};
|
|
89
61
|
linkResolver: {
|
|
90
62
|
type: PropType<PrismicRichTextProps["linkResolver"]>;
|
|
91
63
|
};
|
|
92
|
-
|
|
93
|
-
type: PropType<PrismicRichTextProps["
|
|
64
|
+
components: {
|
|
65
|
+
type: PropType<PrismicRichTextProps["components"]>;
|
|
94
66
|
};
|
|
95
|
-
|
|
96
|
-
type: PropType<PrismicRichTextProps["
|
|
67
|
+
fallback: {
|
|
68
|
+
type: PropType<PrismicRichTextProps["fallback"]>;
|
|
97
69
|
};
|
|
98
70
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, true, {}, any>;
|
|
99
71
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicRichText.vue.d.cts","names":[],"sources":["../../src/PrismicRichText/PrismicRichText.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"PrismicRichText.vue.d.cts","names":[],"sources":["../../src/PrismicRichText/PrismicRichText.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;AA6JY,KAAA,oBAAA,GAAoB;EAExB;EAWQ,KAAA,EAXR,aAWQ,GAAA,IAAA,GAAA,SAAA;EAeF;;;AAOb;;;;;;EAwHiB,YAAA,CAAA,EA9IF,oBA8IE;EAIf;;;;;;;;;;;;;EADmC,UAAA,CAAA,EAlIxB,qBAkIwB;EAAQ;;;;UAZ5B,CAAA,EAhHN,kBAgHM;CAAA;AAAA,cAAZ,YAkBsB,OAlBV,eAkBsB,CANM,IAAA,CAZ5B,gBAkBsB,CAAA;;UAfZ,SAAS;;;UAGjB,SAAS;;;UAGX,SAAS;;;UAGW,SACnC;;oBAbe,IAAA,CAAA,qBAAA,qEAY4B,IAAA,CAAA;;UATlB,SAAS;;;UAGjB,SAAS;;;UAGX,SAAS;;;UAGW,SACnC;;;cAbe,iBAkBU"}
|