@leanspec/ui-components 0.2.19 → 0.2.21-dev.21574608473
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 +39 -2
- package/dist/_baseUniq-Bt-G8KSC.js +477 -0
- package/dist/_baseUniq-Ex22lFoA.cjs +1 -0
- package/dist/abap-DV7Q1lGP.cjs +1 -0
- package/dist/abap-Y8Dl9g_6.js +6 -0
- package/dist/actionscript-3-DXOxkRa2.cjs +1 -0
- package/dist/actionscript-3-DZzbMeqX.js +6 -0
- package/dist/ada-D46EKCNf.cjs +1 -0
- package/dist/ada-vP6ak0IW.js +6 -0
- package/dist/andromeeda-BIpZ7gaU.js +4 -0
- package/dist/andromeeda-DVDxRwp5.cjs +1 -0
- package/dist/angular-html-DPB4Rf0C.js +32 -0
- package/dist/angular-html-KMf2QdtP.cjs +1 -0
- package/dist/angular-ts-BxIbo3R1.cjs +1 -0
- package/dist/angular-ts-CTOR2ofC.js +21 -0
- package/dist/apache-BUjz-sD2.js +6 -0
- package/dist/apache-DL1xuH1f.cjs +1 -0
- package/dist/apex-6AM9YZbQ.cjs +1 -0
- package/dist/apex-OyTfjCYK.js +6 -0
- package/dist/apl-CjNiDgad.js +16 -0
- package/dist/apl-Dj2G2M9w.cjs +1 -0
- package/dist/applescript-BPx7YFFu.js +6 -0
- package/dist/applescript-COilsSrZ.cjs +1 -0
- package/dist/ara-B6Lpq1YJ.cjs +1 -0
- package/dist/ara-Z2fSOxSw.js +6 -0
- package/dist/arc-DZ2LCm0s.js +83 -0
- package/dist/arc-Dv6RI0i2.cjs +1 -0
- package/dist/architecture-U656AL7Q-8ZOerd8n.cjs +1 -0
- package/dist/architecture-U656AL7Q-8c02gxec.js +5 -0
- package/dist/architectureDiagram-VXUJARFQ-BunXLKyg.cjs +36 -0
- package/dist/architectureDiagram-VXUJARFQ-U-uGQw8X.js +4661 -0
- package/dist/asciidoc-B-pCoB3G.js +6 -0
- package/dist/asciidoc-DcKqW72n.cjs +1 -0
- package/dist/asm-BTWLY5ym.js +6 -0
- package/dist/asm-DYMFy-sD.cjs +1 -0
- package/dist/astro-CFFExE8Q.js +18 -0
- package/dist/astro-DAOP_Xq6.cjs +1 -0
- package/dist/aurora-x-BwoVEUWZ.js +4 -0
- package/dist/aurora-x-C5IpmIOG.cjs +1 -0
- package/dist/awk-Fb0P9dkn.js +6 -0
- package/dist/awk-IEszImW6.cjs +1 -0
- package/dist/ayu-dark-CDpQIJw4.cjs +1 -0
- package/dist/ayu-dark-DG7aLdHp.js +4 -0
- package/dist/ballerina-Dr6dU4hP.cjs +1 -0
- package/dist/ballerina-oZK-YekG.js +6 -0
- package/dist/bat-0FvbqU9S.js +6 -0
- package/dist/bat-DGkUhhn2.cjs +1 -0
- package/dist/beancount-Bv1Sweoy.cjs +1 -0
- package/dist/beancount-DqJEb89h.js +6 -0
- package/dist/berry-DEMs4LK_.cjs +1 -0
- package/dist/berry-DODBq_Ff.js +6 -0
- package/dist/bibtex-BgA36Z3k.cjs +1 -0
- package/dist/bibtex-EULQRLY5.js +6 -0
- package/dist/bicep-BorU73w0.js +6 -0
- package/dist/bicep-DL0zb-7W.cjs +1 -0
- package/dist/blade-D0HyNvCw.js +20 -0
- package/dist/blade-DEjek0u9.cjs +1 -0
- package/dist/blockDiagram-VD42YOAC-BlLxEg73.js +2256 -0
- package/dist/blockDiagram-VD42YOAC-CJCoXZ5n.cjs +122 -0
- package/dist/bsl-9bVgFeM9.cjs +1 -0
- package/dist/bsl-NkNNwerW.js +8 -0
- package/dist/c-CtlmKnPF.cjs +1 -0
- package/dist/c-eeMepfLm.js +6 -0
- package/dist/c3-Bt581sCe.js +6 -0
- package/dist/c3-DtfRRWXN.cjs +1 -0
- package/dist/c4Diagram-YG6GDRKO-CWDMR1_B.js +1580 -0
- package/dist/c4Diagram-YG6GDRKO-DEr23zJ0.cjs +10 -0
- package/dist/cadence-02UX7mW8.js +6 -0
- package/dist/cadence-DcbmM5v3.cjs +1 -0
- package/dist/cairo-DM6WF2e3.js +8 -0
- package/dist/cairo-li7sQsxU.cjs +1 -0
- package/dist/catppuccin-frappe-Bn4lgmUk.cjs +1 -0
- package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
- package/dist/catppuccin-latte-BPtsb8jD.cjs +1 -0
- package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
- package/dist/catppuccin-macchiato-BLfpQWhT.cjs +1 -0
- package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
- package/dist/catppuccin-mocha-COMta283.cjs +1 -0
- package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
- package/dist/channel-6eiInZuW.js +5 -0
- package/dist/channel-DBGyNiO_.cjs +1 -0
- package/dist/chunk-4BX2VUAB-Bg7zr9kh.cjs +1 -0
- package/dist/chunk-4BX2VUAB-CXaj02kc.js +8 -0
- package/dist/chunk-55IACEB6-C8VnQz_r.cjs +1 -0
- package/dist/chunk-55IACEB6-o1l2wNNZ.js +8 -0
- package/dist/chunk-B4BG7PRW-ByP5AEXO.js +1375 -0
- package/dist/chunk-B4BG7PRW-DeZQh8M3.cjs +165 -0
- package/dist/chunk-DI55MBZ5-Cy8ug2Ot.js +1370 -0
- package/dist/chunk-DI55MBZ5-DTdpGftl.cjs +220 -0
- package/dist/chunk-FMBD7UC4-D2V_FohP.js +19 -0
- package/dist/chunk-FMBD7UC4-DcgwIHU_.cjs +15 -0
- package/dist/chunk-QN33PNHL-BgDnNc7H.js +19 -0
- package/dist/chunk-QN33PNHL-DRy_WicR.cjs +1 -0
- package/dist/chunk-QZHKN3VN--CtIzUYG.js +15 -0
- package/dist/chunk-QZHKN3VN-Dj_T5FUh.cjs +1 -0
- package/dist/chunk-TZMSLE5B-7AzBIlHJ.cjs +1 -0
- package/dist/chunk-TZMSLE5B-Co2797zI.js +64 -0
- package/dist/clarity-PKm5CwqM.js +6 -0
- package/dist/clarity-gPuvqtpF.cjs +1 -0
- package/dist/classDiagram-2ON5EDUG-DGQroK97.cjs +1 -0
- package/dist/classDiagram-2ON5EDUG-DuGJj6Wa.js +16 -0
- package/dist/classDiagram-v2-WZHVMYZB-DGQroK97.cjs +1 -0
- package/dist/classDiagram-v2-WZHVMYZB-DuGJj6Wa.js +16 -0
- package/dist/clojure-CXJfHrL3.js +6 -0
- package/dist/clojure-OUsr1SUl.cjs +1 -0
- package/dist/clone-Ctpto5BP.js +8 -0
- package/dist/clone-D2QvKKnn.cjs +1 -0
- package/dist/cmake-BJz8BOTU.js +6 -0
- package/dist/cmake-jM6P58qY.cjs +1 -0
- package/dist/cobol-CcrsCSUZ.cjs +1 -0
- package/dist/cobol-HihOMwht.js +10 -0
- package/dist/code-block-37QAKDTI-CH73VfVt.cjs +2 -0
- package/dist/code-block-37QAKDTI-CV0fNy9d.js +27 -0
- package/dist/codeowners-Bt9yU6NX.js +6 -0
- package/dist/codeowners-QhPK6lIJ.cjs +1 -0
- package/dist/codeql-D9-TdUN8.cjs +1 -0
- package/dist/codeql-DHkodjjI.js +6 -0
- package/dist/coffee-DGBR_nr_.js +8 -0
- package/dist/coffee-DycxIFwY.cjs +1 -0
- package/dist/common-lisp-C77gR-8i.cjs +1 -0
- package/dist/common-lisp-EVqT9Zhp.js +6 -0
- package/dist/components/ai-elements/agent.d.ts +27 -0
- package/dist/components/ai-elements/agent.d.ts.map +1 -0
- package/dist/components/ai-elements/artifact.d.ts +24 -0
- package/dist/components/ai-elements/artifact.d.ts.map +1 -0
- package/dist/components/ai-elements/attachments.d.ts +55 -0
- package/dist/components/ai-elements/attachments.d.ts.map +1 -0
- package/dist/components/ai-elements/audio-player.d.ts +30 -0
- package/dist/components/ai-elements/audio-player.d.ts.map +1 -0
- package/dist/components/ai-elements/canvas.d.ts +9 -0
- package/dist/components/ai-elements/canvas.d.ts.map +1 -0
- package/dist/components/ai-elements/chain-of-thought.d.ts +30 -0
- package/dist/components/ai-elements/chain-of-thought.d.ts.map +1 -0
- package/dist/components/ai-elements/checkpoint.d.ts +12 -0
- package/dist/components/ai-elements/checkpoint.d.ts.map +1 -0
- package/dist/components/ai-elements/code-block.d.ts +46 -0
- package/dist/components/ai-elements/code-block.d.ts.map +1 -0
- package/dist/components/ai-elements/commit.d.ts +65 -0
- package/dist/components/ai-elements/commit.d.ts.map +1 -0
- package/dist/components/ai-elements/confirmation.d.ts +50 -0
- package/dist/components/ai-elements/confirmation.d.ts.map +1 -0
- package/dist/components/ai-elements/connection.d.ts +3 -0
- package/dist/components/ai-elements/connection.d.ts.map +1 -0
- package/dist/components/ai-elements/context.d.ts +33 -0
- package/dist/components/ai-elements/context.d.ts.map +1 -0
- package/dist/components/ai-elements/controls.d.ts +5 -0
- package/dist/components/ai-elements/controls.d.ts.map +1 -0
- package/dist/components/ai-elements/conversation.d.ts +16 -0
- package/dist/components/ai-elements/conversation.d.ts.map +1 -0
- package/dist/components/ai-elements/edge.d.ts +6 -0
- package/dist/components/ai-elements/edge.d.ts.map +1 -0
- package/dist/components/ai-elements/environment-variables.d.ts +39 -0
- package/dist/components/ai-elements/environment-variables.d.ts.map +1 -0
- package/dist/components/ai-elements/file-tree.d.ts +27 -0
- package/dist/components/ai-elements/file-tree.d.ts.map +1 -0
- package/dist/components/ai-elements/image.d.ts +7 -0
- package/dist/components/ai-elements/image.d.ts.map +1 -0
- package/dist/components/ai-elements/index.d.ts +53 -0
- package/dist/components/ai-elements/index.d.ts.map +1 -0
- package/dist/components/ai-elements/inline-citation.d.ts +39 -0
- package/dist/components/ai-elements/inline-citation.d.ts.map +1 -0
- package/dist/components/ai-elements/loader.d.ts +6 -0
- package/dist/components/ai-elements/loader.d.ts.map +1 -0
- package/dist/components/ai-elements/message.d.ts +39 -0
- package/dist/components/ai-elements/message.d.ts.map +1 -0
- package/dist/components/ai-elements/mic-selector.d.ts +46 -0
- package/dist/components/ai-elements/mic-selector.d.ts.map +1 -0
- package/dist/components/ai-elements/model-selector.d.ts +36 -0
- package/dist/components/ai-elements/model-selector.d.ts.map +1 -0
- package/dist/components/ai-elements/node.d.ts +22 -0
- package/dist/components/ai-elements/node.d.ts.map +1 -0
- package/dist/components/ai-elements/open-in-chat.d.ts +29 -0
- package/dist/components/ai-elements/open-in-chat.d.ts.map +1 -0
- package/dist/components/ai-elements/package-info.d.ts +30 -0
- package/dist/components/ai-elements/package-info.d.ts.map +1 -0
- package/dist/components/ai-elements/panel.d.ts +6 -0
- package/dist/components/ai-elements/panel.d.ts.map +1 -0
- package/dist/components/ai-elements/persona.d.ts +49 -0
- package/dist/components/ai-elements/persona.d.ts.map +1 -0
- package/dist/components/ai-elements/plan.d.ts +26 -0
- package/dist/components/ai-elements/plan.d.ts.map +1 -0
- package/dist/components/ai-elements/prompt-input.d.ts +137 -0
- package/dist/components/ai-elements/prompt-input.d.ts.map +1 -0
- package/dist/components/ai-elements/queue.d.ts +62 -0
- package/dist/components/ai-elements/queue.d.ts.map +1 -0
- package/dist/components/ai-elements/reasoning.d.ts +27 -0
- package/dist/components/ai-elements/reasoning.d.ts.map +1 -0
- package/dist/components/ai-elements/sandbox.d.ts +25 -0
- package/dist/components/ai-elements/sandbox.d.ts.map +1 -0
- package/dist/components/ai-elements/schema-display.d.ts +56 -0
- package/dist/components/ai-elements/schema-display.d.ts.map +1 -0
- package/dist/components/ai-elements/shimmer.d.ts +10 -0
- package/dist/components/ai-elements/shimmer.d.ts.map +1 -0
- package/dist/components/ai-elements/snippet.d.ts +19 -0
- package/dist/components/ai-elements/snippet.d.ts.map +1 -0
- package/dist/components/ai-elements/sources.d.ts +13 -0
- package/dist/components/ai-elements/sources.d.ts.map +1 -0
- package/dist/components/ai-elements/speech-input.d.ts +59 -0
- package/dist/components/ai-elements/speech-input.d.ts.map +1 -0
- package/dist/components/ai-elements/stack-trace.d.ts +38 -0
- package/dist/components/ai-elements/stack-trace.d.ts.map +1 -0
- package/dist/components/ai-elements/suggestion.d.ts +11 -0
- package/dist/components/ai-elements/suggestion.d.ts.map +1 -0
- package/dist/components/ai-elements/task.d.ts +15 -0
- package/dist/components/ai-elements/task.d.ts.map +1 -0
- package/dist/components/ai-elements/terminal.d.ts +28 -0
- package/dist/components/ai-elements/terminal.d.ts.map +1 -0
- package/dist/components/ai-elements/test-results.d.ts +59 -0
- package/dist/components/ai-elements/test-results.d.ts.map +1 -0
- package/dist/components/ai-elements/tool.d.ts +32 -0
- package/dist/components/ai-elements/tool.d.ts.map +1 -0
- package/dist/components/ai-elements/toolbar.d.ts +6 -0
- package/dist/components/ai-elements/toolbar.d.ts.map +1 -0
- package/dist/components/ai-elements/transcription.d.ts +17 -0
- package/dist/components/ai-elements/transcription.d.ts.map +1 -0
- package/dist/components/ai-elements/voice-selector.d.ts +64 -0
- package/dist/components/ai-elements/voice-selector.d.ts.map +1 -0
- package/dist/components/ai-elements/web-preview.d.ts +35 -0
- package/dist/components/ai-elements/web-preview.d.ts.map +1 -0
- package/dist/components/graph/dependency-graph.d.ts.map +1 -1
- package/dist/components/hierarchy/hierarchy-tree.d.ts +17 -0
- package/dist/components/hierarchy/hierarchy-tree.d.ts.map +1 -0
- package/dist/components/hierarchy/index.d.ts +2 -0
- package/dist/components/hierarchy/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/spec/spec-card.d.ts +1 -1
- package/dist/components/spec/spec-card.d.ts.map +1 -1
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/avatar.d.ts +15 -18
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts +3 -3
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/button-group.d.ts +12 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +4 -4
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +3 -2
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/carousel.d.ts +19 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/command.d.ts +8 -8
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/hover-card.d.ts +7 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +21 -7
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/input-group.d.ts +17 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +3 -4
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/popover.d.ts +2 -1
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/progress.d.ts +5 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/select.d.ts +8 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/separator.d.ts +4 -8
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/tabs.d.ts +8 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/coq-B0L9upzn.js +6 -0
- package/dist/coq-vlPdR5hP.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-KDTEtEwO.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-KnAtiu0m.js +2608 -0
- package/dist/cpp-Cj177cuW.js +18 -0
- package/dist/cpp-DvI2Eoso.cjs +1 -0
- package/dist/crystal-B_WXhL2O.cjs +1 -0
- package/dist/crystal-CRJyc4G-.js +18 -0
- package/dist/csharp-BUkAIRXW.cjs +1 -0
- package/dist/csharp-C7yUs7-w.js +6 -0
- package/dist/css-CECN5uSL.js +6 -0
- package/dist/css-Do0mp2lm.cjs +1 -0
- package/dist/csv-CmYOceLb.js +6 -0
- package/dist/csv-DiEdJzSJ.cjs +1 -0
- package/dist/cue-D1vJRJEx.cjs +1 -0
- package/dist/cue-ZzumE7IT.js +6 -0
- package/dist/cypher-atSM3NsM.cjs +1 -0
- package/dist/cypher-jpdmjtA6.js +6 -0
- package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
- package/dist/cytoscape.esm-Cvf3sx9F.js +18704 -0
- package/dist/d-2qe3NhmZ.cjs +1 -0
- package/dist/d-CBagWSwH.js +6 -0
- package/dist/dagre-6UL2VRFP-B01L_BNW.cjs +4 -0
- package/dist/dagre-6UL2VRFP-D51yjhSx.js +443 -0
- package/dist/dark-plus-Cd5emcYO.cjs +1 -0
- package/dist/dark-plus-pUHDTVV0.js +4 -0
- package/dist/dart-6ObCrKr9.js +6 -0
- package/dist/dart-Ds0_0fwe.cjs +1 -0
- package/dist/dax-CcDT-8dH.js +6 -0
- package/dist/dax-DbkQa40E.cjs +1 -0
- package/dist/defaultLocale-D7EN2tov.js +171 -0
- package/dist/defaultLocale-DIVzfLaQ.cjs +1 -0
- package/dist/desktop-B93p9R9O.js +6 -0
- package/dist/desktop-tn3MFXCZ.cjs +1 -0
- package/dist/diagram-PSM6KHXK-23_kzlwi.js +531 -0
- package/dist/diagram-PSM6KHXK-Dwd7omqE.cjs +24 -0
- package/dist/diagram-QEK2KX5R-BKtrKu-S.js +217 -0
- package/dist/diagram-QEK2KX5R-DGTTjxpJ.cjs +43 -0
- package/dist/diagram-S2PKOQOG-C6nsjPEJ.cjs +24 -0
- package/dist/diagram-S2PKOQOG-DoEO8H2S.js +142 -0
- package/dist/diff-BxzP2J8R.js +6 -0
- package/dist/diff-CA31fCOg.cjs +1 -0
- package/dist/docker-CsHqm9tx.js +6 -0
- package/dist/docker-zJpMwmYa.cjs +1 -0
- package/dist/dotenv-BMjVjUL1.js +6 -0
- package/dist/dotenv-DpcNCNek.cjs +1 -0
- package/dist/dracula-BNgwAJ-d.cjs +1 -0
- package/dist/dracula-BtZx2Kac.js +4 -0
- package/dist/dracula-soft-BHZ7sHFu.cjs +1 -0
- package/dist/dracula-soft-BKa-aqBv.js +4 -0
- package/dist/dream-maker-BkijXDkm.cjs +1 -0
- package/dist/dream-maker-PAx17jaB.js +6 -0
- package/dist/edge-BYQkOzbF.js +12 -0
- package/dist/edge-DaIYN5Mx.cjs +1 -0
- package/dist/elixir-BH_wmMK4.cjs +1 -0
- package/dist/elixir-Dh036GMp.js +8 -0
- package/dist/elm-BtNbw_Cd.js +8 -0
- package/dist/elm-Dc4sEBjc.cjs +1 -0
- package/dist/emacs-lisp-C1UCIjUO.cjs +1 -0
- package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
- package/dist/erDiagram-Q2GNP2WA-Brk8cDjC.js +841 -0
- package/dist/erDiagram-Q2GNP2WA-D50RXXss.cjs +60 -0
- package/dist/erb-BqFQADjR.cjs +1 -0
- package/dist/erb-CS4zioBv.js +10 -0
- package/dist/erlang-CB2cfp6Z.cjs +1 -0
- package/dist/erlang-DNcDT8Hi.js +8 -0
- package/dist/everforest-dark-DMCBqXCK.js +4 -0
- package/dist/everforest-dark-_sBMomR1.cjs +1 -0
- package/dist/everforest-light-BbXl82Em.js +4 -0
- package/dist/everforest-light-H0xoYxl0.cjs +1 -0
- package/dist/fennel-Bz9-EMMc.cjs +1 -0
- package/dist/fennel-N4WcXuKx.js +6 -0
- package/dist/fish-BTDEUgqH.js +6 -0
- package/dist/fish-DwmQKRZi.cjs +1 -0
- package/dist/flowDiagram-NV44I4VS-DVZD3lNv.cjs +162 -0
- package/dist/flowDiagram-NV44I4VS-DlEP0pXZ.js +1620 -0
- package/dist/fluent-BMXUxfv1.js +6 -0
- package/dist/fluent-CJtpNuaO.cjs +1 -0
- package/dist/fortran-fixed-form-B67KFkXH.js +8 -0
- package/dist/fortran-fixed-form-CcXh5Xzk.cjs +1 -0
- package/dist/fortran-free-form-Cs4ztolN.cjs +1 -0
- package/dist/fortran-free-form-CwqYvCLJ.js +6 -0
- package/dist/fsharp-CYOiIVNx.js +8 -0
- package/dist/fsharp-DVcRF7k-.cjs +1 -0
- package/dist/ganttDiagram-JELNMOA3-Bi3P37Jn.js +2671 -0
- package/dist/ganttDiagram-JELNMOA3-C_pjPWAc.cjs +267 -0
- package/dist/gdresource-BwtMIoBm.js +10 -0
- package/dist/gdresource-CcLusmd_.cjs +1 -0
- package/dist/gdscript-BifyeYhI.js +6 -0
- package/dist/gdscript-DSegQKMB.cjs +1 -0
- package/dist/gdshader-Bk8fF6yr.js +6 -0
- package/dist/gdshader-DsmqQl4t.cjs +1 -0
- package/dist/genie-Dy2rU8CF.cjs +1 -0
- package/dist/genie-DzUvd7U9.js +6 -0
- package/dist/gherkin-BmiEVBJ1.cjs +1 -0
- package/dist/gherkin-DHRaV0YP.js +6 -0
- package/dist/git-commit-Bd32YZ0K.js +8 -0
- package/dist/git-commit-DlVDzq9L.cjs +1 -0
- package/dist/git-rebase-Bn4RLd7u.cjs +1 -0
- package/dist/git-rebase-ZWUFO_T4.js +8 -0
- package/dist/gitGraph-F6HP7TQM-A7zHRFqF.cjs +1 -0
- package/dist/gitGraph-F6HP7TQM-Jxiq1yzJ.js +5 -0
- package/dist/gitGraphDiagram-NY62KEGX-CRLlgECw.cjs +65 -0
- package/dist/gitGraphDiagram-NY62KEGX-CTxAPzG3.js +699 -0
- package/dist/github-dark-BKL9xNgN.cjs +1 -0
- package/dist/github-dark-DenFmJkN.js +4 -0
- package/dist/github-dark-default-BJPUVz4H.js +4 -0
- package/dist/github-dark-default-Dsv5MuSi.cjs +1 -0
- package/dist/github-dark-dimmed-CtB9hz8U.cjs +1 -0
- package/dist/github-dark-dimmed-DUshB20C.js +4 -0
- package/dist/github-dark-high-contrast-BqZVM-jF.cjs +1 -0
- package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
- package/dist/github-light-BFTOhCbz.cjs +1 -0
- package/dist/github-light-JYsPkUQd.js +4 -0
- package/dist/github-light-default-BZoWH9dH.cjs +1 -0
- package/dist/github-light-default-D99KPAby.js +4 -0
- package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
- package/dist/github-light-high-contrast-Ks3kPGJU.cjs +1 -0
- package/dist/gleam-Bv284lvN.js +6 -0
- package/dist/gleam-DHVuTCr7.cjs +1 -0
- package/dist/glimmer-js-CzmC7OX8.cjs +1 -0
- package/dist/glimmer-js-DkxNrfPT.js +14 -0
- package/dist/glimmer-ts-D6YZEmK_.js +14 -0
- package/dist/glimmer-ts-DLN2_wRt.cjs +1 -0
- package/dist/glsl-CQekZ3Zq.cjs +1 -0
- package/dist/glsl-CkUcVZNK.js +8 -0
- package/dist/gn-0WGnAyGi.cjs +1 -0
- package/dist/gn-XtJxiLa4.js +6 -0
- package/dist/gnuplot-CDPKvI9X.cjs +1 -0
- package/dist/gnuplot-yPG9-sE_.js +6 -0
- package/dist/go-ChxJuLYK.js +6 -0
- package/dist/go-epHseFUa.cjs +1 -0
- package/dist/graph-BBwx-qRB.js +381 -0
- package/dist/graph-DFEQuqnk.cjs +1 -0
- package/dist/graphql-BnP1YhXQ.cjs +1 -0
- package/dist/graphql-CBu2ehBn.js +14 -0
- package/dist/groovy-CJQTphOW.js +6 -0
- package/dist/groovy-D7VuDBXz.cjs +1 -0
- package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
- package/dist/gruvbox-dark-hard-CUGefKS6.cjs +1 -0
- package/dist/gruvbox-dark-medium-BoKPlKfz.cjs +1 -0
- package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
- package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
- package/dist/gruvbox-dark-soft-DSrhOWeL.cjs +1 -0
- package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
- package/dist/gruvbox-light-hard-De4IuseP.cjs +1 -0
- package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
- package/dist/gruvbox-light-medium-CzMY3IEJ.cjs +1 -0
- package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
- package/dist/gruvbox-light-soft-U4iAIpWZ.cjs +1 -0
- package/dist/hack-BaDv2o40.cjs +1 -0
- package/dist/hack-ItRNKiEb.js +10 -0
- package/dist/haml-Bk21rGjP.cjs +1 -0
- package/dist/haml-NZLVzu_R.js +10 -0
- package/dist/handlebars-CJJi3lrU.cjs +1 -0
- package/dist/handlebars-mxStpSE7.js +14 -0
- package/dist/haskell-BShesV2P.cjs +1 -0
- package/dist/haskell-WeIwNIP6.js +6 -0
- package/dist/haxe-Bo5XuRS0.cjs +1 -0
- package/dist/haxe-TztHsm5T.js +6 -0
- package/dist/hcl-CrZnvm-1.cjs +1 -0
- package/dist/hcl-D438OF-I.js +6 -0
- package/dist/hjson-CEESwTUP.cjs +1 -0
- package/dist/hjson-DYBUbqOl.js +6 -0
- package/dist/hlsl-Bk8TCZNL.js +6 -0
- package/dist/hlsl-CyvYRIb9.cjs +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/use-spec-sync.d.ts +13 -0
- package/dist/hooks/use-spec-sync.d.ts.map +1 -0
- package/dist/houston-BDYrDoDW.js +4 -0
- package/dist/houston-T57H3gQZ.cjs +1 -0
- package/dist/html-B50bmoVb.js +10 -0
- package/dist/html-C62Zf2h4.cjs +1 -0
- package/dist/html-derivative-C6bxFbFW.js +8 -0
- package/dist/html-derivative-NDb86jON.cjs +1 -0
- package/dist/http-BPlLI56k.cjs +1 -0
- package/dist/http-DLvAkeD-.js +14 -0
- package/dist/hurl-BQGBr8gH.cjs +1 -0
- package/dist/hurl-CgkFN90t.js +12 -0
- package/dist/hxml-GbqSQCLa.js +8 -0
- package/dist/hxml-vnw7fzrV.cjs +1 -0
- package/dist/hy-Brt5EZ7-.js +6 -0
- package/dist/hy-a1E2Ed6P.cjs +1 -0
- package/dist/imba-CR1Q6r17.cjs +1 -0
- package/dist/imba-CimUv-Uh.js +6 -0
- package/dist/index-BxV8uKt2.js +115371 -0
- package/dist/index-DixE39c9.cjs +2103 -0
- package/dist/index.cjs +1 -33
- package/dist/index.js +544 -10140
- package/dist/info-NVLQJR56-C7LB4C00.cjs +1 -0
- package/dist/info-NVLQJR56-L3yf7RrS.js +5 -0
- package/dist/infoDiagram-WHAUD3N6-CuYFw1_3.js +24 -0
- package/dist/infoDiagram-WHAUD3N6-DwbF8-3z.cjs +2 -0
- package/dist/ini-BZIuRIvJ.js +6 -0
- package/dist/ini-Dpu3Xy2p.cjs +1 -0
- package/dist/init-CHZsXQcr.cjs +1 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/java--6gf61wy.cjs +1 -0
- package/dist/java-DY6VlHhP.js +6 -0
- package/dist/javascript-C25yR2R2.js +6 -0
- package/dist/javascript-DgmXW4Ha.cjs +1 -0
- package/dist/jinja-6NmewwV8.cjs +1 -0
- package/dist/jinja-CFW5uAwY.js +11 -0
- package/dist/jison-CD9Qsaj0.cjs +1 -0
- package/dist/jison-DdreslRX.js +8 -0
- package/dist/journeyDiagram-XKPGCS4Q-BFki_qL3.cjs +139 -0
- package/dist/journeyDiagram-XKPGCS4Q-DIhWLskT.js +834 -0
- package/dist/json-DxJze_jm.js +6 -0
- package/dist/json-YkPizm35.cjs +1 -0
- package/dist/json5-BT4Fjg39.js +6 -0
- package/dist/json5-CCgFZiQn.cjs +1 -0
- package/dist/jsonc-CHjZD8gR.js +6 -0
- package/dist/jsonc-CKPHIcXW.cjs +1 -0
- package/dist/jsonl-BGuvDmy9.js +6 -0
- package/dist/jsonl-Dq56Hab-.cjs +1 -0
- package/dist/jsonnet-Bx2cfsXg.js +6 -0
- package/dist/jsonnet-Csh7E68F.cjs +1 -0
- package/dist/jssm-BcADi6EI.js +6 -0
- package/dist/jssm-D0M9iZPY.cjs +1 -0
- package/dist/jsx-BtKADgXT.js +6 -0
- package/dist/jsx-DLX6UGgg.cjs +1 -0
- package/dist/julia-1BTSV8k5.cjs +1 -0
- package/dist/julia-CZiKXNNP.js +16 -0
- package/dist/kanagawa-dragon-BJZF7xDr.cjs +1 -0
- package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
- package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
- package/dist/kanagawa-lotus-BhgzmRV4.cjs +1 -0
- package/dist/kanagawa-wave-BgJip59C.cjs +1 -0
- package/dist/kanagawa-wave-CQwozSzG.js +4 -0
- package/dist/kanban-definition-3W4ZIXB7-3-TUVAsV.cjs +89 -0
- package/dist/kanban-definition-3W4ZIXB7-DO-lQxEf.js +719 -0
- package/dist/kdl-BNOv9TC3.js +6 -0
- package/dist/kdl-CDG1p2Qi.cjs +1 -0
- package/dist/kotlin-BHZjvNqT.cjs +1 -0
- package/dist/kotlin-ByBMgTeR.js +6 -0
- package/dist/kusto-C6kOQWT0.cjs +1 -0
- package/dist/kusto-DH_XitHS.js +6 -0
- package/dist/laserwave--izBLY1I.cjs +1 -0
- package/dist/laserwave-6a00oqik.js +4 -0
- package/dist/latex-BH0OjEyf.cjs +1 -0
- package/dist/latex-DLWszopg.js +8 -0
- package/dist/layout-8XOy_QBJ.cjs +1 -0
- package/dist/layout-BzpSdQ1b.js +1441 -0
- package/dist/lean-BnVxaZxY.js +6 -0
- package/dist/lean-DvVQmxVK.cjs +1 -0
- package/dist/less-B1GLI2Di.js +6 -0
- package/dist/less-Dtg8mm6P.cjs +1 -0
- package/dist/lib/hierarchy.d.ts +12 -0
- package/dist/lib/hierarchy.d.ts.map +1 -0
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +4 -5
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/light-plus-B5D0le0o.cjs +1 -0
- package/dist/light-plus-CZuVqSLX.js +4 -0
- package/dist/linear-CeTmiU5L.js +219 -0
- package/dist/linear-DeMj6pdj.cjs +1 -0
- package/dist/liquid-CHzkx3jT.js +14 -0
- package/dist/liquid-DjlCV7Vm.cjs +1 -0
- package/dist/llvm-DcRvQ_r8.cjs +1 -0
- package/dist/llvm-co1rIKs3.js +6 -0
- package/dist/log-Al8wyEFV.js +6 -0
- package/dist/log-CjTZ0gSB.cjs +1 -0
- package/dist/logo-BAktp_5i.cjs +1 -0
- package/dist/logo-DBa4JDzV.js +6 -0
- package/dist/lua-BfOnSJPp.cjs +1 -0
- package/dist/lua-kX5WP_P5.js +8 -0
- package/dist/luau-BMXmwtw0.cjs +1 -0
- package/dist/luau-UQyhudEE.js +6 -0
- package/dist/make-CsMclxtr.js +6 -0
- package/dist/make-NcdIe21U.cjs +1 -0
- package/dist/markdown-Byu9Sdmq.cjs +1 -0
- package/dist/markdown-CrScaQ96.js +6 -0
- package/dist/marko-BAIoWxJR.cjs +1 -0
- package/dist/marko-Ns9BYtDO.js +14 -0
- package/dist/material-theme-D6KBX41T.js +4 -0
- package/dist/material-theme-Dj0-OyRN.cjs +1 -0
- package/dist/material-theme-darker-CkRroheE.js +4 -0
- package/dist/material-theme-darker-Dvfs29ir.cjs +1 -0
- package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
- package/dist/material-theme-lighter-EU3ZGl_r.cjs +1 -0
- package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
- package/dist/material-theme-ocean-px_3Pwqa.cjs +1 -0
- package/dist/material-theme-palenight-38jxvsGX.cjs +1 -0
- package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
- package/dist/matlab-BOAaUVP0.js +6 -0
- package/dist/matlab-CHTOL9Kx.cjs +1 -0
- package/dist/mdc-DEPKJPdx.cjs +1 -0
- package/dist/mdc-uaivvctV.js +12 -0
- package/dist/mdx-BOhZZUJ8.js +6 -0
- package/dist/mdx-CjwI68TB.cjs +1 -0
- package/dist/mermaid-4DMBBIKO-B3ChJ4jT.cjs +1 -0
- package/dist/mermaid-4DMBBIKO-BB10Hp7U.js +4 -0
- package/dist/mermaid-BXSwQYo5.cjs +1 -0
- package/dist/mermaid-C3rz4dYh.js +6 -0
- package/dist/mermaid-parser.core-0QMhHg6Z.cjs +128 -0
- package/dist/mermaid-parser.core-Cpd96L1c.js +14177 -0
- package/dist/min-DK0HBqAV.js +38 -0
- package/dist/min-dark-C7ak0t6c.js +4 -0
- package/dist/min-dark-tt5o_I5e.cjs +1 -0
- package/dist/min-light-CKFxVcPp.js +4 -0
- package/dist/min-light-tmTHl_CQ.cjs +1 -0
- package/dist/min-oTOl6r1h.cjs +1 -0
- package/dist/mindmap-definition-VGOIOE7T-B0if8h0H.cjs +68 -0
- package/dist/mindmap-definition-VGOIOE7T-DuH7hBBA.js +784 -0
- package/dist/mipsasm-BSlRcFIy.cjs +1 -0
- package/dist/mipsasm-CTx18fBl.js +6 -0
- package/dist/mojo-CgKe2b8g.js +6 -0
- package/dist/mojo-D2tXKFxS.cjs +1 -0
- package/dist/monokai-C1KBYcO0.js +4 -0
- package/dist/monokai-DMIxv6MM.cjs +1 -0
- package/dist/moonbit-BweIWWUc.cjs +1 -0
- package/dist/moonbit-NVPuhMCm.js +6 -0
- package/dist/move-Bm1vlCWg.cjs +1 -0
- package/dist/move-F-dICmj2.js +6 -0
- package/dist/narrat-CBeKHgTl.cjs +1 -0
- package/dist/narrat-DmhDCBs-.js +6 -0
- package/dist/nextflow-CM8Ed358.cjs +1 -0
- package/dist/nextflow-DmSVRGjG.js +6 -0
- package/dist/nginx-5vhPAEw3.js +8 -0
- package/dist/nginx-ByVOUyIE.cjs +1 -0
- package/dist/night-owl-BN78kThQ.cjs +1 -0
- package/dist/night-owl-Bm2rzalh.js +4 -0
- package/dist/nim-Bqmp5Of3.cjs +1 -0
- package/dist/nim-QAjRdh9w.js +20 -0
- package/dist/nix-BOiBJUDf.cjs +1 -0
- package/dist/nix-fTRXMGic.js +9 -0
- package/dist/nord-CC5OiUXg.js +4 -0
- package/dist/nord-Ca5AGUWc.cjs +1 -0
- package/dist/nushell-D8j3dhT-.js +6 -0
- package/dist/nushell-nGrB_wpI.cjs +1 -0
- package/dist/objective-c-Itk8tzmv.js +6 -0
- package/dist/objective-c-RjkWwFge.cjs +1 -0
- package/dist/objective-cpp-DGt5UKRO.js +6 -0
- package/dist/objective-cpp-HnfhWwRe.cjs +1 -0
- package/dist/ocaml-Cx8ewW_A.cjs +1 -0
- package/dist/ocaml-eSVK32Eg.js +6 -0
- package/dist/one-dark-pro-C09VQHwB.cjs +1 -0
- package/dist/one-dark-pro-DTA3VF0_.js +4 -0
- package/dist/one-light-020-h_lv.cjs +1 -0
- package/dist/one-light-D9sNaUtq.js +4 -0
- package/dist/openscad-D7eUrVPv.cjs +1 -0
- package/dist/openscad-Sp5uZ6f2.js +6 -0
- package/dist/ordinal-B6-f3MAq.js +61 -0
- package/dist/ordinal-CagbB1m8.cjs +1 -0
- package/dist/packet-BFZMPI3H-CkSNOCkg.cjs +1 -0
- package/dist/packet-BFZMPI3H-DIsOB4VT.js +5 -0
- package/dist/pascal-DBu9vQ2o.cjs +1 -0
- package/dist/pascal-xy8pJNns.js +6 -0
- package/dist/perl-CxWZPeDZ.cjs +1 -0
- package/dist/perl-DkVrgJBg.js +16 -0
- package/dist/php-BLXVJphD.cjs +1 -0
- package/dist/php-j2zCzTEz.js +18 -0
- package/dist/pie-7BOR55EZ-BpyjZEtC.cjs +1 -0
- package/dist/pie-7BOR55EZ-DK5Go5nV.js +5 -0
- package/dist/pieDiagram-ADFJNKIX-BKLy7RGo.cjs +30 -0
- package/dist/pieDiagram-ADFJNKIX-C3qcL2xx.js +161 -0
- package/dist/pkl-C-zSNmaA.js +6 -0
- package/dist/pkl-Dvyry4Rm.cjs +1 -0
- package/dist/plastic-CSTz3KZp.js +4 -0
- package/dist/plastic-r5piqq-S.cjs +1 -0
- package/dist/plsql-IJkoPJ9P.cjs +1 -0
- package/dist/plsql-pVbGZfOv.js +6 -0
- package/dist/po-BNfHvqmm.js +6 -0
- package/dist/po-Rhu6MvnX.cjs +1 -0
- package/dist/poimandres-BLP3NNjc.cjs +1 -0
- package/dist/poimandres-C-VADXHD.js +4 -0
- package/dist/polar-BtWqSUq2.cjs +1 -0
- package/dist/polar-CAZahv3u.js +6 -0
- package/dist/postcss-05aHdL-n.js +6 -0
- package/dist/postcss-Dh97DcaJ.cjs +1 -0
- package/dist/powerquery-BGL6VIw7.cjs +1 -0
- package/dist/powerquery-DI9HkTvs.js +6 -0
- package/dist/powershell-BiEPMjy-.cjs +1 -0
- package/dist/powershell-Clc4ydu-.js +6 -0
- package/dist/prisma-Dp473sn0.cjs +1 -0
- package/dist/prisma-FZjmVtSl.js +6 -0
- package/dist/prolog-C5-yg4TO.js +6 -0
- package/dist/prolog-N1U-3UeF.cjs +1 -0
- package/dist/proto-C7QgialS.js +6 -0
- package/dist/proto-DMjUErYA.cjs +1 -0
- package/dist/pug-DiGNE7sm.cjs +1 -0
- package/dist/pug-XOw9Q1Ho.js +12 -0
- package/dist/puppet-CUJHmnxV.js +6 -0
- package/dist/puppet-cDQP_ZC_.cjs +1 -0
- package/dist/purescript-DMxb59gF.cjs +1 -0
- package/dist/purescript-rUfGld-4.js +6 -0
- package/dist/python-BFNSHbwJ.js +6 -0
- package/dist/python-s9jfVbew.cjs +1 -0
- package/dist/qml-beorq0E4.cjs +1 -0
- package/dist/qml-rTNXsquU.js +8 -0
- package/dist/qmldir-BInDYbpo.js +6 -0
- package/dist/qmldir-DNF9H2ir.cjs +1 -0
- package/dist/qss-AeJTysr_.js +6 -0
- package/dist/qss-DwA_oiAM.cjs +1 -0
- package/dist/quadrantDiagram-AYHSOK5B-CWcQ_rDh.js +1022 -0
- package/dist/quadrantDiagram-AYHSOK5B-DOYjbmEl.cjs +7 -0
- package/dist/r-CSmzDPi7.js +6 -0
- package/dist/r-DAqIyZhh.cjs +1 -0
- package/dist/racket-B83wSAja.js +6 -0
- package/dist/racket-D4laxZit.cjs +1 -0
- package/dist/radar-NHE76QYJ-DwmI-AfT.cjs +1 -0
- package/dist/radar-NHE76QYJ-ROXTWy9b.js +5 -0
- package/dist/raku-DHySPsLw.cjs +1 -0
- package/dist/raku-nEQ4ZJJ7.js +6 -0
- package/dist/razor-C5CyrFEt.js +10 -0
- package/dist/razor-PuMYvsDx.cjs +1 -0
- package/dist/red-7y8PH7HH.js +4 -0
- package/dist/red-BQGOv1D5.cjs +1 -0
- package/dist/reg-CevkCKuZ.cjs +1 -0
- package/dist/reg-m_s_Kiip.js +6 -0
- package/dist/regexp-BazyLpPg.js +6 -0
- package/dist/regexp-DabTWNLE.cjs +1 -0
- package/dist/rel-BS5APza7.cjs +1 -0
- package/dist/rel-BcRfyd6Q.js +6 -0
- package/dist/requirementDiagram-UZGBJVZJ-BwrtCkIe.js +850 -0
- package/dist/requirementDiagram-UZGBJVZJ-DsZZ0moA.cjs +64 -0
- package/dist/riscv-BnGFr6V7.cjs +1 -0
- package/dist/riscv-Ce8MAQLP.js +6 -0
- package/dist/rose-pine-BKc3yVeu.js +4 -0
- package/dist/rose-pine-CfBWm6WX.cjs +1 -0
- package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
- package/dist/rose-pine-dawn-CaZ5I2lt.cjs +1 -0
- package/dist/rose-pine-moon-Cql8LDLp.cjs +1 -0
- package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
- package/dist/rosmsg-C7VSFzUC.cjs +1 -0
- package/dist/rosmsg-Cz0w1km8.js +6 -0
- package/dist/rst-CcbeA9zE.js +22 -0
- package/dist/rst-D08gsKw8.cjs +1 -0
- package/dist/ruby-B5H7kBtd.cjs +1 -0
- package/dist/ruby-DMPw6uKF.js +30 -0
- package/dist/rust-CLzF9zIN.js +6 -0
- package/dist/rust-CNeTMPbB.cjs +1 -0
- package/dist/sankeyDiagram-TZEHDZUN-D0EYmAQl.js +810 -0
- package/dist/sankeyDiagram-TZEHDZUN-Djlhhbki.cjs +10 -0
- package/dist/sas-D5Fn8Q38.cjs +1 -0
- package/dist/sas-fpEvgATw.js +8 -0
- package/dist/sass-DxHp5rTx.js +6 -0
- package/dist/sass-vyo-bUwh.cjs +1 -0
- package/dist/scala-D4grkFkl.js +6 -0
- package/dist/scala-ZSekD-8-.cjs +1 -0
- package/dist/scheme-BCRWuEm4.js +6 -0
- package/dist/scheme-vM0LdD-_.cjs +1 -0
- package/dist/scss-B1FaCqwR.js +8 -0
- package/dist/scss-CKlduTMv.cjs +1 -0
- package/dist/sdbl-B7T8abf4.js +6 -0
- package/dist/sdbl-DeWT5r4i.cjs +1 -0
- package/dist/sequenceDiagram-WL72ISMW-B9ehIr-I.js +2511 -0
- package/dist/sequenceDiagram-WL72ISMW-On-mv-ob.cjs +145 -0
- package/dist/shaderlab-Cr62-Wb4.js +8 -0
- package/dist/shaderlab-DGJjQHxC.cjs +1 -0
- package/dist/shellscript-DYWjN7qW.cjs +1 -0
- package/dist/shellscript-InADTalH.js +6 -0
- package/dist/shellsession-DMUSXX8m.cjs +1 -0
- package/dist/shellsession-DiDJNQdy.js +8 -0
- package/dist/slack-dark-akqwQ7ED.cjs +1 -0
- package/dist/slack-dark-i7wN4OET.js +4 -0
- package/dist/slack-ochin-BoQQWmTv.cjs +1 -0
- package/dist/slack-ochin-ndHf0LoP.js +4 -0
- package/dist/smalltalk-BNs6hxu4.cjs +1 -0
- package/dist/smalltalk-BlI1_OkM.js +6 -0
- package/dist/snazzy-light-BlSJXAu4.js +4 -0
- package/dist/snazzy-light-D_IwRieF.cjs +1 -0
- package/dist/solarized-dark-UTmkh7lw.js +4 -0
- package/dist/solarized-dark-gmm-WbDC.cjs +1 -0
- package/dist/solarized-light-BheCkDPT.js +4 -0
- package/dist/solarized-light-DzcxRSZP.cjs +1 -0
- package/dist/solidity-DUWnFhS6.js +6 -0
- package/dist/solidity-uQuzgchP.cjs +1 -0
- package/dist/soy-C1-6njHa.js +8 -0
- package/dist/soy-CDFPDtGX.cjs +1 -0
- package/dist/sparql-6Cg9ppCl.cjs +1 -0
- package/dist/sparql-B0KWFEri.js +8 -0
- package/dist/splunk-CRXR8A9s.js +6 -0
- package/dist/splunk-CWPivao_.cjs +1 -0
- package/dist/sql-Cn_v3PB0.js +6 -0
- package/dist/sql-DhUUVgH1.cjs +1 -0
- package/dist/ssh-config-B93wBIBa.cjs +1 -0
- package/dist/ssh-config-DP-hNVbF.js +6 -0
- package/dist/stata-B8c5fTjX.js +8 -0
- package/dist/stata-DCWFCQQG.cjs +1 -0
- package/dist/stateDiagram-FKZM4ZOC-N_v2By_6.cjs +1 -0
- package/dist/stateDiagram-FKZM4ZOC-gpYbn_kg.js +263 -0
- package/dist/stateDiagram-v2-4FDKWEC3-B1o9zWBt.cjs +1 -0
- package/dist/stateDiagram-v2-4FDKWEC3-C4KMyOyW.js +16 -0
- package/dist/stylus-B64Bt0D4.cjs +1 -0
- package/dist/stylus-CyKEU1Ej.js +6 -0
- package/dist/svelte-CYf4HR3U.js +14 -0
- package/dist/svelte-Do4zIqEL.cjs +1 -0
- package/dist/swift-9UzSvamq.js +6 -0
- package/dist/swift-BMbGdc3j.cjs +1 -0
- package/dist/synthwave-84-BBRLOmNT.cjs +1 -0
- package/dist/synthwave-84-NU3C_KFZ.js +4 -0
- package/dist/system-verilog-BCm7smPJ.js +6 -0
- package/dist/system-verilog-BFclLo9e.cjs +1 -0
- package/dist/systemd-C-4qm6XH.js +6 -0
- package/dist/systemd-Dtw7P4tb.cjs +1 -0
- package/dist/talonscript-CFF3LF_O.js +6 -0
- package/dist/talonscript-D8SvZJVc.cjs +1 -0
- package/dist/tasl--DC4oX-L.cjs +1 -0
- package/dist/tasl-Cg_WBUAe.js +6 -0
- package/dist/tcl-0Q0H86Yn.cjs +1 -0
- package/dist/tcl-DN7buRTF.js +6 -0
- package/dist/templ-BDNMUns0.cjs +1 -0
- package/dist/templ-peLZIM2D.js +12 -0
- package/dist/terraform-C0RDrmWi.cjs +1 -0
- package/dist/terraform-DGvcn9zM.js +6 -0
- package/dist/tex-BvKThJ8p.js +8 -0
- package/dist/tex-Dz7jjuD4.cjs +1 -0
- package/dist/timeline-definition-IT6M3QCI-B4IcdbBF.js +795 -0
- package/dist/timeline-definition-IT6M3QCI-CPrmwBak.cjs +61 -0
- package/dist/tokyo-night-DP4TmcQl.js +4 -0
- package/dist/tokyo-night-GOhjzM5y.cjs +1 -0
- package/dist/toml-DY62mUL_.js +6 -0
- package/dist/toml-Q64DoSvG.cjs +1 -0
- package/dist/treemap-KMMF4GRG-CcT4hm8S.js +5 -0
- package/dist/treemap-KMMF4GRG-jRKrySH6.cjs +1 -0
- package/dist/ts-tags-DILCom6A.cjs +1 -0
- package/dist/ts-tags-ioVe2PKw.js +41 -0
- package/dist/tsv-BtvSkaG0.js +6 -0
- package/dist/tsv-DqNGnuVj.cjs +1 -0
- package/dist/tsx-B8rCNbgL.js +6 -0
- package/dist/tsx-DIpfUf9u.cjs +1 -0
- package/dist/turtle-DipIidr5.cjs +1 -0
- package/dist/turtle-_H59FV7D.js +6 -0
- package/dist/twig-B42NGISI.cjs +1 -0
- package/dist/twig-CcRLVyUg.js +18 -0
- package/dist/types/specs.d.ts +2 -0
- package/dist/types/specs.d.ts.map +1 -1
- package/dist/typescript-RycA9KXf.js +6 -0
- package/dist/typescript-b48wo4zk.cjs +1 -0
- package/dist/typespec-DWqp-kUU.js +6 -0
- package/dist/typespec-DqXOE4_L.cjs +1 -0
- package/dist/typst-Cqq4j4V-.cjs +1 -0
- package/dist/typst-D_1QKWns.js +6 -0
- package/dist/ui-components.css +1 -1
- package/dist/v-81C2s01-.cjs +1 -0
- package/dist/v-BPCNiyYe.js +6 -0
- package/dist/vala-CsAYdCD2.cjs +1 -0
- package/dist/vala-uxaPR7d1.js +6 -0
- package/dist/vb-AiTMb16X.cjs +1 -0
- package/dist/vb-D8_c5-KN.js +6 -0
- package/dist/verilog-AMohXZcN.cjs +1 -0
- package/dist/verilog-B-bybjPF.js +6 -0
- package/dist/vesper-B59Iw4gV.cjs +1 -0
- package/dist/vesper-BckBta1U.js +4 -0
- package/dist/vhdl-CUlNa8ac.js +6 -0
- package/dist/vhdl-DIdR1NA5.cjs +1 -0
- package/dist/viml-D01eKeA4.cjs +1 -0
- package/dist/viml-DsfA-sWm.js +6 -0
- package/dist/vitesse-black-BoGvW84i.js +4 -0
- package/dist/vitesse-black-MF-1S1MG.cjs +1 -0
- package/dist/vitesse-dark-Cym-eLtO.js +4 -0
- package/dist/vitesse-dark-SIffJYSe.cjs +1 -0
- package/dist/vitesse-light-CcmG315c.js +4 -0
- package/dist/vitesse-light-U63SkYGT.cjs +1 -0
- package/dist/vue-DXEmyXn9.js +31 -0
- package/dist/vue-S9bl2EgW.cjs +1 -0
- package/dist/vue-html-B2-sfQT7.cjs +1 -0
- package/dist/vue-html-j9xNEdu3.js +8 -0
- package/dist/vue-vine-CpIsWjsQ.cjs +1 -0
- package/dist/vue-vine-D41-N99t.js +18 -0
- package/dist/vyper-CPQuu50u.js +6 -0
- package/dist/vyper-DTzyzn3a.cjs +1 -0
- package/dist/wasm-BBXxrAl7.js +6 -0
- package/dist/wasm-DQxwEHae.js +7 -0
- package/dist/wasm-Dp-QrJpp.cjs +1 -0
- package/dist/wasm-Dw4u1m6u.cjs +1 -0
- package/dist/wenyan-CRNx8UP3.cjs +1 -0
- package/dist/wenyan-pbVjoM9_.js +6 -0
- package/dist/wgsl-DF5qc9dd.cjs +1 -0
- package/dist/wgsl-DY4iK1q1.js +6 -0
- package/dist/wikitext-D7uzEIfK.cjs +1 -0
- package/dist/wikitext-Z-MoUasO.js +6 -0
- package/dist/wit-BjWgLsJj.cjs +1 -0
- package/dist/wit-CQMQOlTg.js +6 -0
- package/dist/wolfram-BR4t3Ffc.cjs +1 -0
- package/dist/wolfram-Dz4KXISs.js +6 -0
- package/dist/xml-BpsKWkuV.cjs +1 -0
- package/dist/xml-C2J0sS9M.js +8 -0
- package/dist/xsl-BmSZphgC.js +8 -0
- package/dist/xsl-D-3VYix6.cjs +1 -0
- package/dist/xychartDiagram-PRI3JC2R-1YTbKHcQ.cjs +7 -0
- package/dist/xychartDiagram-PRI3JC2R-U8S5ep3O.js +1340 -0
- package/dist/yaml-DaO7k5B1.js +6 -0
- package/dist/yaml-XVBmpKh-.cjs +1 -0
- package/dist/zenscript-CxBjpf9c.js +6 -0
- package/dist/zenscript-fNvwKexi.cjs +1 -0
- package/dist/zig-BAyIAcWK.cjs +1 -0
- package/dist/zig-Vm0PO9wB.js +6 -0
- package/package.json +36 -4
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
import { p as K } from "./chunk-4BX2VUAB-CXaj02kc.js";
|
|
2
|
+
import { I as Y } from "./chunk-QZHKN3VN--CtIzUYG.js";
|
|
3
|
+
import { _ as l, z as U, y as V, s as X, g as J, d as Q, e as Z, l as m, f as rr, h as er, x as tr, I as ar, D as sr, o as C, K as nr, L as or, M as cr, O as ir } from "./index-BxV8uKt2.js";
|
|
4
|
+
import { p as dr } from "./mermaid-parser.core-Cpd96L1c.js";
|
|
5
|
+
var p = {
|
|
6
|
+
NORMAL: 0,
|
|
7
|
+
REVERSE: 1,
|
|
8
|
+
HIGHLIGHT: 2,
|
|
9
|
+
MERGE: 3,
|
|
10
|
+
CHERRY_PICK: 4
|
|
11
|
+
}, hr = cr.gitGraph, I = /* @__PURE__ */ l(() => nr({
|
|
12
|
+
...hr,
|
|
13
|
+
...or().gitGraph
|
|
14
|
+
}), "getConfig"), c = new Y(() => {
|
|
15
|
+
const t = I(), r = t.mainBranchName, s = t.mainBranchOrder;
|
|
16
|
+
return {
|
|
17
|
+
mainBranchName: r,
|
|
18
|
+
commits: /* @__PURE__ */ new Map(),
|
|
19
|
+
head: null,
|
|
20
|
+
branchConfig: /* @__PURE__ */ new Map([[r, { name: r, order: s }]]),
|
|
21
|
+
branches: /* @__PURE__ */ new Map([[r, null]]),
|
|
22
|
+
currBranch: r,
|
|
23
|
+
direction: "LR",
|
|
24
|
+
seq: 0,
|
|
25
|
+
options: {}
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
function q() {
|
|
29
|
+
return ir({ length: 7 });
|
|
30
|
+
}
|
|
31
|
+
l(q, "getID");
|
|
32
|
+
function D(t, r) {
|
|
33
|
+
const s = /* @__PURE__ */ Object.create(null);
|
|
34
|
+
return t.reduce((n, e) => {
|
|
35
|
+
const a = r(e);
|
|
36
|
+
return s[a] || (s[a] = !0, n.push(e)), n;
|
|
37
|
+
}, []);
|
|
38
|
+
}
|
|
39
|
+
l(D, "uniqBy");
|
|
40
|
+
var lr = /* @__PURE__ */ l(function(t) {
|
|
41
|
+
c.records.direction = t;
|
|
42
|
+
}, "setDirection"), $r = /* @__PURE__ */ l(function(t) {
|
|
43
|
+
m.debug("options str", t), t = t?.trim(), t = t || "{}";
|
|
44
|
+
try {
|
|
45
|
+
c.records.options = JSON.parse(t);
|
|
46
|
+
} catch (r) {
|
|
47
|
+
m.error("error while parsing gitGraph options", r.message);
|
|
48
|
+
}
|
|
49
|
+
}, "setOptions"), fr = /* @__PURE__ */ l(function() {
|
|
50
|
+
return c.records.options;
|
|
51
|
+
}, "getOptions"), gr = /* @__PURE__ */ l(function(t) {
|
|
52
|
+
let r = t.msg, s = t.id;
|
|
53
|
+
const n = t.type;
|
|
54
|
+
let e = t.tags;
|
|
55
|
+
m.info("commit", r, s, n, e), m.debug("Entering commit:", r, s, n, e);
|
|
56
|
+
const a = I();
|
|
57
|
+
s = C.sanitizeText(s, a), r = C.sanitizeText(r, a), e = e?.map((o) => C.sanitizeText(o, a));
|
|
58
|
+
const d = {
|
|
59
|
+
id: s || c.records.seq + "-" + q(),
|
|
60
|
+
message: r,
|
|
61
|
+
seq: c.records.seq++,
|
|
62
|
+
type: n ?? p.NORMAL,
|
|
63
|
+
tags: e ?? [],
|
|
64
|
+
parents: c.records.head == null ? [] : [c.records.head.id],
|
|
65
|
+
branch: c.records.currBranch
|
|
66
|
+
};
|
|
67
|
+
c.records.head = d, m.info("main branch", a.mainBranchName), c.records.commits.has(d.id) && m.warn(`Commit ID ${d.id} already exists`), c.records.commits.set(d.id, d), c.records.branches.set(c.records.currBranch, d.id), m.debug("in pushCommit " + d.id);
|
|
68
|
+
}, "commit"), yr = /* @__PURE__ */ l(function(t) {
|
|
69
|
+
let r = t.name;
|
|
70
|
+
const s = t.order;
|
|
71
|
+
if (r = C.sanitizeText(r, I()), c.records.branches.has(r))
|
|
72
|
+
throw new Error(
|
|
73
|
+
`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`
|
|
74
|
+
);
|
|
75
|
+
c.records.branches.set(r, c.records.head != null ? c.records.head.id : null), c.records.branchConfig.set(r, { name: r, order: s }), F(r), m.debug("in createBranch");
|
|
76
|
+
}, "branch"), ur = /* @__PURE__ */ l((t) => {
|
|
77
|
+
let r = t.branch, s = t.id;
|
|
78
|
+
const n = t.type, e = t.tags, a = I();
|
|
79
|
+
r = C.sanitizeText(r, a), s && (s = C.sanitizeText(s, a));
|
|
80
|
+
const d = c.records.branches.get(c.records.currBranch), o = c.records.branches.get(r), f = d ? c.records.commits.get(d) : void 0, h = o ? c.records.commits.get(o) : void 0;
|
|
81
|
+
if (f && h && f.branch === r)
|
|
82
|
+
throw new Error(`Cannot merge branch '${r}' into itself.`);
|
|
83
|
+
if (c.records.currBranch === r) {
|
|
84
|
+
const i = new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
|
|
85
|
+
throw i.hash = {
|
|
86
|
+
text: `merge ${r}`,
|
|
87
|
+
token: `merge ${r}`,
|
|
88
|
+
expected: ["branch abc"]
|
|
89
|
+
}, i;
|
|
90
|
+
}
|
|
91
|
+
if (f === void 0 || !f) {
|
|
92
|
+
const i = new Error(
|
|
93
|
+
`Incorrect usage of "merge". Current branch (${c.records.currBranch})has no commits`
|
|
94
|
+
);
|
|
95
|
+
throw i.hash = {
|
|
96
|
+
text: `merge ${r}`,
|
|
97
|
+
token: `merge ${r}`,
|
|
98
|
+
expected: ["commit"]
|
|
99
|
+
}, i;
|
|
100
|
+
}
|
|
101
|
+
if (!c.records.branches.has(r)) {
|
|
102
|
+
const i = new Error(
|
|
103
|
+
'Incorrect usage of "merge". Branch to be merged (' + r + ") does not exist"
|
|
104
|
+
);
|
|
105
|
+
throw i.hash = {
|
|
106
|
+
text: `merge ${r}`,
|
|
107
|
+
token: `merge ${r}`,
|
|
108
|
+
expected: [`branch ${r}`]
|
|
109
|
+
}, i;
|
|
110
|
+
}
|
|
111
|
+
if (h === void 0 || !h) {
|
|
112
|
+
const i = new Error(
|
|
113
|
+
'Incorrect usage of "merge". Branch to be merged (' + r + ") has no commits"
|
|
114
|
+
);
|
|
115
|
+
throw i.hash = {
|
|
116
|
+
text: `merge ${r}`,
|
|
117
|
+
token: `merge ${r}`,
|
|
118
|
+
expected: ['"commit"']
|
|
119
|
+
}, i;
|
|
120
|
+
}
|
|
121
|
+
if (f === h) {
|
|
122
|
+
const i = new Error('Incorrect usage of "merge". Both branches have same head');
|
|
123
|
+
throw i.hash = {
|
|
124
|
+
text: `merge ${r}`,
|
|
125
|
+
token: `merge ${r}`,
|
|
126
|
+
expected: ["branch abc"]
|
|
127
|
+
}, i;
|
|
128
|
+
}
|
|
129
|
+
if (s && c.records.commits.has(s)) {
|
|
130
|
+
const i = new Error(
|
|
131
|
+
'Incorrect usage of "merge". Commit with id:' + s + " already exists, use different custom id"
|
|
132
|
+
);
|
|
133
|
+
throw i.hash = {
|
|
134
|
+
text: `merge ${r} ${s} ${n} ${e?.join(" ")}`,
|
|
135
|
+
token: `merge ${r} ${s} ${n} ${e?.join(" ")}`,
|
|
136
|
+
expected: [
|
|
137
|
+
`merge ${r} ${s}_UNIQUE ${n} ${e?.join(" ")}`
|
|
138
|
+
]
|
|
139
|
+
}, i;
|
|
140
|
+
}
|
|
141
|
+
const $ = o || "", g = {
|
|
142
|
+
id: s || `${c.records.seq}-${q()}`,
|
|
143
|
+
message: `merged branch ${r} into ${c.records.currBranch}`,
|
|
144
|
+
seq: c.records.seq++,
|
|
145
|
+
parents: c.records.head == null ? [] : [c.records.head.id, $],
|
|
146
|
+
branch: c.records.currBranch,
|
|
147
|
+
type: p.MERGE,
|
|
148
|
+
customType: n,
|
|
149
|
+
customId: !!s,
|
|
150
|
+
tags: e ?? []
|
|
151
|
+
};
|
|
152
|
+
c.records.head = g, c.records.commits.set(g.id, g), c.records.branches.set(c.records.currBranch, g.id), m.debug(c.records.branches), m.debug("in mergeBranch");
|
|
153
|
+
}, "merge"), xr = /* @__PURE__ */ l(function(t) {
|
|
154
|
+
let r = t.id, s = t.targetId, n = t.tags, e = t.parent;
|
|
155
|
+
m.debug("Entering cherryPick:", r, s, n);
|
|
156
|
+
const a = I();
|
|
157
|
+
if (r = C.sanitizeText(r, a), s = C.sanitizeText(s, a), n = n?.map((f) => C.sanitizeText(f, a)), e = C.sanitizeText(e, a), !r || !c.records.commits.has(r)) {
|
|
158
|
+
const f = new Error(
|
|
159
|
+
'Incorrect usage of "cherryPick". Source commit id should exist and provided'
|
|
160
|
+
);
|
|
161
|
+
throw f.hash = {
|
|
162
|
+
text: `cherryPick ${r} ${s}`,
|
|
163
|
+
token: `cherryPick ${r} ${s}`,
|
|
164
|
+
expected: ["cherry-pick abc"]
|
|
165
|
+
}, f;
|
|
166
|
+
}
|
|
167
|
+
const d = c.records.commits.get(r);
|
|
168
|
+
if (d === void 0 || !d)
|
|
169
|
+
throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');
|
|
170
|
+
if (e && !(Array.isArray(d.parents) && d.parents.includes(e)))
|
|
171
|
+
throw new Error(
|
|
172
|
+
"Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit."
|
|
173
|
+
);
|
|
174
|
+
const o = d.branch;
|
|
175
|
+
if (d.type === p.MERGE && !e)
|
|
176
|
+
throw new Error(
|
|
177
|
+
"Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified."
|
|
178
|
+
);
|
|
179
|
+
if (!s || !c.records.commits.has(s)) {
|
|
180
|
+
if (o === c.records.currBranch) {
|
|
181
|
+
const g = new Error(
|
|
182
|
+
'Incorrect usage of "cherryPick". Source commit is already on current branch'
|
|
183
|
+
);
|
|
184
|
+
throw g.hash = {
|
|
185
|
+
text: `cherryPick ${r} ${s}`,
|
|
186
|
+
token: `cherryPick ${r} ${s}`,
|
|
187
|
+
expected: ["cherry-pick abc"]
|
|
188
|
+
}, g;
|
|
189
|
+
}
|
|
190
|
+
const f = c.records.branches.get(c.records.currBranch);
|
|
191
|
+
if (f === void 0 || !f) {
|
|
192
|
+
const g = new Error(
|
|
193
|
+
`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`
|
|
194
|
+
);
|
|
195
|
+
throw g.hash = {
|
|
196
|
+
text: `cherryPick ${r} ${s}`,
|
|
197
|
+
token: `cherryPick ${r} ${s}`,
|
|
198
|
+
expected: ["cherry-pick abc"]
|
|
199
|
+
}, g;
|
|
200
|
+
}
|
|
201
|
+
const h = c.records.commits.get(f);
|
|
202
|
+
if (h === void 0 || !h) {
|
|
203
|
+
const g = new Error(
|
|
204
|
+
`Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`
|
|
205
|
+
);
|
|
206
|
+
throw g.hash = {
|
|
207
|
+
text: `cherryPick ${r} ${s}`,
|
|
208
|
+
token: `cherryPick ${r} ${s}`,
|
|
209
|
+
expected: ["cherry-pick abc"]
|
|
210
|
+
}, g;
|
|
211
|
+
}
|
|
212
|
+
const $ = {
|
|
213
|
+
id: c.records.seq + "-" + q(),
|
|
214
|
+
message: `cherry-picked ${d?.message} into ${c.records.currBranch}`,
|
|
215
|
+
seq: c.records.seq++,
|
|
216
|
+
parents: c.records.head == null ? [] : [c.records.head.id, d.id],
|
|
217
|
+
branch: c.records.currBranch,
|
|
218
|
+
type: p.CHERRY_PICK,
|
|
219
|
+
tags: n ? n.filter(Boolean) : [
|
|
220
|
+
`cherry-pick:${d.id}${d.type === p.MERGE ? `|parent:${e}` : ""}`
|
|
221
|
+
]
|
|
222
|
+
};
|
|
223
|
+
c.records.head = $, c.records.commits.set($.id, $), c.records.branches.set(c.records.currBranch, $.id), m.debug(c.records.branches), m.debug("in cherryPick");
|
|
224
|
+
}
|
|
225
|
+
}, "cherryPick"), F = /* @__PURE__ */ l(function(t) {
|
|
226
|
+
if (t = C.sanitizeText(t, I()), c.records.branches.has(t)) {
|
|
227
|
+
c.records.currBranch = t;
|
|
228
|
+
const r = c.records.branches.get(c.records.currBranch);
|
|
229
|
+
r === void 0 || !r ? c.records.head = null : c.records.head = c.records.commits.get(r) ?? null;
|
|
230
|
+
} else {
|
|
231
|
+
const r = new Error(
|
|
232
|
+
`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`
|
|
233
|
+
);
|
|
234
|
+
throw r.hash = {
|
|
235
|
+
text: `checkout ${t}`,
|
|
236
|
+
token: `checkout ${t}`,
|
|
237
|
+
expected: [`branch ${t}`]
|
|
238
|
+
}, r;
|
|
239
|
+
}
|
|
240
|
+
}, "checkout");
|
|
241
|
+
function H(t, r, s) {
|
|
242
|
+
const n = t.indexOf(r);
|
|
243
|
+
n === -1 ? t.push(s) : t.splice(n, 1, s);
|
|
244
|
+
}
|
|
245
|
+
l(H, "upsert");
|
|
246
|
+
function P(t) {
|
|
247
|
+
const r = t.reduce((e, a) => e.seq > a.seq ? e : a, t[0]);
|
|
248
|
+
let s = "";
|
|
249
|
+
t.forEach(function(e) {
|
|
250
|
+
e === r ? s += " *" : s += " |";
|
|
251
|
+
});
|
|
252
|
+
const n = [s, r.id, r.seq];
|
|
253
|
+
for (const e in c.records.branches)
|
|
254
|
+
c.records.branches.get(e) === r.id && n.push(e);
|
|
255
|
+
if (m.debug(n.join(" ")), r.parents && r.parents.length == 2 && r.parents[0] && r.parents[1]) {
|
|
256
|
+
const e = c.records.commits.get(r.parents[0]);
|
|
257
|
+
H(t, r, e), r.parents[1] && t.push(c.records.commits.get(r.parents[1]));
|
|
258
|
+
} else {
|
|
259
|
+
if (r.parents.length == 0)
|
|
260
|
+
return;
|
|
261
|
+
if (r.parents[0]) {
|
|
262
|
+
const e = c.records.commits.get(r.parents[0]);
|
|
263
|
+
H(t, r, e);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
t = D(t, (e) => e.id), P(t);
|
|
267
|
+
}
|
|
268
|
+
l(P, "prettyPrintCommitHistory");
|
|
269
|
+
var pr = /* @__PURE__ */ l(function() {
|
|
270
|
+
m.debug(c.records.commits);
|
|
271
|
+
const t = N()[0];
|
|
272
|
+
P([t]);
|
|
273
|
+
}, "prettyPrint"), mr = /* @__PURE__ */ l(function() {
|
|
274
|
+
c.reset(), sr();
|
|
275
|
+
}, "clear"), br = /* @__PURE__ */ l(function() {
|
|
276
|
+
return [...c.records.branchConfig.values()].map((r, s) => r.order !== null && r.order !== void 0 ? r : {
|
|
277
|
+
...r,
|
|
278
|
+
order: parseFloat(`0.${s}`)
|
|
279
|
+
}).sort((r, s) => (r.order ?? 0) - (s.order ?? 0)).map(({ name: r }) => ({ name: r }));
|
|
280
|
+
}, "getBranchesAsObjArray"), wr = /* @__PURE__ */ l(function() {
|
|
281
|
+
return c.records.branches;
|
|
282
|
+
}, "getBranches"), vr = /* @__PURE__ */ l(function() {
|
|
283
|
+
return c.records.commits;
|
|
284
|
+
}, "getCommits"), N = /* @__PURE__ */ l(function() {
|
|
285
|
+
const t = [...c.records.commits.values()];
|
|
286
|
+
return t.forEach(function(r) {
|
|
287
|
+
m.debug(r.id);
|
|
288
|
+
}), t.sort((r, s) => r.seq - s.seq), t;
|
|
289
|
+
}, "getCommitsArray"), Cr = /* @__PURE__ */ l(function() {
|
|
290
|
+
return c.records.currBranch;
|
|
291
|
+
}, "getCurrentBranch"), Er = /* @__PURE__ */ l(function() {
|
|
292
|
+
return c.records.direction;
|
|
293
|
+
}, "getDirection"), Tr = /* @__PURE__ */ l(function() {
|
|
294
|
+
return c.records.head;
|
|
295
|
+
}, "getHead"), S = {
|
|
296
|
+
commitType: p,
|
|
297
|
+
getConfig: I,
|
|
298
|
+
setDirection: lr,
|
|
299
|
+
setOptions: $r,
|
|
300
|
+
getOptions: fr,
|
|
301
|
+
commit: gr,
|
|
302
|
+
branch: yr,
|
|
303
|
+
merge: ur,
|
|
304
|
+
cherryPick: xr,
|
|
305
|
+
checkout: F,
|
|
306
|
+
//reset,
|
|
307
|
+
prettyPrint: pr,
|
|
308
|
+
clear: mr,
|
|
309
|
+
getBranchesAsObjArray: br,
|
|
310
|
+
getBranches: wr,
|
|
311
|
+
getCommits: vr,
|
|
312
|
+
getCommitsArray: N,
|
|
313
|
+
getCurrentBranch: Cr,
|
|
314
|
+
getDirection: Er,
|
|
315
|
+
getHead: Tr,
|
|
316
|
+
setAccTitle: Z,
|
|
317
|
+
getAccTitle: Q,
|
|
318
|
+
getAccDescription: J,
|
|
319
|
+
setAccDescription: X,
|
|
320
|
+
setDiagramTitle: V,
|
|
321
|
+
getDiagramTitle: U
|
|
322
|
+
}, Br = /* @__PURE__ */ l((t, r) => {
|
|
323
|
+
K(t, r), t.dir && r.setDirection(t.dir);
|
|
324
|
+
for (const s of t.statements)
|
|
325
|
+
Lr(s, r);
|
|
326
|
+
}, "populate"), Lr = /* @__PURE__ */ l((t, r) => {
|
|
327
|
+
const n = {
|
|
328
|
+
Commit: /* @__PURE__ */ l((e) => r.commit(kr(e)), "Commit"),
|
|
329
|
+
Branch: /* @__PURE__ */ l((e) => r.branch(Mr(e)), "Branch"),
|
|
330
|
+
Merge: /* @__PURE__ */ l((e) => r.merge(Ir(e)), "Merge"),
|
|
331
|
+
Checkout: /* @__PURE__ */ l((e) => r.checkout(Rr(e)), "Checkout"),
|
|
332
|
+
CherryPicking: /* @__PURE__ */ l((e) => r.cherryPick(Gr(e)), "CherryPicking")
|
|
333
|
+
}[t.$type];
|
|
334
|
+
n ? n(t) : m.error(`Unknown statement type: ${t.$type}`);
|
|
335
|
+
}, "parseStatement"), kr = /* @__PURE__ */ l((t) => ({
|
|
336
|
+
id: t.id,
|
|
337
|
+
msg: t.message ?? "",
|
|
338
|
+
type: t.type !== void 0 ? p[t.type] : p.NORMAL,
|
|
339
|
+
tags: t.tags ?? void 0
|
|
340
|
+
}), "parseCommit"), Mr = /* @__PURE__ */ l((t) => ({
|
|
341
|
+
name: t.name,
|
|
342
|
+
order: t.order ?? 0
|
|
343
|
+
}), "parseBranch"), Ir = /* @__PURE__ */ l((t) => ({
|
|
344
|
+
branch: t.branch,
|
|
345
|
+
id: t.id ?? "",
|
|
346
|
+
type: t.type !== void 0 ? p[t.type] : void 0,
|
|
347
|
+
tags: t.tags ?? void 0
|
|
348
|
+
}), "parseMerge"), Rr = /* @__PURE__ */ l((t) => t.branch, "parseCheckout"), Gr = /* @__PURE__ */ l((t) => ({
|
|
349
|
+
id: t.id,
|
|
350
|
+
targetId: "",
|
|
351
|
+
tags: t.tags?.length === 0 ? void 0 : t.tags,
|
|
352
|
+
parent: t.parent
|
|
353
|
+
}), "parseCherryPicking"), Or = {
|
|
354
|
+
parse: /* @__PURE__ */ l(async (t) => {
|
|
355
|
+
const r = await dr("gitGraph", t);
|
|
356
|
+
m.debug(r), Br(r, S);
|
|
357
|
+
}, "parse")
|
|
358
|
+
}, Ar = rr(), v = Ar?.gitGraph, L = 10, k = 40, E = 4, T = 2, M = 8, b = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), O = 30, R = /* @__PURE__ */ new Map(), A = [], B = 0, u = "LR", qr = /* @__PURE__ */ l(() => {
|
|
359
|
+
b.clear(), w.clear(), R.clear(), B = 0, A = [], u = "LR";
|
|
360
|
+
}, "clear"), W = /* @__PURE__ */ l((t) => {
|
|
361
|
+
const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
362
|
+
return (typeof t == "string" ? t.split(/\\n|\n|<br\s*\/?>/gi) : t).forEach((n) => {
|
|
363
|
+
const e = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
364
|
+
e.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), e.setAttribute("dy", "1em"), e.setAttribute("x", "0"), e.setAttribute("class", "row"), e.textContent = n.trim(), r.appendChild(e);
|
|
365
|
+
}), r;
|
|
366
|
+
}, "drawText"), j = /* @__PURE__ */ l((t) => {
|
|
367
|
+
let r, s, n;
|
|
368
|
+
return u === "BT" ? (s = /* @__PURE__ */ l((e, a) => e <= a, "comparisonFunc"), n = 1 / 0) : (s = /* @__PURE__ */ l((e, a) => e >= a, "comparisonFunc"), n = 0), t.forEach((e) => {
|
|
369
|
+
const a = u === "TB" || u == "BT" ? w.get(e)?.y : w.get(e)?.x;
|
|
370
|
+
a !== void 0 && s(a, n) && (r = e, n = a);
|
|
371
|
+
}), r;
|
|
372
|
+
}, "findClosestParent"), _r = /* @__PURE__ */ l((t) => {
|
|
373
|
+
let r = "", s = 1 / 0;
|
|
374
|
+
return t.forEach((n) => {
|
|
375
|
+
const e = w.get(n).y;
|
|
376
|
+
e <= s && (r = n, s = e);
|
|
377
|
+
}), r || void 0;
|
|
378
|
+
}, "findClosestParentBT"), Hr = /* @__PURE__ */ l((t, r, s) => {
|
|
379
|
+
let n = s, e = s;
|
|
380
|
+
const a = [];
|
|
381
|
+
t.forEach((d) => {
|
|
382
|
+
const o = r.get(d);
|
|
383
|
+
if (!o)
|
|
384
|
+
throw new Error(`Commit not found for key ${d}`);
|
|
385
|
+
o.parents.length ? (n = zr(o), e = Math.max(n, e)) : a.push(o), Dr(o, n);
|
|
386
|
+
}), n = e, a.forEach((d) => {
|
|
387
|
+
Fr(d, n, s);
|
|
388
|
+
}), t.forEach((d) => {
|
|
389
|
+
const o = r.get(d);
|
|
390
|
+
if (o?.parents.length) {
|
|
391
|
+
const f = _r(o.parents);
|
|
392
|
+
n = w.get(f).y - k, n <= e && (e = n);
|
|
393
|
+
const h = b.get(o.branch).pos, $ = n - L;
|
|
394
|
+
w.set(o.id, { x: h, y: $ });
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
}, "setParallelBTPos"), Pr = /* @__PURE__ */ l((t) => {
|
|
398
|
+
const r = j(t.parents.filter((n) => n !== null));
|
|
399
|
+
if (!r)
|
|
400
|
+
throw new Error(`Closest parent not found for commit ${t.id}`);
|
|
401
|
+
const s = w.get(r)?.y;
|
|
402
|
+
if (s === void 0)
|
|
403
|
+
throw new Error(`Closest parent position not found for commit ${t.id}`);
|
|
404
|
+
return s;
|
|
405
|
+
}, "findClosestParentPos"), zr = /* @__PURE__ */ l((t) => Pr(t) + k, "calculateCommitPosition"), Dr = /* @__PURE__ */ l((t, r) => {
|
|
406
|
+
const s = b.get(t.branch);
|
|
407
|
+
if (!s)
|
|
408
|
+
throw new Error(`Branch not found for commit ${t.id}`);
|
|
409
|
+
const n = s.pos, e = r + L;
|
|
410
|
+
return w.set(t.id, { x: n, y: e }), { x: n, y: e };
|
|
411
|
+
}, "setCommitPosition"), Fr = /* @__PURE__ */ l((t, r, s) => {
|
|
412
|
+
const n = b.get(t.branch);
|
|
413
|
+
if (!n)
|
|
414
|
+
throw new Error(`Branch not found for commit ${t.id}`);
|
|
415
|
+
const e = r + s, a = n.pos;
|
|
416
|
+
w.set(t.id, { x: a, y: e });
|
|
417
|
+
}, "setRootPosition"), Nr = /* @__PURE__ */ l((t, r, s, n, e, a) => {
|
|
418
|
+
if (a === p.HIGHLIGHT)
|
|
419
|
+
t.append("rect").attr("x", s.x - 10).attr("y", s.y - 10).attr("width", 20).attr("height", 20).attr(
|
|
420
|
+
"class",
|
|
421
|
+
`commit ${r.id} commit-highlight${e % M} ${n}-outer`
|
|
422
|
+
), t.append("rect").attr("x", s.x - 6).attr("y", s.y - 6).attr("width", 12).attr("height", 12).attr(
|
|
423
|
+
"class",
|
|
424
|
+
`commit ${r.id} commit${e % M} ${n}-inner`
|
|
425
|
+
);
|
|
426
|
+
else if (a === p.CHERRY_PICK)
|
|
427
|
+
t.append("circle").attr("cx", s.x).attr("cy", s.y).attr("r", 10).attr("class", `commit ${r.id} ${n}`), t.append("circle").attr("cx", s.x - 3).attr("cy", s.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${n}`), t.append("circle").attr("cx", s.x + 3).attr("cy", s.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${n}`), t.append("line").attr("x1", s.x + 3).attr("y1", s.y + 1).attr("x2", s.x).attr("y2", s.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${n}`), t.append("line").attr("x1", s.x - 3).attr("y1", s.y + 1).attr("x2", s.x).attr("y2", s.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${n}`);
|
|
428
|
+
else {
|
|
429
|
+
const d = t.append("circle");
|
|
430
|
+
if (d.attr("cx", s.x), d.attr("cy", s.y), d.attr("r", r.type === p.MERGE ? 9 : 10), d.attr("class", `commit ${r.id} commit${e % M}`), a === p.MERGE) {
|
|
431
|
+
const o = t.append("circle");
|
|
432
|
+
o.attr("cx", s.x), o.attr("cy", s.y), o.attr("r", 6), o.attr(
|
|
433
|
+
"class",
|
|
434
|
+
`commit ${n} ${r.id} commit${e % M}`
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
a === p.REVERSE && t.append("path").attr(
|
|
438
|
+
"d",
|
|
439
|
+
`M ${s.x - 5},${s.y - 5}L${s.x + 5},${s.y + 5}M${s.x - 5},${s.y + 5}L${s.x + 5},${s.y - 5}`
|
|
440
|
+
).attr("class", `commit ${n} ${r.id} commit${e % M}`);
|
|
441
|
+
}
|
|
442
|
+
}, "drawCommitBullet"), Sr = /* @__PURE__ */ l((t, r, s, n) => {
|
|
443
|
+
if (r.type !== p.CHERRY_PICK && (r.customId && r.type === p.MERGE || r.type !== p.MERGE) && v?.showCommitLabel) {
|
|
444
|
+
const e = t.append("g"), a = e.insert("rect").attr("class", "commit-label-bkg"), d = e.append("text").attr("x", n).attr("y", s.y + 25).attr("class", "commit-label").text(r.id), o = d.node()?.getBBox();
|
|
445
|
+
if (o && (a.attr("x", s.posWithOffset - o.width / 2 - T).attr("y", s.y + 13.5).attr("width", o.width + 2 * T).attr("height", o.height + 2 * T), u === "TB" || u === "BT" ? (a.attr("x", s.x - (o.width + 4 * E + 5)).attr("y", s.y - 12), d.attr("x", s.x - (o.width + 4 * E)).attr("y", s.y + o.height - 12)) : d.attr("x", s.posWithOffset - o.width / 2), v.rotateCommitLabel))
|
|
446
|
+
if (u === "TB" || u === "BT")
|
|
447
|
+
d.attr(
|
|
448
|
+
"transform",
|
|
449
|
+
"rotate(-45, " + s.x + ", " + s.y + ")"
|
|
450
|
+
), a.attr(
|
|
451
|
+
"transform",
|
|
452
|
+
"rotate(-45, " + s.x + ", " + s.y + ")"
|
|
453
|
+
);
|
|
454
|
+
else {
|
|
455
|
+
const f = -7.5 - (o.width + 10) / 25 * 9.5, h = 10 + o.width / 25 * 8.5;
|
|
456
|
+
e.attr(
|
|
457
|
+
"transform",
|
|
458
|
+
"translate(" + f + ", " + h + ") rotate(-45, " + n + ", " + s.y + ")"
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}, "drawCommitLabel"), Wr = /* @__PURE__ */ l((t, r, s, n) => {
|
|
463
|
+
if (r.tags.length > 0) {
|
|
464
|
+
let e = 0, a = 0, d = 0;
|
|
465
|
+
const o = [];
|
|
466
|
+
for (const f of r.tags.reverse()) {
|
|
467
|
+
const h = t.insert("polygon"), $ = t.append("circle"), g = t.append("text").attr("y", s.y - 16 - e).attr("class", "tag-label").text(f), i = g.node()?.getBBox();
|
|
468
|
+
if (!i)
|
|
469
|
+
throw new Error("Tag bbox not found");
|
|
470
|
+
a = Math.max(a, i.width), d = Math.max(d, i.height), g.attr("x", s.posWithOffset - i.width / 2), o.push({
|
|
471
|
+
tag: g,
|
|
472
|
+
hole: $,
|
|
473
|
+
rect: h,
|
|
474
|
+
yOffset: e
|
|
475
|
+
}), e += 20;
|
|
476
|
+
}
|
|
477
|
+
for (const { tag: f, hole: h, rect: $, yOffset: g } of o) {
|
|
478
|
+
const i = d / 2, y = s.y - 19.2 - g;
|
|
479
|
+
if ($.attr("class", "tag-label-bkg").attr(
|
|
480
|
+
"points",
|
|
481
|
+
`
|
|
482
|
+
${n - a / 2 - E / 2},${y + T}
|
|
483
|
+
${n - a / 2 - E / 2},${y - T}
|
|
484
|
+
${s.posWithOffset - a / 2 - E},${y - i - T}
|
|
485
|
+
${s.posWithOffset + a / 2 + E},${y - i - T}
|
|
486
|
+
${s.posWithOffset + a / 2 + E},${y + i + T}
|
|
487
|
+
${s.posWithOffset - a / 2 - E},${y + i + T}`
|
|
488
|
+
), h.attr("cy", y).attr("cx", n - a / 2 + E / 2).attr("r", 1.5).attr("class", "tag-hole"), u === "TB" || u === "BT") {
|
|
489
|
+
const x = n + g;
|
|
490
|
+
$.attr("class", "tag-label-bkg").attr(
|
|
491
|
+
"points",
|
|
492
|
+
`
|
|
493
|
+
${s.x},${x + 2}
|
|
494
|
+
${s.x},${x - 2}
|
|
495
|
+
${s.x + L},${x - i - 2}
|
|
496
|
+
${s.x + L + a + 4},${x - i - 2}
|
|
497
|
+
${s.x + L + a + 4},${x + i + 2}
|
|
498
|
+
${s.x + L},${x + i + 2}`
|
|
499
|
+
).attr("transform", "translate(12,12) rotate(45, " + s.x + "," + n + ")"), h.attr("cx", s.x + E / 2).attr("cy", x).attr("transform", "translate(12,12) rotate(45, " + s.x + "," + n + ")"), f.attr("x", s.x + 5).attr("y", x + 3).attr("transform", "translate(14,14) rotate(45, " + s.x + "," + n + ")");
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}, "drawCommitTags"), jr = /* @__PURE__ */ l((t) => {
|
|
504
|
+
switch (t.customType ?? t.type) {
|
|
505
|
+
case p.NORMAL:
|
|
506
|
+
return "commit-normal";
|
|
507
|
+
case p.REVERSE:
|
|
508
|
+
return "commit-reverse";
|
|
509
|
+
case p.HIGHLIGHT:
|
|
510
|
+
return "commit-highlight";
|
|
511
|
+
case p.MERGE:
|
|
512
|
+
return "commit-merge";
|
|
513
|
+
case p.CHERRY_PICK:
|
|
514
|
+
return "commit-cherry-pick";
|
|
515
|
+
default:
|
|
516
|
+
return "commit-normal";
|
|
517
|
+
}
|
|
518
|
+
}, "getCommitClassType"), Kr = /* @__PURE__ */ l((t, r, s, n) => {
|
|
519
|
+
const e = { x: 0, y: 0 };
|
|
520
|
+
if (t.parents.length > 0) {
|
|
521
|
+
const a = j(t.parents);
|
|
522
|
+
if (a) {
|
|
523
|
+
const d = n.get(a) ?? e;
|
|
524
|
+
return r === "TB" ? d.y + k : r === "BT" ? (n.get(t.id) ?? e).y - k : d.x + k;
|
|
525
|
+
}
|
|
526
|
+
} else
|
|
527
|
+
return r === "TB" ? O : r === "BT" ? (n.get(t.id) ?? e).y - k : 0;
|
|
528
|
+
return 0;
|
|
529
|
+
}, "calculatePosition"), Yr = /* @__PURE__ */ l((t, r, s) => {
|
|
530
|
+
const n = u === "BT" && s ? r : r + L, e = u === "TB" || u === "BT" ? n : b.get(t.branch)?.pos, a = u === "TB" || u === "BT" ? b.get(t.branch)?.pos : n;
|
|
531
|
+
if (a === void 0 || e === void 0)
|
|
532
|
+
throw new Error(`Position were undefined for commit ${t.id}`);
|
|
533
|
+
return { x: a, y: e, posWithOffset: n };
|
|
534
|
+
}, "getCommitPosition"), z = /* @__PURE__ */ l((t, r, s) => {
|
|
535
|
+
if (!v)
|
|
536
|
+
throw new Error("GitGraph config not found");
|
|
537
|
+
const n = t.append("g").attr("class", "commit-bullets"), e = t.append("g").attr("class", "commit-labels");
|
|
538
|
+
let a = u === "TB" || u === "BT" ? O : 0;
|
|
539
|
+
const d = [...r.keys()], o = v?.parallelCommits ?? !1, f = /* @__PURE__ */ l(($, g) => {
|
|
540
|
+
const i = r.get($)?.seq, y = r.get(g)?.seq;
|
|
541
|
+
return i !== void 0 && y !== void 0 ? i - y : 0;
|
|
542
|
+
}, "sortKeys");
|
|
543
|
+
let h = d.sort(f);
|
|
544
|
+
u === "BT" && (o && Hr(h, r, a), h = h.reverse()), h.forEach(($) => {
|
|
545
|
+
const g = r.get($);
|
|
546
|
+
if (!g)
|
|
547
|
+
throw new Error(`Commit not found for key ${$}`);
|
|
548
|
+
o && (a = Kr(g, u, a, w));
|
|
549
|
+
const i = Yr(g, a, o);
|
|
550
|
+
if (s) {
|
|
551
|
+
const y = jr(g), x = g.customType ?? g.type, _ = b.get(g.branch)?.index ?? 0;
|
|
552
|
+
Nr(n, g, i, y, _, x), Sr(e, g, i, a), Wr(e, g, i, a);
|
|
553
|
+
}
|
|
554
|
+
u === "TB" || u === "BT" ? w.set(g.id, { x: i.x, y: i.posWithOffset }) : w.set(g.id, { x: i.posWithOffset, y: i.y }), a = u === "BT" && o ? a + k : a + k + L, a > B && (B = a);
|
|
555
|
+
});
|
|
556
|
+
}, "drawCommits"), Ur = /* @__PURE__ */ l((t, r, s, n, e) => {
|
|
557
|
+
const d = (u === "TB" || u === "BT" ? s.x < n.x : s.y < n.y) ? r.branch : t.branch, o = /* @__PURE__ */ l((h) => h.branch === d, "isOnBranchToGetCurve"), f = /* @__PURE__ */ l((h) => h.seq > t.seq && h.seq < r.seq, "isBetweenCommits");
|
|
558
|
+
return [...e.values()].some((h) => f(h) && o(h));
|
|
559
|
+
}, "shouldRerouteArrow"), G = /* @__PURE__ */ l((t, r, s = 0) => {
|
|
560
|
+
const n = t + Math.abs(t - r) / 2;
|
|
561
|
+
if (s > 5)
|
|
562
|
+
return n;
|
|
563
|
+
if (A.every((d) => Math.abs(d - n) >= 10))
|
|
564
|
+
return A.push(n), n;
|
|
565
|
+
const a = Math.abs(t - r);
|
|
566
|
+
return G(t, r - a / 5, s + 1);
|
|
567
|
+
}, "findLane"), Vr = /* @__PURE__ */ l((t, r, s, n) => {
|
|
568
|
+
const e = w.get(r.id), a = w.get(s.id);
|
|
569
|
+
if (e === void 0 || a === void 0)
|
|
570
|
+
throw new Error(`Commit positions not found for commits ${r.id} and ${s.id}`);
|
|
571
|
+
const d = Ur(r, s, e, a, n);
|
|
572
|
+
let o = "", f = "", h = 0, $ = 0, g = b.get(s.branch)?.index;
|
|
573
|
+
s.type === p.MERGE && r.id !== s.parents[0] && (g = b.get(r.branch)?.index);
|
|
574
|
+
let i;
|
|
575
|
+
if (d) {
|
|
576
|
+
o = "A 10 10, 0, 0, 0,", f = "A 10 10, 0, 0, 1,", h = 10, $ = 10;
|
|
577
|
+
const y = e.y < a.y ? G(e.y, a.y) : G(a.y, e.y), x = e.x < a.x ? G(e.x, a.x) : G(a.x, e.x);
|
|
578
|
+
u === "TB" ? e.x < a.x ? i = `M ${e.x} ${e.y} L ${x - h} ${e.y} ${f} ${x} ${e.y + $} L ${x} ${a.y - h} ${o} ${x + $} ${a.y} L ${a.x} ${a.y}` : (g = b.get(r.branch)?.index, i = `M ${e.x} ${e.y} L ${x + h} ${e.y} ${o} ${x} ${e.y + $} L ${x} ${a.y - h} ${f} ${x - $} ${a.y} L ${a.x} ${a.y}`) : u === "BT" ? e.x < a.x ? i = `M ${e.x} ${e.y} L ${x - h} ${e.y} ${o} ${x} ${e.y - $} L ${x} ${a.y + h} ${f} ${x + $} ${a.y} L ${a.x} ${a.y}` : (g = b.get(r.branch)?.index, i = `M ${e.x} ${e.y} L ${x + h} ${e.y} ${f} ${x} ${e.y - $} L ${x} ${a.y + h} ${o} ${x - $} ${a.y} L ${a.x} ${a.y}`) : e.y < a.y ? i = `M ${e.x} ${e.y} L ${e.x} ${y - h} ${o} ${e.x + $} ${y} L ${a.x - h} ${y} ${f} ${a.x} ${y + $} L ${a.x} ${a.y}` : (g = b.get(r.branch)?.index, i = `M ${e.x} ${e.y} L ${e.x} ${y + h} ${f} ${e.x + $} ${y} L ${a.x - h} ${y} ${o} ${a.x} ${y - $} L ${a.x} ${a.y}`);
|
|
579
|
+
} else
|
|
580
|
+
o = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", h = 20, $ = 20, u === "TB" ? (e.x < a.x && (s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y - h} ${o} ${e.x + $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${f} ${a.x} ${e.y + $} L ${a.x} ${a.y}`), e.x > a.x && (o = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", h = 20, $ = 20, s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y - h} ${f} ${e.x - $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x + h} ${e.y} ${o} ${a.x} ${e.y + $} L ${a.x} ${a.y}`), e.x === a.x && (i = `M ${e.x} ${e.y} L ${a.x} ${a.y}`)) : u === "BT" ? (e.x < a.x && (s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y + h} ${f} ${e.x + $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${o} ${a.x} ${e.y - $} L ${a.x} ${a.y}`), e.x > a.x && (o = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", h = 20, $ = 20, s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y + h} ${o} ${e.x - $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${o} ${a.x} ${e.y - $} L ${a.x} ${a.y}`), e.x === a.x && (i = `M ${e.x} ${e.y} L ${a.x} ${a.y}`)) : (e.y < a.y && (s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${f} ${a.x} ${e.y + $} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${e.x} ${a.y - h} ${o} ${e.x + $} ${a.y} L ${a.x} ${a.y}`), e.y > a.y && (s.type === p.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${o} ${a.x} ${e.y - $} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${e.x} ${a.y + h} ${f} ${e.x + $} ${a.y} L ${a.x} ${a.y}`), e.y === a.y && (i = `M ${e.x} ${e.y} L ${a.x} ${a.y}`));
|
|
581
|
+
if (i === void 0)
|
|
582
|
+
throw new Error("Line definition not found");
|
|
583
|
+
t.append("path").attr("d", i).attr("class", "arrow arrow" + g % M);
|
|
584
|
+
}, "drawArrow"), Xr = /* @__PURE__ */ l((t, r) => {
|
|
585
|
+
const s = t.append("g").attr("class", "commit-arrows");
|
|
586
|
+
[...r.keys()].forEach((n) => {
|
|
587
|
+
const e = r.get(n);
|
|
588
|
+
e.parents && e.parents.length > 0 && e.parents.forEach((a) => {
|
|
589
|
+
Vr(s, r.get(a), e, r);
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
}, "drawArrows"), Jr = /* @__PURE__ */ l((t, r) => {
|
|
593
|
+
const s = t.append("g");
|
|
594
|
+
r.forEach((n, e) => {
|
|
595
|
+
const a = e % M, d = b.get(n.name)?.pos;
|
|
596
|
+
if (d === void 0)
|
|
597
|
+
throw new Error(`Position not found for branch ${n.name}`);
|
|
598
|
+
const o = s.append("line");
|
|
599
|
+
o.attr("x1", 0), o.attr("y1", d), o.attr("x2", B), o.attr("y2", d), o.attr("class", "branch branch" + a), u === "TB" ? (o.attr("y1", O), o.attr("x1", d), o.attr("y2", B), o.attr("x2", d)) : u === "BT" && (o.attr("y1", B), o.attr("x1", d), o.attr("y2", O), o.attr("x2", d)), A.push(d);
|
|
600
|
+
const f = n.name, h = W(f), $ = s.insert("rect"), i = s.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + a);
|
|
601
|
+
i.node().appendChild(h);
|
|
602
|
+
const y = h.getBBox();
|
|
603
|
+
$.attr("class", "branchLabelBkg label" + a).attr("rx", 4).attr("ry", 4).attr("x", -y.width - 4 - (v?.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -y.height / 2 + 8).attr("width", y.width + 18).attr("height", y.height + 4), i.attr(
|
|
604
|
+
"transform",
|
|
605
|
+
"translate(" + (-y.width - 14 - (v?.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (d - y.height / 2 - 1) + ")"
|
|
606
|
+
), u === "TB" ? ($.attr("x", d - y.width / 2 - 10).attr("y", 0), i.attr("transform", "translate(" + (d - y.width / 2 - 5) + ", 0)")) : u === "BT" ? ($.attr("x", d - y.width / 2 - 10).attr("y", B), i.attr("transform", "translate(" + (d - y.width / 2 - 5) + ", " + B + ")")) : $.attr("transform", "translate(-19, " + (d - y.height / 2) + ")");
|
|
607
|
+
});
|
|
608
|
+
}, "drawBranches"), Qr = /* @__PURE__ */ l(function(t, r, s, n, e) {
|
|
609
|
+
return b.set(t, { pos: r, index: s }), r += 50 + (e ? 40 : 0) + (u === "TB" || u === "BT" ? n.width / 2 : 0), r;
|
|
610
|
+
}, "setBranchPosition"), Zr = /* @__PURE__ */ l(function(t, r, s, n) {
|
|
611
|
+
if (qr(), m.debug("in gitgraph renderer", t + `
|
|
612
|
+
`, "id:", r, s), !v)
|
|
613
|
+
throw new Error("GitGraph config not found");
|
|
614
|
+
const e = v.rotateCommitLabel ?? !1, a = n.db;
|
|
615
|
+
R = a.getCommits();
|
|
616
|
+
const d = a.getBranchesAsObjArray();
|
|
617
|
+
u = a.getDirection();
|
|
618
|
+
const o = er(`[id="${r}"]`);
|
|
619
|
+
let f = 0;
|
|
620
|
+
d.forEach((h, $) => {
|
|
621
|
+
const g = W(h.name), i = o.append("g"), y = i.insert("g").attr("class", "branchLabel"), x = y.insert("g").attr("class", "label branch-label");
|
|
622
|
+
x.node()?.appendChild(g);
|
|
623
|
+
const _ = g.getBBox();
|
|
624
|
+
f = Qr(h.name, f, $, _, e), x.remove(), y.remove(), i.remove();
|
|
625
|
+
}), z(o, R, !1), v.showBranches && Jr(o, d), Xr(o, R), z(o, R, !0), tr.insertTitle(
|
|
626
|
+
o,
|
|
627
|
+
"gitTitleText",
|
|
628
|
+
v.titleTopMargin ?? 0,
|
|
629
|
+
a.getDiagramTitle()
|
|
630
|
+
), ar(
|
|
631
|
+
void 0,
|
|
632
|
+
o,
|
|
633
|
+
v.diagramPadding,
|
|
634
|
+
v.useMaxWidth
|
|
635
|
+
);
|
|
636
|
+
}, "draw"), re = {
|
|
637
|
+
draw: Zr
|
|
638
|
+
}, ee = /* @__PURE__ */ l((t) => `
|
|
639
|
+
.commit-id,
|
|
640
|
+
.commit-msg,
|
|
641
|
+
.branch-label {
|
|
642
|
+
fill: lightgrey;
|
|
643
|
+
color: lightgrey;
|
|
644
|
+
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
645
|
+
font-family: var(--mermaid-font-family);
|
|
646
|
+
}
|
|
647
|
+
${[0, 1, 2, 3, 4, 5, 6, 7].map(
|
|
648
|
+
(r) => `
|
|
649
|
+
.branch-label${r} { fill: ${t["gitBranchLabel" + r]}; }
|
|
650
|
+
.commit${r} { stroke: ${t["git" + r]}; fill: ${t["git" + r]}; }
|
|
651
|
+
.commit-highlight${r} { stroke: ${t["gitInv" + r]}; fill: ${t["gitInv" + r]}; }
|
|
652
|
+
.label${r} { fill: ${t["git" + r]}; }
|
|
653
|
+
.arrow${r} { stroke: ${t["git" + r]}; }
|
|
654
|
+
`
|
|
655
|
+
).join(`
|
|
656
|
+
`)}
|
|
657
|
+
|
|
658
|
+
.branch {
|
|
659
|
+
stroke-width: 1;
|
|
660
|
+
stroke: ${t.lineColor};
|
|
661
|
+
stroke-dasharray: 2;
|
|
662
|
+
}
|
|
663
|
+
.commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
|
|
664
|
+
.commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
|
|
665
|
+
.tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
|
|
666
|
+
.tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
|
|
667
|
+
.tag-hole { fill: ${t.textColor}; }
|
|
668
|
+
|
|
669
|
+
.commit-merge {
|
|
670
|
+
stroke: ${t.primaryColor};
|
|
671
|
+
fill: ${t.primaryColor};
|
|
672
|
+
}
|
|
673
|
+
.commit-reverse {
|
|
674
|
+
stroke: ${t.primaryColor};
|
|
675
|
+
fill: ${t.primaryColor};
|
|
676
|
+
stroke-width: 3;
|
|
677
|
+
}
|
|
678
|
+
.commit-highlight-outer {
|
|
679
|
+
}
|
|
680
|
+
.commit-highlight-inner {
|
|
681
|
+
stroke: ${t.primaryColor};
|
|
682
|
+
fill: ${t.primaryColor};
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
686
|
+
.gitTitleText {
|
|
687
|
+
text-anchor: middle;
|
|
688
|
+
font-size: 18px;
|
|
689
|
+
fill: ${t.textColor};
|
|
690
|
+
}
|
|
691
|
+
`, "getStyles"), te = ee, ce = {
|
|
692
|
+
parser: Or,
|
|
693
|
+
db: S,
|
|
694
|
+
renderer: re,
|
|
695
|
+
styles: te
|
|
696
|
+
};
|
|
697
|
+
export {
|
|
698
|
+
ce as diagram
|
|
699
|
+
};
|