@prismicio/vue 5.3.0-pr.85.0e554a8 → 5.3.0-pr.86.81afa1a
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 +4 -4
- package/dist/PrismicImage.vue.d.cts.map +1 -1
- package/dist/PrismicLink.vue.d.cts +24 -104
- package/dist/PrismicLink.vue.d.cts.map +1 -1
- package/dist/PrismicRichText/PrismicRichText.vue.d.cts +27 -32
- package/dist/PrismicRichText/PrismicRichText.vue.d.cts.map +1 -1
- package/dist/PrismicRichText/types.d.cts +15 -2
- package/dist/PrismicRichText/types.d.cts.map +1 -1
- package/dist/PrismicTable/PrismicTable.vue.d.cts +8 -8
- package/dist/PrismicTable/PrismicTable.vue.d.cts.map +1 -1
- package/dist/PrismicTable/types.d.cts +7 -6
- package/dist/PrismicTable/types.d.cts.map +1 -1
- package/dist/PrismicText.vue.d.cts +2 -10
- package/dist/PrismicText.vue.d.cts.map +1 -1
- package/dist/SliceZone/SliceZone.vue.d.cts +2 -10
- 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 +4 -4
- 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 +24 -104
- 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 +31 -36
- package/dist/src/PrismicRichText/PrismicRichText.vue.d.ts.map +1 -1
- package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs +19 -52
- 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 +20 -53
- 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 +75 -35
- 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 +76 -36
- 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 +29 -8
- 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 +30 -9
- package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/src/PrismicRichText/types.d.ts +15 -2
- 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 +9 -9
- package/dist/src/PrismicTable/PrismicTable.vue.d.ts.map +1 -1
- package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs +5 -5
- 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 +5 -5
- 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/types.d.ts +7 -6
- 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 +2 -10
- 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 +2 -10
- 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.d.ts +2 -352
- package/dist/src/types.d.ts.map +1 -1
- package/dist/types.d.cts +2 -352
- package/dist/types.d.cts.map +1 -1
- package/package.json +6 -5
- package/src/PrismicImage.vue +2 -11
- package/src/PrismicLink.vue +9 -34
- package/src/PrismicRichText/PrismicRichText.vue +31 -101
- package/src/PrismicRichText/PrismicRichTextDefaultComponent.vue +46 -20
- package/src/PrismicRichText/PrismicRichTextSerialize.vue +31 -10
- package/src/PrismicRichText/types.ts +16 -1
- package/src/PrismicTable/PrismicTable.vue +7 -7
- package/src/PrismicTable/PrismicTableDefaultComponents.ts +39 -20
- package/src/PrismicTable/types.ts +16 -6
- package/src/PrismicText.vue +2 -15
- package/src/SliceZone/SliceZone.vue +9 -27
- package/src/index.ts +13 -21
- package/src/types.ts +1 -439
- 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/usePrismic.ts +0 -36
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue6 from "vue";
|
|
2
2
|
import { ImageField, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet } from "@prismicio/client";
|
|
3
3
|
|
|
4
4
|
//#region src/PrismicImage.vue.d.ts
|
|
@@ -76,7 +76,7 @@ type PrismicImageProps = {
|
|
|
76
76
|
*/
|
|
77
77
|
pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
|
|
78
78
|
});
|
|
79
|
-
declare const __VLS_export:
|
|
79
|
+
declare const __VLS_export: vue6.DefineComponent<({
|
|
80
80
|
/**
|
|
81
81
|
* The Prismic image field or thumbnail to render.
|
|
82
82
|
*/
|
|
@@ -185,7 +185,7 @@ declare const __VLS_export: vue21.DefineComponent<({
|
|
|
185
185
|
* densities will be used: 1, 2, 3.
|
|
186
186
|
*/
|
|
187
187
|
pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
|
|
188
|
-
}), {}, {}, {}, {},
|
|
188
|
+
}), {}, {}, {}, {}, vue6.ComponentOptionsMixin, vue6.ComponentOptionsMixin, {}, string, vue6.PublicProps, Readonly<({
|
|
189
189
|
/**
|
|
190
190
|
* The Prismic image field or thumbnail to render.
|
|
191
191
|
*/
|
|
@@ -294,7 +294,7 @@ declare const __VLS_export: vue21.DefineComponent<({
|
|
|
294
294
|
* densities will be used: 1, 2, 3.
|
|
295
295
|
*/
|
|
296
296
|
pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
|
|
297
|
-
})> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
297
|
+
})> & Readonly<{}>, {}, {}, {}, {}, string, vue6.ComponentProvideOptions, false, {}, any>;
|
|
298
298
|
declare const _default: typeof __VLS_export;
|
|
299
299
|
//#endregion
|
|
300
300
|
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":";;;;;;;AA4NA;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;EAiIX;;;;;;EArJY,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;;;;;;;AAgIY;;;;WArJZ,YAAY,kBAAkB;;;;;;;;;;;;;;;;kBAoB9B,YACA,kBAAkB;;cAgIlB,mBAAY;;;;SA5MV,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgD3B,YAAY,kBAAkB;;;;;;;;;SAvD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoE3B,YACA,kBAAkB;oBADP,IAAA,CAAA,qBAAA;;;;SA3ET,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAgD3B,YAAY,kBAAkB;;;;;;;;;SAvD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAoE3B,YACA,kBAAkB;;cAgIN,iBAGU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentOrTagName } from "./types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue21 from "vue";
|
|
3
3
|
import { AsLinkAttrsConfig, LinkField, LinkResolverFunction, PrismicDocument } from "@prismicio/client";
|
|
4
4
|
|
|
5
5
|
//#region src/PrismicLink.vue.d.ts
|
|
@@ -21,34 +21,18 @@ type PrismicLinkProps = {
|
|
|
21
21
|
* The `rel` attribute for the link. By default, `"noreferrer"` is provided if
|
|
22
22
|
* the link's URL is external. This prop can be provided a function to use the
|
|
23
23
|
* link's metadata to determine the `rel` value.
|
|
24
|
-
*
|
|
25
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured.
|
|
26
24
|
*/
|
|
27
25
|
rel?: string | AsLinkAttrsConfig["rel"];
|
|
28
26
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
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).
|
|
27
|
+
* The Vue component rendered for links when the URL is internal.
|
|
37
28
|
*
|
|
38
|
-
* @defaultValue
|
|
29
|
+
* @defaultValue `<RouterLink>`
|
|
39
30
|
*/
|
|
40
31
|
internalComponent?: ComponentOrTagName;
|
|
41
32
|
/**
|
|
42
|
-
*
|
|
33
|
+
* The Vue component rendered for links when the URL is external.
|
|
43
34
|
*
|
|
44
|
-
* @
|
|
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).
|
|
50
|
-
*
|
|
51
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured, `"a"` otherwise.
|
|
35
|
+
* @defaultValue `<a>`
|
|
52
36
|
*/
|
|
53
37
|
externalComponent?: ComponentOrTagName;
|
|
54
38
|
} & ({
|
|
@@ -68,7 +52,7 @@ 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: vue21.DefineComponent<({
|
|
72
56
|
/**
|
|
73
57
|
* A link resolver function used to resolve links when not using the route
|
|
74
58
|
* resolver parameter with `@prismicio/client`.
|
|
@@ -82,34 +66,18 @@ declare const __VLS_base: vue26.DefineComponent<({
|
|
|
82
66
|
* The `rel` attribute for the link. By default, `"noreferrer"` is provided if
|
|
83
67
|
* the link's URL is external. This prop can be provided a function to use the
|
|
84
68
|
* link's metadata to determine the `rel` value.
|
|
85
|
-
*
|
|
86
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured.
|
|
87
69
|
*/
|
|
88
70
|
rel?: string | AsLinkAttrsConfig["rel"];
|
|
89
71
|
/**
|
|
90
|
-
*
|
|
72
|
+
* The Vue component rendered for links when the URL is internal.
|
|
91
73
|
*
|
|
92
|
-
* @
|
|
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).
|
|
98
|
-
*
|
|
99
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured, {@link RouterLink} otherwise.
|
|
74
|
+
* @defaultValue `<RouterLink>`
|
|
100
75
|
*/
|
|
101
76
|
internalComponent?: ComponentOrTagName;
|
|
102
77
|
/**
|
|
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).
|
|
78
|
+
* The Vue component rendered for links when the URL is external.
|
|
111
79
|
*
|
|
112
|
-
* @defaultValue
|
|
80
|
+
* @defaultValue `<a>`
|
|
113
81
|
*/
|
|
114
82
|
externalComponent?: ComponentOrTagName;
|
|
115
83
|
} & {
|
|
@@ -132,34 +100,18 @@ declare const __VLS_base: vue26.DefineComponent<({
|
|
|
132
100
|
* The `rel` attribute for the link. By default, `"noreferrer"` is provided if
|
|
133
101
|
* the link's URL is external. This prop can be provided a function to use the
|
|
134
102
|
* link's metadata to determine the `rel` value.
|
|
135
|
-
*
|
|
136
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured.
|
|
137
103
|
*/
|
|
138
104
|
rel?: string | AsLinkAttrsConfig["rel"];
|
|
139
105
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
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).
|
|
106
|
+
* The Vue component rendered for links when the URL is internal.
|
|
148
107
|
*
|
|
149
|
-
* @defaultValue
|
|
108
|
+
* @defaultValue `<RouterLink>`
|
|
150
109
|
*/
|
|
151
110
|
internalComponent?: ComponentOrTagName;
|
|
152
111
|
/**
|
|
153
|
-
*
|
|
112
|
+
* The Vue component rendered for links when the URL is external.
|
|
154
113
|
*
|
|
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.
|
|
114
|
+
* @defaultValue `<a>`
|
|
163
115
|
*/
|
|
164
116
|
externalComponent?: ComponentOrTagName;
|
|
165
117
|
} & {
|
|
@@ -168,7 +120,7 @@ declare const __VLS_base: vue26.DefineComponent<({
|
|
|
168
120
|
*/
|
|
169
121
|
document: PrismicDocument;
|
|
170
122
|
field?: never;
|
|
171
|
-
}), {}, {}, {}, {},
|
|
123
|
+
}), {}, {}, {}, {}, vue21.ComponentOptionsMixin, vue21.ComponentOptionsMixin, {}, string, vue21.PublicProps, Readonly<({
|
|
172
124
|
/**
|
|
173
125
|
* A link resolver function used to resolve links when not using the route
|
|
174
126
|
* resolver parameter with `@prismicio/client`.
|
|
@@ -182,34 +134,18 @@ declare const __VLS_base: vue26.DefineComponent<({
|
|
|
182
134
|
* The `rel` attribute for the link. By default, `"noreferrer"` is provided if
|
|
183
135
|
* the link's URL is external. This prop can be provided a function to use the
|
|
184
136
|
* link's metadata to determine the `rel` value.
|
|
185
|
-
*
|
|
186
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured.
|
|
187
137
|
*/
|
|
188
138
|
rel?: string | AsLinkAttrsConfig["rel"];
|
|
189
139
|
/**
|
|
190
|
-
*
|
|
140
|
+
* The Vue component rendered for links when the URL is internal.
|
|
191
141
|
*
|
|
192
|
-
* @
|
|
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).
|
|
198
|
-
*
|
|
199
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured, {@link RouterLink} otherwise.
|
|
142
|
+
* @defaultValue `<RouterLink>`
|
|
200
143
|
*/
|
|
201
144
|
internalComponent?: ComponentOrTagName;
|
|
202
145
|
/**
|
|
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).
|
|
146
|
+
* The Vue component rendered for links when the URL is external.
|
|
211
147
|
*
|
|
212
|
-
* @defaultValue
|
|
148
|
+
* @defaultValue `<a>`
|
|
213
149
|
*/
|
|
214
150
|
externalComponent?: ComponentOrTagName;
|
|
215
151
|
} & {
|
|
@@ -232,34 +168,18 @@ declare const __VLS_base: vue26.DefineComponent<({
|
|
|
232
168
|
* The `rel` attribute for the link. By default, `"noreferrer"` is provided if
|
|
233
169
|
* the link's URL is external. This prop can be provided a function to use the
|
|
234
170
|
* link's metadata to determine the `rel` value.
|
|
235
|
-
*
|
|
236
|
-
* @defaultValue The one provided to `@prismicio/vue` plugin if configured.
|
|
237
171
|
*/
|
|
238
172
|
rel?: string | AsLinkAttrsConfig["rel"];
|
|
239
173
|
/**
|
|
240
|
-
*
|
|
241
|
-
*
|
|
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).
|
|
174
|
+
* The Vue component rendered for links when the URL is internal.
|
|
248
175
|
*
|
|
249
|
-
* @defaultValue
|
|
176
|
+
* @defaultValue `<RouterLink>`
|
|
250
177
|
*/
|
|
251
178
|
internalComponent?: ComponentOrTagName;
|
|
252
179
|
/**
|
|
253
|
-
*
|
|
254
|
-
*
|
|
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).
|
|
180
|
+
* The Vue component rendered for links when the URL is external.
|
|
261
181
|
*
|
|
262
|
-
* @defaultValue
|
|
182
|
+
* @defaultValue `<a>`
|
|
263
183
|
*/
|
|
264
184
|
externalComponent?: ComponentOrTagName;
|
|
265
185
|
} & {
|
|
@@ -268,7 +188,7 @@ declare const __VLS_base: vue26.DefineComponent<({
|
|
|
268
188
|
*/
|
|
269
189
|
document: PrismicDocument;
|
|
270
190
|
field?: never;
|
|
271
|
-
})> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
191
|
+
})> & Readonly<{}>, {}, {}, {}, {}, string, vue21.ComponentProvideOptions, false, {}, any>;
|
|
272
192
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
273
193
|
declare const _default: typeof __VLS_export;
|
|
274
194
|
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;AASgB,KATJ,gBAAA,GASI;EAOA;;;;;;AA8Bf;AA0EqB;EAOhB,YAAA,CAEJ,EAxHc,oBAwHd;EAxHc;;;;;EAAA,GAAA,CAAA,EAAA,MAAA,GAOA,iBAPA,CAAA,KAAA,CAAA;EAOA;;;;;sBAOK;;;;;;EAaX,iBAAA,CAAA,EANW,kBAMX;CA3BM,GAAA,CAAA;EAOA;;;EA2BH,KAAA,EAPH,SAOG;;;;;;EAuFP,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;;;;;;;;;iBAtHA;;;;;;iBAOA;;;;;;sBAOK;;;;;;sBAOA;;;;;SAMX;;;;;;;;;;;iBA3BM;;;;;;iBAOA;;;;;;sBAOK;;;;;;sBAOA;;;;;YAaR;;oBAAe,KAAA,CAAA,qBAAA;;;;;;;;;iBAlCZ;;;;;;iBAOA;;;;;;sBAOK;;;;;;sBAOA;;;;;SAMX;;;;;;;;;;;iBA3BM;;;;;;iBAOA;;;;;;sBAOK;;;;;;sBAOA;;;;;YAaR;;;cAuFP,cAAqB,uBAAuB,YAAY;cAApB,iBACd;KACvB,wBAAwB;;YAEnB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
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
|
/**
|
|
@@ -13,11 +13,6 @@ type PrismicRichTextProps = {
|
|
|
13
13
|
* The Prismic rich text or title field to render.
|
|
14
14
|
*/
|
|
15
15
|
field: RichTextField | null | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* The value to be rendered when the field is empty. If a fallback is not
|
|
18
|
-
* given, `null` (nothing) will be rendered.
|
|
19
|
-
*/
|
|
20
|
-
fallback?: ComponentOrTagName;
|
|
21
16
|
/**
|
|
22
17
|
* An object that maps a rich text block type to a Vue component.
|
|
23
18
|
*
|
|
@@ -40,60 +35,60 @@ type PrismicRichTextProps = {
|
|
|
40
35
|
*/
|
|
41
36
|
linkResolver?: LinkResolverFunction;
|
|
42
37
|
/**
|
|
43
|
-
*
|
|
38
|
+
* The Vue component rendered for links when the URL is internal.
|
|
44
39
|
*
|
|
45
|
-
* @
|
|
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}
|
|
40
|
+
* @defaultValue `<RouterLink>`
|
|
50
41
|
*/
|
|
51
|
-
|
|
42
|
+
internalLinkComponent?: ComponentOrTagName;
|
|
52
43
|
/**
|
|
53
|
-
*
|
|
54
|
-
* is not wrapped by default.
|
|
44
|
+
* The Vue component rendered for links when the URL is external.
|
|
55
45
|
*
|
|
56
|
-
* @defaultValue
|
|
46
|
+
* @defaultValue `<a>`
|
|
47
|
+
*/
|
|
48
|
+
externalLinkComponent?: ComponentOrTagName;
|
|
49
|
+
/**
|
|
50
|
+
* The value to be rendered when the field is empty. If a fallback is not
|
|
51
|
+
* given, `null` (nothing) will be rendered.
|
|
57
52
|
*/
|
|
58
|
-
|
|
53
|
+
fallback?: ComponentOrTagName;
|
|
59
54
|
};
|
|
60
55
|
declare const __VLS_export: vue0.DefineComponent<vue0.ExtractPropTypes<{
|
|
61
56
|
field: {
|
|
62
57
|
type: PropType<PrismicRichTextProps["field"]>;
|
|
63
58
|
};
|
|
64
|
-
fallback: {
|
|
65
|
-
type: PropType<PrismicRichTextProps["fallback"]>;
|
|
66
|
-
};
|
|
67
59
|
components: {
|
|
68
60
|
type: PropType<PrismicRichTextProps["components"]>;
|
|
69
61
|
};
|
|
70
62
|
linkResolver: {
|
|
71
63
|
type: PropType<PrismicRichTextProps["linkResolver"]>;
|
|
72
64
|
};
|
|
73
|
-
|
|
74
|
-
type: PropType<PrismicRichTextProps["
|
|
65
|
+
internalLinkComponent: {
|
|
66
|
+
type: PropType<PrismicRichTextProps["internalLinkComponent"]>;
|
|
75
67
|
};
|
|
76
|
-
|
|
77
|
-
type: PropType<PrismicRichTextProps["
|
|
68
|
+
externalLinkComponent: {
|
|
69
|
+
type: PropType<PrismicRichTextProps["externalLinkComponent"]>;
|
|
70
|
+
};
|
|
71
|
+
fallback: {
|
|
72
|
+
type: PropType<PrismicRichTextProps["fallback"]>;
|
|
78
73
|
};
|
|
79
74
|
}>, {}, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<vue0.ExtractPropTypes<{
|
|
80
75
|
field: {
|
|
81
76
|
type: PropType<PrismicRichTextProps["field"]>;
|
|
82
77
|
};
|
|
83
|
-
fallback: {
|
|
84
|
-
type: PropType<PrismicRichTextProps["fallback"]>;
|
|
85
|
-
};
|
|
86
78
|
components: {
|
|
87
79
|
type: PropType<PrismicRichTextProps["components"]>;
|
|
88
80
|
};
|
|
89
81
|
linkResolver: {
|
|
90
82
|
type: PropType<PrismicRichTextProps["linkResolver"]>;
|
|
91
83
|
};
|
|
92
|
-
|
|
93
|
-
type: PropType<PrismicRichTextProps["
|
|
84
|
+
internalLinkComponent: {
|
|
85
|
+
type: PropType<PrismicRichTextProps["internalLinkComponent"]>;
|
|
94
86
|
};
|
|
95
|
-
|
|
96
|
-
type: PropType<PrismicRichTextProps["
|
|
87
|
+
externalLinkComponent: {
|
|
88
|
+
type: PropType<PrismicRichTextProps["externalLinkComponent"]>;
|
|
89
|
+
};
|
|
90
|
+
fallback: {
|
|
91
|
+
type: PropType<PrismicRichTextProps["fallback"]>;
|
|
97
92
|
};
|
|
98
93
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, true, {}, any>;
|
|
99
94
|
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":";;;;;;;;;;AAmIY,KAAA,oBAAA,GAAoB;EAIxB;;;EA8BiB,KAAA,EA9BjB,aA8BiB,GAAA,IAAA,GAAA,SAAA;EAOA;;;AAOxB;;;;;;;;EAkGqC,UAAA,CAAA,EAjIxB,qBAiIwB;EAMnC;;;;;;;;EAfkC,YAAA,CAAA,EA9GrB,oBA8GqB;EAAT;;;;;EAUzB,qBAAA,CAAA,EAjHsB,kBAiHtB;EADmC;;;;;EAUQ,qBAAA,CAAA,EAnHrB,kBAmHqB;;;;;EAtB5B,QAAA,CAAA,EAvFN,kBAuFM;AAAA,CAAA;cAAZ,mBAAY,gBAsB4B,IAAA,CAtB5B;;UAGU,SAAS;;;UAGnB,SAAS;;;UAGP,SAAS;;;UAGS,SACnC;;;UAImC,SACnC;;;UAImC,SACnC;;oBAvBe,IAAA,CAAA,qBAAA,qEAsB4B,IAAA,CAAA;;UAnBlB,SAAS;;;UAGnB,SAAS;;;UAGP,SAAS;;;UAGS,SACnC;;;UAImC,SACnC;;;UAImC,SACnC;;;cAvBe,iBA4BU"}
|
|
@@ -9,7 +9,7 @@ import { RTAnyNode, RichTextNodeType } from "@prismicio/client";
|
|
|
9
9
|
*
|
|
10
10
|
* @see Templating Rich Text and title fields from Prismic {@link https://prismic.io/docs/rich-text}
|
|
11
11
|
*/
|
|
12
|
-
type VueRichTextSerializer = Partial<Record<keyof typeof RichTextNodeType, VueRichTextComponent>>;
|
|
12
|
+
type VueRichTextSerializer = Partial<Record<keyof typeof RichTextNodeType, VueRichTextComponent | VueShorthand>>;
|
|
13
13
|
/**
|
|
14
14
|
* Props for a component rendering nodes from a Prismic rich text field.
|
|
15
15
|
*/
|
|
@@ -22,6 +22,19 @@ type RichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode> = {
|
|
|
22
22
|
* @typeParam TRTNode - The type of rich text node(s) this component handles
|
|
23
23
|
*/
|
|
24
24
|
type VueRichTextComponent<TRTNode extends RTAnyNode = RTAnyNode> = DefineComponent<{}, {}, any> | ReturnType<typeof defineAsyncComponent> | DefineComponent<RichTextComponentProps<TRTNode>> | FunctionalComponent<RichTextComponentProps<TRTNode>>;
|
|
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
|
+
};
|
|
25
38
|
//#endregion
|
|
26
|
-
export { RichTextComponentProps, VueRichTextSerializer };
|
|
39
|
+
export { RichTextComponentProps, VueRichTextSerializer, VueShorthand };
|
|
27
40
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/PrismicRichText/types.ts"],"sourcesContent":[],"mappings":";;;;;;;AAaA;;;;
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/PrismicRichText/types.ts"],"sourcesContent":[],"mappings":";;;;;;;AAaA;;;;AACC,KADW,qBAAA,GAAwB,OACnC,CAAA,MAAA,CAAA,MAAA,OAAoB,gBAApB,EAAsC,oBAAtC,GAA6D,YAA7D,CAAA,CAAA;;;AAMD;AAAmD,KAAvC,sBAAuC,CAAA,gBAAA,SAAA,GAAY,SAAZ,CAAA,GAAA;EAAY,IAAA,EACxD,OADwD;CACxD;;AACN;;;;KAOI,oBAKgB,CAAA,gBALqB,SAKrB,GALiC,SAKjC,CAAA,GAFlB,eAEkB,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA,CAAA,GAAlB,UAAkB,CAAA,OAAA,oBAAA,CAAA,GAClB,eADkB,CACF,sBADE,CACqB,OADrB,CAAA,CAAA,GAElB,mBAFkB,CAEE,sBAFF,CAEyB,OAFzB,CAAA,CAAA;;;;AAClB,KAMS,YAAA,GANT;EAC2C;;;EAAxB,EAAA,CAAA,EAAA,MAAA;EAKV"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { VueRichTextSerializer } from "../PrismicRichText/types.cjs";
|
|
2
1
|
import { ComponentOrTagName } from "../types.cjs";
|
|
2
|
+
import { VueRichTextSerializer } from "../PrismicRichText/types.cjs";
|
|
3
3
|
import { VueTableComponents } from "./types.cjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue11 from "vue";
|
|
5
5
|
import { TableField } from "@prismicio/client";
|
|
6
6
|
|
|
7
7
|
//#region src/PrismicTable/PrismicTable.vue.d.ts
|
|
@@ -13,11 +13,6 @@ type PrismicTableProps = {
|
|
|
13
13
|
* The Prismic table field to render.
|
|
14
14
|
*/
|
|
15
15
|
field: TableField | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* The value to be rendered when the field is empty. If a fallback is not
|
|
18
|
-
* given, `null` (nothing) will be rendered.
|
|
19
|
-
*/
|
|
20
|
-
fallback?: ComponentOrTagName;
|
|
21
16
|
/**
|
|
22
17
|
* An object that maps a table block type to a Vue component.
|
|
23
18
|
*
|
|
@@ -30,8 +25,13 @@ type PrismicTableProps = {
|
|
|
30
25
|
* ```
|
|
31
26
|
*/
|
|
32
27
|
components?: VueTableComponents & VueRichTextSerializer;
|
|
28
|
+
/**
|
|
29
|
+
* The value to be rendered when the field is empty. If a fallback is not
|
|
30
|
+
* given, `null` (nothing) will be rendered.
|
|
31
|
+
*/
|
|
32
|
+
fallback?: ComponentOrTagName;
|
|
33
33
|
};
|
|
34
|
-
declare const __VLS_export:
|
|
34
|
+
declare const __VLS_export: vue11.DefineComponent<PrismicTableProps, {}, {}, {}, {}, vue11.ComponentOptionsMixin, vue11.ComponentOptionsMixin, {}, string, vue11.PublicProps, Readonly<PrismicTableProps> & Readonly<{}>, {}, {}, {}, {}, string, vue11.ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const _default: typeof __VLS_export;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { PrismicTableProps, _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicTable.vue.d.cts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;AAgGY,KAAA,iBAAA,GAAiB;EAIrB;;;
|
|
1
|
+
{"version":3,"file":"PrismicTable.vue.d.cts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"sourcesContent":[],"mappings":";;;;;;;;;;AAgGY,KAAA,iBAAA,GAAiB;EAIrB;;;EAmBI,KAAA,EAnBJ,UAmBI,GAAA,SAAA;EAAkB;AAC7B;;;;;;;;;;EAqHiB,UAAA,CAAA,EA5HJ,kBA4HI,GA5HiB,qBA4HjB;EAAA;;;;aAtHN;;cAsHN,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,3 +1,4 @@
|
|
|
1
|
+
import { VueShorthand } from "../PrismicRichText/types.cjs";
|
|
1
2
|
import { DefineComponent, FunctionalComponent, defineAsyncComponent } from "vue";
|
|
2
3
|
import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "@prismicio/client";
|
|
3
4
|
|
|
@@ -12,22 +13,22 @@ import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, Tabl
|
|
|
12
13
|
type VueTableComponents = {
|
|
13
14
|
table?: VueComponent<{
|
|
14
15
|
table: TableField<"filled">;
|
|
15
|
-
}
|
|
16
|
+
}> | VueShorthand;
|
|
16
17
|
thead?: VueComponent<{
|
|
17
18
|
head: TableFieldHead;
|
|
18
|
-
}
|
|
19
|
+
}> | VueShorthand;
|
|
19
20
|
tbody?: VueComponent<{
|
|
20
21
|
body: TableFieldBody;
|
|
21
|
-
}
|
|
22
|
+
}> | VueShorthand;
|
|
22
23
|
tr?: VueComponent<{
|
|
23
24
|
row: TableFieldBodyRow | TableFieldHeadRow;
|
|
24
|
-
}
|
|
25
|
+
}> | VueShorthand;
|
|
25
26
|
th?: VueComponent<{
|
|
26
27
|
cell: TableFieldHeaderCell;
|
|
27
|
-
}
|
|
28
|
+
}> | VueShorthand;
|
|
28
29
|
td?: VueComponent<{
|
|
29
30
|
cell: TableFieldDataCell;
|
|
30
|
-
}
|
|
31
|
+
}> | VueShorthand;
|
|
31
32
|
};
|
|
32
33
|
type VueComponent<TProps> = ReturnType<typeof defineAsyncComponent> | DefineComponent<TProps> | FunctionalComponent<TProps>;
|
|
33
34
|
//#endregion
|
|
@@ -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":";;;;;;;;AAsBA;;;;AAE8B,KAFlB,kBAAA,GAEkB;EAArB,KAAA,CAAA,EADA,YACA,CAAA;IAAyC,KAAA,EADnB,UACmB,CAAA,QAAA,CAAA;EACpB,CAAA,CAAA,GAF2B,YAE3B;EAArB,KAAA,CAAA,EADA,YACA,CAAA;IAAyC,IAAA,EADpB,cACoB;EACxB,CAAA,CAAA,GAFwB,YAExB;EAAoB,KAAA,CAAA,EADrC,YACqC,CAAA;IAAxC,IAAA,EADwB,cACxB;EAA+D,CAAA,CAAA,GADnB,YACmB;EAC1C,EAAA,CAAA,EADrB,YACqB,CAAA;IAArB,GAAA,EADoB,iBACpB,GADwC,iBACxC;EAA+C,CAAA,CAAA,GADgB,YAChB;EAC1B,EAAA,CAAA,EADrB,YACqB,CAAA;IAArB,IAAA,EADqB,oBACrB;EAA6C,CAAA,CAAA,GADE,YACF;EAAY,EAAA,CAAA,EAAzD,YAAyD,CAAA;IAY1D,IAAA,EAZsB,kBAYV;EACI,CAAA,CAAA,GAb8B,YAa9B;CAAlB;KADE,uBACF,kBAAkB,wBAClB,gBAAgB,UAChB,oBAAoB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as vue31 from "vue";
|
|
1
|
+
import * as vue26 from "vue";
|
|
3
2
|
import { RichTextField } from "@prismicio/client";
|
|
4
3
|
|
|
5
4
|
//#region src/PrismicText.vue.d.ts
|
|
@@ -22,15 +21,8 @@ type PrismicTextProps = {
|
|
|
22
21
|
* @defaultValue `" "` (a whitespace)
|
|
23
22
|
*/
|
|
24
23
|
separator?: string;
|
|
25
|
-
/**
|
|
26
|
-
* An HTML tag name or a component used to wrap the output. `<PrismicText />`
|
|
27
|
-
* is not wrapped by default.
|
|
28
|
-
*
|
|
29
|
-
* @defaultValue `"template"` (no wrapper)
|
|
30
|
-
*/
|
|
31
|
-
wrapper?: ComponentOrTagName;
|
|
32
24
|
};
|
|
33
|
-
declare const __VLS_export:
|
|
25
|
+
declare const __VLS_export: vue26.DefineComponent<PrismicTextProps, {}, {}, {}, {}, vue26.ComponentOptionsMixin, vue26.ComponentOptionsMixin, {}, string, vue26.PublicProps, Readonly<PrismicTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue26.ComponentProvideOptions, false, {}, any>;
|
|
34
26
|
declare const _default: typeof __VLS_export;
|
|
35
27
|
//#endregion
|
|
36
28
|
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":";;;;;;;AA8DY,KAAA,gBAAA,GAAgB;EAuDtB;;;EAAY,KAAA,EAnDV,aAmDU,GAAA,IAAA,GAAA,SAAA;EAAA;;;;EAAA,QAAA,CAAA,EAAA,MAAA;EAAA;;AAAA;;;;;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,6 +1,5 @@
|
|
|
1
1
|
import { SliceComponentType, SliceLike, SliceZoneComponents, SliceZoneLike } from "./types.cjs";
|
|
2
|
-
import
|
|
3
|
-
import * as vue11 from "vue";
|
|
2
|
+
import * as vue16 from "vue";
|
|
4
3
|
|
|
5
4
|
//#region src/SliceZone/SliceZone.vue.d.ts
|
|
6
5
|
|
|
@@ -32,16 +31,9 @@ type SliceZoneProps<TContext = unknown> = {
|
|
|
32
31
|
* Arbitrary data made available to all Slice components.
|
|
33
32
|
*/
|
|
34
33
|
context?: TContext;
|
|
35
|
-
/**
|
|
36
|
-
* An HTML tag name or a component used to wrap the output. `<SliceZone />` is
|
|
37
|
-
* not wrapped by default.
|
|
38
|
-
*
|
|
39
|
-
* @defaultValue `"template"` (no wrapper)
|
|
40
|
-
*/
|
|
41
|
-
wrapper?: ComponentOrTagName;
|
|
42
34
|
};
|
|
43
35
|
type __VLS_Props = SliceZoneProps;
|
|
44
|
-
declare const __VLS_export:
|
|
36
|
+
declare const __VLS_export: vue16.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue16.ComponentOptionsMixin, vue16.ComponentOptionsMixin, {}, string, vue16.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue16.ComponentProvideOptions, false, {}, any>;
|
|
45
37
|
declare const _default: typeof __VLS_export;
|
|
46
38
|
//#endregion
|
|
47
39
|
export { SliceZoneProps, _default };
|
|
@@ -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":";;;;;;;;AAiHA;;AAIoC,KAJxB,cAIwB,CAAA,WAAA,OAAA,CAAA,GAAA;EAAY;;;EAiBJ,MAAA,EAjBnC,aAiBmC,CAjBrB,SAiBqB,GAAA,CAjBR,SAiBQ,GAjBI,MAiBJ,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA,CAAA;EAAxB;;;EAQf,UAAA,CAAA,EApBS,mBAoBK;EAyEb;;;;;;;;;EAAY,gBAAA,CAAA,EAjFE,kBAiFF,CAAA,GAAA,EAjF0B,QAiF1B,CAAA;EAAA;AAAA;;YA5EP;;KAGN,WAAA,GAAc;cAyEb,cAAY,KAAA,CAAA,gBAAA,6BAAA,KAAA,CAAA,qBAAA,EAAA,KAAA,CAAA,qBAAA,cAAA,KAAA,CAAA,WAAA,EAAA,SAAA,eAAA,sCAAA,KAAA,CAAA,uBAAA;cAAA,iBAGU"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
const require_usePrismic = require('./src/usePrismic.cjs');
|
|
2
|
-
const require_PrismicEmbed = require('./src/PrismicEmbed.cjs');
|
|
3
1
|
const require_PrismicImage = require('./src/PrismicImage.cjs');
|
|
4
2
|
const require_PrismicLink = require('./src/PrismicLink.cjs');
|
|
5
3
|
const require_PrismicRichText = require('./src/PrismicRichText/PrismicRichText.cjs');
|
|
4
|
+
const require_getRichTextComponentProps = require('./src/PrismicRichText/getRichTextComponentProps.cjs');
|
|
6
5
|
const require_getTableComponentProps = require('./src/PrismicTable/getTableComponentProps.cjs');
|
|
7
6
|
const require_PrismicTable = require('./src/PrismicTable/PrismicTable.cjs');
|
|
7
|
+
const require_PrismicText = require('./src/PrismicText.cjs');
|
|
8
8
|
const require_TODOSliceComponent = require('./src/SliceZone/TODOSliceComponent.cjs');
|
|
9
9
|
const require_SliceZone = require('./src/SliceZone/SliceZone.cjs');
|
|
10
|
-
const require_PrismicText = require('./src/PrismicText.cjs');
|
|
11
|
-
const require_getRichTextComponentProps = require('./src/PrismicRichText/getRichTextComponentProps.cjs');
|
|
12
10
|
const require_getSliceComponentProps = require('./src/SliceZone/getSliceComponentProps.cjs');
|
|
13
11
|
const require_defineSliceZoneComponents = require('./src/SliceZone/defineSliceZoneComponents.cjs');
|
|
14
|
-
const require_createPrismic = require('./src/createPrismic.cjs');
|
|
15
12
|
|
|
16
|
-
exports.PrismicEmbed = require_PrismicEmbed.default;
|
|
17
13
|
exports.PrismicImage = require_PrismicImage.default;
|
|
18
14
|
exports.PrismicLink = require_PrismicLink.default;
|
|
19
15
|
exports.PrismicRichText = require_PrismicRichText.default;
|
|
@@ -21,7 +17,6 @@ exports.PrismicTable = require_PrismicTable.default;
|
|
|
21
17
|
exports.PrismicText = require_PrismicText.default;
|
|
22
18
|
exports.SliceZone = require_SliceZone.default;
|
|
23
19
|
exports.TODOSliceComponent = require_TODOSliceComponent.TODOSliceComponent;
|
|
24
|
-
exports.createPrismic = require_createPrismic.createPrismic;
|
|
25
20
|
exports.defineSliceZoneComponents = require_defineSliceZoneComponents.defineSliceZoneComponents;
|
|
26
21
|
exports.getRichTextComponentProps = require_getRichTextComponentProps.getRichTextComponentProps;
|
|
27
22
|
exports.getSliceComponentProps = require_getSliceComponentProps.getSliceComponentProps;
|
|
@@ -30,6 +25,4 @@ Object.defineProperty(exports, 'getTableComponentProps', {
|
|
|
30
25
|
get: function () {
|
|
31
26
|
return require_getTableComponentProps.getTableComponentProps_exports;
|
|
32
27
|
}
|
|
33
|
-
});
|
|
34
|
-
exports.prismicKey = require_usePrismic.prismicKey;
|
|
35
|
-
exports.usePrismic = require_usePrismic.usePrismic;
|
|
28
|
+
});
|