allyhub 0.13.0 → 0.15.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.
- package/CHANGELOG.md +14 -0
- package/dist/commands/frames.js +9 -11
- package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +9 -2
- package/dist/node_modules/@allyhub/formats/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +9 -0
- package/dist/node_modules/@allyhub/formats/dist/note-shape.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +39 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +36 -0
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/package.json +1 -1
- package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/markup/markup.json +19 -0
- package/dist/node_modules/@allyhub/text-extension/markup/notes/launch.md +9 -0
- package/dist/node_modules/@allyhub/text-extension/package.json +64 -0
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +12 -12
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-D70jg8mE.js → abnfDiagram-WEYOIA3C-BHI0AbUY.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-CrXS3E8e.js → architecture-WOLXFQ4H-BMQS-OKZ.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-JrBljCOx.js → architectureDiagram-ZHVYKT53-DZp9CM6P.js} +1 -1
- package/editor-web/assets/{article-BWrfVMRA.js → article-C_mBG5a1.js} +4 -4
- package/editor-web/assets/{article-hxHjqzV1.js → article-DWBxNvX0.js} +2 -2
- package/editor-web/assets/{blockDiagram-RJAE7QA3-BzfC1xTS.js → blockDiagram-RJAE7QA3-h6LWaev4.js} +1 -1
- package/editor-web/assets/{textarea-DBwRbOyF.js → browser-C9NP0ZYz.js} +47 -47
- package/editor-web/assets/button-BVQH7zxz.js +41 -0
- package/editor-web/assets/{c4Diagram-XDPPPE54-s2TpXKgH.js → c4Diagram-XDPPPE54-BvSMs7J4.js} +1 -1
- package/editor-web/assets/channel-BFHB0S0f.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-DyE9v6UX.js → chunk-2E7WHVMD-0EJTAmDF.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-CCunMMcT.js → chunk-4EMNKR2T-BeYB4AEY.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-CZgJYrN4.js → chunk-55XCU76K-BPFOPTBe.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-B01FlTFf.js → chunk-7S6XSTFO-CZ2C7ULu.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-latWUvVu.js → chunk-AQDTSKZB-B5RtsZkj.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-BHFiQInN.js → chunk-DSNLSHJZ-_3G4hddj.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-C4hR36ab.js → chunk-HAGFOTED-DO5b4ll2.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-CNrxiD2Q.js → chunk-HNE4Q36P-C6XNI71Q.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-DpyEHKEY.js → chunk-NQOKRVIF-nDCX29rQ.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-SIEJdixh.js → chunk-UHW7PFBP-CRCOiitq.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-CxWnQRxx.js → chunk-VQ5W62QI-hNPKKjCN.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-CbRuCBm6.js → chunk-WQQL4CDK-KlnVtIDc.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Cgu-EQvs.js → chunk-YZO67HFG-B76hDUrM.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-pAl5CV3o.js → chunk-ZAUX2LTX-D9m1N0wI.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-Du5hY-FP.js → chunk-ZCHMQSOR-443euxzo.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-CevU94T6.js → classDiagram-v2-4MYWR3UA-Bbw-8Ons.js} +1 -1
- package/editor-web/assets/{collaborator-C6IJkcGR.js → collaborator-2qfw-8OJ.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-DBHwpMRJ.js → cynefin-EF2NZ3EQ-C4E7TlUr.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-CxUzpjvG.js → cynefinDiagram-WF24UDRP-PBPGa_HS.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-BAJNBDYO.js → dagre-NK4GIZVX-DwXdEtQG.js} +1 -1
- package/editor-web/assets/{diagram-CBK3MWTC-BQW9Fbw-.js → diagram-CBK3MWTC-BE3FwdX7.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-DQBROUfn.js → diagram-I5XIIV2D-BPl2ZY33.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-DEoK31qy.js → diagram-ODIL2UCW-BLVPYSzw.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-BTCa2We1.js → diagram-PFBEJUXE-BVZk62FO.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-DNM8qWC3.js → diagram-RJA3I4VV-Z75LSbxH.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-BcKpED4d.js → diagram-TYUNFSNR-BynGqDAg.js} +1 -1
- package/editor-web/assets/{dist-RkxskWGK.js → dist--ijXGgvi.js} +4 -4
- package/editor-web/assets/dist-BrGYx10E.js +2 -0
- package/editor-web/assets/{dist-Dpet39Yp.js → dist-C-yi9AAi.js} +27 -27
- package/editor-web/assets/dist-CIQUbiAd.js +38 -0
- package/editor-web/assets/{dist-BSPs7tZR.js → dist-Ch34PllS.js} +1 -1
- package/editor-web/assets/dist-CxlIyluY.js +43 -0
- package/editor-web/assets/{dist-DMZ1VHPK.js → dist-D9N4Fxqr.js} +1 -1
- package/editor-web/assets/dist-DWKEqAou.js +6 -0
- package/editor-web/assets/{dist-aANR6S2I.js → dist-DX0VLTRV.js} +3 -3
- package/editor-web/assets/dist-D_xVYGnk.js +45 -0
- package/editor-web/assets/dist-Nc_h0Jye.js +4 -0
- package/editor-web/assets/dist-UG2TIZxP.js +16 -0
- package/editor-web/assets/dist-VP4ECMOk.js +1 -0
- package/editor-web/assets/dist-cUeSwqws.js +1 -0
- package/editor-web/assets/dist-xpAaABxb.js +24 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-D-1x27Eh.js → ebnfDiagram-V4P3TTPT-SwhqbeK4.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BJSCxiTH.js → elk-QONTBCTQ-Bb1GSt2Z.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-C7Q357iD.js → erDiagram-KYQIGQAA-qUy0NDKn.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-kXrQLSF5.js → eventmodeling-K75KTNOO-BYBYso_j.js} +1 -1
- package/editor-web/assets/file-exclamation-point-C_fX4fpI.js +1 -0
- package/editor-web/assets/flowDiagram-IUGLLWBU-BSCBBtP3.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-Bt3SRgK7.js → ganttDiagram-R7GPNTJY-Cw-BkZT8.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-DS4CkhfK.js → gitGraph-VSP46ZUC-CTXzWPq_.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BgfmSVdI.js → gitGraphDiagram-PDYL7XHY-Jd9HU3WA.js} +1 -1
- package/editor-web/assets/{hint-BmRKl2nL.js → hint-mQB8slJ2.js} +1 -1
- package/editor-web/assets/index-Br4a-QEv.css +2 -0
- package/editor-web/assets/index-CglHrLRS.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-BZjctF3x.js → info-OHQRW6UA-C4oj5BpF.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-BAp5oUXk.js → infoDiagram-MVDRKAX5-D09aYJ28.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-DGL7ZfUu.js → ishikawaDiagram-HPEHV2GE-BEdXoXb2.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-DOOoBGx-.js → journeyDiagram-BOSHW7O7-DE-_0aww.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-lbLuUiMW.js → kanban-definition-FNSA4HC5-Cn3_bvPS.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-RkCFmJcg.js → mermaid-parser.core-BK52JMZH.js} +3 -3
- package/editor-web/assets/{mermaid.core-BVUl-afX.js → mermaid.core-CmfBU89G.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-C3DC4T1J.js → mindmap-definition-6OY57UG3-CtUhkv9I.js} +1 -1
- package/editor-web/assets/{packet-JDAUHWVQ-Bkd6YpX8.js → packet-JDAUHWVQ-C7nciBNp.js} +1 -1
- package/editor-web/assets/pdf-BHx8b9rl.js +54 -0
- package/editor-web/assets/pdf.worker.min-CjEcRF4W.mjs +28 -0
- package/editor-web/assets/pdf.worker.min-DI4FfYVf.js +1 -0
- package/editor-web/assets/{pegDiagram-ECIUJNBX-B5Seh4Oe.js → pegDiagram-ECIUJNBX-DUkbAcTs.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BNbb4Q8k.js → pie-XZMESJXO-BIGyKhav.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-_hnbUloZ.js → pieDiagram-GNMPY74T-DrYj-JeG.js} +1 -1
- package/editor-web/assets/{progress-D6wSFdpY.js → progress-udl4pNsP.js} +1 -1
- package/editor-web/assets/{props-form-BfwEi6jW.js → props-form-DrZYDmSM.js} +1 -1
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-1rbqW-KO.js → quadrantDiagram-D57K4MC3-qkBoh1ep.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-BWSnhBSp.js → radar-ABXABTNO-BkJmvR6a.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BNB-OKs1.js → railroad-I3PHUGI6-BFH-ip4B.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-BKgidf_B.js → railroad-abnf-LNEFI6M7-BBlzHL6Z.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-CNCnxtHp.js → railroad-ebnf-DWYD2UWJ-CCVsG0ui.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-CyBW6_0o.js → railroad-peg-JR7BVNR7-Puo7BFPl.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-Cud3SJ7O.js → railroadDiagram-Y72NRBL7-DCwfkv35.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-BrSCcpqV.js → requirementDiagram-EQYSW5RA-DSTcDj32.js} +1 -1
- package/editor-web/assets/{row-VwyPfa1b.js → row-dgHEAE7h.js} +1 -1
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-rJV4dJFn.js → sankeyDiagram-SY24JHO5-Kqq4fCvG.js} +1 -1
- package/editor-web/assets/schemas-B89k2jEC.js +1 -0
- package/editor-web/assets/scissors-BURkYWPv.js +1 -0
- package/editor-web/assets/search-jKDvFIEU.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-CEUuD2n6.js → sequenceDiagram-BLEHNHQU-B1uodEgL.js} +1 -1
- package/editor-web/assets/{session-DE0fvAcs.js → session-CUCSWPTE.js} +1 -1
- package/editor-web/assets/{slides-BgacyjJW.js → slides-BdaWgL_N.js} +1 -1
- package/editor-web/assets/{snapshots-D8TtZp1x.js → snapshots-CTS2iez5.js} +1 -1
- package/editor-web/assets/{split-Cx2MMnC_.js → split-Cu0fidVK.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-BRE_C2he.js → stateDiagram-v2-A6IESKWZ-B6gG3vUm.js} +1 -1
- package/editor-web/assets/surface-D9qJjJQL.js +1 -0
- package/editor-web/assets/swatch-S8YuBYyj.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-BEPqWgVe.js → swimlanes-B3ENRKFQ-CZayRtvU.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B9tLTrym.js +8 -0
- package/editor-web/assets/{switch-DaG6OuAi.js → switch-D5kPl2jO.js} +1 -1
- package/editor-web/assets/syntax-DSsHrzWF.js +1 -0
- package/editor-web/assets/{syntax-CLaCSmoi.js → syntax-PERQ2szW.js} +1 -1
- package/editor-web/assets/tabs-B_K0Db1I.js +1 -0
- package/editor-web/assets/textarea-mzr9Kfuf.js +1 -0
- package/editor-web/assets/{timeline-definition-JXYKGLGB-p8Qeg4pS.js → timeline-definition-JXYKGLGB-5YoY8Xhw.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-C9FTdXKq.js → treeView-D4JQ5SDB-Brd_NUPx.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-XAeLVOtI.js → treemap-SAJKECNS-DmfdnlWl.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-BV3AMRuH.js → usecaseDiagram-WPOLBNNX-lcAkMviI.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CJdKcYyA.js → vennDiagram-Q3Y3IDCW-DY_n48hQ.js} +1 -1
- package/editor-web/assets/{video-He8p6dr6.js → video-Bv3rETBU.js} +1 -1
- package/editor-web/assets/w3c-keyname-BOAvb0qz.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-DZh6Mf22.js → wardley-7MLQ67FV-DzIFSBQz.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-XtvKSX-m.js → wardleyDiagram-IVAIDKWA-CsXNajIg.js} +1 -1
- package/editor-web/assets/whole-word-6DliXke2.js +1 -0
- package/editor-web/assets/{words-CjW-1tZI.js → words-BTRrBFUo.js} +1 -1
- package/editor-web/assets/{words-CPHp_0tt.js → words-ll_94CD2.js} +1 -1
- package/editor-web/assets/{xychartDiagram-4URNHDU4-CGkL42sz.js → xychartDiagram-4URNHDU4-DDpGFEum.js} +1 -1
- package/editor-web/index.html +4 -4
- package/package.json +2 -8
- package/dist/commands/frames/report.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/build.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/check.js +0 -3
- package/dist/node_modules/@allyhub/report-extension/dist/cli/find.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +0 -5
- package/dist/node_modules/@allyhub/report-extension/dist/cli/picture.js +0 -30
- package/dist/node_modules/@allyhub/report-extension/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/inline.js +0 -58
- package/dist/node_modules/@allyhub/report-extension/dist/page.js +0 -21
- package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +0 -21
- package/dist/node_modules/@allyhub/report-extension/dist/styles.js +0 -5
- package/dist/node_modules/@allyhub/report-extension/dist/theme.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/tools.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +0 -2
- package/dist/node_modules/@allyhub/report-extension/package.json +0 -182
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +0 -139
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.css +0 -109
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +0 -17
- package/dist/node_modules/@allyhub/report-extension/styles/allyhub/tokens.js +0 -40
- package/editor-web/assets/button-EftXSfev.js +0 -41
- package/editor-web/assets/channel-BFbXY6R0.js +0 -1
- package/editor-web/assets/dist-90dg0B0d.js +0 -2
- package/editor-web/assets/dist-CP9XwbBS.js +0 -45
- package/editor-web/assets/dist-CRxtC7DG.js +0 -24
- package/editor-web/assets/dist-Cmnq14RO.js +0 -6
- package/editor-web/assets/dist-CrZwqOm2.js +0 -1
- package/editor-web/assets/dist-CzUWTcvC.js +0 -38
- package/editor-web/assets/dist-DYnXIW8F.js +0 -16
- package/editor-web/assets/dist-Dre4Cwpz.js +0 -1
- package/editor-web/assets/dist-qSuFWuVB.js +0 -4
- package/editor-web/assets/flowDiagram-IUGLLWBU-GSC4btef.js +0 -1
- package/editor-web/assets/index-D8qc_ipi.js +0 -28
- package/editor-web/assets/index-DDtZpLDF.css +0 -2
- package/editor-web/assets/palette-INFK0Zsr.js +0 -1
- package/editor-web/assets/scissors-D9WmgvNP.js +0 -1
- package/editor-web/assets/swatch-lxK4C8fD.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DAcNszZ6.js +0 -8
- package/editor-web/assets/syntax-9LD8MzGy.js +0 -1
- package/editor-web/assets/tabs-DjhzblAG.js +0 -1
- package/editor-web/assets/trash-2-DrnRa91l.js +0 -1
- /package/dist/node_modules/@allyhub/{report-extension → text-extension}/LICENSE +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./createLucideIcon-REX213UO.js";import{C as t,E as n,S as r,_ as i,b as a,c as o,d as s,f as c,h as l,i as u,k as d,l as f,m as p,o as m,s as h,v as g,x as _}from"./dist-YW8hS4IM.js";import{n as v,t as ee}from"./w3c-keyname-BOAvb0qz.js";var te=e(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),ne=e(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),y=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function b(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var x=(e,n,i)=>{let a=b(e,i);if(!a)return!1;let o=T(a);if(!o){let t=a.blockRange(),i=t&&r(t);return i!=null&&(n&&n(e.tr.lift(t,i).scrollIntoView()),!0)}let s=o.nodeBefore;if(N(e,o,n,-1))return!0;if(a.parent.content.size==0&&(C(s,`end`)||m.isSelectable(s)))for(let r=a.depth;;r--){let i=t(e.doc,a.before(r),a.after(r),d.empty);if(i&&i.slice.size<i.to-i.from){if(n){let t=e.tr.step(i);t.setSelection(C(s,`end`)?f.findFrom(t.doc.resolve(t.mapping.map(o.pos,-1)),-1):m.create(t.doc,o.pos-s.nodeSize)),n(t.scrollIntoView())}return!0}if(r==1||a.node(r-1).childCount>1)break}return s.isAtom&&o.depth==a.depth-1?(n&&n(e.tr.delete(o.pos-s.nodeSize,o.pos).scrollIntoView()),!0):!1},re=(e,t,n)=>{let r=b(e,n);if(!r)return!1;let i=T(r);return i?S(e,i,t):!1},ie=(e,t,n)=>{let r=E(e,n);if(!r)return!1;let i=D(r);return i?S(e,i,t):!1};function S(e,n,r){let i=n.nodeBefore,a=n.pos-1;for(;!i.isTextblock;a--){if(i.type.spec.isolating)return!1;let e=i.lastChild;if(!e)return!1;i=e}let o=n.nodeAfter,c=n.pos+1;for(;!o.isTextblock;c++){if(o.type.spec.isolating)return!1;let e=o.firstChild;if(!e)return!1;o=e}let u=t(e.doc,a,c,d.empty);if(!u||u.from!=a||u instanceof l&&u.slice.size>=c-a)return!1;if(r){let t=e.tr.step(u);t.setSelection(s.create(t.doc,a)),r(t.scrollIntoView())}return!0}function C(e,t,n=!1){for(let r=e;r;r=t==`start`?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var w=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`backward`,e):r.parentOffset>0)return!1;a=T(r)}let o=a&&a.nodeBefore;return!o||!m.isSelectable(o)?!1:(t&&t(e.tr.setSelection(m.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function T(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function E(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var ae=(e,n,r)=>{let i=E(e,r);if(!i)return!1;let a=D(i);if(!a)return!1;let o=a.nodeAfter;if(N(e,a,n,1))return!0;if(i.parent.content.size==0&&(C(o,`start`)||m.isSelectable(o))){let r=t(e.doc,i.before(),i.after(),d.empty);if(r&&r.slice.size<r.to-r.from){if(n){let t=e.tr.step(r);t.setSelection(C(o,`start`)?f.findFrom(t.doc.resolve(t.mapping.map(a.pos)),1):m.create(t.doc,t.mapping.map(a.pos))),n(t.scrollIntoView())}return!0}}return o.isAtom&&a.depth==i.depth-1?(n&&n(e.tr.delete(a.pos,a.pos+o.nodeSize).scrollIntoView()),!0):!1},oe=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=D(r)}let o=a&&a.nodeAfter;return!o||!m.isSelectable(o)?!1:(t&&t(e.tr.setSelection(m.create(e.doc,a.pos)).scrollIntoView()),!0)};function D(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var se=(e,t)=>{let n=e.selection,r=n instanceof m,a;if(r){if(n.node.isTextblock||!i(e.doc,n.from))return!1;a=n.from}else if(a=_(e.doc,n.from,-1),a==null)return!1;if(t){let n=e.tr.join(a);r&&n.setSelection(m.create(n.doc,a-e.doc.resolve(a).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},ce=(e,t)=>{let n=e.selection,r;if(n instanceof m){if(n.node.isTextblock||!i(e.doc,n.to))return!1;r=n.to}else if(r=_(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},le=(e,t)=>{let{$from:n,$to:i}=e.selection,a=n.blockRange(i),o=a&&r(a);return o!=null&&(t&&t(e.tr.lift(a,o).scrollIntoView()),!0)},O=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
|
|
2
|
+
`).scrollIntoView()),!0)};function k(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var A=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=k(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,o.createAndFill());i.setSelection(f.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},j=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof u||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=k(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(n,a.createAndFill());o.setSelection(s.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},M=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(g(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let i=n.blockRange(),a=i&&r(i);return a!=null&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)};function ue(e){return(t,n)=>{if(t.selection instanceof m&&t.selection.node.isBlock){let{$from:e}=t.selection;return!e.parentOffset||!g(t.doc,e.pos)?!1:(n&&n(t.tr.split(e.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof s||t.selection instanceof u)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,o=[],c,l,d=!1,f=!1;for(let t=i.depth;;t--)if(i.node(t).isBlock){d=i.end(t)==i.pos+(i.depth-t),f=i.start(t)==i.pos-(i.depth-t),l=k(i.node(t-1).contentMatchAt(i.indexAfter(t-1)));let n=e&&e(i.parent,d,i);o.unshift(n||(d&&l?{type:l}:null)),c=t;break}else{if(t==1)return!1;o.unshift(null)}let p=i.pos,h=g(r.doc,p,o.length,o);if(h||=(o[0]=l?{type:l}:null,g(r.doc,p,o.length,o)),!h)return!1;if(r.split(p,o.length,o),!d&&f&&i.node(c).type!=l){let e=r.mapping.slice(a),t=e.map(i.before(c)),n=r.doc.resolve(t);l&&i.node(c-1).canReplaceWith(n.index(),n.index()+1,l)&&r.setNodeMarkup(e.map(i.before(c)),l)}return n&&n(r.scrollIntoView()),!0}}var de=ue(),fe=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a!=0&&(i=n.before(a),t&&t(e.tr.setSelection(m.create(e.doc,i))),!0)},pe=(e,t)=>(t&&t(e.tr.setSelection(new u(e.doc))),!0);function me(e,t,n){let r=t.nodeBefore,a=t.nodeAfter,o=t.index();return!r||!a||!r.type.compatibleContent(a.type)?!1:!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(a.isTextblock||i(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function N(e,t,a,o){let s=t.nodeBefore,c=t.nodeAfter,l,u,m=s.type.spec.isolating||c.type.spec.isolating;if(!m&&me(e,t,a))return!0;let h=!m&&t.parent.canReplace(t.index(),t.index()+1);if(h&&(l=(u=s.contentMatchAt(s.childCount)).findWrapping(c.type))&&u.matchType(l[0]||c.type).validEnd){if(a){let r=t.pos+c.nodeSize,o=n.empty;for(let e=l.length-1;e>=0;e--)o=n.from(l[e].create(null,o));o=n.from(s.copy(o));let u=e.tr.step(new p(t.pos-1,r,t.pos,r,new d(o,1,0),l.length,!0)),f=u.doc.resolve(r+2*l.length);f.nodeAfter&&f.nodeAfter.type==s.type&&i(u.doc,f.pos)&&u.join(f.pos),a(u.scrollIntoView())}return!0}let g=c.type.spec.isolating||o>0&&m?null:f.findFrom(t,1),_=g&&g.$from.blockRange(g.$to),v=_&&r(_);if(v!=null&&v>=t.depth)return a&&a(e.tr.lift(_,v).scrollIntoView()),!0;if(h&&C(c,`start`,!0)&&C(s,`end`)){let r=s,i=[];for(;i.push(r),!r.isTextblock;)r=r.lastChild;let o=c,l=1;for(;!o.isTextblock;o=o.firstChild)l++;if(r.canReplace(r.childCount,r.childCount,o.content)){if(a){let r=n.empty;for(let e=i.length-1;e>=0;e--)r=n.from(i[e].copy(r));a(e.tr.step(new p(t.pos-i.length,t.pos+c.nodeSize,t.pos+l,t.pos+c.nodeSize-l,new d(r,i.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function P(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(s.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var F=P(-1),I=P(1);function he(e,t=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o),c=s&&a(s,e,t);return c?(r&&r(n.tr.wrap(s,c).scrollIntoView()),!0):!1}}function ge(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];n.doc.nodesBetween(a,o,(r,a)=>{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t)){if(r.type==e)i=!0;else{let t=n.doc.resolve(a),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];i.setBlockType(a,o,e,t)}r(i.scrollIntoView())}return!0}}function L(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var R=L(y,x,w),z=L(y,ae,oe),B={Enter:L(O,j,M,de),"Mod-Enter":A,Backspace:R,"Mod-Backspace":R,"Shift-Backspace":R,Delete:z,"Mod-Delete":z,"Mod-a":pe},V={"Ctrl-h":B.Backspace,"Alt-Backspace":B[`Mod-Backspace`],"Ctrl-d":B.Delete,"Ctrl-Alt-Backspace":B[`Mod-Delete`],"Alt-Delete":B[`Mod-Delete`],"Alt-d":B[`Mod-Delete`],"Ctrl-a":F,"Ctrl-e":I};for(let e in B)V[e]=B[e];var _e=(typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform()==`darwin`)?V:B,ve=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),ye=typeof navigator<`u`&&/Win/.test(navigator.platform);function be(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))ve?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function xe(e){let t=Object.create(null);for(let n in e)t[be(n)]=e[n];return t}function H(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function Se(e){return new h({props:{handleKeyDown:U(e)}})}function U(e){let t=xe(e);return function(e,n){let r=v(n),i,a=t[H(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[H(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(ye&&n.ctrlKey&&n.altKey)&&(i=ee[n.keyCode])&&i!=r){let r=t[H(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var W=200,G=function(){};G.prototype.append=function(e){return e.length?(e=G.from(e),!this.length&&e||e.length<W&&this.leafAppend(e)||this.length<W&&e.leafPrepend(this)||this.appendInner(e)):this},G.prototype.prepend=function(e){return e.length?G.from(e).append(this):this},G.prototype.appendInner=function(e){return new Ce(this,e)},G.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?G.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},G.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},G.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},G.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},G.from=function(e){return e instanceof G?e:e&&e.length?new K(e):G.empty};var K=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return e==0&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(e(this.values[i],r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(e(this.values[i],r+i)===!1)return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=W)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=W)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(G);G.empty=new K([]);var Ce=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&this.left.forEachInner(e,t,Math.min(n,i),r)===!1||n>i&&this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)===!1||n<i&&this.left.forEachInvertedInner(e,Math.min(t,i),n,r)===!1)return!1},t.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(G),we=500,q=class e{constructor(e,t){this.items=e,this.eventCount=t}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,c,l=[],u=[];return this.items.forEach((t,n)=>{if(!t.step)i||(i=this.remapping(r,n+1),a=i.maps.length),a--,u.push(t);else{if(i){u.push(new J(t.map));let e=t.step.map(i.slice(a)),n;e&&o.maybeStep(e).doc&&(n=o.mapping.maps[o.mapping.maps.length-1],l.push(new J(n,void 0,void 0,l.length+u.length))),a--,n&&i.appendMap(n,a)}else o.maybeStep(t.step);if(t.selection)return s=i?t.selection.map(i.slice(a)):t.selection,c=new e(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1}},this.items.length,0),{remaining:c,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,c=!i&&s.length?s.get(s.length-1):null;for(let e=0;e<t.steps.length;e++){let r=t.steps[e].invert(t.docs[e]),l=new J(t.mapping.maps[e],r,n),u;(u=c&&c.merge(l))&&(l=u,e?a.pop():s=s.slice(0,s.length-1)),a.push(l),n&&=(o++,void 0),i||(c=l)}let l=o-r.depth;return l>Ee&&(s=Te(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new c;return this.items.forEach((t,r)=>{let i=t.mirrorOffset!=null&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(t){return this.eventCount==0?this:new e(this.items.append(t.map(e=>new J(e))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;n=Math.min(this.items.length,n);let r=[],i=this.items.length-n,a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},i);let c=n;this.items.forEach(e=>{let n=a.getMirror(--c);if(n==null)return;o=Math.min(o,n);let i=a.maps[n];if(e.step){let o=t.steps[n].invert(t.docs[n]),l=e.selection&&e.selection.map(a.slice(c+1,n));l&&s++,r.push(new J(i,o,l))}else r.push(new J(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new J(a.maps[e]));let u=this.items.slice(0,i).append(l).append(r),d=new e(u,s);return d.emptyItemCount()>we&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((e,o)=>{if(o>=t)i.push(e),e.selection&&a++;else if(e.step){let t=e.step.map(n.slice(r)),o=t&&t.getMap();if(r--,o&&n.appendMap(o,r),t){let s=e.selection&&e.selection.map(n.slice(r));s&&a++;let c=new J(o.invert(),t,s),l,u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else e.map&&r--},this.items.length,0),new e(G.from(i.reverse()),a)}};q.empty=new q(G.empty,0);function Te(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var J=class e{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}},Y=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},Ee=20;function De(e,t,n,r){let i=n.getMeta($),a;if(i)return i.historyState;n.getMeta(Ne)&&(e=new Y(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta($))return o.getMeta($).redo?new Y(e.done.addTransform(n,void 0,r,Q(t)),e.undone,ke(n.mapping.maps),e.prevTime,e.prevComposition):new Y(e.done,e.undone.addTransform(n,void 0,r,Q(t)),null,e.prevTime,e.prevComposition);if(n.getMeta(`addToHistory`)!==!1&&!(o&&o.getMeta(`addToHistory`)===!1)){let i=n.getMeta(`composition`),a=e.prevTime==0||!o&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!Oe(n,e.prevRanges)),s=o?X(e.prevRanges,n.mapping):ke(n.mapping.maps);return new Y(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,Q(t)),q.empty,s,n.time,i??e.prevComposition)}return(a=n.getMeta(`rebased`))?new Y(e.done.rebased(n,a),e.undone.rebased(n,a),X(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Y(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),X(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function Oe(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}function ke(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function X(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function Ae(e,t,n){let r=Q(t),i=$.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,r);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new Y(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta($,{redo:n,historyState:c})}var Z=!1,je=null;function Q(e){let t=e.plugins;if(je!=t){Z=!1,je=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){Z=!0;break}}return Z}function Me(e){return e.setMeta(Ne,!0)}var $=new o(`history`),Ne=new o(`closeHistory`);function Pe(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new h({key:$,state:{init(){return new Y(q.empty,q.empty,null,0,-1)},apply(t,n,r){return De(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?Ie:n==`historyRedo`?Le:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function Fe(e,t){return(n,r)=>{let i=$.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=Ae(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var Ie=Fe(!1,!0),Le=Fe(!0,!0);function Re(e){return e.getMeta($)!=null}export{I as C,ne as D,he as E,te as O,fe as S,ge as T,le as _,Ie as a,w as b,_e as c,x as d,ce as f,se as g,ie as h,Le as i,j as l,re as m,Pe as n,U as o,ae as p,Re as r,Se as s,Me as t,A as u,M as v,F as w,oe as x,O as y};
|