@prismicio/vue 3.2.0 → 3.2.1
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/components/PrismicEmbed.cjs.map +1 -1
- package/dist/components/PrismicEmbed.d.ts +1 -1
- package/dist/components/PrismicEmbed.js.map +1 -1
- package/dist/components/PrismicImage.cjs +2 -2
- package/dist/components/PrismicImage.cjs.map +1 -1
- package/dist/components/PrismicImage.d.ts +4 -4
- package/dist/components/PrismicImage.js +2 -2
- package/dist/components/PrismicImage.js.map +1 -1
- package/dist/components/PrismicLink.cjs +3 -3
- package/dist/components/PrismicLink.cjs.map +1 -1
- package/dist/components/PrismicLink.d.ts +5 -5
- package/dist/components/PrismicLink.js +3 -3
- package/dist/components/PrismicLink.js.map +1 -1
- package/dist/components/PrismicRichText.cjs +3 -3
- package/dist/components/PrismicRichText.cjs.map +1 -1
- package/dist/components/PrismicRichText.d.ts +3 -3
- package/dist/components/PrismicRichText.js +3 -3
- package/dist/components/PrismicRichText.js.map +1 -1
- package/dist/components/PrismicText.cjs +1 -1
- package/dist/components/PrismicText.cjs.map +1 -1
- package/dist/components/PrismicText.d.ts +2 -2
- package/dist/components/PrismicText.js +1 -1
- package/dist/components/PrismicText.js.map +1 -1
- package/dist/components/SliceZone.cjs +1 -1
- package/dist/components/SliceZone.cjs.map +1 -1
- package/dist/components/SliceZone.d.ts +2 -2
- package/dist/components/SliceZone.js +1 -1
- package/dist/components/SliceZone.js.map +1 -1
- package/dist/composables.cjs.map +1 -1
- package/dist/composables.js.map +1 -1
- package/dist/createPrismic.cjs.map +1 -1
- package/dist/createPrismic.js.map +1 -1
- package/dist/injectionSymbols.cjs.map +1 -1
- package/dist/injectionSymbols.js.map +1 -1
- package/dist/lib/simplyResolveComponent.cjs.map +1 -1
- package/dist/lib/simplyResolveComponent.js.map +1 -1
- package/dist/types.d.ts +4 -4
- package/dist/usePrismic.cjs.map +1 -1
- package/dist/usePrismic.js.map +1 -1
- package/dist/useStatefulPrismicClientMethod.cjs.map +1 -1
- package/dist/useStatefulPrismicClientMethod.d.ts +1 -1
- package/dist/useStatefulPrismicClientMethod.js.map +1 -1
- package/package.json +27 -19
- package/src/components/PrismicEmbed.ts +4 -3
- package/src/components/PrismicImage.ts +16 -15
- package/src/components/PrismicLink.ts +14 -13
- package/src/components/PrismicRichText.ts +15 -14
- package/src/components/PrismicText.ts +7 -7
- package/src/components/SliceZone.ts +7 -6
- package/src/composables.ts +2 -5
- package/src/createPrismic.ts +15 -15
- package/src/injectionSymbols.ts +0 -2
- package/src/lib/simplyResolveComponent.ts +1 -1
- package/src/types.ts +10 -13
- package/src/usePrismic.ts +2 -1
- package/src/useStatefulPrismicClientMethod.ts +3 -3
- package/vetur/attributes.json +1 -6
- package/vetur/tags.json +17 -3
package/vetur/attributes.json
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
"type": "string | object | function",
|
|
8
8
|
"description": "An HTML tag name, a component, or a functional component used to wrap the output. Defaults to `\"div\"`."
|
|
9
9
|
},
|
|
10
|
-
|
|
11
10
|
"prismic-image/field": {
|
|
12
11
|
"type": "object",
|
|
13
12
|
"description": "The Prismic image field to render."
|
|
@@ -28,7 +27,6 @@
|
|
|
28
27
|
"type": "array | string",
|
|
29
28
|
"description": "Adds an additional `srcset` attribute to the image following giving pixel densities."
|
|
30
29
|
},
|
|
31
|
-
|
|
32
30
|
"prismic-link/field": {
|
|
33
31
|
"type": "object",
|
|
34
32
|
"description": "The Prismic link field or document to render."
|
|
@@ -57,7 +55,6 @@
|
|
|
57
55
|
"type": "string | object | function",
|
|
58
56
|
"description": "An HTML tag name, a component, or a functional component used to render external links. Defaults to the one provided to `@prismicio/vue` plugin if configured, `\"a\"` otherwise."
|
|
59
57
|
},
|
|
60
|
-
|
|
61
58
|
"prismic-rich-text/field": {
|
|
62
59
|
"type": "array",
|
|
63
60
|
"description": "The Prismic rich text or title field to render."
|
|
@@ -66,7 +63,7 @@
|
|
|
66
63
|
"type": "function",
|
|
67
64
|
"description": "A link resolver function used to resolve links when not using the route resolver parameter with `@prismicio/client`. Defaults to the link resolver provided to `@prismicio/vue` plugin if configured."
|
|
68
65
|
},
|
|
69
|
-
"prismic-rich-text/
|
|
66
|
+
"prismic-rich-text/serializer": {
|
|
70
67
|
"type": "function | object",
|
|
71
68
|
"description": "An HTML serializer to customize the way rich text fields are rendered. Defaults to the HTML serializer provided to `@prismicio/vue` plugin if configured."
|
|
72
69
|
},
|
|
@@ -78,7 +75,6 @@
|
|
|
78
75
|
"type": "string",
|
|
79
76
|
"description": "The HTML value to be rendered when the field is empty. If a fallback is not given, `\"\"` (nothing) will be rendered."
|
|
80
77
|
},
|
|
81
|
-
|
|
82
78
|
"prismic-text/field": {
|
|
83
79
|
"type": "array",
|
|
84
80
|
"description": "The Prismic rich text or title field to render."
|
|
@@ -95,7 +91,6 @@
|
|
|
95
91
|
"type": "string",
|
|
96
92
|
"description": "The string value to be rendered when the field is empty. If a fallback is not given, `\"\"` (nothing) will be rendered."
|
|
97
93
|
},
|
|
98
|
-
|
|
99
94
|
"slice-zone/slices": {
|
|
100
95
|
"type": "array",
|
|
101
96
|
"description": "List of Slice data from the Slice Zone."
|
package/vetur/tags.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"prismic-embed": {
|
|
3
|
-
"attributes": [
|
|
3
|
+
"attributes": [
|
|
4
|
+
"field",
|
|
5
|
+
"wrapper"
|
|
6
|
+
],
|
|
4
7
|
"description": "Component to render a Prismic embed field."
|
|
5
8
|
},
|
|
6
9
|
"prismic-image": {
|
|
@@ -26,11 +29,22 @@
|
|
|
26
29
|
"description": "Component to render a Prismic link field."
|
|
27
30
|
},
|
|
28
31
|
"prismic-rich-text": {
|
|
29
|
-
"attributes": [
|
|
32
|
+
"attributes": [
|
|
33
|
+
"field",
|
|
34
|
+
"link-resolver",
|
|
35
|
+
"serializer",
|
|
36
|
+
"wrapper",
|
|
37
|
+
"fallback"
|
|
38
|
+
],
|
|
30
39
|
"description": "Component to render a Prismic rich text field as HTML."
|
|
31
40
|
},
|
|
32
41
|
"prismic-text": {
|
|
33
|
-
"attributes": [
|
|
42
|
+
"attributes": [
|
|
43
|
+
"field",
|
|
44
|
+
"separator",
|
|
45
|
+
"wrapper",
|
|
46
|
+
"fallback"
|
|
47
|
+
],
|
|
34
48
|
"description": "Component to render a Prismic rich text field as plain text."
|
|
35
49
|
},
|
|
36
50
|
"slice-zone": {
|