@prismicio/vue 6.2.0-pr.135.f669ef5 → 6.2.0-pr.137.8a7717e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PrismicRichText/PrismicRichText.vue.cjs.map +1 -1
- package/dist/PrismicRichText/PrismicRichText.vue.d.cts +1 -3
- package/dist/PrismicRichText/PrismicRichText.vue.d.cts.map +1 -1
- package/dist/PrismicRichText/PrismicRichText.vue.d.ts +1 -3
- package/dist/PrismicRichText/PrismicRichText.vue.d.ts.map +1 -1
- package/dist/PrismicRichText/PrismicRichText.vue.js.map +1 -1
- package/dist/PrismicRichText/getRichTextComponentProps.cjs +0 -4
- package/dist/PrismicRichText/getRichTextComponentProps.cjs.map +1 -1
- package/dist/PrismicRichText/getRichTextComponentProps.d.cts +0 -4
- package/dist/PrismicRichText/getRichTextComponentProps.d.cts.map +1 -1
- package/dist/PrismicRichText/getRichTextComponentProps.d.ts +0 -4
- package/dist/PrismicRichText/getRichTextComponentProps.d.ts.map +1 -1
- package/dist/PrismicRichText/getRichTextComponentProps.js +0 -4
- package/dist/PrismicRichText/getRichTextComponentProps.js.map +1 -1
- package/dist/PrismicTable/PrismicTable.vue.cjs.map +1 -1
- package/dist/PrismicTable/PrismicTable.vue.d.cts +1 -3
- package/dist/PrismicTable/PrismicTable.vue.d.cts.map +1 -1
- package/dist/PrismicTable/PrismicTable.vue.d.ts +1 -3
- package/dist/PrismicTable/PrismicTable.vue.d.ts.map +1 -1
- package/dist/PrismicTable/PrismicTable.vue.js.map +1 -1
- package/dist/PrismicTable/getTableComponentProps.cjs +0 -12
- package/dist/PrismicTable/getTableComponentProps.cjs.map +1 -1
- package/dist/PrismicTable/getTableComponentProps.d.cts +0 -12
- package/dist/PrismicTable/getTableComponentProps.d.cts.map +1 -1
- package/dist/PrismicTable/getTableComponentProps.d.ts +0 -12
- package/dist/PrismicTable/getTableComponentProps.d.ts.map +1 -1
- package/dist/PrismicTable/getTableComponentProps.js +0 -12
- package/dist/PrismicTable/getTableComponentProps.js.map +1 -1
- package/dist/SliceZone/defineSliceZoneComponents.cjs +0 -2
- package/dist/SliceZone/defineSliceZoneComponents.cjs.map +1 -1
- package/dist/SliceZone/defineSliceZoneComponents.d.cts +0 -2
- package/dist/SliceZone/defineSliceZoneComponents.d.cts.map +1 -1
- package/dist/SliceZone/defineSliceZoneComponents.d.ts +0 -2
- package/dist/SliceZone/defineSliceZoneComponents.d.ts.map +1 -1
- package/dist/SliceZone/defineSliceZoneComponents.js +0 -2
- package/dist/SliceZone/defineSliceZoneComponents.js.map +1 -1
- package/dist/SliceZone/getSliceComponentProps.cjs +0 -4
- package/dist/SliceZone/getSliceComponentProps.cjs.map +1 -1
- package/dist/SliceZone/getSliceComponentProps.d.cts +0 -4
- package/dist/SliceZone/getSliceComponentProps.d.cts.map +1 -1
- package/dist/SliceZone/getSliceComponentProps.d.ts +0 -4
- package/dist/SliceZone/getSliceComponentProps.d.ts.map +1 -1
- package/dist/SliceZone/getSliceComponentProps.js +0 -4
- package/dist/SliceZone/getSliceComponentProps.js.map +1 -1
- package/dist/createPrismic.cjs +0 -2
- package/dist/createPrismic.cjs.map +1 -1
- package/dist/createPrismic.d.cts +0 -2
- package/dist/createPrismic.d.cts.map +1 -1
- package/dist/createPrismic.d.ts +0 -2
- package/dist/createPrismic.d.ts.map +1 -1
- package/dist/createPrismic.js +0 -2
- package/dist/createPrismic.js.map +1 -1
- package/dist/lib/devMsg.cjs +0 -2
- package/dist/lib/devMsg.cjs.map +1 -1
- package/dist/lib/devMsg.js +0 -2
- package/dist/lib/devMsg.js.map +1 -1
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/package.json +2 -2
- package/src/PrismicRichText/PrismicRichText.vue +1 -3
- package/src/PrismicRichText/getRichTextComponentProps.ts +0 -4
- package/src/PrismicTable/PrismicTable.vue +1 -3
- package/src/PrismicTable/getTableComponentProps.ts +0 -12
- package/src/SliceZone/defineSliceZoneComponents.ts +0 -2
- package/src/SliceZone/getSliceComponentProps.ts +0 -4
- package/src/createPrismic.ts +0 -2
- package/src/lib/devMsg.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicRichText.vue.cjs","names":["usePrismic","computed","asTree","isComponent","PrismicRichTextDefaultComponent","_openBlock","_createBlock","PrismicRichTextSerialize","_resolveDynamicComponent"],"sources":["../../src/PrismicRichText/PrismicRichText.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { LinkResolverFunction, RichTextField, RichTextNodeType } from \"@prismicio/client\"\nimport { asTree } from \"@prismicio/client/richtext\"\nimport type { PropType } from \"vue\"\nimport { computed } from \"vue\"\n\nimport { usePrismic } from \"../createPrismic\"\nimport type { ComponentOrTagName, ComponentShorthand } from \"../types\"\nimport { isComponent } from \"../types\"\nimport PrismicRichTextDefaultComponent from \"./PrismicRichTextDefaultComponent.vue\"\nimport PrismicRichTextSerialize from \"./PrismicRichTextSerialize.vue\"\nimport type { InternalRichTextComponents, RichTextComponent, RichTextComponents } from \"./types\"\n\n/** Props for `<PrismicRichText />`. */\nexport type PrismicRichTextProps = {\n\t/** The Prismic rich text field to render. */\n\tfield: RichTextField | null | undefined\n\n\t/**\n\t * The link resolver used to resolve links.\n\t *\n\t * @remarks\n\t * If your app uses route resolvers when querying for your Prismic repository's content, a link\n\t * resolver does not need to be provided.\n\t * @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}\n\t */\n\tlinkResolver?: LinkResolverFunction\n\n\t/**\n\t * An object that maps a rich text block type to a Vue component or a shorthand definition.\n\t *\n\t * @example\n\t * \t
|
|
1
|
+
{"version":3,"file":"PrismicRichText.vue.cjs","names":["usePrismic","computed","asTree","isComponent","PrismicRichTextDefaultComponent","_openBlock","_createBlock","PrismicRichTextSerialize","_resolveDynamicComponent"],"sources":["../../src/PrismicRichText/PrismicRichText.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { LinkResolverFunction, RichTextField, RichTextNodeType } from \"@prismicio/client\"\nimport { asTree } from \"@prismicio/client/richtext\"\nimport type { PropType } from \"vue\"\nimport { computed } from \"vue\"\n\nimport { usePrismic } from \"../createPrismic\"\nimport type { ComponentOrTagName, ComponentShorthand } from \"../types\"\nimport { isComponent } from \"../types\"\nimport PrismicRichTextDefaultComponent from \"./PrismicRichTextDefaultComponent.vue\"\nimport PrismicRichTextSerialize from \"./PrismicRichTextSerialize.vue\"\nimport type { InternalRichTextComponents, RichTextComponent, RichTextComponents } from \"./types\"\n\n/** Props for `<PrismicRichText />`. */\nexport type PrismicRichTextProps = {\n\t/** The Prismic rich text field to render. */\n\tfield: RichTextField | null | undefined\n\n\t/**\n\t * The link resolver used to resolve links.\n\t *\n\t * @remarks\n\t * If your app uses route resolvers when querying for your Prismic repository's content, a link\n\t * resolver does not need to be provided.\n\t * @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}\n\t */\n\tlinkResolver?: LinkResolverFunction\n\n\t/**\n\t * An object that maps a rich text block type to a Vue component or a shorthand definition.\n\t *\n\t * @example\n\t * \t;({\n\t * \t\theading1: Heading1,\n\t * \t\tparagraph: { class: \"prose\" },\n\t * \t\tstrong: { as: \"em\", class: \"font-bold\" },\n\t * \t})\n\t */\n\tcomponents?: RichTextComponents\n\n\t/**\n\t * The value to be rendered when the field is empty. If a fallback is not given, `null` will be\n\t * rendered.\n\t */\n\tfallback?: ComponentOrTagName\n}\n\n// We're forced to declare props using the JavaScript syntax because `@vue/compiler-sfc`\n// has limitations for inferring types from complex objects.\nconst props = defineProps({\n\tfield: {\n\t\ttype: Array as unknown as PropType<PrismicRichTextProps[\"field\"]>,\n\t},\n\tlinkResolver: {\n\t\ttype: Function as PropType<PrismicRichTextProps[\"linkResolver\"]>,\n\t},\n\tcomponents: {\n\t\ttype: Object as PropType<PrismicRichTextProps[\"components\"]>,\n\t},\n\tfallback: {\n\t\ttype: [String, Object, Function] as PropType<PrismicRichTextProps[\"fallback\"]>,\n\t},\n})\ndefineOptions({ name: \"PrismicRichText\" })\n\nconst {\n\tcomponents: { richTextComponents },\n} = usePrismic()\n\nconst resolvedComponents = computed<RichTextComponents>(() => {\n\treturn { ...richTextComponents, ...props.components }\n})\n\nconst children = computed(() => {\n\treturn asTree(props.field || []).children\n})\n\nfunction getInternalComponent(type: keyof typeof RichTextNodeType) {\n\tconst maybeComponentOrShorthand = resolvedComponents.value?.[type] as\n\t\t| RichTextComponent\n\t\t| ComponentShorthand\n\t\t| undefined\n\n\tif (isComponent(maybeComponentOrShorthand)) {\n\t\treturn { is: maybeComponentOrShorthand }\n\t}\n\n\treturn {\n\t\tis: PrismicRichTextDefaultComponent,\n\t\tlinkResolver: props.linkResolver,\n\t\tshorthand: maybeComponentOrShorthand,\n\t}\n}\n\nconst internalComponents = computed<InternalRichTextComponents>(() => {\n\treturn {\n\t\theading1: getInternalComponent(\"heading1\"),\n\t\theading2: getInternalComponent(\"heading2\"),\n\t\theading3: getInternalComponent(\"heading3\"),\n\t\theading4: getInternalComponent(\"heading4\"),\n\t\theading5: getInternalComponent(\"heading5\"),\n\t\theading6: getInternalComponent(\"heading6\"),\n\t\tparagraph: getInternalComponent(\"paragraph\"),\n\t\tpreformatted: getInternalComponent(\"preformatted\"),\n\t\tstrong: getInternalComponent(\"strong\"),\n\t\tem: getInternalComponent(\"em\"),\n\t\t\"list-item\": getInternalComponent(\"listItem\"),\n\t\t\"o-list-item\": getInternalComponent(\"oListItem\"),\n\t\t\"group-list-item\": getInternalComponent(\"list\"),\n\t\t\"group-o-list-item\": getInternalComponent(\"oList\"),\n\t\timage: getInternalComponent(\"image\"),\n\t\tembed: getInternalComponent(\"embed\"),\n\t\thyperlink: getInternalComponent(\"hyperlink\"),\n\t\tlabel: getInternalComponent(\"label\"),\n\t\tspan: getInternalComponent(\"span\"),\n\t}\n})\n</script>\n\n<template>\n\t<PrismicRichTextSerialize\n\t\tv-if=\"children.length\"\n\t\t:children=\"children\"\n\t\t:internal-components=\"internalComponents\"\n\t/>\n\t<component v-else-if=\"fallback\" :is=\"fallback\" />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAiDA,MAAM,QAAQ;EAgBd,MAAM,EACL,YAAY,EAAE,yBACXA,sBAAAA,WAAW;EAEf,MAAM,sBAAA,GAAqBC,IAAAA,SAAAA,OAAmC;GAC7D,OAAO;IAAE,GAAG;IAAoB,GAAG,MAAM;GAAW;EACrD,CAAC;EAED,MAAM,YAAA,GAAWA,IAAAA,SAAAA,OAAe;GAC/B,QAAA,GAAOC,2BAAAA,OAAAA,CAAO,MAAM,SAAS,CAAC,CAAC,CAAC,CAAC;EAClC,CAAC;EAED,SAAS,qBAAqB,MAAqC;GAClE,MAAM,4BAA4B,mBAAmB,QAAQ;GAK7D,IAAIC,cAAAA,YAAY,yBAAyB,GACxC,OAAO,EAAE,IAAI,0BAA0B;GAGxC,OAAO;IACN,IAAIC,wCAAAA;IACJ,cAAc,MAAM;IACpB,WAAW;GACZ;EACD;EAEA,MAAM,sBAAA,GAAqBH,IAAAA,SAAAA,OAA2C;GACrE,OAAO;IACN,UAAU,qBAAqB,UAAU;IACzC,UAAU,qBAAqB,UAAU;IACzC,UAAU,qBAAqB,UAAU;IACzC,UAAU,qBAAqB,UAAU;IACzC,UAAU,qBAAqB,UAAU;IACzC,UAAU,qBAAqB,UAAU;IACzC,WAAW,qBAAqB,WAAW;IAC3C,cAAc,qBAAqB,cAAc;IACjD,QAAQ,qBAAqB,QAAQ;IACrC,IAAI,qBAAqB,IAAI;IAC7B,aAAa,qBAAqB,UAAU;IAC5C,eAAe,qBAAqB,WAAW;IAC/C,mBAAmB,qBAAqB,MAAM;IAC9C,qBAAqB,qBAAqB,OAAO;IACjD,OAAO,qBAAqB,OAAO;IACnC,OAAO,qBAAqB,OAAO;IACnC,WAAW,qBAAqB,WAAW;IAC3C,OAAO,qBAAqB,OAAO;IACnC,MAAM,qBAAqB,MAAM;GAClC;EACD,CAAC;;GAKO,OAAA,SAAA,MAAS,WAAA,GADhBI,IAAAA,UAAAA,CAAA,IAAA,GAAAC,IAAAA,YAAAA,CAIEC,iCAAAA,SAAA;;IAFA,UAAU,SAAA;IACV,uBAAqB,mBAAA;G,oDAED,QAAA,aAAA,GAAtBF,IAAAA,UAAAA,CAAA,IAAA,GAAAC,IAAAA,YAAAA,EAAAA,GAAiDE,IAAAA,wBAAAA,CAAZ,QAAA,QAAQ,GAAA,EAAA,KAAA,EAAA,CAAA,MAAA,G"}
|
|
@@ -19,13 +19,11 @@ export type PrismicRichTextProps = {
|
|
|
19
19
|
* An object that maps a rich text block type to a Vue component or a shorthand definition.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
|
-
* ```javascript
|
|
23
22
|
* ;({
|
|
24
23
|
* heading1: Heading1,
|
|
25
24
|
* paragraph: { class: "prose" },
|
|
26
|
-
* strong: { as: "em", class: "font-bold" }
|
|
25
|
+
* strong: { as: "em", class: "font-bold" },
|
|
27
26
|
* })
|
|
28
|
-
* ```
|
|
29
27
|
*/
|
|
30
28
|
components?: RichTextComponents;
|
|
31
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicRichText.vue.d.cts","names":[],"sources":["../../src/PrismicRichText/PrismicRichText.vue"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"PrismicRichText.vue.d.cts","names":[],"sources":["../../src/PrismicRichText/PrismicRichText.vue"],"mappings":";;;;;YA+IY;;EAEX,OAAO;;;;;;;;;EAUP,eAAe;;;;;;;;;;;EAYf,aAAa;;;;;EAMb,WAAW;;cAqHN,4BAAY,8BAAA;;IAGU,MAAA,SAAS;;;IAGjB,MAAA,SAAS;;;IAGX,MAAA,SAAS;;;IAGW,MAAA,SAAS;;;;IATnB,MAAA,SAAS;;;IAGjB,MAAA,SAAS;;;IAGX,MAAA,SAAS;;;IAGW,MAAA,SAAS;;MAG7C,oDAAA;cACmB,iBAAO"}
|
|
@@ -19,13 +19,11 @@ export type PrismicRichTextProps = {
|
|
|
19
19
|
* An object that maps a rich text block type to a Vue component or a shorthand definition.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
|
-
* ```javascript
|
|
23
22
|
* ;({
|
|
24
23
|
* heading1: Heading1,
|
|
25
24
|
* paragraph: { class: "prose" },
|
|
26
|
-
* strong: { as: "em", class: "font-bold" }
|
|
25
|
+
* strong: { as: "em", class: "font-bold" },
|
|
27
26
|
* })
|
|
28
|
-
* ```
|
|
29
27
|
*/
|
|
30
28
|
components?: RichTextComponents;
|
|
31
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicRichText.vue.d.ts","names":[],"sources":["../../src/PrismicRichText/PrismicRichText.vue"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"PrismicRichText.vue.d.ts","names":[],"sources":["../../src/PrismicRichText/PrismicRichText.vue"],"mappings":";;;;;YA+IY;;EAEX,OAAO;;;;;;;;;EAUP,eAAe;;;;;;;;;;;EAYf,aAAa;;;;;EAMb,WAAW;;cAqHN,4BAAY,8BAAA;;IAGU,MAAA,SAAS;;;IAGjB,MAAA,SAAS;;;IAGX,MAAA,SAAS;;;IAGW,MAAA,SAAS;;;;IATnB,MAAA,SAAS;;;IAGjB,MAAA,SAAS;;;IAGX,MAAA,SAAS;;;IAGW,MAAA,SAAS;;MAG7C,oDAAA;cACmB,iBAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicRichText.vue.js","names":["PrismicRichTextDefaultComponent","_openBlock","_createBlock","PrismicRichTextSerialize","_resolveDynamicComponent"],"sources":["../../src/PrismicRichText/PrismicRichText.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { LinkResolverFunction, RichTextField, RichTextNodeType } from \"@prismicio/client\"\nimport { asTree } from \"@prismicio/client/richtext\"\nimport type { PropType } from \"vue\"\nimport { computed } from \"vue\"\n\nimport { usePrismic } from \"../createPrismic\"\nimport type { ComponentOrTagName, ComponentShorthand } from \"../types\"\nimport { isComponent } from \"../types\"\nimport PrismicRichTextDefaultComponent from \"./PrismicRichTextDefaultComponent.vue\"\nimport PrismicRichTextSerialize from \"./PrismicRichTextSerialize.vue\"\nimport type { InternalRichTextComponents, RichTextComponent, RichTextComponents } from \"./types\"\n\n/** Props for `<PrismicRichText />`. */\nexport type PrismicRichTextProps = {\n\t/** The Prismic rich text field to render. */\n\tfield: RichTextField | null | undefined\n\n\t/**\n\t * The link resolver used to resolve links.\n\t *\n\t * @remarks\n\t * If your app uses route resolvers when querying for your Prismic repository's content, a link\n\t * resolver does not need to be provided.\n\t * @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}\n\t */\n\tlinkResolver?: LinkResolverFunction\n\n\t/**\n\t * An object that maps a rich text block type to a Vue component or a shorthand definition.\n\t *\n\t * @example\n\t * \t
|
|
1
|
+
{"version":3,"file":"PrismicRichText.vue.js","names":["PrismicRichTextDefaultComponent","_openBlock","_createBlock","PrismicRichTextSerialize","_resolveDynamicComponent"],"sources":["../../src/PrismicRichText/PrismicRichText.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { LinkResolverFunction, RichTextField, RichTextNodeType } from \"@prismicio/client\"\nimport { asTree } from \"@prismicio/client/richtext\"\nimport type { PropType } from \"vue\"\nimport { computed } from \"vue\"\n\nimport { usePrismic } from \"../createPrismic\"\nimport type { ComponentOrTagName, ComponentShorthand } from \"../types\"\nimport { isComponent } from \"../types\"\nimport PrismicRichTextDefaultComponent from \"./PrismicRichTextDefaultComponent.vue\"\nimport PrismicRichTextSerialize from \"./PrismicRichTextSerialize.vue\"\nimport type { InternalRichTextComponents, RichTextComponent, RichTextComponents } from \"./types\"\n\n/** Props for `<PrismicRichText />`. */\nexport type PrismicRichTextProps = {\n\t/** The Prismic rich text field to render. */\n\tfield: RichTextField | null | undefined\n\n\t/**\n\t * The link resolver used to resolve links.\n\t *\n\t * @remarks\n\t * If your app uses route resolvers when querying for your Prismic repository's content, a link\n\t * resolver does not need to be provided.\n\t * @see Learn about link resolvers and route resolvers {@link https://prismic.io/docs/routes}\n\t */\n\tlinkResolver?: LinkResolverFunction\n\n\t/**\n\t * An object that maps a rich text block type to a Vue component or a shorthand definition.\n\t *\n\t * @example\n\t * \t;({\n\t * \t\theading1: Heading1,\n\t * \t\tparagraph: { class: \"prose\" },\n\t * \t\tstrong: { as: \"em\", class: \"font-bold\" },\n\t * \t})\n\t */\n\tcomponents?: RichTextComponents\n\n\t/**\n\t * The value to be rendered when the field is empty. If a fallback is not given, `null` will be\n\t * rendered.\n\t */\n\tfallback?: ComponentOrTagName\n}\n\n// We're forced to declare props using the JavaScript syntax because `@vue/compiler-sfc`\n// has limitations for inferring types from complex objects.\nconst props = defineProps({\n\tfield: {\n\t\ttype: Array as unknown as PropType<PrismicRichTextProps[\"field\"]>,\n\t},\n\tlinkResolver: {\n\t\ttype: Function as PropType<PrismicRichTextProps[\"linkResolver\"]>,\n\t},\n\tcomponents: {\n\t\ttype: Object as PropType<PrismicRichTextProps[\"components\"]>,\n\t},\n\tfallback: {\n\t\ttype: [String, Object, Function] as PropType<PrismicRichTextProps[\"fallback\"]>,\n\t},\n})\ndefineOptions({ name: \"PrismicRichText\" })\n\nconst {\n\tcomponents: { richTextComponents },\n} = usePrismic()\n\nconst resolvedComponents = computed<RichTextComponents>(() => {\n\treturn { ...richTextComponents, ...props.components }\n})\n\nconst children = computed(() => {\n\treturn asTree(props.field || []).children\n})\n\nfunction getInternalComponent(type: keyof typeof RichTextNodeType) {\n\tconst maybeComponentOrShorthand = resolvedComponents.value?.[type] as\n\t\t| RichTextComponent\n\t\t| ComponentShorthand\n\t\t| undefined\n\n\tif (isComponent(maybeComponentOrShorthand)) {\n\t\treturn { is: maybeComponentOrShorthand }\n\t}\n\n\treturn {\n\t\tis: PrismicRichTextDefaultComponent,\n\t\tlinkResolver: props.linkResolver,\n\t\tshorthand: maybeComponentOrShorthand,\n\t}\n}\n\nconst internalComponents = computed<InternalRichTextComponents>(() => {\n\treturn {\n\t\theading1: getInternalComponent(\"heading1\"),\n\t\theading2: getInternalComponent(\"heading2\"),\n\t\theading3: getInternalComponent(\"heading3\"),\n\t\theading4: getInternalComponent(\"heading4\"),\n\t\theading5: getInternalComponent(\"heading5\"),\n\t\theading6: getInternalComponent(\"heading6\"),\n\t\tparagraph: getInternalComponent(\"paragraph\"),\n\t\tpreformatted: getInternalComponent(\"preformatted\"),\n\t\tstrong: getInternalComponent(\"strong\"),\n\t\tem: getInternalComponent(\"em\"),\n\t\t\"list-item\": getInternalComponent(\"listItem\"),\n\t\t\"o-list-item\": getInternalComponent(\"oListItem\"),\n\t\t\"group-list-item\": getInternalComponent(\"list\"),\n\t\t\"group-o-list-item\": getInternalComponent(\"oList\"),\n\t\timage: getInternalComponent(\"image\"),\n\t\tembed: getInternalComponent(\"embed\"),\n\t\thyperlink: getInternalComponent(\"hyperlink\"),\n\t\tlabel: getInternalComponent(\"label\"),\n\t\tspan: getInternalComponent(\"span\"),\n\t}\n})\n</script>\n\n<template>\n\t<PrismicRichTextSerialize\n\t\tv-if=\"children.length\"\n\t\t:children=\"children\"\n\t\t:internal-components=\"internalComponents\"\n\t/>\n\t<component v-else-if=\"fallback\" :is=\"fallback\" />\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAiDA,MAAM,QAAQ;EAgBd,MAAM,EACL,YAAY,EAAE,yBACX,WAAW;EAEf,MAAM,qBAAqB,eAAmC;GAC7D,OAAO;IAAE,GAAG;IAAoB,GAAG,MAAM;GAAW;EACrD,CAAC;EAED,MAAM,WAAW,eAAe;GAC/B,OAAO,OAAO,MAAM,SAAS,CAAC,CAAC,CAAC,CAAC;EAClC,CAAC;EAED,SAAS,qBAAqB,MAAqC;GAClE,MAAM,4BAA4B,mBAAmB,QAAQ;GAK7D,IAAI,YAAY,yBAAyB,GACxC,OAAO,EAAE,IAAI,0BAA0B;GAGxC,OAAO;IACN,IAAIA;IACJ,cAAc,MAAM;IACpB,WAAW;GACZ;EACD;EAEA,MAAM,qBAAqB,eAA2C;GACrE,OAAO;IACN,UAAU,qBAAqB,UAAU;IACzC,UAAU,qBAAqB,UAAU;IACzC,UAAU,qBAAqB,UAAU;IACzC,UAAU,qBAAqB,UAAU;IACzC,UAAU,qBAAqB,UAAU;IACzC,UAAU,qBAAqB,UAAU;IACzC,WAAW,qBAAqB,WAAW;IAC3C,cAAc,qBAAqB,cAAc;IACjD,QAAQ,qBAAqB,QAAQ;IACrC,IAAI,qBAAqB,IAAI;IAC7B,aAAa,qBAAqB,UAAU;IAC5C,eAAe,qBAAqB,WAAW;IAC/C,mBAAmB,qBAAqB,MAAM;IAC9C,qBAAqB,qBAAqB,OAAO;IACjD,OAAO,qBAAqB,OAAO;IACnC,OAAO,qBAAqB,OAAO;IACnC,WAAW,qBAAqB,WAAW;IAC3C,OAAO,qBAAqB,OAAO;IACnC,MAAM,qBAAqB,MAAM;GAClC;EACD,CAAC;;GAKO,OAAA,SAAA,MAAS,UADhBC,UAAA,GAAAC,YAIEC,kCAAA;;IAFA,UAAU,SAAA;IACV,uBAAqB,mBAAA;G,oDAED,QAAA,YAAtBF,UAAA,GAAAC,YAAiDE,wBAAZ,QAAA,QAAQ,GAAA,EAAA,KAAA,EAAA,CAAA,K"}
|
|
@@ -6,20 +6,16 @@
|
|
|
6
6
|
* Props are: `["node"]`
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
|
-
* ```javascript
|
|
10
9
|
* // Defining a new rich text component
|
|
11
10
|
* import { getRichTextComponentProps } from "@prismicio/vue"
|
|
12
11
|
*
|
|
13
12
|
* defineProps(getRichTextComponentProps())
|
|
14
|
-
* ```
|
|
15
13
|
*
|
|
16
14
|
* @example
|
|
17
|
-
* ```typescript
|
|
18
15
|
* // Defining a new rich text component for a specific node type
|
|
19
16
|
* import { getRichTextComponentProps } from "@prismicio/vue"
|
|
20
17
|
*
|
|
21
18
|
* defineProps(getRichTextComponentProps("heading1"))
|
|
22
|
-
* ```
|
|
23
19
|
*
|
|
24
20
|
* @typeParam TRTType - The type of rich text node(s) this component handles
|
|
25
21
|
* @param type - The type of rich text node this component handles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRichTextComponentProps.cjs","names":[],"sources":["../../src/PrismicRichText/getRichTextComponentProps.ts"],"sourcesContent":["import type { RTAnyNode } from \"@prismicio/client\"\nimport type { PropType } from \"vue\"\n\nimport type { RichTextComponentProps } from \"./types\"\n\n/**\n * Native Vue props for a component rendering nodes from a Prismic rich text field using the\n * `<PrismicRichText />` component.\n *\n * @typeParam TRTNode - The type of rich text node(s) this component handles\n */\ntype DefineComponentRichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode> = {\n\tnode: {\n\t\ttype: PropType<RichTextComponentProps<TRTNode>[\"node\"]>\n\t\trequired: true\n\t}\n}\n\n/**\n * Gets native Vue props for a component rendering nodes from a Prismic rich text field using the\n * `<PrismicRichText />` component.\n *\n * Props are: `[\"node\"]`\n *\n * @example\n * \t
|
|
1
|
+
{"version":3,"file":"getRichTextComponentProps.cjs","names":[],"sources":["../../src/PrismicRichText/getRichTextComponentProps.ts"],"sourcesContent":["import type { RTAnyNode } from \"@prismicio/client\"\nimport type { PropType } from \"vue\"\n\nimport type { RichTextComponentProps } from \"./types\"\n\n/**\n * Native Vue props for a component rendering nodes from a Prismic rich text field using the\n * `<PrismicRichText />` component.\n *\n * @typeParam TRTNode - The type of rich text node(s) this component handles\n */\ntype DefineComponentRichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode> = {\n\tnode: {\n\t\ttype: PropType<RichTextComponentProps<TRTNode>[\"node\"]>\n\t\trequired: true\n\t}\n}\n\n/**\n * Gets native Vue props for a component rendering nodes from a Prismic rich text field using the\n * `<PrismicRichText />` component.\n *\n * Props are: `[\"node\"]`\n *\n * @example\n * \t// Defining a new rich text component\n * \timport { getRichTextComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getRichTextComponentProps())\n *\n * @example\n * \t// Defining a new rich text component for a specific node type\n * \timport { getRichTextComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getRichTextComponentProps(\"heading1\"))\n *\n * @typeParam TRTType - The type of rich text node(s) this component handles\n * @param type - The type of rich text node this component handles\n * @returns Props object to use with `defineProps()`\n */\nexport const getRichTextComponentProps = <TRTType extends RTAnyNode[\"type\"]>(\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\ttype?: TRTType,\n): DefineComponentRichTextComponentProps<Extract<RTAnyNode, { type: TRTType }>> => ({\n\tnode: {\n\t\ttype: Object as PropType<RichTextComponentProps<Extract<RTAnyNode, { type: TRTType }>>[\"node\"]>,\n\t\trequired: true,\n\t},\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwCA,MAAa,6BAEZ,UACmF,EACnF,MAAM;CACL,MAAM;CACN,UAAU;AACX,EACD"}
|
|
@@ -20,20 +20,16 @@ type DefineComponentRichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode
|
|
|
20
20
|
* Props are: `["node"]`
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
|
-
* ```javascript
|
|
24
23
|
* // Defining a new rich text component
|
|
25
24
|
* import { getRichTextComponentProps } from "@prismicio/vue"
|
|
26
25
|
*
|
|
27
26
|
* defineProps(getRichTextComponentProps())
|
|
28
|
-
* ```
|
|
29
27
|
*
|
|
30
28
|
* @example
|
|
31
|
-
* ```typescript
|
|
32
29
|
* // Defining a new rich text component for a specific node type
|
|
33
30
|
* import { getRichTextComponentProps } from "@prismicio/vue"
|
|
34
31
|
*
|
|
35
32
|
* defineProps(getRichTextComponentProps("heading1"))
|
|
36
|
-
* ```
|
|
37
33
|
*
|
|
38
34
|
* @typeParam TRTType - The type of rich text node(s) this component handles
|
|
39
35
|
* @param type - The type of rich text node this component handles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRichTextComponentProps.d.cts","names":[],"sources":["../../src/PrismicRichText/getRichTextComponentProps.ts"],"mappings":";;;;;;;;;KAWK,sCAAsC,gBAAgB,YAAY;EACtE;IACC,MAAM,SAAS,uBAAuB;IACtC
|
|
1
|
+
{"version":3,"file":"getRichTextComponentProps.d.cts","names":[],"sources":["../../src/PrismicRichText/getRichTextComponentProps.ts"],"mappings":";;;;;;;;;KAWK,sCAAsC,gBAAgB,YAAY;EACtE;IACC,MAAM,SAAS,uBAAuB;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;qBA0BW,4BAA6B,gBAAgB,mBAEzD,OAAO,YACL,sCAAsC,QAAQ;EAAa,MAAM"}
|
|
@@ -20,20 +20,16 @@ type DefineComponentRichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode
|
|
|
20
20
|
* Props are: `["node"]`
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
|
-
* ```javascript
|
|
24
23
|
* // Defining a new rich text component
|
|
25
24
|
* import { getRichTextComponentProps } from "@prismicio/vue"
|
|
26
25
|
*
|
|
27
26
|
* defineProps(getRichTextComponentProps())
|
|
28
|
-
* ```
|
|
29
27
|
*
|
|
30
28
|
* @example
|
|
31
|
-
* ```typescript
|
|
32
29
|
* // Defining a new rich text component for a specific node type
|
|
33
30
|
* import { getRichTextComponentProps } from "@prismicio/vue"
|
|
34
31
|
*
|
|
35
32
|
* defineProps(getRichTextComponentProps("heading1"))
|
|
36
|
-
* ```
|
|
37
33
|
*
|
|
38
34
|
* @typeParam TRTType - The type of rich text node(s) this component handles
|
|
39
35
|
* @param type - The type of rich text node this component handles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRichTextComponentProps.d.ts","names":[],"sources":["../../src/PrismicRichText/getRichTextComponentProps.ts"],"mappings":";;;;;;;;;KAWK,sCAAsC,gBAAgB,YAAY;EACtE;IACC,MAAM,SAAS,uBAAuB;IACtC
|
|
1
|
+
{"version":3,"file":"getRichTextComponentProps.d.ts","names":[],"sources":["../../src/PrismicRichText/getRichTextComponentProps.ts"],"mappings":";;;;;;;;;KAWK,sCAAsC,gBAAgB,YAAY;EACtE;IACC,MAAM,SAAS,uBAAuB;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;qBA0BW,4BAA6B,gBAAgB,mBAEzD,OAAO,YACL,sCAAsC,QAAQ;EAAa,MAAM"}
|
|
@@ -6,20 +6,16 @@
|
|
|
6
6
|
* Props are: `["node"]`
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
|
-
* ```javascript
|
|
10
9
|
* // Defining a new rich text component
|
|
11
10
|
* import { getRichTextComponentProps } from "@prismicio/vue"
|
|
12
11
|
*
|
|
13
12
|
* defineProps(getRichTextComponentProps())
|
|
14
|
-
* ```
|
|
15
13
|
*
|
|
16
14
|
* @example
|
|
17
|
-
* ```typescript
|
|
18
15
|
* // Defining a new rich text component for a specific node type
|
|
19
16
|
* import { getRichTextComponentProps } from "@prismicio/vue"
|
|
20
17
|
*
|
|
21
18
|
* defineProps(getRichTextComponentProps("heading1"))
|
|
22
|
-
* ```
|
|
23
19
|
*
|
|
24
20
|
* @typeParam TRTType - The type of rich text node(s) this component handles
|
|
25
21
|
* @param type - The type of rich text node this component handles
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRichTextComponentProps.js","names":[],"sources":["../../src/PrismicRichText/getRichTextComponentProps.ts"],"sourcesContent":["import type { RTAnyNode } from \"@prismicio/client\"\nimport type { PropType } from \"vue\"\n\nimport type { RichTextComponentProps } from \"./types\"\n\n/**\n * Native Vue props for a component rendering nodes from a Prismic rich text field using the\n * `<PrismicRichText />` component.\n *\n * @typeParam TRTNode - The type of rich text node(s) this component handles\n */\ntype DefineComponentRichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode> = {\n\tnode: {\n\t\ttype: PropType<RichTextComponentProps<TRTNode>[\"node\"]>\n\t\trequired: true\n\t}\n}\n\n/**\n * Gets native Vue props for a component rendering nodes from a Prismic rich text field using the\n * `<PrismicRichText />` component.\n *\n * Props are: `[\"node\"]`\n *\n * @example\n * \t
|
|
1
|
+
{"version":3,"file":"getRichTextComponentProps.js","names":[],"sources":["../../src/PrismicRichText/getRichTextComponentProps.ts"],"sourcesContent":["import type { RTAnyNode } from \"@prismicio/client\"\nimport type { PropType } from \"vue\"\n\nimport type { RichTextComponentProps } from \"./types\"\n\n/**\n * Native Vue props for a component rendering nodes from a Prismic rich text field using the\n * `<PrismicRichText />` component.\n *\n * @typeParam TRTNode - The type of rich text node(s) this component handles\n */\ntype DefineComponentRichTextComponentProps<TRTNode extends RTAnyNode = RTAnyNode> = {\n\tnode: {\n\t\ttype: PropType<RichTextComponentProps<TRTNode>[\"node\"]>\n\t\trequired: true\n\t}\n}\n\n/**\n * Gets native Vue props for a component rendering nodes from a Prismic rich text field using the\n * `<PrismicRichText />` component.\n *\n * Props are: `[\"node\"]`\n *\n * @example\n * \t// Defining a new rich text component\n * \timport { getRichTextComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getRichTextComponentProps())\n *\n * @example\n * \t// Defining a new rich text component for a specific node type\n * \timport { getRichTextComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getRichTextComponentProps(\"heading1\"))\n *\n * @typeParam TRTType - The type of rich text node(s) this component handles\n * @param type - The type of rich text node this component handles\n * @returns Props object to use with `defineProps()`\n */\nexport const getRichTextComponentProps = <TRTType extends RTAnyNode[\"type\"]>(\n\t// eslint-disable-next-line @typescript-eslint/no-unused-vars\n\ttype?: TRTType,\n): DefineComponentRichTextComponentProps<Extract<RTAnyNode, { type: TRTType }>> => ({\n\tnode: {\n\t\ttype: Object as PropType<RichTextComponentProps<Extract<RTAnyNode, { type: TRTType }>>[\"node\"]>,\n\t\trequired: true,\n\t},\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwCA,MAAa,6BAEZ,UACmF,EACnF,MAAM;CACL,MAAM;CACN,UAAU;AACX,EACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicTable.vue.cjs","names":["$attrs","usePrismic","computed","isComponent","defaultTableComponents","_unref","isFilled","_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_createElementBlock","_Fragment","_renderList","PrismicTableRow","_normalizeProps"],"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
|
|
1
|
+
{"version":3,"file":"PrismicTable.vue.cjs","names":["$attrs","usePrismic","computed","isComponent","defaultTableComponents","_unref","isFilled","_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_createElementBlock","_Fragment","_renderList","PrismicTableRow","_normalizeProps"],"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;({\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 */\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":";;;;;;;;;;;;;;;;;;;;;;;;;EAoCA,MAAM,QAAQ;EAGd,MAAM,EACL,YAAY,EAAE,yBACXC,sBAAAA,WAAW;EAEf,MAAM,sBAAA,GAAqBC,IAAAA,SAAAA,OAAqD;GAC/E,OAAO;IAAE,GAAG;IAAoB,GAAG,MAAM;GAAW;EACrD,CAAC;EAED,SAAS,qBAAqB,MAA6B;GAC1D,MAAM,4BAA4B,mBAAmB,QAAQ;GAE7D,IAAIC,cAAAA,YAAY,yBAAyB,GACxC,OAAO,EAAE,IAAI,0BAA0B;GAGxC,OAAO;IACN,IAAIC,sCAAAA,uBAAuB;IAC3B,WAAW;GACZ;EACD;EAEA,MAAM,2BAAA,GAA0BF,IAAAA,SAAAA,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,GAAAG,IAAAA,MAAAA,CAAAC,kBAAAA,QAAA,CAAQ,CAAC,MAAM,QAAA,KAAK,MAAA,GAD3BC,IAAAA,UAAAA,CAAA,IAAA,GAAAC,IAAAA,YAAAA,EAAAA,GAiCYC,IAAAA,wBAAAA,CA/BN,wBAAA,MAAwB,MAAM,EAAE,IAAA,GAFtCC,IAAAA,WAAAA,CAiCY;;IA9BV,OAAO,QAAA;GACKV,GAAAA;IAAAA,GAAAA,KAAAA;IAAM,GAAK,wBAAA,MAAwB,MAAM;GAAS,CAAA,GAAA;IAE/D,UAAA,GAAAW,IAAAA,QAAAA,OAaY,CAZL,QAAA,MAAM,SAAA,GADbJ,IAAAA,UAAAA,CAAA,IAAA,GAAAC,IAAAA,YAAAA,EAAAA,GAaYC,IAAAA,wBAAAA,CAXN,wBAAA,MAAwB,MAAM,EAAE,IAAA,GAFtCC,IAAAA,WAAAA,CAaY;;KAVV,MAAM,QAAA,MAAM;IACL,GAAA,wBAAA,MAAwB,MAAM,SAAS,GAAA;KAG9C,UAAA,GAAAC,IAAAA,QAAAA,OAA8B,GAAA,GAD/BJ,IAAAA,UAAAA,CAAA,IAAA,IAAA,GAAAK,IAAAA,mBAAAA,CAMEC,IAAAA,UAAA,OAAA,GAAAC,IAAAA,WAAAA,CALa,QAAA,MAAM,KAAK,OAAlB,QAAG;MADX,QAAA,GAAAP,IAAAA,UAAAA,CAAA,IAAA,GAAAC,IAAAA,YAAAA,CAMEO,wBAAAA,SAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;I,oEAGfR,IAAAA,UAAAA,CAAA,IAAA,GAAAC,IAAAA,YAAAA,EAAAA,GAYYC,IAAAA,wBAAAA,CAXN,wBAAA,MAAwB,MAAM,EAAE,IAAA,GADtCC,IAAAA,WAAAA,CAYY,EAVV,MAAM,QAAA,MAAM,KACL,GAAA,wBAAA,MAAwB,MAAM,SAAS,GAAA;KAG9C,UAAA,GAAAC,IAAAA,QAAAA,OAA8B,GAAA,GAD/BJ,IAAAA,UAAAA,CAAA,IAAA,IAAA,GAAAK,IAAAA,mBAAAA,CAMEC,IAAAA,UAAA,OAAA,GAAAC,IAAAA,WAAAA,CALa,QAAA,MAAM,KAAK,OAAlB,QAAG;MADX,QAAA,GAAAP,IAAAA,UAAAA,CAAA,IAAA,GAAAC,IAAAA,YAAAA,CAMEO,wBAAAA,SAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;;;G,qBAIM,QAAA,aAAA,GAAtBR,IAAAA,UAAAA,CAAA,IAAA,GAAAC,IAAAA,YAAAA,EAAAA,GAAiEC,IAAAA,wBAAAA,CAA5B,QAAA,QAAQ,IAAA,GAAAO,IAAAA,eAAAA,EAAAA,GAAAN,IAAAA,WAAAA,CAAA,EAAA,KAAA,EAAA,GAAUV,KAAAA,MAAM,CAAA,GAAA,MAAA,EAAA,MAAA,G"}
|
|
@@ -11,13 +11,11 @@ export type PrismicTableProps = {
|
|
|
11
11
|
* An object that maps a table block type to a Vue component or a shorthand definition.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
|
-
* ```javascript
|
|
15
14
|
* ;({
|
|
16
15
|
* table: Table,
|
|
17
16
|
* thead: { class: "bg-black text-white" },
|
|
18
|
-
* th: { as: "td", class: "font-bold" }
|
|
17
|
+
* th: { as: "td", class: "font-bold" },
|
|
19
18
|
* })
|
|
20
|
-
* ```
|
|
21
19
|
*/
|
|
22
20
|
components?: TableComponents & RichTextComponents;
|
|
23
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicTable.vue.d.cts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"PrismicTable.vue.d.cts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"mappings":";;;;;;YA4HY;;EAEX,OAAO;;;;;;;;;;;EAYP,aAAa,kBAAkB;;;;;EAM/B,WAAW;;cAqJN,4BAAY,gBAAA,iDAAA,qCAAA,iDAAA,aAAA,SAAA,qBAAA,oDAAA;cAGG,iBAAO"}
|
|
@@ -11,13 +11,11 @@ export type PrismicTableProps = {
|
|
|
11
11
|
* An object that maps a table block type to a Vue component or a shorthand definition.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
|
-
* ```javascript
|
|
15
14
|
* ;({
|
|
16
15
|
* table: Table,
|
|
17
16
|
* thead: { class: "bg-black text-white" },
|
|
18
|
-
* th: { as: "td", class: "font-bold" }
|
|
17
|
+
* th: { as: "td", class: "font-bold" },
|
|
19
18
|
* })
|
|
20
|
-
* ```
|
|
21
19
|
*/
|
|
22
20
|
components?: TableComponents & RichTextComponents;
|
|
23
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicTable.vue.d.ts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"PrismicTable.vue.d.ts","names":[],"sources":["../../src/PrismicTable/PrismicTable.vue"],"mappings":";;;;;;YA4HY;;EAEX,OAAO;;;;;;;;;;;EAYP,aAAa,kBAAkB;;;;;EAM/B,WAAW;;cAqJN,4BAAY,gBAAA,iDAAA,qCAAA,iDAAA,aAAA,SAAA,qBAAA,oDAAA;cAGG,iBAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrismicTable.vue.js","names":["$attrs","_unref","_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_createElementBlock","_Fragment","_renderList","PrismicTableRow","_normalizeProps"],"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
|
|
1
|
+
{"version":3,"file":"PrismicTable.vue.js","names":["$attrs","_unref","_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_withCtx","_createElementBlock","_Fragment","_renderList","PrismicTableRow","_normalizeProps"],"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;({\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 */\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":";;;;;;;;;;;;;;;;;;;;;;;;;EAoCA,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,OAAAC,MAAA,QAAA,CAAQ,CAAC,MAAM,QAAA,KAAK,KAD3BC,UAAA,GAAAC,YAiCYC,wBA/BN,wBAAA,MAAwB,MAAM,EAAE,GAFtCC,WAiCY;;IA9BV,OAAO,QAAA;GACKL,GAAAA;IAAAA,GAAAA,KAAAA;IAAM,GAAK,wBAAA,MAAwB,MAAM;GAAS,CAAA,GAAA;IAE/D,SAAAM,cAaY,CAZL,QAAA,MAAM,QADbJ,UAAA,GAAAC,YAaYC,wBAXN,wBAAA,MAAwB,MAAM,EAAE,GAFtCC,WAaY;;KAVV,MAAM,QAAA,MAAM;IACL,GAAA,wBAAA,MAAwB,MAAM,SAAS,GAAA;KAG9C,SAAAC,cAA8B,EAD/BJ,UAAA,IAAA,GAAAK,mBAMEC,UAAA,MAAAC,WALa,QAAA,MAAM,KAAK,OAAlB,QAAG;MADX,OAAAP,UAAA,GAAAC,YAMEO,yBAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;I,uDAGfR,UAAA,GAAAC,YAYYC,wBAXN,wBAAA,MAAwB,MAAM,EAAE,GADtCC,WAYY,EAVV,MAAM,QAAA,MAAM,KACL,GAAA,wBAAA,MAAwB,MAAM,SAAS,GAAA;KAG9C,SAAAC,cAA8B,EAD/BJ,UAAA,IAAA,GAAAK,mBAMEC,UAAA,MAAAC,WALa,QAAA,MAAM,KAAK,OAAlB,QAAG;MADX,OAAAP,UAAA,GAAAC,YAMEO,yBAAA;OAJA,KAAK,IAAI;OACJ;OACL,yBAAyB,wBAAA;OACzB,YAAY,QAAA;;;;;;;;;;G,qBAIM,QAAA,YAAtBR,UAAA,GAAAC,YAAiEC,wBAA5B,QAAA,QAAQ,GAAAO,eAAAN,WAAA,EAAA,KAAA,EAAA,GAAUL,KAAAA,MAAM,CAAA,GAAA,MAAA,EAAA,K"}
|
|
@@ -14,12 +14,10 @@ var getTableComponentProps_exports = /* @__PURE__ */ require("../_virtual/_rolld
|
|
|
14
14
|
* Props are: `["table"]`
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
|
-
* ```javascript
|
|
18
17
|
* // Defining a new rich text component
|
|
19
18
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
20
19
|
*
|
|
21
20
|
* defineProps(getTableComponentProps.table())
|
|
22
|
-
* ```
|
|
23
21
|
*/
|
|
24
22
|
const table = () => ({ table: {
|
|
25
23
|
type: Object,
|
|
@@ -32,12 +30,10 @@ const table = () => ({ table: {
|
|
|
32
30
|
* Props are: `["head"]`
|
|
33
31
|
*
|
|
34
32
|
* @example
|
|
35
|
-
* ```javascript
|
|
36
33
|
* // Defining a new rich text component
|
|
37
34
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
38
35
|
*
|
|
39
36
|
* defineProps(getTableComponentProps.thead())
|
|
40
|
-
* ```
|
|
41
37
|
*/
|
|
42
38
|
const thead = () => ({ head: {
|
|
43
39
|
type: Object,
|
|
@@ -50,12 +46,10 @@ const thead = () => ({ head: {
|
|
|
50
46
|
* Props are: `["body"]`
|
|
51
47
|
*
|
|
52
48
|
* @example
|
|
53
|
-
* ```javascript
|
|
54
49
|
* // Defining a new rich text component
|
|
55
50
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
56
51
|
*
|
|
57
52
|
* defineProps(getTableComponentProps.body())
|
|
58
|
-
* ```
|
|
59
53
|
*/
|
|
60
54
|
const tbody = () => ({ body: {
|
|
61
55
|
type: Object,
|
|
@@ -68,12 +62,10 @@ const tbody = () => ({ body: {
|
|
|
68
62
|
* Props are: `["row"]`
|
|
69
63
|
*
|
|
70
64
|
* @example
|
|
71
|
-
* ```javascript
|
|
72
65
|
* // Defining a new rich text component
|
|
73
66
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
74
67
|
*
|
|
75
68
|
* defineProps(getTableComponentProps.tr())
|
|
76
|
-
* ```
|
|
77
69
|
*/
|
|
78
70
|
const tr = () => ({ row: {
|
|
79
71
|
type: Object,
|
|
@@ -86,12 +78,10 @@ const tr = () => ({ row: {
|
|
|
86
78
|
* Props are: `["cell"]`
|
|
87
79
|
*
|
|
88
80
|
* @example
|
|
89
|
-
* ```javascript
|
|
90
81
|
* // Defining a new rich text component
|
|
91
82
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
92
83
|
*
|
|
93
84
|
* defineProps(getTableComponentProps.th())
|
|
94
|
-
* ```
|
|
95
85
|
*/
|
|
96
86
|
const th = () => ({ cell: {
|
|
97
87
|
type: Object,
|
|
@@ -104,12 +94,10 @@ const th = () => ({ cell: {
|
|
|
104
94
|
* Props are: `["cell"]`
|
|
105
95
|
*
|
|
106
96
|
* @example
|
|
107
|
-
* ```javascript
|
|
108
97
|
* // Defining a new rich text component
|
|
109
98
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
110
99
|
*
|
|
111
100
|
* defineProps(getTableComponentProps.td())
|
|
112
|
-
* ```
|
|
113
101
|
*/
|
|
114
102
|
const td = () => ({ cell: {
|
|
115
103
|
type: Object,
|
|
@@ -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
|
|
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// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.table())\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// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.thead())\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// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.body())\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// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.tr())\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// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.th())\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// Defining a new rich text component\n * \timport { getTableComponentProps } from \"@prismicio/vue\"\n *\n * \tdefineProps(getTableComponentProps.td())\n */\nexport const td = (): {\n\tcell: { type: PropType<TableFieldDataCell>; required: true }\n} => ({\n\tcell: { type: Object as PropType<TableFieldDataCell>, required: true },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAuBA,MAAa,eAEP,EACL,OAAO;CAAE,MAAM;CAA0C,UAAU;AAAK,EACzE;;;;;;;;;;;;;AAcA,MAAa,eAEP,EACL,MAAM;CAAE,MAAM;CAAoC,UAAU;AAAK,EAClE;;;;;;;;;;;;;AAcA,MAAa,eAEP,EACL,MAAM;CAAE,MAAM;CAAoC,UAAU;AAAK,EAClE;;;;;;;;;;;;;AAcA,MAAa,YAKP,EACL,KAAK;CACJ,MAAM;CACN,UAAU;AACX,EACD;;;;;;;;;;;;;AAcA,MAAa,YAEP,EACL,MAAM;CAAE,MAAM;CAA0C,UAAU;AAAK,EACxE;;;;;;;;;;;;;AAcA,MAAa,YAEP,EACL,MAAM;CAAE,MAAM;CAAwC,UAAU;AAAK,EACtE"}
|
|
@@ -10,12 +10,10 @@ declare namespace getTableComponentProps_d_exports {
|
|
|
10
10
|
* Props are: `["table"]`
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
* ```javascript
|
|
14
13
|
* // Defining a new rich text component
|
|
15
14
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
16
15
|
*
|
|
17
16
|
* defineProps(getTableComponentProps.table())
|
|
18
|
-
* ```
|
|
19
17
|
*/
|
|
20
18
|
export declare const table: () => {
|
|
21
19
|
table: {
|
|
@@ -30,12 +28,10 @@ export declare const table: () => {
|
|
|
30
28
|
* Props are: `["head"]`
|
|
31
29
|
*
|
|
32
30
|
* @example
|
|
33
|
-
* ```javascript
|
|
34
31
|
* // Defining a new rich text component
|
|
35
32
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
36
33
|
*
|
|
37
34
|
* defineProps(getTableComponentProps.thead())
|
|
38
|
-
* ```
|
|
39
35
|
*/
|
|
40
36
|
export declare const thead: () => {
|
|
41
37
|
head: {
|
|
@@ -50,12 +46,10 @@ export declare const thead: () => {
|
|
|
50
46
|
* Props are: `["body"]`
|
|
51
47
|
*
|
|
52
48
|
* @example
|
|
53
|
-
* ```javascript
|
|
54
49
|
* // Defining a new rich text component
|
|
55
50
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
56
51
|
*
|
|
57
52
|
* defineProps(getTableComponentProps.body())
|
|
58
|
-
* ```
|
|
59
53
|
*/
|
|
60
54
|
export declare const tbody: () => {
|
|
61
55
|
body: {
|
|
@@ -70,12 +64,10 @@ export declare const tbody: () => {
|
|
|
70
64
|
* Props are: `["row"]`
|
|
71
65
|
*
|
|
72
66
|
* @example
|
|
73
|
-
* ```javascript
|
|
74
67
|
* // Defining a new rich text component
|
|
75
68
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
76
69
|
*
|
|
77
70
|
* defineProps(getTableComponentProps.tr())
|
|
78
|
-
* ```
|
|
79
71
|
*/
|
|
80
72
|
export declare const tr: () => {
|
|
81
73
|
row: {
|
|
@@ -90,12 +82,10 @@ export declare const tr: () => {
|
|
|
90
82
|
* Props are: `["cell"]`
|
|
91
83
|
*
|
|
92
84
|
* @example
|
|
93
|
-
* ```javascript
|
|
94
85
|
* // Defining a new rich text component
|
|
95
86
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
96
87
|
*
|
|
97
88
|
* defineProps(getTableComponentProps.th())
|
|
98
|
-
* ```
|
|
99
89
|
*/
|
|
100
90
|
export declare const th: () => {
|
|
101
91
|
cell: {
|
|
@@ -110,12 +100,10 @@ export declare const th: () => {
|
|
|
110
100
|
* Props are: `["cell"]`
|
|
111
101
|
*
|
|
112
102
|
* @example
|
|
113
|
-
* ```javascript
|
|
114
103
|
* // Defining a new rich text component
|
|
115
104
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
116
105
|
*
|
|
117
106
|
* defineProps(getTableComponentProps.td())
|
|
118
|
-
* ```
|
|
119
107
|
*/
|
|
120
108
|
export declare const td: () => {
|
|
121
109
|
cell: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTableComponentProps.d.cts","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTableComponentProps.d.cts","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAuBa;EACZ;IAAS,MAAM,SAAS;IAAuB;;;;;;;;;;;;;;;qBAiBnC;EACZ;IAAQ,MAAM,SAAS;IAAiB;;;;;;;;;;;;;;;qBAiB5B;EACZ;IAAQ,MAAM,SAAS;IAAiB;;;;;;;;;;;;;;;qBAiB5B;EACZ;IACC,MAAM,SAAS,oBAAoB;IACnC;;;;;;;;;;;;;;;qBAqBW;EACZ;IAAQ,MAAM,SAAS;IAAuB;;;;;;;;;;;;;;;qBAiBlC;EACZ;IAAQ,MAAM,SAAS;IAAqB"}
|
|
@@ -10,12 +10,10 @@ declare namespace getTableComponentProps_d_exports {
|
|
|
10
10
|
* Props are: `["table"]`
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
|
-
* ```javascript
|
|
14
13
|
* // Defining a new rich text component
|
|
15
14
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
16
15
|
*
|
|
17
16
|
* defineProps(getTableComponentProps.table())
|
|
18
|
-
* ```
|
|
19
17
|
*/
|
|
20
18
|
export declare const table: () => {
|
|
21
19
|
table: {
|
|
@@ -30,12 +28,10 @@ export declare const table: () => {
|
|
|
30
28
|
* Props are: `["head"]`
|
|
31
29
|
*
|
|
32
30
|
* @example
|
|
33
|
-
* ```javascript
|
|
34
31
|
* // Defining a new rich text component
|
|
35
32
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
36
33
|
*
|
|
37
34
|
* defineProps(getTableComponentProps.thead())
|
|
38
|
-
* ```
|
|
39
35
|
*/
|
|
40
36
|
export declare const thead: () => {
|
|
41
37
|
head: {
|
|
@@ -50,12 +46,10 @@ export declare const thead: () => {
|
|
|
50
46
|
* Props are: `["body"]`
|
|
51
47
|
*
|
|
52
48
|
* @example
|
|
53
|
-
* ```javascript
|
|
54
49
|
* // Defining a new rich text component
|
|
55
50
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
56
51
|
*
|
|
57
52
|
* defineProps(getTableComponentProps.body())
|
|
58
|
-
* ```
|
|
59
53
|
*/
|
|
60
54
|
export declare const tbody: () => {
|
|
61
55
|
body: {
|
|
@@ -70,12 +64,10 @@ export declare const tbody: () => {
|
|
|
70
64
|
* Props are: `["row"]`
|
|
71
65
|
*
|
|
72
66
|
* @example
|
|
73
|
-
* ```javascript
|
|
74
67
|
* // Defining a new rich text component
|
|
75
68
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
76
69
|
*
|
|
77
70
|
* defineProps(getTableComponentProps.tr())
|
|
78
|
-
* ```
|
|
79
71
|
*/
|
|
80
72
|
export declare const tr: () => {
|
|
81
73
|
row: {
|
|
@@ -90,12 +82,10 @@ export declare const tr: () => {
|
|
|
90
82
|
* Props are: `["cell"]`
|
|
91
83
|
*
|
|
92
84
|
* @example
|
|
93
|
-
* ```javascript
|
|
94
85
|
* // Defining a new rich text component
|
|
95
86
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
96
87
|
*
|
|
97
88
|
* defineProps(getTableComponentProps.th())
|
|
98
|
-
* ```
|
|
99
89
|
*/
|
|
100
90
|
export declare const th: () => {
|
|
101
91
|
cell: {
|
|
@@ -110,12 +100,10 @@ export declare const th: () => {
|
|
|
110
100
|
* Props are: `["cell"]`
|
|
111
101
|
*
|
|
112
102
|
* @example
|
|
113
|
-
* ```javascript
|
|
114
103
|
* // Defining a new rich text component
|
|
115
104
|
* import { getTableComponentProps } from "@prismicio/vue"
|
|
116
105
|
*
|
|
117
106
|
* defineProps(getTableComponentProps.td())
|
|
118
|
-
* ```
|
|
119
107
|
*/
|
|
120
108
|
export declare const td: () => {
|
|
121
109
|
cell: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTableComponentProps.d.ts","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTableComponentProps.d.ts","names":[],"sources":["../../src/PrismicTable/getTableComponentProps.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAuBa;EACZ;IAAS,MAAM,SAAS;IAAuB;;;;;;;;;;;;;;;qBAiBnC;EACZ;IAAQ,MAAM,SAAS;IAAiB;;;;;;;;;;;;;;;qBAiB5B;EACZ;IAAQ,MAAM,SAAS;IAAiB;;;;;;;;;;;;;;;qBAiB5B;EACZ;IACC,MAAM,SAAS,oBAAoB;IACnC;;;;;;;;;;;;;;;qBAqBW;EACZ;IAAQ,MAAM,SAAS;IAAuB;;;;;;;;;;;;;;;qBAiBlC;EACZ;IAAQ,MAAM,SAAS;IAAqB"}
|