@prismicio/vue 6.1.2 → 6.1.3-canary.58d692d

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 (146) hide show
  1. package/dist/PrismicImage.cjs.map +1 -1
  2. package/dist/PrismicImage.js.map +1 -1
  3. package/dist/PrismicImage.vue.d.cts +14 -11
  4. package/dist/PrismicImage.vue.d.cts.map +1 -1
  5. package/dist/PrismicImage.vue.d.ts +14 -11
  6. package/dist/PrismicImage.vue.d.ts.map +1 -1
  7. package/dist/PrismicImage.vue_vue_type_script_setup_true_lang.cjs +1 -1
  8. package/dist/PrismicImage.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  9. package/dist/PrismicImage.vue_vue_type_script_setup_true_lang.js +1 -1
  10. package/dist/PrismicImage.vue_vue_type_script_setup_true_lang.js.map +1 -1
  11. package/dist/PrismicLink.cjs.map +1 -1
  12. package/dist/PrismicLink.js.map +1 -1
  13. package/dist/PrismicLink.vue.d.cts +17 -13
  14. package/dist/PrismicLink.vue.d.cts.map +1 -1
  15. package/dist/PrismicLink.vue.d.ts +17 -13
  16. package/dist/PrismicLink.vue.d.ts.map +1 -1
  17. package/dist/PrismicLink.vue_vue_type_script_setup_true_lang.cjs +3 -3
  18. package/dist/PrismicLink.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  19. package/dist/PrismicLink.vue_vue_type_script_setup_true_lang.js +3 -3
  20. package/dist/PrismicLink.vue_vue_type_script_setup_true_lang.js.map +1 -1
  21. package/dist/PrismicRichText/PrismicRichText.vue.d.cts +7 -8
  22. package/dist/PrismicRichText/PrismicRichText.vue.d.cts.map +1 -1
  23. package/dist/PrismicRichText/PrismicRichText.vue.d.ts +6 -7
  24. package/dist/PrismicRichText/PrismicRichText.vue.d.ts.map +1 -1
  25. package/dist/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs +1 -1
  26. package/dist/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  27. package/dist/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.js +1 -1
  28. package/dist/PrismicRichText/PrismicRichText.vue_vue_type_script_setup_true_lang.js.map +1 -1
  29. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.cjs +1 -1
  30. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  31. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.js +1 -1
  32. package/dist/PrismicRichText/PrismicRichTextDefaultComponent.vue_vue_type_script_setup_true_lang.js.map +1 -1
  33. package/dist/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.cjs +1 -1
  34. package/dist/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  35. package/dist/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.js +1 -1
  36. package/dist/PrismicRichText/PrismicRichTextSerialize.vue_vue_type_script_setup_true_lang.js.map +1 -1
  37. package/dist/PrismicRichText/getRichTextComponentProps.cjs.map +1 -1
  38. package/dist/PrismicRichText/getRichTextComponentProps.d.cts +1 -2
  39. package/dist/PrismicRichText/getRichTextComponentProps.d.cts.map +1 -1
  40. package/dist/PrismicRichText/getRichTextComponentProps.d.ts +0 -1
  41. package/dist/PrismicRichText/getRichTextComponentProps.d.ts.map +1 -1
  42. package/dist/PrismicRichText/getRichTextComponentProps.js.map +1 -1
  43. package/dist/PrismicRichText/index.d.cts +2 -1
  44. package/dist/PrismicRichText/index.d.ts +2 -1
  45. package/dist/PrismicRichText/types.d.cts +1 -2
  46. package/dist/PrismicRichText/types.d.cts.map +1 -1
  47. package/dist/PrismicRichText/types.d.ts +1 -2
  48. package/dist/PrismicRichText/types.d.ts.map +1 -1
  49. package/dist/PrismicTable/PrismicTable.vue.d.cts +5 -5
  50. package/dist/PrismicTable/PrismicTable.vue.d.cts.map +1 -1
  51. package/dist/PrismicTable/PrismicTable.vue.d.ts +5 -5
  52. package/dist/PrismicTable/PrismicTable.vue.d.ts.map +1 -1
  53. package/dist/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs +1 -1
  54. package/dist/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  55. package/dist/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.js +1 -1
  56. package/dist/PrismicTable/PrismicTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  57. package/dist/PrismicTable/PrismicTableDefaultComponents.cjs.map +1 -1
  58. package/dist/PrismicTable/PrismicTableDefaultComponents.js.map +1 -1
  59. package/dist/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.cjs +1 -1
  60. package/dist/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  61. package/dist/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.js +1 -1
  62. package/dist/PrismicTable/PrismicTableRow.vue_vue_type_script_setup_true_lang.js.map +1 -1
  63. package/dist/PrismicTable/getTableComponentProps.cjs.map +1 -1
  64. package/dist/PrismicTable/getTableComponentProps.d.cts +2 -4
  65. package/dist/PrismicTable/getTableComponentProps.d.cts.map +1 -1
  66. package/dist/PrismicTable/getTableComponentProps.d.ts +1 -3
  67. package/dist/PrismicTable/getTableComponentProps.d.ts.map +1 -1
  68. package/dist/PrismicTable/getTableComponentProps.js.map +1 -1
  69. package/dist/PrismicTable/index.d.cts +2 -1
  70. package/dist/PrismicTable/index.d.ts +2 -1
  71. package/dist/PrismicTable/types.d.cts +0 -1
  72. package/dist/PrismicTable/types.d.cts.map +1 -1
  73. package/dist/PrismicTable/types.d.ts +0 -1
  74. package/dist/PrismicTable/types.d.ts.map +1 -1
  75. package/dist/PrismicText.vue.d.cts +4 -5
  76. package/dist/PrismicText.vue.d.cts.map +1 -1
  77. package/dist/PrismicText.vue.d.ts +4 -5
  78. package/dist/PrismicText.vue.d.ts.map +1 -1
  79. package/dist/PrismicText.vue_vue_type_script_setup_true_lang.cjs +1 -1
  80. package/dist/PrismicText.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  81. package/dist/PrismicText.vue_vue_type_script_setup_true_lang.js +1 -1
  82. package/dist/PrismicText.vue_vue_type_script_setup_true_lang.js.map +1 -1
  83. package/dist/SliceSimulator.vue.d.cts +14 -15
  84. package/dist/SliceSimulator.vue.d.cts.map +1 -1
  85. package/dist/SliceSimulator.vue.d.ts +14 -15
  86. package/dist/SliceSimulator.vue.d.ts.map +1 -1
  87. package/dist/SliceSimulator.vue_vue_type_script_setup_true_lang.cjs +1 -1
  88. package/dist/SliceSimulator.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  89. package/dist/SliceSimulator.vue_vue_type_script_setup_true_lang.js +1 -1
  90. package/dist/SliceSimulator.vue_vue_type_script_setup_true_lang.js.map +1 -1
  91. package/dist/SliceZone/SliceZone.vue.d.cts +9 -7
  92. package/dist/SliceZone/SliceZone.vue.d.cts.map +1 -1
  93. package/dist/SliceZone/SliceZone.vue.d.ts +9 -7
  94. package/dist/SliceZone/SliceZone.vue.d.ts.map +1 -1
  95. package/dist/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.cjs +1 -1
  96. package/dist/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.cjs.map +1 -1
  97. package/dist/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.js +1 -1
  98. package/dist/SliceZone/SliceZone.vue_vue_type_script_setup_true_lang.js.map +1 -1
  99. package/dist/SliceZone/TODOSliceComponent.cjs.map +1 -1
  100. package/dist/SliceZone/TODOSliceComponent.d.cts +0 -1
  101. package/dist/SliceZone/TODOSliceComponent.d.cts.map +1 -1
  102. package/dist/SliceZone/TODOSliceComponent.d.ts +0 -1
  103. package/dist/SliceZone/TODOSliceComponent.d.ts.map +1 -1
  104. package/dist/SliceZone/TODOSliceComponent.js.map +1 -1
  105. package/dist/SliceZone/defineSliceZoneComponents.cjs.map +1 -1
  106. package/dist/SliceZone/defineSliceZoneComponents.d.cts +0 -1
  107. package/dist/SliceZone/defineSliceZoneComponents.d.cts.map +1 -1
  108. package/dist/SliceZone/defineSliceZoneComponents.d.ts +0 -1
  109. package/dist/SliceZone/defineSliceZoneComponents.d.ts.map +1 -1
  110. package/dist/SliceZone/defineSliceZoneComponents.js.map +1 -1
  111. package/dist/SliceZone/getSliceComponentProps.cjs.map +1 -1
  112. package/dist/SliceZone/getSliceComponentProps.d.cts +0 -1
  113. package/dist/SliceZone/getSliceComponentProps.d.cts.map +1 -1
  114. package/dist/SliceZone/getSliceComponentProps.d.ts +0 -1
  115. package/dist/SliceZone/getSliceComponentProps.d.ts.map +1 -1
  116. package/dist/SliceZone/getSliceComponentProps.js.map +1 -1
  117. package/dist/SliceZone/index.d.cts +2 -1
  118. package/dist/SliceZone/index.d.ts +2 -1
  119. package/dist/SliceZone/types.d.cts +8 -5
  120. package/dist/SliceZone/types.d.cts.map +1 -1
  121. package/dist/SliceZone/types.d.ts +8 -5
  122. package/dist/SliceZone/types.d.ts.map +1 -1
  123. package/dist/createPrismic.cjs.map +1 -1
  124. package/dist/createPrismic.d.cts +17 -8
  125. package/dist/createPrismic.d.cts.map +1 -1
  126. package/dist/createPrismic.d.ts +16 -7
  127. package/dist/createPrismic.d.ts.map +1 -1
  128. package/dist/createPrismic.js.map +1 -1
  129. package/dist/index.cjs +7 -7
  130. package/dist/index.d.cts +10 -7
  131. package/dist/index.d.ts +10 -7
  132. package/dist/lib/devMsg.cjs.map +1 -1
  133. package/dist/lib/devMsg.js.map +1 -1
  134. package/dist/lib/isInternalURL.cjs.map +1 -1
  135. package/dist/lib/isInternalURL.js.map +1 -1
  136. package/dist/package.cjs +1 -1
  137. package/dist/package.js +1 -1
  138. package/dist/types.cjs.map +1 -1
  139. package/dist/types.d.cts +3 -2
  140. package/dist/types.d.cts.map +1 -1
  141. package/dist/types.d.ts +3 -2
  142. package/dist/types.d.ts.map +1 -1
  143. package/dist/types.js.map +1 -1
  144. package/package.json +18 -18
  145. package/src/PrismicImage.vue +1 -1
  146. package/src/PrismicLink.vue +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/PrismicRichText/types.ts"],"mappings":";;;;;;AAgCA;;;KAAY,kBAAA;EACX,QAAA,GAAW,iBAAA,CAAkB,cAAA,IAAkB,kBAAA;EAC/C,QAAA,GAAW,iBAAA,CAAkB,cAAA,IAAkB,kBAAA;EAC/C,QAAA,GAAW,iBAAA,CAAkB,cAAA,IAAkB,kBAAA;EAC/C,QAAA,GAAW,iBAAA,CAAkB,cAAA,IAAkB,kBAAA;EAC/C,QAAA,GAAW,iBAAA,CAAkB,cAAA,IAAkB,kBAAA;EAC/C,QAAA,GAAW,iBAAA,CAAkB,cAAA,IAAkB,kBAAA;EAC/C,SAAA,GAAY,iBAAA,CAAkB,eAAA,IAAmB,kBAAA;EACjD,YAAA,GAAe,iBAAA,CAAkB,kBAAA,IAAsB,kBAAA;EACvD,MAAA,GAAS,iBAAA,CAAkB,YAAA,IAAgB,kBAAA;EAC3C,EAAA,GAAK,iBAAA,CAAkB,QAAA,IAAY,kBAAA;EACnC,QAAA,GAAW,iBAAA,CAAkB,cAAA,IAAkB,kBAAA;EAC/C,SAAA,GAAY,iBAAA,CAAkB,eAAA,IAAmB,kBAAA;EACjD,IAAA,GAAO,iBAAA,CAAkB,UAAA,IAAc,kBAAA;EACvC,KAAA,GAAQ,iBAAA,CAAkB,WAAA,IAAe,kBAAA;EACzC,KAAA,GAAQ,iBAAA,CAAkB,WAAA,IAAe,IAAA,CAAK,kBAAA;EAC9C,KAAA,GAAQ,iBAAA,CAAkB,WAAA,IAAe,kBAAA;EACzC,SAAA,GAAY,iBAAA,CAAkB,UAAA,IAAc,IAAA,CAAK,kBAAA;EACjD,KAAA,GAAQ,iBAAA,CAAkB,WAAA,IAAe,IAAA,CAAK,kBAAA;EAC9C,IAAA,GAAO,iBAAA,CAAkB,UAAA;AAAA;;KAId,sBAAA,iBAAuC,SAAA,GAAY,SAAA;EAC9D,IAAA,EAAM,OAAA;AAAA;;;;;;KAQK,iBAAA,iBAAkC,SAAA,GAAY,SAAA,IAAa,SAAA,CACtE,sBAAA,CAAuB,OAAA"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/PrismicRichText/types.ts"],"mappings":";;;;;;;;KAgCY;EACX,WAAW,kBAAkB,kBAAkB;EAC/C,WAAW,kBAAkB,kBAAkB;EAC/C,WAAW,kBAAkB,kBAAkB;EAC/C,WAAW,kBAAkB,kBAAkB;EAC/C,WAAW,kBAAkB,kBAAkB;EAC/C,WAAW,kBAAkB,kBAAkB;EAC/C,YAAY,kBAAkB,mBAAmB;EACjD,eAAe,kBAAkB,sBAAsB;EACvD,SAAS,kBAAkB,gBAAgB;EAC3C,KAAK,kBAAkB,YAAY;EACnC,WAAW,kBAAkB,kBAAkB;EAC/C,YAAY,kBAAkB,mBAAmB;EACjD,OAAO,kBAAkB,cAAc;EACvC,QAAQ,kBAAkB,eAAe;EACzC,QAAQ,kBAAkB,eAAe,KAAK;EAC9C,QAAQ,kBAAkB,eAAe;EACzC,YAAY,kBAAkB,cAAc,KAAK;EACjD,QAAQ,kBAAkB,eAAe,KAAK;EAC9C,OAAO,kBAAkB;;;KAId,uBAAuB,gBAAgB,YAAY;EAC9D,MAAM;;;;;;;KAQK,kBAAkB,gBAAgB,YAAY,aAAa,UACtE,uBAAuB"}
@@ -1,13 +1,13 @@
1
1
  import { ComponentOrTagName } from "../types.cjs";
2
2
  import { RichTextComponents } from "../PrismicRichText/types.cjs";
3
+ import "../PrismicRichText/index.cjs";
3
4
  import { TableComponents } from "./types.cjs";
4
- import * as _$vue from "vue";
5
5
  import { TableField } from "@prismicio/client";
6
-
7
6
  //#region src/PrismicTable/PrismicTable.vue.d.ts
8
7
  /** Props for `<PrismicTable />`. */
9
8
  type PrismicTableProps = {
10
- /** The Prismic table field to render. */field: TableField | undefined;
9
+ /** The Prismic table field to render. */
10
+ field: TableField | undefined;
11
11
  /**
12
12
  * An object that maps a table block type to a Vue component or a shorthand definition.
13
13
  *
@@ -27,8 +27,8 @@ type PrismicTableProps = {
27
27
  */
28
28
  fallback?: ComponentOrTagName;
29
29
  };
30
- declare const __VLS_export: _$vue.DefineComponent<PrismicTableProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<PrismicTableProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: import("vue").DefineComponent<PrismicTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrismicTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
31
  declare const _default: typeof __VLS_export;
32
32
  //#endregion
33
- export { PrismicTableProps, _default };
33
+ export { PrismicTableProps, _default as default };
34
34
  //# sourceMappingURL=PrismicTable.vue.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicTable.vue.d.cts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"mappings":";;;;;;;;KA8HY,iBAAA;2CAEX,KAAA,EAAO,UAAA;EAFI;;;;;;;;;;;;EAgBX,UAAA,GAAa,eAAA,GAAkB,kBAAA;EAAA;;;;EAM/B,QAAA,GAAW,kBAAA;AAAA;AAAA,cA4JN,YAAA,EAAY,KAAA,CAAA,eAAA,CAAA,iBAAA,kBAAA,KAAA,CAAA,qBAAA,EAAA,KAAA,CAAA,qBAAA,cAAA,KAAA,CAAA,WAAA,EAAA,QAAA,CAAA,iBAAA,IAAA,QAAA,8BAAA,KAAA,CAAA,uBAAA;AAAA,cAAA,QAAA,SAGU,YAAA"}
1
+ {"version":3,"file":"PrismicTable.vue.d.cts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"mappings":";;;;;;;KA8HY;;EAEX,OAAO;;;;;;;;;;;;;EAcP,aAAa,kBAAkB;;;;;EAM/B,WAAW;;cA4JN,4BAAY,gBAAA,iDAAA,qCAAA,iDAAA,aAAA,SAAA,qBAAA,oDAAA;cAGG,iBAAO"}
@@ -1,13 +1,13 @@
1
1
  import { ComponentOrTagName } from "../types.js";
2
2
  import { RichTextComponents } from "../PrismicRichText/types.js";
3
+ import "../PrismicRichText/index.js";
3
4
  import { TableComponents } from "./types.js";
4
- import * as _$vue from "vue";
5
5
  import { TableField } from "@prismicio/client";
6
-
7
6
  //#region src/PrismicTable/PrismicTable.vue.d.ts
8
7
  /** Props for `<PrismicTable />`. */
9
8
  type PrismicTableProps = {
10
- /** The Prismic table field to render. */field: TableField | undefined;
9
+ /** The Prismic table field to render. */
10
+ field: TableField | undefined;
11
11
  /**
12
12
  * An object that maps a table block type to a Vue component or a shorthand definition.
13
13
  *
@@ -27,8 +27,8 @@ type PrismicTableProps = {
27
27
  */
28
28
  fallback?: ComponentOrTagName;
29
29
  };
30
- declare const __VLS_export: _$vue.DefineComponent<PrismicTableProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<PrismicTableProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_export: import("vue").DefineComponent<PrismicTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrismicTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
31
  declare const _default: typeof __VLS_export;
32
32
  //#endregion
33
- export { PrismicTableProps, _default };
33
+ export { PrismicTableProps, _default as default };
34
34
  //# sourceMappingURL=PrismicTable.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicTable.vue.d.ts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"mappings":";;;;;;;;KA8HY,iBAAA;2CAEX,KAAA,EAAO,UAAA;EAFI;;;;;;;;;;;;EAgBX,UAAA,GAAa,eAAA,GAAkB,kBAAA;EAAA;;;;EAM/B,QAAA,GAAW,kBAAA;AAAA;AAAA,cA4JN,YAAA,EAAY,KAAA,CAAA,eAAA,CAAA,iBAAA,kBAAA,KAAA,CAAA,qBAAA,EAAA,KAAA,CAAA,qBAAA,cAAA,KAAA,CAAA,WAAA,EAAA,QAAA,CAAA,iBAAA,IAAA,QAAA,8BAAA,KAAA,CAAA,uBAAA;AAAA,cAAA,QAAA,SAGU,YAAA"}
1
+ {"version":3,"file":"PrismicTable.vue.d.ts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"mappings":";;;;;;;KA8HY;;EAEX,OAAO;;;;;;;;;;;;;EAcP,aAAa,kBAAkB;;;;;EAM/B,WAAW;;cA4JN,4BAAY,gBAAA,iDAAA,qCAAA,iDAAA,aAAA,SAAA,qBAAA,oDAAA;cAGG,iBAAO"}
@@ -5,7 +5,7 @@ const require_PrismicTableRow = require("./PrismicTableRow.cjs");
5
5
  let vue = require("vue");
6
6
  let _prismicio_client = require("@prismicio/client");
7
7
  //#region src/PrismicTable/PrismicTable.vue?vue&type=script&setup=true&lang.ts
8
- var PrismicTable_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
8
+ var PrismicTable_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
9
9
  name: "PrismicTable",
10
10
  __name: "PrismicTable",
11
11
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicTable.vue_vue_type_script_setup_true_lang.cjs","names":["$attrs"],"sources":["../../src/PrismicTable/PrismicTable.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { type TableField, isFilled } from \"@prismicio/client\"\nimport { computed } from \"vue\"\n\nimport { usePrismic } from \"../createPrismic\"\nimport type { RichTextComponents } from \"../PrismicRichText\"\nimport type { ComponentOrTagName, ComponentShorthand } from \"../types\"\nimport { isComponent } from \"../types\"\nimport { defaultTableComponents } from \"./PrismicTableDefaultComponents\"\nimport PrismicTableRow from \"./PrismicTableRow.vue\"\nimport type { InternalTableComponents, TableComponents } from \"./types\"\n\n/** Props for `<PrismicTable />`. */\nexport type PrismicTableProps = {\n\t/** The Prismic table field to render. */\n\tfield: TableField | undefined\n\n\t/**\n\t * An object that maps a table block type to a Vue component or a shorthand definition.\n\t *\n\t * @example\n\t * \t```javascript\n\t * \t;({\n\t * \t\ttable: Table,\n\t * \t\tthead: { class: \"bg-black text-white\" },\n\t * \t\tth: { as: \"td\", class: \"font-bold\" }\n\t * \t})\n\t * \t```\n\t */\n\tcomponents?: TableComponents & RichTextComponents\n\n\t/**\n\t * The value to be rendered when the field is empty. If a fallback is not given, `null` (nothing)\n\t * will be rendered.\n\t */\n\tfallback?: ComponentOrTagName\n}\n\nconst props = defineProps<PrismicTableProps>()\ndefineOptions({ name: \"PrismicTable\" })\n\nconst {\n\tcomponents: { richTextComponents },\n} = usePrismic()\n\nconst resolvedComponents = computed<TableComponents & RichTextComponents>(() => {\n\treturn { ...richTextComponents, ...props.components }\n})\n\nfunction getInternalComponent(type: keyof TableComponents) {\n\tconst maybeComponentOrShorthand = resolvedComponents.value?.[type]\n\n\tif (isComponent(maybeComponentOrShorthand)) {\n\t\treturn { is: maybeComponentOrShorthand }\n\t}\n\n\treturn {\n\t\tis: defaultTableComponents[type],\n\t\tshorthand: maybeComponentOrShorthand as ComponentShorthand,\n\t}\n}\n\nconst internalTableComponents = computed<InternalTableComponents>(() => {\n\treturn {\n\t\ttable: getInternalComponent(\"table\"),\n\t\tthead: getInternalComponent(\"thead\"),\n\t\ttbody: getInternalComponent(\"tbody\"),\n\t\ttr: getInternalComponent(\"tr\"),\n\t\tth: getInternalComponent(\"th\"),\n\t\ttd: getInternalComponent(\"td\"),\n\t}\n})\n</script>\n\n<template>\n\t<component\n\t\tv-if=\"isFilled.table(field)\"\n\t\t:is=\"internalTableComponents.table.is\"\n\t\t:table=\"field\"\n\t\tv-bind=\"{ ...$attrs, ...internalTableComponents.table.shorthand }\"\n\t>\n\t\t<component\n\t\t\tv-if=\"field.head\"\n\t\t\t:is=\"internalTableComponents.thead.is\"\n\t\t\t:head=\"field.head\"\n\t\t\tv-bind=\"internalTableComponents.thead.shorthand\"\n\t\t>\n\t\t\t<PrismicTableRow\n\t\t\t\tv-for=\"row in field.head.rows\"\n\t\t\t\t:key=\"row.key\"\n\t\t\t\t:row=\"row\"\n\t\t\t\t:internalTableComponents=\"internalTableComponents\"\n\t\t\t\t:components=\"components\"\n\t\t\t/>\n\t\t</component>\n\t\t<component\n\t\t\t:is=\"internalTableComponents.tbody.is\"\n\t\t\t:body=\"field.body\"\n\t\t\tv-bind=\"internalTableComponents.tbody.shorthand\"\n\t\t>\n\t\t\t<PrismicTableRow\n\t\t\t\tv-for=\"row in field.body.rows\"\n\t\t\t\t:key=\"row.key\"\n\t\t\t\t:row=\"row\"\n\t\t\t\t:internalTableComponents=\"internalTableComponents\"\n\t\t\t\t:components=\"components\"\n\t\t\t/>\n\t\t</component>\n\t</component>\n\t<component v-else-if=\"fallback\" :is=\"fallback\" v-bind=\"$attrs\" />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAsCA,MAAM,QAAQ;EAGd,MAAM,EACL,YAAY,EAAE,yBACX,sBAAA,YAAW;EAEf,MAAM,sBAAA,GAAA,IAAA,gBAA0E;AAC/E,UAAO;IAAE,GAAG;IAAoB,GAAG,MAAM;IAAW;IACpD;EAED,SAAS,qBAAqB,MAA6B;GAC1D,MAAM,4BAA4B,mBAAmB,QAAQ;AAE7D,OAAI,cAAA,YAAY,0BAA0B,CACzC,QAAO,EAAE,IAAI,2BAA0B;AAGxC,UAAO;IACN,IAAI,sCAAA,uBAAuB;IAC3B,WAAW;IACZ;;EAGD,MAAM,2BAAA,GAAA,IAAA,gBAAkE;AACvE,UAAO;IACN,OAAO,qBAAqB,QAAQ;IACpC,OAAO,qBAAqB,QAAQ;IACpC,OAAO,qBAAqB,QAAQ;IACpC,IAAI,qBAAqB,KAAK;IAC9B,IAAI,qBAAqB,KAAK;IAC9B,IAAI,qBAAqB,KAAK;IAC/B;IACA;;yBAKO,kBAAA,SAAQ,CAAC,MAAM,QAAA,MAAK,KAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,cAAA,GAAA,IAAA,yBACrB,wBAAA,MAAwB,MAAM,GAAE,GAAA,GAAA,IAAA,YA+B1B;;IA9BV,OAAO,QAAA;;OACKA,KAAAA;IAAM,GAAK,wBAAA,MAAwB,MAAM;IAAS,CAAA,EAAA;oCAenD,CAZL,QAAA,MAAM,SAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,cAAA,GAAA,IAAA,yBACP,wBAAA,MAAwB,MAAM,GAAE,GAAA,GAAA,IAAA,YAW1B;;KAVV,MAAM,QAAA,MAAM;OACL,wBAAA,MAAwB,MAAM,UAAS,EAAA;qCAGhB,GAAA,GAAA,IAAA,WAAA,KAAA,GAAA,GAAA,IAAA,oBAK7B,IAAA,UAAA,OAAA,GAAA,IAAA,YALa,QAAA,MAAM,KAAK,OAAlB,QAAG;wDAKT,wBAAA,SAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;gJAIT,wBAAA,MAAwB,MAAM,GAAE,GAAA,GAAA,IAAA,YAW1B,EAVV,MAAM,QAAA,MAAM,MAAA,EACL,wBAAA,MAAwB,MAAM,UAAS,EAAA;qCAGhB,GAAA,GAAA,IAAA,WAAA,KAAA,GAAA,GAAA,IAAA,oBAK7B,IAAA,UAAA,OAAA,GAAA,IAAA,YALa,QAAA,MAAM,KAAK,OAAlB,QAAG;wDAKT,wBAAA,SAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;;;wBAIM,QAAA,aAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,cAAA,GAAA,IAAA,yBAAe,QAAA,SAAQ,GAAA,GAAA,IAAA,iBAAA,GAAA,IAAA,YAAA,EAAA,KAAA,GAAA,EAAUA,KAAAA,OAAM,CAAA,EAAA,MAAA,GAAA,KAAA,GAAA,IAAA,oBAAA,QAAA,KAAA"}
1
+ {"version":3,"file":"PrismicTable.vue_vue_type_script_setup_true_lang.cjs","names":["$attrs"],"sources":["../../src/PrismicTable/PrismicTable.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { type TableField, isFilled } from \"@prismicio/client\"\nimport { computed } from \"vue\"\n\nimport { usePrismic } from \"../createPrismic\"\nimport type { RichTextComponents } from \"../PrismicRichText\"\nimport type { ComponentOrTagName, ComponentShorthand } from \"../types\"\nimport { isComponent } from \"../types\"\nimport { defaultTableComponents } from \"./PrismicTableDefaultComponents\"\nimport PrismicTableRow from \"./PrismicTableRow.vue\"\nimport type { InternalTableComponents, TableComponents } from \"./types\"\n\n/** Props for `<PrismicTable />`. */\nexport type PrismicTableProps = {\n\t/** The Prismic table field to render. */\n\tfield: TableField | undefined\n\n\t/**\n\t * An object that maps a table block type to a Vue component or a shorthand definition.\n\t *\n\t * @example\n\t * \t```javascript\n\t * \t;({\n\t * \t\ttable: Table,\n\t * \t\tthead: { class: \"bg-black text-white\" },\n\t * \t\tth: { as: \"td\", class: \"font-bold\" }\n\t * \t})\n\t * \t```\n\t */\n\tcomponents?: TableComponents & RichTextComponents\n\n\t/**\n\t * The value to be rendered when the field is empty. If a fallback is not given, `null` (nothing)\n\t * will be rendered.\n\t */\n\tfallback?: ComponentOrTagName\n}\n\nconst props = defineProps<PrismicTableProps>()\ndefineOptions({ name: \"PrismicTable\" })\n\nconst {\n\tcomponents: { richTextComponents },\n} = usePrismic()\n\nconst resolvedComponents = computed<TableComponents & RichTextComponents>(() => {\n\treturn { ...richTextComponents, ...props.components }\n})\n\nfunction getInternalComponent(type: keyof TableComponents) {\n\tconst maybeComponentOrShorthand = resolvedComponents.value?.[type]\n\n\tif (isComponent(maybeComponentOrShorthand)) {\n\t\treturn { is: maybeComponentOrShorthand }\n\t}\n\n\treturn {\n\t\tis: defaultTableComponents[type],\n\t\tshorthand: maybeComponentOrShorthand as ComponentShorthand,\n\t}\n}\n\nconst internalTableComponents = computed<InternalTableComponents>(() => {\n\treturn {\n\t\ttable: getInternalComponent(\"table\"),\n\t\tthead: getInternalComponent(\"thead\"),\n\t\ttbody: getInternalComponent(\"tbody\"),\n\t\ttr: getInternalComponent(\"tr\"),\n\t\tth: getInternalComponent(\"th\"),\n\t\ttd: getInternalComponent(\"td\"),\n\t}\n})\n</script>\n\n<template>\n\t<component\n\t\tv-if=\"isFilled.table(field)\"\n\t\t:is=\"internalTableComponents.table.is\"\n\t\t:table=\"field\"\n\t\tv-bind=\"{ ...$attrs, ...internalTableComponents.table.shorthand }\"\n\t>\n\t\t<component\n\t\t\tv-if=\"field.head\"\n\t\t\t:is=\"internalTableComponents.thead.is\"\n\t\t\t:head=\"field.head\"\n\t\t\tv-bind=\"internalTableComponents.thead.shorthand\"\n\t\t>\n\t\t\t<PrismicTableRow\n\t\t\t\tv-for=\"row in field.head.rows\"\n\t\t\t\t:key=\"row.key\"\n\t\t\t\t:row=\"row\"\n\t\t\t\t:internalTableComponents=\"internalTableComponents\"\n\t\t\t\t:components=\"components\"\n\t\t\t/>\n\t\t</component>\n\t\t<component\n\t\t\t:is=\"internalTableComponents.tbody.is\"\n\t\t\t:body=\"field.body\"\n\t\t\tv-bind=\"internalTableComponents.tbody.shorthand\"\n\t\t>\n\t\t\t<PrismicTableRow\n\t\t\t\tv-for=\"row in field.body.rows\"\n\t\t\t\t:key=\"row.key\"\n\t\t\t\t:row=\"row\"\n\t\t\t\t:internalTableComponents=\"internalTableComponents\"\n\t\t\t\t:components=\"components\"\n\t\t\t/>\n\t\t</component>\n\t</component>\n\t<component v-else-if=\"fallback\" :is=\"fallback\" v-bind=\"$attrs\" />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAsCA,MAAM,QAAQ;EAGd,MAAM,EACL,YAAY,EAAE,yBACX,sBAAA,WAAW;EAEf,MAAM,sBAAA,GAAqB,IAAA,SAAA,OAAqD;GAC/E,OAAO;IAAE,GAAG;IAAoB,GAAG,MAAM;GAAW;EACrD,CAAC;EAED,SAAS,qBAAqB,MAA6B;GAC1D,MAAM,4BAA4B,mBAAmB,QAAQ;GAE7D,IAAI,cAAA,YAAY,yBAAyB,GACxC,OAAO,EAAE,IAAI,0BAA0B;GAGxC,OAAO;IACN,IAAI,sCAAA,uBAAuB;IAC3B,WAAW;GACZ;EACD;EAEA,MAAM,2BAAA,GAA0B,IAAA,SAAA,OAAwC;GACvE,OAAO;IACN,OAAO,qBAAqB,OAAO;IACnC,OAAO,qBAAqB,OAAO;IACnC,OAAO,qBAAqB,OAAO;IACnC,IAAI,qBAAqB,IAAI;IAC7B,IAAI,qBAAqB,IAAI;IAC7B,IAAI,qBAAqB,IAAI;GAC9B;EACD,CAAC;;GAKO,QAAA,GAAA,IAAA,MAAA,CAAA,kBAAA,QAAA,CAAQ,CAAC,MAAM,QAAA,KAAK,MAAA,GAD3B,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GAiCY,IAAA,wBAAA,CA/BN,wBAAA,MAAwB,MAAM,EAAE,IAAA,GAFtC,IAAA,WAAA,CAiCY;;IA9BV,OAAO,QAAA;GACKA,GAAAA;IAAAA,GAAAA,KAAAA;IAAM,GAAK,wBAAA,MAAwB,MAAM;GAAS,CAAA,GAAA;IAE/D,UAAA,GAAA,IAAA,QAAA,OAaY,CAZL,QAAA,MAAM,SAAA,GADb,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GAaY,IAAA,wBAAA,CAXN,wBAAA,MAAwB,MAAM,EAAE,IAAA,GAFtC,IAAA,WAAA,CAaY;;KAVV,MAAM,QAAA,MAAM;IACL,GAAA,wBAAA,MAAwB,MAAM,SAAS,GAAA;KAG9C,UAAA,GAAA,IAAA,QAAA,OAA8B,GAAA,GAD/B,IAAA,UAAA,CAAA,IAAA,IAAA,GAAA,IAAA,mBAAA,CAME,IAAA,UAAA,OAAA,GAAA,IAAA,WAAA,CALa,QAAA,MAAM,KAAK,OAAlB,QAAG;MADX,QAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,CAME,wBAAA,SAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;IAGf,GAAA,IAAA,CAAA,MAAA,CAAA,MAAA,GAAA,IAAA,mBAAA,CAAA,QAAA,IAAA,KAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GAYY,IAAA,wBAAA,CAXN,wBAAA,MAAwB,MAAM,EAAE,IAAA,GADtC,IAAA,WAAA,CAYY,EAVV,MAAM,QAAA,MAAM,KACL,GAAA,wBAAA,MAAwB,MAAM,SAAS,GAAA;KAG9C,UAAA,GAAA,IAAA,QAAA,OAA8B,GAAA,GAD/B,IAAA,UAAA,CAAA,IAAA,IAAA,GAAA,IAAA,mBAAA,CAME,IAAA,UAAA,OAAA,GAAA,IAAA,WAAA,CALa,QAAA,MAAM,KAAK,OAAlB,QAAG;MADX,QAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,CAME,wBAAA,SAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;;;GAIM,GAAA,IAAA,CAAA,OAAA,CAAA,KAAA,QAAA,aAAA,GAAtB,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GAAiE,IAAA,wBAAA,CAA5B,QAAA,QAAQ,IAAA,GAAA,IAAA,eAAA,EAAA,GAAA,IAAA,WAAA,CAAA,EAAA,KAAA,EAAA,GAAUA,KAAAA,MAAM,CAAA,GAAA,MAAA,EAAA,MAAA,GAAA,IAAA,mBAAA,CAAA,QAAA,IAAA"}
@@ -5,7 +5,7 @@ import PrismicTableRow_default from "./PrismicTableRow.js";
5
5
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, normalizeProps, openBlock, renderList, resolveDynamicComponent, unref, withCtx } from "vue";
6
6
  import { isFilled } from "@prismicio/client";
7
7
  //#region src/PrismicTable/PrismicTable.vue?vue&type=script&setup=true&lang.ts
8
- var PrismicTable_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
8
+ var PrismicTable_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
9
9
  name: "PrismicTable",
10
10
  __name: "PrismicTable",
11
11
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicTable.vue_vue_type_script_setup_true_lang.js","names":["$attrs"],"sources":["../../src/PrismicTable/PrismicTable.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { type TableField, isFilled } from \"@prismicio/client\"\nimport { computed } from \"vue\"\n\nimport { usePrismic } from \"../createPrismic\"\nimport type { RichTextComponents } from \"../PrismicRichText\"\nimport type { ComponentOrTagName, ComponentShorthand } from \"../types\"\nimport { isComponent } from \"../types\"\nimport { defaultTableComponents } from \"./PrismicTableDefaultComponents\"\nimport PrismicTableRow from \"./PrismicTableRow.vue\"\nimport type { InternalTableComponents, TableComponents } from \"./types\"\n\n/** Props for `<PrismicTable />`. */\nexport type PrismicTableProps = {\n\t/** The Prismic table field to render. */\n\tfield: TableField | undefined\n\n\t/**\n\t * An object that maps a table block type to a Vue component or a shorthand definition.\n\t *\n\t * @example\n\t * \t```javascript\n\t * \t;({\n\t * \t\ttable: Table,\n\t * \t\tthead: { class: \"bg-black text-white\" },\n\t * \t\tth: { as: \"td\", class: \"font-bold\" }\n\t * \t})\n\t * \t```\n\t */\n\tcomponents?: TableComponents & RichTextComponents\n\n\t/**\n\t * The value to be rendered when the field is empty. If a fallback is not given, `null` (nothing)\n\t * will be rendered.\n\t */\n\tfallback?: ComponentOrTagName\n}\n\nconst props = defineProps<PrismicTableProps>()\ndefineOptions({ name: \"PrismicTable\" })\n\nconst {\n\tcomponents: { richTextComponents },\n} = usePrismic()\n\nconst resolvedComponents = computed<TableComponents & RichTextComponents>(() => {\n\treturn { ...richTextComponents, ...props.components }\n})\n\nfunction getInternalComponent(type: keyof TableComponents) {\n\tconst maybeComponentOrShorthand = resolvedComponents.value?.[type]\n\n\tif (isComponent(maybeComponentOrShorthand)) {\n\t\treturn { is: maybeComponentOrShorthand }\n\t}\n\n\treturn {\n\t\tis: defaultTableComponents[type],\n\t\tshorthand: maybeComponentOrShorthand as ComponentShorthand,\n\t}\n}\n\nconst internalTableComponents = computed<InternalTableComponents>(() => {\n\treturn {\n\t\ttable: getInternalComponent(\"table\"),\n\t\tthead: getInternalComponent(\"thead\"),\n\t\ttbody: getInternalComponent(\"tbody\"),\n\t\ttr: getInternalComponent(\"tr\"),\n\t\tth: getInternalComponent(\"th\"),\n\t\ttd: getInternalComponent(\"td\"),\n\t}\n})\n</script>\n\n<template>\n\t<component\n\t\tv-if=\"isFilled.table(field)\"\n\t\t:is=\"internalTableComponents.table.is\"\n\t\t:table=\"field\"\n\t\tv-bind=\"{ ...$attrs, ...internalTableComponents.table.shorthand }\"\n\t>\n\t\t<component\n\t\t\tv-if=\"field.head\"\n\t\t\t:is=\"internalTableComponents.thead.is\"\n\t\t\t:head=\"field.head\"\n\t\t\tv-bind=\"internalTableComponents.thead.shorthand\"\n\t\t>\n\t\t\t<PrismicTableRow\n\t\t\t\tv-for=\"row in field.head.rows\"\n\t\t\t\t:key=\"row.key\"\n\t\t\t\t:row=\"row\"\n\t\t\t\t:internalTableComponents=\"internalTableComponents\"\n\t\t\t\t:components=\"components\"\n\t\t\t/>\n\t\t</component>\n\t\t<component\n\t\t\t:is=\"internalTableComponents.tbody.is\"\n\t\t\t:body=\"field.body\"\n\t\t\tv-bind=\"internalTableComponents.tbody.shorthand\"\n\t\t>\n\t\t\t<PrismicTableRow\n\t\t\t\tv-for=\"row in field.body.rows\"\n\t\t\t\t:key=\"row.key\"\n\t\t\t\t:row=\"row\"\n\t\t\t\t:internalTableComponents=\"internalTableComponents\"\n\t\t\t\t:components=\"components\"\n\t\t\t/>\n\t\t</component>\n\t</component>\n\t<component v-else-if=\"fallback\" :is=\"fallback\" v-bind=\"$attrs\" />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAsCA,MAAM,QAAQ;EAGd,MAAM,EACL,YAAY,EAAE,yBACX,YAAW;EAEf,MAAM,qBAAqB,eAAqD;AAC/E,UAAO;IAAE,GAAG;IAAoB,GAAG,MAAM;IAAW;IACpD;EAED,SAAS,qBAAqB,MAA6B;GAC1D,MAAM,4BAA4B,mBAAmB,QAAQ;AAE7D,OAAI,YAAY,0BAA0B,CACzC,QAAO,EAAE,IAAI,2BAA0B;AAGxC,UAAO;IACN,IAAI,uBAAuB;IAC3B,WAAW;IACZ;;EAGD,MAAM,0BAA0B,eAAwC;AACvE,UAAO;IACN,OAAO,qBAAqB,QAAQ;IACpC,OAAO,qBAAqB,QAAQ;IACpC,OAAO,qBAAqB,QAAQ;IACpC,IAAI,qBAAqB,KAAK;IAC9B,IAAI,qBAAqB,KAAK;IAC9B,IAAI,qBAAqB,KAAK;IAC/B;IACA;;UAKO,MAAA,SAAQ,CAAC,MAAM,QAAA,MAAK,IAAA,WAAA,EAD3B,YAiCY,wBA/BN,wBAAA,MAAwB,MAAM,GAAE,EAFtC,WAiCY;;IA9BV,OAAO,QAAA;;OACKA,KAAAA;IAAM,GAAK,wBAAA,MAAwB,MAAM;IAAS,CAAA,EAAA;2BAenD,CAZL,QAAA,MAAM,QAAA,WAAA,EADb,YAaY,wBAXN,wBAAA,MAAwB,MAAM,GAAE,EAFtC,WAaY;;KAVV,MAAM,QAAA,MAAM;OACL,wBAAA,MAAwB,MAAM,UAAS,EAAA;4BAGhB,EAAA,UAAA,KAAA,EAD/B,mBAME,UAAA,MAAA,WALa,QAAA,MAAM,KAAK,OAAlB,QAAG;0BADX,YAME,yBAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;wEAGf,YAYY,wBAXN,wBAAA,MAAwB,MAAM,GAAE,EADtC,WAYY,EAVV,MAAM,QAAA,MAAM,MAAA,EACL,wBAAA,MAAwB,MAAM,UAAS,EAAA;4BAGhB,EAAA,UAAA,KAAA,EAD/B,mBAME,UAAA,MAAA,WALa,QAAA,MAAM,KAAK,OAAlB,QAAG;0BADX,YAME,yBAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;;;wBAIM,QAAA,YAAA,WAAA,EAAtB,YAAiE,wBAA5B,QAAA,SAAQ,EAAA,eAAA,WAAA,EAAA,KAAA,GAAA,EAAUA,KAAAA,OAAM,CAAA,EAAA,MAAA,GAAA,IAAA,mBAAA,QAAA,KAAA"}
1
+ {"version":3,"file":"PrismicTable.vue_vue_type_script_setup_true_lang.js","names":["$attrs"],"sources":["../../src/PrismicTable/PrismicTable.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { type TableField, isFilled } from \"@prismicio/client\"\nimport { computed } from \"vue\"\n\nimport { usePrismic } from \"../createPrismic\"\nimport type { RichTextComponents } from \"../PrismicRichText\"\nimport type { ComponentOrTagName, ComponentShorthand } from \"../types\"\nimport { isComponent } from \"../types\"\nimport { defaultTableComponents } from \"./PrismicTableDefaultComponents\"\nimport PrismicTableRow from \"./PrismicTableRow.vue\"\nimport type { InternalTableComponents, TableComponents } from \"./types\"\n\n/** Props for `<PrismicTable />`. */\nexport type PrismicTableProps = {\n\t/** The Prismic table field to render. */\n\tfield: TableField | undefined\n\n\t/**\n\t * An object that maps a table block type to a Vue component or a shorthand definition.\n\t *\n\t * @example\n\t * \t```javascript\n\t * \t;({\n\t * \t\ttable: Table,\n\t * \t\tthead: { class: \"bg-black text-white\" },\n\t * \t\tth: { as: \"td\", class: \"font-bold\" }\n\t * \t})\n\t * \t```\n\t */\n\tcomponents?: TableComponents & RichTextComponents\n\n\t/**\n\t * The value to be rendered when the field is empty. If a fallback is not given, `null` (nothing)\n\t * will be rendered.\n\t */\n\tfallback?: ComponentOrTagName\n}\n\nconst props = defineProps<PrismicTableProps>()\ndefineOptions({ name: \"PrismicTable\" })\n\nconst {\n\tcomponents: { richTextComponents },\n} = usePrismic()\n\nconst resolvedComponents = computed<TableComponents & RichTextComponents>(() => {\n\treturn { ...richTextComponents, ...props.components }\n})\n\nfunction getInternalComponent(type: keyof TableComponents) {\n\tconst maybeComponentOrShorthand = resolvedComponents.value?.[type]\n\n\tif (isComponent(maybeComponentOrShorthand)) {\n\t\treturn { is: maybeComponentOrShorthand }\n\t}\n\n\treturn {\n\t\tis: defaultTableComponents[type],\n\t\tshorthand: maybeComponentOrShorthand as ComponentShorthand,\n\t}\n}\n\nconst internalTableComponents = computed<InternalTableComponents>(() => {\n\treturn {\n\t\ttable: getInternalComponent(\"table\"),\n\t\tthead: getInternalComponent(\"thead\"),\n\t\ttbody: getInternalComponent(\"tbody\"),\n\t\ttr: getInternalComponent(\"tr\"),\n\t\tth: getInternalComponent(\"th\"),\n\t\ttd: getInternalComponent(\"td\"),\n\t}\n})\n</script>\n\n<template>\n\t<component\n\t\tv-if=\"isFilled.table(field)\"\n\t\t:is=\"internalTableComponents.table.is\"\n\t\t:table=\"field\"\n\t\tv-bind=\"{ ...$attrs, ...internalTableComponents.table.shorthand }\"\n\t>\n\t\t<component\n\t\t\tv-if=\"field.head\"\n\t\t\t:is=\"internalTableComponents.thead.is\"\n\t\t\t:head=\"field.head\"\n\t\t\tv-bind=\"internalTableComponents.thead.shorthand\"\n\t\t>\n\t\t\t<PrismicTableRow\n\t\t\t\tv-for=\"row in field.head.rows\"\n\t\t\t\t:key=\"row.key\"\n\t\t\t\t:row=\"row\"\n\t\t\t\t:internalTableComponents=\"internalTableComponents\"\n\t\t\t\t:components=\"components\"\n\t\t\t/>\n\t\t</component>\n\t\t<component\n\t\t\t:is=\"internalTableComponents.tbody.is\"\n\t\t\t:body=\"field.body\"\n\t\t\tv-bind=\"internalTableComponents.tbody.shorthand\"\n\t\t>\n\t\t\t<PrismicTableRow\n\t\t\t\tv-for=\"row in field.body.rows\"\n\t\t\t\t:key=\"row.key\"\n\t\t\t\t:row=\"row\"\n\t\t\t\t:internalTableComponents=\"internalTableComponents\"\n\t\t\t\t:components=\"components\"\n\t\t\t/>\n\t\t</component>\n\t</component>\n\t<component v-else-if=\"fallback\" :is=\"fallback\" v-bind=\"$attrs\" />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAsCA,MAAM,QAAQ;EAGd,MAAM,EACL,YAAY,EAAE,yBACX,WAAW;EAEf,MAAM,qBAAqB,eAAqD;GAC/E,OAAO;IAAE,GAAG;IAAoB,GAAG,MAAM;GAAW;EACrD,CAAC;EAED,SAAS,qBAAqB,MAA6B;GAC1D,MAAM,4BAA4B,mBAAmB,QAAQ;GAE7D,IAAI,YAAY,yBAAyB,GACxC,OAAO,EAAE,IAAI,0BAA0B;GAGxC,OAAO;IACN,IAAI,uBAAuB;IAC3B,WAAW;GACZ;EACD;EAEA,MAAM,0BAA0B,eAAwC;GACvE,OAAO;IACN,OAAO,qBAAqB,OAAO;IACnC,OAAO,qBAAqB,OAAO;IACnC,OAAO,qBAAqB,OAAO;IACnC,IAAI,qBAAqB,IAAI;IAC7B,IAAI,qBAAqB,IAAI;IAC7B,IAAI,qBAAqB,IAAI;GAC9B;EACD,CAAC;;GAKO,OAAA,MAAA,QAAA,CAAQ,CAAC,MAAM,QAAA,KAAK,KAD3B,UAAA,GAAA,YAiCY,wBA/BN,wBAAA,MAAwB,MAAM,EAAE,GAFtC,WAiCY;;IA9BV,OAAO,QAAA;GACKA,GAAAA;IAAAA,GAAAA,KAAAA;IAAM,GAAK,wBAAA,MAAwB,MAAM;GAAS,CAAA,GAAA;IAE/D,SAAA,cAaY,CAZL,QAAA,MAAM,QADb,UAAA,GAAA,YAaY,wBAXN,wBAAA,MAAwB,MAAM,EAAE,GAFtC,WAaY;;KAVV,MAAM,QAAA,MAAM;IACL,GAAA,wBAAA,MAAwB,MAAM,SAAS,GAAA;KAG9C,SAAA,cAA8B,EAD/B,UAAA,IAAA,GAAA,mBAME,UAAA,MAAA,WALa,QAAA,MAAM,KAAK,OAAlB,QAAG;MADX,OAAA,UAAA,GAAA,YAME,yBAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;IAGf,GAAA,IAAA,CAAA,MAAA,CAAA,KAAA,mBAAA,QAAA,IAAA,IAAA,UAAA,GAAA,YAYY,wBAXN,wBAAA,MAAwB,MAAM,EAAE,GADtC,WAYY,EAVV,MAAM,QAAA,MAAM,KACL,GAAA,wBAAA,MAAwB,MAAM,SAAS,GAAA;KAG9C,SAAA,cAA8B,EAD/B,UAAA,IAAA,GAAA,mBAME,UAAA,MAAA,WALa,QAAA,MAAM,KAAK,OAAlB,QAAG;MADX,OAAA,UAAA,GAAA,YAME,yBAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;;;GAIM,GAAA,IAAA,CAAA,OAAA,CAAA,KAAA,QAAA,YAAtB,UAAA,GAAA,YAAiE,wBAA5B,QAAA,QAAQ,GAAA,eAAA,WAAA,EAAA,KAAA,EAAA,GAAUA,KAAAA,MAAM,CAAA,GAAA,MAAA,EAAA,KAAA,mBAAA,QAAA,IAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicTableDefaultComponents.cjs","names":[],"sources":["../../src/PrismicTable/PrismicTableDefaultComponents.ts"],"sourcesContent":["import { defineComponent, h } from \"vue\"\n\nimport * as getTableComponentProps from \"./getTableComponentProps\"\nimport type { TableComponents } from \"./types\"\n\nexport const defaultTableComponents: Required<TableComponents> = {\n\ttable: defineComponent({\n\t\tprops: getTableComponentProps.table(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"table\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\tthead: defineComponent({\n\t\tprops: getTableComponentProps.thead(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"thead\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttbody: defineComponent({\n\t\tprops: getTableComponentProps.tbody(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"tbody\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttr: defineComponent({\n\t\tprops: getTableComponentProps.tr(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"tr\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\tth: defineComponent({\n\t\tprops: getTableComponentProps.th(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"th\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttd: defineComponent({\n\t\tprops: getTableComponentProps.td(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"td\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n}\n"],"mappings":";;;AAKA,MAAa,yBAAoD;CAChE,QAAA,GAAA,IAAA,iBAAuB;EACtB,OAAA,+BAAA,OAAqC;EACrC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,iBAAA,GAAA,IAAA,GAAe,SAAS,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAErE,CAAC;CACF,QAAA,GAAA,IAAA,iBAAuB;EACtB,OAAA,+BAAA,OAAqC;EACrC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,iBAAA,GAAA,IAAA,GAAe,SAAS,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAErE,CAAC;CACF,QAAA,GAAA,IAAA,iBAAuB;EACtB,OAAA,+BAAA,OAAqC;EACrC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,iBAAA,GAAA,IAAA,GAAe,SAAS,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAErE,CAAC;CACF,KAAA,GAAA,IAAA,iBAAoB;EACnB,OAAA,+BAAA,IAAkC;EAClC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,iBAAA,GAAA,IAAA,GAAe,MAAM,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAElE,CAAC;CACF,KAAA,GAAA,IAAA,iBAAoB;EACnB,OAAA,+BAAA,IAAkC;EAClC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,iBAAA,GAAA,IAAA,GAAe,MAAM,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAElE,CAAC;CACF,KAAA,GAAA,IAAA,iBAAoB;EACnB,OAAA,+BAAA,IAAkC;EAClC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,iBAAA,GAAA,IAAA,GAAe,MAAM,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAElE,CAAC;CACF"}
1
+ {"version":3,"file":"PrismicTableDefaultComponents.cjs","names":["defineComponent","h"],"sources":["../../src/PrismicTable/PrismicTableDefaultComponents.ts"],"sourcesContent":["import { defineComponent, h } from \"vue\"\n\nimport * as getTableComponentProps from \"./getTableComponentProps\"\nimport type { TableComponents } from \"./types\"\n\nexport const defaultTableComponents: Required<TableComponents> = {\n\ttable: defineComponent({\n\t\tprops: getTableComponentProps.table(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"table\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\tthead: defineComponent({\n\t\tprops: getTableComponentProps.thead(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"thead\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttbody: defineComponent({\n\t\tprops: getTableComponentProps.tbody(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"tbody\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttr: defineComponent({\n\t\tprops: getTableComponentProps.tr(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"tr\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\tth: defineComponent({\n\t\tprops: getTableComponentProps.th(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"th\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttd: defineComponent({\n\t\tprops: getTableComponentProps.td(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"td\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n}\n"],"mappings":";;;AAKA,MAAa,yBAAoD;CAChE,QAAA,GAAOA,IAAAA,gBAAAA,CAAgB;EACtB,OAAA,+BAAA,MAAoC;EACpC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,cAAA,GAAaC,IAAAA,EAAAA,CAAE,SAAS,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACpE;CACD,CAAC;CACD,QAAA,GAAOD,IAAAA,gBAAAA,CAAgB;EACtB,OAAA,+BAAA,MAAoC;EACpC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,cAAA,GAAaC,IAAAA,EAAAA,CAAE,SAAS,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACpE;CACD,CAAC;CACD,QAAA,GAAOD,IAAAA,gBAAAA,CAAgB;EACtB,OAAA,+BAAA,MAAoC;EACpC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,cAAA,GAAaC,IAAAA,EAAAA,CAAE,SAAS,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACpE;CACD,CAAC;CACD,KAAA,GAAID,IAAAA,gBAAAA,CAAgB;EACnB,OAAA,+BAAA,GAAiC;EACjC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,cAAA,GAAaC,IAAAA,EAAAA,CAAE,MAAM,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACjE;CACD,CAAC;CACD,KAAA,GAAID,IAAAA,gBAAAA,CAAgB;EACnB,OAAA,+BAAA,GAAiC;EACjC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,cAAA,GAAaC,IAAAA,EAAAA,CAAE,MAAM,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACjE;CACD,CAAC;CACD,KAAA,GAAID,IAAAA,gBAAAA,CAAgB;EACnB,OAAA,+BAAA,GAAiC;EACjC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,cAAA,GAAaC,IAAAA,EAAAA,CAAE,MAAM,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACjE;CACD,CAAC;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicTableDefaultComponents.js","names":["getTableComponentProps.table","getTableComponentProps.thead","getTableComponentProps.tbody","getTableComponentProps.tr","getTableComponentProps.th","getTableComponentProps.td"],"sources":["../../src/PrismicTable/PrismicTableDefaultComponents.ts"],"sourcesContent":["import { defineComponent, h } from \"vue\"\n\nimport * as getTableComponentProps from \"./getTableComponentProps\"\nimport type { TableComponents } from \"./types\"\n\nexport const defaultTableComponents: Required<TableComponents> = {\n\ttable: defineComponent({\n\t\tprops: getTableComponentProps.table(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"table\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\tthead: defineComponent({\n\t\tprops: getTableComponentProps.thead(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"thead\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttbody: defineComponent({\n\t\tprops: getTableComponentProps.tbody(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"tbody\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttr: defineComponent({\n\t\tprops: getTableComponentProps.tr(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"tr\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\tth: defineComponent({\n\t\tprops: getTableComponentProps.th(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"th\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttd: defineComponent({\n\t\tprops: getTableComponentProps.td(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"td\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n}\n"],"mappings":";;;AAKA,MAAa,yBAAoD;CAChE,OAAO,gBAAgB;EACtB,OAAOA,OAA8B;EACrC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,gBAAa,EAAE,SAAS,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAErE,CAAC;CACF,OAAO,gBAAgB;EACtB,OAAOC,OAA8B;EACrC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,gBAAa,EAAE,SAAS,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAErE,CAAC;CACF,OAAO,gBAAgB;EACtB,OAAOC,OAA8B;EACrC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,gBAAa,EAAE,SAAS,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAErE,CAAC;CACF,IAAI,gBAAgB;EACnB,OAAOC,IAA2B;EAClC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,gBAAa,EAAE,MAAM,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAElE,CAAC;CACF,IAAI,gBAAgB;EACnB,OAAOC,IAA2B;EAClC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,gBAAa,EAAE,MAAM,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAElE,CAAC;CACF,IAAI,gBAAgB;EACnB,OAAOC,IAA2B;EAClC,MAAM,OAAO,EAAE,OAAO,SAAS;AAC9B,gBAAa,EAAE,MAAM,OAAO,MAAM,UAAU,MAAM,SAAS,GAAG,EAAE,CAAC;;EAElE,CAAC;CACF"}
1
+ {"version":3,"file":"PrismicTableDefaultComponents.js","names":["getTableComponentProps.table","getTableComponentProps.thead","getTableComponentProps.tbody","getTableComponentProps.tr","getTableComponentProps.th","getTableComponentProps.td"],"sources":["../../src/PrismicTable/PrismicTableDefaultComponents.ts"],"sourcesContent":["import { defineComponent, h } from \"vue\"\n\nimport * as getTableComponentProps from \"./getTableComponentProps\"\nimport type { TableComponents } from \"./types\"\n\nexport const defaultTableComponents: Required<TableComponents> = {\n\ttable: defineComponent({\n\t\tprops: getTableComponentProps.table(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"table\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\tthead: defineComponent({\n\t\tprops: getTableComponentProps.thead(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"thead\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttbody: defineComponent({\n\t\tprops: getTableComponentProps.tbody(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"tbody\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttr: defineComponent({\n\t\tprops: getTableComponentProps.tr(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"tr\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\tth: defineComponent({\n\t\tprops: getTableComponentProps.th(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"th\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n\ttd: defineComponent({\n\t\tprops: getTableComponentProps.td(),\n\t\tsetup(props, { attrs, slots }) {\n\t\t\treturn () => h(\"td\", attrs, slots.default ? slots.default() : [])\n\t\t},\n\t}),\n}\n"],"mappings":";;;AAKA,MAAa,yBAAoD;CAChE,OAAO,gBAAgB;EACtB,OAAOA,MAA6B;EACpC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,aAAa,EAAE,SAAS,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACpE;CACD,CAAC;CACD,OAAO,gBAAgB;EACtB,OAAOC,MAA6B;EACpC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,aAAa,EAAE,SAAS,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACpE;CACD,CAAC;CACD,OAAO,gBAAgB;EACtB,OAAOC,MAA6B;EACpC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,aAAa,EAAE,SAAS,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACpE;CACD,CAAC;CACD,IAAI,gBAAgB;EACnB,OAAOC,GAA0B;EACjC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,aAAa,EAAE,MAAM,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACjE;CACD,CAAC;CACD,IAAI,gBAAgB;EACnB,OAAOC,GAA0B;EACjC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,aAAa,EAAE,MAAM,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACjE;CACD,CAAC;CACD,IAAI,gBAAgB;EACnB,OAAOC,GAA0B;EACjC,MAAM,OAAO,EAAE,OAAO,SAAS;GAC9B,aAAa,EAAE,MAAM,OAAO,MAAM,UAAU,MAAM,QAAQ,IAAI,CAAC,CAAC;EACjE;CACD,CAAC;AACF"}
@@ -1,7 +1,7 @@
1
1
  const require_PrismicRichText = require("../PrismicRichText/PrismicRichText.cjs");
2
2
  let vue = require("vue");
3
3
  //#region src/PrismicTable/PrismicTableRow.vue?vue&type=script&setup=true&lang.ts
4
- var PrismicTableRow_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
4
+ var PrismicTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
5
5
  name: "PrismicTableRow",
6
6
  __name: "PrismicTableRow",
7
7
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicTableRow.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../src/PrismicTable/PrismicTableRow.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { TableFieldBodyRow, TableFieldHeadRow } from \"@prismicio/client\"\n\nimport type { RichTextComponents } from \"../PrismicRichText\"\nimport PrismicRichText from \"../PrismicRichText/PrismicRichText.vue\"\nimport type { InternalTableComponents } from \"./types\"\n\nexport type PrismicTableRowProps = {\n\trow: TableFieldHeadRow | TableFieldBodyRow\n\tinternalTableComponents: InternalTableComponents\n\tcomponents?: RichTextComponents\n}\n\nconst props = defineProps<PrismicTableRowProps>()\ndefineOptions({ name: \"PrismicTableRow\" })\n</script>\n\n<template>\n\t<component\n\t\t:is=\"internalTableComponents.tr.is\"\n\t\t:row=\"row\"\n\t\tv-bind=\"internalTableComponents.tr.shorthand\"\n\t>\n\t\t<template v-for=\"cell in row.cells\" :key=\"cell.key\">\n\t\t\t<component\n\t\t\t\tv-if=\"cell.type === 'header'\"\n\t\t\t\t:is=\"internalTableComponents.th.is\"\n\t\t\t\t:cell=\"cell\"\n\t\t\t\tv-bind=\"internalTableComponents.th.shorthand\"\n\t\t\t>\n\t\t\t\t<PrismicRichText :field=\"cell.content\" :components=\"components\" />\n\t\t\t</component>\n\t\t\t<component\n\t\t\t\tv-else\n\t\t\t\t:is=\"internalTableComponents.td.is\"\n\t\t\t\t:cell=\"cell\"\n\t\t\t\tv-bind=\"internalTableComponents.td.shorthand\"\n\t\t\t>\n\t\t\t\t<PrismicRichText :field=\"cell.content\" :components=\"components\" />\n\t\t\t</component>\n\t\t</template>\n\t</component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;sFAmBO,QAAA,wBAAwB,GAAG,GAAE,GAAA,GAAA,IAAA,YAsBvB,EArBV,KAAK,QAAA,KAAG,EACD,QAAA,wBAAwB,GAAG,UAAS,EAAA;oCAET,GAAA,GAAA,IAAA,WAAA,KAAA,GAAA,GAAA,IAAA,oBAiBxB,IAAA,UAAA,OAAA,GAAA,IAAA,YAjBc,QAAA,IAAI,QAAZ,SAAI;mFAAqB,KAAK,KAAA,EAAA,CAEvC,KAAK,SAAI,aAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,cAAA,GAAA,IAAA,yBACV,QAAA,wBAAwB,GAAG,GAAE,GAAA,GAAA,IAAA,YAKvB;;MAJJ;2BACC,QAAA,wBAAwB,GAAG,UAAS,EAAA;sCAEsB,EAAA,GAAA,IAAA,aAAA,wBAAA,SAAA;OAAhD,OAAO,KAAK;OAAU,YAAY,QAAA;;;wGAI/C,QAAA,wBAAwB,GAAG,GAAE,GAAA,GAAA,IAAA,YAKvB;;MAJJ;2BACC,QAAA,wBAAwB,GAAG,UAAS,EAAA;sCAEsB,EAAA,GAAA,IAAA,aAAA,wBAAA,SAAA;OAAhD,OAAO,KAAK;OAAU,YAAY,QAAA"}
1
+ {"version":3,"file":"PrismicTableRow.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../../src/PrismicTable/PrismicTableRow.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { TableFieldBodyRow, TableFieldHeadRow } from \"@prismicio/client\"\n\nimport type { RichTextComponents } from \"../PrismicRichText\"\nimport PrismicRichText from \"../PrismicRichText/PrismicRichText.vue\"\nimport type { InternalTableComponents } from \"./types\"\n\nexport type PrismicTableRowProps = {\n\trow: TableFieldHeadRow | TableFieldBodyRow\n\tinternalTableComponents: InternalTableComponents\n\tcomponents?: RichTextComponents\n}\n\nconst props = defineProps<PrismicTableRowProps>()\ndefineOptions({ name: \"PrismicTableRow\" })\n</script>\n\n<template>\n\t<component\n\t\t:is=\"internalTableComponents.tr.is\"\n\t\t:row=\"row\"\n\t\tv-bind=\"internalTableComponents.tr.shorthand\"\n\t>\n\t\t<template v-for=\"cell in row.cells\" :key=\"cell.key\">\n\t\t\t<component\n\t\t\t\tv-if=\"cell.type === 'header'\"\n\t\t\t\t:is=\"internalTableComponents.th.is\"\n\t\t\t\t:cell=\"cell\"\n\t\t\t\tv-bind=\"internalTableComponents.th.shorthand\"\n\t\t\t>\n\t\t\t\t<PrismicRichText :field=\"cell.content\" :components=\"components\" />\n\t\t\t</component>\n\t\t\t<component\n\t\t\t\tv-else\n\t\t\t\t:is=\"internalTableComponents.td.is\"\n\t\t\t\t:cell=\"cell\"\n\t\t\t\tv-bind=\"internalTableComponents.td.shorthand\"\n\t\t\t>\n\t\t\t\t<PrismicRichText :field=\"cell.content\" :components=\"components\" />\n\t\t\t</component>\n\t\t</template>\n\t</component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;GAkBC,QAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GAuBY,IAAA,wBAAA,CAtBN,QAAA,wBAAwB,GAAG,EAAE,IAAA,GADnC,IAAA,WAAA,CAuBY,EArBV,KAAK,QAAA,IAAG,GACD,QAAA,wBAAwB,GAAG,SAAS,GAAA;IAElC,UAAA,GAAA,IAAA,QAAA,OAAyB,GAAA,GAAnC,IAAA,UAAA,CAAA,IAAA,IAAA,GAAA,IAAA,mBAAA,CAiBW,IAAA,UAAA,OAAA,GAAA,IAAA,WAAA,CAjBc,QAAA,IAAI,QAAZ,SAAI;KAAqB,QAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,mBAAA,CAAA,IAAA,UAAA,EAAA,KAAA,KAAK,IAAA,GAAA,CAEvC,KAAK,SAAI,aAAA,GADhB,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GAOY,IAAA,wBAAA,CALN,QAAA,wBAAwB,GAAG,EAAE,IAAA,GAFnC,IAAA,WAAA,CAOY;;MAJJ;KACC,GAAA,EAAA,SAAA,KAAA,GAAA,QAAA,wBAAwB,GAAG,SAAS,GAAA;MAE5C,UAAA,GAAA,IAAA,QAAA,OAAkE,EAAA,GAAlE,IAAA,YAAA,CAAkE,wBAAA,SAAA;OAAhD,OAAO,KAAK;OAAU,YAAY,QAAA;;;KAErD,GAAA,MAAA,CAAA,MAAA,CAAA,OAAA,GAAA,IAAA,UAAA,CAAA,IAAA,GAAA,IAAA,YAAA,EAAA,GAOY,IAAA,wBAAA,CALN,QAAA,wBAAwB,GAAG,EAAE,IAAA,GAFnC,IAAA,WAAA,CAOY;;MAJJ;KACC,GAAA,EAAA,SAAA,KAAA,GAAA,QAAA,wBAAwB,GAAG,SAAS,GAAA;MAE5C,UAAA,GAAA,IAAA,QAAA,OAAkE,EAAA,GAAlE,IAAA,YAAA,CAAkE,wBAAA,SAAA;OAAhD,OAAO,KAAK;OAAU,YAAY,QAAA"}
@@ -1,7 +1,7 @@
1
1
  import PrismicRichText_default from "../PrismicRichText/PrismicRichText.js";
2
2
  import { Fragment, createBlock, createElementBlock, createVNode, defineComponent, mergeProps, openBlock, renderList, resolveDynamicComponent, withCtx } from "vue";
3
3
  //#region src/PrismicTable/PrismicTableRow.vue?vue&type=script&setup=true&lang.ts
4
- var PrismicTableRow_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
4
+ var PrismicTableRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
5
5
  name: "PrismicTableRow",
6
6
  __name: "PrismicTableRow",
7
7
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicTableRow.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/PrismicTable/PrismicTableRow.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { TableFieldBodyRow, TableFieldHeadRow } from \"@prismicio/client\"\n\nimport type { RichTextComponents } from \"../PrismicRichText\"\nimport PrismicRichText from \"../PrismicRichText/PrismicRichText.vue\"\nimport type { InternalTableComponents } from \"./types\"\n\nexport type PrismicTableRowProps = {\n\trow: TableFieldHeadRow | TableFieldBodyRow\n\tinternalTableComponents: InternalTableComponents\n\tcomponents?: RichTextComponents\n}\n\nconst props = defineProps<PrismicTableRowProps>()\ndefineOptions({ name: \"PrismicTableRow\" })\n</script>\n\n<template>\n\t<component\n\t\t:is=\"internalTableComponents.tr.is\"\n\t\t:row=\"row\"\n\t\tv-bind=\"internalTableComponents.tr.shorthand\"\n\t>\n\t\t<template v-for=\"cell in row.cells\" :key=\"cell.key\">\n\t\t\t<component\n\t\t\t\tv-if=\"cell.type === 'header'\"\n\t\t\t\t:is=\"internalTableComponents.th.is\"\n\t\t\t\t:cell=\"cell\"\n\t\t\t\tv-bind=\"internalTableComponents.th.shorthand\"\n\t\t\t>\n\t\t\t\t<PrismicRichText :field=\"cell.content\" :components=\"components\" />\n\t\t\t</component>\n\t\t\t<component\n\t\t\t\tv-else\n\t\t\t\t:is=\"internalTableComponents.td.is\"\n\t\t\t\t:cell=\"cell\"\n\t\t\t\tv-bind=\"internalTableComponents.td.shorthand\"\n\t\t\t>\n\t\t\t\t<PrismicRichText :field=\"cell.content\" :components=\"components\" />\n\t\t\t</component>\n\t\t</template>\n\t</component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;uBAkBC,YAuBY,wBAtBN,QAAA,wBAAwB,GAAG,GAAE,EADnC,WAuBY,EArBV,KAAK,QAAA,KAAG,EACD,QAAA,wBAAwB,GAAG,UAAS,EAAA;2BAET,EAAA,UAAA,KAAA,EAAnC,mBAiBW,UAAA,MAAA,WAjBc,QAAA,IAAI,QAAZ,SAAI;6DAAqB,KAAK,KAAA,EAAA,CAEvC,KAAK,SAAI,YAAA,WAAA,EADhB,YAOY,wBALN,QAAA,wBAAwB,GAAG,GAAE,EAFnC,WAOY;;MAJJ;2BACC,QAAA,wBAAwB,GAAG,UAAS,EAAA;6BAEsB,CAAlE,YAAkE,yBAAA;OAAhD,OAAO,KAAK;OAAU,YAAY,QAAA;;;yCAErD,YAOY,wBALN,QAAA,wBAAwB,GAAG,GAAE,EAFnC,WAOY;;MAJJ;2BACC,QAAA,wBAAwB,GAAG,UAAS,EAAA;6BAEsB,CAAlE,YAAkE,yBAAA;OAAhD,OAAO,KAAK;OAAU,YAAY,QAAA"}
1
+ {"version":3,"file":"PrismicTableRow.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/PrismicTable/PrismicTableRow.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { TableFieldBodyRow, TableFieldHeadRow } from \"@prismicio/client\"\n\nimport type { RichTextComponents } from \"../PrismicRichText\"\nimport PrismicRichText from \"../PrismicRichText/PrismicRichText.vue\"\nimport type { InternalTableComponents } from \"./types\"\n\nexport type PrismicTableRowProps = {\n\trow: TableFieldHeadRow | TableFieldBodyRow\n\tinternalTableComponents: InternalTableComponents\n\tcomponents?: RichTextComponents\n}\n\nconst props = defineProps<PrismicTableRowProps>()\ndefineOptions({ name: \"PrismicTableRow\" })\n</script>\n\n<template>\n\t<component\n\t\t:is=\"internalTableComponents.tr.is\"\n\t\t:row=\"row\"\n\t\tv-bind=\"internalTableComponents.tr.shorthand\"\n\t>\n\t\t<template v-for=\"cell in row.cells\" :key=\"cell.key\">\n\t\t\t<component\n\t\t\t\tv-if=\"cell.type === 'header'\"\n\t\t\t\t:is=\"internalTableComponents.th.is\"\n\t\t\t\t:cell=\"cell\"\n\t\t\t\tv-bind=\"internalTableComponents.th.shorthand\"\n\t\t\t>\n\t\t\t\t<PrismicRichText :field=\"cell.content\" :components=\"components\" />\n\t\t\t</component>\n\t\t\t<component\n\t\t\t\tv-else\n\t\t\t\t:is=\"internalTableComponents.td.is\"\n\t\t\t\t:cell=\"cell\"\n\t\t\t\tv-bind=\"internalTableComponents.td.shorthand\"\n\t\t\t>\n\t\t\t\t<PrismicRichText :field=\"cell.content\" :components=\"components\" />\n\t\t\t</component>\n\t\t</template>\n\t</component>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;GAkBC,OAAA,UAAA,GAAA,YAuBY,wBAtBN,QAAA,wBAAwB,GAAG,EAAE,GADnC,WAuBY,EArBV,KAAK,QAAA,IAAG,GACD,QAAA,wBAAwB,GAAG,SAAS,GAAA;IAElC,SAAA,cAAyB,EAAnC,UAAA,IAAA,GAAA,mBAiBW,UAAA,MAAA,WAjBc,QAAA,IAAI,QAAZ,SAAI;KAAqB,OAAA,UAAA,GAAA,mBAAA,UAAA,EAAA,KAAA,KAAK,IAAA,GAAA,CAEvC,KAAK,SAAI,YADhB,UAAA,GAAA,YAOY,wBALN,QAAA,wBAAwB,GAAG,EAAE,GAFnC,WAOY;;MAJJ;KACC,GAAA,EAAA,SAAA,KAAA,GAAA,QAAA,wBAAwB,GAAG,SAAS,GAAA;MAE5C,SAAA,cAAkE,CAAlE,YAAkE,yBAAA;OAAhD,OAAO,KAAK;OAAU,YAAY,QAAA;;;KAErD,GAAA,MAAA,CAAA,MAAA,CAAA,MAAA,UAAA,GAAA,YAOY,wBALN,QAAA,wBAAwB,GAAG,EAAE,GAFnC,WAOY;;MAJJ;KACC,GAAA,EAAA,SAAA,KAAA,GAAA,QAAA,wBAAwB,GAAG,SAAS,GAAA;MAE5C,SAAA,cAAkE,CAAlE,YAAkE,yBAAA;OAAhD,OAAO,KAAK;OAAU,YAAY,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getTableComponentProps.cjs","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"sourcesContent":["import type {\n\tTableField,\n\tTableFieldBody,\n\tTableFieldBodyRow,\n\tTableFieldDataCell,\n\tTableFieldHead,\n\tTableFieldHeadRow,\n\tTableFieldHeaderCell,\n} from \"@prismicio/client\"\nimport type { PropType } from \"vue\"\n\n/**\n * Gets native Vue props for a component rendering `table` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"table\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.table())\n * \t```\n */\nexport const table = (): {\n\ttable: { type: PropType<TableField<\"filled\">>; required: true }\n} => ({\n\ttable: { type: Object as PropType<TableField<\"filled\">>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `thead` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"head\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.thead())\n * \t```\n */\nexport const thead = (): {\n\thead: { type: PropType<TableFieldHead>; required: true }\n} => ({\n\thead: { type: Object as PropType<TableFieldHead>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `tbody` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"body\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.body())\n * \t```\n */\nexport const tbody = (): {\n\tbody: { type: PropType<TableFieldBody>; required: true }\n} => ({\n\tbody: { type: Object as PropType<TableFieldBody>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `tr` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"row\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.tr())\n * \t```\n */\nexport const tr = (): {\n\trow: {\n\t\ttype: PropType<TableFieldHeadRow | TableFieldBodyRow>\n\t\trequired: true\n\t}\n} => ({\n\trow: {\n\t\ttype: Object as PropType<TableFieldHeadRow | TableFieldBodyRow>,\n\t\trequired: true,\n\t},\n})\n\n/**\n * Gets native Vue props for a component rendering `th` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"cell\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.th())\n * \t```\n */\nexport const th = (): {\n\tcell: { type: PropType<TableFieldHeaderCell>; required: true }\n} => ({\n\tcell: { type: Object as PropType<TableFieldHeaderCell>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `td` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"cell\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.td())\n * \t```\n */\nexport const td = (): {\n\tcell: { type: PropType<TableFieldDataCell>; required: true }\n} => ({\n\tcell: { type: Object as PropType<TableFieldDataCell>, required: true },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAa,eAEP,EACL,OAAO;CAAE,MAAM;CAA0C,UAAU;CAAM,EACzE;;;;;;;;;;;;;;;AAgBD,MAAa,eAEP,EACL,MAAM;CAAE,MAAM;CAAoC,UAAU;CAAM,EAClE;;;;;;;;;;;;;;;AAgBD,MAAa,eAEP,EACL,MAAM;CAAE,MAAM;CAAoC,UAAU;CAAM,EAClE;;;;;;;;;;;;;;;AAgBD,MAAa,YAKP,EACL,KAAK;CACJ,MAAM;CACN,UAAU;CACV,EACD;;;;;;;;;;;;;;;AAgBD,MAAa,YAEP,EACL,MAAM;CAAE,MAAM;CAA0C,UAAU;CAAM,EACxE;;;;;;;;;;;;;;;AAgBD,MAAa,YAEP,EACL,MAAM;CAAE,MAAM;CAAwC,UAAU;CAAM,EACtE"}
1
+ {"version":3,"file":"getTableComponentProps.cjs","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"sourcesContent":["import type {\n\tTableField,\n\tTableFieldBody,\n\tTableFieldBodyRow,\n\tTableFieldDataCell,\n\tTableFieldHead,\n\tTableFieldHeadRow,\n\tTableFieldHeaderCell,\n} from \"@prismicio/client\"\nimport type { PropType } from \"vue\"\n\n/**\n * Gets native Vue props for a component rendering `table` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"table\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.table())\n * \t```\n */\nexport const table = (): {\n\ttable: { type: PropType<TableField<\"filled\">>; required: true }\n} => ({\n\ttable: { type: Object as PropType<TableField<\"filled\">>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `thead` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"head\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.thead())\n * \t```\n */\nexport const thead = (): {\n\thead: { type: PropType<TableFieldHead>; required: true }\n} => ({\n\thead: { type: Object as PropType<TableFieldHead>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `tbody` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"body\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.body())\n * \t```\n */\nexport const tbody = (): {\n\tbody: { type: PropType<TableFieldBody>; required: true }\n} => ({\n\tbody: { type: Object as PropType<TableFieldBody>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `tr` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"row\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.tr())\n * \t```\n */\nexport const tr = (): {\n\trow: {\n\t\ttype: PropType<TableFieldHeadRow | TableFieldBodyRow>\n\t\trequired: true\n\t}\n} => ({\n\trow: {\n\t\ttype: Object as PropType<TableFieldHeadRow | TableFieldBodyRow>,\n\t\trequired: true,\n\t},\n})\n\n/**\n * Gets native Vue props for a component rendering `th` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"cell\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.th())\n * \t```\n */\nexport const th = (): {\n\tcell: { type: PropType<TableFieldHeaderCell>; required: true }\n} => ({\n\tcell: { type: Object as PropType<TableFieldHeaderCell>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `td` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"cell\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.td())\n * \t```\n */\nexport const td = (): {\n\tcell: { type: PropType<TableFieldDataCell>; required: true }\n} => ({\n\tcell: { type: Object as PropType<TableFieldDataCell>, required: true },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAa,eAEP,EACL,OAAO;CAAE,MAAM;CAA0C,UAAU;AAAK,EACzE;;;;;;;;;;;;;;;AAgBA,MAAa,eAEP,EACL,MAAM;CAAE,MAAM;CAAoC,UAAU;AAAK,EAClE;;;;;;;;;;;;;;;AAgBA,MAAa,eAEP,EACL,MAAM;CAAE,MAAM;CAAoC,UAAU;AAAK,EAClE;;;;;;;;;;;;;;;AAgBA,MAAa,YAKP,EACL,KAAK;CACJ,MAAM;CACN,UAAU;AACX,EACD;;;;;;;;;;;;;;;AAgBA,MAAa,YAEP,EACL,MAAM;CAAE,MAAM;CAA0C,UAAU;AAAK,EACxE;;;;;;;;;;;;;;;AAgBA,MAAa,YAEP,EACL,MAAM;CAAE,MAAM;CAAwC,UAAU;AAAK,EACtE"}
@@ -1,7 +1,5 @@
1
- import { PropType } from "vue";
2
1
  import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "@prismicio/client";
3
-
4
- //#region src/PrismicTable/getTableComponentProps.d.ts
2
+ import { PropType } from "vue";
5
3
  declare namespace getTableComponentProps_d_exports {
6
4
  export { table, tbody, td, th, thead, tr };
7
5
  }
@@ -126,5 +124,5 @@ declare const td: () => {
126
124
  };
127
125
  };
128
126
  //#endregion
129
- export { getTableComponentProps_d_exports };
127
+ export { getTableComponentProps_d_exports, table, tbody, td, th, thead, tr };
130
128
  //# sourceMappingURL=getTableComponentProps.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTableComponentProps.d.cts","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"mappings":";;;;;;;;;;;;;;;;;;AAyBA;;;cAAa,KAAA;EACZ,KAAA;IAAS,IAAA,EAAM,QAAA,CAAS,UAAA;IAAuB,QAAA;EAAA;AAAA;;;AAmBhD;;;;;;;;;;;AAoBA;cApBa,KAAA;EACZ,IAAA;IAAQ,IAAA,EAAM,QAAA,CAAS,cAAA;IAAiB,QAAA;EAAA;AAAA;;;;;AAuCzC;;;;;;;;;;cApBa,KAAA;EACZ,IAAA;IAAQ,IAAA,EAAM,QAAA,CAAS,cAAA;IAAiB,QAAA;EAAA;AAAA;AA6CzC;;;;;;;;;;;AAoBA;;;AApBA,cA1Ba,EAAA;EACZ,GAAA;IACC,IAAA,EAAM,QAAA,CAAS,iBAAA,GAAoB,iBAAA;IACnC,QAAA;EAAA;AAAA;;;;;;;;;;;;;;;cAuBW,EAAA;EACZ,IAAA;IAAQ,IAAA,EAAM,QAAA,CAAS,oBAAA;IAAuB,QAAA;EAAA;AAAA;;;;;;;;;;;;;;;cAmBlC,EAAA;EACZ,IAAA;IAAQ,IAAA,EAAM,QAAA,CAAS,kBAAA;IAAqB,QAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"getTableComponentProps.d.cts","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAyBa;EACZ;IAAS,MAAM,SAAS;IAAuB;;;;;;;;;;;;;;;;;cAmBnC;EACZ;IAAQ,MAAM,SAAS;IAAiB;;;;;;;;;;;;;;;;;cAmB5B;EACZ;IAAQ,MAAM,SAAS;IAAiB;;;;;;;;;;;;;;;;;cAmB5B;EACZ;IACC,MAAM,SAAS,oBAAoB;IACnC;;;;;;;;;;;;;;;;;cAuBW;EACZ;IAAQ,MAAM,SAAS;IAAuB;;;;;;;;;;;;;;;;;cAmBlC;EACZ;IAAQ,MAAM,SAAS;IAAqB"}
@@ -1,7 +1,5 @@
1
1
  import { PropType } from "vue";
2
2
  import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "@prismicio/client";
3
-
4
- //#region src/PrismicTable/getTableComponentProps.d.ts
5
3
  declare namespace getTableComponentProps_d_exports {
6
4
  export { table, tbody, td, th, thead, tr };
7
5
  }
@@ -126,5 +124,5 @@ declare const td: () => {
126
124
  };
127
125
  };
128
126
  //#endregion
129
- export { getTableComponentProps_d_exports };
127
+ export { getTableComponentProps_d_exports, table, tbody, td, th, thead, tr };
130
128
  //# sourceMappingURL=getTableComponentProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTableComponentProps.d.ts","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"mappings":";;;;;;;;;;;;;;;;;;AAyBA;;;cAAa,KAAA;EACZ,KAAA;IAAS,IAAA,EAAM,QAAA,CAAS,UAAA;IAAuB,QAAA;EAAA;AAAA;;;AAmBhD;;;;;;;;;;;AAoBA;cApBa,KAAA;EACZ,IAAA;IAAQ,IAAA,EAAM,QAAA,CAAS,cAAA;IAAiB,QAAA;EAAA;AAAA;;;;;AAuCzC;;;;;;;;;;cApBa,KAAA;EACZ,IAAA;IAAQ,IAAA,EAAM,QAAA,CAAS,cAAA;IAAiB,QAAA;EAAA;AAAA;AA6CzC;;;;;;;;;;;AAoBA;;;AApBA,cA1Ba,EAAA;EACZ,GAAA;IACC,IAAA,EAAM,QAAA,CAAS,iBAAA,GAAoB,iBAAA;IACnC,QAAA;EAAA;AAAA;;;;;;;;;;;;;;;cAuBW,EAAA;EACZ,IAAA;IAAQ,IAAA,EAAM,QAAA,CAAS,oBAAA;IAAuB,QAAA;EAAA;AAAA;;;;;;;;;;;;;;;cAmBlC,EAAA;EACZ,IAAA;IAAQ,IAAA,EAAM,QAAA,CAAS,kBAAA;IAAqB,QAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"getTableComponentProps.d.ts","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAyBa;EACZ;IAAS,MAAM,SAAS;IAAuB;;;;;;;;;;;;;;;;;cAmBnC;EACZ;IAAQ,MAAM,SAAS;IAAiB;;;;;;;;;;;;;;;;;cAmB5B;EACZ;IAAQ,MAAM,SAAS;IAAiB;;;;;;;;;;;;;;;;;cAmB5B;EACZ;IACC,MAAM,SAAS,oBAAoB;IACnC;;;;;;;;;;;;;;;;;cAuBW;EACZ;IAAQ,MAAM,SAAS;IAAuB;;;;;;;;;;;;;;;;;cAmBlC;EACZ;IAAQ,MAAM,SAAS;IAAqB"}
@@ -1 +1 @@
1
- {"version":3,"file":"getTableComponentProps.js","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"sourcesContent":["import type {\n\tTableField,\n\tTableFieldBody,\n\tTableFieldBodyRow,\n\tTableFieldDataCell,\n\tTableFieldHead,\n\tTableFieldHeadRow,\n\tTableFieldHeaderCell,\n} from \"@prismicio/client\"\nimport type { PropType } from \"vue\"\n\n/**\n * Gets native Vue props for a component rendering `table` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"table\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.table())\n * \t```\n */\nexport const table = (): {\n\ttable: { type: PropType<TableField<\"filled\">>; required: true }\n} => ({\n\ttable: { type: Object as PropType<TableField<\"filled\">>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `thead` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"head\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.thead())\n * \t```\n */\nexport const thead = (): {\n\thead: { type: PropType<TableFieldHead>; required: true }\n} => ({\n\thead: { type: Object as PropType<TableFieldHead>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `tbody` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"body\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.body())\n * \t```\n */\nexport const tbody = (): {\n\tbody: { type: PropType<TableFieldBody>; required: true }\n} => ({\n\tbody: { type: Object as PropType<TableFieldBody>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `tr` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"row\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.tr())\n * \t```\n */\nexport const tr = (): {\n\trow: {\n\t\ttype: PropType<TableFieldHeadRow | TableFieldBodyRow>\n\t\trequired: true\n\t}\n} => ({\n\trow: {\n\t\ttype: Object as PropType<TableFieldHeadRow | TableFieldBodyRow>,\n\t\trequired: true,\n\t},\n})\n\n/**\n * Gets native Vue props for a component rendering `th` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"cell\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.th())\n * \t```\n */\nexport const th = (): {\n\tcell: { type: PropType<TableFieldHeaderCell>; required: true }\n} => ({\n\tcell: { type: Object as PropType<TableFieldHeaderCell>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `td` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"cell\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.td())\n * \t```\n */\nexport const td = (): {\n\tcell: { type: PropType<TableFieldDataCell>; required: true }\n} => ({\n\tcell: { type: Object as PropType<TableFieldDataCell>, required: true },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAa,eAEP,EACL,OAAO;CAAE,MAAM;CAA0C,UAAU;CAAM,EACzE;;;;;;;;;;;;;;;AAgBD,MAAa,eAEP,EACL,MAAM;CAAE,MAAM;CAAoC,UAAU;CAAM,EAClE;;;;;;;;;;;;;;;AAgBD,MAAa,eAEP,EACL,MAAM;CAAE,MAAM;CAAoC,UAAU;CAAM,EAClE;;;;;;;;;;;;;;;AAgBD,MAAa,YAKP,EACL,KAAK;CACJ,MAAM;CACN,UAAU;CACV,EACD;;;;;;;;;;;;;;;AAgBD,MAAa,YAEP,EACL,MAAM;CAAE,MAAM;CAA0C,UAAU;CAAM,EACxE;;;;;;;;;;;;;;;AAgBD,MAAa,YAEP,EACL,MAAM;CAAE,MAAM;CAAwC,UAAU;CAAM,EACtE"}
1
+ {"version":3,"file":"getTableComponentProps.js","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"sourcesContent":["import type {\n\tTableField,\n\tTableFieldBody,\n\tTableFieldBodyRow,\n\tTableFieldDataCell,\n\tTableFieldHead,\n\tTableFieldHeadRow,\n\tTableFieldHeaderCell,\n} from \"@prismicio/client\"\nimport type { PropType } from \"vue\"\n\n/**\n * Gets native Vue props for a component rendering `table` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"table\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.table())\n * \t```\n */\nexport const table = (): {\n\ttable: { type: PropType<TableField<\"filled\">>; required: true }\n} => ({\n\ttable: { type: Object as PropType<TableField<\"filled\">>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `thead` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"head\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.thead())\n * \t```\n */\nexport const thead = (): {\n\thead: { type: PropType<TableFieldHead>; required: true }\n} => ({\n\thead: { type: Object as PropType<TableFieldHead>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `tbody` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"body\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.body())\n * \t```\n */\nexport const tbody = (): {\n\tbody: { type: PropType<TableFieldBody>; required: true }\n} => ({\n\tbody: { type: Object as PropType<TableFieldBody>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `tr` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"row\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.tr())\n * \t```\n */\nexport const tr = (): {\n\trow: {\n\t\ttype: PropType<TableFieldHeadRow | TableFieldBodyRow>\n\t\trequired: true\n\t}\n} => ({\n\trow: {\n\t\ttype: Object as PropType<TableFieldHeadRow | TableFieldBodyRow>,\n\t\trequired: true,\n\t},\n})\n\n/**\n * Gets native Vue props for a component rendering `th` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"cell\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.th())\n * \t```\n */\nexport const th = (): {\n\tcell: { type: PropType<TableFieldHeaderCell>; required: true }\n} => ({\n\tcell: { type: Object as PropType<TableFieldHeaderCell>, required: true },\n})\n\n/**\n * Gets native Vue props for a component rendering `td` elements from a Prismic table field with\n * `<PrismicTable />`.\n *\n * Props are: `[\"cell\"]`\n *\n * @example\n * \t```javascript\n * \t// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.td())\n * \t```\n */\nexport const td = (): {\n\tcell: { type: PropType<TableFieldDataCell>; required: true }\n} => ({\n\tcell: { type: Object as PropType<TableFieldDataCell>, required: true },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAa,eAEP,EACL,OAAO;CAAE,MAAM;CAA0C,UAAU;AAAK,EACzE;;;;;;;;;;;;;;;AAgBA,MAAa,eAEP,EACL,MAAM;CAAE,MAAM;CAAoC,UAAU;AAAK,EAClE;;;;;;;;;;;;;;;AAgBA,MAAa,eAEP,EACL,MAAM;CAAE,MAAM;CAAoC,UAAU;AAAK,EAClE;;;;;;;;;;;;;;;AAgBA,MAAa,YAKP,EACL,KAAK;CACJ,MAAM;CACN,UAAU;AACX,EACD;;;;;;;;;;;;;;;AAgBA,MAAa,YAEP,EACL,MAAM;CAAE,MAAM;CAA0C,UAAU;AAAK,EACxE;;;;;;;;;;;;;;;AAgBA,MAAa,YAEP,EACL,MAAM;CAAE,MAAM;CAAwC,UAAU;AAAK,EACtE"}
@@ -1,2 +1,3 @@
1
1
  import { TableComponents } from "./types.cjs";
2
- import { getTableComponentProps_d_exports } from "./getTableComponentProps.cjs";
2
+ import { getTableComponentProps_d_exports } from "./getTableComponentProps.cjs";
3
+ export { type TableComponents, getTableComponentProps_d_exports as getTableComponentProps };
@@ -1,2 +1,3 @@
1
1
  import { TableComponents } from "./types.js";
2
- import { getTableComponentProps_d_exports } from "./getTableComponentProps.js";
2
+ import { getTableComponentProps_d_exports } from "./getTableComponentProps.js";
3
+ export { type TableComponents, getTableComponentProps_d_exports as getTableComponentProps };
@@ -1,6 +1,5 @@
1
1
  import { Component, ComponentShorthand } from "../types.cjs";
2
2
  import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "@prismicio/client";
3
-
4
3
  //#region src/PrismicTable/types.d.ts
5
4
  /**
6
5
  * A map of Table block types to Vue Components. It is used to render table fields.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","names":[],"sources":["../../src/PrismicTable/types.ts"],"mappings":";;;;;;AAiBA;;;KAAY,eAAA;EACX,KAAA,GAAQ,SAAA;IAAY,KAAA,EAAO,UAAA;EAAA,KAA0B,IAAA,CAAK,kBAAA;EAC1D,KAAA,GAAQ,SAAA;IAAY,IAAA,EAAM,cAAA;EAAA,KAAoB,IAAA,CAAK,kBAAA;EACnD,KAAA,GAAQ,SAAA;IAAY,IAAA,EAAM,cAAA;EAAA,KAAoB,IAAA,CAAK,kBAAA;EACnD,EAAA,GAAK,SAAA;IAAY,GAAA,EAAK,iBAAA,GAAoB,iBAAA;EAAA,KAAuB,IAAA,CAAK,kBAAA;EACtE,EAAA,GAAK,SAAA;IAAY,IAAA,EAAM,oBAAA;EAAA,KAA0B,IAAA,CAAK,kBAAA;EACtD,EAAA,GAAK,SAAA;IAAY,IAAA,EAAM,kBAAA;EAAA,KAAwB,IAAA,CAAK,kBAAA;AAAA"}
1
+ {"version":3,"file":"types.d.cts","names":[],"sources":["../../src/PrismicTable/types.ts"],"mappings":";;;;;;;;KAiBY;EACX,QAAQ;IAAY,OAAO;OAA0B,KAAK;EAC1D,QAAQ;IAAY,MAAM;OAAoB,KAAK;EACnD,QAAQ;IAAY,MAAM;OAAoB,KAAK;EACnD,KAAK;IAAY,KAAK,oBAAoB;OAAuB,KAAK;EACtE,KAAK;IAAY,MAAM;OAA0B,KAAK;EACtD,KAAK;IAAY,MAAM;OAAwB,KAAK"}
@@ -1,6 +1,5 @@
1
1
  import { Component, ComponentShorthand } from "../types.js";
2
2
  import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "@prismicio/client";
3
-
4
3
  //#region src/PrismicTable/types.d.ts
5
4
  /**
6
5
  * A map of Table block types to Vue Components. It is used to render table fields.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/PrismicTable/types.ts"],"mappings":";;;;;;AAiBA;;;KAAY,eAAA;EACX,KAAA,GAAQ,SAAA;IAAY,KAAA,EAAO,UAAA;EAAA,KAA0B,IAAA,CAAK,kBAAA;EAC1D,KAAA,GAAQ,SAAA;IAAY,IAAA,EAAM,cAAA;EAAA,KAAoB,IAAA,CAAK,kBAAA;EACnD,KAAA,GAAQ,SAAA;IAAY,IAAA,EAAM,cAAA;EAAA,KAAoB,IAAA,CAAK,kBAAA;EACnD,EAAA,GAAK,SAAA;IAAY,GAAA,EAAK,iBAAA,GAAoB,iBAAA;EAAA,KAAuB,IAAA,CAAK,kBAAA;EACtE,EAAA,GAAK,SAAA;IAAY,IAAA,EAAM,oBAAA;EAAA,KAA0B,IAAA,CAAK,kBAAA;EACtD,EAAA,GAAK,SAAA;IAAY,IAAA,EAAM,kBAAA;EAAA,KAAwB,IAAA,CAAK,kBAAA;AAAA"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../src/PrismicTable/types.ts"],"mappings":";;;;;;;;KAiBY;EACX,QAAQ;IAAY,OAAO;OAA0B,KAAK;EAC1D,QAAQ;IAAY,MAAM;OAAoB,KAAK;EACnD,QAAQ;IAAY,MAAM;OAAoB,KAAK;EACnD,KAAK;IAAY,KAAK,oBAAoB;OAAuB,KAAK;EACtE,KAAK;IAAY,MAAM;OAA0B,KAAK;EACtD,KAAK;IAAY,MAAM;OAAwB,KAAK"}
@@ -1,10 +1,9 @@
1
- import * as _$vue from "vue";
2
1
  import { RichTextField } from "@prismicio/client";
3
-
4
2
  //#region src/PrismicText.vue.d.ts
5
3
  /** Props for `<PrismicText />`. */
6
4
  type PrismicTextProps = {
7
- /** The Prismic rich text field to render. */field: RichTextField | null | undefined;
5
+ /** The Prismic rich text field to render. */
6
+ field: RichTextField | null | undefined;
8
7
  /**
9
8
  * The string value to be rendered when the field is empty. If a fallback is not given, `""`
10
9
  * (nothing) will be rendered.
@@ -17,8 +16,8 @@ type PrismicTextProps = {
17
16
  */
18
17
  separator?: string;
19
18
  };
20
- declare const __VLS_export: _$vue.DefineComponent<PrismicTextProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<PrismicTextProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: import("vue").DefineComponent<PrismicTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrismicTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
20
  declare const _default: typeof __VLS_export;
22
21
  //#endregion
23
- export { PrismicTextProps, _default };
22
+ export { PrismicTextProps, _default as default };
24
23
  //# sourceMappingURL=PrismicText.vue.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicText.vue.d.cts","names":[],"sources":["../src/PrismicText.vue"],"mappings":";;;;;KAyDY,gBAAA;+CAEX,KAAA,EAAO,aAAA;EAFoB;;;;EAQ3B,QAAA;EAAA;;;;AAQA;EADA,SAAA;AAAA;AAAA,cAuCK,YAAA,EAAY,KAAA,CAAA,eAAA,CAAA,gBAAA,kBAAA,KAAA,CAAA,qBAAA,EAAA,KAAA,CAAA,qBAAA,cAAA,KAAA,CAAA,WAAA,EAAA,QAAA,CAAA,gBAAA,IAAA,QAAA,8BAAA,KAAA,CAAA,uBAAA;AAAA,cAAA,QAAA,SAGU,YAAA"}
1
+ {"version":3,"file":"PrismicText.vue.d.cts","names":[],"sources":["../src/PrismicText.vue"],"mappings":";;;KAyDY;;EAEX,OAAO;;;;;EAMP;;;;;;EAOA;;cAuCK,4BAAY,gBAAA,gDAAA,qCAAA,iDAAA,aAAA,SAAA,oBAAA,oDAAA;cAGG,iBAAO"}
@@ -1,10 +1,9 @@
1
- import * as _$vue from "vue";
2
1
  import { RichTextField } from "@prismicio/client";
3
-
4
2
  //#region src/PrismicText.vue.d.ts
5
3
  /** Props for `<PrismicText />`. */
6
4
  type PrismicTextProps = {
7
- /** The Prismic rich text field to render. */field: RichTextField | null | undefined;
5
+ /** The Prismic rich text field to render. */
6
+ field: RichTextField | null | undefined;
8
7
  /**
9
8
  * The string value to be rendered when the field is empty. If a fallback is not given, `""`
10
9
  * (nothing) will be rendered.
@@ -17,8 +16,8 @@ type PrismicTextProps = {
17
16
  */
18
17
  separator?: string;
19
18
  };
20
- declare const __VLS_export: _$vue.DefineComponent<PrismicTextProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<PrismicTextProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: import("vue").DefineComponent<PrismicTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrismicTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
20
  declare const _default: typeof __VLS_export;
22
21
  //#endregion
23
- export { PrismicTextProps, _default };
22
+ export { PrismicTextProps, _default as default };
24
23
  //# sourceMappingURL=PrismicText.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicText.vue.d.ts","names":[],"sources":["../src/PrismicText.vue"],"mappings":";;;;;KAyDY,gBAAA;+CAEX,KAAA,EAAO,aAAA;EAFoB;;;;EAQ3B,QAAA;EAAA;;;;AAQA;EADA,SAAA;AAAA;AAAA,cAuCK,YAAA,EAAY,KAAA,CAAA,eAAA,CAAA,gBAAA,kBAAA,KAAA,CAAA,qBAAA,EAAA,KAAA,CAAA,qBAAA,cAAA,KAAA,CAAA,WAAA,EAAA,QAAA,CAAA,gBAAA,IAAA,QAAA,8BAAA,KAAA,CAAA,uBAAA;AAAA,cAAA,QAAA,SAGU,YAAA"}
1
+ {"version":3,"file":"PrismicText.vue.d.ts","names":[],"sources":["../src/PrismicText.vue"],"mappings":";;;KAyDY;;EAEX,OAAO;;;;;EAMP;;;;;;EAOA;;cAuCK,4BAAY,gBAAA,gDAAA,qCAAA,iDAAA,aAAA,SAAA,oBAAA,oDAAA;cAGG,iBAAO"}
@@ -3,7 +3,7 @@ let vue = require("vue");
3
3
  let _prismicio_client = require("@prismicio/client");
4
4
  let esm_env = require("esm-env");
5
5
  //#region src/PrismicText.vue?vue&type=script&setup=true&lang.ts
6
- var PrismicText_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
6
+ var PrismicText_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
7
7
  name: "PrismicText",
8
8
  __name: "PrismicText",
9
9
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicText.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../src/PrismicText.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { RichTextField } from \"@prismicio/client\"\nimport { asText } from \"@prismicio/client\"\nimport { DEV } from \"esm-env\"\nimport { watchEffect } from \"vue\"\n\nimport { devMsg } from \"./lib/devMsg\"\n\n/** Props for `<PrismicText />`. */\nexport type PrismicTextProps = {\n\t/** The Prismic rich text field to render. */\n\tfield: RichTextField | null | undefined\n\n\t/**\n\t * The string value to be rendered when the field is empty. If a fallback is not given, `\"\"`\n\t * (nothing) will be rendered.\n\t */\n\tfallback?: string\n\n\t/**\n\t * The separator used between blocks.\n\t *\n\t * @defaultValue `\" \"` (a whitespace)\n\t */\n\tseparator?: string\n}\n\nconst props = defineProps<PrismicTextProps>()\ndefineOptions({ name: \"PrismicText\" })\n\nif (DEV) {\n\twatchEffect(() => {\n\t\tif (typeof props.field === \"string\") {\n\t\t\tthrow new Error(\n\t\t\t\t`[PrismicText] The \"field\" prop only accepts a Rich Text or title field's value but was provided a different type of field instead (e.g. a Key Text or Select field). You can resolve this error by rendering the field value inline without <PrismicText>. For more details, see ${devMsg(\n\t\t\t\t\t\"prismictext-works-only-with-rich-text-and-title-fields\",\n\t\t\t\t)}`,\n\t\t\t)\n\t\t}\n\t}, {})\n}\n</script>\n\n<template>\n\t{{ asText(field) || fallback || \"\" }}\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;AAGd,MAAI,QAAA,IACH,EAAA,GAAA,IAAA,mBAAkB;AACjB,OAAI,OAAO,MAAM,UAAU,SAC1B,OAAM,IAAI,MACT,oRAAoR,eAAA,OACnR,yDACA,GACF;KAEC,EAAE,CAAA;;kDAKF,kBAAA,OAAM,CAAC,QAAA,MAAK,IAAK,QAAA,YAAQ,GAAA"}
1
+ {"version":3,"file":"PrismicText.vue_vue_type_script_setup_true_lang.cjs","names":[],"sources":["../src/PrismicText.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { RichTextField } from \"@prismicio/client\"\nimport { asText } from \"@prismicio/client\"\nimport { DEV } from \"esm-env\"\nimport { watchEffect } from \"vue\"\n\nimport { devMsg } from \"./lib/devMsg\"\n\n/** Props for `<PrismicText />`. */\nexport type PrismicTextProps = {\n\t/** The Prismic rich text field to render. */\n\tfield: RichTextField | null | undefined\n\n\t/**\n\t * The string value to be rendered when the field is empty. If a fallback is not given, `\"\"`\n\t * (nothing) will be rendered.\n\t */\n\tfallback?: string\n\n\t/**\n\t * The separator used between blocks.\n\t *\n\t * @defaultValue `\" \"` (a whitespace)\n\t */\n\tseparator?: string\n}\n\nconst props = defineProps<PrismicTextProps>()\ndefineOptions({ name: \"PrismicText\" })\n\nif (DEV) {\n\twatchEffect(() => {\n\t\tif (typeof props.field === \"string\") {\n\t\t\tthrow new Error(\n\t\t\t\t`[PrismicText] The \"field\" prop only accepts a Rich Text or title field's value but was provided a different type of field instead (e.g. a Key Text or Select field). You can resolve this error by rendering the field value inline without <PrismicText>. For more details, see ${devMsg(\n\t\t\t\t\t\"prismictext-works-only-with-rich-text-and-title-fields\",\n\t\t\t\t)}`,\n\t\t\t)\n\t\t}\n\t}, {})\n}\n</script>\n\n<template>\n\t{{ asText(field) || fallback || \"\" }}\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAGd,IAAI,QAAA,KACH,CAAA,GAAA,IAAA,YAAA,OAAkB;GACjB,IAAI,OAAO,MAAM,UAAU,UAC1B,MAAM,IAAI,MACT,oRAAoR,eAAA,OACnR,wDACD,GACD;EAEF,GAAG,CAAC,CAAC;;GAKF,QAAA,GAAA,IAAA,gBAAA,EAAA,GAAA,IAAA,MAAA,CAAA,kBAAA,MAAA,CAAM,CAAC,QAAA,KAAK,KAAK,QAAA,YAAQ,EAAA"}
@@ -3,7 +3,7 @@ import { defineComponent, toDisplayString, unref, watchEffect } from "vue";
3
3
  import { asText } from "@prismicio/client";
4
4
  import { DEV } from "esm-env";
5
5
  //#region src/PrismicText.vue?vue&type=script&setup=true&lang.ts
6
- var PrismicText_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
6
+ var PrismicText_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
7
7
  name: "PrismicText",
8
8
  __name: "PrismicText",
9
9
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"PrismicText.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../src/PrismicText.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { RichTextField } from \"@prismicio/client\"\nimport { asText } from \"@prismicio/client\"\nimport { DEV } from \"esm-env\"\nimport { watchEffect } from \"vue\"\n\nimport { devMsg } from \"./lib/devMsg\"\n\n/** Props for `<PrismicText />`. */\nexport type PrismicTextProps = {\n\t/** The Prismic rich text field to render. */\n\tfield: RichTextField | null | undefined\n\n\t/**\n\t * The string value to be rendered when the field is empty. If a fallback is not given, `\"\"`\n\t * (nothing) will be rendered.\n\t */\n\tfallback?: string\n\n\t/**\n\t * The separator used between blocks.\n\t *\n\t * @defaultValue `\" \"` (a whitespace)\n\t */\n\tseparator?: string\n}\n\nconst props = defineProps<PrismicTextProps>()\ndefineOptions({ name: \"PrismicText\" })\n\nif (DEV) {\n\twatchEffect(() => {\n\t\tif (typeof props.field === \"string\") {\n\t\t\tthrow new Error(\n\t\t\t\t`[PrismicText] The \"field\" prop only accepts a Rich Text or title field's value but was provided a different type of field instead (e.g. a Key Text or Select field). You can resolve this error by rendering the field value inline without <PrismicText>. For more details, see ${devMsg(\n\t\t\t\t\t\"prismictext-works-only-with-rich-text-and-title-fields\",\n\t\t\t\t)}`,\n\t\t\t)\n\t\t}\n\t}, {})\n}\n</script>\n\n<template>\n\t{{ asText(field) || fallback || \"\" }}\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;AAGd,MAAI,IACH,mBAAkB;AACjB,OAAI,OAAO,MAAM,UAAU,SAC1B,OAAM,IAAI,MACT,oRAAoR,OACnR,yDACA,GACF;KAEC,EAAE,CAAA;;0BAKF,MAAA,OAAM,CAAC,QAAA,MAAK,IAAK,QAAA,YAAQ,GAAA"}
1
+ {"version":3,"file":"PrismicText.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../src/PrismicText.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { RichTextField } from \"@prismicio/client\"\nimport { asText } from \"@prismicio/client\"\nimport { DEV } from \"esm-env\"\nimport { watchEffect } from \"vue\"\n\nimport { devMsg } from \"./lib/devMsg\"\n\n/** Props for `<PrismicText />`. */\nexport type PrismicTextProps = {\n\t/** The Prismic rich text field to render. */\n\tfield: RichTextField | null | undefined\n\n\t/**\n\t * The string value to be rendered when the field is empty. If a fallback is not given, `\"\"`\n\t * (nothing) will be rendered.\n\t */\n\tfallback?: string\n\n\t/**\n\t * The separator used between blocks.\n\t *\n\t * @defaultValue `\" \"` (a whitespace)\n\t */\n\tseparator?: string\n}\n\nconst props = defineProps<PrismicTextProps>()\ndefineOptions({ name: \"PrismicText\" })\n\nif (DEV) {\n\twatchEffect(() => {\n\t\tif (typeof props.field === \"string\") {\n\t\t\tthrow new Error(\n\t\t\t\t`[PrismicText] The \"field\" prop only accepts a Rich Text or title field's value but was provided a different type of field instead (e.g. a Key Text or Select field). You can resolve this error by rendering the field value inline without <PrismicText>. For more details, see ${devMsg(\n\t\t\t\t\t\"prismictext-works-only-with-rich-text-and-title-fields\",\n\t\t\t\t)}`,\n\t\t\t)\n\t\t}\n\t}, {})\n}\n</script>\n\n<template>\n\t{{ asText(field) || fallback || \"\" }}\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;EA2BA,MAAM,QAAQ;EAGd,IAAI,KACH,kBAAkB;GACjB,IAAI,OAAO,MAAM,UAAU,UAC1B,MAAM,IAAI,MACT,oRAAoR,OACnR,wDACD,GACD;EAEF,GAAG,CAAC,CAAC;;GAKF,OAAA,gBAAA,MAAA,MAAA,CAAM,CAAC,QAAA,KAAK,KAAK,QAAA,YAAQ,EAAA"}