@prismicio/vue 5.3.0-pr.88.72388e2 → 5.3.0-pr.89.235a3d3
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 +17 -23
- package/dist/PrismicImage.vue.d.cts.map +1 -1
- package/dist/PrismicLink.vue.d.cts +5 -8
- package/dist/PrismicLink.vue.d.cts.map +1 -1
- package/dist/PrismicRichText/PrismicRichText.vue.d.cts +9 -10
- package/dist/PrismicRichText/PrismicRichText.vue.d.cts.map +1 -1
- package/dist/PrismicRichText/getRichTextComponentProps.d.cts +2 -2
- package/dist/PrismicRichText/getRichTextComponentProps.d.cts.map +1 -1
- package/dist/PrismicRichText/types.d.cts +27 -22
- package/dist/PrismicRichText/types.d.cts.map +1 -1
- package/dist/PrismicTable/PrismicTable.vue.d.cts +7 -8
- package/dist/PrismicTable/PrismicTable.vue.d.cts.map +1 -1
- package/dist/PrismicTable/types.d.cts +7 -8
- package/dist/PrismicTable/types.d.cts.map +1 -1
- package/dist/PrismicText.vue.d.cts +3 -5
- package/dist/PrismicText.vue.d.cts.map +1 -1
- package/dist/SliceZone/SliceZone.vue.d.cts.map +1 -1
- package/dist/SliceZone/types.d.cts +5 -11
- package/dist/SliceZone/types.d.cts.map +1 -1
- package/dist/createPrismic.d.cts +61 -0
- package/dist/createPrismic.d.cts.map +1 -0
- package/dist/index.cjs +10 -7
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -1
- 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 +17 -23
- package/dist/src/PrismicImage.vue.d.ts.map +1 -1
- package/dist/src/PrismicImage.vue_vue_type_script_setup_true_lang.cjs +4 -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.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 +5 -8
- package/dist/src/PrismicLink.vue.d.ts.map +1 -1
- package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.cjs +8 -12
- 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 +6 -10
- 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 +9 -10
- package/dist/src/PrismicRichText/PrismicRichText.vue.d.ts.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs +13 -7
- 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 +11 -5
- 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 +2 -2
- 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 +2 -2
- 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 +10 -4
- 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 +11 -5
- package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/PrismicRichText/getRichTextComponentProps.cjs.map +1 -1
- package/dist/src/PrismicRichText/getRichTextComponentProps.d.ts +2 -2
- package/dist/src/PrismicRichText/getRichTextComponentProps.d.ts.map +1 -1
- package/dist/src/PrismicRichText/getRichTextComponentProps.js.map +1 -1
- package/dist/src/PrismicRichText/index.d.ts +1 -1
- package/dist/src/PrismicRichText/types.d.ts +27 -22
- 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 +7 -8
- package/dist/src/PrismicTable/PrismicTable.vue.d.ts.map +1 -1
- package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs +18 -10
- 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 +17 -9
- package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/PrismicTable/PrismicTableDefaultComponents.cjs +12 -30
- package/dist/src/PrismicTable/PrismicTableDefaultComponents.cjs.map +1 -1
- package/dist/src/PrismicTable/PrismicTableDefaultComponents.js +12 -30
- 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.map +1 -1
- package/dist/src/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/PrismicTable/index.d.ts +1 -0
- package/dist/src/PrismicTable/types.d.ts +7 -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 +3 -5
- package/dist/src/PrismicText.vue.d.ts.map +1 -1
- package/dist/src/PrismicText.vue_vue_type_script_setup_true_lang.cjs +2 -2
- 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.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 +2 -2
- package/dist/src/SliceZone/SliceZone.vue.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/src/SliceZone/types.d.ts +5 -11
- package/dist/src/SliceZone/types.d.ts.map +1 -1
- package/dist/src/createPrismic.cjs +33 -0
- package/dist/src/createPrismic.cjs.map +1 -0
- package/dist/src/createPrismic.d.ts +63 -0
- package/dist/src/createPrismic.d.ts.map +1 -0
- package/dist/src/createPrismic.js +32 -0
- package/dist/src/createPrismic.js.map +1 -0
- package/dist/src/lib/isInternalURL.cjs +2 -6
- package/dist/src/lib/isInternalURL.cjs.map +1 -1
- package/dist/src/lib/isInternalURL.js +2 -6
- package/dist/src/lib/isInternalURL.js.map +1 -1
- package/dist/src/types.cjs.map +1 -1
- package/dist/src/types.d.ts +14 -4
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/types.d.cts +14 -4
- package/dist/types.d.cts.map +1 -1
- package/package.json +11 -13
- package/src/PrismicImage.vue +5 -8
- package/src/PrismicLink.vue +14 -14
- package/src/PrismicRichText/PrismicRichText.vue +24 -15
- package/src/PrismicRichText/PrismicRichTextDefaultComponent.vue +9 -5
- package/src/PrismicRichText/PrismicRichTextSerialize.vue +4 -3
- package/src/PrismicRichText/getRichTextComponentProps.ts +3 -3
- package/src/PrismicRichText/index.ts +1 -1
- package/src/PrismicRichText/types.ts +54 -30
- package/src/PrismicTable/PrismicTable.vue +27 -19
- package/src/PrismicTable/PrismicTableDefaultComponents.ts +14 -39
- package/src/PrismicTable/PrismicTableRow.vue +2 -2
- package/src/PrismicTable/index.ts +2 -0
- package/src/PrismicTable/types.ts +41 -23
- package/src/PrismicText.vue +1 -3
- package/src/SliceZone/SliceZone.vue +8 -1
- package/src/SliceZone/types.ts +6 -22
- package/src/createPrismic.ts +87 -0
- package/src/index.ts +6 -2
- package/src/lib/isInternalURL.ts +2 -6
- package/src/types.ts +17 -20
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue0 from "vue";
|
|
2
2
|
import { ImageField, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet } from "@prismicio/client";
|
|
3
3
|
|
|
4
4
|
//#region src/PrismicImage.vue.d.ts
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Props for `<PrismicImage />`.
|
|
8
|
-
*/
|
|
5
|
+
/** Props for `<PrismicImage />`. */
|
|
9
6
|
type PrismicImageProps = {
|
|
10
7
|
/** The Prismic image field or thumbnail to render. */
|
|
11
8
|
field: ImageField | ImageField<string>;
|
|
@@ -46,15 +43,14 @@ type PrismicImageProps = {
|
|
|
46
43
|
height?: number | string;
|
|
47
44
|
} & ({
|
|
48
45
|
/**
|
|
49
|
-
* Widths (in pixels) used to build a `srcset` value for the image
|
|
50
|
-
* field.
|
|
46
|
+
* Widths (in pixels) used to build a `srcset` value for the image field.
|
|
51
47
|
*
|
|
52
48
|
* If omitted or set to `"defaults"`, the following widths will be used:
|
|
53
49
|
* 640, 750, 828, 1080, 1200, 1920, 2048, 3840.
|
|
54
50
|
*
|
|
55
|
-
* If the image field contains responsive views, each responsive view
|
|
56
|
-
*
|
|
57
|
-
*
|
|
51
|
+
* If the image field contains responsive views, each responsive view can
|
|
52
|
+
* be used as a width in the resulting `srcset` by passing `"thumbnails"`
|
|
53
|
+
* as the `widths` prop.
|
|
58
54
|
*/
|
|
59
55
|
widths?: NonNullable<Parameters<typeof asImageWidthSrcSet>[1]>["widths"] | "thumbnails" | "defaults";
|
|
60
56
|
pixelDensities?: never;
|
|
@@ -68,7 +64,7 @@ type PrismicImageProps = {
|
|
|
68
64
|
*/
|
|
69
65
|
pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
|
|
70
66
|
});
|
|
71
|
-
declare const __VLS_export:
|
|
67
|
+
declare const __VLS_export: vue0.DefineComponent<({
|
|
72
68
|
/** The Prismic image field or thumbnail to render. */
|
|
73
69
|
field: ImageField | ImageField<string>;
|
|
74
70
|
/**
|
|
@@ -108,15 +104,14 @@ declare const __VLS_export: vue11.DefineComponent<({
|
|
|
108
104
|
height?: number | string;
|
|
109
105
|
} & {
|
|
110
106
|
/**
|
|
111
|
-
* Widths (in pixels) used to build a `srcset` value for the image
|
|
112
|
-
* field.
|
|
107
|
+
* Widths (in pixels) used to build a `srcset` value for the image field.
|
|
113
108
|
*
|
|
114
109
|
* If omitted or set to `"defaults"`, the following widths will be used:
|
|
115
110
|
* 640, 750, 828, 1080, 1200, 1920, 2048, 3840.
|
|
116
111
|
*
|
|
117
|
-
* If the image field contains responsive views, each responsive view
|
|
118
|
-
*
|
|
119
|
-
*
|
|
112
|
+
* If the image field contains responsive views, each responsive view can
|
|
113
|
+
* be used as a width in the resulting `srcset` by passing `"thumbnails"`
|
|
114
|
+
* as the `widths` prop.
|
|
120
115
|
*/
|
|
121
116
|
widths?: NonNullable<Parameters<typeof asImageWidthSrcSet>[1]>["widths"] | "thumbnails" | "defaults";
|
|
122
117
|
pixelDensities?: never;
|
|
@@ -167,7 +162,7 @@ declare const __VLS_export: vue11.DefineComponent<({
|
|
|
167
162
|
* densities will be used: 1, 2, 3.
|
|
168
163
|
*/
|
|
169
164
|
pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
|
|
170
|
-
}), {}, {}, {}, {},
|
|
165
|
+
}), {}, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<({
|
|
171
166
|
/** The Prismic image field or thumbnail to render. */
|
|
172
167
|
field: ImageField | ImageField<string>;
|
|
173
168
|
/**
|
|
@@ -207,15 +202,14 @@ declare const __VLS_export: vue11.DefineComponent<({
|
|
|
207
202
|
height?: number | string;
|
|
208
203
|
} & {
|
|
209
204
|
/**
|
|
210
|
-
* Widths (in pixels) used to build a `srcset` value for the image
|
|
211
|
-
* field.
|
|
205
|
+
* Widths (in pixels) used to build a `srcset` value for the image field.
|
|
212
206
|
*
|
|
213
207
|
* If omitted or set to `"defaults"`, the following widths will be used:
|
|
214
208
|
* 640, 750, 828, 1080, 1200, 1920, 2048, 3840.
|
|
215
209
|
*
|
|
216
|
-
* If the image field contains responsive views, each responsive view
|
|
217
|
-
*
|
|
218
|
-
*
|
|
210
|
+
* If the image field contains responsive views, each responsive view can
|
|
211
|
+
* be used as a width in the resulting `srcset` by passing `"thumbnails"`
|
|
212
|
+
* as the `widths` prop.
|
|
219
213
|
*/
|
|
220
214
|
widths?: NonNullable<Parameters<typeof asImageWidthSrcSet>[1]>["widths"] | "thumbnails" | "defaults";
|
|
221
215
|
pixelDensities?: never;
|
|
@@ -266,7 +260,7 @@ declare const __VLS_export: vue11.DefineComponent<({
|
|
|
266
260
|
* densities will be used: 1, 2, 3.
|
|
267
261
|
*/
|
|
268
262
|
pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
|
|
269
|
-
})> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
263
|
+
})> & Readonly<{}>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, false, {}, any>;
|
|
270
264
|
declare const _default: typeof __VLS_export;
|
|
271
265
|
//#endregion
|
|
272
266
|
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":";;;;;KAgNY,iBAAA;EAAA;EAEJ,KAAA,EAAA,UAAA,GAAa,UAAb,CAAA,MAAA,CAAA;EAAa;;;;;EAsDf,WAAA,CAAA,EA/CS,UA+CT,CAAA,OA/C2B,UA+C3B,CAAA,CAAA,CAAA,CAAA;EAekB;;;;AAIvB;;EAzEoB,GAAA,CAAA,EAAA,EAAA;EAOY;;;;;;;EAAA,WAAA,CAAA,EAAA,EAAA;EAAlB;;;;;;;EAPP;;;;;;EAsDF,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA;CAtDE,GAAA,CAAA;EAAa;;;;;;;;;;EAsMH,MAAA,CAAA,EAhJZ,WAgJY,CAhJA,UAgJA,CAAA,OAhJkB,kBAgJlB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,QAAA,CAAA,GAAA,YAAA,GAAA,UAAA;EAAA,cAGsB,CAAA,EAAA,KAAZ;;;;;;;;;kBArItB,YACA,kBAAkB;;cAiIlB,mBAAY;;SAtMV,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+C3B,YAAY,kBAAkB;;;;SAtD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6D3B,YACA,kBAAkB;oBADP,IAAA,CAAA,qBAAA;;SApET,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+C3B,YAAY,kBAAkB;;;;SAtD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6D3B,YACA,kBAAkB;;cAiIN,iBAGU"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { ComponentOrTagName } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue11 from "vue";
|
|
3
3
|
import { AsLinkAttrsConfig, LinkField, LinkResolverFunction, PrismicDocument } from "@prismicio/client";
|
|
4
4
|
|
|
5
5
|
//#region src/PrismicLink.vue.d.ts
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Props for `<PrismicLink />`.
|
|
9
|
-
*/
|
|
6
|
+
/** Props for `<PrismicLink />`. */
|
|
10
7
|
type PrismicLinkProps = {
|
|
11
8
|
/**
|
|
12
9
|
* The link resolver used to resolve links.
|
|
@@ -52,7 +49,7 @@ declare var __VLS_8: {};
|
|
|
52
49
|
type __VLS_Slots = {} & {
|
|
53
50
|
default?: (props: typeof __VLS_8) => any;
|
|
54
51
|
};
|
|
55
|
-
declare const __VLS_base:
|
|
52
|
+
declare const __VLS_base: vue11.DefineComponent<({
|
|
56
53
|
/**
|
|
57
54
|
* The link resolver used to resolve links.
|
|
58
55
|
*
|
|
@@ -124,7 +121,7 @@ declare const __VLS_base: vue16.DefineComponent<({
|
|
|
124
121
|
/** The Prismic document to render as a link. */
|
|
125
122
|
document: PrismicDocument;
|
|
126
123
|
field?: never;
|
|
127
|
-
}), {}, {}, {}, {},
|
|
124
|
+
}), {}, {}, {}, {}, vue11.ComponentOptionsMixin, vue11.ComponentOptionsMixin, {}, string, vue11.PublicProps, Readonly<({
|
|
128
125
|
/**
|
|
129
126
|
* The link resolver used to resolve links.
|
|
130
127
|
*
|
|
@@ -196,7 +193,7 @@ declare const __VLS_base: vue16.DefineComponent<({
|
|
|
196
193
|
/** The Prismic document to render as a link. */
|
|
197
194
|
document: PrismicDocument;
|
|
198
195
|
field?: never;
|
|
199
|
-
})> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
196
|
+
})> & Readonly<{}>, {}, {}, {}, {}, string, vue11.ComponentProvideOptions, false, {}, any>;
|
|
200
197
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
201
198
|
declare const _default: typeof __VLS_export;
|
|
202
199
|
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":";;;;;;KAyJY,gBAAA;EAAA;;;;;;;;AA8CX;EAkFI,YAAA,CAAA,EAtHW,oBAuHoB;EAK9B;;;;;EAhGI,GAAA,CAAA,EAAA,MAAA,GArBM,iBAqBN,CAAA,KAAA,CAAA;EA5BM;;;;;;;;EAAA,iBAAA,CAAA,EAiBK,kBAjBL;EAOA;;;;;EAAA,iBAAA,CAAA,EAiBK,kBAjBL;CAUK,GAAA,CAAA;EAOA;EASR,KAAA,EALH,SAKG;;;;UA2FG,EA3FH,eA2FG;EAAA,KAAA,CAAA,EAAA,KAAA;AAAA,CAAA,CAAA;YAPZ,OAU8C,EAAA,CAAA,CAAA;KAT7C,WAAA,GASyD,CAAA,CAAA,GAAA;EAAnC,OAAA,CAAA,EAAA,CAAA,KAAA,EAAA,OARE,OAQF,EAAA,GAAA,GAAA;CAAe;AAAA,cAHpC,UAIkC,QAJxB,eAIwB,CAAA,CAAA;EACnC;;;;;;;;;iBAjIW;;;;;;iBAOA;;;;;;;;;sBAUK;;;;;;sBAOA;;;SAIX;;;;;;;;;;;;iBA5BM;;;;;;iBAOA;;;;;;;;;sBAUK;;;;;;sBAOA;;;YASR;;oBAAe,KAAA,CAAA,qBAAA;;;;;;;;;;iBAjCZ;;;;;;iBAOA;;;;;;;;;sBAUK;;;;;;sBAOA;;;SAIX;;;;;;;;;;;;iBA5BM;;;;;;iBAOA;;;;;;;;;sBAUK;;;;;;sBAOA;;;YASR;;;cA8FP,cAAqB,uBAAuB,YAAY;cAApB,iBACd;KACvB,wBAAwB;;YAEnB"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { ComponentOrTagName } from "../types.cjs";
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
2
|
+
import { VueRichTextComponents } from "./types.cjs";
|
|
3
|
+
import * as vue4 from "vue";
|
|
4
4
|
import { PropType } from "vue";
|
|
5
5
|
import { LinkResolverFunction, RichTextField } from "@prismicio/client";
|
|
6
6
|
|
|
7
7
|
//#region src/PrismicRichText/PrismicRichText.vue.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* Props for `<PrismicRichText />`.
|
|
10
|
-
*/
|
|
8
|
+
/** Props for `<PrismicRichText />`. */
|
|
11
9
|
type PrismicRichTextProps = {
|
|
12
10
|
/** The Prismic rich text field to render. */
|
|
13
11
|
field: RichTextField | null | undefined;
|
|
@@ -22,7 +20,8 @@ type PrismicRichTextProps = {
|
|
|
22
20
|
*/
|
|
23
21
|
linkResolver?: LinkResolverFunction;
|
|
24
22
|
/**
|
|
25
|
-
* An object that maps a rich text block type to a Vue component or a
|
|
23
|
+
* An object that maps a rich text block type to a Vue component or a
|
|
24
|
+
* shorthand definition.
|
|
26
25
|
*
|
|
27
26
|
* @example
|
|
28
27
|
*
|
|
@@ -34,14 +33,14 @@ type PrismicRichTextProps = {
|
|
|
34
33
|
* }
|
|
35
34
|
* ```
|
|
36
35
|
*/
|
|
37
|
-
components?:
|
|
36
|
+
components?: VueRichTextComponents;
|
|
38
37
|
/**
|
|
39
38
|
* The value to be rendered when the field is empty. If a fallback is not
|
|
40
39
|
* given, `null` will be rendered.
|
|
41
40
|
*/
|
|
42
41
|
fallback?: ComponentOrTagName;
|
|
43
42
|
};
|
|
44
|
-
declare const __VLS_export:
|
|
43
|
+
declare const __VLS_export: vue4.DefineComponent<vue4.ExtractPropTypes<{
|
|
45
44
|
field: {
|
|
46
45
|
type: PropType<PrismicRichTextProps["field"]>;
|
|
47
46
|
};
|
|
@@ -54,7 +53,7 @@ declare const __VLS_export: vue0.DefineComponent<vue0.ExtractPropTypes<{
|
|
|
54
53
|
fallback: {
|
|
55
54
|
type: PropType<PrismicRichTextProps["fallback"]>;
|
|
56
55
|
};
|
|
57
|
-
}>, {}, {}, {}, {},
|
|
56
|
+
}>, {}, {}, {}, {}, vue4.ComponentOptionsMixin, vue4.ComponentOptionsMixin, {}, string, vue4.PublicProps, Readonly<vue4.ExtractPropTypes<{
|
|
58
57
|
field: {
|
|
59
58
|
type: PropType<PrismicRichTextProps["field"]>;
|
|
60
59
|
};
|
|
@@ -67,7 +66,7 @@ declare const __VLS_export: vue0.DefineComponent<vue0.ExtractPropTypes<{
|
|
|
67
66
|
fallback: {
|
|
68
67
|
type: PropType<PrismicRichTextProps["fallback"]>;
|
|
69
68
|
};
|
|
70
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
69
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue4.ComponentProvideOptions, true, {}, any>;
|
|
71
70
|
declare const _default: typeof __VLS_export;
|
|
72
71
|
//#endregion
|
|
73
72
|
export { PrismicRichTextProps, _default };
|
|
@@ -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":";;;;;;;;KAwKY,oBAAA;;EAAA,KAAA,EAEJ,aAFI,GAAoB,IAAA,GAAA,SAAA;EAExB;;;;;AAkCP;;;;EA6HmB,YAAA,CAAA,EApJJ,oBAoJI;EAGO;;;;;;;;;;;;;;EAIxB,UAAA,CAAA,EA3IW,qBA2IX;EADmC;;;;aApI1B;;cAwHN,YAAY,OAAA,eAAA,CAY4B,IAAA,CAZ5B,gBAAA,CAAA;EAAA,KAAA,EAAA;UAGU,SAAS;;;UAGjB,SAAS;;;UAGX,SAAS;;;UAGW,SACnC;;oBAbe,IAAA,CAAA,qBAAA,qEAY4B,IAAA,CAAA;;UATlB,SAAS;;;UAGjB,SAAS;;;UAGX,SAAS;;;UAGW,SACnC;;;cAbe,iBAkBU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VueRichTextComponentProps } from "./types.cjs";
|
|
2
2
|
import { PropType } from "vue";
|
|
3
3
|
import { RTAnyNode } from "@prismicio/client";
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ import { RTAnyNode } from "@prismicio/client";
|
|
|
12
12
|
*/
|
|
13
13
|
type DefineComponentRichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode> = {
|
|
14
14
|
node: {
|
|
15
|
-
type: PropType<
|
|
15
|
+
type: PropType<VueRichTextComponentProps<TRTNode>["node"]>;
|
|
16
16
|
required: true;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRichTextComponentProps.d.cts","names":[],"sources":["../../src/PrismicRichText/getRichTextComponentProps.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"getRichTextComponentProps.d.cts","names":[],"sources":["../../src/PrismicRichText/getRichTextComponentProps.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAGwD;;;;KAQnD,qCAIY,CAAA,gBAHA,SAGA,GAHY,SAGZ,CAAA,GAAA;EAAT,IAAA,EAAA;IAAQ,IAAA,EAAR,QAAQ,CAAC,yBAAD,CAA2B,OAA3B,CAAA,CAAA,MAAA,CAAA,CAAA;IAmCH,QAAA,EAAA,IAAA;EAA6C,CAAA;CAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAFK,4CAA6C,0BAElD,YACL,sCACF,QAAQ;QAAmB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VueComponent } from "../types.cjs";
|
|
2
|
-
import { LinkResolverFunction, RTAnyNode,
|
|
1
|
+
import { VueComponent, VueComponentShorthand } from "../types.cjs";
|
|
2
|
+
import { LinkResolverFunction, RTAnyNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTStrongNode } from "@prismicio/client";
|
|
3
3
|
|
|
4
4
|
//#region src/PrismicRichText/types.d.ts
|
|
5
5
|
|
|
@@ -9,11 +9,29 @@ import { LinkResolverFunction, RTAnyNode, RichTextNodeType } from "@prismicio/cl
|
|
|
9
9
|
*
|
|
10
10
|
* @see Templating Rich Text and title fields from Prismic {@link https://prismic.io/docs/rich-text}
|
|
11
11
|
*/
|
|
12
|
-
type
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
type VueRichTextComponents = {
|
|
13
|
+
heading1?: VueRichTextComponent<RTHeading1Node> | VueComponentShorthand;
|
|
14
|
+
heading2?: VueRichTextComponent<RTHeading2Node> | VueComponentShorthand;
|
|
15
|
+
heading3?: VueRichTextComponent<RTHeading3Node> | VueComponentShorthand;
|
|
16
|
+
heading4?: VueRichTextComponent<RTHeading4Node> | VueComponentShorthand;
|
|
17
|
+
heading5?: VueRichTextComponent<RTHeading5Node> | VueComponentShorthand;
|
|
18
|
+
heading6?: VueRichTextComponent<RTHeading6Node> | VueComponentShorthand;
|
|
19
|
+
paragraph?: VueRichTextComponent<RTParagraphNode> | VueComponentShorthand;
|
|
20
|
+
preformatted?: VueRichTextComponent<RTPreformattedNode> | VueComponentShorthand;
|
|
21
|
+
strong?: VueRichTextComponent<RTStrongNode> | VueComponentShorthand;
|
|
22
|
+
em?: VueRichTextComponent<RTEmNode> | VueComponentShorthand;
|
|
23
|
+
listItem?: VueRichTextComponent<RTListItemNode> | VueComponentShorthand;
|
|
24
|
+
oListItem?: VueRichTextComponent<RTOListItemNode> | VueComponentShorthand;
|
|
25
|
+
list?: VueRichTextComponent<RTListNode> | VueComponentShorthand;
|
|
26
|
+
oList?: VueRichTextComponent<RTOListNode> | VueComponentShorthand;
|
|
27
|
+
image?: VueRichTextComponent<RTImageNode> | Omit<VueComponentShorthand, "as">;
|
|
28
|
+
embed?: VueRichTextComponent<RTEmbedNode> | VueComponentShorthand;
|
|
29
|
+
hyperlink?: VueRichTextComponent<RTLinkNode> | Omit<VueComponentShorthand, "as">;
|
|
30
|
+
label?: VueRichTextComponent<RTLabelNode> | Omit<VueComponentShorthand, "as">;
|
|
31
|
+
span?: VueRichTextComponent<RTSpanNode>;
|
|
32
|
+
};
|
|
33
|
+
/** Props for a component rendering nodes from a Prismic rich text field. */
|
|
34
|
+
type VueRichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode> = {
|
|
17
35
|
node: TRTNode;
|
|
18
36
|
};
|
|
19
37
|
/**
|
|
@@ -21,20 +39,7 @@ type RichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode> = {
|
|
|
21
39
|
*
|
|
22
40
|
* @typeParam TRTNode - The type of rich text node(s) this component handles
|
|
23
41
|
*/
|
|
24
|
-
type VueRichTextComponent<TRTNode extends RTAnyNode = RTAnyNode> = VueComponent<
|
|
25
|
-
/**
|
|
26
|
-
* A shorthand definition for {@link VueRichTextSerializer} component types.
|
|
27
|
-
*/
|
|
28
|
-
type VueShorthand = {
|
|
29
|
-
/**
|
|
30
|
-
* The HTML element type rendered for this node type.
|
|
31
|
-
*/
|
|
32
|
-
as?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Other attributes to apply to the element type.
|
|
35
|
-
*/
|
|
36
|
-
[Attribute: string]: string | boolean | null | undefined;
|
|
37
|
-
};
|
|
42
|
+
type VueRichTextComponent<TRTNode extends RTAnyNode = RTAnyNode> = VueComponent<VueRichTextComponentProps<TRTNode>>;
|
|
38
43
|
//#endregion
|
|
39
|
-
export {
|
|
44
|
+
export { VueRichTextComponentProps, VueRichTextComponents };
|
|
40
45
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/PrismicRichText/types.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/PrismicRichText/types.ts"],"sourcesContent":[],"mappings":";;;;;;;AAiCA;;;;AAEiC,KAFrB,qBAAA,GAEqB;EAArB,QAAA,CAAA,EADA,oBACA,CADqB,cACrB,CAAA,GADuC,qBACvC;EAAuC,QAAA,CAAA,EAAvC,oBAAuC,CAAlB,cAAkB,CAAA,GAAA,qBAAA;EAClB,QAAA,CAAA,EAArB,oBAAqB,CAAA,cAAA,CAAA,GAAkB,qBAAlB;EAArB,QAAA,CAAA,EACA,oBADA,CACqB,cADrB,CAAA,GACuC,qBADvC;EAAuC,QAAA,CAAA,EAEvC,oBAFuC,CAElB,cAFkB,CAAA,GAEA,qBAFA;EAClB,QAAA,CAAA,EAErB,oBAFqB,CAEA,cAFA,CAAA,GAEkB,qBAFlB;EAArB,SAAA,CAAA,EAGC,oBAHD,CAGsB,eAHtB,CAAA,GAGyC,qBAHzC;EAAuC,YAAA,CAAA,EAK/C,oBAL+C,CAK1B,kBAL0B,CAAA,GAM/C,qBAN+C;EAClB,MAAA,CAAA,EAMvB,oBANuB,CAMF,YANE,CAAA,GAMc,qBANd;EAArB,EAAA,CAAA,EAON,oBAPM,CAOe,QAPf,CAAA,GAO2B,qBAP3B;EAAuC,QAAA,CAAA,EAQvC,oBARuC,CAQlB,cARkB,CAAA,GAQA,qBARA;EAClB,SAAA,CAAA,EAQpB,oBARoB,CAQC,eARD,CAAA,GAQoB,qBARpB;EAArB,IAAA,CAAA,EASJ,oBATI,CASiB,UATjB,CAAA,GAS+B,qBAT/B;EAAuC,KAAA,CAAA,EAU1C,oBAV0C,CAUrB,WAVqB,CAAA,GAUN,qBAVM;EACjB,KAAA,CAAA,EAUzB,oBAVyB,CAUJ,WAVI,CAAA,GAUW,IAVX,CAUgB,qBAVhB,EAAA,IAAA,CAAA;EAArB,KAAA,CAAA,EAWJ,oBAXI,CAWiB,WAXjB,CAAA,GAWgC,qBAXhC;EAAwC,SAAA,CAAA,EAajD,oBAbiD,CAa5B,UAb4B,CAAA,GAcjD,IAdiD,CAc5C,qBAd4C,EAAA,IAAA,CAAA;EAE5B,KAAA,CAAA,EAahB,oBAbgB,CAaK,WAbL,CAAA,GAaoB,IAbpB,CAayB,qBAbzB,EAAA,IAAA,CAAA;EAArB,IAAA,CAAA,EAcI,oBAdJ,CAcyB,UAdzB,CAAA;CACA;;AACM,KAgBE,yBAhBF,CAAA,gBAgB4C,SAhB5C,GAgBwD,SAhBxD,CAAA,GAAA;EAAqC,IAAA,EAiBxC,OAjBwC;CACpB;;;;;;AAEO,KAsBtB,oBAtBsB,CAAA,gBAsBe,SAtBf,GAsB2B,SAtB3B,CAAA,GAuBjC,YAvBiC,CAuBpB,yBAvBoB,CAuBM,OAvBN,CAAA,CAAA"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { ComponentOrTagName } from "../types.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { VueRichTextComponents } from "../PrismicRichText/types.cjs";
|
|
3
3
|
import { VueTableComponents } from "./types.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue21 from "vue";
|
|
5
5
|
import { TableField } from "@prismicio/client";
|
|
6
6
|
|
|
7
7
|
//#region src/PrismicTable/PrismicTable.vue.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* Props for `<PrismicTable />`.
|
|
10
|
-
*/
|
|
8
|
+
/** Props for `<PrismicTable />`. */
|
|
11
9
|
type PrismicTableProps = {
|
|
12
10
|
/** The Prismic table field to render. */
|
|
13
11
|
field: TableField | undefined;
|
|
14
12
|
/**
|
|
15
|
-
* An object that maps a table block type to a Vue component or a shorthand
|
|
13
|
+
* An object that maps a table block type to a Vue component or a shorthand
|
|
14
|
+
* definition.
|
|
16
15
|
*
|
|
17
16
|
* @example
|
|
18
17
|
*
|
|
@@ -24,14 +23,14 @@ type PrismicTableProps = {
|
|
|
24
23
|
* }
|
|
25
24
|
* ```
|
|
26
25
|
*/
|
|
27
|
-
components?: VueTableComponents &
|
|
26
|
+
components?: VueTableComponents & VueRichTextComponents;
|
|
28
27
|
/**
|
|
29
28
|
* The value to be rendered when the field is empty. If a fallback is not
|
|
30
29
|
* given, `null` (nothing) will be rendered.
|
|
31
30
|
*/
|
|
32
31
|
fallback?: ComponentOrTagName;
|
|
33
32
|
};
|
|
34
|
-
declare const __VLS_export:
|
|
33
|
+
declare const __VLS_export: vue21.DefineComponent<PrismicTableProps, {}, {}, {}, {}, vue21.ComponentOptionsMixin, vue21.ComponentOptionsMixin, {}, string, vue21.PublicProps, Readonly<PrismicTableProps> & Readonly<{}>, {}, {}, {}, {}, string, vue21.ComponentProvideOptions, false, {}, any>;
|
|
35
34
|
declare const _default: typeof __VLS_export;
|
|
36
35
|
//#endregion
|
|
37
36
|
export { PrismicTableProps, _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicTable.vue.d.cts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PrismicTable.vue.d.cts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"sourcesContent":[],"mappings":";;;;;;;;KAoIY,iBAAA;;EAAA,KAAA,EAEJ,UAFI,GAAiB,SAAA;EAErB;;;;;AAuBP;;;;;;;;;EA2JiB,UAAA,CAAA,EAlKJ,kBAkKI,GAlKiB,qBAkKjB;EAAA;AAAA;;;aA5JN;;cA4JN,cAAY,KAAA,CAAA,gBAAA,mCAAA,KAAA,CAAA,qBAAA,EAAA,KAAA,CAAA,qBAAA,cAAA,KAAA,CAAA,WAAA,EAAA,SAAA,qBAAA,sCAAA,KAAA,CAAA,uBAAA;cAAA,iBAGU"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { VueComponent } from "../types.cjs";
|
|
2
|
-
import { VueShorthand } from "../PrismicRichText/types.cjs";
|
|
1
|
+
import { VueComponent, VueComponentShorthand } from "../types.cjs";
|
|
3
2
|
import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "@prismicio/client";
|
|
4
3
|
|
|
5
4
|
//#region src/PrismicTable/types.d.ts
|
|
@@ -13,22 +12,22 @@ import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, Tabl
|
|
|
13
12
|
type VueTableComponents = {
|
|
14
13
|
table?: VueComponent<{
|
|
15
14
|
table: TableField<"filled">;
|
|
16
|
-
}> |
|
|
15
|
+
}> | Omit<VueComponentShorthand, "as">;
|
|
17
16
|
thead?: VueComponent<{
|
|
18
17
|
head: TableFieldHead;
|
|
19
|
-
}> |
|
|
18
|
+
}> | Omit<VueComponentShorthand, "as">;
|
|
20
19
|
tbody?: VueComponent<{
|
|
21
20
|
body: TableFieldBody;
|
|
22
|
-
}> |
|
|
21
|
+
}> | Omit<VueComponentShorthand, "as">;
|
|
23
22
|
tr?: VueComponent<{
|
|
24
23
|
row: TableFieldBodyRow | TableFieldHeadRow;
|
|
25
|
-
}> |
|
|
24
|
+
}> | Omit<VueComponentShorthand, "as">;
|
|
26
25
|
th?: VueComponent<{
|
|
27
26
|
cell: TableFieldHeaderCell;
|
|
28
|
-
}> |
|
|
27
|
+
}> | Omit<VueComponentShorthand, "as">;
|
|
29
28
|
td?: VueComponent<{
|
|
30
29
|
cell: TableFieldDataCell;
|
|
31
|
-
}> |
|
|
30
|
+
}> | Omit<VueComponentShorthand, "as">;
|
|
32
31
|
};
|
|
33
32
|
//#endregion
|
|
34
33
|
export { VueTableComponents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/PrismicTable/types.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/PrismicTable/types.ts"],"sourcesContent":[],"mappings":";;;;;;;AAkBA;;;;AAGI,KAHQ,kBAAA,GAGR;EAEqB,KAAA,CAAA,EAHrB,YAGqB,CAAA;IAArB,KAAA,EAHsB,UAGtB,CAAA,QAAA,CAAA;EACK,CAAA,CAAA,GAHL,IAGK,CAHA,qBAGA,EAAA,IAAA,CAAA;EAAL,KAAA,CAAA,EADA,YACA,CAAA;IAEqB,IAAA,EAHA,cAGA;EAArB,CAAA,CAAA,GAFA,IAEA,CAFK,qBAEL,EAAA,IAAA,CAAA;EACK,KAAA,CAAA,EADL,YACK,CAAA;IAAL,IAAA,EADqB,cACrB;EAEoB,CAAA,CAAA,GAFpB,IAEoB,CAFf,qBAEe,EAAA,IAAA,CAAA;EAAoB,EAAA,CAAA,EAAxC,YAAwC,CAAA;IAAxC,GAAA,EAAoB,iBAApB,GAAwC,iBAAxC;EACK,CAAA,CAAA,GAAL,IAAK,CAAA,qBAAA,EAAA,IAAA,CAAA;EAAL,EAAA,CAAA,EAEA,YAFA,CAAA;IAEqB,IAAA,EAAA,oBAAA;EAArB,CAAA,CAAA,GACA,IADA,CACK,qBADL,EAAA,IAAA,CAAA;EACK,EAAA,CAAA,EAEL,YAFK,CAAA;IAAL,IAAA,EAEqB,kBAFrB;EAEqB,CAAA,CAAA,GACrB,IADqB,CAChB,qBADgB,EAAA,IAAA,CAAA;CAArB"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue16 from "vue";
|
|
2
2
|
import { RichTextField } from "@prismicio/client";
|
|
3
3
|
|
|
4
4
|
//#region src/PrismicText.vue.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Props for `<PrismicText />`.
|
|
7
|
-
*/
|
|
5
|
+
/** Props for `<PrismicText />`. */
|
|
8
6
|
type PrismicTextProps = {
|
|
9
7
|
/** The Prismic rich text field to render. */
|
|
10
8
|
field: RichTextField | null | undefined;
|
|
@@ -20,7 +18,7 @@ type PrismicTextProps = {
|
|
|
20
18
|
*/
|
|
21
19
|
separator?: string;
|
|
22
20
|
};
|
|
23
|
-
declare const __VLS_export:
|
|
21
|
+
declare const __VLS_export: vue16.DefineComponent<PrismicTextProps, {}, {}, {}, {}, vue16.ComponentOptionsMixin, vue16.ComponentOptionsMixin, {}, string, vue16.PublicProps, Readonly<PrismicTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue16.ComponentProvideOptions, false, {}, any>;
|
|
24
22
|
declare const _default: typeof __VLS_export;
|
|
25
23
|
//#endregion
|
|
26
24
|
export { PrismicTextProps, _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicText.vue.d.cts","names":[],"sources":["../src/PrismicText.vue"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PrismicText.vue.d.cts","names":[],"sources":["../src/PrismicText.vue"],"sourcesContent":[],"mappings":";;;;;KAyDY,gBAAA;;EAAA,KAAA,EAEJ,aAFoB,GAAA,IAAA,GAAA,SAEpB;EAoDF;;;;EAAY,QAAA,CAAA,EAAA,MAAA;EAAA;;;;;EAAA,SAAA,CAAA,EAAA,MAAA;AAAA,CAAA;cAAZ,cAAY,KAAA,CAAA,gBAAA,kCAAA,KAAA,CAAA,qBAAA,EAAA,KAAA,CAAA,qBAAA,cAAA,KAAA,CAAA,WAAA,EAAA,SAAA,oBAAA,sCAAA,KAAA,CAAA,uBAAA;cAAA,iBAGU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliceZone.vue.d.cts","names":[],"sources":["../../src/SliceZone/SliceZone.vue"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"SliceZone.vue.d.cts","names":[],"sources":["../../src/SliceZone/SliceZone.vue"],"sourcesContent":[],"mappings":";;;;;;;;AA+GA;;AAEoC,KAFxB,cAEwB,CAAA,WAAA,OAAA,CAAA,GAAA;EAAY;EAAvC,MAAA,EAAA,aAAA,CAAc,SAAd,GAAA,CAA2B,SAA3B,GAAuC,MAAvC,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,CAAA;EAGK;EAO8B,UAAA,CAAA,EAP9B,mBAO8B;EAAxB;;;AAInB;EAkFK,gBAEJ,CAAA,EAxFkB,kBAwFlB,CAAA,GAAA,EAxF0C,QAwF1C,CAAA;EAFgB;EAAA,OAAA,CAAA,EAnFP,QAmFO;CAAA;KAhFb,WAAA,GAAc,cAgFD;cAAZ,YAAY,EAAA,KAAA,CAAA,eAAA,CAAA,WAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,KAAA,CAAA,qBAAA,EAAA,KAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,EAAA,MAAA,EAAA,KAAA,CAAA,WAAA,EAAA,QAAA,CAAA,WAAA,CAAA,GAAA,QAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,MAAA,EAAA,KAAA,CAAA,uBAAA,EAAA,KAAA,EAAA,CAAA,CAAA,EAAA,GAAA,CAAA;cAAA,QAAA,EAAA,OAGU,YAHV"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VueComponent } from "../types.cjs";
|
|
2
2
|
import { Slice } from "@prismicio/client";
|
|
3
3
|
|
|
4
4
|
//#region src/SliceZone/types.d.ts
|
|
@@ -62,17 +62,11 @@ type SliceZoneLike<TSlice extends SliceLike = SliceLike> = readonly TSlice[];
|
|
|
62
62
|
* available to all Slice components
|
|
63
63
|
*/
|
|
64
64
|
type SliceComponentProps<TSlice extends SliceLike = SliceLike, TContext = unknown> = {
|
|
65
|
-
/**
|
|
66
|
-
* Slice data for this component.
|
|
67
|
-
*/
|
|
65
|
+
/** Slice data for this component. */
|
|
68
66
|
slice: TSlice;
|
|
69
|
-
/**
|
|
70
|
-
* The index of the Slice in the Slice Zone.
|
|
71
|
-
*/
|
|
67
|
+
/** The index of the Slice in the Slice Zone. */
|
|
72
68
|
index: number;
|
|
73
|
-
/**
|
|
74
|
-
* All Slices from the Slice Zone to which the Slice belongs.
|
|
75
|
-
*/
|
|
69
|
+
/** All Slices from the Slice Zone to which the Slice belongs. */
|
|
76
70
|
slices: SliceZoneLike<TSlice extends SliceLikeGraphQL ? SliceLikeGraphQL : SliceLikeRestV2>;
|
|
77
71
|
/**
|
|
78
72
|
* Arbitrary data passed to `<SliceZone />` and made available to all Slice
|
|
@@ -86,7 +80,7 @@ type SliceComponentProps<TSlice extends SliceLike = SliceLike, TContext = unknow
|
|
|
86
80
|
* @typeParam TSlice - The type(s) of slices in the Slice Zone
|
|
87
81
|
* @typeParam TContext - Arbitrary data made available to all Slice components
|
|
88
82
|
*/
|
|
89
|
-
type SliceComponentType<TSlice extends SliceLike = any, TContext = unknown> =
|
|
83
|
+
type SliceComponentType<TSlice extends SliceLike = any, TContext = unknown> = VueComponent<SliceComponentProps<TSlice, TContext>>;
|
|
90
84
|
/**
|
|
91
85
|
* A record of Slice types mapped to Vue components. Each components will be
|
|
92
86
|
* rendered for each instance of their Slice type.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/SliceZone/types.ts"],"sourcesContent":[],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/SliceZone/types.ts"],"sourcesContent":[],"mappings":";;;;;;;AAE4C;;;KAOvC,gBAA4D,CAAA,eAA5B,SAA4B,CAAA,GAAf,MAAe,SAAA,eAAA,GAC9D,MAD8D,CAAA,YAAA,CAAA,GAE9D,MAF8D,SAE/C,gBAF+C,GAG7D,MAH6D,CAAA,MAAA,CAAA,GAAA,KAAA;;;;;;AAYjE;AACO,KADK,eACL,CAAA,mBAAA,MAAA,GAAA,MAAA,CAAA,GAD2D,IAC3D,CAAN,KAAM,CAAA,UAAA,CAAA,EAAA,IAAA,GAAA,YAAA,CAAA;;;;AAUP;AAaA;;AACG,KAdS,gBAcT,CAAA,mBAAA,MAAA,GAAA,MAAA,CAAA,GAAA;EACiB,IAAA,EAdb,KAca,CAdP,UAcO,CAAA,CAAA,YAAA,CAAA;CAAjB;;AAoBH;;;;;AAWA;;;AAKQ,KAtCI,SAsCJ,CAAA,mBAAA,MAAA,GAAA,MAAA,CAAA,GAAA,CArCL,eAqCK,CArCW,UAqCX,CAAA,GApCL,gBAoCK,CApCY,UAoCZ,CAAA,CAAA,GAAA;EAWN;;;;;;EAOgB,QAAA,CAAA,EAAA,IAAA;AASlB,CAAA;;;;;;;AAaA;;;AAciC,KAtErB,aAsEqB,CAAA,eAtEQ,SAsER,GAtEoB,SAsEpB,CAAA,GAAA,SArEvB,MAqEuB,EAAA;;;;;;;;;AAIT,KA/DZ,mBA+DY,CAAA,eA9DR,SA8DQ,GA9DI,SA8DJ,EAAA,WAAA,OAAA,CAAA,GAAA;EAAhB;EACH,KAAA,EA3DG,MA2DH;EAJA;EAAkB,KAAA,EAAA,MAAA;;UA7Cd,cACP,eAAe,mBAAmB,mBAAmB;;;;;WAO7C;;;;;;;;KASE,kCAEI,uCAEZ,aAAa,oBAAoB,QAAQ;;;;;;;;KASjC,mCACI,YAAY,iDAaZ,iBAAiB,UAC5B,mBACA,QAAQ,QAAQ,UAAU,4BACvB,YACA,QAAQ,QAAQ,UAAU,aAC7B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ComponentOrTagName } from "./types.cjs";
|
|
2
|
+
import { VueRichTextComponents } from "./PrismicRichText/types.cjs";
|
|
3
|
+
import { VueTableComponents } from "./PrismicTable/types.cjs";
|
|
4
|
+
import { App } from "vue";
|
|
5
|
+
import { CreateClient, isFilled } from "@prismicio/client";
|
|
6
|
+
|
|
7
|
+
//#region src/createPrismic.d.ts
|
|
8
|
+
/** Components configuration. */
|
|
9
|
+
type ComponentsConfig = {
|
|
10
|
+
/** The default component rendered for internal URLs. */
|
|
11
|
+
linkInternalComponent?: ComponentOrTagName;
|
|
12
|
+
/** The default component rendered for external URLs. */
|
|
13
|
+
linkExternalComponent?: ComponentOrTagName;
|
|
14
|
+
/**
|
|
15
|
+
* The default components or shorthand definitions for Rich Text and Table
|
|
16
|
+
* fields.
|
|
17
|
+
*/
|
|
18
|
+
defaultComponents?: VueRichTextComponents & VueTableComponents;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Prismic Vue plugin interface accessible through `usePrismic()` and
|
|
22
|
+
* `$prismic`.
|
|
23
|
+
*/
|
|
24
|
+
type PrismicPlugin = {
|
|
25
|
+
/** A Prismic client that can be used to query content from a repository. */
|
|
26
|
+
client: ReturnType<CreateClient>;
|
|
27
|
+
/** Helpers to determine if a field is filled. */
|
|
28
|
+
isFilled: typeof isFilled;
|
|
29
|
+
/** @internal */
|
|
30
|
+
readonly componentsConfig?: ComponentsConfig;
|
|
31
|
+
/** @internal */
|
|
32
|
+
install: (app: App) => void;
|
|
33
|
+
};
|
|
34
|
+
/** Prismic Vue plugin configuration. */
|
|
35
|
+
type PrismicPluginConfig = {
|
|
36
|
+
/** A Prismic client instance to inject into the Vue app. */
|
|
37
|
+
client: ReturnType<CreateClient>;
|
|
38
|
+
/** Components configuration. */
|
|
39
|
+
componentsConfig?: ComponentsConfig;
|
|
40
|
+
};
|
|
41
|
+
/** Creates a Prismic Vue plugin instance that can be used by a Vue app. */
|
|
42
|
+
declare const createPrismic: (config: PrismicPluginConfig) => PrismicPlugin;
|
|
43
|
+
/**
|
|
44
|
+
* Access the Prismic Vue plugin interface.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
*
|
|
48
|
+
* ```typescript
|
|
49
|
+
* const { client, isFilled } = usePrismic()
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
declare const usePrismic: () => PrismicPlugin;
|
|
53
|
+
declare module "vue" {
|
|
54
|
+
interface ComponentCustomProperties {
|
|
55
|
+
/** The Prismic Vue plugin interface. */
|
|
56
|
+
$prismic: PrismicPlugin;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { PrismicPlugin, PrismicPluginConfig, createPrismic, usePrismic };
|
|
61
|
+
//# sourceMappingURL=createPrismic.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPrismic.d.cts","names":[],"sources":["../src/createPrismic.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAQwD,KAOnD,gBAAA,GAAgB;EAEI;EAGA,qBAAA,CAAA,EAHA,kBAGA;EAMJ;EAAwB,qBAAA,CAAA,EANpB,kBAMoB;EAAkB;AAO/D;;;EAKkB,iBAAA,CAAA,EAZG,qBAYH,GAZ2B,kBAY3B;CAGW;;;AAO7B;;AAES,KAjBG,aAAA,GAiBH;EAGW;EAAgB,MAAA,EAlB3B,UAkB2B,CAlBhB,YAkBgB,CAAA;EAIvB;EAoBA,QAAA,EAAA,OAvCK,QAuCY;EAE7B;EAAA,SAAA,gBAAA,CAAA,EAtC4B,gBAsC5B;;EAKwB,OAAA,EAAA,CAAA,GAAA,EAxCT,GAwCS,EAAA,GAAA,IAAA;CAAA;;KApCb,mBAAA;;UAEH,WAAW;;qBAGA;;;cAIP,wBAAyB,wBAAsB;;;;;;;;;;cAoB/C,kBAAiB;;;;cAOlB"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const require_createPrismic = require('./src/createPrismic.cjs');
|
|
1
2
|
const require_PrismicImage = require('./src/PrismicImage.cjs');
|
|
2
3
|
const require_PrismicLink = require('./src/PrismicLink.cjs');
|
|
3
4
|
const require_PrismicRichText = require('./src/PrismicRichText/PrismicRichText.cjs');
|
|
@@ -10,13 +11,14 @@ const require_SliceZone = require('./src/SliceZone/SliceZone.cjs');
|
|
|
10
11
|
const require_getSliceComponentProps = require('./src/SliceZone/getSliceComponentProps.cjs');
|
|
11
12
|
const require_defineSliceZoneComponents = require('./src/SliceZone/defineSliceZoneComponents.cjs');
|
|
12
13
|
|
|
13
|
-
exports.PrismicImage = require_PrismicImage
|
|
14
|
-
exports.PrismicLink = require_PrismicLink
|
|
15
|
-
exports.PrismicRichText = require_PrismicRichText
|
|
16
|
-
exports.PrismicTable = require_PrismicTable
|
|
17
|
-
exports.PrismicText = require_PrismicText
|
|
18
|
-
exports.SliceZone = require_SliceZone
|
|
14
|
+
exports.PrismicImage = require_PrismicImage;
|
|
15
|
+
exports.PrismicLink = require_PrismicLink;
|
|
16
|
+
exports.PrismicRichText = require_PrismicRichText;
|
|
17
|
+
exports.PrismicTable = require_PrismicTable;
|
|
18
|
+
exports.PrismicText = require_PrismicText;
|
|
19
|
+
exports.SliceZone = require_SliceZone;
|
|
19
20
|
exports.TODOSliceComponent = require_TODOSliceComponent.TODOSliceComponent;
|
|
21
|
+
exports.createPrismic = require_createPrismic.createPrismic;
|
|
20
22
|
exports.defineSliceZoneComponents = require_defineSliceZoneComponents.defineSliceZoneComponents;
|
|
21
23
|
exports.getRichTextComponentProps = require_getRichTextComponentProps.getRichTextComponentProps;
|
|
22
24
|
exports.getSliceComponentProps = require_getSliceComponentProps.getSliceComponentProps;
|
|
@@ -25,4 +27,5 @@ Object.defineProperty(exports, 'getTableComponentProps', {
|
|
|
25
27
|
get: function () {
|
|
26
28
|
return require_getTableComponentProps.getTableComponentProps_exports;
|
|
27
29
|
}
|
|
28
|
-
});
|
|
30
|
+
});
|
|
31
|
+
exports.usePrismic = require_createPrismic.usePrismic;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VueRichTextComponentProps, VueRichTextComponents } from "./PrismicRichText/types.cjs";
|
|
2
2
|
import { PrismicRichTextProps, _default as _default$2 } from "./PrismicRichText/PrismicRichText.vue.cjs";
|
|
3
3
|
import { getRichTextComponentProps } from "./PrismicRichText/getRichTextComponentProps.cjs";
|
|
4
|
+
import { VueTableComponents } from "./PrismicTable/types.cjs";
|
|
4
5
|
import { PrismicTableProps, _default as _default$3 } from "./PrismicTable/PrismicTable.vue.cjs";
|
|
5
6
|
import { getTableComponentProps_d_exports } from "./PrismicTable/getTableComponentProps.cjs";
|
|
6
7
|
import { PrismicImageProps, _default } from "./PrismicImage.vue.cjs";
|
|
@@ -11,4 +12,5 @@ import { SliceZoneProps, _default as _default$5 } from "./SliceZone/SliceZone.vu
|
|
|
11
12
|
import { TODOSliceComponent } from "./SliceZone/TODOSliceComponent.cjs";
|
|
12
13
|
import { getSliceComponentProps } from "./SliceZone/getSliceComponentProps.cjs";
|
|
13
14
|
import { defineSliceZoneComponents } from "./SliceZone/defineSliceZoneComponents.cjs";
|
|
14
|
-
|
|
15
|
+
import { PrismicPlugin, PrismicPluginConfig, createPrismic, usePrismic } from "./createPrismic.cjs";
|
|
16
|
+
export { _default as PrismicImage, type PrismicImageProps, _default$1 as PrismicLink, type PrismicLinkProps, type PrismicPlugin, type PrismicPluginConfig, _default$2 as PrismicRichText, type PrismicRichTextProps, _default$3 as PrismicTable, type PrismicTableProps, _default$4 as PrismicText, type PrismicTextProps, type SliceComponentProps, type SliceComponentType, type SliceLike, type SliceLikeGraphQL, type SliceLikeRestV2, _default$5 as SliceZone, type SliceZoneComponents, type SliceZoneLike, type SliceZoneProps, TODOSliceComponent, type VueRichTextComponentProps, type VueRichTextComponents, type VueTableComponents, createPrismic, defineSliceZoneComponents, getRichTextComponentProps, getSliceComponentProps, getTableComponentProps_d_exports as getTableComponentProps, usePrismic };
|