@aiquants/markdown 9.0.0 → 10.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 +22 -17
- package/dist/{abnfDiagram-VRR7QNED-DPvv0JN7.js → abnfDiagram-VRR7QNED-CYA0Qdic.js} +3 -3
- package/dist/{abnfDiagram-VRR7QNED-BlcBSkWc.cjs → abnfDiagram-VRR7QNED-eurBMDzU.cjs} +1 -1
- package/dist/{arc-b3PXY3wd.js → arc-BEWKpekE.js} +1 -1
- package/dist/{arc-DnEVH7-N.cjs → arc-DE0KP7Dq.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-BPesVaHB.cjs → architectureDiagram-ZJ3FMSHR-CGhHOaMo.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-BPDNqRgJ.js → architectureDiagram-ZJ3FMSHR-CHGNHywO.js} +2 -2
- package/dist/{blockDiagram-677ZJIJ3-D1wkf-um.cjs → blockDiagram-677ZJIJ3-BaGVzolE.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-Bif7ObTM.js → blockDiagram-677ZJIJ3-DzwYMqTi.js} +3 -3
- package/dist/{c4Diagram-LMCZKHZV-BTR45GVa.js → c4Diagram-LMCZKHZV-DN0oBwXJ.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-ByUwS5Pa.cjs → c4Diagram-LMCZKHZV-u10-6vWB.cjs} +1 -1
- package/dist/{channel-s9lqY49F.cjs → channel-DNeAktxT.cjs} +1 -1
- package/dist/{channel-BjDEP12v.js → channel-jBqxYlqx.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-3Yxool5g.js → chunk-2Q5K7J3B-CtqZCJKT.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-GdBcW8di.cjs → chunk-2Q5K7J3B-D1zCIQMT.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-CVTMS7GT.js → chunk-32BRIVSS-Cana8p5k.js} +1 -1
- package/dist/{chunk-32BRIVSS-B08XoiLi.cjs → chunk-32BRIVSS-DOd1kGZA.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-D9iWNvvu.js → chunk-5VM5RSS4-CQ1lkhhT.js} +1 -1
- package/dist/{chunk-5VM5RSS4-BQoi-IrE.cjs → chunk-5VM5RSS4-DVLwboqR.cjs} +1 -1
- package/dist/{chunk-EX3LRPZG-CRf3FYTC.js → chunk-EX3LRPZG-Cb1jrGLX.js} +4 -4
- package/dist/{chunk-EX3LRPZG-BXIZ7mJ_.cjs → chunk-EX3LRPZG-yCnsFHxB.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-BziKhEzJ.cjs → chunk-JWPE2WC7-BZ9nUeyl.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-D2PL9wSE.js → chunk-JWPE2WC7-Bkx-q_31.js} +1 -1
- package/dist/{chunk-MOJQB5TN-DcKI-L1a.js → chunk-MOJQB5TN-DDpWrhot.js} +1 -1
- package/dist/{chunk-MOJQB5TN-BZPg0rA4.cjs → chunk-MOJQB5TN-DF1lwGu5.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-DtwY_vfa.cjs → chunk-PUDLZKDR-BNRDFRXe.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-DDUAtfaX.js → chunk-PUDLZKDR-BTWY1yiQ.js} +6 -6
- package/dist/{chunk-RYQCIY6F-BczXRQc_.cjs → chunk-RYQCIY6F-B1obSV-6.cjs} +1 -1
- package/dist/{chunk-RYQCIY6F-CrSm-DUq.js → chunk-RYQCIY6F-B7L5EllI.js} +1 -1
- package/dist/{chunk-V7JOEXUC-fKZqn2BY.js → chunk-V7JOEXUC-Bm_JiVZ3.js} +5 -5
- package/dist/{chunk-V7JOEXUC-DHDaKlaz.cjs → chunk-V7JOEXUC-CvWipsVi.cjs} +1 -1
- package/dist/{chunk-VR4S4FIN-CB1TUCm-.js → chunk-VR4S4FIN-4KrGYB-C.js} +1 -1
- package/dist/{chunk-VR4S4FIN-CbOikBFH.cjs → chunk-VR4S4FIN-hwPR--n9.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-BNQCeyB9.cjs → chunk-XXDRQBXY-8mWP2-nt.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-K8anqUB1.js → chunk-XXDRQBXY-BWyzGhER.js} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-0DLLfHtC.js → classDiagram-OUVF2IWQ-CJsS9hMZ.js} +2 -2
- package/dist/{classDiagram-OUVF2IWQ-D1vfgcCB.cjs → classDiagram-OUVF2IWQ-FSF9UhMj.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-0DLLfHtC.js → classDiagram-v2-EOCWNBFH-CJsS9hMZ.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-D1vfgcCB.cjs → classDiagram-v2-EOCWNBFH-FSF9UhMj.cjs} +1 -1
- package/dist/components/SpreadsheetBlock.d.ts +1 -0
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-DSrvI7Rp.js → cose-bilkent-JH36ORCC-BcC-Wwam.js} +1 -1
- package/dist/{cose-bilkent-JH36ORCC-Flvn8Q3R.cjs → cose-bilkent-JH36ORCC-DWibrsnW.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-BGtSNTPQ.js → cynefinDiagram-TSTJHNR4-Cg1ddgeH.js} +2 -2
- package/dist/{cynefinDiagram-TSTJHNR4-BxqOgmm9.cjs → cynefinDiagram-TSTJHNR4-Cp1h2-e6.cjs} +1 -1
- package/dist/{dagre-VKFMJZFB-Bq5NKuKi.js → dagre-VKFMJZFB-BUh2zhjI.js} +2 -2
- package/dist/{dagre-VKFMJZFB-CIQyEWnl.cjs → dagre-VKFMJZFB-Czh6c6hy.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-B4shMan7.js → diagram-FQU43EPY-BtWgv1di.js} +2 -2
- package/dist/{diagram-FQU43EPY-C-3vCuEY.cjs → diagram-FQU43EPY-D3B1dqU1.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-BnVPH5jd.cjs → diagram-G47NLZAW-1CaqVF7V.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-BnJ5uYMd.js → diagram-G47NLZAW-BzoAXzcD.js} +3 -3
- package/dist/{diagram-NH7WQ7WH-9s11j-Nx.js → diagram-NH7WQ7WH-DHYXjMeR.js} +2 -2
- package/dist/{diagram-NH7WQ7WH-4RGgOu7p.cjs → diagram-NH7WQ7WH-SP-bC7ec.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-CgqOV0tg.js → diagram-OA4YK3LP-Dpb_X5Hh.js} +3 -3
- package/dist/{diagram-OA4YK3LP-BBtbKikh.cjs → diagram-OA4YK3LP-GQmeRf1O.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-CvzP7VJ3.js → diagram-WEI45ONY-21kWbraV.js} +2 -2
- package/dist/{diagram-WEI45ONY-DZKSviH2.cjs → diagram-WEI45ONY-Dtt-2TEo.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-CJSyu4o9.js → ebnfDiagram-CCIWWBDH-DAA7ae1D.js} +3 -3
- package/dist/{ebnfDiagram-CCIWWBDH-DpiouxMS.cjs → ebnfDiagram-CCIWWBDH-yz62J_nS.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-BxRdYBzJ.js → erDiagram-Q63AITRT-BMkAjnh7.js} +4 -4
- package/dist/{erDiagram-Q63AITRT-BT1bGFxN.cjs → erDiagram-Q63AITRT-D8yJBZGU.cjs} +1 -1
- package/dist/{extractHeadings-SqtThWou.js → extractHeadings-BB6ZLvWu.js} +5418 -5403
- package/dist/extractHeadings-GvfJwNxO.cjs +314 -0
- package/dist/flowDiagram-23GEKE2U-BZcpYPK4.js +7 -0
- package/dist/flowDiagram-23GEKE2U-CeCAObAc.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-BbNFbubH.js → ganttDiagram-NO4QXBWP-BGIvTWCj.js} +2 -2
- package/dist/{ganttDiagram-NO4QXBWP-BXUukgtA.cjs → ganttDiagram-NO4QXBWP-NrdWH7Dz.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-BY7URUuV.js → gitGraphDiagram-IHSO6WYX-FeuQFvfT.js} +3 -3
- package/dist/{gitGraphDiagram-IHSO6WYX-CtRl8SF8.cjs → gitGraphDiagram-IHSO6WYX-zLZeezJ0.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-BwM_aV37.js → infoDiagram-FWYZ7A6U-OSG1m3oM.js} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-DjbpQufv.cjs → infoDiagram-FWYZ7A6U-_dgzOtXg.cjs} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-CWHT2wjh.js → ishikawaDiagram-FXEZZL3T-CzWd0QMP.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-D0k3NpJW.cjs → ishikawaDiagram-FXEZZL3T-DIGB3OT_.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-CTBamWVg.js → journeyDiagram-5HDEW3XC-BE0OaqTn.js} +4 -4
- package/dist/{journeyDiagram-5HDEW3XC-BAzrW3sk.cjs → journeyDiagram-5HDEW3XC-DkxVricX.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-DX8ATmyc.js → kanban-definition-HUTT4EX6-BDfhy8eh.js} +2 -2
- package/dist/{kanban-definition-HUTT4EX6-vEBxhqy3.cjs → kanban-definition-HUTT4EX6-XxRDkcBx.cjs} +1 -1
- package/dist/{linear-CUPbFHK0.js → linear-O4EBzkc8.js} +1 -1
- package/dist/{linear-DO7t2MIy.cjs → linear-cHCVVFP4.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-CZiyButG.js → mindmap-definition-LN4V7U3C-D0hxpmbu.js} +3 -3
- package/dist/{mindmap-definition-LN4V7U3C-CPgbGhe0.cjs → mindmap-definition-LN4V7U3C-b3-6eyyt.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-DFSWh2UC.cjs → pegDiagram-2B236MQR-BK7uPEAB.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-BTTxMeDC.js → pegDiagram-2B236MQR-RJV3Czqa.js} +3 -3
- package/dist/{pieDiagram-ENE6RG2P-DWsTb8I9.cjs → pieDiagram-ENE6RG2P-C_36fpnW.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-5OqZWuO-.js → pieDiagram-ENE6RG2P-DZfsigd-.js} +3 -3
- package/dist/{quadrantDiagram-ABIIQ3AL-DimV94Rb.js → quadrantDiagram-ABIIQ3AL-CSp5iqoU.js} +2 -2
- package/dist/{quadrantDiagram-ABIIQ3AL-BnIKvRMS.cjs → quadrantDiagram-ABIIQ3AL-vgf1WShL.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-D7cUshy0.cjs → railroadDiagram-RFXS5EU6-BXR0a-Cu.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-CO_q8JT9.js → railroadDiagram-RFXS5EU6-DAsVQQFP.js} +3 -3
- package/dist/{requirementDiagram-TGXJPOKE-CjPsjAsx.cjs → requirementDiagram-TGXJPOKE-CRhfuc9R.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-Ceitr12-.js → requirementDiagram-TGXJPOKE-DwIrkBKf.js} +3 -3
- package/dist/{sankeyDiagram-HTMAVEWB-CQhx84em.cjs → sankeyDiagram-HTMAVEWB-BMWqqmDK.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-CAfuQjzU.js → sankeyDiagram-HTMAVEWB-C78HhAJS.js} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-BZ2yIdO6.js → sequenceDiagram-DBY2YBRQ-CnzaQ_rF.js} +3 -3
- package/dist/{sequenceDiagram-DBY2YBRQ-Cr1VcoK2.cjs → sequenceDiagram-DBY2YBRQ-Dx5x59tf.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-B5X1945u.cjs → sizeCapture-X5ZJPWSS-C_iDBgb-.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-CA-VZP1J.js → sizeCapture-X5ZJPWSS-cE-TP8Rj.js} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-CbAk-IE5.js → stateDiagram-2N3HPSRC-BCeQQ1y6.js} +2 -2
- package/dist/{stateDiagram-2N3HPSRC-BeP4b2HS.cjs → stateDiagram-2N3HPSRC-CGTBi2mx.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-C5uUx1aU.js → stateDiagram-v2-6OUMAXLB-B_7vWqQA.js} +2 -2
- package/dist/{stateDiagram-v2-6OUMAXLB-L_ypLgkx.cjs → stateDiagram-v2-6OUMAXLB-CxTcyveK.cjs} +1 -1
- package/dist/{swimlanes-5IMT3BWC-BOKZHjmn.js → swimlanes-5IMT3BWC-BGZ4AqRG.js} +3 -3
- package/dist/{swimlanes-5IMT3BWC-DGpEXqaM.cjs → swimlanes-5IMT3BWC-DoVEQSsm.cjs} +1 -1
- package/dist/{swimlanesDiagram-G3AALYLV-DqChJVS9.cjs → swimlanesDiagram-G3AALYLV-CQG6O6Ws.cjs} +1 -1
- package/dist/{swimlanesDiagram-G3AALYLV-BG07hh3H.js → swimlanesDiagram-G3AALYLV-D1qctaY1.js} +2 -2
- package/dist/{timeline-definition-FHXFAJF6-Ct3xWe_j.js → timeline-definition-FHXFAJF6-D7mCctKM.js} +2 -2
- package/dist/{timeline-definition-FHXFAJF6-O0HVNX0c.cjs → timeline-definition-FHXFAJF6-DfJV7kEg.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-DCY6NWkD.js → vennDiagram-L72KCM5P-DpoGG-0p.js} +1 -1
- package/dist/{vennDiagram-L72KCM5P-BqOqbGRA.cjs → vennDiagram-L72KCM5P-JBAs3wKP.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-CYStGsZi.js → wardleyDiagram-EHGQE667-Dy-eaRgv.js} +2 -2
- package/dist/{wardleyDiagram-EHGQE667-B2Civob5.cjs → wardleyDiagram-EHGQE667-QdkaDYYo.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-C4GuhADi.cjs → xychartDiagram-FW5EYKEG-BRirBzDB.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-BifGB5it.js → xychartDiagram-FW5EYKEG-DosIK9IK.js} +2 -2
- package/package.json +8 -8
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -115
- package/dist/extractHeadings-B-v1O82x.cjs +0 -314
- package/dist/flowDiagram-23GEKE2U-C-drHfAk.js +0 -7
- package/dist/flowDiagram-23GEKE2U-Cr8_S21X.cjs +0 -1
package/README.md
CHANGED
|
@@ -568,20 +568,26 @@ Total 200 235
|
|
|
568
568
|
around the document never sees it; an Escape already cancelled or ending an input method composition is left alone, and
|
|
569
569
|
a close request without a key (Android's back) leaves full screen too, keeping the table in the document. The browser's
|
|
570
570
|
Fullscreen API is not used, because iPhone Safari offers it to video only.
|
|
571
|
-
- **Editing**: pass `spreadsheetEditor` (`SpreadsheetEditor`: `write`, `undo`, `redo`) to `MarkdownRenderer`
|
|
572
|
-
`MarkdownViewer` and every table with source lines
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
571
|
+
- **Editing**: pass `spreadsheetEditor` (`SpreadsheetEditor`: `write`, `undo`, `redo`, `subscribe`) to `MarkdownRenderer`
|
|
572
|
+
or `MarkdownViewer` and every table with source lines becomes editable, inside list items and quotes too; its root carries
|
|
573
|
+
`data-aqmd-spreadsheet-editable`. The grid shows one spare row and one spare column to grow into (no spare row when the
|
|
574
|
+
table has a footer). Each transaction (a commit, a paste, a delete, a fill) is one write-back,
|
|
575
|
+
`write({ fenceLine, expected, text })`: `fenceLine` is the block's opening fence line (the first of its source lines),
|
|
576
|
+
`expected` the body the table knows and `text` the new body (TSV with line feeds, trailing empty rows and columns removed),
|
|
577
|
+
both as the converter reads the block, without the markers and indentation its source lines carry inside a list item or a
|
|
578
|
+
quote or behind an indented fence. The host replaces the body only when the block still reads `expected`, writing each new
|
|
579
|
+
line with the markers and indentation the block's lines need (the item's indentation, `>`, the fence's indentation), as one
|
|
580
|
+
undo step, and answers `true`; otherwise it changes nothing and answers `false`. A TSV table keeps text only: a change of
|
|
581
|
+
formatting or links alone is refused (the cells keep their state and a notice says why) and a paste keeps its text. A body
|
|
582
|
+
that would put ``` or ~~~ at the start of a line (after up to three spaces) is refused, because it could close the fence.
|
|
583
|
+
The grid's Ctrl+Z and Ctrl+Y call `undo` and `redo` (the editor keeps the one history). A body that comes back from the
|
|
584
|
+
document is the echo of the block's own write and changes nothing; any other body (typed in the editor, undone) is read
|
|
585
|
+
again. `subscribe(listener)` tells the table of every change of the editor's text that is not a write-back (typing, an undo
|
|
586
|
+
or a redo — also through `undo` and `redo` —, a text the host replaced), and answers the unsubscription: the table then
|
|
587
|
+
drops the writes not seen back and shows the document's body again, because an undo that lands before a write's echo is
|
|
588
|
+
drawn leaves the document's body as the table last received it, so no new body would reach the table. The block keeps one
|
|
589
|
+
adapter for its life, and its key ignores its body (see [Viewer, embeds and links](#viewer-embeds-and-links)), so a
|
|
590
|
+
write-back keeps the selection and the scroll.
|
|
585
591
|
- **Languages**: `spreadsheetLocale` (`"en"`, the default, or `"ja"`) picks the language of the block's labels and of the
|
|
586
592
|
grid's own chrome; the viewer's `spreadsheet*` labels replace single entries (see [Labels and languages](#labels-and-languages)).
|
|
587
593
|
- **Hooks**: `data-aqmd-spreadsheet` (the root, which carries `data-source-lines` and the palette's CSS variables),
|
|
@@ -594,9 +600,8 @@ Total 200 235
|
|
|
594
600
|
- **Known limits**: formulas are not calculated (a cell starting with `=` shows as written); a tap does not start editing (the
|
|
595
601
|
spreadsheet's rule); a finger swipe that starts over a scrollable table does not scroll the page; Tab moves inside the grid
|
|
596
602
|
and Escape leaves it; column widths and the zoom are not saved (a reload, or an edit that changes the row or column count,
|
|
597
|
-
resets the widths); printing shows the visible part of the grid only; the grid stays white in the dark scheme;
|
|
598
|
-
|
|
599
|
-
matches and the write is refused with a notice); the clipboard is written only in a secure context (https or localhost).
|
|
603
|
+
resets the widths); printing shows the visible part of the grid only; the grid stays white in the dark scheme; the
|
|
604
|
+
clipboard is written only in a secure context (https or localhost).
|
|
600
605
|
|
|
601
606
|
### Viewer toolbar
|
|
602
607
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as p, r as u, d as a } from "./chunk-MOJQB5TN-
|
|
2
|
-
import { p as f } from "./chunk-JWPE2WC7-
|
|
3
|
-
import { _ as n, U as o } from "./extractHeadings-
|
|
1
|
+
import { g as p, r as u, d as a } from "./chunk-MOJQB5TN-DDpWrhot.js";
|
|
2
|
+
import { p as f } from "./chunk-JWPE2WC7-Bkx-q_31.js";
|
|
3
|
+
import { _ as n, U as o } from "./extractHeadings-BB6ZLvWu.js";
|
|
4
4
|
import { M as c, b as d } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
5
5
|
var v = d().RailroadAbnf.parser.LangiumParser, i = /* @__PURE__ */ n((e) => {
|
|
6
6
|
const r = e.alternatives.map(g);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./chunk-MOJQB5TN-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./chunk-MOJQB5TN-DF1lwGu5.cjs"),u=require("./chunk-JWPE2WC7-BZ9nUeyl.cjs"),n=require("./extractHeadings-GvfJwNxO.cjs"),i=require("./cynefin-VYW2F7L2-MpAliYy9.cjs");var p=i.createRailroadAbnfServices().RailroadAbnf.parser.LangiumParser,o=n.__name(e=>{const r=e.alternatives.map(c);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),c=n.__name(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),f=n.__name(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),d=n.__name(e=>{const r=b(e.primary);if(!e.repeat)return r;const{min:t,max:s}=f(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),b=n.__name(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return o(e.element);case"AbnfOptionalGroup":return{type:"optional",element:o(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),g=n.__name(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),v=n.__name(e=>{u.populateCommonDb(e,a.db),e.title&&a.db.setTitle(e.title),e.rules.map(r=>a.db.addRule(g(r)))},"populateDb"),y={parse:n.__name(e=>{a.db.clear(),n.log.debug("[ABNF Parser] Starting Langium parse");const r=p.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new i.MermaidParseError(r);const t=r.value;n.log.debug("[ABNF Parser] Parsed rules:",t.rules.length),v(t),n.log.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a.db}},_={parser:y,db:a.db,renderer:a.renderer,styles:a.getStyles};exports.diagram=_;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aF as ln, aG as an, aH as y, aI as tn, aJ as M, aK as I, aL as _, aM as un, aN as rn, aO as j, aP as o, aQ as H, aR as sn, aS as on, aT as fn } from "./extractHeadings-
|
|
1
|
+
import { aF as ln, aG as an, aH as y, aI as tn, aJ as M, aK as I, aL as _, aM as un, aN as rn, aO as j, aP as o, aQ as H, aR as sn, aS as on, aT as fn } from "./extractHeadings-BB6ZLvWu.js";
|
|
2
2
|
function cn(l) {
|
|
3
3
|
return l.innerRadius;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./extractHeadings-
|
|
1
|
+
"use strict";const n=require("./extractHeadings-GvfJwNxO.cjs");function $(o){return o.innerRadius}function b(o){return o.outerRadius}function k(o){return o.startAngle}function _(o){return o.endAngle}function nn(o){return o&&o.padAngle}function en(o,x,D,P,h,v,S,s){var E=D-o,r=P-x,e=S-h,p=s-v,i=p*E-e*r;if(!(i*i<n.epsilon))return i=(e*(x-v)-p*(o-h))/i,[o+i*E,x+i*r]}function M(o,x,D,P,h,v,S){var s=o-D,E=x-P,r=(S?v:-v)/n.sqrt(s*s+E*E),e=r*E,p=-r*s,i=o+e,u=x+p,c=D+e,f=P+p,j=(i+c)/2,l=(u+f)/2,y=c-i,g=f-u,A=y*y+g*g,R=h-v,T=i*f-c*u,H=(g<0?-1:1)*n.sqrt(n.max(0,R*R*A-T*T)),I=(T*g-y*H)/A,O=(-T*y-g*H)/A,q=(T*g+y*H)/A,d=(-T*y+g*H)/A,m=I-j,a=O-l,t=q-j,z=d-l;return m*m+a*a>t*t+z*z&&(I=q,O=d),{cx:I,cy:O,x01:-e,y01:-p,x11:I*(h/R-1),y11:O*(h/R-1)}}function an(){var o=$,x=b,D=n.constant(0),P=null,h=k,v=_,S=nn,s=null,E=n.withPath(r);function r(){var e,p,i=+o.apply(this,arguments),u=+x.apply(this,arguments),c=h.apply(this,arguments)-n.halfPi,f=v.apply(this,arguments)-n.halfPi,j=n.abs(f-c),l=f>c;if(s||(s=e=E()),u<i&&(p=u,u=i,i=p),!(u>n.epsilon))s.moveTo(0,0);else if(j>n.tau-n.epsilon)s.moveTo(u*n.cos(c),u*n.sin(c)),s.arc(0,0,u,c,f,!l),i>n.epsilon&&(s.moveTo(i*n.cos(f),i*n.sin(f)),s.arc(0,0,i,f,c,l));else{var y=c,g=f,A=c,R=f,T=j,H=j,I=S.apply(this,arguments)/2,O=I>n.epsilon&&(P?+P.apply(this,arguments):n.sqrt(i*i+u*u)),q=n.min(n.abs(u-i)/2,+D.apply(this,arguments)),d=q,m=q,a,t;if(O>n.epsilon){var z=n.asin(O/i*n.sin(I)),F=n.asin(O/u*n.sin(I));(T-=z*2)>n.epsilon?(z*=l?1:-1,A+=z,R-=z):(T=0,A=R=(c+f)/2),(H-=F*2)>n.epsilon?(F*=l?1:-1,y+=F,g-=F):(H=0,y=g=(c+f)/2)}var B=u*n.cos(y),C=u*n.sin(y),G=i*n.cos(R),J=i*n.sin(R);if(q>n.epsilon){var K=u*n.cos(g),L=u*n.sin(g),N=i*n.cos(A),Q=i*n.sin(A),w;if(j<n.pi)if(w=en(B,C,N,Q,K,L,G,J)){var U=B-w[0],V=C-w[1],W=K-w[0],X=L-w[1],Y=1/n.sin(n.acos((U*W+V*X)/(n.sqrt(U*U+V*V)*n.sqrt(W*W+X*X)))/2),Z=n.sqrt(w[0]*w[0]+w[1]*w[1]);d=n.min(q,(i-Z)/(Y-1)),m=n.min(q,(u-Z)/(Y+1))}else d=m=0}H>n.epsilon?m>n.epsilon?(a=M(N,Q,B,C,u,m,l),t=M(K,L,G,J,u,m,l),s.moveTo(a.cx+a.x01,a.cy+a.y01),m<q?s.arc(a.cx,a.cy,m,n.atan2(a.y01,a.x01),n.atan2(t.y01,t.x01),!l):(s.arc(a.cx,a.cy,m,n.atan2(a.y01,a.x01),n.atan2(a.y11,a.x11),!l),s.arc(0,0,u,n.atan2(a.cy+a.y11,a.cx+a.x11),n.atan2(t.cy+t.y11,t.cx+t.x11),!l),s.arc(t.cx,t.cy,m,n.atan2(t.y11,t.x11),n.atan2(t.y01,t.x01),!l))):(s.moveTo(B,C),s.arc(0,0,u,y,g,!l)):s.moveTo(B,C),!(i>n.epsilon)||!(T>n.epsilon)?s.lineTo(G,J):d>n.epsilon?(a=M(G,J,K,L,i,-d,l),t=M(B,C,N,Q,i,-d,l),s.lineTo(a.cx+a.x01,a.cy+a.y01),d<q?s.arc(a.cx,a.cy,d,n.atan2(a.y01,a.x01),n.atan2(t.y01,t.x01),!l):(s.arc(a.cx,a.cy,d,n.atan2(a.y01,a.x01),n.atan2(a.y11,a.x11),!l),s.arc(0,0,i,n.atan2(a.cy+a.y11,a.cx+a.x11),n.atan2(t.cy+t.y11,t.cx+t.x11),l),s.arc(t.cx,t.cy,d,n.atan2(t.y11,t.x11),n.atan2(t.y01,t.x01),!l))):s.arc(0,0,i,R,A,l)}if(s.closePath(),e)return s=null,e+""||null}return r.centroid=function(){var e=(+o.apply(this,arguments)+ +x.apply(this,arguments))/2,p=(+h.apply(this,arguments)+ +v.apply(this,arguments))/2-n.pi/2;return[n.cos(p)*e,n.sin(p)*e]},r.innerRadius=function(e){return arguments.length?(o=typeof e=="function"?e:n.constant(+e),r):o},r.outerRadius=function(e){return arguments.length?(x=typeof e=="function"?e:n.constant(+e),r):x},r.cornerRadius=function(e){return arguments.length?(D=typeof e=="function"?e:n.constant(+e),r):D},r.padRadius=function(e){return arguments.length?(P=e==null?null:typeof e=="function"?e:n.constant(+e),r):P},r.startAngle=function(e){return arguments.length?(h=typeof e=="function"?e:n.constant(+e),r):h},r.endAngle=function(e){return arguments.length?(v=typeof e=="function"?e:n.constant(+e),r):v},r.padAngle=function(e){return arguments.length?(S=typeof e=="function"?e:n.constant(+e),r):S},r.context=function(e){return arguments.length?(s=e??null,r):s},r}exports.d3arc=an;
|