@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.
Files changed (170) hide show
  1. package/dist/PrismicImage.vue.d.cts +30 -58
  2. package/dist/PrismicImage.vue.d.cts.map +1 -1
  3. package/dist/PrismicLink.vue.d.cts +65 -137
  4. package/dist/PrismicLink.vue.d.cts.map +1 -1
  5. package/dist/PrismicRichText/PrismicRichText.vue.d.cts +25 -53
  6. package/dist/PrismicRichText/PrismicRichText.vue.d.cts.map +1 -1
  7. package/dist/PrismicRichText/types.d.cts +18 -5
  8. package/dist/PrismicRichText/types.d.cts.map +1 -1
  9. package/dist/PrismicTable/PrismicTable.vue.d.cts +10 -10
  10. package/dist/PrismicTable/PrismicTable.vue.d.cts.map +1 -1
  11. package/dist/PrismicTable/types.d.cts +8 -8
  12. package/dist/PrismicTable/types.d.cts.map +1 -1
  13. package/dist/PrismicText.vue.d.cts +3 -13
  14. package/dist/PrismicText.vue.d.cts.map +1 -1
  15. package/dist/SliceZone/SliceZone.vue.d.cts +5 -24
  16. package/dist/SliceZone/SliceZone.vue.d.cts.map +1 -1
  17. package/dist/index.cjs +3 -10
  18. package/dist/index.d.cts +9 -13
  19. package/dist/index.d.ts +11 -15
  20. package/dist/index.js +3 -6
  21. package/dist/package.cjs +1 -1
  22. package/dist/package.cjs.map +1 -1
  23. package/dist/package.js +1 -1
  24. package/dist/package.js.map +1 -1
  25. package/dist/src/PrismicImage.cjs.map +1 -1
  26. package/dist/src/PrismicImage.js.map +1 -1
  27. package/dist/src/PrismicImage.vue.d.ts +26 -54
  28. package/dist/src/PrismicImage.vue.d.ts.map +1 -1
  29. package/dist/src/PrismicImage.vue_vue_type_script_setup_true_lang.cjs +2 -4
  30. package/dist/src/PrismicImage.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  31. package/dist/src/PrismicImage.vue_vue_type_script_setup_true_lang.js +2 -4
  32. package/dist/src/PrismicImage.vue_vue_type_script_setup_true_lang.js.map +1 -1
  33. package/dist/src/PrismicLink.cjs.map +1 -1
  34. package/dist/src/PrismicLink.js.map +1 -1
  35. package/dist/src/PrismicLink.vue.d.ts +61 -133
  36. package/dist/src/PrismicLink.vue.d.ts.map +1 -1
  37. package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.cjs +3 -6
  38. package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  39. package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.js +3 -6
  40. package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.js.map +1 -1
  41. package/dist/src/PrismicRichText/PrismicRichText.cjs.map +1 -1
  42. package/dist/src/PrismicRichText/PrismicRichText.js.map +1 -1
  43. package/dist/src/PrismicRichText/PrismicRichText.vue.d.ts +25 -53
  44. package/dist/src/PrismicRichText/PrismicRichText.vue.d.ts.map +1 -1
  45. package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs +41 -57
  46. package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  47. package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.js +42 -58
  48. package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.js.map +1 -1
  49. package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.cjs.map +1 -1
  50. package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.js.map +1 -1
  51. package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.cjs +53 -33
  52. package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  53. package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.js +54 -34
  54. package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.js.map +1 -1
  55. package/dist/src/PrismicRichText/PrismicRichTextSerialize.cjs.map +1 -1
  56. package/dist/src/PrismicRichText/PrismicRichTextSerialize.js.map +1 -1
  57. package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.cjs +9 -29
  58. package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  59. package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.js +10 -30
  60. package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.js.map +1 -1
  61. package/dist/src/PrismicRichText/types.d.ts +18 -5
  62. package/dist/src/PrismicRichText/types.d.ts.map +1 -1
  63. package/dist/src/PrismicTable/PrismicTable.cjs.map +1 -1
  64. package/dist/src/PrismicTable/PrismicTable.js.map +1 -1
  65. package/dist/src/PrismicTable/PrismicTable.vue.d.ts +13 -13
  66. package/dist/src/PrismicTable/PrismicTable.vue.d.ts.map +1 -1
  67. package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs +47 -19
  68. package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  69. package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.js +48 -20
  70. package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  71. package/dist/src/PrismicTable/PrismicTableDefaultComponents.cjs +36 -18
  72. package/dist/src/PrismicTable/PrismicTableDefaultComponents.cjs.map +1 -1
  73. package/dist/src/PrismicTable/PrismicTableDefaultComponents.js +36 -18
  74. package/dist/src/PrismicTable/PrismicTableDefaultComponents.js.map +1 -1
  75. package/dist/src/PrismicTable/PrismicTableRow.cjs.map +1 -1
  76. package/dist/src/PrismicTable/PrismicTableRow.js.map +1 -1
  77. package/dist/src/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.cjs +13 -10
  78. package/dist/src/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  79. package/dist/src/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.js +14 -11
  80. package/dist/src/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.js.map +1 -1
  81. package/dist/src/PrismicTable/types.d.ts +8 -8
  82. package/dist/src/PrismicTable/types.d.ts.map +1 -1
  83. package/dist/src/PrismicText.cjs.map +1 -1
  84. package/dist/src/PrismicText.js.map +1 -1
  85. package/dist/src/PrismicText.vue.d.ts +1 -11
  86. package/dist/src/PrismicText.vue.d.ts.map +1 -1
  87. package/dist/src/PrismicText.vue_vue_type_script_setup_true_lang.cjs +1 -12
  88. package/dist/src/PrismicText.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  89. package/dist/src/PrismicText.vue_vue_type_script_setup_true_lang.js +3 -14
  90. package/dist/src/PrismicText.vue_vue_type_script_setup_true_lang.js.map +1 -1
  91. package/dist/src/SliceZone/SliceZone.cjs.map +1 -1
  92. package/dist/src/SliceZone/SliceZone.js.map +1 -1
  93. package/dist/src/SliceZone/SliceZone.vue.d.ts +5 -24
  94. package/dist/src/SliceZone/SliceZone.vue.d.ts.map +1 -1
  95. package/dist/src/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.cjs +5 -17
  96. package/dist/src/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  97. package/dist/src/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.js +6 -18
  98. package/dist/src/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.js.map +1 -1
  99. package/dist/src/types.cjs +9 -0
  100. package/dist/src/types.cjs.map +1 -0
  101. package/dist/src/types.d.ts +3 -352
  102. package/dist/src/types.d.ts.map +1 -1
  103. package/dist/src/types.js +8 -0
  104. package/dist/src/types.js.map +1 -0
  105. package/dist/types.d.cts +3 -352
  106. package/dist/types.d.cts.map +1 -1
  107. package/package.json +6 -5
  108. package/src/PrismicImage.vue +10 -27
  109. package/src/PrismicLink.vue +18 -43
  110. package/src/PrismicRichText/PrismicRichText.vue +68 -118
  111. package/src/PrismicRichText/PrismicRichTextDefaultComponent.vue +61 -19
  112. package/src/PrismicRichText/PrismicRichTextSerialize.vue +5 -30
  113. package/src/PrismicRichText/types.ts +33 -14
  114. package/src/PrismicTable/PrismicTable.vue +50 -23
  115. package/src/PrismicTable/PrismicTableDefaultComponents.ts +45 -20
  116. package/src/PrismicTable/PrismicTableRow.vue +17 -24
  117. package/src/PrismicTable/types.ts +28 -15
  118. package/src/PrismicText.vue +3 -18
  119. package/src/SliceZone/SliceZone.vue +12 -41
  120. package/src/index.ts +13 -21
  121. package/src/types.ts +30 -438
  122. package/dist/PrismicEmbed.vue.d.cts +0 -25
  123. package/dist/PrismicEmbed.vue.d.cts.map +0 -1
  124. package/dist/createPrismic.d.cts +0 -29
  125. package/dist/createPrismic.d.cts.map +0 -1
  126. package/dist/src/PrismicEmbed.cjs +0 -8
  127. package/dist/src/PrismicEmbed.cjs.map +0 -1
  128. package/dist/src/PrismicEmbed.js +0 -8
  129. package/dist/src/PrismicEmbed.js.map +0 -1
  130. package/dist/src/PrismicEmbed.vue.d.ts +0 -25
  131. package/dist/src/PrismicEmbed.vue.d.ts.map +0 -1
  132. package/dist/src/PrismicEmbed.vue_vue_type_script_setup_true_lang.cjs +0 -42
  133. package/dist/src/PrismicEmbed.vue_vue_type_script_setup_true_lang.cjs.map +0 -1
  134. package/dist/src/PrismicEmbed.vue_vue_type_script_setup_true_lang.js +0 -42
  135. package/dist/src/PrismicEmbed.vue_vue_type_script_setup_true_lang.js.map +0 -1
  136. package/dist/src/PrismicRichText/DeprecatedPrismicRichText.cjs +0 -8
  137. package/dist/src/PrismicRichText/DeprecatedPrismicRichText.cjs.map +0 -1
  138. package/dist/src/PrismicRichText/DeprecatedPrismicRichText.js +0 -8
  139. package/dist/src/PrismicRichText/DeprecatedPrismicRichText.js.map +0 -1
  140. package/dist/src/PrismicRichText/DeprecatedPrismicRichText.vue_vue_type_script_setup_true_lang.cjs +0 -92
  141. package/dist/src/PrismicRichText/DeprecatedPrismicRichText.vue_vue_type_script_setup_true_lang.cjs.map +0 -1
  142. package/dist/src/PrismicRichText/DeprecatedPrismicRichText.vue_vue_type_script_setup_true_lang.js +0 -92
  143. package/dist/src/PrismicRichText/DeprecatedPrismicRichText.vue_vue_type_script_setup_true_lang.js.map +0 -1
  144. package/dist/src/createPrismic.cjs +0 -85
  145. package/dist/src/createPrismic.cjs.map +0 -1
  146. package/dist/src/createPrismic.d.ts +0 -29
  147. package/dist/src/createPrismic.d.ts.map +0 -1
  148. package/dist/src/createPrismic.js +0 -85
  149. package/dist/src/createPrismic.js.map +0 -1
  150. package/dist/src/lib/Wrapper.cjs +0 -8
  151. package/dist/src/lib/Wrapper.cjs.map +0 -1
  152. package/dist/src/lib/Wrapper.js +0 -8
  153. package/dist/src/lib/Wrapper.js.map +0 -1
  154. package/dist/src/lib/Wrapper.vue_vue_type_script_setup_true_lang.cjs +0 -22
  155. package/dist/src/lib/Wrapper.vue_vue_type_script_setup_true_lang.cjs.map +0 -1
  156. package/dist/src/lib/Wrapper.vue_vue_type_script_setup_true_lang.js +0 -22
  157. package/dist/src/lib/Wrapper.vue_vue_type_script_setup_true_lang.js.map +0 -1
  158. package/dist/src/usePrismic.cjs +0 -38
  159. package/dist/src/usePrismic.cjs.map +0 -1
  160. package/dist/src/usePrismic.d.ts +0 -36
  161. package/dist/src/usePrismic.d.ts.map +0 -1
  162. package/dist/src/usePrismic.js +0 -37
  163. package/dist/src/usePrismic.js.map +0 -1
  164. package/dist/usePrismic.d.cts +0 -36
  165. package/dist/usePrismic.d.cts.map +0 -1
  166. package/src/PrismicEmbed.vue +0 -42
  167. package/src/PrismicRichText/DeprecatedPrismicRichText.vue +0 -146
  168. package/src/createPrismic.ts +0 -154
  169. package/src/lib/Wrapper.vue +0 -22
  170. package/src/usePrismic.ts +0 -36
@@ -1,4 +1,4 @@
1
- import * as vue21 from "vue";
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 field.
49
+ * Widths (in pixels) used to build a `srcset` value for the image
50
+ * field.
52
51
  *
53
- * If a `widths` prop is not given or `"defaults"` is passed, the
54
- * following widths will be used: 640, 750, 828, 1080, 1200, 1920, 2048,
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 can
58
- * be used as a width in the resulting `srcset` by passing `"thumbnails"`
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: vue21.DefineComponent<({
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 field.
111
+ * Widths (in pixels) used to build a `srcset` value for the image
112
+ * field.
122
113
  *
123
- * If a `widths` prop is not given or `"defaults"` is passed, the
124
- * following widths will be used: 640, 750, 828, 1080, 1200, 1920, 2048,
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 can
128
- * be used as a width in the resulting `srcset` by passing `"thumbnails"`
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
- }), {}, {}, {}, {}, vue21.ComponentOptionsMixin, vue21.ComponentOptionsMixin, {}, string, vue21.PublicProps, Readonly<({
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 field.
210
+ * Widths (in pixels) used to build a `srcset` value for the image
211
+ * field.
231
212
  *
232
- * If a `widths` prop is not given or `"defaults"` is passed, the
233
- * following widths will be used: 640, 750, 828, 1080, 1200, 1920, 2048,
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 can
237
- * be used as a width in the resulting `srcset` by passing `"thumbnails"`
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, vue21.ComponentProvideOptions, false, {}, any>;
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":";;;;;;;AAuOA;AAIQ,KAJI,iBAAA,GAIJ;EAAa;;;EAuDe,KAAA,EAvD5B,UAuD4B,GAvDf,UAuDe,CAAA,MAAA,CAAA;EAAlB;;;;;EAoBD,WAAA,CAAA,EApEF,UAoEE,CAAA,OApEgB,UAoEhB,CAAA,CAAA,CAAA,CAAA;EAwIX;;;;;;EA5JY,GAAA,CAAA,EAAA,EAAA;EAAZ;;;;;;;EAoBA,WAAA,CAAA,EAAA,EAAA;EAAW;;;;;;EApEF,KAAA,CAAA,EAAA,MAAA,GAAA,MAAA;EAgDqB;;;;;;EAhDrB,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA;CAqES,GAAA,CAAA;EAAlB;;;;;;;AAuIY;;;;WA5JZ,YAAY,kBAAkB;;;;;;;;;;;;;;;;kBAoB9B,YACA,kBAAkB;;cAuIlB,oBAAY;;;;SAnNV,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgD3B,YAAY,kBAAkB;;;;;;;;;SAvD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoE3B,YACA,kBAAkB;oBADP,KAAA,CAAA,qBAAA;;;;SA3ET,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgD3B,YAAY,kBAAkB;;;;;;;;;SAvD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoE3B,YACA,kBAAkB;;cAuIN,iBAGU"}
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 vue26 from "vue";
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
- * A link resolver function used to resolve links when not using the route
13
- * resolver parameter with `@prismicio/client`.
12
+ * The link resolver used to resolve links.
14
13
  *
15
- * @defaultValue The link resolver provided to `@prismicio/vue` plugin if configured.
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 Link resolver documentation {@link https://prismic.io/docs/core-concepts/link-resolver-route-resolver#link-resolver}
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
- * An HTML tag name or a component used to render internal links.
28
+ * The component rendered for internal URLs.
30
29
  *
31
- * @remarks
32
- * HTML tag names will be rendered using the anchor tag interface (`href`,
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 The one provided to `@prismicio/vue` plugin if configured, {@link RouterLink} otherwise.
33
+ * @defaultValue `<RouterLink>`
39
34
  */
40
35
  internalComponent?: ComponentOrTagName;
41
36
  /**
42
- * An HTML tag name or a component used to render external links.
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 The one provided to `@prismicio/vue` plugin if configured, `"a"` otherwise.
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: vue26.DefineComponent<({
55
+ declare const __VLS_base: vue16.DefineComponent<({
72
56
  /**
73
- * A link resolver function used to resolve links when not using the route
74
- * resolver parameter with `@prismicio/client`.
57
+ * The link resolver used to resolve links.
75
58
  *
76
- * @defaultValue The link resolver provided to `@prismicio/vue` plugin if configured.
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 Link resolver documentation {@link https://prismic.io/docs/core-concepts/link-resolver-route-resolver#link-resolver}
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
- * An HTML tag name or a component used to render internal links.
73
+ * The component rendered for internal URLs.
91
74
  *
92
- * @remarks
93
- * HTML tag names will be rendered using the anchor tag interface (`href`,
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 The one provided to `@prismicio/vue` plugin if configured, {@link RouterLink} otherwise.
78
+ * @defaultValue `<RouterLink>`
100
79
  */
101
80
  internalComponent?: ComponentOrTagName;
102
81
  /**
103
- * An HTML tag name or a component used to render external links.
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 The one provided to `@prismicio/vue` plugin if configured, `"a"` otherwise.
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
- * A link resolver function used to resolve links when not using the route
124
- * resolver parameter with `@prismicio/client`.
93
+ * The link resolver used to resolve links.
125
94
  *
126
- * @defaultValue The link resolver provided to `@prismicio/vue` plugin if configured.
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 Link resolver documentation {@link https://prismic.io/docs/core-concepts/link-resolver-route-resolver#link-resolver}
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
- * An HTML tag name or a component used to render internal links.
109
+ * The component rendered for internal URLs.
141
110
  *
142
- * @remarks
143
- * HTML tag names will be rendered using the anchor tag interface (`href`,
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 The one provided to `@prismicio/vue` plugin if configured, {@link RouterLink} otherwise.
114
+ * @defaultValue `<RouterLink>`
150
115
  */
151
116
  internalComponent?: ComponentOrTagName;
152
117
  /**
153
- * An HTML tag name or a component used to render external links.
118
+ * The component rendered for external URLs.
154
119
  *
155
- * @remarks
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
- }), {}, {}, {}, {}, vue26.ComponentOptionsMixin, vue26.ComponentOptionsMixin, {}, string, vue26.PublicProps, Readonly<({
127
+ }), {}, {}, {}, {}, vue16.ComponentOptionsMixin, vue16.ComponentOptionsMixin, {}, string, vue16.PublicProps, Readonly<({
172
128
  /**
173
- * A link resolver function used to resolve links when not using the route
174
- * resolver parameter with `@prismicio/client`.
129
+ * The link resolver used to resolve links.
175
130
  *
176
- * @defaultValue The link resolver provided to `@prismicio/vue` plugin if configured.
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 Link resolver documentation {@link https://prismic.io/docs/core-concepts/link-resolver-route-resolver#link-resolver}
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
- * An HTML tag name or a component used to render internal links.
145
+ * The component rendered for internal URLs.
191
146
  *
192
- * @remarks
193
- * HTML tag names will be rendered using the anchor tag interface (`href`,
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 The one provided to `@prismicio/vue` plugin if configured, {@link RouterLink} otherwise.
150
+ * @defaultValue `<RouterLink>`
200
151
  */
201
152
  internalComponent?: ComponentOrTagName;
202
153
  /**
203
- * An HTML tag name or a component used to render external links.
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 The one provided to `@prismicio/vue` plugin if configured, `"a"` otherwise.
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
- * A link resolver function used to resolve links when not using the route
224
- * resolver parameter with `@prismicio/client`.
165
+ * The link resolver used to resolve links.
225
166
  *
226
- * @defaultValue The link resolver provided to `@prismicio/vue` plugin if configured.
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 Link resolver documentation {@link https://prismic.io/docs/core-concepts/link-resolver-route-resolver#link-resolver}
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
- * An HTML tag name or a component used to render internal links.
181
+ * The component rendered for internal URLs.
241
182
  *
242
- * @remarks
243
- * HTML tag names will be rendered using the anchor tag interface (`href`,
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 The one provided to `@prismicio/vue` plugin if configured, {@link RouterLink} otherwise.
186
+ * @defaultValue `<RouterLink>`
250
187
  */
251
188
  internalComponent?: ComponentOrTagName;
252
189
  /**
253
- * An HTML tag name or a component used to render external links.
190
+ * The component rendered for external URLs.
254
191
  *
255
- * @remarks
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, vue26.ComponentProvideOptions, false, {}, any>;
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":";;;;;;;;AAyLA;AASgB,KATJ,gBAAA,GASI;EASA;;;;;;AA4Cf;AAiFqB;EAOhB,YAAA,CAEJ,EA/Ic,oBA+Id;EA/Ic;;;;;;;EAuBK,GAAA,CAAA,EAAA,MAAA,GAdL,iBAcK,CAAA,KAAA,CAAA;EAcA;;;;;;;;;;;;EAdA,iBAAA,CAAA,EAAA,kBAAA;EAcA;;;;;;;AAwGL;;;;;EAG0B,iBACF,CAAA,EA5GnB,kBA4GmB;AAAxC,CAAA,GACK,CAAA;;;;SAvGK;;;;;;YAOG;;;YAoFT;KACC,WAAA;2BACwB;;cAKvB,kBAAU;;;;;;;;;iBA7IA;;;;;;;;iBASA;;;;;;;;;;;;;sBAcK;;;;;;;;;;;;;sBAcA;;;;;SAMX;;;;;;;;;;;iBA3CM;;;;;;;;iBASA;;;;;;;;;;;;;sBAcK;;;;;;;;;;;;;sBAcA;;;;;YAaR;;oBAAe,KAAA,CAAA,qBAAA;;;;;;;;;iBAlDZ;;;;;;;;iBASA;;;;;;;;;;;;;sBAcK;;;;;;;;;;;;;sBAcA;;;;;SAMX;;;;;;;;;;;iBA3CM;;;;;;;;iBASA;;;;;;;;;;;;;sBAcK;;;;;;;;;;;;;sBAcA;;;;;YAaR;;;cA8FP,cAAqB,uBAAuB,YAAY;cAApB,iBACd;KACvB,wBAAwB;;YAEnB"}
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 { HTMLRichTextFunctionSerializer, HTMLRichTextMapSerializer, LinkResolverFunction, RichTextField } from "@prismicio/client";
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 value to be rendered when the field is empty. If a fallback is not
18
- * given, `null` (nothing) will be rendered.
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
- fallback?: ComponentOrTagName;
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
- * A link resolver function used to resolve link when not using the route
35
- * resolver parameter with `@prismicio/client`.
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
- wrapper?: ComponentOrTagName;
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
- serializer: {
74
- type: PropType<PrismicRichTextProps["serializer"]>;
51
+ components: {
52
+ type: PropType<PrismicRichTextProps["components"]>;
75
53
  };
76
- wrapper: {
77
- type: PropType<PrismicRichTextProps["wrapper"]>;
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
- serializer: {
93
- type: PropType<PrismicRichTextProps["serializer"]>;
64
+ components: {
65
+ type: PropType<PrismicRichTextProps["components"]>;
94
66
  };
95
- wrapper: {
96
- type: PropType<PrismicRichTextProps["wrapper"]>;
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":";;;;;;;;;;AAkNY,KAAA,oBAAA,GAAoB;EAIxB;;;EA6BQ,KAAA,EA7BR,aA6BQ,GAAA,IAAA,GAAA,SAAA;EAYF;;;;EA0KR,QAAA,CAAA,EA7MM,kBAsOV;EAtBmC;;;;;;;;;;;EAiBC,UAAA,CAAA,EApNxB,qBAoNwB;EAAQ;;;;;;;;EATnB,YAAA,CAAA,EAjMX,oBAiMW;EAAT;;;;;;;;;eArLJ,iCAAiC;;;;AA0K7B;;;YAlKP;;cAkKL,mBAAY,gBAoB4B,IAAA,CApB5B;;UAGU,SAAS;;;UAGC,SACnC;;;UAIe,SAAS;;;UAGP,SAAS;;;UAGC,SAAS;;;UAGD,SACnC;;oBArBe,IAAA,CAAA,qBAAA,qEAoB4B,IAAA,CAAA;;UAjBlB,SAAS;;;UAGC,SACnC;;;UAIe,SAAS;;;UAGP,SAAS;;;UAGC,SAAS;;;UAGD,SACnC;;;cArBe,iBA0BU"}
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"}