@prismicio/vue 6.1.5 → 6.2.0-pr.121.10c293c

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 (180) hide show
  1. package/dist/PrismicImage.cjs +1 -2
  2. package/dist/PrismicImage.cjs.map +1 -1
  3. package/dist/PrismicImage.js +1 -2
  4. package/dist/PrismicImage.js.map +1 -1
  5. package/dist/PrismicImage.vue.d.cts +2 -4
  6. package/dist/PrismicImage.vue.d.cts.map +1 -1
  7. package/dist/PrismicImage.vue.d.ts +2 -4
  8. package/dist/PrismicImage.vue.d.ts.map +1 -1
  9. package/dist/PrismicImage.vue_vue_type_script_setup_true_lang.cjs +1 -2
  10. package/dist/PrismicImage.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  11. package/dist/PrismicImage.vue_vue_type_script_setup_true_lang.js +1 -2
  12. package/dist/PrismicImage.vue_vue_type_script_setup_true_lang.js.map +1 -1
  13. package/dist/PrismicLink.cjs +1 -2
  14. package/dist/PrismicLink.cjs.map +1 -1
  15. package/dist/PrismicLink.js +1 -2
  16. package/dist/PrismicLink.js.map +1 -1
  17. package/dist/PrismicLink.vue.d.cts +4 -6
  18. package/dist/PrismicLink.vue.d.cts.map +1 -1
  19. package/dist/PrismicLink.vue.d.ts +4 -6
  20. package/dist/PrismicLink.vue.d.ts.map +1 -1
  21. package/dist/PrismicLink.vue_vue_type_script_setup_true_lang.cjs +1 -2
  22. package/dist/PrismicLink.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  23. package/dist/PrismicLink.vue_vue_type_script_setup_true_lang.js +1 -2
  24. package/dist/PrismicLink.vue_vue_type_script_setup_true_lang.js.map +1 -1
  25. package/dist/PrismicRichText/PrismicRichText.cjs +1 -2
  26. package/dist/PrismicRichText/PrismicRichText.cjs.map +1 -1
  27. package/dist/PrismicRichText/PrismicRichText.js +1 -2
  28. package/dist/PrismicRichText/PrismicRichText.js.map +1 -1
  29. package/dist/PrismicRichText/PrismicRichText.vue.d.cts +2 -4
  30. package/dist/PrismicRichText/PrismicRichText.vue.d.cts.map +1 -1
  31. package/dist/PrismicRichText/PrismicRichText.vue.d.ts +2 -4
  32. package/dist/PrismicRichText/PrismicRichText.vue.d.ts.map +1 -1
  33. package/dist/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs +1 -2
  34. package/dist/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  35. package/dist/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.js +1 -2
  36. package/dist/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.js.map +1 -1
  37. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.cjs +1 -2
  38. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.cjs.map +1 -1
  39. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.js +1 -2
  40. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.js.map +1 -1
  41. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.cjs +1 -2
  42. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  43. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.js +1 -2
  44. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.js.map +1 -1
  45. package/dist/PrismicRichText/PrismicRichTextSerialize.cjs +1 -2
  46. package/dist/PrismicRichText/PrismicRichTextSerialize.cjs.map +1 -1
  47. package/dist/PrismicRichText/PrismicRichTextSerialize.js +1 -2
  48. package/dist/PrismicRichText/PrismicRichTextSerialize.js.map +1 -1
  49. package/dist/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.cjs +1 -2
  50. package/dist/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  51. package/dist/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.js +1 -2
  52. package/dist/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.js.map +1 -1
  53. package/dist/PrismicRichText/getRichTextComponentProps.cjs +1 -2
  54. package/dist/PrismicRichText/getRichTextComponentProps.d.cts +2 -4
  55. package/dist/PrismicRichText/getRichTextComponentProps.d.cts.map +1 -1
  56. package/dist/PrismicRichText/getRichTextComponentProps.d.ts +2 -4
  57. package/dist/PrismicRichText/getRichTextComponentProps.d.ts.map +1 -1
  58. package/dist/PrismicRichText/getRichTextComponentProps.js +1 -2
  59. package/dist/PrismicRichText/types.d.cts +3 -6
  60. package/dist/PrismicRichText/types.d.cts.map +1 -1
  61. package/dist/PrismicRichText/types.d.ts +3 -6
  62. package/dist/PrismicRichText/types.d.ts.map +1 -1
  63. package/dist/PrismicTable/PrismicTable.cjs +1 -2
  64. package/dist/PrismicTable/PrismicTable.cjs.map +1 -1
  65. package/dist/PrismicTable/PrismicTable.js +1 -2
  66. package/dist/PrismicTable/PrismicTable.js.map +1 -1
  67. package/dist/PrismicTable/PrismicTable.vue.d.cts +2 -4
  68. package/dist/PrismicTable/PrismicTable.vue.d.cts.map +1 -1
  69. package/dist/PrismicTable/PrismicTable.vue.d.ts +2 -4
  70. package/dist/PrismicTable/PrismicTable.vue.d.ts.map +1 -1
  71. package/dist/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs +1 -2
  72. package/dist/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  73. package/dist/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.js +1 -2
  74. package/dist/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  75. package/dist/PrismicTable/PrismicTableDefaultComponents.cjs +1 -2
  76. package/dist/PrismicTable/PrismicTableDefaultComponents.js +1 -2
  77. package/dist/PrismicTable/PrismicTableRow.cjs +1 -2
  78. package/dist/PrismicTable/PrismicTableRow.cjs.map +1 -1
  79. package/dist/PrismicTable/PrismicTableRow.js +1 -2
  80. package/dist/PrismicTable/PrismicTableRow.js.map +1 -1
  81. package/dist/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.cjs +1 -2
  82. package/dist/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  83. package/dist/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.js +1 -2
  84. package/dist/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.js.map +1 -1
  85. package/dist/PrismicTable/getTableComponentProps.cjs +1 -2
  86. package/dist/PrismicTable/getTableComponentProps.d.cts +7 -8
  87. package/dist/PrismicTable/getTableComponentProps.d.cts.map +1 -1
  88. package/dist/PrismicTable/getTableComponentProps.d.ts +7 -8
  89. package/dist/PrismicTable/getTableComponentProps.d.ts.map +1 -1
  90. package/dist/PrismicTable/getTableComponentProps.js +1 -2
  91. package/dist/PrismicTable/types.d.cts +1 -4
  92. package/dist/PrismicTable/types.d.cts.map +1 -1
  93. package/dist/PrismicTable/types.d.ts +1 -4
  94. package/dist/PrismicTable/types.d.ts.map +1 -1
  95. package/dist/PrismicText.cjs +1 -2
  96. package/dist/PrismicText.cjs.map +1 -1
  97. package/dist/PrismicText.js +1 -2
  98. package/dist/PrismicText.js.map +1 -1
  99. package/dist/PrismicText.vue.d.cts +2 -4
  100. package/dist/PrismicText.vue.d.cts.map +1 -1
  101. package/dist/PrismicText.vue.d.ts +2 -4
  102. package/dist/PrismicText.vue.d.ts.map +1 -1
  103. package/dist/PrismicText.vue_vue_type_script_setup_true_lang.cjs +1 -2
  104. package/dist/PrismicText.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  105. package/dist/PrismicText.vue_vue_type_script_setup_true_lang.js +1 -2
  106. package/dist/PrismicText.vue_vue_type_script_setup_true_lang.js.map +1 -1
  107. package/dist/SliceSimulator.cjs +1 -2
  108. package/dist/SliceSimulator.cjs.map +1 -1
  109. package/dist/SliceSimulator.js +1 -2
  110. package/dist/SliceSimulator.js.map +1 -1
  111. package/dist/SliceSimulator.vue.d.cts +2 -4
  112. package/dist/SliceSimulator.vue.d.cts.map +1 -1
  113. package/dist/SliceSimulator.vue.d.ts +2 -4
  114. package/dist/SliceSimulator.vue.d.ts.map +1 -1
  115. package/dist/SliceSimulator.vue_vue_type_script_setup_true_lang.cjs +1 -2
  116. package/dist/SliceSimulator.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  117. package/dist/SliceSimulator.vue_vue_type_script_setup_true_lang.js +1 -2
  118. package/dist/SliceSimulator.vue_vue_type_script_setup_true_lang.js.map +1 -1
  119. package/dist/SliceZone/SliceBoundary.cjs +11 -0
  120. package/dist/SliceZone/SliceBoundary.cjs.map +1 -0
  121. package/dist/SliceZone/SliceBoundary.js +11 -0
  122. package/dist/SliceZone/SliceBoundary.js.map +1 -0
  123. package/dist/SliceZone/SliceZone.cjs +1 -2
  124. package/dist/SliceZone/SliceZone.cjs.map +1 -1
  125. package/dist/SliceZone/SliceZone.js +1 -2
  126. package/dist/SliceZone/SliceZone.js.map +1 -1
  127. package/dist/SliceZone/SliceZone.vue.d.cts +2 -4
  128. package/dist/SliceZone/SliceZone.vue.d.cts.map +1 -1
  129. package/dist/SliceZone/SliceZone.vue.d.ts +2 -4
  130. package/dist/SliceZone/SliceZone.vue.d.ts.map +1 -1
  131. package/dist/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.cjs +17 -4
  132. package/dist/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  133. package/dist/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.js +18 -5
  134. package/dist/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.js.map +1 -1
  135. package/dist/SliceZone/TODOSliceComponent.cjs +1 -2
  136. package/dist/SliceZone/TODOSliceComponent.cjs.map +1 -1
  137. package/dist/SliceZone/TODOSliceComponent.d.cts +1 -4
  138. package/dist/SliceZone/TODOSliceComponent.d.cts.map +1 -1
  139. package/dist/SliceZone/TODOSliceComponent.d.ts +1 -4
  140. package/dist/SliceZone/TODOSliceComponent.d.ts.map +1 -1
  141. package/dist/SliceZone/TODOSliceComponent.js +1 -2
  142. package/dist/SliceZone/defineSliceZoneComponents.cjs +1 -2
  143. package/dist/SliceZone/defineSliceZoneComponents.d.cts +1 -4
  144. package/dist/SliceZone/defineSliceZoneComponents.d.cts.map +1 -1
  145. package/dist/SliceZone/defineSliceZoneComponents.d.ts +1 -4
  146. package/dist/SliceZone/defineSliceZoneComponents.d.ts.map +1 -1
  147. package/dist/SliceZone/defineSliceZoneComponents.js +1 -2
  148. package/dist/SliceZone/getSliceComponentProps.cjs +1 -2
  149. package/dist/SliceZone/getSliceComponentProps.d.cts +2 -4
  150. package/dist/SliceZone/getSliceComponentProps.d.cts.map +1 -1
  151. package/dist/SliceZone/getSliceComponentProps.d.ts +2 -4
  152. package/dist/SliceZone/getSliceComponentProps.d.ts.map +1 -1
  153. package/dist/SliceZone/getSliceComponentProps.js +1 -2
  154. package/dist/SliceZone/types.d.cts +8 -10
  155. package/dist/SliceZone/types.d.cts.map +1 -1
  156. package/dist/SliceZone/types.d.ts +8 -10
  157. package/dist/SliceZone/types.d.ts.map +1 -1
  158. package/dist/_virtual/_rolldown/runtime.cjs +1 -2
  159. package/dist/_virtual/_rolldown/runtime.js +1 -2
  160. package/dist/createPrismic.cjs +1 -2
  161. package/dist/createPrismic.d.cts +5 -7
  162. package/dist/createPrismic.d.cts.map +1 -1
  163. package/dist/createPrismic.d.ts +5 -7
  164. package/dist/createPrismic.d.ts.map +1 -1
  165. package/dist/createPrismic.js +1 -2
  166. package/dist/lib/devMsg.cjs +1 -2
  167. package/dist/lib/devMsg.js +1 -2
  168. package/dist/lib/isInternalURL.cjs +1 -2
  169. package/dist/lib/isInternalURL.js +1 -2
  170. package/dist/package.cjs +2 -3
  171. package/dist/package.js +2 -3
  172. package/dist/types.cjs +1 -2
  173. package/dist/types.d.cts +3 -5
  174. package/dist/types.d.cts.map +1 -1
  175. package/dist/types.d.ts +3 -5
  176. package/dist/types.d.ts.map +1 -1
  177. package/dist/types.js +1 -2
  178. package/package.json +14 -14
  179. package/src/SliceZone/SliceBoundary.ts +10 -0
  180. package/src/SliceZone/SliceZone.vue +13 -10
@@ -1,6 +1,7 @@
1
+ import { SliceBoundary } from "./SliceBoundary.js";
1
2
  import { TODOSliceComponent } from "./TODOSliceComponent.js";
2
- import { Fragment, computed, createBlock, createElementBlock, defineComponent, mergeProps, openBlock, renderList, resolveDynamicComponent } from "vue";
3
- //#region src/SliceZone/SliceZone.vue?vue&type=script&setup=true&lang.ts
3
+ import { Fragment, computed, createBlock, createElementBlock, defineComponent, mergeProps, openBlock, renderList, resolveDynamicComponent, unref, withCtx } from "vue";
4
+ // src/SliceZone/SliceZone.vue?vue&type=script&setup=true&lang.ts
4
5
  var SliceZone_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
5
6
  name: "SliceZone",
6
7
  __name: "SliceZone",
@@ -29,11 +30,13 @@ var SliceZone_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
29
30
  if (!props.slices) return [];
30
31
  return props.slices.map((slice, index) => {
31
32
  const type = "slice_type" in slice ? slice.slice_type : slice.type;
32
- const key = "id" in slice && typeof slice.id === "string" ? slice.id : `${index}-${JSON.stringify(slice)}`;
33
+ const id = "id" in slice && typeof slice.id === "string" ? slice.id : void 0;
34
+ const key = id ?? `${index}-${JSON.stringify(slice)}`;
33
35
  const is = props.components?.[type] || props.defaultComponent;
34
36
  if (!is) return {
35
37
  is: TODOSliceComponent,
36
38
  key,
39
+ id,
37
40
  props: { slice }
38
41
  };
39
42
  if (slice.__mapped) {
@@ -41,12 +44,14 @@ var SliceZone_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
41
44
  return {
42
45
  is,
43
46
  key,
47
+ id,
44
48
  props: mappedProps
45
49
  };
46
50
  }
47
51
  return {
48
52
  is,
49
53
  key,
54
+ id,
50
55
  props: {
51
56
  slice,
52
57
  index,
@@ -58,12 +63,20 @@ var SliceZone_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
58
63
  });
59
64
  return (_ctx, _cache) => {
60
65
  return openBlock(true), createElementBlock(Fragment, null, renderList(renderedSlices.value, (renderedSlice) => {
61
- return openBlock(), createBlock(resolveDynamicComponent(renderedSlice.is), mergeProps({ key: renderedSlice.key }, { ref_for: true }, renderedSlice.props), null, 16);
66
+ return openBlock(), createElementBlock(Fragment, { key: renderedSlice.key }, [renderedSlice.id ? (openBlock(), createBlock(unref(SliceBoundary), {
67
+ key: 0,
68
+ "slice-id": renderedSlice.id
69
+ }, {
70
+ default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(renderedSlice.is), mergeProps({ ref_for: true }, renderedSlice.props), null, 16))]),
71
+ _: 2
72
+ }, 1032, ["slice-id"])) : (openBlock(), createBlock(resolveDynamicComponent(renderedSlice.is), mergeProps({
73
+ key: 1,
74
+ ref_for: true
75
+ }, renderedSlice.props), null, 16))], 64);
62
76
  }), 128);
63
77
  };
64
78
  }
65
79
  });
66
- //#endregion
67
80
  export { SliceZone_vue_vue_type_script_setup_true_lang_default as default };
68
81
 
69
82
  //# sourceMappingURL=SliceZone.vue_vue_type_script_setup_true_lang.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SliceZone.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/SliceZone/SliceZone.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { computed } from \"vue\"\n\nimport type { ComponentOrTagName } from \"../types\"\nimport { TODOSliceComponent } from \"./TODOSliceComponent\"\nimport type { SliceComponentType, SliceLike, SliceZoneComponents, SliceZoneLike } from \"./types\"\n\n/**\n * Props for `<SliceZone />`.\n *\n * @typeParam TContext - Arbitrary data made available to all Slice components\n */\nexport type SliceZoneProps<TContext = unknown> = {\n\t/** List of slice data from the slice zone. */\n\tslices: SliceZoneLike<SliceLike | (SliceLike & Record<string, unknown>)>\n\n\t/** A record mapping slice types to React components. */\n\tcomponents?: SliceZoneComponents\n\n\t/** The Vue component rendered if a component mapping from the `components` prop cannot be found. */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tdefaultComponent?: SliceComponentType<any, TContext>\n\n\t/** Arbitrary data made available to all slice components. */\n\tcontext?: TContext\n}\n\nconst props = defineProps<SliceZoneProps>()\ndefineOptions({ name: \"SliceZone\" })\n\nconst renderedSlices = computed<\n\t{\n\t\tis: ComponentOrTagName\n\t\tkey: string\n\t\tprops: Record<string, unknown>\n\t}[]\n>(() => {\n\tif (!props.slices) return []\n\n\treturn props.slices.map((slice, index) => {\n\t\tconst type = \"slice_type\" in slice ? (slice.slice_type as string) : slice.type\n\n\t\tconst key =\n\t\t\t\"id\" in slice && typeof slice.id === \"string\" ? slice.id : `${index}-${JSON.stringify(slice)}`\n\n\t\tconst is = props.components?.[type] || props.defaultComponent\n\n\t\tif (!is) {\n\t\t\treturn { is: TODOSliceComponent, key, props: { slice } }\n\t\t}\n\n\t\tif (slice.__mapped) {\n\t\t\tconst { __mapped, ...mappedProps } = slice\n\n\t\t\treturn { is, key, props: mappedProps }\n\t\t}\n\n\t\treturn {\n\t\t\tis,\n\t\t\tkey,\n\t\t\tprops: {\n\t\t\t\tslice,\n\t\t\t\tindex,\n\t\t\t\tcontext: props.context,\n\t\t\t\tslices: props.slices,\n\t\t\t},\n\t\t}\n\t})\n})\n</script>\n\n<template>\n\t<component\n\t\tv-for=\"renderedSlice in renderedSlices\"\n\t\t:is=\"renderedSlice.is\"\n\t\t:key=\"renderedSlice.key\"\n\t\tv-bind=\"renderedSlice.props\"\n\t/>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAGd,MAAM,iBAAiB,eAMf;GACP,IAAI,CAAC,MAAM,QAAQ,OAAO,CAAC;GAE3B,OAAO,MAAM,OAAO,KAAK,OAAO,UAAU;IACzC,MAAM,OAAO,gBAAgB,QAAS,MAAM,aAAwB,MAAM;IAE1E,MAAM,MACL,QAAQ,SAAS,OAAO,MAAM,OAAO,WAAW,MAAM,KAAK,GAAG,MAAM,GAAG,KAAK,UAAU,KAAK;IAE5F,MAAM,KAAK,MAAM,aAAa,SAAS,MAAM;IAE7C,IAAI,CAAC,IACJ,OAAO;KAAE,IAAI;KAAoB;KAAK,OAAO,EAAE,MAAM;IAAE;IAGxD,IAAI,MAAM,UAAU;KACnB,MAAM,EAAE,UAAU,GAAG,gBAAgB;KAErC,OAAO;MAAE;MAAI;MAAK,OAAO;KAAY;IACtC;IAEA,OAAO;KACN;KACA;KACA,OAAO;MACN;MACA;MACA,SAAS,MAAM;MACf,QAAQ,MAAM;KACf;IACD;GACD,CAAC;EACF,CAAC;;GAIA,OAAA,UAAA,IAAA,GAAA,mBAKE,UAAA,MAAA,WAJuB,eAAA,QAAjB,kBAAa;IADrB,OAAA,UAAA,GAAA,YAKE,wBAHI,cAAc,EAAE,GAFtB,WAKE,EAFA,KAAK,cAAc,IACZ,GAAA,EAAA,SAAA,KAAA,GAAA,cAAc,KAAK,GAAA,MAAA,EAAA"}
1
+ {"version":3,"file":"SliceZone.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_Fragment","_renderList","_createBlock","_unref","_withCtx","_resolveDynamicComponent","_mergeProps"],"sources":["../../src/SliceZone/SliceZone.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { computed } from \"vue\"\n\nimport type { ComponentOrTagName } from \"../types\"\nimport { SliceBoundary } from \"./SliceBoundary\"\nimport { TODOSliceComponent } from \"./TODOSliceComponent\"\nimport type { SliceComponentType, SliceLike, SliceZoneComponents, SliceZoneLike } from \"./types\"\n\n/**\n * Props for `<SliceZone />`.\n *\n * @typeParam TContext - Arbitrary data made available to all Slice components\n */\nexport type SliceZoneProps<TContext = unknown> = {\n\t/** List of slice data from the slice zone. */\n\tslices: SliceZoneLike<SliceLike | (SliceLike & Record<string, unknown>)>\n\n\t/** A record mapping slice types to React components. */\n\tcomponents?: SliceZoneComponents\n\n\t/** The Vue component rendered if a component mapping from the `components` prop cannot be found. */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\tdefaultComponent?: SliceComponentType<any, TContext>\n\n\t/** Arbitrary data made available to all slice components. */\n\tcontext?: TContext\n}\n\nconst props = defineProps<SliceZoneProps>()\ndefineOptions({ name: \"SliceZone\" })\n\nconst renderedSlices = computed<\n\t{\n\t\tis: ComponentOrTagName\n\t\tkey: string\n\t\tid?: string\n\t\tprops: Record<string, unknown>\n\t}[]\n>(() => {\n\tif (!props.slices) return []\n\n\treturn props.slices.map((slice, index) => {\n\t\tconst type = \"slice_type\" in slice ? (slice.slice_type as string) : slice.type\n\n\t\tconst id = \"id\" in slice && typeof slice.id === \"string\" ? slice.id : undefined\n\t\tconst key = id ?? `${index}-${JSON.stringify(slice)}`\n\n\t\tconst is = props.components?.[type] || props.defaultComponent\n\n\t\tif (!is) {\n\t\t\treturn { is: TODOSliceComponent, key, id, props: { slice } }\n\t\t}\n\n\t\tif (slice.__mapped) {\n\t\t\tconst { __mapped, ...mappedProps } = slice\n\n\t\t\treturn { is, key, id, props: mappedProps }\n\t\t}\n\n\t\treturn {\n\t\t\tis,\n\t\t\tkey,\n\t\t\tid,\n\t\t\tprops: {\n\t\t\t\tslice,\n\t\t\t\tindex,\n\t\t\t\tcontext: props.context,\n\t\t\t\tslices: props.slices,\n\t\t\t},\n\t\t}\n\t})\n})\n</script>\n\n<template>\n\t<template v-for=\"renderedSlice in renderedSlices\" :key=\"renderedSlice.key\">\n\t\t<SliceBoundary v-if=\"renderedSlice.id\" :slice-id=\"renderedSlice.id\">\n\t\t\t<component :is=\"renderedSlice.is\" v-bind=\"renderedSlice.props\" />\n\t\t</SliceBoundary>\n\t\t<component v-else :is=\"renderedSlice.is\" v-bind=\"renderedSlice.props\" />\n\t</template>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BA,MAAM,QAAQ;EAGd,MAAM,iBAAiB,eAOf;GACP,IAAI,CAAC,MAAM,QAAQ,OAAO,CAAC;GAE3B,OAAO,MAAM,OAAO,KAAK,OAAO,UAAU;IACzC,MAAM,OAAO,gBAAgB,QAAS,MAAM,aAAwB,MAAM;IAE1E,MAAM,KAAK,QAAQ,SAAS,OAAO,MAAM,OAAO,WAAW,MAAM,KAAK,KAAA;IACtE,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,KAAK,UAAU,KAAK;IAElD,MAAM,KAAK,MAAM,aAAa,SAAS,MAAM;IAE7C,IAAI,CAAC,IACJ,OAAO;KAAE,IAAI;KAAoB;KAAK;KAAI,OAAO,EAAE,MAAM;IAAE;IAG5D,IAAI,MAAM,UAAU;KACnB,MAAM,EAAE,UAAU,GAAG,gBAAgB;KAErC,OAAO;MAAE;MAAI;MAAK;MAAI,OAAO;KAAY;IAC1C;IAEA,OAAO;KACN;KACA;KACA;KACA,OAAO;MACN;MACA;MACA,SAAS,MAAM;MACf,QAAQ,MAAM;KACf;IACD;GACD,CAAC;EACF,CAAC;;GAIA,OAAAA,UAAA,IAAA,GAAAC,mBAKWC,UAAA,MAAAC,WALuB,eAAA,QAAjB,kBAAa;I,mDAA0B,KAAA,cAAc,I,IAChD,cAAc,MAAnCH,UAAA,GAAAI,YAEgBC,MAAA,aAAA,GAAA;;KAFwB,YAAU,cAAc;;KAC/D,SAAAC,cAAiE,EAAjEN,UAAA,GAAAI,YAAiEG,wBAAjD,cAAc,EAAE,GAAhCC,WAAiE,EAAA,SAAA,KAAA,GAAvB,cAAc,KAAK,GAAA,MAAA,EAAA,E;;I,2BAE9DR,UAAA,GAAAI,YAAwEG,wBAAjD,cAAc,EAAE,GAAvCC,WAAwE;;;IAAvB,GAAA,cAAc,KAAK,GAAA,MAAA,EAAA,E"}
@@ -1,5 +1,5 @@
1
1
  let vue = require("vue");
2
- //#region src/SliceZone/TODOSliceComponent.ts
2
+ // src/SliceZone/TODOSliceComponent.ts
3
3
  /**
4
4
  * This Slice component can be used as a reminder to provide a proper implementation.
5
5
  *
@@ -27,7 +27,6 @@ const TODOSliceComponent = require("esm-env").DEV ? /* @__PURE__ */ (0, vue.defi
27
27
  };
28
28
  }
29
29
  }) : (() => null);
30
- //#endregion
31
30
  exports.TODOSliceComponent = TODOSliceComponent;
32
31
 
33
32
  //# sourceMappingURL=TODOSliceComponent.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"TODOSliceComponent.cjs","names":["DEV","computed","h"],"sources":["../../src/SliceZone/TODOSliceComponent.ts"],"sourcesContent":["import { DEV } from \"esm-env\"\nimport { computed, defineComponent, h, watchEffect } from \"vue\"\nimport type { PropType } from \"vue\"\n\nimport type { SliceComponentType, SliceLike } from \"./types\"\n\n/**\n * This Slice component can be used as a reminder to provide a proper implementation.\n *\n * This is also the default Vue component rendered when a component mapping cannot be found in\n * `<SliceZone />`.\n */\n// oxlint-disable-next-line explicit-module-boundary-types\nexport const TODOSliceComponent = DEV\n\t? /*#__PURE__*/ (defineComponent({\n\t\t\tname: \"TODOSliceComponent\",\n\t\t\tprops: {\n\t\t\t\tslice: {\n\t\t\t\t\ttype: Object as PropType<SliceLike>,\n\t\t\t\t\trequired: true,\n\t\t\t\t},\n\t\t\t},\n\t\t\tsetup(props) {\n\t\t\t\tconst type = computed(() => {\n\t\t\t\t\treturn \"slice_type\" in props.slice ? props.slice.slice_type : props.slice.type\n\t\t\t\t})\n\n\t\t\t\twatchEffect(() => {\n\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t`[SliceZone] Could not find a component for Slice type \"${type.value}\"`,\n\t\t\t\t\t\tprops.slice,\n\t\t\t\t\t)\n\t\t\t\t})\n\n\t\t\t\treturn () => {\n\t\t\t\t\treturn h(\n\t\t\t\t\t\t\"section\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"data-slice-zone-todo-component\": \"\",\n\t\t\t\t\t\t\t\"data-slice-type\": type.value,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t[`Could not find a component for Slice type \"${type.value}\"`],\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t},\n\t\t}) as SliceComponentType)\n\t: ((() => null) as SliceComponentType)\n"],"mappings":";;;;;;;;AAaA,MAAa,sCAAqBA,CAAAA,CAAAA,MAChB,iBAAA,GAAA,IAAA,gBAAA,CAAgB;CAC/B,MAAM;CACN,OAAO,EACN,OAAO;EACN,MAAM;EACN,UAAU;CACX,EACD;CACA,MAAM,OAAO;EACZ,MAAM,QAAA,GAAOC,IAAAA,SAAAA,OAAe;GAC3B,OAAO,gBAAgB,MAAM,QAAQ,MAAM,MAAM,aAAa,MAAM,MAAM;EAC3E,CAAC;EAED,CAAA,GAAA,IAAA,YAAA,OAAkB;GACjB,QAAQ,KACP,0DAA0D,KAAK,MAAM,IACrE,MAAM,KACP;EACD,CAAC;EAED,aAAa;GACZ,QAAA,GAAOC,IAAAA,EAAAA,CACN,WACA;IACC,kCAAkC;IAClC,mBAAmB,KAAK;GACzB,GACA,CAAC,8CAA8C,KAAK,MAAM,EAAE,CAC7D;EACD;CACD;AACD,CAAC,WACQ"}
1
+ {"version":3,"file":"TODOSliceComponent.cjs","names":["DEV","computed","h"],"sources":["../../src/SliceZone/TODOSliceComponent.ts"],"sourcesContent":["import { DEV } from \"esm-env\"\nimport { computed, defineComponent, h, watchEffect } from \"vue\"\nimport type { PropType } from \"vue\"\n\nimport type { SliceComponentType, SliceLike } from \"./types\"\n\n/**\n * This Slice component can be used as a reminder to provide a proper implementation.\n *\n * This is also the default Vue component rendered when a component mapping cannot be found in\n * `<SliceZone />`.\n */\n// oxlint-disable-next-line explicit-module-boundary-types\nexport const TODOSliceComponent = DEV\n\t? /*#__PURE__*/ (defineComponent({\n\t\t\tname: \"TODOSliceComponent\",\n\t\t\tprops: {\n\t\t\t\tslice: {\n\t\t\t\t\ttype: Object as PropType<SliceLike>,\n\t\t\t\t\trequired: true,\n\t\t\t\t},\n\t\t\t},\n\t\t\tsetup(props) {\n\t\t\t\tconst type = computed(() => {\n\t\t\t\t\treturn \"slice_type\" in props.slice ? props.slice.slice_type : props.slice.type\n\t\t\t\t})\n\n\t\t\t\twatchEffect(() => {\n\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t`[SliceZone] Could not find a component for Slice type \"${type.value}\"`,\n\t\t\t\t\t\tprops.slice,\n\t\t\t\t\t)\n\t\t\t\t})\n\n\t\t\t\treturn () => {\n\t\t\t\t\treturn h(\n\t\t\t\t\t\t\"section\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"data-slice-zone-todo-component\": \"\",\n\t\t\t\t\t\t\t\"data-slice-type\": type.value,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t[`Could not find a component for Slice type \"${type.value}\"`],\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t},\n\t\t}) as SliceComponentType)\n\t: ((() => null) as SliceComponentType)\n"],"mappings":";;;;;;;;AAaA,MAAa,qB,iBAAqBA,CAAAA,CAAAA,MAChB,iBAAA,GAAA,IAAA,gBAAA,CAAgB;CAC/B,MAAM;CACN,OAAO,EACN,OAAO;EACN,MAAM;EACN,UAAU;CACX,EACD;CACA,MAAM,OAAO;EACZ,MAAM,QAAA,GAAOC,IAAAA,SAAAA,OAAe;GAC3B,OAAO,gBAAgB,MAAM,QAAQ,MAAM,MAAM,aAAa,MAAM,MAAM;EAC3E,CAAC;EAED,CAAA,GAAA,IAAA,YAAA,OAAkB;GACjB,QAAQ,KACP,0DAA0D,KAAK,MAAM,IACrE,MAAM,KACP;EACD,CAAC;EAED,aAAa;GACZ,QAAA,GAAOC,IAAAA,EAAAA,CACN,WACA;IACC,kCAAkC;IAClC,mBAAmB,KAAK;GACzB,GACA,CAAC,8CAA8C,KAAK,MAAM,EAAE,CAC7D;EACD;CACD;AACD,CAAC,WACQ"}
@@ -1,12 +1,9 @@
1
1
  import { SliceComponentType } from "./types.cjs";
2
- //#region src/SliceZone/TODOSliceComponent.d.ts
3
2
  /**
4
3
  * This Slice component can be used as a reminder to provide a proper implementation.
5
4
  *
6
5
  * This is also the default Vue component rendered when a component mapping cannot be found in
7
6
  * `<SliceZone />`.
8
7
  */
9
- declare const TODOSliceComponent: SliceComponentType;
10
- //#endregion
11
- export { TODOSliceComponent };
8
+ export declare const TODOSliceComponent: SliceComponentType;
12
9
  //# sourceMappingURL=TODOSliceComponent.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TODOSliceComponent.d.cts","names":[],"sources":["../../src/SliceZone/TODOSliceComponent.ts"],"mappings":";;;;;;;;cAaa,oBAAkB"}
1
+ {"version":3,"file":"TODOSliceComponent.d.cts","names":[],"sources":["../../src/SliceZone/TODOSliceComponent.ts"],"mappings":";;;;;;;qBAaa,oBAAkB"}
@@ -1,12 +1,9 @@
1
1
  import { SliceComponentType } from "./types.js";
2
- //#region src/SliceZone/TODOSliceComponent.d.ts
3
2
  /**
4
3
  * This Slice component can be used as a reminder to provide a proper implementation.
5
4
  *
6
5
  * This is also the default Vue component rendered when a component mapping cannot be found in
7
6
  * `<SliceZone />`.
8
7
  */
9
- declare const TODOSliceComponent: SliceComponentType;
10
- //#endregion
11
- export { TODOSliceComponent };
8
+ export declare const TODOSliceComponent: SliceComponentType;
12
9
  //# sourceMappingURL=TODOSliceComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TODOSliceComponent.d.ts","names":[],"sources":["../../src/SliceZone/TODOSliceComponent.ts"],"mappings":";;;;;;;;cAaa,oBAAkB"}
1
+ {"version":3,"file":"TODOSliceComponent.d.ts","names":[],"sources":["../../src/SliceZone/TODOSliceComponent.ts"],"mappings":";;;;;;;qBAaa,oBAAkB"}
@@ -1,6 +1,6 @@
1
1
  import { computed, defineComponent, h, watchEffect } from "vue";
2
2
  import { DEV } from "esm-env";
3
- //#region src/SliceZone/TODOSliceComponent.ts
3
+ // src/SliceZone/TODOSliceComponent.ts
4
4
  /**
5
5
  * This Slice component can be used as a reminder to provide a proper implementation.
6
6
  *
@@ -28,7 +28,6 @@ const TODOSliceComponent = DEV ? /* @__PURE__ */ defineComponent({
28
28
  };
29
29
  }
30
30
  }) : (() => null);
31
- //#endregion
32
31
  export { TODOSliceComponent };
33
32
 
34
33
  //# sourceMappingURL=TODOSliceComponent.js.map
@@ -1,5 +1,5 @@
1
1
  let vue = require("vue");
2
- //#region src/SliceZone/defineSliceZoneComponents.ts
2
+ // src/SliceZone/defineSliceZoneComponents.ts
3
3
  /**
4
4
  * Gets an optimized record of Slice types mapped to Vue components. Each components will be
5
5
  * rendered for each instance of their Slice type.
@@ -39,7 +39,6 @@ const defineSliceZoneComponents = (components) => {
39
39
  }
40
40
  return result;
41
41
  };
42
- //#endregion
43
42
  exports.defineSliceZoneComponents = defineSliceZoneComponents;
44
43
 
45
44
  //# sourceMappingURL=defineSliceZoneComponents.cjs.map
@@ -1,5 +1,4 @@
1
1
  import { SliceLike, SliceZoneComponents } from "./types.cjs";
2
- //#region src/SliceZone/defineSliceZoneComponents.d.ts
3
2
  /**
4
3
  * Gets an optimized record of Slice types mapped to Vue components. Each components will be
5
4
  * rendered for each instance of their Slice type.
@@ -30,7 +29,5 @@ import { SliceLike, SliceZoneComponents } from "./types.cjs";
30
29
  * @param components - {@link SliceZoneComponents}
31
30
  * @returns A new optimized record of {@link SliceZoneComponents}
32
31
  */
33
- declare const defineSliceZoneComponents: <TSlice extends SliceLike = any, TContext = unknown>(components: SliceZoneComponents<TSlice, TContext>) => SliceZoneComponents<TSlice, TContext>;
34
- //#endregion
35
- export { defineSliceZoneComponents };
32
+ export declare const defineSliceZoneComponents: <TSlice extends SliceLike = any, TContext = unknown>(components: SliceZoneComponents<TSlice, TContext>) => SliceZoneComponents<TSlice, TContext>;
36
33
  //# sourceMappingURL=defineSliceZoneComponents.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defineSliceZoneComponents.d.cts","names":[],"sources":["../../src/SliceZone/defineSliceZoneComponents.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCa,4BAEZ,eAAe,iBACf,oBAEA,YAAY,oBAAoB,QAAQ,cACtC,oBAAoB,QAAQ"}
1
+ {"version":3,"file":"defineSliceZoneComponents.d.cts","names":[],"sources":["../../src/SliceZone/defineSliceZoneComponents.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkCa,4BAEZ,eAAe,iBACf,oBAEA,YAAY,oBAAoB,QAAQ,cACtC,oBAAoB,QAAQ"}
@@ -1,5 +1,4 @@
1
1
  import { SliceLike, SliceZoneComponents } from "./types.js";
2
- //#region src/SliceZone/defineSliceZoneComponents.d.ts
3
2
  /**
4
3
  * Gets an optimized record of Slice types mapped to Vue components. Each components will be
5
4
  * rendered for each instance of their Slice type.
@@ -30,7 +29,5 @@ import { SliceLike, SliceZoneComponents } from "./types.js";
30
29
  * @param components - {@link SliceZoneComponents}
31
30
  * @returns A new optimized record of {@link SliceZoneComponents}
32
31
  */
33
- declare const defineSliceZoneComponents: <TSlice extends SliceLike = any, TContext = unknown>(components: SliceZoneComponents<TSlice, TContext>) => SliceZoneComponents<TSlice, TContext>;
34
- //#endregion
35
- export { defineSliceZoneComponents };
32
+ export declare const defineSliceZoneComponents: <TSlice extends SliceLike = any, TContext = unknown>(components: SliceZoneComponents<TSlice, TContext>) => SliceZoneComponents<TSlice, TContext>;
36
33
  //# sourceMappingURL=defineSliceZoneComponents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defineSliceZoneComponents.d.ts","names":[],"sources":["../../src/SliceZone/defineSliceZoneComponents.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCa,4BAEZ,eAAe,iBACf,oBAEA,YAAY,oBAAoB,QAAQ,cACtC,oBAAoB,QAAQ"}
1
+ {"version":3,"file":"defineSliceZoneComponents.d.ts","names":[],"sources":["../../src/SliceZone/defineSliceZoneComponents.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkCa,4BAEZ,eAAe,iBACf,oBAEA,YAAY,oBAAoB,QAAQ,cACtC,oBAAoB,QAAQ"}
@@ -1,5 +1,5 @@
1
1
  import { markRaw } from "vue";
2
- //#region src/SliceZone/defineSliceZoneComponents.ts
2
+ // src/SliceZone/defineSliceZoneComponents.ts
3
3
  /**
4
4
  * Gets an optimized record of Slice types mapped to Vue components. Each components will be
5
5
  * rendered for each instance of their Slice type.
@@ -39,7 +39,6 @@ const defineSliceZoneComponents = (components) => {
39
39
  }
40
40
  return result;
41
41
  };
42
- //#endregion
43
42
  export { defineSliceZoneComponents };
44
43
 
45
44
  //# sourceMappingURL=defineSliceZoneComponents.js.map
@@ -1,4 +1,4 @@
1
- //#region src/SliceZone/getSliceComponentProps.ts
1
+ // src/SliceZone/getSliceComponentProps.ts
2
2
  /**
3
3
  * Gets native Vue props for a component rendering content from a Prismic Slice using the
4
4
  * `<SliceZone />` component.
@@ -46,7 +46,6 @@ const getSliceComponentProps = (propsHint) => ({
46
46
  required: true
47
47
  }
48
48
  });
49
- //#endregion
50
49
  exports.getSliceComponentProps = getSliceComponentProps;
51
50
 
52
51
  //# sourceMappingURL=getSliceComponentProps.cjs.map
@@ -1,6 +1,5 @@
1
1
  import { SliceComponentProps, SliceLike } from "./types.cjs";
2
2
  import { PropType } from "vue";
3
- //#region src/SliceZone/getSliceComponentProps.d.ts
4
3
  /**
5
4
  * Native Vue props for a component rendering content from a Prismic Slice using the `<SliceZone />`
6
5
  * component.
@@ -56,7 +55,6 @@ type DefineComponentSliceComponentProps<TSlice extends SliceLike = any, TContext
56
55
  * hint of which props are made available to the slice, this parameters doesn't have any effect
57
56
  * @returns Props object to use with `defineProps()`
58
57
  */
59
- declare const getSliceComponentProps: <TSlice extends SliceLike = any, TContext = unknown>(propsHint?: ["slice", "index", "slices", "context"]) => DefineComponentSliceComponentProps<TSlice, TContext>;
60
- //#endregion
61
- export { getSliceComponentProps };
58
+ export declare const getSliceComponentProps: <TSlice extends SliceLike = any, TContext = unknown>(propsHint?: ["slice", "index", "slices", "context"]) => DefineComponentSliceComponentProps<TSlice, TContext>;
59
+ export {};
62
60
  //# sourceMappingURL=getSliceComponentProps.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSliceComponentProps.d.cts","names":[],"sources":["../../src/SliceZone/getSliceComponentProps.ts"],"mappings":";;;;;;;;;;;KAYK,mCAEJ,eAAe,iBACf;EAEA;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiCW,yBAEZ,eAAe,iBACf,oBAGA,wDACE,mCAAmC,QAAQ"}
1
+ {"version":3,"file":"getSliceComponentProps.d.cts","names":[],"sources":["../../src/SliceZone/getSliceComponentProps.ts"],"mappings":";;;;;;;;;;KAYK,mCAEJ,eAAe,iBACf;EAEA;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiCW,yBAEZ,eAAe,iBACf,oBAGA,wDACE,mCAAmC,QAAQ"}
@@ -1,6 +1,5 @@
1
1
  import { SliceComponentProps, SliceLike } from "./types.js";
2
2
  import { PropType } from "vue";
3
- //#region src/SliceZone/getSliceComponentProps.d.ts
4
3
  /**
5
4
  * Native Vue props for a component rendering content from a Prismic Slice using the `<SliceZone />`
6
5
  * component.
@@ -56,7 +55,6 @@ type DefineComponentSliceComponentProps<TSlice extends SliceLike = any, TContext
56
55
  * hint of which props are made available to the slice, this parameters doesn't have any effect
57
56
  * @returns Props object to use with `defineProps()`
58
57
  */
59
- declare const getSliceComponentProps: <TSlice extends SliceLike = any, TContext = unknown>(propsHint?: ["slice", "index", "slices", "context"]) => DefineComponentSliceComponentProps<TSlice, TContext>;
60
- //#endregion
61
- export { getSliceComponentProps };
58
+ export declare const getSliceComponentProps: <TSlice extends SliceLike = any, TContext = unknown>(propsHint?: ["slice", "index", "slices", "context"]) => DefineComponentSliceComponentProps<TSlice, TContext>;
59
+ export {};
62
60
  //# sourceMappingURL=getSliceComponentProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSliceComponentProps.d.ts","names":[],"sources":["../../src/SliceZone/getSliceComponentProps.ts"],"mappings":";;;;;;;;;;;KAYK,mCAEJ,eAAe,iBACf;EAEA;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiCW,yBAEZ,eAAe,iBACf,oBAGA,wDACE,mCAAmC,QAAQ"}
1
+ {"version":3,"file":"getSliceComponentProps.d.ts","names":[],"sources":["../../src/SliceZone/getSliceComponentProps.ts"],"mappings":";;;;;;;;;;KAYK,mCAEJ,eAAe,iBACf;EAEA;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;EAED;IACC,MAAM,SAAS,oBAAoB,QAAQ;IAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiCW,yBAEZ,eAAe,iBACf,oBAGA,wDACE,mCAAmC,QAAQ"}
@@ -1,4 +1,4 @@
1
- //#region src/SliceZone/getSliceComponentProps.ts
1
+ // src/SliceZone/getSliceComponentProps.ts
2
2
  /**
3
3
  * Gets native Vue props for a component rendering content from a Prismic Slice using the
4
4
  * `<SliceZone />` component.
@@ -46,7 +46,6 @@ const getSliceComponentProps = (propsHint) => ({
46
46
  required: true
47
47
  }
48
48
  });
49
- //#endregion
50
49
  export { getSliceComponentProps };
51
50
 
52
51
  //# sourceMappingURL=getSliceComponentProps.js.map
@@ -1,6 +1,5 @@
1
1
  import { Component } from "../types.cjs";
2
2
  import { Slice } from "@prismicio/client";
3
- //#region src/SliceZone/types.d.ts
4
3
  /**
5
4
  * Returns the type of a `SliceLike` type.
6
5
  *
@@ -13,14 +12,14 @@ type ExtractSliceType<TSlice extends SliceLike> = TSlice extends SliceLikeRestV2
13
12
  *
14
13
  * @typeParam SliceType - Type name of the Slice.
15
14
  */
16
- type SliceLikeRestV2<TSliceType extends string = string> = Pick<Slice<TSliceType>, "id" | "slice_type">;
15
+ export type SliceLikeRestV2<TSliceType extends string = string> = Pick<Slice<TSliceType>, "id" | "slice_type">;
17
16
  /**
18
17
  * The minimum required properties to represent a Prismic Slice from the Prismic GraphQL API for the
19
18
  * `unstable_mapSliceZone()` helper.
20
19
  *
21
20
  * @typeParam SliceType - Type name of the Slice.
22
21
  */
23
- type SliceLikeGraphQL<TSliceType extends string = string> = {
22
+ export type SliceLikeGraphQL<TSliceType extends string = string> = {
24
23
  type: Slice<TSliceType>["slice_type"];
25
24
  };
26
25
  /**
@@ -31,7 +30,7 @@ type SliceLikeGraphQL<TSliceType extends string = string> = {
31
30
  *
32
31
  * @typeParam TSliceType - Type name of the Slice
33
32
  */
34
- type SliceLike<TSliceType extends string = string> = (SliceLikeRestV2<TSliceType> | SliceLikeGraphQL<TSliceType>) & {
33
+ export type SliceLike<TSliceType extends string = string> = (SliceLikeRestV2<TSliceType> | SliceLikeGraphQL<TSliceType>) & {
35
34
  /**
36
35
  * If `true`, this Slice has been modified from its original value using a mapper and
37
36
  * `@prismicio/client`'s `mapSliceZone()`.
@@ -48,7 +47,7 @@ type SliceLike<TSliceType extends string = string> = (SliceLikeRestV2<TSliceType
48
47
  *
49
48
  * @typeParam TSlice - The type(s) of slices in the Slice Zone
50
49
  */
51
- type SliceZoneLike<TSlice extends SliceLike = SliceLike> = readonly TSlice[];
50
+ export type SliceZoneLike<TSlice extends SliceLike = SliceLike> = readonly TSlice[];
52
51
  /**
53
52
  * Vue props for a component rendering content from a Prismic Slice using the `<SliceZone />`
54
53
  * component.
@@ -57,7 +56,7 @@ type SliceZoneLike<TSlice extends SliceLike = SliceLike> = readonly TSlice[];
57
56
  * @typeParam TContext - Arbitrary data passed to `<SliceZone />` and made available to all Slice
58
57
  * components
59
58
  */
60
- type SliceComponentProps<TSlice extends SliceLike = SliceLike, TContext = unknown> = {
59
+ export type SliceComponentProps<TSlice extends SliceLike = SliceLike, TContext = unknown> = {
61
60
  /** Slice data for this component. */
62
61
  slice: TSlice;
63
62
  /** The index of the Slice in the Slice Zone. */
@@ -73,7 +72,7 @@ type SliceComponentProps<TSlice extends SliceLike = SliceLike, TContext = unknow
73
72
  * @typeParam TSlice - The type(s) of slices in the Slice Zone
74
73
  * @typeParam TContext - Arbitrary data made available to all Slice components
75
74
  */
76
- type SliceComponentType<TSlice extends SliceLike = any, TContext = unknown> = Component<SliceComponentProps<TSlice, TContext>>;
75
+ export type SliceComponentType<TSlice extends SliceLike = any, TContext = unknown> = Component<SliceComponentProps<TSlice, TContext>>;
77
76
  /**
78
77
  * A record of Slice types mapped to Vue components. Each components will be rendered for each
79
78
  * instance of their Slice type.
@@ -81,7 +80,6 @@ type SliceComponentType<TSlice extends SliceLike = any, TContext = unknown> = Co
81
80
  * @typeParam TSlice - The type(s) of slices in the Slice Zone
82
81
  * @typeParam TContext - Arbitrary data made available to all Slice components
83
82
  */
84
- type SliceZoneComponents<TSlice extends SliceLike = SliceLike, TContext = unknown> = { [SliceType in ExtractSliceType<TSlice>]: SliceComponentType<Extract<TSlice, SliceLike<SliceType>> extends never ? SliceLike : Extract<TSlice, SliceLike<SliceType>>, TContext> | string; };
85
- //#endregion
86
- export { SliceComponentProps, SliceComponentType, SliceLike, SliceLikeGraphQL, SliceLikeRestV2, SliceZoneComponents, SliceZoneLike };
83
+ export type SliceZoneComponents<TSlice extends SliceLike = SliceLike, TContext = unknown> = { [SliceType in ExtractSliceType<TSlice>]: SliceComponentType<Extract<TSlice, SliceLike<SliceType>> extends never ? SliceLike : Extract<TSlice, SliceLike<SliceType>>, TContext> | string; };
84
+ export {};
87
85
  //# sourceMappingURL=types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","names":[],"sources":["../../src/SliceZone/types.ts"],"mappings":";;;;;;;;KASK,iBAAiB,eAAe,aAAa,eAAe,kBAC9D,uBACA,eAAe,mBACd;;;;;;;KASQ,gBAAgB,sCAAsC,KACjE,MAAM;;;;;;;KAUK,iBAAiB;EAC5B,MAAM,MAAM;;;;;;;;;;KAWD,UAAU,uCACnB,gBAAgB,cAChB,iBAAiB;;;;;;;EAQnB;;;;;;;;;;KAWW,cAAc,eAAe,YAAY,sBAAsB;;;;;;;;;KAU/D,oBAAoB,eAAe,YAAY,WAAW;;EAErE,OAAO;;EAGP;;EAOA,QAAQ,cAAc,eAAe,mBAAmB,mBAAmB;;EAG3E,SAAS;;;;;;;;KASE,mBAEX,eAAe,iBACf,sBACG,UAAU,oBAAoB,QAAQ;;;;;;;;KAS9B,oBAAoB,eAAe,YAAY,WAAW,yBAWnE,aAAa,iBAAiB,UAC5B,mBACA,QAAQ,QAAQ,UAAU,4BACvB,YACA,QAAQ,QAAQ,UAAU,aAC7B"}
1
+ {"version":3,"file":"types.d.cts","names":[],"sources":["../../src/SliceZone/types.ts"],"mappings":";;;;;;;KASK,iBAAiB,eAAe,aAAa,eAAe,kBAC9D,uBACA,eAAe,mBACd;;;;;;;YASQ,gBAAgB,sCAAsC,KACjE,MAAM;;;;;;;YAUK,iBAAiB;EAC5B,MAAM,MAAM;;;;;;;;;;YAWD,UAAU,uCACnB,gBAAgB,cAChB,iBAAiB;;;;;;;EAQnB;;;;;;;;;;YAWW,cAAc,eAAe,YAAY,sBAAsB;;;;;;;;;YAU/D,oBAAoB,eAAe,YAAY,WAAW;;EAErE,OAAO;;EAGP;;EAOA,QAAQ,cAAc,eAAe,mBAAmB,mBAAmB;;EAG3E,SAAS;;;;;;;;YASE,mBAEX,eAAe,iBACf,sBACG,UAAU,oBAAoB,QAAQ;;;;;;;;YAS9B,oBAAoB,eAAe,YAAY,WAAW,yBAWnE,aAAa,iBAAiB,UAC5B,mBACA,QAAQ,QAAQ,UAAU,4BACvB,YACA,QAAQ,QAAQ,UAAU,aAC7B"}
@@ -1,6 +1,5 @@
1
1
  import { Component } from "../types.js";
2
2
  import { Slice } from "@prismicio/client";
3
- //#region src/SliceZone/types.d.ts
4
3
  /**
5
4
  * Returns the type of a `SliceLike` type.
6
5
  *
@@ -13,14 +12,14 @@ type ExtractSliceType<TSlice extends SliceLike> = TSlice extends SliceLikeRestV2
13
12
  *
14
13
  * @typeParam SliceType - Type name of the Slice.
15
14
  */
16
- type SliceLikeRestV2<TSliceType extends string = string> = Pick<Slice<TSliceType>, "id" | "slice_type">;
15
+ export type SliceLikeRestV2<TSliceType extends string = string> = Pick<Slice<TSliceType>, "id" | "slice_type">;
17
16
  /**
18
17
  * The minimum required properties to represent a Prismic Slice from the Prismic GraphQL API for the
19
18
  * `unstable_mapSliceZone()` helper.
20
19
  *
21
20
  * @typeParam SliceType - Type name of the Slice.
22
21
  */
23
- type SliceLikeGraphQL<TSliceType extends string = string> = {
22
+ export type SliceLikeGraphQL<TSliceType extends string = string> = {
24
23
  type: Slice<TSliceType>["slice_type"];
25
24
  };
26
25
  /**
@@ -31,7 +30,7 @@ type SliceLikeGraphQL<TSliceType extends string = string> = {
31
30
  *
32
31
  * @typeParam TSliceType - Type name of the Slice
33
32
  */
34
- type SliceLike<TSliceType extends string = string> = (SliceLikeRestV2<TSliceType> | SliceLikeGraphQL<TSliceType>) & {
33
+ export type SliceLike<TSliceType extends string = string> = (SliceLikeRestV2<TSliceType> | SliceLikeGraphQL<TSliceType>) & {
35
34
  /**
36
35
  * If `true`, this Slice has been modified from its original value using a mapper and
37
36
  * `@prismicio/client`'s `mapSliceZone()`.
@@ -48,7 +47,7 @@ type SliceLike<TSliceType extends string = string> = (SliceLikeRestV2<TSliceType
48
47
  *
49
48
  * @typeParam TSlice - The type(s) of slices in the Slice Zone
50
49
  */
51
- type SliceZoneLike<TSlice extends SliceLike = SliceLike> = readonly TSlice[];
50
+ export type SliceZoneLike<TSlice extends SliceLike = SliceLike> = readonly TSlice[];
52
51
  /**
53
52
  * Vue props for a component rendering content from a Prismic Slice using the `<SliceZone />`
54
53
  * component.
@@ -57,7 +56,7 @@ type SliceZoneLike<TSlice extends SliceLike = SliceLike> = readonly TSlice[];
57
56
  * @typeParam TContext - Arbitrary data passed to `<SliceZone />` and made available to all Slice
58
57
  * components
59
58
  */
60
- type SliceComponentProps<TSlice extends SliceLike = SliceLike, TContext = unknown> = {
59
+ export type SliceComponentProps<TSlice extends SliceLike = SliceLike, TContext = unknown> = {
61
60
  /** Slice data for this component. */
62
61
  slice: TSlice;
63
62
  /** The index of the Slice in the Slice Zone. */
@@ -73,7 +72,7 @@ type SliceComponentProps<TSlice extends SliceLike = SliceLike, TContext = unknow
73
72
  * @typeParam TSlice - The type(s) of slices in the Slice Zone
74
73
  * @typeParam TContext - Arbitrary data made available to all Slice components
75
74
  */
76
- type SliceComponentType<TSlice extends SliceLike = any, TContext = unknown> = Component<SliceComponentProps<TSlice, TContext>>;
75
+ export type SliceComponentType<TSlice extends SliceLike = any, TContext = unknown> = Component<SliceComponentProps<TSlice, TContext>>;
77
76
  /**
78
77
  * A record of Slice types mapped to Vue components. Each components will be rendered for each
79
78
  * instance of their Slice type.
@@ -81,7 +80,6 @@ type SliceComponentType<TSlice extends SliceLike = any, TContext = unknown> = Co
81
80
  * @typeParam TSlice - The type(s) of slices in the Slice Zone
82
81
  * @typeParam TContext - Arbitrary data made available to all Slice components
83
82
  */
84
- type SliceZoneComponents<TSlice extends SliceLike = SliceLike, TContext = unknown> = { [SliceType in ExtractSliceType<TSlice>]: SliceComponentType<Extract<TSlice, SliceLike<SliceType>> extends never ? SliceLike : Extract<TSlice, SliceLike<SliceType>>, TContext> | string; };
85
- //#endregion
86
- export { SliceComponentProps, SliceComponentType, SliceLike, SliceLikeGraphQL, SliceLikeRestV2, SliceZoneComponents, SliceZoneLike };
83
+ export type SliceZoneComponents<TSlice extends SliceLike = SliceLike, TContext = unknown> = { [SliceType in ExtractSliceType<TSlice>]: SliceComponentType<Extract<TSlice, SliceLike<SliceType>> extends never ? SliceLike : Extract<TSlice, SliceLike<SliceType>>, TContext> | string; };
84
+ export {};
87
85
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/SliceZone/types.ts"],"mappings":";;;;;;;;KASK,iBAAiB,eAAe,aAAa,eAAe,kBAC9D,uBACA,eAAe,mBACd;;;;;;;KASQ,gBAAgB,sCAAsC,KACjE,MAAM;;;;;;;KAUK,iBAAiB;EAC5B,MAAM,MAAM;;;;;;;;;;KAWD,UAAU,uCACnB,gBAAgB,cAChB,iBAAiB;;;;;;;EAQnB;;;;;;;;;;KAWW,cAAc,eAAe,YAAY,sBAAsB;;;;;;;;;KAU/D,oBAAoB,eAAe,YAAY,WAAW;;EAErE,OAAO;;EAGP;;EAOA,QAAQ,cAAc,eAAe,mBAAmB,mBAAmB;;EAG3E,SAAS;;;;;;;;KASE,mBAEX,eAAe,iBACf,sBACG,UAAU,oBAAoB,QAAQ;;;;;;;;KAS9B,oBAAoB,eAAe,YAAY,WAAW,yBAWnE,aAAa,iBAAiB,UAC5B,mBACA,QAAQ,QAAQ,UAAU,4BACvB,YACA,QAAQ,QAAQ,UAAU,aAC7B"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/SliceZone/types.ts"],"mappings":";;;;;;;KASK,iBAAiB,eAAe,aAAa,eAAe,kBAC9D,uBACA,eAAe,mBACd;;;;;;;YASQ,gBAAgB,sCAAsC,KACjE,MAAM;;;;;;;YAUK,iBAAiB;EAC5B,MAAM,MAAM;;;;;;;;;;YAWD,UAAU,uCACnB,gBAAgB,cAChB,iBAAiB;;;;;;;EAQnB;;;;;;;;;;YAWW,cAAc,eAAe,YAAY,sBAAsB;;;;;;;;;YAU/D,oBAAoB,eAAe,YAAY,WAAW;;EAErE,OAAO;;EAGP;;EAOA,QAAQ,cAAc,eAAe,mBAAmB,mBAAmB;;EAG3E,SAAS;;;;;;;;YASE,mBAEX,eAAe,iBACf,sBACG,UAAU,oBAAoB,QAAQ;;;;;;;;YAS9B,oBAAoB,eAAe,YAAY,WAAW,yBAWnE,aAAa,iBAAiB,UAC5B,mBACA,QAAQ,QAAQ,UAAU,4BACvB,YACA,QAAQ,QAAQ,UAAU,aAC7B"}
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var __defProp = Object.defineProperty;
3
3
  var __exportAll = (all, no_symbols) => {
4
4
  let target = {};
@@ -9,5 +9,4 @@ var __exportAll = (all, no_symbols) => {
9
9
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
10
  return target;
11
11
  };
12
- //#endregion
13
12
  exports.__exportAll = __exportAll;
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var __defProp = Object.defineProperty;
3
3
  var __exportAll = (all, no_symbols) => {
4
4
  let target = {};
@@ -9,5 +9,4 @@ var __exportAll = (all, no_symbols) => {
9
9
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
10
  return target;
11
11
  };
12
- //#endregion
13
12
  export { __exportAll };
@@ -1,6 +1,6 @@
1
1
  let vue = require("vue");
2
2
  let _prismicio_client = require("@prismicio/client");
3
- //#region src/createPrismic.ts
3
+ // src/createPrismic.ts
4
4
  const prismicKey = Symbol.for("@prismicio/vue/plugin");
5
5
  /** Creates a Prismic Vue plugin instance that can be used by a Vue app. */
6
6
  const createPrismic = (config) => {
@@ -25,7 +25,6 @@ const createPrismic = (config) => {
25
25
  const usePrismic = () => {
26
26
  return (0, vue.inject)(prismicKey, { components: {} });
27
27
  };
28
- //#endregion
29
28
  exports.createPrismic = createPrismic;
30
29
  exports.usePrismic = usePrismic;
31
30
 
@@ -5,7 +5,6 @@ import { TableComponents } from "./PrismicTable/types.cjs";
5
5
  import "./PrismicTable/index.cjs";
6
6
  import { CreateClient, LinkResolverFunction, isFilled } from "@prismicio/client";
7
7
  import { App } from "vue";
8
- //#region src/createPrismic.d.ts
9
8
  /** Components configuration. */
10
9
  type ComponentsConfig = {
11
10
  /** The default component rendered for internal URLs. */
@@ -21,7 +20,7 @@ type ComponentsConfig = {
21
20
  richTextComponents?: RichTextComponents & TableComponents;
22
21
  };
23
22
  /** Prismic Vue plugin configuration. */
24
- type PrismicPluginConfig = {
23
+ export type PrismicPluginConfig = {
25
24
  /** A Prismic client instance to inject into the Vue app. */
26
25
  client: ReturnType<CreateClient>;
27
26
  /**
@@ -34,7 +33,7 @@ type PrismicPluginConfig = {
34
33
  components?: ComponentsConfig;
35
34
  };
36
35
  /** Prismic Vue plugin interface accessible through `usePrismic()` and `$prismic`. */
37
- type PrismicPlugin = {
36
+ export type PrismicPlugin = {
38
37
  /** A Prismic client that can be used to query content from a repository. */
39
38
  client: ReturnType<CreateClient>;
40
39
  /** Helpers to determine if a field is filled. */
@@ -51,7 +50,7 @@ type PrismicPlugin = {
51
50
  install: (app: App) => void;
52
51
  };
53
52
  /** Creates a Prismic Vue plugin instance that can be used by a Vue app. */
54
- declare const createPrismic: (config: PrismicPluginConfig) => PrismicPlugin;
53
+ export declare const createPrismic: (config: PrismicPluginConfig) => PrismicPlugin;
55
54
  /**
56
55
  * Access the Prismic Vue plugin interface.
57
56
  *
@@ -60,13 +59,12 @@ declare const createPrismic: (config: PrismicPluginConfig) => PrismicPlugin;
60
59
  * const { client, isFilled } = usePrismic()
61
60
  * ```
62
61
  */
63
- declare const usePrismic: () => PrismicPlugin;
62
+ export declare const usePrismic: () => PrismicPlugin;
64
63
  declare module "vue" {
65
64
  interface ComponentCustomProperties {
66
65
  /** The Prismic Vue plugin interface. */
67
66
  $prismic: PrismicPlugin;
68
67
  }
69
68
  }
70
- //#endregion
71
- export { PrismicPlugin, PrismicPluginConfig, createPrismic, usePrismic };
69
+ export {};
72
70
  //# sourceMappingURL=createPrismic.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createPrismic.d.cts","names":[],"sources":["../src/createPrismic.ts"],"mappings":";;;;;;;;;KAYK;;EAEJ,wBAAwB;;EAGxB,wBAAwB;;;;;;;EAQxB,qBAAqB,qBAAqB;;;KAI/B;;EAEX,QAAQ,WAAW;;;;;;EAOnB,eAAe;;EAGf,aAAa;;;KAIF;;EAEX,QAAQ,WAAW;;EAGnB,iBAAiB;;;;;;EAOjB,eAAe;;WAGN,YAAY;;EAGrB,UAAU,KAAK;;;cAIH,gBAAiB,QAAQ,wBAAsB;;;;;;;;;cAoB/C,kBAAiB;;YAKZ;;IAEhB,UAAU"}
1
+ {"version":3,"file":"createPrismic.d.cts","names":[],"sources":["../src/createPrismic.ts"],"mappings":";;;;;;;;KAYK;;EAEJ,wBAAwB;;EAGxB,wBAAwB;;;;;;;EAQxB,qBAAqB,qBAAqB;;;YAI/B;;EAEX,QAAQ,WAAW;;;;;;EAOnB,eAAe;;EAGf,aAAa;;;YAIF;;EAEX,QAAQ,WAAW;;EAGnB,iBAAiB;;;;;;EAOjB,eAAe;;WAGN,YAAY;;EAGrB,UAAU,KAAK;;;qBAIH,gBAAiB,QAAQ,wBAAsB;;;;;;;;;qBAoB/C,kBAAiB;;YAKZ;;IAEhB,UAAU"}
@@ -5,7 +5,6 @@ import { TableComponents } from "./PrismicTable/types.js";
5
5
  import "./PrismicTable/index.js";
6
6
  import { App } from "vue";
7
7
  import { CreateClient, LinkResolverFunction, isFilled } from "@prismicio/client";
8
- //#region src/createPrismic.d.ts
9
8
  /** Components configuration. */
10
9
  type ComponentsConfig = {
11
10
  /** The default component rendered for internal URLs. */
@@ -21,7 +20,7 @@ type ComponentsConfig = {
21
20
  richTextComponents?: RichTextComponents & TableComponents;
22
21
  };
23
22
  /** Prismic Vue plugin configuration. */
24
- type PrismicPluginConfig = {
23
+ export type PrismicPluginConfig = {
25
24
  /** A Prismic client instance to inject into the Vue app. */
26
25
  client: ReturnType<CreateClient>;
27
26
  /**
@@ -34,7 +33,7 @@ type PrismicPluginConfig = {
34
33
  components?: ComponentsConfig;
35
34
  };
36
35
  /** Prismic Vue plugin interface accessible through `usePrismic()` and `$prismic`. */
37
- type PrismicPlugin = {
36
+ export type PrismicPlugin = {
38
37
  /** A Prismic client that can be used to query content from a repository. */
39
38
  client: ReturnType<CreateClient>;
40
39
  /** Helpers to determine if a field is filled. */
@@ -51,7 +50,7 @@ type PrismicPlugin = {
51
50
  install: (app: App) => void;
52
51
  };
53
52
  /** Creates a Prismic Vue plugin instance that can be used by a Vue app. */
54
- declare const createPrismic: (config: PrismicPluginConfig) => PrismicPlugin;
53
+ export declare const createPrismic: (config: PrismicPluginConfig) => PrismicPlugin;
55
54
  /**
56
55
  * Access the Prismic Vue plugin interface.
57
56
  *
@@ -60,13 +59,12 @@ declare const createPrismic: (config: PrismicPluginConfig) => PrismicPlugin;
60
59
  * const { client, isFilled } = usePrismic()
61
60
  * ```
62
61
  */
63
- declare const usePrismic: () => PrismicPlugin;
62
+ export declare const usePrismic: () => PrismicPlugin;
64
63
  declare module "vue" {
65
64
  interface ComponentCustomProperties {
66
65
  /** The Prismic Vue plugin interface. */
67
66
  $prismic: PrismicPlugin;
68
67
  }
69
68
  }
70
- //#endregion
71
- export { PrismicPlugin, PrismicPluginConfig, createPrismic, usePrismic };
69
+ export {};
72
70
  //# sourceMappingURL=createPrismic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createPrismic.d.ts","names":[],"sources":["../src/createPrismic.ts"],"mappings":";;;;;;;;;KAYK;;EAEJ,wBAAwB;;EAGxB,wBAAwB;;;;;;;EAQxB,qBAAqB,qBAAqB;;;KAI/B;;EAEX,QAAQ,WAAW;;;;;;EAOnB,eAAe;;EAGf,aAAa;;;KAIF;;EAEX,QAAQ,WAAW;;EAGnB,iBAAiB;;;;;;EAOjB,eAAe;;WAGN,YAAY;;EAGrB,UAAU,KAAK;;;cAIH,gBAAiB,QAAQ,wBAAsB;;;;;;;;;cAoB/C,kBAAiB;;YAKZ;;IAEhB,UAAU"}
1
+ {"version":3,"file":"createPrismic.d.ts","names":[],"sources":["../src/createPrismic.ts"],"mappings":";;;;;;;;KAYK;;EAEJ,wBAAwB;;EAGxB,wBAAwB;;;;;;;EAQxB,qBAAqB,qBAAqB;;;YAI/B;;EAEX,QAAQ,WAAW;;;;;;EAOnB,eAAe;;EAGf,aAAa;;;YAIF;;EAEX,QAAQ,WAAW;;EAGnB,iBAAiB;;;;;;EAOjB,eAAe;;WAGN,YAAY;;EAGrB,UAAU,KAAK;;;qBAIH,gBAAiB,QAAQ,wBAAsB;;;;;;;;;qBAoB/C,kBAAiB;;YAKZ;;IAEhB,UAAU"}