@primeui-devkit/vue-markdown 0.1.0-rc.2 → 0.1.0-rc.4
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/README.md +0 -5
- package/THIRD-PARTY-NOTICES.txt +2 -2
- package/dist/index.d.ts +530 -0
- package/dist/index.js +1 -82
- package/package.json +33 -23
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/prose/ProseA.vue.js +0 -28
- package/dist/prose/ProseA2.vue.js +0 -4
- package/dist/prose/ProseBlockquote.vue.js +0 -12
- package/dist/prose/ProseCode.vue.js +0 -12
- package/dist/prose/ProseEm.vue.js +0 -12
- package/dist/prose/ProseH1.vue.js +0 -26
- package/dist/prose/ProseH12.vue.js +0 -4
- package/dist/prose/ProseH2.vue.js +0 -26
- package/dist/prose/ProseH22.vue.js +0 -4
- package/dist/prose/ProseH3.vue.js +0 -26
- package/dist/prose/ProseH32.vue.js +0 -4
- package/dist/prose/ProseH4.vue.js +0 -26
- package/dist/prose/ProseH42.vue.js +0 -4
- package/dist/prose/ProseH5.vue.js +0 -26
- package/dist/prose/ProseH52.vue.js +0 -4
- package/dist/prose/ProseH6.vue.js +0 -26
- package/dist/prose/ProseH62.vue.js +0 -4
- package/dist/prose/ProseHr.vue.js +0 -10
- package/dist/prose/ProseImg.vue.js +0 -35
- package/dist/prose/ProseImg2.vue.js +0 -4
- package/dist/prose/ProseLi.vue.js +0 -12
- package/dist/prose/ProseOl.vue.js +0 -12
- package/dist/prose/ProseP.vue.js +0 -12
- package/dist/prose/ProsePre.vue.js +0 -89
- package/dist/prose/ProsePre2.vue.js +0 -4
- package/dist/prose/ProseStrong.vue.js +0 -12
- package/dist/prose/ProseTable.vue.js +0 -14
- package/dist/prose/ProseTbody.vue.js +0 -12
- package/dist/prose/ProseTd.vue.js +0 -12
- package/dist/prose/ProseTh.vue.js +0 -12
- package/dist/prose/ProseThead.vue.js +0 -12
- package/dist/prose/ProseTr.vue.js +0 -12
- package/dist/prose/ProseUl.vue.js +0 -12
- package/types/index.d.ts +0 -30
package/package.json
CHANGED
|
@@ -1,54 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primeui-devkit/vue-markdown",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.4",
|
|
4
|
+
"author": "PrimeTek Informatics",
|
|
4
5
|
"description": "Vue renderer for the PrimeUI DevKit markdown AST, plus the Prose* component set. The rendering backend is an internal implementation detail.",
|
|
5
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/primefaces/primeui-devkit.git",
|
|
10
|
+
"directory": "packages/markdown/vue-markdown"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://support.primeui.dev"
|
|
14
|
+
},
|
|
6
15
|
"type": "module",
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"module": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
7
19
|
"exports": {
|
|
8
20
|
".": {
|
|
9
|
-
"types": "./
|
|
10
|
-
"import": "./dist/index.js"
|
|
11
|
-
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js",
|
|
23
|
+
"default": "./dist/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./package.json": "./package.json"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
12
29
|
},
|
|
30
|
+
"sideEffects": false,
|
|
13
31
|
"files": [
|
|
14
32
|
"dist",
|
|
15
|
-
"types",
|
|
16
33
|
"LICENSE.md",
|
|
17
34
|
"THIRD-PARTY-NOTICES.txt",
|
|
18
35
|
"README.md"
|
|
19
36
|
],
|
|
20
|
-
"sideEffects": false,
|
|
21
37
|
"dependencies": {
|
|
22
|
-
"@
|
|
38
|
+
"@primeui-devkit/markdown-core": "0.1.0-rc.4"
|
|
23
39
|
},
|
|
24
40
|
"peerDependencies": {
|
|
25
41
|
"vue": "^3.5.0"
|
|
26
42
|
},
|
|
27
43
|
"devDependencies": {
|
|
28
|
-
"@vitejs/plugin-vue": "^6.0.0",
|
|
29
44
|
"cross-env": "^10.1.0",
|
|
45
|
+
"jsdom": "^30.0.1",
|
|
30
46
|
"typescript": "~6.0.0",
|
|
31
|
-
"
|
|
32
|
-
"vitest": "4.1.
|
|
47
|
+
"unplugin-vue": "^8.0.0",
|
|
48
|
+
"vitest": "4.1.11",
|
|
33
49
|
"vue": "^3.5.0",
|
|
34
50
|
"vue-tsc": "^3.3.9",
|
|
35
|
-
"@primeui-devkit/
|
|
36
|
-
"@primeui-devkit/
|
|
37
|
-
"@primeui-devkit/
|
|
38
|
-
"@primeui-devkit/
|
|
51
|
+
"@primeui-devkit/bundle": "0.1.0-rc.2",
|
|
52
|
+
"@primeui-devkit/cli": "0.1.0-rc.2",
|
|
53
|
+
"@primeui-devkit/test-config": "0.1.0-rc.2",
|
|
54
|
+
"@primeui-devkit/ts-config": "0.1.0-rc.2"
|
|
39
55
|
},
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
"author": "PrimeTek Informatics",
|
|
43
|
-
"bugs": {
|
|
44
|
-
"url": "https://support.primeui.dev"
|
|
45
|
-
},
|
|
46
|
-
"publishConfig": {
|
|
47
|
-
"access": "public"
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=22.18.0"
|
|
48
58
|
},
|
|
49
59
|
"scripts": {
|
|
50
60
|
"build": "pnpm run build:package",
|
|
51
|
-
"build:package": "pnpm run test &&
|
|
61
|
+
"build:package": "pnpm run test && devkit bundle build",
|
|
52
62
|
"type:check": "vue-tsc --noEmit",
|
|
53
63
|
"test": "cross-env NODE_ENV=test vitest run --passWithNoTests",
|
|
54
64
|
"test:watch": "vitest --watch --passWithNoTests",
|
package/dist/prose/ProseA.vue.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, openBlock as a, createElementBlock as s, renderSlot as n } from "vue";
|
|
2
|
-
const f = ["href", "target"], c = /* @__PURE__ */ o({
|
|
3
|
-
__name: "ProseA",
|
|
4
|
-
props: {
|
|
5
|
-
href: {
|
|
6
|
-
type: String,
|
|
7
|
-
default: ""
|
|
8
|
-
},
|
|
9
|
-
target: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: void 0,
|
|
12
|
-
required: !1
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
setup(t) {
|
|
16
|
-
const e = t;
|
|
17
|
-
return (r, p) => (a(), s("a", {
|
|
18
|
-
class: "prose-a",
|
|
19
|
-
href: e.href,
|
|
20
|
-
target: e.target
|
|
21
|
-
}, [
|
|
22
|
-
n(r.$slots, "default")
|
|
23
|
-
], 8, f));
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
export {
|
|
27
|
-
c as default
|
|
28
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as e, createElementBlock as t, renderSlot as r } from "vue";
|
|
2
|
-
import c from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const s = {}, n = { class: "prose-blockquote" };
|
|
4
|
-
function l(o, _) {
|
|
5
|
-
return e(), t("blockquote", n, [
|
|
6
|
-
r(o.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const u = /* @__PURE__ */ c(s, [["render", l]]);
|
|
10
|
-
export {
|
|
11
|
-
u as default
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
|
|
2
|
-
import c from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const s = {}, n = { class: "prose-code" };
|
|
4
|
-
function d(e, _) {
|
|
5
|
-
return o(), r("code", n, [
|
|
6
|
-
t(e.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const a = /* @__PURE__ */ c(s, [["render", d]]);
|
|
10
|
-
export {
|
|
11
|
-
a as default
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
|
|
2
|
-
import s from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, n = { class: "prose-em" };
|
|
4
|
-
function m(e, _) {
|
|
5
|
-
return o(), r("em", n, [
|
|
6
|
-
t(e.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const a = /* @__PURE__ */ s(c, [["render", m]]);
|
|
10
|
-
export {
|
|
11
|
-
a as default
|
|
12
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, computed as l, openBlock as t, createElementBlock as n, createElementVNode as p, renderSlot as r } from "vue";
|
|
2
|
-
const c = ["id"], f = ["href"], h = /* @__PURE__ */ i({
|
|
3
|
-
__name: "ProseH1",
|
|
4
|
-
props: {
|
|
5
|
-
id: { type: String, required: !1 }
|
|
6
|
-
},
|
|
7
|
-
setup(d) {
|
|
8
|
-
const e = d, a = l(() => !!e.id);
|
|
9
|
-
return (o, s) => (t(), n("h1", {
|
|
10
|
-
id: e.id,
|
|
11
|
-
class: "prose-h1"
|
|
12
|
-
}, [
|
|
13
|
-
e.id && a.value ? (t(), n("a", {
|
|
14
|
-
key: 0,
|
|
15
|
-
href: `#${e.id}`,
|
|
16
|
-
class: "prose-heading-link"
|
|
17
|
-
}, [
|
|
18
|
-
s[0] || (s[0] = p("span", { class: "prose-heading-anchor" }, "#", -1)),
|
|
19
|
-
r(o.$slots, "default")
|
|
20
|
-
], 8, f)) : r(o.$slots, "default", {}, void 0, void 0, 1)
|
|
21
|
-
], 8, c));
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
export {
|
|
25
|
-
h as default
|
|
26
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, computed as l, openBlock as t, createElementBlock as n, createElementVNode as p, renderSlot as r } from "vue";
|
|
2
|
-
const c = ["id"], f = ["href"], h = /* @__PURE__ */ i({
|
|
3
|
-
__name: "ProseH2",
|
|
4
|
-
props: {
|
|
5
|
-
id: { type: String, required: !1 }
|
|
6
|
-
},
|
|
7
|
-
setup(d) {
|
|
8
|
-
const e = d, a = l(() => !!e.id);
|
|
9
|
-
return (o, s) => (t(), n("h2", {
|
|
10
|
-
id: e.id,
|
|
11
|
-
class: "prose-h2"
|
|
12
|
-
}, [
|
|
13
|
-
e.id && a.value ? (t(), n("a", {
|
|
14
|
-
key: 0,
|
|
15
|
-
href: `#${e.id}`,
|
|
16
|
-
class: "prose-heading-link"
|
|
17
|
-
}, [
|
|
18
|
-
s[0] || (s[0] = p("span", { class: "prose-heading-anchor" }, "#", -1)),
|
|
19
|
-
r(o.$slots, "default")
|
|
20
|
-
], 8, f)) : r(o.$slots, "default", {}, void 0, void 0, 1)
|
|
21
|
-
], 8, c));
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
export {
|
|
25
|
-
h as default
|
|
26
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, computed as l, openBlock as t, createElementBlock as n, createElementVNode as p, renderSlot as r } from "vue";
|
|
2
|
-
const c = ["id"], f = ["href"], h = /* @__PURE__ */ i({
|
|
3
|
-
__name: "ProseH3",
|
|
4
|
-
props: {
|
|
5
|
-
id: { type: String, required: !1 }
|
|
6
|
-
},
|
|
7
|
-
setup(d) {
|
|
8
|
-
const e = d, a = l(() => !!e.id);
|
|
9
|
-
return (o, s) => (t(), n("h3", {
|
|
10
|
-
id: e.id,
|
|
11
|
-
class: "prose-h3"
|
|
12
|
-
}, [
|
|
13
|
-
e.id && a.value ? (t(), n("a", {
|
|
14
|
-
key: 0,
|
|
15
|
-
href: `#${e.id}`,
|
|
16
|
-
class: "prose-heading-link"
|
|
17
|
-
}, [
|
|
18
|
-
s[0] || (s[0] = p("span", { class: "prose-heading-anchor" }, "#", -1)),
|
|
19
|
-
r(o.$slots, "default")
|
|
20
|
-
], 8, f)) : r(o.$slots, "default", {}, void 0, void 0, 1)
|
|
21
|
-
], 8, c));
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
export {
|
|
25
|
-
h as default
|
|
26
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, computed as l, openBlock as t, createElementBlock as n, createElementVNode as p, renderSlot as r } from "vue";
|
|
2
|
-
const c = ["id"], f = ["href"], h = /* @__PURE__ */ i({
|
|
3
|
-
__name: "ProseH4",
|
|
4
|
-
props: {
|
|
5
|
-
id: { type: String, required: !1 }
|
|
6
|
-
},
|
|
7
|
-
setup(d) {
|
|
8
|
-
const e = d, a = l(() => !!e.id);
|
|
9
|
-
return (o, s) => (t(), n("h4", {
|
|
10
|
-
id: e.id,
|
|
11
|
-
class: "prose-h4"
|
|
12
|
-
}, [
|
|
13
|
-
e.id && a.value ? (t(), n("a", {
|
|
14
|
-
key: 0,
|
|
15
|
-
href: `#${e.id}`,
|
|
16
|
-
class: "prose-heading-link"
|
|
17
|
-
}, [
|
|
18
|
-
s[0] || (s[0] = p("span", { class: "prose-heading-anchor" }, "#", -1)),
|
|
19
|
-
r(o.$slots, "default")
|
|
20
|
-
], 8, f)) : r(o.$slots, "default", {}, void 0, void 0, 1)
|
|
21
|
-
], 8, c));
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
export {
|
|
25
|
-
h as default
|
|
26
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, computed as l, openBlock as t, createElementBlock as n, createElementVNode as p, renderSlot as r } from "vue";
|
|
2
|
-
const c = ["id"], f = ["href"], h = /* @__PURE__ */ i({
|
|
3
|
-
__name: "ProseH5",
|
|
4
|
-
props: {
|
|
5
|
-
id: { type: String, required: !1 }
|
|
6
|
-
},
|
|
7
|
-
setup(d) {
|
|
8
|
-
const e = d, a = l(() => !!e.id);
|
|
9
|
-
return (o, s) => (t(), n("h5", {
|
|
10
|
-
id: e.id,
|
|
11
|
-
class: "prose-h5"
|
|
12
|
-
}, [
|
|
13
|
-
e.id && a.value ? (t(), n("a", {
|
|
14
|
-
key: 0,
|
|
15
|
-
href: `#${e.id}`,
|
|
16
|
-
class: "prose-heading-link"
|
|
17
|
-
}, [
|
|
18
|
-
s[0] || (s[0] = p("span", { class: "prose-heading-anchor" }, "#", -1)),
|
|
19
|
-
r(o.$slots, "default")
|
|
20
|
-
], 8, f)) : r(o.$slots, "default", {}, void 0, void 0, 1)
|
|
21
|
-
], 8, c));
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
export {
|
|
25
|
-
h as default
|
|
26
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, computed as l, openBlock as t, createElementBlock as n, createElementVNode as p, renderSlot as r } from "vue";
|
|
2
|
-
const c = ["id"], f = ["href"], h = /* @__PURE__ */ i({
|
|
3
|
-
__name: "ProseH6",
|
|
4
|
-
props: {
|
|
5
|
-
id: { type: String, required: !1 }
|
|
6
|
-
},
|
|
7
|
-
setup(d) {
|
|
8
|
-
const e = d, a = l(() => !!e.id);
|
|
9
|
-
return (o, s) => (t(), n("h6", {
|
|
10
|
-
id: e.id,
|
|
11
|
-
class: "prose-h6"
|
|
12
|
-
}, [
|
|
13
|
-
e.id && a.value ? (t(), n("a", {
|
|
14
|
-
key: 0,
|
|
15
|
-
href: `#${e.id}`,
|
|
16
|
-
class: "prose-heading-link"
|
|
17
|
-
}, [
|
|
18
|
-
s[0] || (s[0] = p("span", { class: "prose-heading-anchor" }, "#", -1)),
|
|
19
|
-
r(o.$slots, "default")
|
|
20
|
-
], 8, f)) : r(o.$slots, "default", {}, void 0, void 0, 1)
|
|
21
|
-
], 8, c));
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
export {
|
|
25
|
-
h as default
|
|
26
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { openBlock as r, createElementBlock as e } from "vue";
|
|
2
|
-
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, t = { class: "prose-hr" };
|
|
4
|
-
function s(n, _) {
|
|
5
|
-
return r(), e("hr", t);
|
|
6
|
-
}
|
|
7
|
-
const m = /* @__PURE__ */ o(c, [["render", s]]);
|
|
8
|
-
export {
|
|
9
|
-
m as default
|
|
10
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, openBlock as i, createElementBlock as o } from "vue";
|
|
2
|
-
const n = ["src", "alt", "width", "height"], l = /* @__PURE__ */ r({
|
|
3
|
-
__name: "ProseImg",
|
|
4
|
-
props: {
|
|
5
|
-
src: {
|
|
6
|
-
type: String,
|
|
7
|
-
default: ""
|
|
8
|
-
},
|
|
9
|
-
alt: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: ""
|
|
12
|
-
},
|
|
13
|
-
width: {
|
|
14
|
-
type: [String, Number],
|
|
15
|
-
default: void 0
|
|
16
|
-
},
|
|
17
|
-
height: {
|
|
18
|
-
type: [String, Number],
|
|
19
|
-
default: void 0
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
setup(e) {
|
|
23
|
-
const t = e;
|
|
24
|
-
return (s, a) => (i(), o("img", {
|
|
25
|
-
class: "prose-img",
|
|
26
|
-
src: t.src,
|
|
27
|
-
alt: t.alt,
|
|
28
|
-
width: t.width,
|
|
29
|
-
height: t.height
|
|
30
|
-
}, null, 8, n));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
l as default
|
|
35
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
|
|
2
|
-
import s from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, n = { class: "prose-li" };
|
|
4
|
-
function l(e, _) {
|
|
5
|
-
return o(), r("li", n, [
|
|
6
|
-
t(e.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const a = /* @__PURE__ */ s(c, [["render", l]]);
|
|
10
|
-
export {
|
|
11
|
-
a as default
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
|
|
2
|
-
import s from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, n = { class: "prose-ol" };
|
|
4
|
-
function l(e, _) {
|
|
5
|
-
return o(), r("ol", n, [
|
|
6
|
-
t(e.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const d = /* @__PURE__ */ s(c, [["render", l]]);
|
|
10
|
-
export {
|
|
11
|
-
d as default
|
|
12
|
-
};
|
package/dist/prose/ProseP.vue.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
|
|
2
|
-
import s from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, n = { class: "prose-p" };
|
|
4
|
-
function _(e, f) {
|
|
5
|
-
return o(), r("p", n, [
|
|
6
|
-
t(e.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const a = /* @__PURE__ */ s(c, [["render", _]]);
|
|
10
|
-
export {
|
|
11
|
-
a as default
|
|
12
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, computed as a, ref as f, openBlock as n, createElementBlock as s, createElementVNode as e, toDisplayString as m, createCommentVNode as h, normalizeClass as y, renderSlot as g } from "vue";
|
|
2
|
-
const v = { class: "prose-pre" }, _ = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "prose-pre-filename"
|
|
5
|
-
}, k = { class: "prose-pre-actions" }, C = ["title"], w = {
|
|
6
|
-
key: 0,
|
|
7
|
-
width: "14",
|
|
8
|
-
height: "14",
|
|
9
|
-
viewBox: "0 0 24 24",
|
|
10
|
-
fill: "none",
|
|
11
|
-
stroke: "currentColor",
|
|
12
|
-
"stroke-width": "2"
|
|
13
|
-
}, b = {
|
|
14
|
-
key: 1,
|
|
15
|
-
width: "14",
|
|
16
|
-
height: "14",
|
|
17
|
-
viewBox: "0 0 24 24",
|
|
18
|
-
fill: "none",
|
|
19
|
-
stroke: "currentColor",
|
|
20
|
-
"stroke-width": "2"
|
|
21
|
-
}, x = /* @__PURE__ */ c({
|
|
22
|
-
__name: "ProsePre",
|
|
23
|
-
props: {
|
|
24
|
-
code: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: ""
|
|
27
|
-
},
|
|
28
|
-
language: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: null
|
|
31
|
-
},
|
|
32
|
-
filename: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: null
|
|
35
|
-
},
|
|
36
|
-
highlights: {
|
|
37
|
-
type: Array,
|
|
38
|
-
default: () => []
|
|
39
|
-
},
|
|
40
|
-
meta: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: null
|
|
43
|
-
},
|
|
44
|
-
class: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: null
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
setup(p) {
|
|
50
|
-
const t = p, u = a(() => t.filename?.includes(":line-numbers")), r = a(() => t.filename?.replace(":line-numbers", "") || null), l = f(!1);
|
|
51
|
-
async function d() {
|
|
52
|
-
t.code && (await navigator.clipboard.writeText(t.code), l.value = !0, setTimeout(() => l.value = !1, 2e3));
|
|
53
|
-
}
|
|
54
|
-
return (i, o) => (n(), s("div", v, [
|
|
55
|
-
r.value ? (n(), s("div", _, [
|
|
56
|
-
e("span", null, m(r.value), 1)
|
|
57
|
-
])) : h("", !0),
|
|
58
|
-
e("div", k, [
|
|
59
|
-
e("button", {
|
|
60
|
-
type: "button",
|
|
61
|
-
class: "prose-pre-copy",
|
|
62
|
-
title: l.value ? "Copied" : "Copy Code",
|
|
63
|
-
onClick: d
|
|
64
|
-
}, [
|
|
65
|
-
l.value ? (n(), s("svg", w, [...o[0] || (o[0] = [
|
|
66
|
-
e("path", { d: "M20 6 9 17l-5-5" }, null, -1)
|
|
67
|
-
])])) : (n(), s("svg", b, [...o[1] || (o[1] = [
|
|
68
|
-
e("rect", {
|
|
69
|
-
x: "9",
|
|
70
|
-
y: "9",
|
|
71
|
-
width: "13",
|
|
72
|
-
height: "13",
|
|
73
|
-
rx: "2"
|
|
74
|
-
}, null, -1),
|
|
75
|
-
e("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }, null, -1)
|
|
76
|
-
])]))
|
|
77
|
-
], 8, C)
|
|
78
|
-
]),
|
|
79
|
-
e("pre", {
|
|
80
|
-
class: y([i.$props.class, { "prose-pre-line-numbers": u.value }])
|
|
81
|
-
}, [
|
|
82
|
-
g(i.$slots, "default")
|
|
83
|
-
], 2)
|
|
84
|
-
]));
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
export {
|
|
88
|
-
x as default
|
|
89
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as e, createElementBlock as r, renderSlot as t } from "vue";
|
|
2
|
-
import s from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const n = {}, c = { class: "prose-strong" };
|
|
4
|
-
function _(o, f) {
|
|
5
|
-
return e(), r("strong", c, [
|
|
6
|
-
t(o.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const d = /* @__PURE__ */ s(n, [["render", _]]);
|
|
10
|
-
export {
|
|
11
|
-
d as default
|
|
12
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as t, createElementVNode as r, renderSlot as s } from "vue";
|
|
2
|
-
import c from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const l = {}, n = { class: "prose-table-scroll" }, a = { class: "prose-table" };
|
|
4
|
-
function _(e, d) {
|
|
5
|
-
return o(), t("div", n, [
|
|
6
|
-
r("table", a, [
|
|
7
|
-
s(e.$slots, "default")
|
|
8
|
-
])
|
|
9
|
-
]);
|
|
10
|
-
}
|
|
11
|
-
const m = /* @__PURE__ */ c(l, [["render", _]]);
|
|
12
|
-
export {
|
|
13
|
-
m as default
|
|
14
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as e, createElementBlock as t, renderSlot as r } from "vue";
|
|
2
|
-
import s from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, n = { class: "prose-tbody" };
|
|
4
|
-
function d(o, _) {
|
|
5
|
-
return e(), t("tbody", n, [
|
|
6
|
-
r(o.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const a = /* @__PURE__ */ s(c, [["render", d]]);
|
|
10
|
-
export {
|
|
11
|
-
a as default
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as t, renderSlot as r } from "vue";
|
|
2
|
-
import s from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, n = { class: "prose-td" };
|
|
4
|
-
function d(e, _) {
|
|
5
|
-
return o(), t("td", n, [
|
|
6
|
-
r(e.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const a = /* @__PURE__ */ s(c, [["render", d]]);
|
|
10
|
-
export {
|
|
11
|
-
a as default
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as t, renderSlot as r } from "vue";
|
|
2
|
-
import s from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, n = { class: "prose-th" };
|
|
4
|
-
function _(e, f) {
|
|
5
|
-
return o(), t("th", n, [
|
|
6
|
-
r(e.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const d = /* @__PURE__ */ s(c, [["render", _]]);
|
|
10
|
-
export {
|
|
11
|
-
d as default
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as t, renderSlot as r } from "vue";
|
|
2
|
-
import s from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, n = { class: "prose-thead" };
|
|
4
|
-
function a(e, d) {
|
|
5
|
-
return o(), t("thead", n, [
|
|
6
|
-
r(e.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const l = /* @__PURE__ */ s(c, [["render", a]]);
|
|
10
|
-
export {
|
|
11
|
-
l as default
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { openBlock as r, createElementBlock as o, renderSlot as t } from "vue";
|
|
2
|
-
import s from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, n = { class: "prose-tr" };
|
|
4
|
-
function _(e, f) {
|
|
5
|
-
return r(), o("tr", n, [
|
|
6
|
-
t(e.$slots, "default")
|
|
7
|
-
]);
|
|
8
|
-
}
|
|
9
|
-
const d = /* @__PURE__ */ s(c, [["render", _]]);
|
|
10
|
-
export {
|
|
11
|
-
d as default
|
|
12
|
-
};
|