@aiquants/markdown 12.2.3 → 13.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.
- package/README.md +383 -75
- package/dist/{abnfDiagram-VRR7QNED-DQ52KUbH.js → abnfDiagram-VRR7QNED-B3Q9attM.js} +9 -9
- package/dist/abnfDiagram-VRR7QNED-QW4YM2AY.cjs +1 -0
- package/dist/arc-BBLXr5EU.js +83 -0
- package/dist/arc-Cn8XXgbN.cjs +1 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-Cc9gQRX2.js → architectureDiagram-ZJ3FMSHR-BaSp0hC2.js} +2 -2
- package/dist/architectureDiagram-ZJ3FMSHR-BfmjNYww.cjs +36 -0
- package/dist/{blockDiagram-677ZJIJ3-DIpIE77y.js → blockDiagram-677ZJIJ3-DFcPQ19k.js} +3 -3
- package/dist/{blockDiagram-677ZJIJ3-BCgCtZXM.cjs → blockDiagram-677ZJIJ3-u7d3VCxA.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-jgR25uUP.js → c4Diagram-LMCZKHZV-DW0yo5tR.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-q0iHoZqg.cjs → c4Diagram-LMCZKHZV-nScsMUE3.cjs} +1 -1
- package/dist/{channel-Bw3o-12p.js → channel-B2FBCr9X.js} +1 -1
- package/dist/channel-DlkTPSf_.cjs +1 -0
- package/dist/{chunk-2Q5K7J3B-0amJDSXB.js → chunk-2Q5K7J3B-BkE4Fsuz.js} +1 -1
- package/dist/chunk-2Q5K7J3B-evSha-HP.cjs +1 -0
- package/dist/{chunk-32BRIVSS-BMqTi8UH.js → chunk-32BRIVSS-CqpDiZD2.js} +1 -1
- package/dist/chunk-32BRIVSS-rIw6tBRO.cjs +1 -0
- package/dist/{chunk-5VM5RSS4-C0OtlojA.cjs → chunk-5VM5RSS4-CYVpj2mc.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-EGE3VaH8.js → chunk-5VM5RSS4-DAgNhPcU.js} +1 -1
- package/dist/{chunk-EX3LRPZG-4qSuVZkz.cjs → chunk-EX3LRPZG-Ct2cyGh-.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-wasnZ2h7.js → chunk-EX3LRPZG-QFjD28UF.js} +37 -37
- package/dist/{chunk-JWPE2WC7-O891tu2Q.js → chunk-JWPE2WC7-Bj2m1SXZ.js} +1 -1
- package/dist/chunk-JWPE2WC7-Dgw1ILoe.cjs +1 -0
- package/dist/{chunk-MOJQB5TN-BzuZr6pz.js → chunk-MOJQB5TN-B1fdnpCz.js} +121 -121
- package/dist/{chunk-MOJQB5TN-BSfpWEVd.cjs → chunk-MOJQB5TN-yjlPYCh4.cjs} +3 -3
- package/dist/{chunk-PUDLZKDR-DNbm7Xzd.cjs → chunk-PUDLZKDR-BlQ3qKcC.cjs} +4 -4
- package/dist/{chunk-PUDLZKDR-BRL3efwE.js → chunk-PUDLZKDR-CIcw3cpm.js} +16 -16
- package/dist/chunk-RYQCIY6F-B-V6UOJy.cjs +1 -0
- package/dist/{chunk-RYQCIY6F-DwmsCCiA.js → chunk-RYQCIY6F-DyVk8fNp.js} +1 -1
- package/dist/{chunk-V7JOEXUC-BowEdIo-.cjs → chunk-V7JOEXUC-B1EgagKh.cjs} +3 -3
- package/dist/{chunk-V7JOEXUC-D0oynREN.js → chunk-V7JOEXUC-C776k7_V.js} +5 -5
- package/dist/{chunk-VR4S4FIN-Dg_3SNs1.js → chunk-VR4S4FIN-CyqARa17.js} +3 -3
- package/dist/chunk-VR4S4FIN-Sx71KwIQ.cjs +1 -0
- package/dist/{chunk-XXDRQBXY-Byo5u3b_.js → chunk-XXDRQBXY-B-99Fbs_.js} +3 -3
- package/dist/chunk-XXDRQBXY-BgeRIUG1.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-BLAiuPPL.cjs +1 -0
- package/dist/{classDiagram-v2-EOCWNBFH-CVu4_B8x.js → classDiagram-OUVF2IWQ-DJ0hW16Q.js} +2 -2
- package/dist/classDiagram-v2-EOCWNBFH-BLAiuPPL.cjs +1 -0
- package/dist/{classDiagram-OUVF2IWQ-CVu4_B8x.js → classDiagram-v2-EOCWNBFH-DJ0hW16Q.js} +2 -2
- package/dist/{code-blocks-BWr5Xg1I.js → code-blocks-C6J8rVTc.js} +23 -22
- package/dist/{code-blocks-BdKjppKq.cjs → code-blocks-CTESwslp.cjs} +3 -3
- package/dist/code-blocks.cjs +1 -1
- package/dist/code-blocks.d.ts +1 -0
- package/dist/code-blocks.js +15 -14
- package/dist/components/CopyButton.d.ts +8 -0
- package/dist/components/HostedScrollArea.d.ts +2 -1
- package/dist/components/MarkdownRenderer.d.ts +37 -3
- package/dist/components/MarkdownViewer.d.ts +15 -4
- package/dist/components/MermaidDiagram.d.ts +1 -0
- package/dist/components/ReadingPlaceKeeper.d.ts +32 -0
- package/dist/components/SelectionKeeper.d.ts +38 -0
- package/dist/components/SpreadsheetBlock.d.ts +4 -2
- package/dist/components/blockKeys.d.ts +9 -2
- package/dist/components/blockOffsets.d.ts +3 -0
- package/dist/components/clipboard.d.ts +1 -0
- package/dist/components/codeBlockLabels.d.ts +9 -0
- package/dist/components/cssLength.d.ts +1 -0
- package/dist/components/displayMathLabels.d.ts +11 -0
- package/dist/components/embeds/ClientFrame.d.ts +1 -0
- package/dist/components/embeds/ProviderEmbed.d.ts +2 -1
- package/dist/components/embeds/embedLabels.d.ts +1 -1
- package/dist/components/embeds/linkCardFetch.d.ts +2 -0
- package/dist/components/embeds.d.ts +5 -0
- package/dist/components/headingLevels.d.ts +6 -0
- package/dist/components/htmlNodes.d.ts +2 -0
- package/dist/components/htmlSanitizer.d.ts +15 -2
- package/dist/components/labels.d.ts +3 -2
- package/dist/components/links.d.ts +1 -0
- package/dist/components/mathRendering.d.ts +3 -1
- package/dist/components/mdastNodes/CodeNode.d.ts +5 -1
- package/dist/components/mdastNodes/MathNode.d.ts +6 -5
- package/dist/components/mermaidLabels.d.ts +5 -0
- package/dist/components/mermaidSetup.d.ts +10 -0
- package/dist/components/missingImageLabels.d.ts +2 -0
- package/dist/components/ownPixels.d.ts +4 -0
- package/dist/components/rawHtml.d.ts +7 -3
- package/dist/components/spreadsheetModel.d.ts +1 -0
- package/dist/components/toolbarOverlap.d.ts +4 -1
- package/dist/components/viewerLabels.d.ts +22 -3
- package/dist/components/viewerToolbarStyles.d.ts +2 -0
- package/dist/contentColors.d.ts +21 -0
- package/dist/conversion.d.ts +7 -0
- package/dist/converter/NOTICES.md +6 -6
- package/dist/converter/createMarkdownConverter.d.ts +1 -0
- package/dist/converter/protocol.d.ts +4 -0
- package/dist/converter.cjs +1 -1
- package/dist/converter.js +89 -71
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-BmM-AQ-j.js → cose-bilkent-JH36ORCC-CR6Hdvto.js} +1 -1
- package/dist/cose-bilkent-JH36ORCC-reAbGeDU.cjs +1 -0
- package/dist/cynefinDiagram-TSTJHNR4-2qz-sUtp.cjs +62 -0
- package/dist/{cynefinDiagram-TSTJHNR4-iS4n-7T_.js → cynefinDiagram-TSTJHNR4-D1eY-FSf.js} +56 -56
- package/dist/dagre-VKFMJZFB-Byr9WPjb.cjs +4 -0
- package/dist/{dagre-VKFMJZFB-C1Y6S6Dm.js → dagre-VKFMJZFB-CXSczF8v.js} +25 -25
- package/dist/{diagram-FQU43EPY-CRXs7mU1.cjs → diagram-FQU43EPY-2YWng437.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-CFG9AlAq.js → diagram-FQU43EPY-BZo0xcaj.js} +35 -35
- package/dist/diagram-G47NLZAW-CQS7BN4F.cjs +24 -0
- package/dist/{diagram-G47NLZAW-Bqr76Qn5.js → diagram-G47NLZAW-CvJW9ny8.js} +60 -60
- package/dist/{diagram-NH7WQ7WH-BDWfQ8xs.js → diagram-NH7WQ7WH-C6VIkj-R.js} +17 -17
- package/dist/diagram-NH7WQ7WH-DXUwOBe7.cjs +24 -0
- package/dist/{diagram-OA4YK3LP-DuW90Uhk.js → diagram-OA4YK3LP-Co6nMbJc.js} +28 -28
- package/dist/{diagram-OA4YK3LP-uBVV8yBB.cjs → diagram-OA4YK3LP-DBUm2qxb.cjs} +3 -3
- package/dist/{diagram-WEI45ONY-Cd3qe8Wi.js → diagram-WEI45ONY-BaMbc5o2.js} +59 -59
- package/dist/diagram-WEI45ONY-ChpK2gP3.cjs +41 -0
- package/dist/ebnfDiagram-CCIWWBDH-DMIRHp8N.cjs +1 -0
- package/dist/{ebnfDiagram-CCIWWBDH-CMmTdVTT.js → ebnfDiagram-CCIWWBDH-i7CR-FU0.js} +3 -3
- package/dist/embeds/frames.d.ts +4 -0
- package/dist/embeds/linkCards.d.ts +3 -1
- package/dist/embeds/providers.d.ts +1 -0
- package/dist/embeds/testing.cjs +1 -1
- package/dist/embeds/testing.js +1 -1
- package/dist/embeds-B4g6w7Tf.cjs +1 -0
- package/dist/embeds-Dra-dGKD.js +64 -0
- package/dist/embeds.cjs +1 -1
- package/dist/embeds.d.ts +2 -2
- package/dist/embeds.js +31 -70
- package/dist/{erDiagram-Q63AITRT-tOZoI25O.js → erDiagram-Q63AITRT-DC-HhdaO.js} +68 -68
- package/dist/{erDiagram-Q63AITRT-ONnVKrzr.cjs → erDiagram-Q63AITRT-DjRvJyWK.cjs} +1 -1
- package/dist/errors-BWZJx2MD.cjs +1 -0
- package/dist/errors-CapTNE7l.js +62 -0
- package/dist/errors.d.ts +2 -2
- package/dist/extractHeadings-BAhmauKo.js +5296 -0
- package/dist/extractHeadings-qiJXegCx.cjs +11 -0
- package/dist/flowDiagram-23GEKE2U-CiNzp6BS.js +7 -0
- package/dist/flowDiagram-23GEKE2U-DzZNPkRJ.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-C23vm5cK.js → ganttDiagram-NO4QXBWP-BwbtaPxc.js} +69 -69
- package/dist/ganttDiagram-NO4QXBWP-CJv5UQ4O.cjs +292 -0
- package/dist/gen/markdown/v1/linkcard_connect.d.ts +19 -0
- package/dist/gen/markdown/v1/linkcard_pb.d.ts +87 -0
- package/dist/gen/markdown/v1/markdown_pb.d.ts +4 -0
- package/dist/{gitGraphDiagram-IHSO6WYX-BXWses91.js → gitGraphDiagram-IHSO6WYX--yebcp4V.js} +21 -21
- package/dist/gitGraphDiagram-IHSO6WYX-dSwtW7X6.cjs +106 -0
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +5 -3
- package/dist/index.client.js +56 -48
- package/dist/index.js +56 -48
- package/dist/index.server.cjs +1 -1
- package/dist/index.server.d.ts +2 -1
- package/dist/index.server.js +126 -873
- package/dist/{infoDiagram-FWYZ7A6U-C4NsbHAN.js → infoDiagram-FWYZ7A6U-B4AiTiqD.js} +9 -9
- package/dist/infoDiagram-FWYZ7A6U-BOj0VF20.cjs +2 -0
- package/dist/{ishikawaDiagram-FXEZZL3T-B2bMsFnl.js → ishikawaDiagram-FXEZZL3T-BsYs_qnQ.js} +59 -59
- package/dist/{ishikawaDiagram-FXEZZL3T-Cjqwv-T2.cjs → ishikawaDiagram-FXEZZL3T-CisV4kPO.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DfRiiYRf.cjs → journeyDiagram-5HDEW3XC-BAvgWwpr.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DO1Xx-OE.js → journeyDiagram-5HDEW3XC-DbDo-dqu.js} +32 -32
- package/dist/{kanban-definition-HUTT4EX6-RfpoaM17.js → kanban-definition-HUTT4EX6-BlPZISwH.js} +97 -97
- package/dist/{kanban-definition-HUTT4EX6-Cu_E-BJj.cjs → kanban-definition-HUTT4EX6-RjzOWas9.cjs} +2 -2
- package/dist/{linear-BbWOUIQi.js → linear-BXWX8YXI.js} +31 -31
- package/dist/linear-CKPQExK8.cjs +1 -0
- package/dist/linkCardServer/linkCardCore.d.ts +10 -0
- package/dist/linkCardServer/linkCardHandler.server.d.ts +1 -6
- package/dist/linkCardServer/pageFetchPort.d.ts +19 -0
- package/dist/linkCardServer/{pageMetadata.server.d.ts → pageMetadata.d.ts} +11 -3
- package/dist/linkCards-BikpIncf.cjs +1 -0
- package/dist/linkCards-DfSLqLPF.js +50 -0
- package/dist/linkCards.cjs +1 -0
- package/dist/linkCards.d.ts +2 -0
- package/dist/linkCards.js +5 -0
- package/dist/markdownServiceClient-C47z3Ynu.cjs +1 -0
- package/dist/markdownServiceClient-uDeklhtG.js +480 -0
- package/dist/markdownServiceClient.d.ts +20 -0
- package/dist/mermaid.core-C4EClWgB.js +15595 -0
- package/dist/mermaid.core-CRP55Hm1.cjs +305 -0
- package/dist/mermaidFrame/NOTICES.md +1345 -0
- package/dist/mermaidFrame/cssCleaner.d.ts +13 -0
- package/dist/mermaidFrame/drawer.d.ts +34 -0
- package/dist/mermaidFrame/frame.d.ts +1 -0
- package/dist/mermaidFrame/frame.js +3307 -0
- package/dist/mermaidFrame/katexInert.d.ts +4 -0
- package/dist/mermaidFrame/protocol.d.ts +38 -0
- package/dist/mermaidFrame/serve.d.ts +14 -0
- package/dist/mermaidFrame/svgCleaner.d.ts +4 -0
- package/dist/{mindmap-definition-LN4V7U3C-B5LpvJ9m.js → mindmap-definition-LN4V7U3C-BEWpoMMG.js} +79 -79
- package/dist/{mindmap-definition-LN4V7U3C-CB606E3L.cjs → mindmap-definition-LN4V7U3C-DnbSfqWP.cjs} +3 -3
- package/dist/pageFetchPort-2H18xcdi.cjs +1 -0
- package/dist/pageFetchPort-DVpXsKCz.js +624 -0
- package/dist/{pegDiagram-2B236MQR-DaosueJV.js → pegDiagram-2B236MQR-BF7gLiB-.js} +3 -3
- package/dist/pegDiagram-2B236MQR-BJysMObA.cjs +1 -0
- package/dist/{pieDiagram-ENE6RG2P-wfsOfWyT.js → pieDiagram-ENE6RG2P-D_YzC3qc.js} +50 -50
- package/dist/{pieDiagram-ENE6RG2P-BUY2Dvjo.cjs → pieDiagram-ENE6RG2P-UMpeIUyV.cjs} +2 -2
- package/dist/{providers-BwQK7hZa.js → providers-CSvkTZsr.js} +17 -2
- package/dist/{providers-DO2t7ks4.cjs → providers-Cx0FuVQU.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-BSvHqsTp.cjs → quadrantDiagram-ABIIQ3AL-DANY0ipQ.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-Bgc3vspL.js → quadrantDiagram-ABIIQ3AL-DDm-r_6D.js} +59 -59
- package/dist/railroadDiagram-RFXS5EU6-CDUd4th1.cjs +1 -0
- package/dist/{railroadDiagram-RFXS5EU6-Du2CFU9M.js → railroadDiagram-RFXS5EU6-hJ6uB90G.js} +3 -3
- package/dist/remarkProcessor.server.d.ts +2 -0
- package/dist/{requirementDiagram-TGXJPOKE-CnafqSUP.js → requirementDiagram-TGXJPOKE-BJef5Jb0.js} +15 -15
- package/dist/{requirementDiagram-TGXJPOKE-WM3sItRw.cjs → requirementDiagram-TGXJPOKE-DaoCo7go.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-D4Qv4d98.js → sankeyDiagram-HTMAVEWB-BZQs0bE-.js} +41 -41
- package/dist/{sankeyDiagram-HTMAVEWB-DaZN3ZDb.cjs → sankeyDiagram-HTMAVEWB-DXiv0YOu.cjs} +3 -3
- package/dist/{sequenceDiagram-DBY2YBRQ-C6fa7Axs.cjs → sequenceDiagram-DBY2YBRQ-CJGpsnsv.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CmP6XGGE.js → sequenceDiagram-DBY2YBRQ-D05U2w26.js} +46 -46
- package/dist/serviceClient.cjs +1 -0
- package/dist/serviceClient.d.ts +3 -0
- package/dist/serviceClient.js +9 -0
- package/dist/{sizeCapture-X5ZJPWSS-mWZkTwA5.js → sizeCapture-X5ZJPWSS-DTr0Vm61.js} +1 -1
- package/dist/sizeCapture-X5ZJPWSS-DjuH1zNP.cjs +1 -0
- package/dist/{stateDiagram-2N3HPSRC-ClDZKhLD.js → stateDiagram-2N3HPSRC-B8nvJKpB.js} +13 -13
- package/dist/stateDiagram-2N3HPSRC-BrB47FD-.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CC8gOGDK.cjs +1 -0
- package/dist/{stateDiagram-v2-6OUMAXLB-K7slPgH_.js → stateDiagram-v2-6OUMAXLB-CV-JqAeP.js} +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/markdown.standalone.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-Cpowlk7O.js → swimlanes-5IMT3BWC-BPtufzUd.js} +3 -3
- package/dist/swimlanes-5IMT3BWC-WAbDPRgt.cjs +1 -0
- package/dist/{swimlanesDiagram-G3AALYLV-36K4ynZn.js → swimlanesDiagram-G3AALYLV-BQKEmJFX.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-BZ0eguZa.cjs → swimlanesDiagram-G3AALYLV-BTwwtLZL.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-C2xHtlkw.js → timeline-definition-FHXFAJF6-DJ6GV7Fz.js} +53 -53
- package/dist/{timeline-definition-FHXFAJF6-BJN69nkZ.cjs → timeline-definition-FHXFAJF6-qdkrah7t.cjs} +1 -1
- package/dist/utils/promiseTry.d.ts +1 -0
- package/dist/vennDiagram-L72KCM5P-B5onSWPA.cjs +34 -0
- package/dist/{vennDiagram-L72KCM5P-DbqRaWm5.js → vennDiagram-L72KCM5P-DWnnndTj.js} +176 -176
- package/dist/viewer-settings.cjs +1 -1
- package/dist/viewer-settings.d.ts +8 -0
- package/dist/viewer-settings.js +11 -5
- package/dist/{wardleyDiagram-EHGQE667-CF5I0pM9.js → wardleyDiagram-EHGQE667-DFmDgQSb.js} +34 -34
- package/dist/{wardleyDiagram-EHGQE667-CyU76ilz.cjs → wardleyDiagram-EHGQE667-DdeBbvVM.cjs} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-DaKE_uIg.cjs → xychartDiagram-FW5EYKEG-CiJQMClv.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-spkx-w6w.js → xychartDiagram-FW5EYKEG-L2Kj4cZA.js} +56 -56
- package/package.json +32 -17
- package/dist/abnfDiagram-VRR7QNED-1fn6qV_P.cjs +0 -1
- package/dist/arc-D8xGHwLe.cjs +0 -1
- package/dist/arc-D9kg3f8-.js +0 -83
- package/dist/architectureDiagram-ZJ3FMSHR-C4QxQA-o.cjs +0 -36
- package/dist/channel-DuWQwUVP.cjs +0 -1
- package/dist/chunk-2Q5K7J3B-gCP3NILS.cjs +0 -1
- package/dist/chunk-32BRIVSS-PidRQo43.cjs +0 -1
- package/dist/chunk-JWPE2WC7-CHK_g5p5.cjs +0 -1
- package/dist/chunk-RYQCIY6F-B_33Thwg.cjs +0 -1
- package/dist/chunk-VR4S4FIN-Ca3mlCgX.cjs +0 -1
- package/dist/chunk-XXDRQBXY-CeZMmeIi.cjs +0 -1
- package/dist/classDiagram-OUVF2IWQ-DPzttpgE.cjs +0 -1
- package/dist/classDiagram-v2-EOCWNBFH-DPzttpgE.cjs +0 -1
- package/dist/cose-bilkent-JH36ORCC-C3UAMvQQ.cjs +0 -1
- package/dist/cynefinDiagram-TSTJHNR4-DStGofoE.cjs +0 -62
- package/dist/dagre-VKFMJZFB-BXsQ5-Ek.cjs +0 -4
- package/dist/diagram-G47NLZAW-BaX-jrfs.cjs +0 -24
- package/dist/diagram-NH7WQ7WH-Cczq2y99.cjs +0 -24
- package/dist/diagram-WEI45ONY-C_L-4kui.cjs +0 -41
- package/dist/ebnfDiagram-CCIWWBDH-Cg7DTSlM.cjs +0 -1
- package/dist/errors-BW5JXRoX.cjs +0 -1
- package/dist/errors-Blk_XJ9C.js +0 -55
- package/dist/extractHeadings-3qWVTkb9.js +0 -20290
- package/dist/extractHeadings-DpvwXCio.cjs +0 -315
- package/dist/flowDiagram-23GEKE2U-DfDAl_qd.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-p6ccACf3.js +0 -7
- package/dist/ganttDiagram-NO4QXBWP-CHP_muri.cjs +0 -292
- package/dist/gitGraphDiagram-IHSO6WYX-DOH3WBNZ.cjs +0 -106
- package/dist/infoDiagram-FWYZ7A6U-Bj2fnr5Y.cjs +0 -2
- package/dist/linear-Cz3x9Lkl.cjs +0 -1
- package/dist/linkCardServer/addressGuard.server.d.ts +0 -25
- package/dist/linkCardServer/pageFetch.server.d.ts +0 -37
- package/dist/linkCards-1JxY8wdm.js +0 -48
- package/dist/linkCards-Bjd_vW39.cjs +0 -1
- package/dist/pegDiagram-2B236MQR-BCqBc3Re.cjs +0 -1
- package/dist/railroadDiagram-RFXS5EU6-DdF2c_n3.cjs +0 -1
- package/dist/sizeCapture-X5ZJPWSS-B6sRQba9.cjs +0 -1
- package/dist/stateDiagram-2N3HPSRC-B__29zPZ.cjs +0 -1
- package/dist/stateDiagram-v2-6OUMAXLB-BA-_ovVY.cjs +0 -1
- package/dist/swimlanes-5IMT3BWC-BhxZhB7M.cjs +0 -1
- package/dist/vennDiagram-L72KCM5P-3R1vuMWd.cjs +0 -34
- /package/dist/linkCardServer/{htmlEncoding.server.d.ts → htmlEncoding.d.ts} +0 -0
- /package/dist/linkCardServer/{metadataCache.server.d.ts → metadataCache.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as le } from "./chunk-2Q5K7J3B-
|
|
2
|
-
import { p as he } from "./chunk-JWPE2WC7-
|
|
3
|
-
import {
|
|
1
|
+
import { I as le } from "./chunk-2Q5K7J3B-BkE4Fsuz.js";
|
|
2
|
+
import { p as he } from "./chunk-JWPE2WC7-Bj2m1SXZ.js";
|
|
3
|
+
import { t as $e, q as fe, s as ge, g as ue, a as ye, b as xe, _ as h, D as J, l as w, d as me, c as W, u as pe, E as be, z as we, k as B, F as ke, G as ve, H as Ce } from "./mermaid.core-C4EClWgB.js";
|
|
4
4
|
import { p as Ee } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
5
5
|
var m = {
|
|
6
6
|
NORMAL: 0,
|
|
@@ -286,11 +286,11 @@ var Ge = /* @__PURE__ */ h(function() {
|
|
|
286
286
|
return e.forEach(function(r) {
|
|
287
287
|
w.debug(r.id);
|
|
288
288
|
}), e.sort((r, t) => r.seq - t.seq), e;
|
|
289
|
-
}, "getCommitsArray"),
|
|
289
|
+
}, "getCommitsArray"), qe = /* @__PURE__ */ h(function() {
|
|
290
290
|
return d.records.currBranch;
|
|
291
|
-
}, "getCurrentBranch"),
|
|
291
|
+
}, "getCurrentBranch"), Pe = /* @__PURE__ */ h(function() {
|
|
292
292
|
return d.records.direction;
|
|
293
|
-
}, "getDirection"),
|
|
293
|
+
}, "getDirection"), We = /* @__PURE__ */ h(function() {
|
|
294
294
|
return d.records.head;
|
|
295
295
|
}, "getHead"), se = {
|
|
296
296
|
commitType: m,
|
|
@@ -310,9 +310,9 @@ var Ge = /* @__PURE__ */ h(function() {
|
|
|
310
310
|
getBranches: Ae,
|
|
311
311
|
getCommits: De,
|
|
312
312
|
getCommitsArray: ne,
|
|
313
|
-
getCurrentBranch:
|
|
314
|
-
getDirection:
|
|
315
|
-
getHead:
|
|
313
|
+
getCurrentBranch: qe,
|
|
314
|
+
getDirection: Pe,
|
|
315
|
+
getHead: We,
|
|
316
316
|
setAccTitle: xe,
|
|
317
317
|
getAccTitle: ye,
|
|
318
318
|
getAccDescription: ue,
|
|
@@ -355,8 +355,8 @@ var Ge = /* @__PURE__ */ h(function() {
|
|
|
355
355
|
const r = await Ee("gitGraph", e);
|
|
356
356
|
w.debug(r), Ne(r, se);
|
|
357
357
|
}, "parse")
|
|
358
|
-
}, O = 10, _ = 40, L = 4, R = 2, G = 8, j = /* @__PURE__ */ new Set(["redux", "redux-dark", "redux-color", "redux-dark-color"]), X = 12, Z = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Xe = /* @__PURE__ */ new Set(["dark", "redux-dark", "redux-dark-color", "neo-dark"]), H = /* @__PURE__ */ h((e, r, t = !1) => t && e > 0 ? (e - 1) % (r - 1) + 1 : e % r, "calcColorIndex"), C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), F = 30,
|
|
359
|
-
C.clear(), E.clear(),
|
|
358
|
+
}, O = 10, _ = 40, L = 4, R = 2, G = 8, j = /* @__PURE__ */ new Set(["redux", "redux-dark", "redux-color", "redux-dark-color"]), X = 12, Z = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Xe = /* @__PURE__ */ new Set(["dark", "redux-dark", "redux-dark-color", "neo-dark"]), H = /* @__PURE__ */ h((e, r, t = !1) => t && e > 0 ? (e - 1) % (r - 1) + 1 : e % r, "calcColorIndex"), C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), F = 30, q = /* @__PURE__ */ new Map(), z = [], I = 0, y = "LR", Je = /* @__PURE__ */ h(() => {
|
|
359
|
+
C.clear(), E.clear(), q.clear(), I = 0, z = [], y = "LR";
|
|
360
360
|
}, "clear"), oe = /* @__PURE__ */ h((e) => {
|
|
361
361
|
const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
362
362
|
return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((s) => {
|
|
@@ -415,7 +415,7 @@ var Ge = /* @__PURE__ */ h(function() {
|
|
|
415
415
|
const o = r + t, i = s.pos;
|
|
416
416
|
E.set(e.id, { x: i, y: o });
|
|
417
417
|
}, "setRootPosition"), nr = /* @__PURE__ */ h((e, r, t, s, o, i) => {
|
|
418
|
-
const { theme: n } =
|
|
418
|
+
const { theme: n } = W(), a = j.has(n ?? ""), l = Z.has(n ?? ""), f = Xe.has(n ?? "");
|
|
419
419
|
if (i === m.HIGHLIGHT)
|
|
420
420
|
e.append("rect").attr("x", t.x - 10 + (a ? 3 : 0)).attr("y", t.y - 10 + (a ? 3 : 0)).attr("width", a ? 14 : 20).attr("height", a ? 14 : 20).attr(
|
|
421
421
|
"class",
|
|
@@ -540,7 +540,7 @@ var Ge = /* @__PURE__ */ h(function() {
|
|
|
540
540
|
const s = y === "BT" && t ? r : r + O, o = C.get(e.branch)?.pos, i = y === "TB" || y === "BT" ? C.get(e.branch)?.pos : s;
|
|
541
541
|
if (i === void 0 || o === void 0)
|
|
542
542
|
throw new Error(`Position were undefined for commit ${e.id}`);
|
|
543
|
-
const n = j.has(
|
|
543
|
+
const n = j.has(W().theme ?? ""), a = y === "TB" || y === "BT" ? s : o + (n ? X / 2 + 1 : -2);
|
|
544
544
|
return { x: i, y: a, posWithOffset: s };
|
|
545
545
|
}, "getCommitPosition"), re = /* @__PURE__ */ h((e, r, t, s) => {
|
|
546
546
|
const o = e.append("g").attr("class", "commit-bullets"), i = e.append("g").attr("class", "commit-labels");
|
|
@@ -565,16 +565,16 @@ var Ge = /* @__PURE__ */ h(function() {
|
|
|
565
565
|
}, "drawCommits"), lr = /* @__PURE__ */ h((e, r, t, s, o) => {
|
|
566
566
|
const n = (y === "TB" || y === "BT" ? t.x < s.x : t.y < s.y) ? r.branch : e.branch, a = /* @__PURE__ */ h((f) => f.branch === n, "isOnBranchToGetCurve"), l = /* @__PURE__ */ h((f) => f.seq > e.seq && f.seq < r.seq, "isBetweenCommits");
|
|
567
567
|
return [...o.values()].some((f) => l(f) && a(f));
|
|
568
|
-
}, "shouldRerouteArrow"),
|
|
568
|
+
}, "shouldRerouteArrow"), P = /* @__PURE__ */ h((e, r, t = 0) => {
|
|
569
569
|
const s = e + Math.abs(e - r) / 2;
|
|
570
570
|
if (t > 5)
|
|
571
571
|
return s;
|
|
572
572
|
if (z.every((n) => Math.abs(n - s) >= 10))
|
|
573
573
|
return z.push(s), s;
|
|
574
574
|
const i = Math.abs(e - r);
|
|
575
|
-
return
|
|
575
|
+
return P(e, r - i / 5, t + 1);
|
|
576
576
|
}, "findLane"), hr = /* @__PURE__ */ h((e, r, t, s) => {
|
|
577
|
-
const { theme: o } =
|
|
577
|
+
const { theme: o } = W(), i = Z.has(o ?? ""), n = E.get(r.id), a = E.get(t.id);
|
|
578
578
|
if (n === void 0 || a === void 0)
|
|
579
579
|
throw new Error(`Commit positions not found for commits ${r.id} and ${t.id}`);
|
|
580
580
|
const l = lr(r, t, n, a, s);
|
|
@@ -583,7 +583,7 @@ var Ge = /* @__PURE__ */ h(function() {
|
|
|
583
583
|
let u;
|
|
584
584
|
if (l) {
|
|
585
585
|
f = "A 10 10, 0, 0, 0,", g = "A 10 10, 0, 0, 1,", $ = 10, c = 10;
|
|
586
|
-
const p = n.y < a.y ?
|
|
586
|
+
const p = n.y < a.y ? P(n.y, a.y) : P(a.y, n.y), b = n.x < a.x ? P(n.x, a.x) : P(a.x, n.x);
|
|
587
587
|
y === "TB" ? n.x < a.x ? u = `M ${n.x} ${n.y} L ${b - $} ${n.y} ${g} ${b} ${n.y + c} L ${b} ${a.y - $} ${f} ${b + c} ${a.y} L ${a.x} ${a.y}` : (x = C.get(r.branch)?.index, u = `M ${n.x} ${n.y} L ${b + $} ${n.y} ${f} ${b} ${n.y + c} L ${b} ${a.y - $} ${g} ${b - c} ${a.y} L ${a.x} ${a.y}`) : y === "BT" ? n.x < a.x ? u = `M ${n.x} ${n.y} L ${b - $} ${n.y} ${f} ${b} ${n.y - c} L ${b} ${a.y + $} ${g} ${b + c} ${a.y} L ${a.x} ${a.y}` : (x = C.get(r.branch)?.index, u = `M ${n.x} ${n.y} L ${b + $} ${n.y} ${g} ${b} ${n.y - c} L ${b} ${a.y + $} ${f} ${b - c} ${a.y} L ${a.x} ${a.y}`) : n.y < a.y ? u = `M ${n.x} ${n.y} L ${n.x} ${p - $} ${f} ${n.x + c} ${p} L ${a.x - $} ${p} ${g} ${a.x} ${p + c} L ${a.x} ${a.y}` : (x = C.get(r.branch)?.index, u = `M ${n.x} ${n.y} L ${n.x} ${p + $} ${g} ${n.x + c} ${p} L ${a.x - $} ${p} ${f} ${a.x} ${p - c} L ${a.x} ${a.y}`);
|
|
588
588
|
} else
|
|
589
589
|
f = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", $ = 20, c = 20, y === "TB" ? (n.x < a.x && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${n.x} ${a.y - $} ${f} ${n.x + c} ${a.y} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${a.x - $} ${n.y} ${g} ${a.x} ${n.y + c} L ${a.x} ${a.y}`), n.x > a.x && (f = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", $ = 20, c = 20, t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${n.x} ${a.y - $} ${g} ${n.x - c} ${a.y} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${a.x + $} ${n.y} ${f} ${a.x} ${n.y + c} L ${a.x} ${a.y}`), n.x === a.x && (u = `M ${n.x} ${n.y} L ${a.x} ${a.y}`)) : y === "BT" ? (n.x < a.x && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${n.x} ${a.y + $} ${g} ${n.x + c} ${a.y} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${a.x - $} ${n.y} ${f} ${a.x} ${n.y - c} L ${a.x} ${a.y}`), n.x > a.x && (f = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", $ = 20, c = 20, t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${n.x} ${a.y + $} ${f} ${n.x - c} ${a.y} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${a.x + $} ${n.y} ${g} ${a.x} ${n.y - c} L ${a.x} ${a.y}`), n.x === a.x && (u = `M ${n.x} ${n.y} L ${a.x} ${a.y}`)) : (n.y < a.y && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${a.x - $} ${n.y} ${g} ${a.x} ${n.y + c} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${n.x} ${a.y - $} ${f} ${n.x + c} ${a.y} L ${a.x} ${a.y}`), n.y > a.y && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${n.x} ${n.y} L ${a.x - $} ${n.y} ${f} ${a.x} ${n.y - c} L ${a.x} ${a.y}` : u = `M ${n.x} ${n.y} L ${n.x} ${a.y + $} ${g} ${n.x + c} ${a.y} L ${a.x} ${a.y}`), n.y === a.y && (u = `M ${n.x} ${n.y} L ${a.x} ${a.y}`));
|
|
@@ -602,7 +602,7 @@ var Ge = /* @__PURE__ */ h(function() {
|
|
|
602
602
|
});
|
|
603
603
|
});
|
|
604
604
|
}, "drawArrows"), fr = /* @__PURE__ */ h((e, r, t, s) => {
|
|
605
|
-
const { look: o, theme: i, themeVariables: n } =
|
|
605
|
+
const { look: o, theme: i, themeVariables: n } = W(), { dropShadow: a, THEME_COLOR_LIMIT: l } = n, f = j.has(i ?? ""), g = Z.has(i ?? ""), $ = e.append("g");
|
|
606
606
|
r.forEach((c, x) => {
|
|
607
607
|
const u = H(
|
|
608
608
|
x,
|
|
@@ -641,10 +641,10 @@ var Ge = /* @__PURE__ */ h(function() {
|
|
|
641
641
|
return;
|
|
642
642
|
}
|
|
643
643
|
const i = o.getConfig(), n = i.rotateCommitLabel ?? !1;
|
|
644
|
-
|
|
644
|
+
q = o.getCommits();
|
|
645
645
|
const a = o.getBranchesAsObjArray();
|
|
646
646
|
y = o.getDirection();
|
|
647
|
-
const l = me(`[id="${r}"]`), { look: f, theme: g, themeVariables: $ } =
|
|
647
|
+
const l = me(`[id="${r}"]`), { look: f, theme: g, themeVariables: $ } = W(), { useGradient: c, gradientStart: x, gradientStop: u, filterColor: p } = $;
|
|
648
648
|
if (c) {
|
|
649
649
|
const k = l.append("defs").append("linearGradient").attr("id", r + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
650
650
|
k.append("stop").attr("offset", "0%").attr("stop-color", x).attr("stop-opacity", 1), k.append("stop").attr("offset", "100%").attr("stop-color", u).attr("stop-opacity", 1);
|
|
@@ -656,7 +656,7 @@ var Ge = /* @__PURE__ */ h(function() {
|
|
|
656
656
|
M.node()?.appendChild(D);
|
|
657
657
|
const v = D.getBBox();
|
|
658
658
|
b = gr(k.name, b, U, v, n), M.remove(), K.remove(), T.remove();
|
|
659
|
-
}), re(l,
|
|
659
|
+
}), re(l, q, !1, i), i.showBranches && fr(l, a, i, r), $r(l, q), re(l, q, !0, i), pe.insertTitle(
|
|
660
660
|
l,
|
|
661
661
|
"gitTitleText",
|
|
662
662
|
i.titleTopMargin ?? 0,
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const se=require("./chunk-2Q5K7J3B-evSha-HP.cjs"),ce=require("./chunk-JWPE2WC7-Dgw1ILoe.cjs"),c=require("./mermaid.core-CRP55Hm1.cjs"),ie=require("./cynefin-VYW2F7L2-MpAliYy9.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},de=c.defaultConfig_default.gitGraph,G=c.__name(()=>c.cleanAndMerge({...de,...c.getConfig().gitGraph}),"getConfig"),l=new se.ImperativeState(()=>{const e=G(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function N(){return c.random({length:7})}c.__name(N,"getID");function Q(e,r){const t=Object.create(null);return e.reduce((o,s)=>{const d=r(s);return t[d]||(t[d]=!0,o.push(s)),o},[])}c.__name(Q,"uniqBy");var le=c.__name(function(e){l.records.direction=e},"setDirection"),he=c.__name(function(e){c.log.debug("options str",e),e=e?.trim(),e=e||"{}";try{l.records.options=JSON.parse(e)}catch(r){c.log.error("error while parsing gitGraph options",r.message)}},"setOptions"),$e=c.__name(function(){return l.records.options},"getOptions"),fe=c.__name(function(e){let r=e.msg,t=e.id;const o=e.type;let s=e.tags;c.log.info("commit",r,t,o,s),c.log.debug("Entering commit:",r,t,o,s);const d=G();t=c.common_default.sanitizeText(t,d),r=c.common_default.sanitizeText(r,d),s=s?.map(a=>c.common_default.sanitizeText(a,d));const n={id:t||l.records.seq+"-"+N(),message:r,seq:l.records.seq++,type:o??x.NORMAL,tags:s??[],parents:l.records.head==null?[]:[l.records.head.id],branch:l.records.currBranch};l.records.head=n,c.log.info("main branch",d.mainBranchName),l.records.commits.has(n.id)&&c.log.warn(`Commit ID ${n.id} already exists`),l.records.commits.set(n.id,n),l.records.branches.set(l.records.currBranch,n.id),c.log.debug("in pushCommit "+n.id)},"commit"),ge=c.__name(function(e){let r=e.name;const t=e.order;if(r=c.common_default.sanitizeText(r,G()),l.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);l.records.branches.set(r,l.records.head!=null?l.records.head.id:null),l.records.branchConfig.set(r,{name:r,order:t}),Z(r),c.log.debug("in createBranch")},"branch"),me=c.__name(e=>{let r=e.branch,t=e.id;const o=e.type,s=e.tags,d=G();r=c.common_default.sanitizeText(r,d),t&&(t=c.common_default.sanitizeText(t,d));const n=l.records.branches.get(l.records.currBranch),a=l.records.branches.get(r),h=n?l.records.commits.get(n):void 0,f=a?l.records.commits.get(a):void 0;if(h&&f&&h.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(l.records.currBranch===r){const i=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(h===void 0||!h){const i=new Error(`Incorrect usage of "merge". Current branch (${l.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!l.records.branches.has(r)){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(f===void 0||!f){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(h===f){const i=new Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(t&&l.records.commits.has(t)){const i=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${t} ${o} ${s?.join(" ")}`,token:`merge ${r} ${t} ${o} ${s?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${o} ${s?.join(" ")}`]},i}const g=a||"",$={id:t||`${l.records.seq}-${N()}`,message:`merged branch ${r} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,g],branch:l.records.currBranch,type:x.MERGE,customType:o,customId:!!t,tags:s??[]};l.records.head=$,l.records.commits.set($.id,$),l.records.branches.set(l.records.currBranch,$.id),c.log.debug(l.records.branches),c.log.debug("in mergeBranch")},"merge"),ue=c.__name(function(e){let r=e.id,t=e.targetId,o=e.tags,s=e.parent;c.log.debug("Entering cherryPick:",r,t,o);const d=G();if(r=c.common_default.sanitizeText(r,d),t=c.common_default.sanitizeText(t,d),o=o?.map(h=>c.common_default.sanitizeText(h,d)),s=c.common_default.sanitizeText(s,d),!r||!l.records.commits.has(r)){const h=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw h.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},h}const n=l.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(s&&!(Array.isArray(n.parents)&&n.parents.includes(s)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===x.MERGE&&!s)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!l.records.commits.has(t)){if(a===l.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const h=l.records.branches.get(l.records.currBranch);if(h===void 0||!h){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=l.records.commits.get(h);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:l.records.seq+"-"+N(),message:`cherry-picked ${n?.message} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,n.id],branch:l.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${n.id}${n.type===x.MERGE?`|parent:${s}`:""}`]};l.records.head=g,l.records.commits.set(g.id,g),l.records.branches.set(l.records.currBranch,g.id),c.log.debug(l.records.branches),c.log.debug("in cherryPick")}},"cherryPick"),Z=c.__name(function(e){if(e=c.common_default.sanitizeText(e,G()),l.records.branches.has(e)){l.records.currBranch=e;const r=l.records.branches.get(l.records.currBranch);r===void 0||!r?l.records.head=null:l.records.head=l.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function j(e,r,t){const o=e.indexOf(r);o===-1?e.push(t):e.splice(o,1,t)}c.__name(j,"upsert");function U(e){const r=e.reduce((s,d)=>s.seq>d.seq?s:d,e[0]);let t="";e.forEach(function(s){s===r?t+=" *":t+=" |"});const o=[t,r.id,r.seq];for(const s in l.records.branches)l.records.branches.get(s)===r.id&&o.push(s);if(c.log.debug(o.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const s=l.records.commits.get(r.parents[0]);j(e,r,s),r.parents[1]&&e.push(l.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const s=l.records.commits.get(r.parents[0]);j(e,r,s)}}e=Q(e,s=>s.id),U(e)}c.__name(U,"prettyPrintCommitHistory");var ye=c.__name(function(){c.log.debug(l.records.commits);const e=ee()[0];U([e])},"prettyPrint"),xe=c.__name(function(){l.reset(),c.clear()},"clear"),pe=c.__name(function(){return[...l.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),be=c.__name(function(){return l.records.branches},"getBranches"),_e=c.__name(function(){return l.records.commits},"getCommits"),ee=c.__name(function(){const e=[...l.records.commits.values()];return e.forEach(function(r){c.log.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),we=c.__name(function(){return l.records.currBranch},"getCurrentBranch"),ke=c.__name(function(){return l.records.direction},"getDirection"),Ce=c.__name(function(){return l.records.head},"getHead"),re={commitType:x,getConfig:G,setDirection:le,setOptions:he,getOptions:$e,commit:fe,branch:ge,merge:me,cherryPick:ue,checkout:Z,prettyPrint:ye,clear:xe,getBranchesAsObjArray:pe,getBranches:be,getCommits:_e,getCommitsArray:ee,getCurrentBranch:we,getDirection:ke,getHead:Ce,setAccTitle:c.setAccTitle,getAccTitle:c.getAccTitle,getAccDescription:c.getAccDescription,setAccDescription:c.setAccDescription,setDiagramTitle:c.setDiagramTitle,getDiagramTitle:c.getDiagramTitle},ve=c.__name((e,r)=>{ce.populateCommonDb(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Ee(t,r)},"populate"),Ee=c.__name((e,r)=>{const o={Commit:c.__name(s=>r.commit(Be(s)),"Commit"),Branch:c.__name(s=>r.branch(Te(s)),"Branch"),Merge:c.__name(s=>r.merge(Le(s)),"Merge"),Checkout:c.__name(s=>r.checkout(Me(s)),"Checkout"),CherryPicking:c.__name(s=>r.cherryPick(Re(s)),"CherryPicking")}[e.$type];o?o(e):c.log.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Be=c.__name(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?x[e.type]:x.NORMAL,tags:e.tags??void 0}),"parseCommit"),Te=c.__name(e=>({name:e.name,order:e.order??0}),"parseBranch"),Le=c.__name(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?x[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Me=c.__name(e=>e.branch,"parseCheckout"),Re=c.__name(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ie={parse:c.__name(async e=>{const r=await ie.parse("gitGraph",e);c.log.debug(r),ve(r,re)},"parse")},M=10,R=40,E=4,T=2,I=8,F=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),K=12,V=new Set(["redux-color","redux-dark-color"]),Oe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),O=c.__name((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),k=new Map,C=new Map,W=30,A=new Map,P=[],L=0,u="LR",Ge=c.__name(()=>{k.clear(),C.clear(),A.clear(),L=0,P=[],u="LR"},"clear"),te=c.__name(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(o=>{const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=o.trim(),r.appendChild(s)}),r},"drawText"),ae=c.__name(e=>{let r,t,o;return u==="BT"?(t=c.__name((s,d)=>s<=d,"comparisonFunc"),o=1/0):(t=c.__name((s,d)=>s>=d,"comparisonFunc"),o=0),e.forEach(s=>{const d=u==="TB"||u=="BT"?C.get(s)?.y:C.get(s)?.x;d!==void 0&&t(d,o)&&(r=s,o=d)}),r},"findClosestParent"),He=c.__name(e=>{let r="",t=1/0;return e.forEach(o=>{const s=C.get(o).y;s<=t&&(r=o,t=s)}),r||void 0},"findClosestParentBT"),Se=c.__name((e,r,t)=>{let o=t,s=t;const d=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(o=De(a),s=Math.max(o,s)):d.push(a),qe(a,o)}),o=s,d.forEach(n=>{We(n,o,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const h=He(a.parents);o=C.get(h).y-R,o<=s&&(s=o);const f=k.get(a.branch).pos,g=o-M;C.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),Ae=c.__name(e=>{const r=ae(e.parents.filter(o=>o!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=C.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),De=c.__name(e=>Ae(e)+R,"calculateCommitPosition"),qe=c.__name((e,r)=>{const t=k.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const o=t.pos,s=r+M;return C.set(e.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),We=c.__name((e,r,t)=>{const o=k.get(e.branch);if(!o)throw new Error(`Branch not found for commit ${e.id}`);const s=r+t,d=o.pos;C.set(e.id,{x:d,y:s})},"setRootPosition"),Pe=c.__name((e,r,t,o,s,d)=>{const{theme:n}=c.getConfig2(),a=F.has(n??""),h=V.has(n??""),f=Oe.has(n??"");if(d===x.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${O(s,I,h)} ${o}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${O(s,I,h)} ${o}-inner`);else if(d===x.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${O(s,I,h)}`),d===x.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${o} ${r.id} commit${O(s,I,h)}`)}if(d===x.REVERSE){const $=e.append("path"),i=a?4:5;$.attr("d",`M ${t.x-i},${t.y-i}L${t.x+i},${t.y+i}M${t.x-i},${t.y+i}L${t.x+i},${t.y-i}`).attr("class",`commit ${o} ${r.id} commit${O(s,I,h)}`)}}},"drawCommitBullet"),Ne=c.__name((e,r,t,o,s)=>{if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&s.showCommitLabel){const d=e.append("g"),n=d.insert("rect").attr("class","commit-label-bkg"),a=d.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(r.id),h=a.node()?.getBBox();if(h&&(n.attr("x",t.posWithOffset-h.width/2-T).attr("y",t.y+13.5).attr("width",h.width+2*T).attr("height",h.height+2*T),u==="TB"||u==="BT"?(n.attr("x",t.x-(h.width+4*E+5)).attr("y",t.y-12),a.attr("x",t.x-(h.width+4*E)).attr("y",t.y+h.height-12)):a.attr("x",t.posWithOffset-h.width/2),s.rotateCommitLabel))if(u==="TB"||u==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(h.width+10)/25*9.5,g=10+h.width/25*8.5;d.attr("transform","translate("+f+", "+g+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),Fe=c.__name((e,r,t,o)=>{if(r.tags.length>0){let s=0,d=0,n=0;const a=[];for(const h of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-s).attr("class","tag-label").text(h),i=$.node()?.getBBox();if(!i)throw new Error("Tag bbox not found");d=Math.max(d,i.width),n=Math.max(n,i.height),$.attr("x",t.posWithOffset-i.width/2),a.push({tag:$,hole:g,rect:f,yOffset:s}),s+=20}for(const{tag:h,hole:f,rect:g,yOffset:$}of a){const i=n/2,y=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
|
|
2
|
+
${o-d/2-E/2},${y+T}
|
|
3
|
+
${o-d/2-E/2},${y-T}
|
|
4
|
+
${t.posWithOffset-d/2-E},${y-i-T}
|
|
5
|
+
${t.posWithOffset+d/2+E},${y-i-T}
|
|
6
|
+
${t.posWithOffset+d/2+E},${y+i+T}
|
|
7
|
+
${t.posWithOffset-d/2-E},${y+i+T}`),f.attr("cy",y).attr("cx",o-d/2+E/2).attr("r",1.5).attr("class","tag-hole"),u==="TB"||u==="BT"){const m=o+$;g.attr("class","tag-label-bkg").attr("points",`
|
|
8
|
+
${t.x},${m+2}
|
|
9
|
+
${t.x},${m-2}
|
|
10
|
+
${t.x+M},${m-i-2}
|
|
11
|
+
${t.x+M+d+4},${m-i-2}
|
|
12
|
+
${t.x+M+d+4},${m+i+2}
|
|
13
|
+
${t.x+M},${m+i+2}`).attr("transform","translate(12,12) rotate(45, "+t.x+","+o+")"),f.attr("cx",t.x+E/2).attr("cy",m).attr("transform","translate(12,12) rotate(45, "+t.x+","+o+")"),h.attr("x",t.x+5).attr("y",m+3).attr("transform","translate(14,14) rotate(45, "+t.x+","+o+")")}}}},"drawCommitTags"),ze=c.__name(e=>{switch(e.customType??e.type){case x.NORMAL:return"commit-normal";case x.REVERSE:return"commit-reverse";case x.HIGHLIGHT:return"commit-highlight";case x.MERGE:return"commit-merge";case x.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Ye=c.__name((e,r,t,o)=>{const s={x:0,y:0};if(e.parents.length>0){const d=ae(e.parents);if(d){const n=o.get(d)??s;return r==="TB"?n.y+R:r==="BT"?(o.get(e.id)??s).y-R:n.x+R}}else return r==="TB"?W:r==="BT"?(o.get(e.id)??s).y-R:0;return 0},"calculatePosition"),je=c.__name((e,r,t)=>{const o=u==="BT"&&t?r:r+M,s=k.get(e.branch)?.pos,d=u==="TB"||u==="BT"?k.get(e.branch)?.pos:o;if(d===void 0||s===void 0)throw new Error(`Position were undefined for commit ${e.id}`);const n=F.has(c.getConfig2().theme??""),a=u==="TB"||u==="BT"?o:s+(n?K/2+1:-2);return{x:d,y:a,posWithOffset:o}},"getCommitPosition"),J=c.__name((e,r,t,o)=>{const s=e.append("g").attr("class","commit-bullets"),d=e.append("g").attr("class","commit-labels");let n=u==="TB"||u==="BT"?W:0;const a=[...r.keys()],h=o.parallelCommits??!1,f=c.__name(($,i)=>{const y=r.get($)?.seq,m=r.get(i)?.seq;return y!==void 0&&m!==void 0?y-m:0},"sortKeys");let g=a.sort(f);u==="BT"&&(h&&Se(g,r,n),g=g.reverse()),g.forEach($=>{const i=r.get($);if(!i)throw new Error(`Commit not found for key ${$}`);h&&(n=Ye(i,u,n,C));const y=je(i,n,h);if(t){const m=ze(i),p=i.customType??i.type,b=k.get(i.branch)?.index??0;Pe(s,i,y,m,b,p),Ne(d,i,y,n,o),Fe(d,i,y,n)}u==="TB"||u==="BT"?C.set(i.id,{x:y.x,y:y.posWithOffset}):C.set(i.id,{x:y.posWithOffset,y:y.y}),n=u==="BT"&&h?n+R:n+R+M,n>L&&(L=n)})},"drawCommits"),Ke=c.__name((e,r,t,o,s)=>{const n=(u==="TB"||u==="BT"?t.x<o.x:t.y<o.y)?r.branch:e.branch,a=c.__name(f=>f.branch===n,"isOnBranchToGetCurve"),h=c.__name(f=>f.seq>e.seq&&f.seq<r.seq,"isBetweenCommits");return[...s.values()].some(f=>h(f)&&a(f))},"shouldRerouteArrow"),D=c.__name((e,r,t=0)=>{const o=e+Math.abs(e-r)/2;if(t>5)return o;if(P.every(n=>Math.abs(n-o)>=10))return P.push(o),o;const d=Math.abs(e-r);return D(e,r-d/5,t+1)},"findLane"),Ue=c.__name((e,r,t,o)=>{const{theme:s}=c.getConfig2(),d=V.has(s??""),n=C.get(r.id),a=C.get(t.id);if(n===void 0||a===void 0)throw new Error(`Commit positions not found for commits ${r.id} and ${t.id}`);const h=Ke(r,t,n,a,o);let f="",g="",$=0,i=0,y=k.get(t.branch)?.index;t.type===x.MERGE&&r.id!==t.parents[0]&&(y=k.get(r.branch)?.index);let m;if(h){f="A 10 10, 0, 0, 0,",g="A 10 10, 0, 0, 1,",$=10,i=10;const p=n.y<a.y?D(n.y,a.y):D(a.y,n.y),b=n.x<a.x?D(n.x,a.x):D(a.x,n.x);u==="TB"?n.x<a.x?m=`M ${n.x} ${n.y} L ${b-$} ${n.y} ${g} ${b} ${n.y+i} L ${b} ${a.y-$} ${f} ${b+i} ${a.y} L ${a.x} ${a.y}`:(y=k.get(r.branch)?.index,m=`M ${n.x} ${n.y} L ${b+$} ${n.y} ${f} ${b} ${n.y+i} L ${b} ${a.y-$} ${g} ${b-i} ${a.y} L ${a.x} ${a.y}`):u==="BT"?n.x<a.x?m=`M ${n.x} ${n.y} L ${b-$} ${n.y} ${f} ${b} ${n.y-i} L ${b} ${a.y+$} ${g} ${b+i} ${a.y} L ${a.x} ${a.y}`:(y=k.get(r.branch)?.index,m=`M ${n.x} ${n.y} L ${b+$} ${n.y} ${g} ${b} ${n.y-i} L ${b} ${a.y+$} ${f} ${b-i} ${a.y} L ${a.x} ${a.y}`):n.y<a.y?m=`M ${n.x} ${n.y} L ${n.x} ${p-$} ${f} ${n.x+i} ${p} L ${a.x-$} ${p} ${g} ${a.x} ${p+i} L ${a.x} ${a.y}`:(y=k.get(r.branch)?.index,m=`M ${n.x} ${n.y} L ${n.x} ${p+$} ${g} ${n.x+i} ${p} L ${a.x-$} ${p} ${f} ${a.x} ${p-i} L ${a.x} ${a.y}`)}else f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,i=20,u==="TB"?(n.x<a.x&&(t.type===x.MERGE&&r.id!==t.parents[0]?m=`M ${n.x} ${n.y} L ${n.x} ${a.y-$} ${f} ${n.x+i} ${a.y} L ${a.x} ${a.y}`:m=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${g} ${a.x} ${n.y+i} L ${a.x} ${a.y}`),n.x>a.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,i=20,t.type===x.MERGE&&r.id!==t.parents[0]?m=`M ${n.x} ${n.y} L ${n.x} ${a.y-$} ${g} ${n.x-i} ${a.y} L ${a.x} ${a.y}`:m=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${f} ${a.x} ${n.y+i} L ${a.x} ${a.y}`),n.x===a.x&&(m=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):u==="BT"?(n.x<a.x&&(t.type===x.MERGE&&r.id!==t.parents[0]?m=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${g} ${n.x+i} ${a.y} L ${a.x} ${a.y}`:m=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${f} ${a.x} ${n.y-i} L ${a.x} ${a.y}`),n.x>a.x&&(f="A 20 20, 0, 0, 0,",g="A 20 20, 0, 0, 1,",$=20,i=20,t.type===x.MERGE&&r.id!==t.parents[0]?m=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${f} ${n.x-i} ${a.y} L ${a.x} ${a.y}`:m=`M ${n.x} ${n.y} L ${a.x+$} ${n.y} ${g} ${a.x} ${n.y-i} L ${a.x} ${a.y}`),n.x===a.x&&(m=`M ${n.x} ${n.y} L ${a.x} ${a.y}`)):(n.y<a.y&&(t.type===x.MERGE&&r.id!==t.parents[0]?m=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${g} ${a.x} ${n.y+i} L ${a.x} ${a.y}`:m=`M ${n.x} ${n.y} L ${n.x} ${a.y-$} ${f} ${n.x+i} ${a.y} L ${a.x} ${a.y}`),n.y>a.y&&(t.type===x.MERGE&&r.id!==t.parents[0]?m=`M ${n.x} ${n.y} L ${a.x-$} ${n.y} ${f} ${a.x} ${n.y-i} L ${a.x} ${a.y}`:m=`M ${n.x} ${n.y} L ${n.x} ${a.y+$} ${g} ${n.x+i} ${a.y} L ${a.x} ${a.y}`),n.y===a.y&&(m=`M ${n.x} ${n.y} L ${a.x} ${a.y}`));if(m===void 0)throw new Error("Line definition not found");e.append("path").attr("d",m).attr("class","arrow arrow"+O(y,I,d))},"drawArrow"),Ve=c.__name((e,r)=>{const t=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach(o=>{const s=r.get(o);s.parents&&s.parents.length>0&&s.parents.forEach(d=>{Ue(t,r.get(d),s,r)})})},"drawArrows"),Xe=c.__name((e,r,t,o)=>{const{look:s,theme:d,themeVariables:n}=c.getConfig2(),{dropShadow:a,THEME_COLOR_LIMIT:h}=n,f=F.has(d??""),g=V.has(d??""),$=e.append("g");r.forEach((i,y)=>{const m=O(y,f?h:I,g),p=k.get(i.name)?.pos;if(p===void 0)throw new Error(`Position not found for branch ${i.name}`);const b=u==="TB"||u==="BT"?p:f?p+K/2+1:p-2,_=$.append("line");_.attr("x1",0),_.attr("y1",b),_.attr("x2",L),_.attr("y2",b),_.attr("class","branch branch"+m),u==="TB"?(_.attr("y1",W),_.attr("x1",p),_.attr("y2",L),_.attr("x2",p)):u==="BT"&&(_.attr("y1",L),_.attr("x1",p),_.attr("y2",W),_.attr("x2",p)),P.push(b);const z=i.name,S=te(z),v=$.insert("rect"),B=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+m);B.node().appendChild(S);const w=S.getBBox(),X=f?0:4,q=f?16:0,H=f?K:0;s==="neo"&&v.attr("data-look","neo"),v.attr("class","branchLabelBkg label"+m).attr("style",s==="neo"?`filter:${f?`url(#${o}-drop-shadow)`:a}`:"").attr("rx",X).attr("ry",X).attr("x",-w.width-4-(t.rotateCommitLabel===!0?30:0)).attr("y",-w.height/2+10).attr("width",w.width+18+q).attr("height",w.height+4+H),B.attr("transform","translate("+(-w.width-14-(t.rotateCommitLabel===!0?30:0)+q/2)+", "+(b-w.height/2-2)+")"),u==="TB"?(v.attr("x",p-w.width/2-10).attr("y",0),B.attr("transform","translate("+(p-w.width/2-5)+", 0)"),f&&(v.attr("transform",`translate(${-q/2-3}, ${-H-10})`),B.attr("transform","translate("+(p-w.width/2-5)+", "+(-H*2+7)+")"))):u==="BT"?(v.attr("x",p-w.width/2-10).attr("y",L),B.attr("transform","translate("+(p-w.width/2-5)+", "+L+")"),f&&(v.attr("transform",`translate(${-q/2-3}, ${H+10})`),B.attr("transform","translate("+(p-w.width/2-5)+", "+(L+H*2+4)+")"))):v.attr("transform","translate(-19, "+(b-12-H/2)+")")})},"drawBranches"),Je=c.__name(function(e,r,t,o,s){return k.set(e,{pos:r,index:t}),r+=50+(s?40:0)+(u==="TB"||u==="BT"?o.width/2:0),r},"setBranchPosition"),Qe=c.__name(function(e,r,t,o){Ge(),c.log.debug("in gitgraph renderer",e+`
|
|
14
|
+
`,"id:",r,t);const s=o.db;if(!s.getConfig){c.log.error("getConfig method is not available on db");return}const d=s.getConfig(),n=d.rotateCommitLabel??!1;A=s.getCommits();const a=s.getBranchesAsObjArray();u=s.getDirection();const h=c.select(`[id="${r}"]`),{look:f,theme:g,themeVariables:$}=c.getConfig2(),{useGradient:i,gradientStart:y,gradientStop:m,filterColor:p}=$;if(i){const _=h.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");_.append("stop").attr("offset","0%").attr("stop-color",y).attr("stop-opacity",1),_.append("stop").attr("offset","100%").attr("stop-color",m).attr("stop-opacity",1)}f==="neo"&&F.has(g??"")&&h.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",p);let b=0;a.forEach((_,z)=>{const S=te(_.name),v=h.append("g"),Y=v.insert("g").attr("class","branchLabel"),B=Y.insert("g").attr("class","label branch-label");B.node()?.appendChild(S);const w=S.getBBox();b=Je(_.name,b,z,w,n),B.remove(),Y.remove(),v.remove()}),J(h,A,!1,d),d.showBranches&&Xe(h,a,d,r),Ve(h,A),J(h,A,!0,d),c.utils_default.insertTitle(h,"gitTitleText",d.titleTopMargin??0,s.getDiagramTitle()),c.setupGraphViewbox2(void 0,h,d.diagramPadding,d.useMaxWidth)},"draw"),Ze={draw:Qe},ne=8,oe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),er=new Set(["redux-color","redux-dark-color"]),rr=new Set(["neo","neo-dark"]),tr=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),ar=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),nr=c.__name(e=>{const{svgId:r}=e;let t="";if(e.useGradient&&r)for(let o=0;o<e.THEME_COLOR_LIMIT;o++)t+=`
|
|
15
|
+
.label${o} { fill: ${e.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${e.strokeWidth};}
|
|
16
|
+
`;return t},"genGitGraphGradient"),or=c.__name(e=>{const r=c.getConfig(),{theme:t,themeVariables:o}=r,{borderColorArray:s}=o,d=oe.has(t);if(rr.has(t)){let n="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
|
|
17
|
+
.branch-label${a} { fill: ${e.nodeBorder};}
|
|
18
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
19
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
20
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
21
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
22
|
+
.commit-cherry-pick${a} { stroke: ${e.nodeBorder}; }
|
|
23
|
+
${nr(e)}`;else{const h=a%ne;n+=`
|
|
24
|
+
.branch-label${a} { fill: ${e["gitBranchLabel"+h]}; }
|
|
25
|
+
.commit${a} { stroke: ${e["git"+h]}; fill: ${e["git"+h]}; }
|
|
26
|
+
.commit-highlight${a} { stroke: ${e["gitInv"+h]}; fill: ${e["gitInv"+h]}; }
|
|
27
|
+
.arrow${a} { stroke: ${e["git"+h]}; }
|
|
28
|
+
`}return n}else if(er.has(t)){let n="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
|
|
29
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${d?`font-weight:${e.noteFontWeight}`:""} }
|
|
30
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
31
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
|
|
32
|
+
.label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${d?`font-weight:${e.noteFontWeight}`:""} }
|
|
33
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
34
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
35
|
+
`;else{const h=a%s.length;n+=`
|
|
36
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${d?`font-weight:${e.noteFontWeight}`:""} }
|
|
37
|
+
.commit${a} { stroke: ${s[h]}; fill: ${s[h]}; }
|
|
38
|
+
.commit-highlight${a} { stroke: ${s[h]}; fill: ${s[h]}; }
|
|
39
|
+
.label${a} { fill: ${tr.has(t)?e.mainBkg:s[h]}; stroke: ${s[h]}; stroke-width: ${e.strokeWidth}; }
|
|
40
|
+
.arrow${a} { stroke: ${s[h]}; }
|
|
41
|
+
`}return n}else{let n="";for(let a=0;a<e.THEME_COLOR_LIMIT;a++)n+=`
|
|
42
|
+
.branch-label${a} { fill: ${e.nodeBorder}; ${d?`font-weight:${e.noteFontWeight}`:""} }
|
|
43
|
+
.commit${a} { stroke: ${e.nodeBorder}; }
|
|
44
|
+
.commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
|
|
45
|
+
.label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${d?`font-weight:${e.noteFontWeight}`:""}}
|
|
46
|
+
.arrow${a} { stroke: ${e.nodeBorder}; }
|
|
47
|
+
.commit-bullets { fill: ${e.nodeBorder}; }
|
|
48
|
+
.commit-cherry-pick${a} { stroke: ${e.nodeBorder}; }
|
|
49
|
+
`;return n}},"genColor"),sr=c.__name(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(r,t)=>t).map(r=>{const t=r%ne;return`
|
|
50
|
+
.branch-label${r} { fill: ${e["gitBranchLabel"+t]}; }
|
|
51
|
+
.commit${r} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; }
|
|
52
|
+
.commit-highlight${r} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; }
|
|
53
|
+
.label${r} { fill: ${e["git"+t]}; }
|
|
54
|
+
.arrow${r} { stroke: ${e["git"+t]}; }
|
|
55
|
+
`}).join(`
|
|
56
|
+
`)}`,"normalTheme"),cr=c.__name(e=>{const r=c.getConfig(),{theme:t}=r,o=ar.has(t);return`
|
|
57
|
+
.commit-id,
|
|
58
|
+
.commit-msg,
|
|
59
|
+
.branch-label {
|
|
60
|
+
fill: lightgrey;
|
|
61
|
+
color: lightgrey;
|
|
62
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
63
|
+
font-family: var(--mermaid-font-family);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
${o?or(e):sr(e)}
|
|
67
|
+
|
|
68
|
+
.branch {
|
|
69
|
+
stroke-width: ${e.strokeWidth};
|
|
70
|
+
stroke: ${e.commitLineColor??e.lineColor};
|
|
71
|
+
stroke-dasharray: ${o?"4 2":"2"};
|
|
72
|
+
}
|
|
73
|
+
.commit-label { font-size: ${e.commitLabelFontSize}; fill: ${o?e.nodeBorder:e.commitLabelColor}; ${o?`font-weight:${e.noteFontWeight};`:""}}
|
|
74
|
+
.commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${o?"transparent":e.commitLabelBackground}; opacity: ${o?"":.5}; }
|
|
75
|
+
.tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
|
|
76
|
+
.tag-label-bkg { fill: ${o?e.mainBkg:e.tagLabelBackground}; stroke: ${o?e.nodeBorder:e.tagLabelBorder}; ${o?`filter:${e.dropShadow}`:""} }
|
|
77
|
+
.tag-hole { fill: ${e.textColor}; }
|
|
78
|
+
|
|
79
|
+
.commit-merge {
|
|
80
|
+
stroke: ${o?e.mainBkg:e.primaryColor};
|
|
81
|
+
fill: ${o?e.mainBkg:e.primaryColor};
|
|
82
|
+
}
|
|
83
|
+
.commit-reverse {
|
|
84
|
+
stroke: ${o?e.mainBkg:e.primaryColor};
|
|
85
|
+
fill: ${o?e.mainBkg:e.primaryColor};
|
|
86
|
+
stroke-width: ${o?e.strokeWidth:3};
|
|
87
|
+
}
|
|
88
|
+
.commit-highlight-outer {
|
|
89
|
+
}
|
|
90
|
+
.commit-highlight-inner {
|
|
91
|
+
stroke: ${o?e.mainBkg:e.primaryColor};
|
|
92
|
+
fill: ${o?e.mainBkg:e.primaryColor};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.arrow {
|
|
96
|
+
/* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
|
|
97
|
+
stroke-width: ${oe.has(t)?e.strokeWidth:8};
|
|
98
|
+
stroke-linecap: round;
|
|
99
|
+
fill: none
|
|
100
|
+
}
|
|
101
|
+
.gitTitleText {
|
|
102
|
+
text-anchor: middle;
|
|
103
|
+
font-size: 18px;
|
|
104
|
+
fill: ${e.textColor};
|
|
105
|
+
}
|
|
106
|
+
`},"getStyles"),ir=cr,dr={parser:Ie,db:re,renderer:Ze,styles:ir};exports.diagram=dr;
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-qiJXegCx.cjs"),E=require("./code-blocks-CTESwslp.cjs"),o=require("./viewer-settings.cjs");exports.BlockquoteNode=e.BlockquoteNode;exports.CodeNode=e.CodeNode;exports.DEFAULT_CODE_BLOCK_LABELS=e.DEFAULT_CODE_BLOCK_LABELS;exports.DEFAULT_DISPLAY_MATH_LABELS=e.DEFAULT_DISPLAY_MATH_LABELS;exports.DEFAULT_MARKDOWN_EMBED_LABELS=e.DEFAULT_MARKDOWN_EMBED_LABELS;exports.DEFAULT_MARKDOWN_VIEWER_LABELS=e.DEFAULT_MARKDOWN_VIEWER_LABELS;exports.DEFAULT_MERMAID_DIAGRAM_LABELS=e.DEFAULT_MERMAID_DIAGRAM_LABELS;exports.DEFAULT_MERMAID_INTERACTION=e.DEFAULT_MERMAID_INTERACTION;exports.DEFAULT_SVG_IMAGE_LABELS=e.DEFAULT_SVG_IMAGE_LABELS;exports.DeleteNode=e.DeleteNode;exports.EmphasisNode=e.EmphasisNode;exports.FootnoteBackLinkNode=e.FootnoteBackLinkNode;exports.FootnoteReferenceNode=e.FootnoteReferenceNode;exports.FootnotesSection=e.FootnotesSection;exports.HeadingNode=e.HeadingNode;exports.HostedScrollArea=e.HostedScrollArea;exports.ImageNode=e.ImageNode;exports.InlineCodeNode=e.InlineCodeNode;exports.LinkNode=e.LinkNode;exports.ListItemNode=e.ListItemNode;exports.ListNode=e.ListNode;exports.MarkdownRenderer=e.MarkdownRenderer;exports.MarkdownViewer=e.MarkdownViewer;exports.MermaidDiagram=e.MermaidDiagram;exports.NodesRenderer=e.NodesRenderer;exports.ParagraphNode=e.ParagraphNode;exports.SpreadsheetBlock=e.SpreadsheetBlock;exports.StrongNode=e.StrongNode;exports.TableNode=e.TableNode;exports.TableOfContents=e.TableOfContents;exports.TextNode=e.TextNode;exports.ThematicBreakNode=e.ThematicBreakNode;exports.ZennDetailsNode=e.ZennDetailsNode;exports.ZennMessageNode=e.ZennMessageNode;exports.extractHeadings=e.extractHeadings;exports.remarkCustomHeadingId=e.remarkCustomHeadingId;exports.remarkFootnoteBackLink=e.remarkFootnoteBackLink;exports.remarkHtmlAnchorToLink=e.remarkHtmlAnchorToLink;exports.remarkHtmlInHtml=e.remarkHtmlInHtml;exports.remarkImageSize=e.remarkImageSize;exports.remarkParentNode=e.remarkParentNode;exports.remarkZennMessage=e.remarkZennMessage;exports.useMarkdownToolbarState=e.useMarkdownToolbarState;exports.SPREADSHEET_BLOCK_LABEL_CATALOGS=E.SPREADSHEET_BLOCK_LABEL_CATALOGS;exports.SPREADSHEET_BLOCK_LABEL_PLACEHOLDERS=E.SPREADSHEET_BLOCK_LABEL_PLACEHOLDERS;exports.CONTENT_ALIGNS=o.CONTENT_ALIGNS;exports.CONTENT_COLORS=o.CONTENT_COLORS;exports.CONTENT_MEASURES=o.CONTENT_MEASURES;exports.DEFAULT_CONTENT_ALIGN=o.DEFAULT_CONTENT_ALIGN;exports.DEFAULT_CONTENT_COLORS=o.DEFAULT_CONTENT_COLORS;exports.DEFAULT_CONTENT_MEASURE=o.DEFAULT_CONTENT_MEASURE;exports.DEFAULT_MARKDOWN_STYLE=o.DEFAULT_MARKDOWN_STYLE;exports.DEFAULT_MARKDOWN_STYLES=o.DEFAULT_MARKDOWN_STYLES;exports.toContentAlign=o.toContentAlign;exports.toContentColors=o.toContentColors;exports.toContentMeasure=o.toContentMeasure;
|
package/dist/index.client.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-qiJXegCx.cjs"),E=require("./code-blocks-CTESwslp.cjs"),o=require("./viewer-settings.cjs");exports.BlockquoteNode=e.BlockquoteNode;exports.CodeNode=e.CodeNode;exports.DEFAULT_CODE_BLOCK_LABELS=e.DEFAULT_CODE_BLOCK_LABELS;exports.DEFAULT_DISPLAY_MATH_LABELS=e.DEFAULT_DISPLAY_MATH_LABELS;exports.DEFAULT_MARKDOWN_EMBED_LABELS=e.DEFAULT_MARKDOWN_EMBED_LABELS;exports.DEFAULT_MARKDOWN_VIEWER_LABELS=e.DEFAULT_MARKDOWN_VIEWER_LABELS;exports.DEFAULT_MERMAID_DIAGRAM_LABELS=e.DEFAULT_MERMAID_DIAGRAM_LABELS;exports.DEFAULT_MERMAID_INTERACTION=e.DEFAULT_MERMAID_INTERACTION;exports.DEFAULT_SVG_IMAGE_LABELS=e.DEFAULT_SVG_IMAGE_LABELS;exports.DeleteNode=e.DeleteNode;exports.EmphasisNode=e.EmphasisNode;exports.FootnoteBackLinkNode=e.FootnoteBackLinkNode;exports.FootnoteReferenceNode=e.FootnoteReferenceNode;exports.FootnotesSection=e.FootnotesSection;exports.HeadingNode=e.HeadingNode;exports.HostedScrollArea=e.HostedScrollArea;exports.ImageNode=e.ImageNode;exports.InlineCodeNode=e.InlineCodeNode;exports.LinkNode=e.LinkNode;exports.ListItemNode=e.ListItemNode;exports.ListNode=e.ListNode;exports.MarkdownRenderer=e.MarkdownRenderer;exports.MarkdownViewer=e.MarkdownViewer;exports.MermaidDiagram=e.MermaidDiagram;exports.NodesRenderer=e.NodesRenderer;exports.ParagraphNode=e.ParagraphNode;exports.SpreadsheetBlock=e.SpreadsheetBlock;exports.StrongNode=e.StrongNode;exports.TableNode=e.TableNode;exports.TableOfContents=e.TableOfContents;exports.TextNode=e.TextNode;exports.ThematicBreakNode=e.ThematicBreakNode;exports.ZennDetailsNode=e.ZennDetailsNode;exports.ZennMessageNode=e.ZennMessageNode;exports.extractHeadings=e.extractHeadings;exports.remarkCustomHeadingId=e.remarkCustomHeadingId;exports.remarkFootnoteBackLink=e.remarkFootnoteBackLink;exports.remarkHtmlAnchorToLink=e.remarkHtmlAnchorToLink;exports.remarkHtmlInHtml=e.remarkHtmlInHtml;exports.remarkImageSize=e.remarkImageSize;exports.remarkParentNode=e.remarkParentNode;exports.remarkZennMessage=e.remarkZennMessage;exports.useMarkdownToolbarState=e.useMarkdownToolbarState;exports.SPREADSHEET_BLOCK_LABEL_CATALOGS=E.SPREADSHEET_BLOCK_LABEL_CATALOGS;exports.SPREADSHEET_BLOCK_LABEL_PLACEHOLDERS=E.SPREADSHEET_BLOCK_LABEL_PLACEHOLDERS;exports.CONTENT_ALIGNS=o.CONTENT_ALIGNS;exports.CONTENT_COLORS=o.CONTENT_COLORS;exports.CONTENT_MEASURES=o.CONTENT_MEASURES;exports.DEFAULT_CONTENT_ALIGN=o.DEFAULT_CONTENT_ALIGN;exports.DEFAULT_CONTENT_COLORS=o.DEFAULT_CONTENT_COLORS;exports.DEFAULT_CONTENT_MEASURE=o.DEFAULT_CONTENT_MEASURE;exports.DEFAULT_MARKDOWN_STYLE=o.DEFAULT_MARKDOWN_STYLE;exports.DEFAULT_MARKDOWN_STYLES=o.DEFAULT_MARKDOWN_STYLES;exports.toContentAlign=o.toContentAlign;exports.toContentColors=o.toContentColors;exports.toContentMeasure=o.toContentMeasure;
|
package/dist/index.client.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export type { Root, RootContent } from "mdast";
|
|
2
|
+
export { type CodeBlockLabels, DEFAULT_CODE_BLOCK_LABELS } from "./components/codeBlockLabels.ts";
|
|
3
|
+
export { DEFAULT_DISPLAY_MATH_LABELS, type DisplayMathLabels } from "./components/displayMathLabels.ts";
|
|
2
4
|
export { DEFAULT_MARKDOWN_EMBED_LABELS, type MarkdownEmbedLabels } from "./components/embeds/embedLabels.ts";
|
|
3
5
|
export { HostedScrollArea, type HostedScrollAreaProps, type HostedScrollerProps, type MarkdownScrollBarRenderer } from "./components/HostedScrollArea.tsx";
|
|
4
6
|
export type { MarkdownLinkAttributes } from "./components/links.ts";
|
|
5
|
-
export { type MarkdownLinkComponent, type MarkdownLinkKind, type MarkdownLinkProps, MarkdownRenderer } from "./components/MarkdownRenderer.tsx";
|
|
7
|
+
export { type MarkdownImageComponent, type MarkdownImageProps, type MarkdownLinkComponent, type MarkdownLinkKind, type MarkdownLinkProps, MarkdownRenderer } from "./components/MarkdownRenderer.tsx";
|
|
6
8
|
export { type MarkdownHeadingHrefResolver, type MarkdownHeadingSelectHandler, type MarkdownToolbarMenu, type MarkdownToolbarState, MarkdownViewer, type MarkdownViewerErrorInfo, type MarkdownViewerHeading, type MarkdownViewerParseResult, type MarkdownViewerProps, useMarkdownToolbarState, } from "./components/MarkdownViewer.tsx";
|
|
7
9
|
export { DEFAULT_MERMAID_DIAGRAM_LABELS, DEFAULT_MERMAID_INTERACTION, MermaidDiagram, type MermaidDiagramLabels, type MermaidInteractionMode } from "./components/MermaidDiagram.tsx";
|
|
8
10
|
export type { MarkdownMathDiagnostic } from "./components/mathRendering.ts";
|
|
@@ -30,7 +32,7 @@ export type { MarkdownImageSourceAnswer, MarkdownImageSourceReader } from "./com
|
|
|
30
32
|
export { SPREADSHEET_BLOCK_LABEL_CATALOGS, SPREADSHEET_BLOCK_LABEL_PLACEHOLDERS, type SpreadsheetBlockLabelKey, type SpreadsheetBlockLabels, type SpreadsheetBlockLocale } from "./components/spreadsheetLabels.ts";
|
|
31
33
|
export { DEFAULT_SVG_IMAGE_LABELS, type SvgImageLabels } from "./components/svgImageLabels.ts";
|
|
32
34
|
export { TableOfContents } from "./components/TableOfContents.tsx";
|
|
33
|
-
export { DEFAULT_MARKDOWN_VIEWER_LABELS, type MarkdownViewerLabels, type MermaidViewerLabels, type SpreadsheetViewerLabels, type SvgImageViewerLabels } from "./components/viewerLabels.ts";
|
|
35
|
+
export { type CodeBlockViewerLabels, DEFAULT_MARKDOWN_VIEWER_LABELS, type DisplayMathViewerLabels, type MarkdownViewerLabels, type MermaidViewerLabels, type SpreadsheetViewerLabels, type SvgImageViewerLabels, } from "./components/viewerLabels.ts";
|
|
34
36
|
export { remarkCustomHeadingId } from "./plugins/remark-custom-heading-id.ts";
|
|
35
37
|
export { remarkFootnoteBackLink } from "./plugins/remark-footnote-back-link.ts";
|
|
36
38
|
export { remarkHtmlAnchorToLink } from "./plugins/remark-html-anchor-to-link.ts";
|
|
@@ -39,4 +41,4 @@ export { remarkImageSize } from "./plugins/remark-image-size.ts";
|
|
|
39
41
|
export { remarkParentNode } from "./plugins/remark-parent-node.ts";
|
|
40
42
|
export { remarkZennMessage } from "./plugins/remark-zenn-message.ts";
|
|
41
43
|
export { extractHeadings } from "./utils/extractHeadings.ts";
|
|
42
|
-
export { CONTENT_ALIGNS, type ContentAlign, DEFAULT_CONTENT_ALIGN, DEFAULT_MARKDOWN_STYLE, DEFAULT_MARKDOWN_STYLES, type MarkdownStyleOption, toContentAlign } from "./viewer-settings.ts";
|
|
44
|
+
export { CONTENT_ALIGNS, CONTENT_COLORS, CONTENT_MEASURES, type ContentAlign, type ContentColors, type ContentMeasure, DEFAULT_CONTENT_ALIGN, DEFAULT_CONTENT_COLORS, DEFAULT_CONTENT_MEASURE, DEFAULT_MARKDOWN_STYLE, DEFAULT_MARKDOWN_STYLES, type MarkdownStyleOption, toContentAlign, toContentColors, toContentMeasure, } from "./viewer-settings.ts";
|
package/dist/index.client.js
CHANGED
|
@@ -1,53 +1,61 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { S as
|
|
3
|
-
import { CONTENT_ALIGNS as
|
|
1
|
+
import { B as o, C as s, D as E, a as L, b as r, c as A, d as t, e as N, f as n, g as T, E as _, F as d, h as S, i as D, H as C, j as m, I as M, k as O, L as i, l as k, m as R, M as B, n as F, o as I, N as l, P as U, S as g, p as H, T as c, q as p, r as G, s as K, Z as P, t as f, u as h, v as x, w as u, x as w, y as W, z as b, A as Z, G as V, J as Y } from "./extractHeadings-BAhmauKo.js";
|
|
2
|
+
import { S as z, a as j } from "./code-blocks-C6J8rVTc.js";
|
|
3
|
+
import { CONTENT_ALIGNS as y, CONTENT_COLORS as J, CONTENT_MEASURES as Q, DEFAULT_CONTENT_ALIGN as X, DEFAULT_CONTENT_COLORS as $, DEFAULT_CONTENT_MEASURE as ee, DEFAULT_MARKDOWN_STYLE as ae, DEFAULT_MARKDOWN_STYLES as oe, toContentAlign as se, toContentColors as Ee, toContentMeasure as Le } from "./viewer-settings.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
o as BlockquoteNode,
|
|
6
|
+
y as CONTENT_ALIGNS,
|
|
7
|
+
J as CONTENT_COLORS,
|
|
8
|
+
Q as CONTENT_MEASURES,
|
|
9
|
+
s as CodeNode,
|
|
10
|
+
E as DEFAULT_CODE_BLOCK_LABELS,
|
|
11
|
+
X as DEFAULT_CONTENT_ALIGN,
|
|
12
|
+
$ as DEFAULT_CONTENT_COLORS,
|
|
13
|
+
ee as DEFAULT_CONTENT_MEASURE,
|
|
14
|
+
L as DEFAULT_DISPLAY_MATH_LABELS,
|
|
9
15
|
r as DEFAULT_MARKDOWN_EMBED_LABELS,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
16
|
+
ae as DEFAULT_MARKDOWN_STYLE,
|
|
17
|
+
oe as DEFAULT_MARKDOWN_STYLES,
|
|
18
|
+
A as DEFAULT_MARKDOWN_VIEWER_LABELS,
|
|
19
|
+
t as DEFAULT_MERMAID_DIAGRAM_LABELS,
|
|
20
|
+
N as DEFAULT_MERMAID_INTERACTION,
|
|
21
|
+
n as DEFAULT_SVG_IMAGE_LABELS,
|
|
22
|
+
T as DeleteNode,
|
|
23
|
+
_ as EmphasisNode,
|
|
24
|
+
d as FootnoteBackLinkNode,
|
|
25
|
+
S as FootnoteReferenceNode,
|
|
26
|
+
D as FootnotesSection,
|
|
27
|
+
C as HeadingNode,
|
|
28
|
+
m as HostedScrollArea,
|
|
29
|
+
M as ImageNode,
|
|
30
|
+
O as InlineCodeNode,
|
|
31
|
+
i as LinkNode,
|
|
32
|
+
k as ListItemNode,
|
|
33
|
+
R as ListNode,
|
|
34
|
+
B as MarkdownRenderer,
|
|
35
|
+
F as MarkdownViewer,
|
|
36
|
+
I as MermaidDiagram,
|
|
37
|
+
l as NodesRenderer,
|
|
38
|
+
U as ParagraphNode,
|
|
39
|
+
z as SPREADSHEET_BLOCK_LABEL_CATALOGS,
|
|
40
|
+
j as SPREADSHEET_BLOCK_LABEL_PLACEHOLDERS,
|
|
35
41
|
g as SpreadsheetBlock,
|
|
36
|
-
|
|
42
|
+
H as StrongNode,
|
|
37
43
|
c as TableNode,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
p as TableOfContents,
|
|
45
|
+
G as TextNode,
|
|
46
|
+
K as ThematicBreakNode,
|
|
47
|
+
P as ZennDetailsNode,
|
|
48
|
+
f as ZennMessageNode,
|
|
49
|
+
h as extractHeadings,
|
|
50
|
+
x as remarkCustomHeadingId,
|
|
51
|
+
u as remarkFootnoteBackLink,
|
|
52
|
+
w as remarkHtmlAnchorToLink,
|
|
53
|
+
W as remarkHtmlInHtml,
|
|
54
|
+
b as remarkImageSize,
|
|
55
|
+
Z as remarkParentNode,
|
|
56
|
+
V as remarkZennMessage,
|
|
57
|
+
se as toContentAlign,
|
|
58
|
+
Ee as toContentColors,
|
|
59
|
+
Le as toContentMeasure,
|
|
60
|
+
Y as useMarkdownToolbarState
|
|
53
61
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,53 +1,61 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { S as
|
|
3
|
-
import { CONTENT_ALIGNS as
|
|
1
|
+
import { B as o, C as s, D as E, a as L, b as r, c as A, d as t, e as N, f as n, g as T, E as _, F as d, h as S, i as D, H as C, j as m, I as M, k as O, L as i, l as k, m as R, M as B, n as F, o as I, N as l, P as U, S as g, p as H, T as c, q as p, r as G, s as K, Z as P, t as f, u as h, v as x, w as u, x as w, y as W, z as b, A as Z, G as V, J as Y } from "./extractHeadings-BAhmauKo.js";
|
|
2
|
+
import { S as z, a as j } from "./code-blocks-C6J8rVTc.js";
|
|
3
|
+
import { CONTENT_ALIGNS as y, CONTENT_COLORS as J, CONTENT_MEASURES as Q, DEFAULT_CONTENT_ALIGN as X, DEFAULT_CONTENT_COLORS as $, DEFAULT_CONTENT_MEASURE as ee, DEFAULT_MARKDOWN_STYLE as ae, DEFAULT_MARKDOWN_STYLES as oe, toContentAlign as se, toContentColors as Ee, toContentMeasure as Le } from "./viewer-settings.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
o as BlockquoteNode,
|
|
6
|
+
y as CONTENT_ALIGNS,
|
|
7
|
+
J as CONTENT_COLORS,
|
|
8
|
+
Q as CONTENT_MEASURES,
|
|
9
|
+
s as CodeNode,
|
|
10
|
+
E as DEFAULT_CODE_BLOCK_LABELS,
|
|
11
|
+
X as DEFAULT_CONTENT_ALIGN,
|
|
12
|
+
$ as DEFAULT_CONTENT_COLORS,
|
|
13
|
+
ee as DEFAULT_CONTENT_MEASURE,
|
|
14
|
+
L as DEFAULT_DISPLAY_MATH_LABELS,
|
|
9
15
|
r as DEFAULT_MARKDOWN_EMBED_LABELS,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
16
|
+
ae as DEFAULT_MARKDOWN_STYLE,
|
|
17
|
+
oe as DEFAULT_MARKDOWN_STYLES,
|
|
18
|
+
A as DEFAULT_MARKDOWN_VIEWER_LABELS,
|
|
19
|
+
t as DEFAULT_MERMAID_DIAGRAM_LABELS,
|
|
20
|
+
N as DEFAULT_MERMAID_INTERACTION,
|
|
21
|
+
n as DEFAULT_SVG_IMAGE_LABELS,
|
|
22
|
+
T as DeleteNode,
|
|
23
|
+
_ as EmphasisNode,
|
|
24
|
+
d as FootnoteBackLinkNode,
|
|
25
|
+
S as FootnoteReferenceNode,
|
|
26
|
+
D as FootnotesSection,
|
|
27
|
+
C as HeadingNode,
|
|
28
|
+
m as HostedScrollArea,
|
|
29
|
+
M as ImageNode,
|
|
30
|
+
O as InlineCodeNode,
|
|
31
|
+
i as LinkNode,
|
|
32
|
+
k as ListItemNode,
|
|
33
|
+
R as ListNode,
|
|
34
|
+
B as MarkdownRenderer,
|
|
35
|
+
F as MarkdownViewer,
|
|
36
|
+
I as MermaidDiagram,
|
|
37
|
+
l as NodesRenderer,
|
|
38
|
+
U as ParagraphNode,
|
|
39
|
+
z as SPREADSHEET_BLOCK_LABEL_CATALOGS,
|
|
40
|
+
j as SPREADSHEET_BLOCK_LABEL_PLACEHOLDERS,
|
|
35
41
|
g as SpreadsheetBlock,
|
|
36
|
-
|
|
42
|
+
H as StrongNode,
|
|
37
43
|
c as TableNode,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
p as TableOfContents,
|
|
45
|
+
G as TextNode,
|
|
46
|
+
K as ThematicBreakNode,
|
|
47
|
+
P as ZennDetailsNode,
|
|
48
|
+
f as ZennMessageNode,
|
|
49
|
+
h as extractHeadings,
|
|
50
|
+
x as remarkCustomHeadingId,
|
|
51
|
+
u as remarkFootnoteBackLink,
|
|
52
|
+
w as remarkHtmlAnchorToLink,
|
|
53
|
+
W as remarkHtmlInHtml,
|
|
54
|
+
b as remarkImageSize,
|
|
55
|
+
Z as remarkParentNode,
|
|
56
|
+
V as remarkZennMessage,
|
|
57
|
+
se as toContentAlign,
|
|
58
|
+
Ee as toContentColors,
|
|
59
|
+
Le as toContentMeasure,
|
|
60
|
+
Y as useMarkdownToolbarState
|
|
53
61
|
};
|