@datawhale/prosemirror-render 0.0.6 → 0.0.8

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-BU56Jral.js → AttachmentBlock-CTvDbAcS.js} +2 -2
  2. package/dist/{AttachmentBlock-D4287MIh.cjs → AttachmentBlock-P1jG1cGY.cjs} +1 -1
  3. package/dist/{AttachmentInline-Dpuxwof6.js → AttachmentInline-B7Cj5QJ0.js} +2 -2
  4. package/dist/{AttachmentInline-DjENK-yS.cjs → AttachmentInline-Cr4Zec57.cjs} +1 -1
  5. package/dist/{AttachmentMenu-CGVTP1Yv.js → AttachmentMenu-CM2tOV0z.js} +1 -1
  6. package/dist/{AttachmentMenu-DbbJfEmt.cjs → AttachmentMenu-ChIj7hE3.cjs} +1 -1
  7. package/dist/{Callout-DaFC0yQ4.cjs → Callout-DazLxdGD.cjs} +1 -1
  8. package/dist/{Callout-BXchNfJk.js → Callout-Def3dYjo.js} +1 -1
  9. package/dist/{CellOutput-B7Lb-RKC.cjs → CellOutput-B26_5ev3.cjs} +1 -1
  10. package/dist/{CellOutput-DvijyrkS.js → CellOutput-Dbg8ZL0H.js} +1 -1
  11. package/dist/{CodeBlock-B2ZZtPly.js → CodeBlock-BsqBkTD3.js} +1 -1
  12. package/dist/{CodeBlock-CdWT5lK0.cjs → CodeBlock-D8In7xR8.cjs} +1 -1
  13. package/dist/{FoldBlock-DndxoDsF.js → FoldBlock-B_C9Qoy9.js} +1 -1
  14. package/dist/{FoldBlock-HGN28wvI.cjs → FoldBlock-BuwPwAaK.cjs} +1 -1
  15. package/dist/{Grid-253iqCMF.js → Grid-B79na0-H.js} +1 -1
  16. package/dist/{Grid-xOWRvjRR.cjs → Grid-DvLYfpeG.cjs} +1 -1
  17. package/dist/{IFrame-CY4qkGFL.js → IFrame-BXfWlAkB.js} +1 -1
  18. package/dist/{IFrame-k7fk5enb.cjs → IFrame-ChfURc_t.cjs} +1 -1
  19. package/dist/{Image-DkfpQMVQ.cjs → Image-BAy3DLIi.cjs} +1 -1
  20. package/dist/{Image-R6iVek-9.js → Image-RwlDCWBT.js} +1 -1
  21. package/dist/{MathDisplay-Bimaa4Y6.cjs → MathDisplay-C0esLx5a.cjs} +1 -1
  22. package/dist/{MathDisplay-CEY2k2fV.js → MathDisplay-fiHorxPn.js} +1 -1
  23. package/dist/{MathInline-C3GWYu2n.cjs → MathInline-CnkNthuZ.cjs} +1 -1
  24. package/dist/{MathInline-Bz9Baz68.js → MathInline-gFzVPQ0D.js} +1 -1
  25. package/dist/{McChoices-Cq68UY4X.cjs → McChoices-BDsJqV2C.cjs} +1 -1
  26. package/dist/{McChoices-D3HhRraE.js → McChoices-DDKPec4G.js} +1 -1
  27. package/dist/{McQuestion-BtWjhEnd.js → McQuestion-1efXXh4O.js} +1 -1
  28. package/dist/{McQuestion-D7skHE3m.cjs → McQuestion-CChLZMYt.cjs} +1 -1
  29. package/dist/{McSolution-ytOHw96W.cjs → McSolution-5feP69N7.cjs} +1 -1
  30. package/dist/{McSolution-DiMXYCQt.js → McSolution-XXRJWaYt.js} +1 -1
  31. package/dist/{MultipleChoice-Byg7IpwO.cjs → MultipleChoice-CQ9cbLUg.cjs} +1 -1
  32. package/dist/{MultipleChoice-Cl8wfstN.js → MultipleChoice-DT_c5R8o.js} +4 -4
  33. package/dist/{Paragraph-BipTa7mo.js → Paragraph-CWn5tuOy.js} +1 -1
  34. package/dist/{Paragraph-Bc08aEUA.cjs → Paragraph-nAepKpbl.cjs} +1 -1
  35. package/dist/{SlotNode-Dy-7S7b1.js → SlotNode-BhXyQCzg.js} +1 -1
  36. package/dist/{SlotNode-BBgyADP6.cjs → SlotNode-DqwL4TkF.cjs} +1 -1
  37. package/dist/{Text-DmgJshdk.cjs → Text-CS6RYM2H.cjs} +1 -1
  38. package/dist/{Text-CRiw47FV.js → Text-Nb_IXPkh.js} +1 -1
  39. package/dist/{index-CnHgx6Xd.js → index-CTcnNF6r.js} +24 -23
  40. package/dist/{index-CEnrh8_5.cjs → index-kIuhy4WL.cjs} +1 -1
  41. package/dist/index.cjs.js +1 -1
  42. package/dist/index.es.js +1 -1
  43. package/dist/types/components/collections/utils.d.ts +3 -1
  44. package/dist/types/components/index.d.ts +2 -1
  45. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { ref as g, createElementBlock as s, openBlock as c, defineAsyncComponent as k, defineComponent as d, computed as _, resolveComponent as b, createBlock as i, Suspense as y, withCtx as l, resolveDynamicComponent as C, unref as v, mergeProps as M, createCommentVNode as B, Fragment as x, renderList as w, useId as I, provide as m, watch as L, createVNode as R } from "vue";
1
+ import { ref as g, createElementBlock as s, openBlock as c, defineAsyncComponent as k, defineComponent as d, computed as _, resolveComponent as b, createBlock as i, Suspense as y, withCtx as m, resolveDynamicComponent as C, unref as v, mergeProps as M, createCommentVNode as B, Fragment as x, renderList as w, useId as I, provide as l, watch as L, createVNode as R } from "vue";
2
2
  const A = /* @__PURE__ */ Symbol(), p = g([]), N = /* @__PURE__ */ Symbol(), S = (t) => {
3
3
  const o = [], n = (r) => {
4
4
  r.type === "image" && o.push(r), r.content && r.content.forEach((a) => n(a));
@@ -26,11 +26,11 @@ const K = /* @__PURE__ */ u(q, [["render", D]]), e = (t, o = {
26
26
  loader: t,
27
27
  ...o
28
28
  }), V = {
29
- "attachment-inline": e(() => import("./AttachmentInline-Dpuxwof6.js")),
30
- "attachment-block": e(() => import("./AttachmentBlock-BU56Jral.js"))
29
+ "attachment-inline": e(() => import("./AttachmentInline-B7Cj5QJ0.js")),
30
+ "attachment-block": e(() => import("./AttachmentBlock-CTvDbAcS.js"))
31
31
  }, z = {
32
- text: e(() => import("./Text-CRiw47FV.js")),
33
- paragraph: e(() => import("./Paragraph-BipTa7mo.js")),
32
+ text: e(() => import("./Text-Nb_IXPkh.js")),
33
+ paragraph: e(() => import("./Paragraph-CWn5tuOy.js")),
34
34
  heading: e(() => import("./Heading-BElRvhGn.js")),
35
35
  orderedList: e(() => import("./OrderedList-B8v1gchv.js")),
36
36
  bulletList: e(() => import("./BulletList-BQTUD69X.js")),
@@ -39,26 +39,26 @@ const K = /* @__PURE__ */ u(q, [["render", D]]), e = (t, o = {
39
39
  blockquote: e(() => import("./Blockquote-BamWUQND.js")),
40
40
  hardBreak: e(() => import("./HardBreak-B2tFO31P.js"))
41
41
  }, F = {
42
- callout: e(() => import("./Callout-BXchNfJk.js"))
42
+ callout: e(() => import("./Callout-Def3dYjo.js"))
43
43
  }, H = {
44
- codeBlock: e(() => import("./CodeBlock-B2ZZtPly.js")),
45
- cellOutput: e(() => import("./CellOutput-DvijyrkS.js"))
44
+ codeBlock: e(() => import("./CodeBlock-BsqBkTD3.js")),
45
+ cellOutput: e(() => import("./CellOutput-Dbg8ZL0H.js"))
46
46
  }, P = {
47
- foldBlock: e(() => import("./FoldBlock-DndxoDsF.js"))
47
+ foldBlock: e(() => import("./FoldBlock-B_C9Qoy9.js"))
48
48
  }, Q = {
49
- grid: e(() => import("./Grid-253iqCMF.js"))
49
+ grid: e(() => import("./Grid-B79na0-H.js"))
50
50
  }, j = {
51
- iframe: e(() => import("./IFrame-CY4qkGFL.js"))
51
+ iframe: e(() => import("./IFrame-BXfWlAkB.js"))
52
52
  }, G = {
53
- image: e(() => import("./Image-R6iVek-9.js"))
53
+ image: e(() => import("./Image-RwlDCWBT.js"))
54
54
  }, J = {
55
- math_inline: e(() => import("./MathInline-Bz9Baz68.js")),
56
- math_display: e(() => import("./MathDisplay-CEY2k2fV.js"))
55
+ math_inline: e(() => import("./MathInline-gFzVPQ0D.js")),
56
+ math_display: e(() => import("./MathDisplay-fiHorxPn.js"))
57
57
  }, U = {
58
- multipleChoice: e(() => import("./MultipleChoice-Cl8wfstN.js")),
59
- mcQuestion: e(() => import("./McQuestion-BtWjhEnd.js")),
60
- mcChoices: e(() => import("./McChoices-D3HhRraE.js")),
61
- mcSolution: e(() => import("./McSolution-DiMXYCQt.js"))
58
+ multipleChoice: e(() => import("./MultipleChoice-DT_c5R8o.js")),
59
+ mcQuestion: e(() => import("./McQuestion-1efXXh4O.js")),
60
+ mcChoices: e(() => import("./McChoices-DDKPec4G.js")),
61
+ mcSolution: e(() => import("./McSolution-XXRJWaYt.js"))
62
62
  }, W = {
63
63
  table: e(() => import("./TableContainer-C9PhNGlz.js")),
64
64
  tableHeader: e(() => import("./TableHeader-C7KKz3e1.js")),
@@ -66,7 +66,7 @@ const K = /* @__PURE__ */ u(q, [["render", D]]), e = (t, o = {
66
66
  tableCell: e(() => import("./TableCell-Bp52L368.js"))
67
67
  }, X = {
68
68
  doc: e(() => import("./Doc-6s4VMDsx.js")),
69
- slotNode: e(() => import("./SlotNode-Dy-7S7b1.js"))
69
+ slotNode: e(() => import("./SlotNode-BhXyQCzg.js"))
70
70
  }, Y = {
71
71
  ...V,
72
72
  // 附件和视频类型
@@ -118,9 +118,9 @@ const K = /* @__PURE__ */ u(q, [["render", D]]), e = (t, o = {
118
118
  return (r, a) => {
119
119
  const f = b("TreeRecursive", !0);
120
120
  return c(), i(y, null, {
121
- default: l(() => [
121
+ default: m(() => [
122
122
  (c(), i(C(v(Y)[t.node.type]), M({ node: t.node }, n.value), {
123
- default: l(() => [
123
+ default: m(() => [
124
124
  t.node.content && !(t.node.type in ["foldBlock", "grid", "callout"]) ? (c(!0), s(x, { key: 0 }, w(t.node.content, (h) => (c(), i(f, {
125
125
  node: h,
126
126
  key: I()
@@ -140,11 +140,12 @@ const K = /* @__PURE__ */ u(q, [["render", D]]), e = (t, o = {
140
140
  axios: {}
141
141
  },
142
142
  setup(t) {
143
- return m(N, p), m(A, t.axios), L(
143
+ return l(N, p), l(A, t.axios), L(
144
144
  () => t.node,
145
145
  (o) => {
146
146
  p.value = S(o);
147
- }
147
+ },
148
+ { immediate: !0 }
148
149
  ), (o, n) => (c(), s("div", ee, [
149
150
  R(Z, { node: t.node }, null, 8, ["node"])
150
151
  ]));
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),a=Symbol(),l=e.ref([]),m=Symbol(),p=o=>{const t=[],n=s=>{s.type==="image"&&t.push(s),s.content&&s.content.forEach(i=>n(i))};return n(o),t},c=(o,t)=>{const n=o.__vccOpts||o;for(const[s,i]of t)n[s]=i;return n},v={},f={class:"error-wrapper"};function q(o,t){return e.openBlock(),e.createElementBlock("div",f,"组件加载失败")}const k=c(v,[["render",q],["__scopeId","data-v-4fa940a8"]]),P={};function _(o,t){return"loading..."}const g=c(P,[["render",_]]),r=(o,t={loadingComponent:g,delay:200,errorComponent:k,timeout:5e3})=>e.defineAsyncComponent({loader:o,...t}),y={"attachment-inline":r(()=>Promise.resolve().then(()=>require("./AttachmentInline-DjENK-yS.cjs"))),"attachment-block":r(()=>Promise.resolve().then(()=>require("./AttachmentBlock-D4287MIh.cjs")))},B={text:r(()=>Promise.resolve().then(()=>require("./Text-DmgJshdk.cjs"))),paragraph:r(()=>Promise.resolve().then(()=>require("./Paragraph-Bc08aEUA.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")))},b={callout:r(()=>Promise.resolve().then(()=>require("./Callout-DaFC0yQ4.cjs")))},C={codeBlock:r(()=>Promise.resolve().then(()=>require("./CodeBlock-CdWT5lK0.cjs"))),cellOutput:r(()=>Promise.resolve().then(()=>require("./CellOutput-B7Lb-RKC.cjs")))},x={foldBlock:r(()=>Promise.resolve().then(()=>require("./FoldBlock-HGN28wvI.cjs")))},M={grid:r(()=>Promise.resolve().then(()=>require("./Grid-xOWRvjRR.cjs")))},w={iframe:r(()=>Promise.resolve().then(()=>require("./IFrame-k7fk5enb.cjs")))},I={image:r(()=>Promise.resolve().then(()=>require("./Image-DkfpQMVQ.cjs")))},L={math_inline:r(()=>Promise.resolve().then(()=>require("./MathInline-C3GWYu2n.cjs"))),math_display:r(()=>Promise.resolve().then(()=>require("./MathDisplay-Bimaa4Y6.cjs")))},N={multipleChoice:r(()=>Promise.resolve().then(()=>require("./MultipleChoice-Byg7IpwO.cjs"))),mcQuestion:r(()=>Promise.resolve().then(()=>require("./McQuestion-D7skHE3m.cjs"))),mcChoices:r(()=>Promise.resolve().then(()=>require("./McChoices-Cq68UY4X.cjs"))),mcSolution:r(()=>Promise.resolve().then(()=>require("./McSolution-ytOHw96W.cjs")))},R={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")))},$={doc:r(()=>Promise.resolve().then(()=>require("./Doc-D2yvlSII.cjs"))),slotNode:r(()=>Promise.resolve().then(()=>require("./SlotNode-BBgyADP6.cjs")))},A={...y,...B,...b,...C,...x,...M,...I,...L,...N,...R,...$,...w},u=e.defineComponent({__name:"TreeRecursive",props:{node:{}},setup(o){const t=new Set(["blockquote","orderedList","bulletList","paragraph","math_display","codeBlock","cellOutput","callout","foldBlock","image","attachment-block","grid","table","iframe","multipleChoice"]),n=e.computed(()=>t.has(o.node.type)&&o.node.attrs&&o.node.attrs["block-id"]?{"data-block-id":o.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(A)[o.node.type]),e.mergeProps({node:o.node},n.value),{default:e.withCtx(()=>[o.node.content&&!(o.node.type in["foldBlock","grid","callout"])?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.node.content,h=>(e.openBlock(),e.createBlock(d,{node:h,key:e.useId()},null,8,["node"]))),128)):e.createCommentVNode("",!0)]),_:1},16,["node"]))]),_:1})}}}),E={class:"tree-render"},S=e.defineComponent({__name:"TreeRender",props:{node:{},axios:{}},setup(o){return e.provide(m,l),e.provide(a,o.axios),e.watch(()=>o.node,t=>{l.value=p(t)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(u,{node:o.node},null,8,["node"])]))}});exports._export_sfc=c;exports._sfc_main=u;exports._sfc_main$1=S;exports.axiosKey=a;exports.imageNodesKey=m;
1
+ "use strict";const e=require("vue"),a=Symbol(),l=e.ref([]),m=Symbol(),p=o=>{const t=[],n=s=>{s.type==="image"&&t.push(s),s.content&&s.content.forEach(i=>n(i))};return n(o),t},c=(o,t)=>{const n=o.__vccOpts||o;for(const[s,i]of t)n[s]=i;return n},v={},f={class:"error-wrapper"};function q(o,t){return e.openBlock(),e.createElementBlock("div",f,"组件加载失败")}const k=c(v,[["render",q],["__scopeId","data-v-4fa940a8"]]),P={};function _(o,t){return"loading..."}const g=c(P,[["render",_]]),r=(o,t={loadingComponent:g,delay:200,errorComponent:k,timeout:5e3})=>e.defineAsyncComponent({loader:o,...t}),y={"attachment-inline":r(()=>Promise.resolve().then(()=>require("./AttachmentInline-Cr4Zec57.cjs"))),"attachment-block":r(()=>Promise.resolve().then(()=>require("./AttachmentBlock-P1jG1cGY.cjs")))},B={text:r(()=>Promise.resolve().then(()=>require("./Text-CS6RYM2H.cjs"))),paragraph:r(()=>Promise.resolve().then(()=>require("./Paragraph-nAepKpbl.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")))},b={callout:r(()=>Promise.resolve().then(()=>require("./Callout-DazLxdGD.cjs")))},C={codeBlock:r(()=>Promise.resolve().then(()=>require("./CodeBlock-D8In7xR8.cjs"))),cellOutput:r(()=>Promise.resolve().then(()=>require("./CellOutput-B26_5ev3.cjs")))},x={foldBlock:r(()=>Promise.resolve().then(()=>require("./FoldBlock-BuwPwAaK.cjs")))},M={grid:r(()=>Promise.resolve().then(()=>require("./Grid-DvLYfpeG.cjs")))},w={iframe:r(()=>Promise.resolve().then(()=>require("./IFrame-ChfURc_t.cjs")))},I={image:r(()=>Promise.resolve().then(()=>require("./Image-BAy3DLIi.cjs")))},L={math_inline:r(()=>Promise.resolve().then(()=>require("./MathInline-CnkNthuZ.cjs"))),math_display:r(()=>Promise.resolve().then(()=>require("./MathDisplay-C0esLx5a.cjs")))},N={multipleChoice:r(()=>Promise.resolve().then(()=>require("./MultipleChoice-CQ9cbLUg.cjs"))),mcQuestion:r(()=>Promise.resolve().then(()=>require("./McQuestion-CChLZMYt.cjs"))),mcChoices:r(()=>Promise.resolve().then(()=>require("./McChoices-BDsJqV2C.cjs"))),mcSolution:r(()=>Promise.resolve().then(()=>require("./McSolution-5feP69N7.cjs")))},R={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")))},$={doc:r(()=>Promise.resolve().then(()=>require("./Doc-D2yvlSII.cjs"))),slotNode:r(()=>Promise.resolve().then(()=>require("./SlotNode-DqwL4TkF.cjs")))},A={...y,...B,...b,...C,...x,...M,...I,...L,...N,...R,...$,...w},u=e.defineComponent({__name:"TreeRecursive",props:{node:{}},setup(o){const t=new Set(["blockquote","orderedList","bulletList","paragraph","math_display","codeBlock","cellOutput","callout","foldBlock","image","attachment-block","grid","table","iframe","multipleChoice"]),n=e.computed(()=>t.has(o.node.type)&&o.node.attrs&&o.node.attrs["block-id"]?{"data-block-id":o.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(A)[o.node.type]),e.mergeProps({node:o.node},n.value),{default:e.withCtx(()=>[o.node.content&&!(o.node.type in["foldBlock","grid","callout"])?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.node.content,h=>(e.openBlock(),e.createBlock(d,{node:h,key:e.useId()},null,8,["node"]))),128)):e.createCommentVNode("",!0)]),_:1},16,["node"]))]),_:1})}}}),E={class:"tree-render"},S=e.defineComponent({__name:"TreeRender",props:{node:{},axios:{}},setup(o){return e.provide(m,l),e.provide(a,o.axios),e.watch(()=>o.node,t=>{l.value=p(t)},{immediate:!0}),(t,n)=>(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(u,{node:o.node},null,8,["node"])]))}});exports._export_sfc=c;exports._sfc_main=u;exports._sfc_main$1=S;exports.axiosKey=a;exports.imageNodesKey=m;
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CEnrh8_5.cjs");exports.TreeRender=e._sfc_main$1;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-kIuhy4WL.cjs");exports.TreeRender=e._sfc_main$1;
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as o } from "./index-CnHgx6Xd.js";
1
+ import { c as o } from "./index-CTcnNF6r.js";
2
2
  export {
3
3
  o as TreeRender
4
4
  };
@@ -1,2 +1,4 @@
1
- import { type AsyncComponentOptions } from 'vue';
1
+ import { type AsyncComponentOptions } from "vue";
2
+ import type { PMNode } from "@datawhale/dipwap-types/index";
2
3
  export declare const customDefineAsyncComponent: (loader: () => Promise<any>, options?: Partial<AsyncComponentOptions>) => any;
4
+ export declare function splitDocIntoMultiPagesByHeading(doc: PMNode): PMNode[];
@@ -1 +1,2 @@
1
- export { default as TreeRender } from './TreeRender.vue';
1
+ export { default as TreeRender } from "./TreeRender.vue";
2
+ export { splitDocIntoMultiPagesByHeading } from "./collections/utils";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datawhale/prosemirror-render",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "scripts": {
12
12
  "build": "vite build && vue-tsc -p tsconfig.build.json",
13
- "bump": "npm version patch --no-git-tag-version"
13
+ "bump": "npm run build && npm version patch --no-git-tag-version"
14
14
  },
15
15
  "keywords": [],
16
16
  "author": "",