@datawhale/prosemirror-render 0.0.10 → 0.0.12

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 (45) hide show
  1. package/dist/{AttachmentBlock-u8HLmuS1.cjs → AttachmentBlock-BXCk0hjn.cjs} +1 -1
  2. package/dist/{AttachmentBlock-CV4bIQNR.js → AttachmentBlock-CPpG2dPv.js} +2 -2
  3. package/dist/{AttachmentInline-CiXvLJgR.cjs → AttachmentInline-Bmi7A-PO.cjs} +1 -1
  4. package/dist/{AttachmentInline-DGSYiwrS.js → AttachmentInline-DeqcVAAu.js} +2 -2
  5. package/dist/{AttachmentMenu-DuCu2jWV.js → AttachmentMenu-BlYR8886.js} +1 -1
  6. package/dist/{AttachmentMenu-5CeR8pic.cjs → AttachmentMenu-CqB_XZH_.cjs} +1 -1
  7. package/dist/{Callout-tf3Yg9S0.js → Callout-A58rxjcd.js} +1 -1
  8. package/dist/{Callout-DdgZnqvM.cjs → Callout-D4hGVBL_.cjs} +1 -1
  9. package/dist/{CellOutput-ByX6jmZM.cjs → CellOutput-CgpD9ZVf.cjs} +1 -1
  10. package/dist/{CellOutput-CMALyDYd.js → CellOutput-DDtmytFi.js} +1 -1
  11. package/dist/{CodeBlock--7qFlRWP.cjs → CodeBlock-DYTo0bg9.cjs} +1 -1
  12. package/dist/{CodeBlock-DbEjF_Kw.js → CodeBlock-DzHugjpL.js} +1 -1
  13. package/dist/{FoldBlock-BCk2e21I.js → FoldBlock-CJ3VZP86.js} +1 -1
  14. package/dist/{FoldBlock-BQg9IBMS.cjs → FoldBlock-DuHOT0cm.cjs} +1 -1
  15. package/dist/{Grid-Bovh5nmY.js → Grid-CQMBfo8m.js} +1 -1
  16. package/dist/{Grid-D1kpeK1V.cjs → Grid-wjd8RU78.cjs} +1 -1
  17. package/dist/{IFrame-D75ApJe8.cjs → IFrame-CuNyVByE.cjs} +1 -1
  18. package/dist/{IFrame-DXfrrRuk.js → IFrame-thNWtKGt.js} +1 -1
  19. package/dist/{Image--yswo9C1.js → Image-BpCN7g0S.js} +1 -1
  20. package/dist/{Image-CGZEmHYK.cjs → Image-D6kgI-oO.cjs} +1 -1
  21. package/dist/{MathDisplay-BvE50YWq.js → MathDisplay-BXmKwa-7.js} +1 -1
  22. package/dist/{MathDisplay-CzQ0qRuW.cjs → MathDisplay-Bk51oHnp.cjs} +1 -1
  23. package/dist/{MathInline-G9q6yivs.js → MathInline-BT1QFQpO.js} +1 -1
  24. package/dist/{MathInline-QqoFc5JE.cjs → MathInline-rUQCNe0b.cjs} +1 -1
  25. package/dist/{McChoices-1azqAf-m.js → McChoices-CXvkhpsm.js} +1 -1
  26. package/dist/{McChoices-CfywiCEs.cjs → McChoices-D8svqhmT.cjs} +1 -1
  27. package/dist/{McQuestion-CnCOlxBk.js → McQuestion-BPDceSgZ.js} +1 -1
  28. package/dist/{McQuestion-Ba3qJ-FL.cjs → McQuestion-uwFwxlQo.cjs} +1 -1
  29. package/dist/{McSolution-DDA7Qhyl.js → McSolution-BveHl5G0.js} +1 -1
  30. package/dist/{McSolution-BOHaq8_k.cjs → McSolution-DB6fl73p.cjs} +1 -1
  31. package/dist/{MultipleChoice-DhJ3_sA0.js → MultipleChoice-DNKuX9FK.js} +4 -4
  32. package/dist/{MultipleChoice-v1ID9wsB.cjs → MultipleChoice-DgTOWVtn.cjs} +1 -1
  33. package/dist/{Paragraph-Cbwrf0Ax.cjs → Paragraph-BsBVTwg-.cjs} +1 -1
  34. package/dist/{Paragraph-C3vQjERf.js → Paragraph-NxCCIiIf.js} +1 -1
  35. package/dist/{SlotNode-Cj9OQ-yJ.js → SlotNode-DiKoiDD2.js} +1 -1
  36. package/dist/{SlotNode-D5z9YYAl.cjs → SlotNode-QH4h4XFh.cjs} +1 -1
  37. package/dist/{Text-Df2yJUWR.cjs → Text-Buwy2OVC.cjs} +1 -1
  38. package/dist/{Text-Bcy8ncuu.js → Text-D1jF9H18.js} +1 -1
  39. package/dist/index-ByaYOIDK.cjs +1 -0
  40. package/dist/index-D5y1u4eT.js +186 -0
  41. package/dist/index.cjs.js +1 -1
  42. package/dist/index.es.js +1 -1
  43. package/package.json +1 -1
  44. package/dist/index-DO0f6PZF.js +0 -179
  45. package/dist/index-emRMM6uw.cjs +0 -1
@@ -0,0 +1,186 @@
1
+ import { ref as y, createElementBlock as l, openBlock as a, defineAsyncComponent as k, defineComponent as f, computed as _, resolveComponent as b, createBlock as s, Suspense as v, withCtx as p, resolveDynamicComponent as C, unref as M, mergeProps as B, createCommentVNode as h, Fragment as x, renderList as L, useId as I, provide as d, watch as w } from "vue";
2
+ const R = /* @__PURE__ */ Symbol(), u = y([]), A = /* @__PURE__ */ Symbol(), S = (t) => {
3
+ if (!t)
4
+ return [];
5
+ const o = [], n = (r) => {
6
+ r.type === "image" && o.push(r), r.content && r.content.forEach((c) => n(c));
7
+ };
8
+ return n(t), o;
9
+ }, g = (t, o) => {
10
+ const n = t.__vccOpts || t;
11
+ for (const [r, c] of o)
12
+ n[r] = c;
13
+ return n;
14
+ }, $ = {}, E = { class: "error-wrapper" };
15
+ function H(t, o) {
16
+ return a(), l("div", E, "组件加载失败");
17
+ }
18
+ const N = /* @__PURE__ */ g($, [["render", H], ["__scopeId", "data-v-4fa940a8"]]), T = {};
19
+ function D(t, o) {
20
+ return "loading...";
21
+ }
22
+ const O = /* @__PURE__ */ g(T, [["render", D]]), e = (t, o = {
23
+ loadingComponent: O,
24
+ delay: 200,
25
+ errorComponent: N,
26
+ timeout: 5e3
27
+ }) => k({
28
+ loader: t,
29
+ ...o
30
+ });
31
+ function te(t) {
32
+ if (!t || !t.content)
33
+ return [t];
34
+ const o = [];
35
+ let n = [], r = null;
36
+ return t.content.forEach((c) => {
37
+ if (c.type === "heading" || c.type === "heading") {
38
+ const i = c.attrs?.level;
39
+ r === null && (r = i), i === r && n.length > 0 && (o.push({
40
+ type: "doc",
41
+ content: n
42
+ }), n = []);
43
+ }
44
+ n.push(c);
45
+ }), n.length > 0 && o.push({
46
+ type: "doc",
47
+ content: n
48
+ }), o;
49
+ }
50
+ const q = {
51
+ "attachment-inline": e(() => import("./AttachmentInline-DeqcVAAu.js")),
52
+ "attachment-block": e(() => import("./AttachmentBlock-CPpG2dPv.js"))
53
+ }, K = {
54
+ text: e(() => import("./Text-D1jF9H18.js")),
55
+ paragraph: e(() => import("./Paragraph-NxCCIiIf.js")),
56
+ heading: e(() => import("./Heading-BElRvhGn.js")),
57
+ orderedList: e(() => import("./OrderedList-B8v1gchv.js")),
58
+ bulletList: e(() => import("./BulletList-BQTUD69X.js")),
59
+ listItem: e(() => import("./ListItem-X0T7a_z8.js")),
60
+ horizontalRule: e(() => import("./HorizontalRule-BRG45oT0.js")),
61
+ blockquote: e(() => import("./Blockquote-BamWUQND.js")),
62
+ hardBreak: e(() => import("./HardBreak-B2tFO31P.js"))
63
+ }, P = {
64
+ callout: e(() => import("./Callout-A58rxjcd.js"))
65
+ }, z = {
66
+ codeBlock: e(() => import("./CodeBlock-DzHugjpL.js")),
67
+ cellOutput: e(() => import("./CellOutput-DDtmytFi.js"))
68
+ }, F = {
69
+ foldBlock: e(() => import("./FoldBlock-CJ3VZP86.js"))
70
+ }, Q = {
71
+ grid: e(() => import("./Grid-CQMBfo8m.js"))
72
+ }, V = {
73
+ iframe: e(() => import("./IFrame-thNWtKGt.js"))
74
+ }, j = {
75
+ image: e(() => import("./Image-BpCN7g0S.js"))
76
+ }, G = {
77
+ math_inline: e(() => import("./MathInline-BT1QFQpO.js")),
78
+ math_display: e(() => import("./MathDisplay-BXmKwa-7.js"))
79
+ }, J = {
80
+ multipleChoice: e(() => import("./MultipleChoice-DNKuX9FK.js")),
81
+ mcQuestion: e(() => import("./McQuestion-BPDceSgZ.js")),
82
+ mcChoices: e(() => import("./McChoices-CXvkhpsm.js")),
83
+ mcSolution: e(() => import("./McSolution-BveHl5G0.js"))
84
+ }, U = {
85
+ table: e(() => import("./TableContainer-C9PhNGlz.js")),
86
+ tableHeader: e(() => import("./TableHeader-C7KKz3e1.js")),
87
+ tableRow: e(() => import("./TableRow-OzpVq1qW.js")),
88
+ tableCell: e(() => import("./TableCell-Bp52L368.js"))
89
+ }, W = {
90
+ doc: e(() => import("./Doc-6s4VMDsx.js")),
91
+ slotNode: e(() => import("./SlotNode-DiKoiDD2.js"))
92
+ }, X = {
93
+ ...q,
94
+ // 附件和视频类型
95
+ ...K,
96
+ // 基础类型,包括各种字体样式
97
+ ...P,
98
+ // 高亮块
99
+ ...z,
100
+ // 代码块
101
+ ...F,
102
+ // 折叠块
103
+ ...Q,
104
+ // 分栏
105
+ ...j,
106
+ // 图片
107
+ ...G,
108
+ // 数学公式
109
+ ...J,
110
+ //选择题
111
+ ...U,
112
+ // 表格
113
+ ...W,
114
+ // 容器
115
+ ...V
116
+ // iframe
117
+ }, Y = /* @__PURE__ */ f({
118
+ __name: "TreeRecursive",
119
+ props: {
120
+ node: {}
121
+ },
122
+ setup(t) {
123
+ const o = /* @__PURE__ */ new Set([
124
+ "blockquote",
125
+ "orderedList",
126
+ "bulletList",
127
+ "paragraph",
128
+ "math_display",
129
+ "codeBlock",
130
+ "cellOutput",
131
+ "callout",
132
+ "foldBlock",
133
+ "image",
134
+ "attachment-block",
135
+ "grid",
136
+ "table",
137
+ "iframe",
138
+ "multipleChoice"
139
+ ]), n = _(() => o.has(t.node.type) && t.node.attrs && t.node.attrs["block-id"] ? { "data-block-id": t.node.attrs["block-id"] } : {});
140
+ return (r, c) => {
141
+ const m = b("TreeRecursive", !0);
142
+ return a(), s(v, null, {
143
+ default: p(() => [
144
+ (a(), s(C(M(X)[t.node.type]), B({ node: t.node }, n.value), {
145
+ default: p(() => [
146
+ t.node.content && !(t.node.type in ["foldBlock", "grid", "callout"]) ? (a(!0), l(x, { key: 0 }, L(t.node.content, (i) => (a(), s(m, {
147
+ node: i,
148
+ key: I()
149
+ }, null, 8, ["node"]))), 128)) : h("", !0)
150
+ ]),
151
+ _: 1
152
+ }, 16, ["node"]))
153
+ ]),
154
+ _: 1
155
+ });
156
+ };
157
+ }
158
+ }), Z = { class: "tree-render" }, oe = /* @__PURE__ */ f({
159
+ __name: "TreeRender",
160
+ props: {
161
+ node: {},
162
+ axios: {}
163
+ },
164
+ setup(t) {
165
+ return d(A, u), d(R, t.axios), w(
166
+ () => t.node,
167
+ (o) => {
168
+ u.value = S(o);
169
+ },
170
+ { immediate: !0 }
171
+ ), (o, n) => (a(), l("div", Z, [
172
+ t.node ? (a(), s(Y, {
173
+ key: 0,
174
+ node: t.node
175
+ }, null, 8, ["node"])) : h("", !0)
176
+ ]));
177
+ }
178
+ });
179
+ export {
180
+ g as _,
181
+ R as a,
182
+ Y as b,
183
+ oe as c,
184
+ A as i,
185
+ te as s
186
+ };
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-emRMM6uw.cjs");exports.TreeRender=e._sfc_main$1;exports.splitDocIntoMultiPagesByHeading=e.splitDocIntoMultiPagesByHeading;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-ByaYOIDK.cjs");exports.TreeRender=e._sfc_main$1;exports.splitDocIntoMultiPagesByHeading=e.splitDocIntoMultiPagesByHeading;
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as a, s as o } from "./index-DO0f6PZF.js";
1
+ import { c as a, s as o } from "./index-D5y1u4eT.js";
2
2
  export {
3
3
  a as TreeRender,
4
4
  o as splitDocIntoMultiPagesByHeading
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datawhale/prosemirror-render",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",
@@ -1,179 +0,0 @@
1
- import { ref as g, createElementBlock as s, openBlock as c, defineAsyncComponent as y, defineComponent as d, computed as k, resolveComponent as _, createBlock as i, Suspense as b, withCtx as l, resolveDynamicComponent as C, unref as v, mergeProps as M, createCommentVNode as B, Fragment as x, renderList as A, useId as I, provide as p, watch as w, createVNode as L } from "vue";
2
- const R = /* @__PURE__ */ Symbol(), m = g([]), N = /* @__PURE__ */ Symbol(), S = (t) => {
3
- if (!t)
4
- return [];
5
- const o = [], n = (r) => {
6
- r.type === "image" && o.push(r), r.content && r.content.forEach((a) => n(a));
7
- };
8
- return n(t), o;
9
- }, u = (t, o) => {
10
- const n = t.__vccOpts || t;
11
- for (const [r, a] of o)
12
- n[r] = a;
13
- return n;
14
- }, $ = {}, E = { class: "error-wrapper" };
15
- function T(t, o) {
16
- return c(), s("div", E, "组件加载失败");
17
- }
18
- const D = /* @__PURE__ */ u($, [["render", T], ["__scopeId", "data-v-4fa940a8"]]), O = {};
19
- function q(t, o) {
20
- return "loading...";
21
- }
22
- const H = /* @__PURE__ */ u(O, [["render", q]]), e = (t, o = {
23
- loadingComponent: H,
24
- delay: 200,
25
- errorComponent: D,
26
- timeout: 5e3
27
- }) => y({
28
- loader: t,
29
- ...o
30
- });
31
- function oe(t) {
32
- if (!t || !t.content || !Array.isArray(t.content))
33
- return [t];
34
- const o = [];
35
- let n = [];
36
- return t.content.forEach((r) => {
37
- r.type === "heading" ? (n.length > 0 && o.push({
38
- type: "doc",
39
- content: n
40
- }), n = [r]) : n.push(r);
41
- }), n.length > 0 && o.push({
42
- type: "doc",
43
- content: n
44
- }), o;
45
- }
46
- const K = {
47
- "attachment-inline": e(() => import("./AttachmentInline-DGSYiwrS.js")),
48
- "attachment-block": e(() => import("./AttachmentBlock-CV4bIQNR.js"))
49
- }, P = {
50
- text: e(() => import("./Text-Bcy8ncuu.js")),
51
- paragraph: e(() => import("./Paragraph-C3vQjERf.js")),
52
- heading: e(() => import("./Heading-BElRvhGn.js")),
53
- orderedList: e(() => import("./OrderedList-B8v1gchv.js")),
54
- bulletList: e(() => import("./BulletList-BQTUD69X.js")),
55
- listItem: e(() => import("./ListItem-X0T7a_z8.js")),
56
- horizontalRule: e(() => import("./HorizontalRule-BRG45oT0.js")),
57
- blockquote: e(() => import("./Blockquote-BamWUQND.js")),
58
- hardBreak: e(() => import("./HardBreak-B2tFO31P.js"))
59
- }, V = {
60
- callout: e(() => import("./Callout-tf3Yg9S0.js"))
61
- }, z = {
62
- codeBlock: e(() => import("./CodeBlock-DbEjF_Kw.js")),
63
- cellOutput: e(() => import("./CellOutput-CMALyDYd.js"))
64
- }, F = {
65
- foldBlock: e(() => import("./FoldBlock-BCk2e21I.js"))
66
- }, Q = {
67
- grid: e(() => import("./Grid-Bovh5nmY.js"))
68
- }, j = {
69
- iframe: e(() => import("./IFrame-DXfrrRuk.js"))
70
- }, G = {
71
- image: e(() => import("./Image--yswo9C1.js"))
72
- }, J = {
73
- math_inline: e(() => import("./MathInline-G9q6yivs.js")),
74
- math_display: e(() => import("./MathDisplay-BvE50YWq.js"))
75
- }, U = {
76
- multipleChoice: e(() => import("./MultipleChoice-DhJ3_sA0.js")),
77
- mcQuestion: e(() => import("./McQuestion-CnCOlxBk.js")),
78
- mcChoices: e(() => import("./McChoices-1azqAf-m.js")),
79
- mcSolution: e(() => import("./McSolution-DDA7Qhyl.js"))
80
- }, W = {
81
- table: e(() => import("./TableContainer-C9PhNGlz.js")),
82
- tableHeader: e(() => import("./TableHeader-C7KKz3e1.js")),
83
- tableRow: e(() => import("./TableRow-OzpVq1qW.js")),
84
- tableCell: e(() => import("./TableCell-Bp52L368.js"))
85
- }, X = {
86
- doc: e(() => import("./Doc-6s4VMDsx.js")),
87
- slotNode: e(() => import("./SlotNode-Cj9OQ-yJ.js"))
88
- }, Y = {
89
- ...K,
90
- // 附件和视频类型
91
- ...P,
92
- // 基础类型,包括各种字体样式
93
- ...V,
94
- // 高亮块
95
- ...z,
96
- // 代码块
97
- ...F,
98
- // 折叠块
99
- ...Q,
100
- // 分栏
101
- ...G,
102
- // 图片
103
- ...J,
104
- // 数学公式
105
- ...U,
106
- //选择题
107
- ...W,
108
- // 表格
109
- ...X,
110
- // 容器
111
- ...j
112
- // iframe
113
- }, Z = /* @__PURE__ */ d({
114
- __name: "TreeRecursive",
115
- props: {
116
- node: {}
117
- },
118
- setup(t) {
119
- const o = /* @__PURE__ */ new Set([
120
- "blockquote",
121
- "orderedList",
122
- "bulletList",
123
- "paragraph",
124
- "math_display",
125
- "codeBlock",
126
- "cellOutput",
127
- "callout",
128
- "foldBlock",
129
- "image",
130
- "attachment-block",
131
- "grid",
132
- "table",
133
- "iframe",
134
- "multipleChoice"
135
- ]), n = k(() => o.has(t.node.type) && t.node.attrs && t.node.attrs["block-id"] ? { "data-block-id": t.node.attrs["block-id"] } : {});
136
- return (r, a) => {
137
- const f = _("TreeRecursive", !0);
138
- return c(), i(b, null, {
139
- default: l(() => [
140
- (c(), i(C(v(Y)[t.node.type]), M({ node: t.node }, n.value), {
141
- default: l(() => [
142
- t.node.content && !(t.node.type in ["foldBlock", "grid", "callout"]) ? (c(!0), s(x, { key: 0 }, A(t.node.content, (h) => (c(), i(f, {
143
- node: h,
144
- key: I()
145
- }, null, 8, ["node"]))), 128)) : B("", !0)
146
- ]),
147
- _: 1
148
- }, 16, ["node"]))
149
- ]),
150
- _: 1
151
- });
152
- };
153
- }
154
- }), ee = { class: "tree-render" }, ne = /* @__PURE__ */ d({
155
- __name: "TreeRender",
156
- props: {
157
- node: {},
158
- axios: {}
159
- },
160
- setup(t) {
161
- return p(N, m), p(R, t.axios), w(
162
- () => t.node,
163
- (o) => {
164
- m.value = S(o);
165
- },
166
- { immediate: !0 }
167
- ), (o, n) => (c(), s("div", ee, [
168
- L(Z, { node: t.node }, null, 8, ["node"])
169
- ]));
170
- }
171
- });
172
- export {
173
- u as _,
174
- R as a,
175
- Z as b,
176
- ne as c,
177
- N as i,
178
- oe as s
179
- };
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),a=Symbol(),l=e.ref([]),u=Symbol(),p=t=>{if(!t)return[];const o=[],n=s=>{s.type==="image"&&o.push(s),s.content&&s.content.forEach(i=>n(i))};return n(t),o},c=(t,o)=>{const n=t.__vccOpts||t;for(const[s,i]of o)n[s]=i;return n},v={},f={class:"error-wrapper"};function q(t,o){return e.openBlock(),e.createElementBlock("div",f,"组件加载失败")}const P=c(v,[["render",q],["__scopeId","data-v-4fa940a8"]]),k={};function g(t,o){return"loading..."}const y=c(k,[["render",g]]),r=(t,o={loadingComponent:y,delay:200,errorComponent:P,timeout:5e3})=>e.defineAsyncComponent({loader:t,...o});function _(t){if(!t||!t.content||!Array.isArray(t.content))return[t];const o=[];let n=[];return t.content.forEach(s=>{s.type==="heading"?(n.length>0&&o.push({type:"doc",content:n}),n=[s]):n.push(s)}),n.length>0&&o.push({type:"doc",content:n}),o}const B={"attachment-inline":r(()=>Promise.resolve().then(()=>require("./AttachmentInline-CiXvLJgR.cjs"))),"attachment-block":r(()=>Promise.resolve().then(()=>require("./AttachmentBlock-u8HLmuS1.cjs")))},b={text:r(()=>Promise.resolve().then(()=>require("./Text-Df2yJUWR.cjs"))),paragraph:r(()=>Promise.resolve().then(()=>require("./Paragraph-Cbwrf0Ax.cjs"))),heading:r(()=>Promise.resolve().then(()=>require("./Heading-BUnffIAz.cjs"))),orderedList:r(()=>Promise.resolve().then(()=>require("./OrderedList-DMl3tvwP.cjs"))),bulletList:r(()=>Promise.resolve().then(()=>require("./BulletList-CFjF3U-l.cjs"))),listItem:r(()=>Promise.resolve().then(()=>require("./ListItem-BrjxeGxz.cjs"))),horizontalRule:r(()=>Promise.resolve().then(()=>require("./HorizontalRule-CE09LZGf.cjs"))),blockquote:r(()=>Promise.resolve().then(()=>require("./Blockquote-CQSBFnsu.cjs"))),hardBreak:r(()=>Promise.resolve().then(()=>require("./HardBreak-Dbf5Zg5o.cjs")))},C={callout:r(()=>Promise.resolve().then(()=>require("./Callout-DdgZnqvM.cjs")))},M={codeBlock:r(()=>Promise.resolve().then(()=>require("./CodeBlock--7qFlRWP.cjs"))),cellOutput:r(()=>Promise.resolve().then(()=>require("./CellOutput-ByX6jmZM.cjs")))},x={foldBlock:r(()=>Promise.resolve().then(()=>require("./FoldBlock-BQg9IBMS.cjs")))},I={grid:r(()=>Promise.resolve().then(()=>require("./Grid-D1kpeK1V.cjs")))},w={iframe:r(()=>Promise.resolve().then(()=>require("./IFrame-D75ApJe8.cjs")))},A={image:r(()=>Promise.resolve().then(()=>require("./Image-CGZEmHYK.cjs")))},E={math_inline:r(()=>Promise.resolve().then(()=>require("./MathInline-QqoFc5JE.cjs"))),math_display:r(()=>Promise.resolve().then(()=>require("./MathDisplay-CzQ0qRuW.cjs")))},L={multipleChoice:r(()=>Promise.resolve().then(()=>require("./MultipleChoice-v1ID9wsB.cjs"))),mcQuestion:r(()=>Promise.resolve().then(()=>require("./McQuestion-Ba3qJ-FL.cjs"))),mcChoices:r(()=>Promise.resolve().then(()=>require("./McChoices-CfywiCEs.cjs"))),mcSolution:r(()=>Promise.resolve().then(()=>require("./McSolution-BOHaq8_k.cjs")))},N={table:r(()=>Promise.resolve().then(()=>require("./TableContainer-C5KXY6f7.cjs"))),tableHeader:r(()=>Promise.resolve().then(()=>require("./TableHeader-BTuqvorM.cjs"))),tableRow:r(()=>Promise.resolve().then(()=>require("./TableRow-D4F6AKFt.cjs"))),tableCell:r(()=>Promise.resolve().then(()=>require("./TableCell-BY9gdldc.cjs")))},R={doc:r(()=>Promise.resolve().then(()=>require("./Doc-D2yvlSII.cjs"))),slotNode:r(()=>Promise.resolve().then(()=>require("./SlotNode-D5z9YYAl.cjs")))},$={...B,...b,...C,...M,...x,...I,...A,...E,...L,...N,...R,...w},m=e.defineComponent({__name:"TreeRecursive",props:{node:{}},setup(t){const o=new Set(["blockquote","orderedList","bulletList","paragraph","math_display","codeBlock","cellOutput","callout","foldBlock","image","attachment-block","grid","table","iframe","multipleChoice"]),n=e.computed(()=>o.has(t.node.type)&&t.node.attrs&&t.node.attrs["block-id"]?{"data-block-id":t.node.attrs["block-id"]}:{});return(s,i)=>{const d=e.resolveComponent("TreeRecursive",!0);return e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref($)[t.node.type]),e.mergeProps({node:t.node},n.value),{default:e.withCtx(()=>[t.node.content&&!(t.node.type in["foldBlock","grid","callout"])?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.node.content,h=>(e.openBlock(),e.createBlock(d,{node:h,key:e.useId()},null,8,["node"]))),128)):e.createCommentVNode("",!0)]),_:1},16,["node"]))]),_:1})}}}),S={class:"tree-render"},D=e.defineComponent({__name:"TreeRender",props:{node:{},axios:{}},setup(t){return e.provide(u,l),e.provide(a,t.axios),e.watch(()=>t.node,o=>{l.value=p(o)},{immediate:!0}),(o,n)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(m,{node:t.node},null,8,["node"])]))}});exports._export_sfc=c;exports._sfc_main=m;exports._sfc_main$1=D;exports.axiosKey=a;exports.imageNodesKey=u;exports.splitDocIntoMultiPagesByHeading=_;