@sit-onyx/mdc 0.0.0

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 (31) hide show
  1. package/LICENSE.txt +190 -0
  2. package/README.md +9 -0
  3. package/dist/MDCRenderer-BiRlLs6r.js +290 -0
  4. package/dist/components/OnyxMarkdownRenderer/OnyxMarkdownRenderer.d.vue.ts +29 -0
  5. package/dist/components/OnyxMarkdownRenderer/types.d.ts +12 -0
  6. package/dist/components/prose/ProseA.d.vue.ts +26 -0
  7. package/dist/components/prose/ProseBr.d.vue.ts +2 -0
  8. package/dist/components/prose/ProseCode.d.vue.ts +19 -0
  9. package/dist/components/prose/ProseDetails.d.vue.ts +23 -0
  10. package/dist/components/prose/ProseH1.d.vue.ts +22 -0
  11. package/dist/components/prose/ProseH2.d.vue.ts +22 -0
  12. package/dist/components/prose/ProseH3.d.vue.ts +22 -0
  13. package/dist/components/prose/ProseH4.d.vue.ts +22 -0
  14. package/dist/components/prose/ProseH5.d.vue.ts +22 -0
  15. package/dist/components/prose/ProseH6.d.vue.ts +22 -0
  16. package/dist/components/prose/ProseHr.d.vue.ts +2 -0
  17. package/dist/components/prose/ProseOl.d.vue.ts +19 -0
  18. package/dist/components/prose/ProseP.d.vue.ts +19 -0
  19. package/dist/components/prose/ProsePre.d.vue.ts +49 -0
  20. package/dist/components/prose/ProseSummary.d.vue.ts +19 -0
  21. package/dist/components/prose/ProseTable.d.vue.ts +25 -0
  22. package/dist/components/prose/ProseTbody.d.vue.ts +19 -0
  23. package/dist/components/prose/ProseThead.d.vue.ts +19 -0
  24. package/dist/components/prose/ProseUl.d.vue.ts +19 -0
  25. package/dist/components/prose/utils.d.ts +20 -0
  26. package/dist/index.d.ts +21 -0
  27. package/dist/index.js +285 -0
  28. package/dist/node-B8w0U_XJ.js +1172 -0
  29. package/dist/runtime-C6LZeuX2.js +17896 -0
  30. package/dist/style.css +2 -0
  31. package/package.json +51 -0
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ id?: string;
3
+ };
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: Readonly<{
7
+ default(): unknown;
8
+ }> & {
9
+ default(): unknown;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ id?: string;
3
+ };
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: Readonly<{
7
+ default(): unknown;
8
+ }> & {
9
+ default(): unknown;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ id?: string;
3
+ };
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: Readonly<{
7
+ default(): unknown;
8
+ }> & {
9
+ default(): unknown;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ id?: string;
3
+ };
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: Readonly<{
7
+ default(): unknown;
8
+ }> & {
9
+ default(): unknown;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,19 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Readonly<{
4
+ default(): unknown;
5
+ }> & {
6
+ default(): unknown;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLOListElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, HTMLOListElement>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,19 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Readonly<{
4
+ default(): unknown;
5
+ }> & {
6
+ default(): unknown;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLParagraphElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, HTMLParagraphElement>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,49 @@
1
+ type __VLS_Props = {
2
+ /**
3
+ * Raw code snippet.
4
+ */
5
+ code?: string;
6
+ /**
7
+ * Code language
8
+ *
9
+ * @example js, ts, html, css, etc.
10
+ */
11
+ language?: string;
12
+ /**
13
+ * Filename.
14
+ */
15
+ filename?: string;
16
+ /**
17
+ * Highlighted code line numbers.
18
+ */
19
+ highlights?: number[];
20
+ meta?: string;
21
+ class?: string;
22
+ };
23
+ declare function __VLS_template(): {
24
+ attrs: Partial<{}>;
25
+ slots: Readonly<{
26
+ /**
27
+ * Renderer code snippet.
28
+ */
29
+ default(): unknown;
30
+ }> & {
31
+ /**
32
+ * Renderer code snippet.
33
+ */
34
+ default(): unknown;
35
+ };
36
+ refs: {};
37
+ rootEl: any;
38
+ };
39
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
40
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
41
+ code: string;
42
+ }, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
43
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
+ export default _default;
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1,19 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Readonly<{
4
+ default(): unknown;
5
+ }> & {
6
+ default(): unknown;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,25 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Readonly<{
4
+ default(): unknown;
5
+ }> & {
6
+ default(): unknown;
7
+ };
8
+ refs: {
9
+ head: HTMLTemplateElement;
10
+ body: HTMLTemplateElement;
11
+ };
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {
16
+ head: HTMLTemplateElement;
17
+ body: HTMLTemplateElement;
18
+ }, HTMLDivElement>;
19
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,19 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Readonly<{
4
+ default(): unknown;
5
+ }> & {
6
+ default(): unknown;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,19 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Readonly<{
4
+ default(): unknown;
5
+ }> & {
6
+ default(): unknown;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,19 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Readonly<{
4
+ default(): unknown;
5
+ }> & {
6
+ default(): unknown;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLUListElement;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue', { with: { "resolution-mode": "import" } }).DefineComponent<{}, {}, {}, {}, {}, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import('vue', { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import('vue', { with: { "resolution-mode": "import" } }).PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue', { with: { "resolution-mode": "import" } }).ComponentProvideOptions, true, {}, HTMLUListElement>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,20 @@
1
+ import { InjectionKey, TemplateRef } from 'vue';
2
+ export declare const PROSE_TABLE_INJECTION_KEY: InjectionKey<{
3
+ /**
4
+ * Vue template ref for the table head (`<thead>`) element.
5
+ * Should be used by the `ProseThead` to teleport the head content to the `ProseTable`.
6
+ */
7
+ headRef: TemplateRef;
8
+ /**
9
+ * Vue template ref for the table body (`<tbody>`) element.
10
+ * Should be used by the `ProseTbody` to teleport the head content to the `ProseTable`.
11
+ */
12
+ bodyRef: TemplateRef;
13
+ }>;
14
+ export declare const PROSE_DETAILS_INJECTION_KEY: InjectionKey<{
15
+ /**
16
+ * Vue template ref for the details / accordion header.
17
+ * Should be used by the `ProseSummary` to teleport the summary content to the `ProseDetails`.
18
+ */
19
+ headerRef: TemplateRef;
20
+ }>;
@@ -0,0 +1,21 @@
1
+ export { default as OnyxMarkdownRenderer } from './components/OnyxMarkdownRenderer/OnyxMarkdownRenderer.vue';
2
+ export * from './components/OnyxMarkdownRenderer/types.js';
3
+ export { default as ProseA } from './components/prose/ProseA.vue';
4
+ export { default as ProseBr } from './components/prose/ProseBr.vue';
5
+ export { default as ProseCode } from './components/prose/ProseCode.vue';
6
+ export { default as ProseDetails } from './components/prose/ProseDetails.vue';
7
+ export { default as ProseH1 } from './components/prose/ProseH1.vue';
8
+ export { default as ProseH2 } from './components/prose/ProseH2.vue';
9
+ export { default as ProseH3 } from './components/prose/ProseH3.vue';
10
+ export { default as ProseH4 } from './components/prose/ProseH4.vue';
11
+ export { default as ProseH5 } from './components/prose/ProseH5.vue';
12
+ export { default as ProseH6 } from './components/prose/ProseH6.vue';
13
+ export { default as ProseHr } from './components/prose/ProseHr.vue';
14
+ export { default as ProseOl } from './components/prose/ProseOl.vue';
15
+ export { default as ProseP } from './components/prose/ProseP.vue';
16
+ export { default as ProsePre } from './components/prose/ProsePre.vue';
17
+ export { default as ProseSummary } from './components/prose/ProseSummary.vue';
18
+ export { default as ProseTable } from './components/prose/ProseTable.vue';
19
+ export { default as ProseTbody } from './components/prose/ProseTbody.vue';
20
+ export { default as ProseThead } from './components/prose/ProseThead.vue';
21
+ export { default as ProseUl } from './components/prose/ProseUl.vue';
package/dist/index.js ADDED
@@ -0,0 +1,285 @@
1
+ import { Suspense as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineAsyncComponent as ee, defineComponent as c, inject as l, mergeProps as u, normalizeClass as d, openBlock as f, provide as p, ref as m, renderSlot as h, toDisplayString as g, unref as _, useAttrs as te, useId as v, useTemplateRef as y, watch as ne, withCtx as b } from "vue";
2
+ import { OnyxAccordion as re, OnyxAccordionItem as ie, OnyxCodeTab as ae, OnyxCodeTabs as oe, OnyxHeadline as x, OnyxLink as S, OnyxSeparator as C, OnyxTable as w, injectI18n as T, isInternalLink as E, useDensity as D } from "sit-onyx";
3
+ //#endregion
4
+ //#region src/components/prose/ProseA.vue
5
+ var O = /* @__PURE__ */ c({
6
+ __name: "ProseA",
7
+ props: {
8
+ href: { default: "" },
9
+ target: {}
10
+ },
11
+ setup(e) {
12
+ let t = e;
13
+ return (e, n) => (f(), r(_(S), u(t, { target: _(E)(t.href) ? t.target : "_blank" }), {
14
+ default: b(() => [h(e.$slots, "default")]),
15
+ _: 3
16
+ }, 16, ["target"]));
17
+ }
18
+ }), k = (e, t) => {
19
+ let n = e.__vccOpts || e;
20
+ for (let [e, r] of t) n[e] = r;
21
+ return n;
22
+ }, se = {}, ce = { "aria-hidden": "true" };
23
+ function A(e, t) {
24
+ return f(), a("br", ce);
25
+ }
26
+ var j = /* @__PURE__ */ k(se, [["render", A], ["__scopeId", "data-v-d52859e7"]]), le = { class: "onyx-text--small" }, M = /* @__PURE__ */ k(/* @__PURE__ */ c({
27
+ __name: "ProseCode",
28
+ setup(e) {
29
+ return (e, t) => (f(), a("code", le, [h(e.$slots, "default", {}, void 0, !0)]));
30
+ }
31
+ }), [["__scopeId", "data-v-3d53c5e9"]]), N = Symbol(), P = Symbol(), ue = { class: "header" }, F = { class: "header__placeholder" }, I = {
32
+ ref: "header",
33
+ class: "header__content"
34
+ }, L = /* @__PURE__ */ k(/* @__PURE__ */ c({
35
+ __name: "ProseDetails",
36
+ setup(e) {
37
+ let { t } = T(), n = v();
38
+ return p(P, { headerRef: y("header") }), (e, i) => (f(), r(_(re), {
39
+ class: "accordion",
40
+ type: "card"
41
+ }, {
42
+ default: b(() => [s(_(ie), { value: _(n) }, {
43
+ header: b(() => [o("div", ue, [o("span", F, g(_(t)("accordion.toggle")), 1), o("span", I, null, 512)])]),
44
+ default: b(() => [h(e.$slots, "default", {}, void 0, !0)]),
45
+ _: 3
46
+ }, 8, ["value"])]),
47
+ _: 3
48
+ }));
49
+ }
50
+ }), [["__scopeId", "data-v-4178c16e"]]), R = /* @__PURE__ */ k(/* @__PURE__ */ c({
51
+ __name: "ProseH1",
52
+ props: { id: {} },
53
+ setup(e) {
54
+ let t = e;
55
+ return (e, n) => (f(), r(_(x), {
56
+ is: "h1",
57
+ hash: t.id
58
+ }, {
59
+ default: b(() => [h(e.$slots, "default", {}, void 0, !0)]),
60
+ _: 3
61
+ }, 8, ["hash"]));
62
+ }
63
+ }), [["__scopeId", "data-v-c5760f34"]]), z = /* @__PURE__ */ k(/* @__PURE__ */ c({
64
+ __name: "ProseH2",
65
+ props: { id: {} },
66
+ setup(e) {
67
+ let t = e;
68
+ return (e, n) => (f(), r(_(x), {
69
+ is: "h2",
70
+ hash: t.id
71
+ }, {
72
+ default: b(() => [h(e.$slots, "default", {}, void 0, !0)]),
73
+ _: 3
74
+ }, 8, ["hash"]));
75
+ }
76
+ }), [["__scopeId", "data-v-ca207127"]]), B = /* @__PURE__ */ k(/* @__PURE__ */ c({
77
+ __name: "ProseH3",
78
+ props: { id: {} },
79
+ setup(e) {
80
+ let t = e;
81
+ return (e, n) => (f(), r(_(x), {
82
+ is: "h3",
83
+ hash: t.id
84
+ }, {
85
+ default: b(() => [h(e.$slots, "default", {}, void 0, !0)]),
86
+ _: 3
87
+ }, 8, ["hash"]));
88
+ }
89
+ }), [["__scopeId", "data-v-bd6aac0c"]]), V = /* @__PURE__ */ k(/* @__PURE__ */ c({
90
+ __name: "ProseH4",
91
+ props: { id: {} },
92
+ setup(e) {
93
+ let t = e;
94
+ return (e, n) => (f(), r(_(x), {
95
+ is: "h4",
96
+ hash: t.id
97
+ }, {
98
+ default: b(() => [h(e.$slots, "default", {}, void 0, !0)]),
99
+ _: 3
100
+ }, 8, ["hash"]));
101
+ }
102
+ }), [["__scopeId", "data-v-2fae4049"]]), H = /* @__PURE__ */ k(/* @__PURE__ */ c({
103
+ __name: "ProseH5",
104
+ props: { id: {} },
105
+ setup(e) {
106
+ let t = e;
107
+ return (e, n) => (f(), r(_(x), {
108
+ is: "h5",
109
+ hash: t.id
110
+ }, {
111
+ default: b(() => [h(e.$slots, "default", {}, void 0, !0)]),
112
+ _: 3
113
+ }, 8, ["hash"]));
114
+ }
115
+ }), [["__scopeId", "data-v-be90357a"]]), U = /* @__PURE__ */ k(/* @__PURE__ */ c({
116
+ __name: "ProseH6",
117
+ props: { id: {} },
118
+ setup(e) {
119
+ let t = e;
120
+ return (e, n) => (f(), r(_(x), {
121
+ is: "h6",
122
+ hash: t.id
123
+ }, {
124
+ default: b(() => [h(e.$slots, "default", {}, void 0, !0)]),
125
+ _: 3
126
+ }, 8, ["hash"]));
127
+ }
128
+ }), [["__scopeId", "data-v-e10c9588"]]), W = /* @__PURE__ */ k(/* @__PURE__ */ c({
129
+ __name: "ProseHr",
130
+ setup(e) {
131
+ return (e, t) => (f(), r(_(C), { class: "separator" }));
132
+ }
133
+ }), [["__scopeId", "data-v-88aee9af"]]), G = /* @__PURE__ */ k(/* @__PURE__ */ c({
134
+ __name: "ProseOl",
135
+ setup(e) {
136
+ return (e, t) => (f(), a("ol", null, [h(e.$slots, "default", {}, void 0, !0)]));
137
+ }
138
+ }), [["__scopeId", "data-v-5adc6f71"]]), K = /* @__PURE__ */ k(/* @__PURE__ */ c({
139
+ __name: "ProseP",
140
+ setup(e) {
141
+ return (e, t) => (f(), a("p", null, [h(e.$slots, "default", {}, void 0, !0)]));
142
+ }
143
+ }), [["__scopeId", "data-v-8d5bfaf8"]]), q = "code", J = /* @__PURE__ */ k(/* @__PURE__ */ c({
144
+ __name: "ProsePre",
145
+ props: {
146
+ code: { default: "" },
147
+ language: {},
148
+ filename: {},
149
+ highlights: {},
150
+ meta: {},
151
+ class: {}
152
+ },
153
+ setup(e) {
154
+ let t = e;
155
+ return (e, n) => (f(), r(_(oe), {
156
+ class: "code",
157
+ "model-value": q
158
+ }, {
159
+ default: b(() => [s(_(ae), {
160
+ value: q,
161
+ code: t.code,
162
+ language: t.language,
163
+ label: t.filename
164
+ }, {
165
+ default: b(() => [o("pre", { class: d(t.class) }, [h(e.$slots, "default", {}, void 0, !0)], 2)]),
166
+ _: 3
167
+ }, 8, [
168
+ "code",
169
+ "language",
170
+ "label"
171
+ ])]),
172
+ _: 3
173
+ }));
174
+ }
175
+ }), [["__scopeId", "data-v-2364b0e9"]]), Y = /* @__PURE__ */ c({
176
+ __name: "ProseSummary",
177
+ setup(e) {
178
+ let i = l(P, void 0), a = n(() => i?.headerRef.value);
179
+ return (e, n) => a.value ? (f(), r(t, {
180
+ key: 0,
181
+ to: a.value
182
+ }, [h(e.$slots, "default")], 8, ["to"])) : h(e.$slots, "default", { key: 1 });
183
+ }
184
+ }), X = /* @__PURE__ */ k(/* @__PURE__ */ c({
185
+ __name: "ProseTable",
186
+ setup(e) {
187
+ return p(N, {
188
+ headRef: y("head"),
189
+ bodyRef: y("body")
190
+ }), (e, t) => (f(), r(_(w), {
191
+ class: "table",
192
+ striped: "",
193
+ "with-vertical-borders": ""
194
+ }, {
195
+ head: b(() => [...t[0] ||= []]),
196
+ default: b(() => [h(e.$slots, "default", {}, void 0, !0)]),
197
+ _: 3
198
+ }));
199
+ }
200
+ }), [["__scopeId", "data-v-52d1d2c2"]]), Z = /* @__PURE__ */ c({
201
+ __name: "ProseTbody",
202
+ setup(e) {
203
+ let n = l(N, void 0);
204
+ return (e, i) => _(n)?.bodyRef.value ? (f(), r(t, {
205
+ key: 0,
206
+ to: _(n).bodyRef.value
207
+ }, [h(e.$slots, "default")], 8, ["to"])) : h(e.$slots, "default", { key: 1 });
208
+ }
209
+ }), Q = /* @__PURE__ */ c({
210
+ __name: "ProseThead",
211
+ setup(e) {
212
+ let n = l(N, void 0);
213
+ return (e, i) => _(n)?.headRef.value ? (f(), r(t, {
214
+ key: 0,
215
+ to: _(n).headRef.value
216
+ }, [h(e.$slots, "default")], 8, ["to"])) : h(e.$slots, "default", { key: 1 });
217
+ }
218
+ }), $ = /* @__PURE__ */ k(/* @__PURE__ */ c({
219
+ __name: "ProseUl",
220
+ setup(e) {
221
+ return (e, t) => (f(), a("ul", null, [h(e.$slots, "default", {}, void 0, !0)]));
222
+ }
223
+ }), [["__scopeId", "data-v-17a11577"]]), de = /* @__PURE__ */ c({
224
+ __name: "OnyxMarkdownRenderer",
225
+ props: {
226
+ density: {},
227
+ markdown: {},
228
+ options: {}
229
+ },
230
+ setup(t, { expose: n }) {
231
+ let a = t, { densityClass: o } = D(a), s = m(!1), c = m(), l = async () => {
232
+ let { parseMarkdown: e } = await import("./runtime-C6LZeuX2.js");
233
+ return e;
234
+ }, d = ee(() => import("./MDCRenderer-BiRlLs6r.js"));
235
+ ne(() => a.markdown, async () => {
236
+ s.value = !0;
237
+ try {
238
+ c.value = await (await l())(a.markdown, a.options);
239
+ } finally {
240
+ s.value = !1;
241
+ }
242
+ }, { immediate: !0 });
243
+ let p = {
244
+ a: O,
245
+ br: j,
246
+ code: M,
247
+ details: L,
248
+ h1: R,
249
+ h2: z,
250
+ h3: B,
251
+ h4: V,
252
+ h5: H,
253
+ h6: U,
254
+ hr: W,
255
+ ol: G,
256
+ p: K,
257
+ pre: J,
258
+ summary: Y,
259
+ table: X,
260
+ thead: Q,
261
+ tbody: Z,
262
+ ul: $
263
+ }, g = te();
264
+ return n({ parserResult: c }), (t, n) => (f(), r(e, null, {
265
+ fallback: b(() => [h(t.$slots, "loading")]),
266
+ default: b(() => [s.value ? h(t.$slots, "loading", { key: 0 }) : c.value ? (f(), r(_(d), u({ key: 1 }, _(g), {
267
+ class: [
268
+ "onyx-component",
269
+ "onyx-markdown-renderer",
270
+ _(o)
271
+ ],
272
+ body: c.value.body,
273
+ data: c.value.data,
274
+ components: p
275
+ }), null, 16, [
276
+ "class",
277
+ "body",
278
+ "data"
279
+ ])) : i("", !0)]),
280
+ _: 3
281
+ }));
282
+ }
283
+ });
284
+ //#endregion
285
+ export { de as OnyxMarkdownRenderer, O as ProseA, j as ProseBr, M as ProseCode, L as ProseDetails, R as ProseH1, z as ProseH2, B as ProseH3, V as ProseH4, H as ProseH5, U as ProseH6, W as ProseHr, G as ProseOl, K as ProseP, J as ProsePre, Y as ProseSummary, X as ProseTable, Z as ProseTbody, Q as ProseThead, $ as ProseUl };