vue3-notion
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -135,3 +135,3 @@ import { computed, defineComponent, openBlock, createElementBlock, unref, resolveComponent, createBlock, resolveDynamicComponent, mergeProps, withCtx, createTextVNode, toDisplayString, createVNode, normalizeClass, Fragment, renderList, createElementVNode, createCommentVNode, normalizeProps, guardReactiveProps, useSlots, toRefs, normalizeStyle, renderSlot } from 'vue'; | ||
const _hoisted_1$k = ["innerHTML"]; | ||
const _hoisted_1$l = ["innerHTML"]; | ||
const __default__$l = { | ||
@@ -152,3 +152,3 @@ name: "Katex", | ||
return (_ctx, _cache) => { | ||
return (openBlock(), createElementBlock("span", { innerHTML: unref(html) }, null, 8 /* PROPS */, _hoisted_1$k)); | ||
return (openBlock(), createElementBlock("span", { innerHTML: unref(html) }, null, 8 /* PROPS */, _hoisted_1$l)); | ||
}; | ||
@@ -160,4 +160,4 @@ } | ||
const _hoisted_1$j = ["target", "href"]; | ||
const _hoisted_2$c = ["target", "href"]; | ||
const _hoisted_1$k = ["target", "href"]; | ||
const _hoisted_2$d = ["target", "href"]; | ||
const _hoisted_3$5 = ["target", "href"]; | ||
@@ -226,3 +226,3 @@ const _hoisted_4$3 = { key: 5 }; | ||
href: unref(blockProps).mapPageUrl(unref(decoratorValue)) | ||
}, toDisplayString(unref(pageLinkTitle)), 9 /* TEXT, PROPS */, _hoisted_1$j)) | ||
}, toDisplayString(unref(pageLinkTitle)), 9 /* TEXT, PROPS */, _hoisted_1$k)) | ||
: (unref(decoratorKey) === 'a' && unref(hasPageLinkOptions) && unref(isInlinePageLink)) | ||
@@ -246,3 +246,3 @@ ? (openBlock(), createBlock(resolveDynamicComponent(unref(blockProps).pageLinkOptions?.component), mergeProps({ | ||
createVNode(_component_NotionDecorator, mergeProps({ content: unref(nextContent) }, unref(pass)), null, 16 /* FULL_PROPS */, ["content"]) | ||
], 8 /* PROPS */, _hoisted_2$c)) | ||
], 8 /* PROPS */, _hoisted_2$d)) | ||
: (unref(decoratorKey) === 'a') | ||
@@ -324,4 +324,4 @@ ? (openBlock(), createElementBlock("a", { | ||
const _hoisted_1$i = { class: "notion-row" }; | ||
const _hoisted_2$b = ["href"]; | ||
const _hoisted_1$j = { class: "notion-row" }; | ||
const _hoisted_2$c = ["href"]; | ||
const _hoisted_3$4 = { class: "notion-bookmark-title" }; | ||
@@ -350,3 +350,3 @@ const _hoisted_4$2 = { | ||
return (_ctx, _cache) => { | ||
return (openBlock(), createElementBlock("div", _hoisted_1$i, [ | ||
return (openBlock(), createElementBlock("div", _hoisted_1$j, [ | ||
createElementVNode("a", { | ||
@@ -392,3 +392,3 @@ target: "_blank", | ||
: createCommentVNode("v-if", true) | ||
], 10 /* CLASS, PROPS */, _hoisted_2$b) | ||
], 10 /* CLASS, PROPS */, _hoisted_2$c) | ||
])); | ||
@@ -401,4 +401,4 @@ }; | ||
const _hoisted_1$h = ["src", "alt"]; | ||
const _hoisted_2$a = ["aria-label"]; | ||
const _hoisted_1$i = ["src", "alt"]; | ||
const _hoisted_2$b = ["aria-label"]; | ||
const __default__$h = { | ||
@@ -421,3 +421,3 @@ name: "NotionPageIcon", | ||
alt: unref(title) ? unref(getTextContent)(unref(title)) : 'Icon' | ||
}, null, 10 /* CLASS, PROPS */, _hoisted_1$h)) | ||
}, null, 10 /* CLASS, PROPS */, _hoisted_1$i)) | ||
: (unref(icon)) | ||
@@ -433,3 +433,3 @@ ? (openBlock(), createElementBlock("span", { | ||
]) | ||
}, toDisplayString(unref(icon)), 11 /* TEXT, CLASS, PROPS */, _hoisted_2$a)) | ||
}, toDisplayString(unref(icon)), 11 /* TEXT, CLASS, PROPS */, _hoisted_2$b)) | ||
: createCommentVNode("v-if", true); | ||
@@ -442,4 +442,4 @@ }; | ||
const _hoisted_1$g = { style: { "font-size": "12px" } }; | ||
const _hoisted_2$9 = { class: "notion-callout-text" }; | ||
const _hoisted_1$h = { style: { "font-size": "12px" } }; | ||
const _hoisted_2$a = { class: "notion-callout-text" }; | ||
const __default__$g = { | ||
@@ -459,6 +459,6 @@ name: "NotionCallout", | ||
}, [ | ||
createElementVNode("div", _hoisted_1$g, [ | ||
createElementVNode("div", _hoisted_1$h, [ | ||
createVNode(script$k, normalizeProps(guardReactiveProps(unref(pass))), null, 16 /* FULL_PROPS */) | ||
]), | ||
createElementVNode("div", _hoisted_2$9, [ | ||
createElementVNode("div", _hoisted_2$a, [ | ||
createVNode(script$m, mergeProps({ text: unref(title) }, unref(pass)), null, 16 /* FULL_PROPS */, ["text"]) | ||
@@ -473,4 +473,4 @@ ]) | ||
const _hoisted_1$f = ["innerHTML"]; | ||
const _hoisted_2$8 = ["innerHTML"]; | ||
const _hoisted_1$g = ["innerHTML"]; | ||
const _hoisted_2$9 = ["innerHTML"]; | ||
var script$i = /*#__PURE__*/ defineComponent({ | ||
@@ -501,14 +501,16 @@ props: { | ||
return (_ctx, _cache) => { | ||
return (unref(inline)) | ||
? (openBlock(), createElementBlock("code", { | ||
key: 0, | ||
class: normalizeClass(unref(className)), | ||
innerHTML: unref(d) | ||
}, null, 10 /* CLASS, PROPS */, _hoisted_1$f)) | ||
: (openBlock(), createElementBlock("pre", { | ||
key: 1, | ||
class: normalizeClass(unref(className)) | ||
}, [ | ||
createElementVNode("code", { innerHTML: unref(d) }, null, 8 /* PROPS */, _hoisted_2$8) | ||
], 2 /* CLASS */)); | ||
return (openBlock(), createElementBlock("div", null, [ | ||
(unref(inline)) | ||
? (openBlock(), createElementBlock("code", { | ||
key: 0, | ||
class: normalizeClass(unref(className)), | ||
innerHTML: unref(d) | ||
}, null, 10 /* CLASS, PROPS */, _hoisted_1$g)) | ||
: (openBlock(), createElementBlock("pre", { | ||
key: 1, | ||
class: normalizeClass(unref(className)) | ||
}, [ | ||
createElementVNode("code", { innerHTML: unref(d) }, null, 8 /* PROPS */, _hoisted_2$9) | ||
], 2 /* CLASS */)) | ||
])); | ||
}; | ||
@@ -520,2 +522,10 @@ } | ||
const _hoisted_1$f = { | ||
key: 0, | ||
class: /*#__PURE__*/ normalizeClass(['notion-code']) | ||
}; | ||
const _hoisted_2$8 = { | ||
key: 1, | ||
class: /*#__PURE__*/ normalizeClass(['notion-code']) | ||
}; | ||
const __default__$f = { | ||
@@ -542,6 +552,3 @@ name: "NotionCode", | ||
return (unref(supported)) | ||
? (openBlock(), createElementBlock("pre", { | ||
key: 0, | ||
class: normalizeClass(['notion-code', unref(langClass)]) | ||
}, [ | ||
? (openBlock(), createElementBlock("pre", _hoisted_1$f, [ | ||
createVNode(script$i, { language: unref(lang) }, { | ||
@@ -553,11 +560,8 @@ default: withCtx(() => [ | ||
}, 8 /* PROPS */, ["language"]) | ||
], 2 /* CLASS */)) | ||
: (openBlock(), createElementBlock("pre", { | ||
key: 1, | ||
class: normalizeClass(['notion-code', unref(langClass)]) | ||
}, [ | ||
])) | ||
: (openBlock(), createElementBlock("pre", _hoisted_2$8, [ | ||
createElementVNode("code", { | ||
class: normalizeClass(unref(langClass)) | ||
}, toDisplayString(unref(properties)?.title[0][0]), 3 /* TEXT, CLASS */) | ||
], 2 /* CLASS */)); | ||
])); | ||
}; | ||
@@ -564,0 +568,0 @@ } |
{ | ||
"name": "vue3-notion", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "Vue 3 Unofficial Notion Renderer", | ||
@@ -5,0 +5,0 @@ "repository": "github:zernonia/vue3-notion", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
223204
4807