@prismicio/vue 5.3.0-pr.89.235a3d3 → 5.3.0-pr.89.33291fc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +8 -10
  2. package/dist/PrismicImage.vue.d.cts +4 -4
  3. package/dist/PrismicImage.vue.d.cts.map +1 -1
  4. package/dist/PrismicLink.vue.d.cts +5 -5
  5. package/dist/PrismicRichText/PrismicRichText.vue.d.cts +6 -6
  6. package/dist/PrismicRichText/PrismicRichText.vue.d.cts.map +1 -1
  7. package/dist/PrismicRichText/getRichTextComponentProps.d.cts +2 -2
  8. package/dist/PrismicRichText/getRichTextComponentProps.d.cts.map +1 -1
  9. package/dist/PrismicRichText/types.d.cts +24 -24
  10. package/dist/PrismicRichText/types.d.cts.map +1 -1
  11. package/dist/PrismicTable/PrismicTable.vue.d.cts +5 -5
  12. package/dist/PrismicTable/PrismicTable.vue.d.cts.map +1 -1
  13. package/dist/PrismicTable/types.d.cts +15 -15
  14. package/dist/PrismicTable/types.d.cts.map +1 -1
  15. package/dist/PrismicText.vue.d.cts +2 -2
  16. package/dist/SliceZone/types.d.cts +2 -2
  17. package/dist/SliceZone/types.d.cts.map +1 -1
  18. package/dist/createPrismic.d.cts +29 -14
  19. package/dist/createPrismic.d.cts.map +1 -1
  20. package/dist/index.d.cts +3 -3
  21. package/dist/index.d.ts +3 -3
  22. package/dist/package.cjs +1 -1
  23. package/dist/package.js +1 -1
  24. package/dist/src/PrismicImage.vue.d.ts +4 -4
  25. package/dist/src/PrismicImage.vue.d.ts.map +1 -1
  26. package/dist/src/PrismicLink.cjs.map +1 -1
  27. package/dist/src/PrismicLink.js.map +1 -1
  28. package/dist/src/PrismicLink.vue.d.ts +9 -9
  29. package/dist/src/PrismicLink.vue.d.ts.map +1 -1
  30. package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.cjs +3 -3
  31. package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  32. package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.js +3 -3
  33. package/dist/src/PrismicLink.vue_vue_type_script_setup_true_lang.js.map +1 -1
  34. package/dist/src/PrismicRichText/PrismicRichText.cjs.map +1 -1
  35. package/dist/src/PrismicRichText/PrismicRichText.js.map +1 -1
  36. package/dist/src/PrismicRichText/PrismicRichText.vue.d.ts +6 -6
  37. package/dist/src/PrismicRichText/PrismicRichText.vue.d.ts.map +1 -1
  38. package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs +3 -3
  39. package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  40. package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.js +4 -4
  41. package/dist/src/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.js.map +1 -1
  42. package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.cjs.map +1 -1
  43. package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.js.map +1 -1
  44. package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  45. package/dist/src/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.js.map +1 -1
  46. package/dist/src/PrismicRichText/PrismicRichTextSerialize.cjs.map +1 -1
  47. package/dist/src/PrismicRichText/PrismicRichTextSerialize.js.map +1 -1
  48. package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  49. package/dist/src/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.js.map +1 -1
  50. package/dist/src/PrismicRichText/getRichTextComponentProps.cjs.map +1 -1
  51. package/dist/src/PrismicRichText/getRichTextComponentProps.d.ts +2 -2
  52. package/dist/src/PrismicRichText/getRichTextComponentProps.d.ts.map +1 -1
  53. package/dist/src/PrismicRichText/getRichTextComponentProps.js.map +1 -1
  54. package/dist/src/PrismicRichText/index.d.ts +1 -1
  55. package/dist/src/PrismicRichText/types.d.ts +24 -24
  56. package/dist/src/PrismicRichText/types.d.ts.map +1 -1
  57. package/dist/src/PrismicTable/PrismicTable.cjs.map +1 -1
  58. package/dist/src/PrismicTable/PrismicTable.js.map +1 -1
  59. package/dist/src/PrismicTable/PrismicTable.vue.d.ts +3 -3
  60. package/dist/src/PrismicTable/PrismicTable.vue.d.ts.map +1 -1
  61. package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs +3 -3
  62. package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  63. package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.js +4 -4
  64. package/dist/src/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  65. package/dist/src/PrismicTable/PrismicTableDefaultComponents.cjs.map +1 -1
  66. package/dist/src/PrismicTable/PrismicTableDefaultComponents.js.map +1 -1
  67. package/dist/src/PrismicTable/PrismicTableRow.cjs.map +1 -1
  68. package/dist/src/PrismicTable/PrismicTableRow.js.map +1 -1
  69. package/dist/src/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  70. package/dist/src/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.js.map +1 -1
  71. package/dist/src/PrismicTable/index.d.ts +1 -1
  72. package/dist/src/PrismicTable/types.d.ts +15 -15
  73. package/dist/src/PrismicTable/types.d.ts.map +1 -1
  74. package/dist/src/PrismicText.vue.d.ts +2 -2
  75. package/dist/src/PrismicText.vue.d.ts.map +1 -1
  76. package/dist/src/SliceZone/SliceZone.vue.d.ts +2 -2
  77. package/dist/src/SliceZone/types.d.ts +2 -2
  78. package/dist/src/SliceZone/types.d.ts.map +1 -1
  79. package/dist/src/createPrismic.cjs +2 -1
  80. package/dist/src/createPrismic.cjs.map +1 -1
  81. package/dist/src/createPrismic.d.ts +29 -14
  82. package/dist/src/createPrismic.d.ts.map +1 -1
  83. package/dist/src/createPrismic.js +2 -1
  84. package/dist/src/createPrismic.js.map +1 -1
  85. package/dist/src/types.cjs +2 -2
  86. package/dist/src/types.cjs.map +1 -1
  87. package/dist/src/types.d.ts +3 -3
  88. package/dist/src/types.d.ts.map +1 -1
  89. package/dist/src/types.js +2 -2
  90. package/dist/src/types.js.map +1 -1
  91. package/dist/types.d.cts +3 -3
  92. package/dist/types.d.cts.map +1 -1
  93. package/package.json +1 -1
  94. package/src/PrismicLink.vue +5 -5
  95. package/src/PrismicRichText/PrismicRichText.vue +13 -13
  96. package/src/PrismicRichText/PrismicRichTextDefaultComponent.vue +4 -4
  97. package/src/PrismicRichText/PrismicRichTextSerialize.vue +2 -2
  98. package/src/PrismicRichText/getRichTextComponentProps.ts +3 -3
  99. package/src/PrismicRichText/index.ts +1 -1
  100. package/src/PrismicRichText/types.ts +29 -29
  101. package/src/PrismicTable/PrismicTable.vue +12 -12
  102. package/src/PrismicTable/PrismicTableDefaultComponents.ts +2 -2
  103. package/src/PrismicTable/PrismicTableRow.vue +4 -4
  104. package/src/PrismicTable/index.ts +1 -1
  105. package/src/PrismicTable/types.ts +27 -27
  106. package/src/SliceZone/types.ts +2 -2
  107. package/src/createPrismic.ts +35 -17
  108. package/src/index.ts +2 -5
  109. package/src/types.ts +7 -7
package/README.md CHANGED
@@ -15,11 +15,11 @@ Replace all on all files (README.md, CONTRIBUTING.md, bug_report.md, package.jso
15
15
 
16
16
  <!-- Replacing link to Prismic with [Prismic][prismic] is useful here -->
17
17
 
18
- [Vue][vue] plugin, components, and composables to fetch and present [Prismic][prismic] content.
18
+ [Vue][vue-docs] plugin, components, and composables to fetch and present [Prismic][prismic] content.
19
19
 
20
- - 📝 &nbsp;Display content from Prismic like [Rich Text][prismic-rich-text] and [Link][prismic-link] fields;
21
- - 🍡 &nbsp;Render Prismic [Slice Zones][prismic-slices] declaratively with Vue components;
22
- - 🎣 &nbsp;Fetch Prismic content using Vue [composition API][vue-composition] or [vue-options].
20
+ - 📝 &nbsp;Display content from Prismic like [rich text][prismic-rich-text] and [link][prismic-link] fields.
21
+ - 🍡 &nbsp;Render Prismic [slice zones][prismic-slices] declaratively with Vue components.
22
+ - 🎣 &nbsp;Fetch Prismic content throughout your Vue application.
23
23
 
24
24
  ## Install
25
25
 
@@ -70,14 +70,12 @@ For more clarity on this project and its structure you can also check out the de
70
70
  <!-- Replace link with a more useful one if available -->
71
71
 
72
72
  [prismic-docs]: https://prismic.io/docs/technical-reference/prismicio-vue/v5
73
+ [vue-docs]: https://vuejs.org
73
74
  [changelog]: ./CHANGELOG.md
74
75
  [contributing]: ./CONTRIBUTING.md
75
- [vue]: https://v3.vuejs.org
76
- [prismic-rich-text]: https://prismic.io/docs/core-concepts/rich-text-title
77
- [prismic-link]: https://prismic.io/docs/core-concepts/link-content-relationship
78
- [prismic-slices]: https://prismic.io/docs/core-concepts/slices
79
- [vue-composition]: https://v3.vuejs.org/guide/composition-api-introduction.html
80
- [vue-options]: https://v3.vuejs.org/guide/introduction.html
76
+ [prismic-rich-text]: https://prismic.io/docs/fields/rich-text
77
+ [prismic-link]: https://prismic.io/docs/fields/link
78
+ [prismic-slices]: https://prismic.io/docs/slices
81
79
 
82
80
  <!-- Replace link with a more useful one if available -->
83
81
 
@@ -1,4 +1,4 @@
1
- import * as vue0 from "vue";
1
+ import * as vue16 from "vue";
2
2
  import { ImageField, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet } from "@prismicio/client";
3
3
 
4
4
  //#region src/PrismicImage.vue.d.ts
@@ -64,7 +64,7 @@ type PrismicImageProps = {
64
64
  */
65
65
  pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
66
66
  });
67
- declare const __VLS_export: vue0.DefineComponent<({
67
+ declare const __VLS_export: vue16.DefineComponent<({
68
68
  /** The Prismic image field or thumbnail to render. */
69
69
  field: ImageField | ImageField<string>;
70
70
  /**
@@ -162,7 +162,7 @@ declare const __VLS_export: vue0.DefineComponent<({
162
162
  * densities will be used: 1, 2, 3.
163
163
  */
164
164
  pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
165
- }), {}, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<({
165
+ }), {}, {}, {}, {}, vue16.ComponentOptionsMixin, vue16.ComponentOptionsMixin, {}, string, vue16.PublicProps, Readonly<({
166
166
  /** The Prismic image field or thumbnail to render. */
167
167
  field: ImageField | ImageField<string>;
168
168
  /**
@@ -260,7 +260,7 @@ declare const __VLS_export: vue0.DefineComponent<({
260
260
  * densities will be used: 1, 2, 3.
261
261
  */
262
262
  pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
263
- })> & Readonly<{}>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, false, {}, any>;
263
+ })> & Readonly<{}>, {}, {}, {}, {}, string, vue16.ComponentProvideOptions, false, {}, any>;
264
264
  declare const _default: typeof __VLS_export;
265
265
  //#endregion
266
266
  export { PrismicImageProps, _default };
@@ -1 +1 @@
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,EAhJ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A,CAAA,GAAA,YAAA,GAAA,UAAA;EAAA,cAGsB,CAAA,EAAA,KAAA;;;;;;;;;kBArIlC,YACA,kBAAkB;;cAiIlB,oBAAY;;SAtMV,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+C3B,YAAY,kBAAkB;;;;SAtD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6D3B,YACA,kBAAkB;oBADP,KAAA,CAAA,qBAAA;;SApET,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+C3B,YAAY,kBAAkB;;;;SAtD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6D3B,YACA,kBAAkB;;cAiIN,iBAGU"}
@@ -12,7 +12,7 @@ type PrismicLinkProps = {
12
12
  * If your app uses route resolvers when querying for your Prismic
13
13
  * repository's content, a link resolver does not need to be provided.
14
14
  *
15
- * @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}
15
+ * @see {@link https://prismic.io/docs/routes}
16
16
  */
17
17
  linkResolver?: LinkResolverFunction;
18
18
  /**
@@ -57,7 +57,7 @@ declare const __VLS_base: vue11.DefineComponent<({
57
57
  * If your app uses route resolvers when querying for your Prismic
58
58
  * repository's content, a link resolver does not need to be provided.
59
59
  *
60
- * @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}
60
+ * @see {@link https://prismic.io/docs/routes}
61
61
  */
62
62
  linkResolver?: LinkResolverFunction;
63
63
  /**
@@ -93,7 +93,7 @@ declare const __VLS_base: vue11.DefineComponent<({
93
93
  * If your app uses route resolvers when querying for your Prismic
94
94
  * repository's content, a link resolver does not need to be provided.
95
95
  *
96
- * @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}
96
+ * @see {@link https://prismic.io/docs/routes}
97
97
  */
98
98
  linkResolver?: LinkResolverFunction;
99
99
  /**
@@ -129,7 +129,7 @@ declare const __VLS_base: vue11.DefineComponent<({
129
129
  * If your app uses route resolvers when querying for your Prismic
130
130
  * repository's content, a link resolver does not need to be provided.
131
131
  *
132
- * @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}
132
+ * @see {@link https://prismic.io/docs/routes}
133
133
  */
134
134
  linkResolver?: LinkResolverFunction;
135
135
  /**
@@ -165,7 +165,7 @@ declare const __VLS_base: vue11.DefineComponent<({
165
165
  * If your app uses route resolvers when querying for your Prismic
166
166
  * repository's content, a link resolver does not need to be provided.
167
167
  *
168
- * @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}
168
+ * @see {@link https://prismic.io/docs/routes}
169
169
  */
170
170
  linkResolver?: LinkResolverFunction;
171
171
  /**
@@ -1,6 +1,6 @@
1
1
  import { ComponentOrTagName } from "../types.cjs";
2
- import { VueRichTextComponents } from "./types.cjs";
3
- import * as vue4 from "vue";
2
+ import { RichTextComponents } from "./types.cjs";
3
+ import * as vue0 from "vue";
4
4
  import { PropType } from "vue";
5
5
  import { LinkResolverFunction, RichTextField } from "@prismicio/client";
6
6
 
@@ -33,14 +33,14 @@ type PrismicRichTextProps = {
33
33
  * }
34
34
  * ```
35
35
  */
36
- components?: VueRichTextComponents;
36
+ components?: RichTextComponents;
37
37
  /**
38
38
  * The value to be rendered when the field is empty. If a fallback is not
39
39
  * given, `null` will be rendered.
40
40
  */
41
41
  fallback?: ComponentOrTagName;
42
42
  };
43
- declare const __VLS_export: vue4.DefineComponent<vue4.ExtractPropTypes<{
43
+ declare const __VLS_export: vue0.DefineComponent<vue0.ExtractPropTypes<{
44
44
  field: {
45
45
  type: PropType<PrismicRichTextProps["field"]>;
46
46
  };
@@ -53,7 +53,7 @@ declare const __VLS_export: vue4.DefineComponent<vue4.ExtractPropTypes<{
53
53
  fallback: {
54
54
  type: PropType<PrismicRichTextProps["fallback"]>;
55
55
  };
56
- }>, {}, {}, {}, {}, vue4.ComponentOptionsMixin, vue4.ComponentOptionsMixin, {}, string, vue4.PublicProps, Readonly<vue4.ExtractPropTypes<{
56
+ }>, {}, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<vue0.ExtractPropTypes<{
57
57
  field: {
58
58
  type: PropType<PrismicRichTextProps["field"]>;
59
59
  };
@@ -66,7 +66,7 @@ declare const __VLS_export: vue4.DefineComponent<vue4.ExtractPropTypes<{
66
66
  fallback: {
67
67
  type: PropType<PrismicRichTextProps["fallback"]>;
68
68
  };
69
- }>> & Readonly<{}>, {}, {}, {}, {}, string, vue4.ComponentProvideOptions, true, {}, any>;
69
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, true, {}, any>;
70
70
  declare const _default: typeof __VLS_export;
71
71
  //#endregion
72
72
  export { PrismicRichTextProps, _default };
@@ -1 +1 @@
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
+ {"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,kBA2IX;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 { VueRichTextComponentProps } from "./types.cjs";
1
+ import { RichTextComponentProps } 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<VueRichTextComponentProps<TRTNode>["node"]>;
15
+ type: PropType<RichTextComponentProps<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":";;;;;;;;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
+ {"version":3,"file":"getRichTextComponentProps.d.cts","names":[],"sources":["../../src/PrismicRichText/getRichTextComponentProps.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAGqD;;;;KAQhD,qCAIY,CAAA,gBAHA,SAGA,GAHY,SAGZ,CAAA,GAAA;EAAT,IAAA,EAAA;IAAQ,IAAA,EAAR,QAAQ,CAAC,sBAAD,CAAwB,OAAxB,CAAA,CAAA,MAAA,CAAA,CAAA;IAmCH,QAAA,EAAA,IAAA;EAA6C,CAAA;CAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAFK,4CAA6C,0BAElD,YACL,sCACF,QAAQ;QAAmB"}
@@ -1,4 +1,4 @@
1
- import { VueComponent, VueComponentShorthand } from "../types.cjs";
1
+ import { Component, ComponentShorthand } from "../types.cjs";
2
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
@@ -9,29 +9,29 @@ import { LinkResolverFunction, RTAnyNode, RTEmNode, RTEmbedNode, RTHeading1Node,
9
9
  *
10
10
  * @see Templating Rich Text and title fields from Prismic {@link https://prismic.io/docs/rich-text}
11
11
  */
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>;
12
+ type RichTextComponents = {
13
+ heading1?: RichTextComponent<RTHeading1Node> | ComponentShorthand;
14
+ heading2?: RichTextComponent<RTHeading2Node> | ComponentShorthand;
15
+ heading3?: RichTextComponent<RTHeading3Node> | ComponentShorthand;
16
+ heading4?: RichTextComponent<RTHeading4Node> | ComponentShorthand;
17
+ heading5?: RichTextComponent<RTHeading5Node> | ComponentShorthand;
18
+ heading6?: RichTextComponent<RTHeading6Node> | ComponentShorthand;
19
+ paragraph?: RichTextComponent<RTParagraphNode> | ComponentShorthand;
20
+ preformatted?: RichTextComponent<RTPreformattedNode> | ComponentShorthand;
21
+ strong?: RichTextComponent<RTStrongNode> | ComponentShorthand;
22
+ em?: RichTextComponent<RTEmNode> | ComponentShorthand;
23
+ listItem?: RichTextComponent<RTListItemNode> | ComponentShorthand;
24
+ oListItem?: RichTextComponent<RTOListItemNode> | ComponentShorthand;
25
+ list?: RichTextComponent<RTListNode> | ComponentShorthand;
26
+ oList?: RichTextComponent<RTOListNode> | ComponentShorthand;
27
+ image?: RichTextComponent<RTImageNode> | Omit<ComponentShorthand, "as">;
28
+ embed?: RichTextComponent<RTEmbedNode> | ComponentShorthand;
29
+ hyperlink?: RichTextComponent<RTLinkNode> | Omit<ComponentShorthand, "as">;
30
+ label?: RichTextComponent<RTLabelNode> | Omit<ComponentShorthand, "as">;
31
+ span?: RichTextComponent<RTSpanNode>;
32
32
  };
33
33
  /** Props for a component rendering nodes from a Prismic rich text field. */
34
- type VueRichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode> = {
34
+ type RichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode> = {
35
35
  node: TRTNode;
36
36
  };
37
37
  /**
@@ -39,7 +39,7 @@ type VueRichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode> = {
39
39
  *
40
40
  * @typeParam TRTNode - The type of rich text node(s) this component handles
41
41
  */
42
- type VueRichTextComponent<TRTNode extends RTAnyNode = RTAnyNode> = VueComponent<VueRichTextComponentProps<TRTNode>>;
42
+ type RichTextComponent<TRTNode extends RTAnyNode = RTAnyNode> = Component<RichTextComponentProps<TRTNode>>;
43
43
  //#endregion
44
- export { VueRichTextComponentProps, VueRichTextComponents };
44
+ export { RichTextComponentProps, RichTextComponents };
45
45
  //# sourceMappingURL=types.d.cts.map
@@ -1 +1 @@
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,EAE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A,CAAA,EAWJ,iBAXI,CAWc,WAXd,CAAA,GAW6B,kBAX7B;EAAqC,SAAA,CAAA,EAa9C,iBAb8C,CAa5B,UAb4B,CAAA,GAc9C,IAd8C,CAczC,kBAdyC,EAAA,IAAA,CAAA;EAE5B,KAAA,CAAA,EAab,iBAba,CAaK,WAbL,CAAA,GAaoB,IAbpB,CAayB,kBAbzB,EAAA,IAAA,CAAA;EAAlB,IAAA,CAAA,EAcI,iBAdJ,CAcsB,UAdtB,CAAA;CACA;;AACM,KAgBE,sBAhBF,CAAA,gBAgByC,SAhBzC,GAgBqD,SAhBrD,CAAA,GAAA;EAAkC,IAAA,EAiBrC,OAjBqC;CACpB;;;;;;AAEO,KAsBnB,iBAtBmB,CAAA,gBAsBe,SAtBf,GAsB2B,SAtB3B,CAAA,GAuB9B,SAvB8B,CAuBpB,sBAvBoB,CAuBG,OAvBH,CAAA,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { ComponentOrTagName } from "../types.cjs";
2
- import { VueRichTextComponents } from "../PrismicRichText/types.cjs";
3
- import { VueTableComponents } from "./types.cjs";
4
- import * as vue21 from "vue";
2
+ import { RichTextComponents } from "../PrismicRichText/types.cjs";
3
+ import { TableComponents } from "./types.cjs";
4
+ import * as vue6 from "vue";
5
5
  import { TableField } from "@prismicio/client";
6
6
 
7
7
  //#region src/PrismicTable/PrismicTable.vue.d.ts
@@ -23,14 +23,14 @@ type PrismicTableProps = {
23
23
  * }
24
24
  * ```
25
25
  */
26
- components?: VueTableComponents & VueRichTextComponents;
26
+ components?: TableComponents & RichTextComponents;
27
27
  /**
28
28
  * The value to be rendered when the field is empty. If a fallback is not
29
29
  * given, `null` (nothing) will be rendered.
30
30
  */
31
31
  fallback?: ComponentOrTagName;
32
32
  };
33
- declare const __VLS_export: vue21.DefineComponent<PrismicTableProps, {}, {}, {}, {}, vue21.ComponentOptionsMixin, vue21.ComponentOptionsMixin, {}, string, vue21.PublicProps, Readonly<PrismicTableProps> & Readonly<{}>, {}, {}, {}, {}, string, vue21.ComponentProvideOptions, false, {}, any>;
33
+ declare const __VLS_export: vue6.DefineComponent<PrismicTableProps, {}, {}, {}, {}, vue6.ComponentOptionsMixin, vue6.ComponentOptionsMixin, {}, string, vue6.PublicProps, Readonly<PrismicTableProps> & Readonly<{}>, {}, {}, {}, {}, string, vue6.ComponentProvideOptions, false, {}, any>;
34
34
  declare const _default: typeof __VLS_export;
35
35
  //#endregion
36
36
  export { PrismicTableProps, _default };
@@ -1 +1 @@
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
+ {"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,eAkKI,GAlKc,kBAkKd;EAAA;AAAA;;;aA5JN;;cA4JN,cAAY,IAAA,CAAA,gBAAA,mCAAA,IAAA,CAAA,qBAAA,EAAA,IAAA,CAAA,qBAAA,cAAA,IAAA,CAAA,WAAA,EAAA,SAAA,qBAAA,sCAAA,IAAA,CAAA,uBAAA;cAAA,iBAGU"}
@@ -1,4 +1,4 @@
1
- import { VueComponent, VueComponentShorthand } from "../types.cjs";
1
+ import { Component, ComponentShorthand } from "../types.cjs";
2
2
  import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "@prismicio/client";
3
3
 
4
4
  //#region src/PrismicTable/types.d.ts
@@ -9,26 +9,26 @@ import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, Tabl
9
9
  *
10
10
  * @see Templating Table fields from Prismic {@link https://prismic.io/docs/table}
11
11
  */
12
- type VueTableComponents = {
13
- table?: VueComponent<{
12
+ type TableComponents = {
13
+ table?: Component<{
14
14
  table: TableField<"filled">;
15
- }> | Omit<VueComponentShorthand, "as">;
16
- thead?: VueComponent<{
15
+ }> | Omit<ComponentShorthand, "as">;
16
+ thead?: Component<{
17
17
  head: TableFieldHead;
18
- }> | Omit<VueComponentShorthand, "as">;
19
- tbody?: VueComponent<{
18
+ }> | Omit<ComponentShorthand, "as">;
19
+ tbody?: Component<{
20
20
  body: TableFieldBody;
21
- }> | Omit<VueComponentShorthand, "as">;
22
- tr?: VueComponent<{
21
+ }> | Omit<ComponentShorthand, "as">;
22
+ tr?: Component<{
23
23
  row: TableFieldBodyRow | TableFieldHeadRow;
24
- }> | Omit<VueComponentShorthand, "as">;
25
- th?: VueComponent<{
24
+ }> | Omit<ComponentShorthand, "as">;
25
+ th?: Component<{
26
26
  cell: TableFieldHeaderCell;
27
- }> | Omit<VueComponentShorthand, "as">;
28
- td?: VueComponent<{
27
+ }> | Omit<ComponentShorthand, "as">;
28
+ td?: Component<{
29
29
  cell: TableFieldDataCell;
30
- }> | Omit<VueComponentShorthand, "as">;
30
+ }> | Omit<ComponentShorthand, "as">;
31
31
  };
32
32
  //#endregion
33
- export { VueTableComponents };
33
+ export { TableComponents };
34
34
  //# sourceMappingURL=types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","names":[],"sources":["../../src/PrismicTable/types.ts"],"sourcesContent":[],"mappings":";;;;;;;AAkBA;;;;AAGI,KAHQ,kBAAA,GAG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B,CAAA,CAAA,GAFjB,IAEiB,CAFZ,kBAEY,EAAA,IAAA,CAAA;EAAoB,EAAA,CAAA,EAArC,SAAqC,CAAA;IAArC,GAAA,EAAiB,iBAAjB,GAAqC,iBAArC;EACK,CAAA,CAAA,GAAL,IAAK,CAAA,kBAAA,EAAA,IAAA,CAAA;EAAL,EAAA,CAAA,EAEA,SAFA,CAAA;IAEkB,IAAA,EAAA,oBAAA;EAAlB,CAAA,CAAA,GACA,IADA,CACK,kBADL,EAAA,IAAA,CAAA;EACK,EAAA,CAAA,EAEL,SAFK,CAAA;IAAL,IAAA,EAEkB,kBAFlB;EAEkB,CAAA,CAAA,GAClB,IADkB,CACb,kBADa,EAAA,IAAA,CAAA;CAAlB"}
@@ -1,4 +1,4 @@
1
- import * as vue16 from "vue";
1
+ import * as vue21 from "vue";
2
2
  import { RichTextField } from "@prismicio/client";
3
3
 
4
4
  //#region src/PrismicText.vue.d.ts
@@ -18,7 +18,7 @@ type PrismicTextProps = {
18
18
  */
19
19
  separator?: string;
20
20
  };
21
- declare const __VLS_export: vue16.DefineComponent<PrismicTextProps, {}, {}, {}, {}, vue16.ComponentOptionsMixin, vue16.ComponentOptionsMixin, {}, string, vue16.PublicProps, Readonly<PrismicTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue16.ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: vue21.DefineComponent<PrismicTextProps, {}, {}, {}, {}, vue21.ComponentOptionsMixin, vue21.ComponentOptionsMixin, {}, string, vue21.PublicProps, Readonly<PrismicTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue21.ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  //#endregion
24
24
  export { PrismicTextProps, _default };
@@ -1,4 +1,4 @@
1
- import { VueComponent } from "../types.cjs";
1
+ import { Component } from "../types.cjs";
2
2
  import { Slice } from "@prismicio/client";
3
3
 
4
4
  //#region src/SliceZone/types.d.ts
@@ -80,7 +80,7 @@ type SliceComponentProps<TSlice extends SliceLike = SliceLike, TContext = unknow
80
80
  * @typeParam TSlice - The type(s) of slices in the Slice Zone
81
81
  * @typeParam TContext - Arbitrary data made available to all Slice components
82
82
  */
83
- type SliceComponentType<TSlice extends SliceLike = any, TContext = unknown> = VueComponent<SliceComponentProps<TSlice, TContext>>;
83
+ type SliceComponentType<TSlice extends SliceLike = any, TContext = unknown> = Component<SliceComponentProps<TSlice, TContext>>;
84
84
  /**
85
85
  * A record of Slice types mapped to Vue components. Each components will be
86
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":";;;;;;;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;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A,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,UAAU,oBAAoB,QAAQ;;;;;;;;KAS9B,mCACI,YAAY,iDAaZ,iBAAiB,UAC5B,mBACA,QAAQ,QAAQ,UAAU,4BACvB,YACA,QAAQ,QAAQ,UAAU,aAC7B"}
@@ -1,8 +1,8 @@
1
1
  import { ComponentOrTagName } from "./types.cjs";
2
- import { VueRichTextComponents } from "./PrismicRichText/types.cjs";
3
- import { VueTableComponents } from "./PrismicTable/types.cjs";
2
+ import { RichTextComponents } from "./PrismicRichText/types.cjs";
3
+ import { TableComponents } from "./PrismicTable/types.cjs";
4
4
  import { App } from "vue";
5
- import { CreateClient, isFilled } from "@prismicio/client";
5
+ import { CreateClient, LinkResolverFunction, isFilled } from "@prismicio/client";
6
6
 
7
7
  //#region src/createPrismic.d.ts
8
8
  /** Components configuration. */
@@ -12,10 +12,26 @@ type ComponentsConfig = {
12
12
  /** The default component rendered for external URLs. */
13
13
  linkExternalComponent?: ComponentOrTagName;
14
14
  /**
15
- * The default components or shorthand definitions for Rich Text and Table
16
- * fields.
15
+ * The default components or shorthand definitions for rich text and table
16
+ * components.
17
+ *
18
+ * @see {@link https://prismic.io/docs/fields/rich-text}
19
+ * @see {@link https://prismic.io/docs/fields/table}
17
20
  */
18
- defaultComponents?: VueRichTextComponents & VueTableComponents;
21
+ richTextComponents?: RichTextComponents & TableComponents;
22
+ };
23
+ /** Prismic Vue plugin configuration. */
24
+ type PrismicPluginConfig = {
25
+ /** A Prismic client instance to inject into the Vue app. */
26
+ client: ReturnType<CreateClient>;
27
+ /**
28
+ * A default link resolver used to resolve links when route resolvers cannot be used.
29
+ *
30
+ * @see {@link https://prismic.io/docs/routes}
31
+ */
32
+ linkResolver?: LinkResolverFunction;
33
+ /** Components configuration. */
34
+ components?: ComponentsConfig;
19
35
  };
20
36
  /**
21
37
  * Prismic Vue plugin interface accessible through `usePrismic()` and
@@ -26,18 +42,17 @@ type PrismicPlugin = {
26
42
  client: ReturnType<CreateClient>;
27
43
  /** Helpers to determine if a field is filled. */
28
44
  isFilled: typeof isFilled;
45
+ /**
46
+ * The default link resolver used to resolve links when route resolvers cannot be used.
47
+ *
48
+ * @see {@link https://prismic.io/docs/routes}
49
+ */
50
+ linkResolver?: LinkResolverFunction;
29
51
  /** @internal */
30
- readonly componentsConfig?: ComponentsConfig;
52
+ readonly components: ComponentsConfig;
31
53
  /** @internal */
32
54
  install: (app: App) => void;
33
55
  };
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
56
  /** Creates a Prismic Vue plugin instance that can be used by a Vue app. */
42
57
  declare const createPrismic: (config: PrismicPluginConfig) => PrismicPlugin;
43
58
  /**
@@ -1 +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"}
1
+ {"version":3,"file":"createPrismic.d.cts","names":[],"sources":["../src/createPrismic.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAQqD,KAOhD,gBAAA,GAAgB;EAEI;EAGA,qBAAA,CAAA,EAHA,kBAGA;EASH;EAAqB,qBAAA,CAAA,EATlB,kBASkB;EAAe;AAI1D;;;;;;EAmBY,kBAAa,CAAA,EAvBH,kBAuBG,GAvBkB,eAuBlB;CAEL;;AAGF,KAxBN,mBAAA,GAwBM;EAOF;EAGM,MAAA,EAhCb,UAgCa,CAhCF,YAgCE,CAAA;EAGN;;AAIhB;AAqBA;AAEC;EAAA,YAAA,CAAA,EAvDe,oBAuDf;;EAKwB,UAAA,CAAA,EAzDX,gBAyDW;CAAA;;;;;KAlDb,aAAA;;UAEH,WAAW;;mBAGF;;;;;;iBAOF;;uBAGM;;iBAGN;;;cAIH,wBAAyB,wBAAsB;;;;;;;;;;cAqB/C,kBAAiB;;;;cAOlB"}
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { VueRichTextComponentProps, VueRichTextComponents } from "./PrismicRichText/types.cjs";
1
+ import { RichTextComponentProps, RichTextComponents } 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
+ import { TableComponents } from "./PrismicTable/types.cjs";
5
5
  import { PrismicTableProps, _default as _default$3 } from "./PrismicTable/PrismicTable.vue.cjs";
6
6
  import { getTableComponentProps_d_exports } from "./PrismicTable/getTableComponentProps.cjs";
7
7
  import { PrismicImageProps, _default } from "./PrismicImage.vue.cjs";
@@ -13,4 +13,4 @@ import { TODOSliceComponent } from "./SliceZone/TODOSliceComponent.cjs";
13
13
  import { getSliceComponentProps } from "./SliceZone/getSliceComponentProps.cjs";
14
14
  import { defineSliceZoneComponents } from "./SliceZone/defineSliceZoneComponents.cjs";
15
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 };
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 RichTextComponentProps, type RichTextComponents, type SliceComponentProps, type SliceComponentType, type SliceLike, type SliceLikeGraphQL, type SliceLikeRestV2, _default$5 as SliceZone, type SliceZoneComponents, type SliceZoneLike, type SliceZoneProps, TODOSliceComponent, type TableComponents, createPrismic, defineSliceZoneComponents, getRichTextComponentProps, getSliceComponentProps, getTableComponentProps_d_exports as getTableComponentProps, usePrismic };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { VueRichTextComponentProps, VueRichTextComponents } from "./src/PrismicRichText/types.js";
1
+ import { RichTextComponentProps, RichTextComponents } from "./src/PrismicRichText/types.js";
2
2
  import { PrismicRichTextProps, _default as _default$2 } from "./src/PrismicRichText/PrismicRichText.vue.js";
3
3
  import { getRichTextComponentProps } from "./src/PrismicRichText/getRichTextComponentProps.js";
4
4
  import "./src/PrismicRichText/index.js";
5
- import { VueTableComponents } from "./src/PrismicTable/types.js";
5
+ import { TableComponents } from "./src/PrismicTable/types.js";
6
6
  import { PrismicTableProps, _default as _default$3 } from "./src/PrismicTable/PrismicTable.vue.js";
7
7
  import { getTableComponentProps_d_exports } from "./src/PrismicTable/getTableComponentProps.js";
8
8
  import "./src/PrismicTable/index.js";
@@ -16,4 +16,4 @@ import { getSliceComponentProps } from "./src/SliceZone/getSliceComponentProps.j
16
16
  import { defineSliceZoneComponents } from "./src/SliceZone/defineSliceZoneComponents.js";
17
17
  import "./src/SliceZone/index.js";
18
18
  import { PrismicPlugin, PrismicPluginConfig, createPrismic, usePrismic } from "./src/createPrismic.js";
19
- 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 };
19
+ 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 RichTextComponentProps, type RichTextComponents, type SliceComponentProps, type SliceComponentType, type SliceLike, type SliceLikeGraphQL, type SliceLikeRestV2, _default$5 as SliceZone, type SliceZoneComponents, type SliceZoneLike, type SliceZoneProps, TODOSliceComponent, type TableComponents, createPrismic, defineSliceZoneComponents, getRichTextComponentProps, getSliceComponentProps, getTableComponentProps_d_exports as getTableComponentProps, usePrismic };
package/dist/package.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region package.json
3
- var version = "5.3.0-pr.89.235a3d3";
3
+ var version = "5.3.0-pr.89.33291fc";
4
4
 
5
5
  //#endregion
6
6
  Object.defineProperty(exports, 'version', {
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "5.3.0-pr.89.235a3d3";
2
+ var version = "5.3.0-pr.89.33291fc";
3
3
 
4
4
  //#endregion
5
5
  export { version };
@@ -1,4 +1,4 @@
1
- import * as vue9 from "vue";
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
@@ -64,7 +64,7 @@ type PrismicImageProps = {
64
64
  */
65
65
  pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
66
66
  });
67
- declare const __VLS_export: vue9.DefineComponent<({
67
+ declare const __VLS_export: vue6.DefineComponent<({
68
68
  /** The Prismic image field or thumbnail to render. */
69
69
  field: ImageField | ImageField<string>;
70
70
  /**
@@ -162,7 +162,7 @@ declare const __VLS_export: vue9.DefineComponent<({
162
162
  * densities will be used: 1, 2, 3.
163
163
  */
164
164
  pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
165
- }), {}, {}, {}, {}, vue9.ComponentOptionsMixin, vue9.ComponentOptionsMixin, {}, string, vue9.PublicProps, Readonly<({
165
+ }), {}, {}, {}, {}, vue6.ComponentOptionsMixin, vue6.ComponentOptionsMixin, {}, string, vue6.PublicProps, Readonly<({
166
166
  /** The Prismic image field or thumbnail to render. */
167
167
  field: ImageField | ImageField<string>;
168
168
  /**
@@ -260,7 +260,7 @@ declare const __VLS_export: vue9.DefineComponent<({
260
260
  * densities will be used: 1, 2, 3.
261
261
  */
262
262
  pixelDensities: NonNullable<Parameters<typeof asImagePixelDensitySrcSet>[1]>["pixelDensities"] | "defaults";
263
- })> & Readonly<{}>, {}, {}, {}, {}, string, vue9.ComponentProvideOptions, false, {}, any>;
263
+ })> & Readonly<{}>, {}, {}, {}, {}, string, vue6.ComponentProvideOptions, false, {}, any>;
264
264
  declare const _default: typeof __VLS_export;
265
265
  //#endregion
266
266
  export { PrismicImageProps, _default };
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicImage.vue.d.ts","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,KAAA;;;;;;;;;kBArIlC,YACA,kBAAkB;;cAiIlB,mBAAY;;SAtMV,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+C3B,YAAY,kBAAkB;;;;SAtD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;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;SApET,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+C3B,YAAY,kBAAkB;;;;SAtD5B,aAAa;;;;;;gBAON,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6D3B,YACA,kBAAkB;;cAiIN,iBAGU"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicLink.cjs","names":[],"sources":["../../src/PrismicLink.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { AsLinkAttrsConfig } from \"@prismicio/client\"\nimport {\n\ttype LinkField,\n\ttype LinkResolverFunction,\n\ttype PrismicDocument,\n\tasLinkAttrs,\n} from \"@prismicio/client\"\nimport { computed } from \"vue\"\n\nimport { isInternalURL } from \"./lib/isInternalURL\"\n\nimport type { ComponentOrTagName } from \"./types\"\n\nimport { usePrismic } from \"./createPrismic\"\n\n/** The default component rendered for internal URLs. */\nconst defaultInternalComponent = \"router-link\"\n\n/** The default component rendered for external URLs. */\nconst defaultExternalComponent = \"a\"\n\n/** The default rel attribute rendered for external URLs. */\nconst defaultExternalRelAttribute = \"noreferrer\"\n\n/** Props for `<PrismicLink />`. */\nexport type PrismicLinkProps = {\n\t/**\n\t * The link resolver used to resolve links.\n\t *\n\t * @remarks\n\t * If your app uses route resolvers when querying for your Prismic\n\t * repository's content, a link resolver does not need to be provided.\n\t *\n\t * @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}\n\t */\n\tlinkResolver?: LinkResolverFunction\n\n\t/**\n\t * The `rel` attribute for the link. By default, `\"noreferrer\"` is provided if\n\t * the link's URL is external. This prop can be provided a function to use the\n\t * link's metadata to determine the `rel` value.\n\t */\n\trel?: string | AsLinkAttrsConfig[\"rel\"]\n\n\t/**\n\t * The component rendered for internal URLs.\n\t *\n\t * If your app uses a client-side router that requires a special Link\n\t * component, provide the Link component to this prop.\n\t *\n\t * @defaultValue `<RouterLink>`\n\t */\n\tinternalComponent?: ComponentOrTagName\n\n\t/**\n\t * The component rendered for external URLs.\n\t *\n\t * @defaultValue `<a>`\n\t */\n\texternalComponent?: ComponentOrTagName\n} & (\n\t| {\n\t\t\t/** The Prismic link field to render. */\n\t\t\tfield: LinkField\n\t\t\tdocument?: never\n\t }\n\t| {\n\t\t\t/** The Prismic document to render as a link. */\n\t\t\tdocument: PrismicDocument\n\t\t\tfield?: never\n\t }\n)\n\nconst props = defineProps<PrismicLinkProps>()\ndefineOptions({ name: \"PrismicLink\" })\n\nconst { componentsConfig } = usePrismic()\n\nconst rawAttrs = computed(() => {\n\treturn asLinkAttrs(props.field || props.document, {\n\t\tlinkResolver: props.linkResolver,\n\t\trel(args) {\n\t\t\tif (props.rel) {\n\t\t\t\treturn typeof props.rel === \"function\" ? props.rel(args) : props.rel\n\t\t\t}\n\n\t\t\treturn args.isExternal ? defaultExternalRelAttribute : undefined\n\t\t},\n\t})\n})\n\nconst component = computed(() => {\n\treturn isInternalURL(rawAttrs.value.href || \"\")\n\t\t? props.internalComponent ||\n\t\t\t\tcomponentsConfig?.linkInternalComponent ||\n\t\t\t\tdefaultInternalComponent\n\t\t: props.externalComponent ||\n\t\t\t\tcomponentsConfig?.linkExternalComponent ||\n\t\t\t\tdefaultExternalComponent\n})\n\n// Match Vue Router's `<RouterLink />` interface unless the component is an anchor tag.\nconst attrs = computed(() => {\n\treturn component.value === \"a\"\n\t\t? {\n\t\t\t\thref: rawAttrs.value.href,\n\t\t\t\ttarget: rawAttrs.value.target,\n\t\t\t\trel: rawAttrs.value.rel,\n\t\t\t}\n\t\t: {\n\t\t\t\tto: rawAttrs.value.href,\n\t\t\t\ttarget: rawAttrs.value.target,\n\t\t\t\trel: rawAttrs.value.rel,\n\t\t\t}\n})\n</script>\n\n<template>\n\t<component :is=\"component\" v-bind=\"attrs\">\n\t\t<slot>\n\t\t\t{{ props.field && \"text\" in props.field ? props.field.text : undefined }}\n\t\t</slot>\n\t</component>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"PrismicLink.cjs","names":[],"sources":["../../src/PrismicLink.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { AsLinkAttrsConfig } from \"@prismicio/client\"\nimport {\n\ttype LinkField,\n\ttype LinkResolverFunction,\n\ttype PrismicDocument,\n\tasLinkAttrs,\n} from \"@prismicio/client\"\nimport { computed } from \"vue\"\n\nimport { isInternalURL } from \"./lib/isInternalURL\"\n\nimport type { ComponentOrTagName } from \"./types\"\n\nimport { usePrismic } from \"./createPrismic\"\n\n/** The default component rendered for internal URLs. */\nconst defaultInternalComponent = \"router-link\"\n\n/** The default component rendered for external URLs. */\nconst defaultExternalComponent = \"a\"\n\n/** The default rel attribute rendered for external URLs. */\nconst defaultExternalRelAttribute = \"noreferrer\"\n\n/** Props for `<PrismicLink />`. */\nexport type PrismicLinkProps = {\n\t/**\n\t * The link resolver used to resolve links.\n\t *\n\t * @remarks\n\t * If your app uses route resolvers when querying for your Prismic\n\t * repository's content, a link resolver does not need to be provided.\n\t *\n\t * @see {@link https://prismic.io/docs/routes}\n\t */\n\tlinkResolver?: LinkResolverFunction\n\n\t/**\n\t * The `rel` attribute for the link. By default, `\"noreferrer\"` is provided if\n\t * the link's URL is external. This prop can be provided a function to use the\n\t * link's metadata to determine the `rel` value.\n\t */\n\trel?: string | AsLinkAttrsConfig[\"rel\"]\n\n\t/**\n\t * The component rendered for internal URLs.\n\t *\n\t * If your app uses a client-side router that requires a special Link\n\t * component, provide the Link component to this prop.\n\t *\n\t * @defaultValue `<RouterLink>`\n\t */\n\tinternalComponent?: ComponentOrTagName\n\n\t/**\n\t * The component rendered for external URLs.\n\t *\n\t * @defaultValue `<a>`\n\t */\n\texternalComponent?: ComponentOrTagName\n} & (\n\t| {\n\t\t\t/** The Prismic link field to render. */\n\t\t\tfield: LinkField\n\t\t\tdocument?: never\n\t }\n\t| {\n\t\t\t/** The Prismic document to render as a link. */\n\t\t\tdocument: PrismicDocument\n\t\t\tfield?: never\n\t }\n)\n\nconst props = defineProps<PrismicLinkProps>()\ndefineOptions({ name: \"PrismicLink\" })\n\nconst { linkResolver, components } = usePrismic()\n\nconst rawAttrs = computed(() => {\n\treturn asLinkAttrs(props.field || props.document, {\n\t\tlinkResolver: props.linkResolver || linkResolver,\n\t\trel(args) {\n\t\t\tif (props.rel) {\n\t\t\t\treturn typeof props.rel === \"function\" ? props.rel(args) : props.rel\n\t\t\t}\n\n\t\t\treturn args.isExternal ? defaultExternalRelAttribute : undefined\n\t\t},\n\t})\n})\n\nconst component = computed(() => {\n\treturn isInternalURL(rawAttrs.value.href || \"\")\n\t\t? props.internalComponent ||\n\t\t\t\tcomponents?.linkInternalComponent ||\n\t\t\t\tdefaultInternalComponent\n\t\t: props.externalComponent ||\n\t\t\t\tcomponents?.linkExternalComponent ||\n\t\t\t\tdefaultExternalComponent\n})\n\n// Match Vue Router's `<RouterLink />` interface unless the component is an anchor tag.\nconst attrs = computed(() => {\n\treturn component.value === \"a\"\n\t\t? {\n\t\t\t\thref: rawAttrs.value.href,\n\t\t\t\ttarget: rawAttrs.value.target,\n\t\t\t\trel: rawAttrs.value.rel,\n\t\t\t}\n\t\t: {\n\t\t\t\tto: rawAttrs.value.href,\n\t\t\t\ttarget: rawAttrs.value.target,\n\t\t\t\trel: rawAttrs.value.rel,\n\t\t\t}\n})\n</script>\n\n<template>\n\t<component :is=\"component\" v-bind=\"attrs\">\n\t\t<slot>\n\t\t\t{{ props.field && \"text\" in props.field ? props.field.text : undefined }}\n\t\t</slot>\n\t</component>\n</template>\n"],"mappings":""}