@marimo-team/islands 0.16.5 → 0.17.1
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/dist/{fullscreen-D1yTiBlu.js → Combination-De9yoNY5.js} +855 -795
- package/dist/{ConnectedDataExplorerComponent-D96i9G-X.js → ConnectedDataExplorerComponent-DuvpJOKp.js} +102 -123
- package/dist/{ImageComparisonComponent-D4Tv9QzJ.js → ImageComparisonComponent--etUl2pp.js} +2 -2
- package/dist/{_baseIsEqual-oN7pRNcM.js → _baseIsEqual-BFlyFUxC.js} +20 -20
- package/dist/{_basePickBy-CYvzhRjy.js → _basePickBy-gCCvtjgp.js} +3 -3
- package/dist/{_baseProperty-DGUdIBuu.js → _baseProperty-BuqBC0Ie.js} +5 -5
- package/dist/{_baseUniq-B5gfSl8S.js → _baseUniq-CKN9mEDq.js} +5 -5
- package/dist/any-language-editor-Du2Q_6IK.js +156 -0
- package/dist/apl-CUm2DGqh.js +4 -0
- package/dist/{arc-B1iVbHTB.js → arc-C_O2hc-b.js} +2 -2
- package/dist/architecture-O4VJ6CD3-PFw3eFBY.js +21 -0
- package/dist/{architectureDiagram-W76B3OCA-DkEhipkW.js → architectureDiagram-W76B3OCA-CrK99pJi.js} +41 -40
- package/dist/asciiarmor-lqJ78U01.js +4 -0
- package/dist/asn1-CjwpSTlW.js +4 -0
- package/dist/assets/__vite-browser-external-DHoMWs4M.js +1 -0
- package/dist/assets/worker-B6tH8gPO.js +54 -0
- package/dist/{blockDiagram-QIGZ2CNN-DZOqLMYa.js → blockDiagram-QIGZ2CNN-BJOEyO6w.js} +101 -111
- package/dist/brainfuck-ClvDI1dq.js +4 -0
- package/dist/{button-CEcjneWG.js → button-ADXOb_gX.js} +37 -40
- package/dist/{c4Diagram-FPNF74CW-DVaR7c9q.js → c4Diagram-FPNF74CW-7Pz_X9wF.js} +31 -54
- package/dist/{channel-Uh0KpgGW.js → channel-X-wRUxX6.js} +1 -1
- package/dist/{check-BK9zDfQk.js → check-COlaG7Ss.js} +1 -1
- package/dist/{chunk-3AY6CYHV-Dk2R2-S1.js → chunk-3AY6CYHV-BQH2fFpA.js} +37 -37
- package/dist/{chunk-4BX2VUAB-CqO6zUIz.js → chunk-4BX2VUAB-D-QtDCKM.js} +1 -1
- package/dist/{chunk-4KMFLZZN-CloTfTwP.js → chunk-4KMFLZZN-BirZvvJS.js} +220 -329
- package/dist/{chunk-55IACEB6-I0rmqTua.js → chunk-55IACEB6-DjtPYZKs.js} +1 -1
- package/dist/{chunk-6OXUPJBA-BuROSTmo.js → chunk-6OXUPJBA-CTnnqlzw.js} +7 -7
- package/dist/{chunk-7GE3RBXV-B1-tsIPP.js → chunk-7GE3RBXV-CT47hCrL.js} +1 -1
- package/dist/{chunk-ABZYJK2D-CLlso8tj.js → chunk-ABZYJK2D-B6ZsU6SR.js} +484 -1043
- package/dist/{chunk-BN7GFLIU-Db2-FjLn.js → chunk-BN7GFLIU-DYWEsrG4.js} +1 -1
- package/dist/{chunk-CVBHYZKI-BONeiloK.js → chunk-CVBHYZKI-BuzDGXz0.js} +3 -3
- package/dist/{chunk-CXMOBAN2-U9GJSP1d.js → chunk-CXMOBAN2-Bas2S5w1.js} +46 -54
- package/dist/chunk-EXTU4WIE-DXwNSukz.js +10 -0
- package/dist/{chunk-FMBD7UC4-DyV3BR_I.js → chunk-FMBD7UC4-CYKEpuPr.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-C9A1076P.js → chunk-JA3XYJ7Z-DcxfkcDC.js} +21 -25
- package/dist/{chunk-JEIROHC2-BGnFkSVq.js → chunk-JEIROHC2-C01ZIcIG.js} +1 -1
- package/dist/{chunk-K7UQS3LO-033LOsjK.js → chunk-K7UQS3LO-CmbT97MV.js} +7 -7
- package/dist/{chunk-KMC2YHZD-DT4Sq4Ld.js → chunk-KMC2YHZD-D64m-1E1.js} +1 -1
- package/dist/{chunk-QN33PNHL-gs44MZla.js → chunk-QN33PNHL-DjB0j8Dr.js} +2 -2
- package/dist/{chunk-QYVHNE3D-B8BO1AnT.js → chunk-QYVHNE3D-VA4W4oxG.js} +3 -4
- package/dist/{chunk-QZHKN3VN-CeN_GkU6.js → chunk-QZHKN3VN-KT0fl3Em.js} +1 -1
- package/dist/chunk-S3R3BYOJ-C5zmcMvn.js +380 -0
- package/dist/{chunk-T44TD3VJ-BwzD6YE0.js → chunk-T44TD3VJ-BMOgu-Hk.js} +1 -1
- package/dist/{chunk-TVAH2DTR-Bi6jpQJQ.js → chunk-TVAH2DTR-eKm8SKnH.js} +7 -8
- package/dist/{chunk-TZMSLE5B-D8klz2H_.js → chunk-TZMSLE5B-CQxFRiI2.js} +5 -6
- package/dist/{chunk-WFRQ32O7-CzSwSlN0.js → chunk-WFRQ32O7-Dg51o277.js} +1 -1
- package/dist/{chunk-WFWHJNB7-DN_cavM6.js → chunk-WFWHJNB7-DVLO98ge.js} +1 -1
- package/dist/{chunk-XRWGC2XP-Bb5eGNM2.js → chunk-XRWGC2XP-UNFKdWQh.js} +1 -1
- package/dist/{chunk-ZPAFE4SF-S5UYNb0V.js → chunk-ZPAFE4SF-DbCSwfLK.js} +22 -22
- package/dist/classDiagram-KNZD7YFC-HUFFxNdk.js +40 -0
- package/dist/classDiagram-v2-RKCZMP56-Dw7Acmuf.js +40 -0
- package/dist/{click-outside-container-DE4e7p1p.js → click-outside-container-2BH589Bq.js} +9 -14
- package/dist/{clike-Cg_DBrJ0.js → clike-Bc2PZzZQ.js} +1 -1
- package/dist/{clike-CxAz4p9E.js → clike-CytFO-kN.js} +1 -1
- package/dist/clojure-8GefCgPe.js +4 -0
- package/dist/{clone-Dk4FkKH0.js → clone-CCgVUJ6x.js} +1 -1
- package/dist/cmake-yAhT9H0F.js +4 -0
- package/dist/cobol-BmltueOY.js +4 -0
- package/dist/coffeescript-C7KEQBcH.js +4 -0
- package/dist/commonlisp-CNbiJRU-.js +4 -0
- package/dist/{constants-Cjd_3kwd.js → constants-BaCMVd12.js} +3 -3
- package/dist/{copy-C5RFg7ok.js → copy-GNcK40wy.js} +6 -2
- package/dist/{cose-bilkent-S5V4N54A-B3iOTGu5.js → cose-bilkent-S5V4N54A-BnvuJG6Y.js} +20 -20
- package/dist/crystal-OdjZZ8bc.js +4 -0
- package/dist/css-DhTxMmL_.js +5 -0
- package/dist/cypher-CgN8E3YI.js +4 -0
- package/dist/{cytoscape.esm-DTDV0Nbj.js → cytoscape.esm-BFEMljQI.js} +586 -661
- package/dist/d-g41sJcBC.js +4 -0
- package/dist/{dagre-5GWH7T2D-KM4Z11yT.js → dagre-5GWH7T2D-rn7tZYaQ.js} +41 -45
- package/dist/{dagre-B0u1urxE.js → dagre-Bghq6VKO.js} +58 -77
- package/dist/data-grid-overlay-editor-B4_Caieu.js +133 -0
- package/dist/{diagram-N5W7TBWH-CtO7az4G.js → diagram-N5W7TBWH-lbF94o-g.js} +46 -61
- package/dist/diagram-QEK2KX5R-CKBhSzsO.js +246 -0
- package/dist/{diagram-S2PKOQOG-CiXElLNQ.js → diagram-S2PKOQOG-161_1f53.js} +35 -34
- package/dist/diff-ViRYYhhg.js +4 -0
- package/dist/{dist-C3WYsf4K.js → dist-28HYzERB.js} +4 -10
- package/dist/{dist-CChOkSUg.js → dist-4dtbqf8A.js} +3 -3
- package/dist/{dist-CUnh_3Ii.js → dist-71jYYbWP.js} +2 -2
- package/dist/{dist-elblfNXO.js → dist-B8Pbw5ln.js} +2 -2
- package/dist/{dist-DPF5TTUg.js → dist-BAqp4Vtl.js} +126 -115
- package/dist/{dist-BEvIw5Nh.js → dist-BBhmkni2.js} +1 -1
- package/dist/{dist-C7ASiFxI.js → dist-BNRdMfJH.js} +273 -263
- package/dist/dist-BSyYM1Gi.js +15 -0
- package/dist/{dist-DzOpMdwb.js → dist-BYHiiJB-.js} +4 -4
- package/dist/{dist-DKFaZRVk.js → dist-B_wjJqqS.js} +2 -2
- package/dist/{dist-CutXTm8t.js → dist-BaPjLM6s.js} +1 -1
- package/dist/dist-BfJO8Bm9.js +12 -0
- package/dist/{dist-CGIZPq3J.js → dist-BqdQPWpQ.js} +2 -2
- package/dist/{dist--I6Htnlv.js → dist-C2IEc8og.js} +5 -5
- package/dist/{dist-CLvpViod.js → dist-C9-uHBqC.js} +2 -3
- package/dist/{dist-DBhzmFyH.js → dist-CJb8EiFO.js} +3 -3
- package/dist/dist-CLuF3AtO.js +6 -0
- package/dist/{dist-Dzk1C8l5.js → dist-CNAkUyxv.js} +11 -14
- package/dist/{dist-DNnYAdRE.js → dist-CNvMOZu9.js} +2 -2
- package/dist/{dist-CxD5E6Sh.js → dist-CPNnKuPh.js} +24 -22
- package/dist/{dist-C3QUag__.js → dist-CTIyD_KU.js} +3 -3
- package/dist/dist-CU04U4NL.js +10 -0
- package/dist/{dist-CZfRM7pE.js → dist-CWh5ZwcC.js} +2 -2
- package/dist/{dist-DW9er3Zq.js → dist-CWqB4bg8.js} +44 -23
- package/dist/{dist-CbRkrKrP.js → dist-CtOeHDJp.js} +5 -5
- package/dist/{dist-DL_ci7Yc.js → dist-Cw0F6l-7.js} +1 -1
- package/dist/{dist-BZBitvuL.js → dist-CwZcC4om.js} +1 -1
- package/dist/dist-DNUT6b47.js +6 -0
- package/dist/{dist-BBlFk9ki.js → dist-Da046MhT.js} +1 -1
- package/dist/{dist-Cib4sGDA.js → dist-DaTVdKJa.js} +2 -2
- package/dist/dist-DbAb2sY7.js +6 -0
- package/dist/dist-DiDFQ2Rk.js +6 -0
- package/dist/{dist-BQmQQqFH.js → dist-DlK420ke.js} +1 -1
- package/dist/{dist-o7fhJC7U.js → dist-Drf3cyIW.js} +3 -3
- package/dist/{dist-CdE2C2In.js → dist-DxESp2-T.js} +15 -20
- package/dist/{dist-JCAky9ND.js → dist-DzJem5xc.js} +17 -22
- package/dist/{dist-C5zMs_n5.js → dist-O0zVziwn.js} +3 -3
- package/dist/dist-SNAyAOJ-.js +6 -0
- package/dist/{dist-Bar1QnNM.js → dist-_4cudra1.js} +3 -3
- package/dist/dist-cbW5xJNV.js +6 -0
- package/dist/dist-h8eGLSbK.js +10 -0
- package/dist/{dist-BqgkUnEN.js → dist-xLN9qCAp.js} +3 -3
- package/dist/{dockerfile-Dum_1b-5.js → dockerfile-Cmlcqk35.js} +1 -1
- package/dist/dtd-RplB6hDg.js +4 -0
- package/dist/dylan-BX8KJufP.js +4 -0
- package/dist/ecl-CWtLaNMH.js +4 -0
- package/dist/eiffel-C-mlZPMn.js +4 -0
- package/dist/elm-CWp06vcb.js +4 -0
- package/dist/{erDiagram-AWTI2OKA-ZTIl9iQO.js → erDiagram-AWTI2OKA-BU7Qig7n.js} +32 -31
- package/dist/erlang-pfp22AZM.js +4 -0
- package/dist/error-banner-BAWlXn49.js +1012 -0
- package/dist/{esm-d0g2RsOH.js → esm-AtKNNGYO.js} +7 -9
- package/dist/esm-B2pocBPL.js +26 -0
- package/dist/{esm-DxFkg7a6.js → esm-Oo8OvZ6m.js} +1529 -1493
- package/dist/{esm-1_Mp6VD2.js → esm-YVnxJqkD.js} +340 -411
- package/dist/{factor-CdgiDGiu.js → factor-BZnBK3CG.js} +1 -1
- package/dist/factor-CEn53jua.js +5 -0
- package/dist/{flowDiagram-PVAE7QVJ-DsbofOzu.js → flowDiagram-PVAE7QVJ-JKJebWeY.js} +41 -40
- package/dist/{formats-ChrNdVdJ.js → formats-DOEuF6TR.js} +15 -19
- package/dist/forth-CL8vu_y8.js +4 -0
- package/dist/fortran-DsmXkYtE.js +4 -0
- package/dist/{ganttDiagram-OWAHRB6G-FnCH1Yj3.js → ganttDiagram-OWAHRB6G-BvWRfg05.js} +17 -16
- package/dist/gas-mYt9Rtlx.js +4 -0
- package/dist/gherkin-DHNCKBNj.js +4 -0
- package/dist/gitGraph-ZV4HHKMB-Cpd6k0O8.js +21 -0
- package/dist/{gitGraphDiagram-NY62KEGX-B0wvMNqU.js → gitGraphDiagram-NY62KEGX-VEJJBf5L.js} +38 -40
- package/dist/{glide-data-editor-D_kEsT07.js → glide-data-editor-Bne10icG.js} +1703 -1771
- package/dist/{graphlib-BGmr7CYF.js → graphlib-DRS8CrjA.js} +5 -5
- package/dist/groovy-DzRtOS5a.js +4 -0
- package/dist/haskell-Bl9iT_Mp.js +4 -0
- package/dist/haxe-DqA0ED6k.js +5 -0
- package/dist/{hotkeys-yFrUwyJK.js → hotkeys-DVxFjl2s.js} +16 -7
- package/dist/idl-WU2hil4i.js +4 -0
- package/dist/info-63CPKGFF-CG-xzUJo.js +21 -0
- package/dist/infoDiagram-STP46IZ2-zoRBGoup.js +45 -0
- package/dist/invariant-D3JoRb4I.js +6 -0
- package/dist/{isArrayLikeObject-DiDsNamC.js → isArrayLikeObject-DU5MCuQM.js} +3 -5
- package/dist/{isEmpty-BBG-u1GM.js → isEmpty-Do_v2sls.js} +2 -2
- package/dist/{isSymbol-BxF-_8BA.js → isSymbol-CtkA8Y0a.js} +1 -1
- package/dist/{javascript-Dfq1qI35.js → javascript-DGukg1sB.js} +2 -2
- package/dist/javascript-QY2BGJeV.js +5 -0
- package/dist/jinja2-Czleq7Sk.js +4 -0
- package/dist/{journeyDiagram-BIP6EPQ6-B3PotfAW.js → journeyDiagram-BIP6EPQ6-CsgEQgxh.js} +28 -28
- package/dist/julia-Dru3Qi0y.js +4 -0
- package/dist/{kanban-definition-6OIFK2YF-BTrQZ3LN.js → kanban-definition-6OIFK2YF-Bi8Ete2P.js} +42 -41
- package/dist/{katex-dN__NFdn.js → katex-C-g3rKKt.js} +1 -1
- package/dist/{katex-BE4xflfm.js → katex-DgfMWJY9.js} +149 -173
- package/dist/{label-BinTsX-u.js → label-BiVIU_wb.js} +252 -253
- package/dist/{line-C6-zz71o.js → line-B7-GoF1m.js} +3 -3
- package/dist/{linear-DyTdUIqX.js → linear-DeGGALuc.js} +4 -4
- package/dist/livescript-Dxqi_HLT.js +4 -0
- package/dist/{loader-Dijti3y4.js → loader-BBqwtZWj.js} +19 -26
- package/dist/lua-ByH1cUQZ.js +4 -0
- package/dist/main.js +17025 -17039
- package/dist/{marked.esm-3RjvXPoO.js → marked.esm-DkVwEwtO.js} +5 -5
- package/dist/mathematica-CWJIFuES.js +4 -0
- package/dist/mbox-qhPIGaUI.js +4 -0
- package/dist/{memoize-Dq87l1O_.js → memoize-D7eDkf3R.js} +1 -1
- package/dist/{merge-BPDCIm8P.js → merge-C_6cGM6o.js} +1 -1
- package/dist/{mermaid-MWiyXDcI.js → mermaid-BmtvsZ2m.js} +323 -339
- package/dist/{mermaid-parser.core-CSFx6MQ7.js → mermaid-parser.core-geyG_6o0.js} +8 -8
- package/dist/{mhchem-DZ68WS0G.js → mhchem-OhAaJ0fA.js} +1 -1
- package/dist/{min-BzhKOmZo.js → min-Dwa_NbP6.js} +7 -7
- package/dist/{mindmap-definition-Q6HEUPPD-9hhnrO1k.js → mindmap-definition-Q6HEUPPD-B-wmX1oG.js} +29 -28
- package/dist/mirc-yYcXhXBY.js +4 -0
- package/dist/mllike-BfT_Nl9x.js +6 -0
- package/dist/modelica-lVDtz1Rm.js +4 -0
- package/dist/mscgen-DvwdD1QJ.js +6 -0
- package/dist/mumps-BiY3GwKd.js +4 -0
- package/dist/{node-sql-parser-13oju30e.js → node-sql-parser-CoPWN4hn.js} +14343 -14351
- package/dist/{now-DVBcRCoE.js → now-DumxsrcX.js} +1 -1
- package/dist/{nsis-BW6_XagK.js → nsis-D4bLR_Y1.js} +1 -1
- package/dist/nsis-Dk18Sq_4.js +5 -0
- package/dist/ntriples-Cj-8VqKF.js +4 -0
- package/dist/{number-overlay-editor-D1YdiOrm.js → number-overlay-editor-D6r-48ka.js} +18 -24
- package/dist/octave-BgFAaYjU.js +4 -0
- package/dist/once-3OSMKEsL.js +74 -0
- package/dist/{ordinal-BXk5xAj2.js → ordinal-DpEbSVPc.js} +1 -1
- package/dist/oz-IsEG1I1m.js +4 -0
- package/dist/packet-HUATNLJX-Cafuo3IG.js +21 -0
- package/dist/pascal-BVf7FtIE.js +4 -0
- package/dist/perl-BM0-y4mZ.js +4 -0
- package/dist/pie-WTHONI2E-BE0pHBwB.js +21 -0
- package/dist/{pieDiagram-ADFJNKIX-CSBC0ZgF.js → pieDiagram-ADFJNKIX-C3GvPNUL.js} +40 -39
- package/dist/pig-CLBjzQmc.js +4 -0
- package/dist/powershell-B_qvE33J.js +4 -0
- package/dist/powershell-Dr7WZMDU.js +236 -0
- package/dist/{precisionRound-DbP73hkf.js → precisionRound-7YYJq2rW.js} +1 -1
- package/dist/properties-CUTpsH2y.js +4 -0
- package/dist/protobuf-DqCP8a-0.js +4 -0
- package/dist/pug-BvexKkw4.js +5 -0
- package/dist/{pug-Bmups_z0.js → pug-Dv3gE36O.js} +1 -1
- package/dist/puppet-CoIi0R3f.js +4 -0
- package/dist/purify.es-CrfFzTyi.js +536 -0
- package/dist/python-C-11-YMh.js +5 -0
- package/dist/{q-BzWcnVri.js → q-BzRpKgfd.js} +3 -2
- package/dist/q-CCVgEip7.js +4 -0
- package/dist/{quadrantDiagram-LMRXKWRM-h7nHf8xG.js → quadrantDiagram-LMRXKWRM-DPXwGNVa.js} +11 -10
- package/dist/r-CIdR0Sfs.js +4 -0
- package/dist/radar-NJJJXTRR-0adgjw0u.js +21 -0
- package/dist/{range-CgK0-PEw.js → range-CIbLpsrs.js} +3 -3
- package/dist/{react-plotly-BZakcxdv.js → react-plotly-DYyvxcRD.js} +4365 -4706
- package/dist/{requirementDiagram-4UW4RH46-BGEurQYq.js → requirementDiagram-4UW4RH46-Cs3Hqnm0.js} +24 -23
- package/dist/rpm-Dwvm039g.js +5 -0
- package/dist/ruby-DpTnO5gb.js +4 -0
- package/dist/{sankeyDiagram-GR3RE2ED-CxeJ_jfl.js → sankeyDiagram-GR3RE2ED-Be1d_Xf7.js} +7 -6
- package/dist/sas-CK9boxgv.js +4 -0
- package/dist/scheme-Y1aYL-Qq.js +4 -0
- package/dist/{sequenceDiagram-C3RYC4MD-CbFxwyr_.js → sequenceDiagram-C3RYC4MD-lbtovKTa.js} +24 -33
- package/dist/shell-D3eXGsHd.js +4 -0
- package/dist/sieve-BdwSFdWJ.js +4 -0
- package/dist/{simple-mode-Cgyya8F-.js → simple-mode-BMmwP_vI.js} +1 -1
- package/dist/{slides-component-BEyG25AH.js → slides-component-BoeQU7-s.js} +1012 -1033
- package/dist/smalltalk-BTYJquCm.js +4 -0
- package/dist/sparql-CYF0g4Cc.js +4 -0
- package/dist/{src-BNNJRxz3.js → src-BTqT1mA1.js} +6 -6
- package/dist/{stateDiagram-KXAO66HF-A61bMf29.js → stateDiagram-KXAO66HF-BmbR-Rol.js} +48 -49
- package/dist/stateDiagram-v2-UMBNRL4Z-DdJ7qVWc.js +39 -0
- package/dist/{step-IHYrujTc.js → step-2RJrMSSG.js} +1 -1
- package/dist/stex-CyWhoWHt.js +5 -0
- package/dist/style.css +1 -1
- package/dist/stylus-BBiKaI2h.js +4 -0
- package/dist/swift-COb15qFR.js +4 -0
- package/dist/tcl-Jik1LXu9.js +4 -0
- package/dist/textile-BFHPD3wr.js +4 -0
- package/dist/{time-D3tzCqJ6.js → time-BB30r1tK.js} +4 -4
- package/dist/{timeline-definition-XQNQX7LJ-BwdsB7CR.js → timeline-definition-XQNQX7LJ-1mv5caPW.js} +17 -17
- package/dist/{timer-D3Zlu9ow.js → timer-CcUhugb0.js} +2 -2
- package/dist/{toNumber-efKT08hh.js → toNumber-D3Ystr3y.js} +2 -2
- package/dist/{toString-BvCd3yJc.js → toString-CbuxCRDG.js} +2 -2
- package/dist/{toml-CIUkU1CP.js → toml-BqNUJWRI.js} +6 -2
- package/dist/toml-Brp9fBXs.js +4 -0
- package/dist/treemap-75Q7IDZK-CyBT8_Wh.js +21 -0
- package/dist/troff-CcZRW4vg.js +4 -0
- package/dist/ttcn-Bz_6ifRd.js +4 -0
- package/dist/ttcn-cfg-v-yi2rKc.js +4 -0
- package/dist/turtle-CDOsZYhB.js +4 -0
- package/dist/{types-1X1uZB4y.js → types-BPohCsA7.js} +198 -278
- package/dist/{useAsyncData-C4IqQK0g.js → useAsyncData-DHBqeb9a.js} +3 -2
- package/dist/{useDateFormatter-BCsBqetx.js → useDateFormatter-BkbjKw83.js} +9 -9
- package/dist/useIframeCapabilities-BEvvwlwt.js +46 -0
- package/dist/{useTheme-C2pgJzDH.js → useTheme-CnMbo-iq.js} +32 -29
- package/dist/vb-CL7fRwRw.js +4 -0
- package/dist/vbscript-CR2xfxpw.js +4 -0
- package/dist/{vega-component-Cv4J8CHz.js → vega-component-BfFcXZxw.js} +40 -39
- package/dist/{vega-loader.browser.module-Bi3ttvdj.js → vega-loader.browser.module-CFMtdrNw.js} +4 -5
- package/dist/velocity-CfuZoxPt.js +4 -0
- package/dist/verilog-CySTkzw_.js +4 -0
- package/dist/vhdl-Dvcd8KHW.js +4 -0
- package/dist/webidl-tbJt7sKk.js +4 -0
- package/dist/xquery-DJQVztyc.js +4 -0
- package/dist/{xychartDiagram-6GGTOJPD-BJRRi5HC.js → xychartDiagram-6GGTOJPD-njc-naaw.js} +24 -24
- package/dist/yacas-BbgBReEH.js +4 -0
- package/dist/z80-DPyb8VGz.js +4 -0
- package/dist/{zod-UPQf9SGn.js → zod-mAEs2ITo.js} +71 -81
- package/package.json +21 -17
- package/src/__mocks__/requests.ts +2 -0
- package/src/components/app-config/ai-config.tsx +1 -3
- package/src/components/app-config/common.tsx +14 -0
- package/src/components/app-config/data-form.tsx +282 -0
- package/src/components/app-config/user-config-form.tsx +36 -219
- package/src/components/chat/acp/__tests__/state.test.ts +75 -2
- package/src/components/chat/acp/agent-panel.tsx +143 -89
- package/src/components/chat/acp/blocks.tsx +77 -34
- package/src/components/chat/acp/state.ts +5 -1
- package/src/components/chat/acp/thread.tsx +12 -1
- package/src/components/chat/chat-panel.tsx +38 -5
- package/src/components/chat/chat-utils.ts +16 -5
- package/src/components/chat/markdown-renderer.css +1 -0
- package/src/components/chat/tool-call-accordion.tsx +7 -1
- package/src/components/data-table/__tests__/header-items.test.tsx +117 -0
- package/src/components/data-table/charts/__tests__/storage.test.ts +12 -6
- package/src/components/data-table/charts/charts.tsx +8 -2
- package/src/components/data-table/charts/storage.ts +1 -1
- package/src/components/data-table/column-header.tsx +4 -2
- package/src/components/data-table/column-wrapping/feature.ts +2 -0
- package/src/components/data-table/columns.tsx +12 -3
- package/src/components/data-table/data-table.tsx +7 -2
- package/src/components/data-table/header-items.tsx +63 -10
- package/src/components/data-table/renderers.tsx +3 -2
- package/src/components/dependency-graph/custom-node.tsx +11 -11
- package/src/components/dependency-graph/elements.ts +9 -4
- package/src/components/dependency-graph/panels.tsx +6 -4
- package/src/components/editor/Output.tsx +34 -25
- package/src/components/editor/actions/useCellActionButton.tsx +20 -4
- package/src/components/editor/ai/add-cell-with-ai.tsx +17 -3
- package/src/components/editor/ai/ai-completion-editor.tsx +203 -26
- package/src/components/editor/ai/completion-handlers.tsx +126 -23
- package/src/components/editor/cell/StagedAICell.tsx +81 -12
- package/src/components/editor/cell/code/cell-editor.tsx +6 -2
- package/src/components/editor/cell/useRunCells.ts +62 -30
- package/src/components/editor/chrome/panels/cache-panel.tsx +216 -0
- package/src/components/editor/chrome/panels/empty-state.tsx +3 -1
- package/src/components/editor/chrome/panels/packages-panel.tsx +1 -1
- package/src/components/editor/chrome/state.ts +1 -1
- package/src/components/editor/chrome/types.ts +66 -22
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +4 -0
- package/src/components/editor/chrome/wrapper/minimap.tsx +2 -0
- package/src/components/editor/chrome/wrapper/pending-ai-cells.tsx +108 -0
- package/src/components/editor/chrome/wrapper/sidebar.tsx +1 -1
- package/src/components/editor/code/readonly-diff.tsx +49 -0
- package/src/components/editor/columns/storage.ts +1 -1
- package/src/components/editor/errors/auto-fix.tsx +138 -32
- package/src/components/editor/errors/fix-mode.ts +20 -0
- package/src/components/editor/inputs/Inputs.styles.ts +1 -1
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +0 -5
- package/src/components/editor/navigation/clipboard.ts +2 -1
- package/src/components/editor/notebook-cell.tsx +20 -7
- package/src/components/editor/output/CalloutOutput.tsx +1 -1
- package/src/components/editor/output/ConsoleOutput.tsx +27 -33
- package/src/components/editor/output/HtmlOutput.tsx +3 -2
- package/src/components/editor/output/JsonOutput.tsx +15 -1
- package/src/components/editor/output/MarimoTracebackOutput.tsx +69 -52
- package/src/components/editor/output/__tests__/HtmlOutput.test.tsx +134 -0
- package/src/components/editor/output/__tests__/json-output.test.ts +43 -0
- package/src/components/editor/output/__tests__/traceback.test.tsx +8 -1
- package/src/components/editor/output/useWrapText.ts +6 -1
- package/src/components/editor/package-alert.tsx +37 -32
- package/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx +5 -2
- package/src/components/forms/__tests__/form-utils.test.ts +4 -2
- package/src/components/home/state.ts +3 -2
- package/src/components/icons/copy-icon.tsx +11 -5
- package/src/components/scratchpad/scratchpad-history.ts +6 -1
- package/src/components/shortcuts/renderShortcut.tsx +3 -1
- package/src/components/slides/slides-component.tsx +25 -21
- package/src/components/ui/button.tsx +2 -0
- package/src/components/ui/confirmation-button.tsx +85 -0
- package/src/components/ui/context-menu.tsx +14 -4
- package/src/components/ui/dropdown-menu.tsx +14 -4
- package/src/components/ui/fullscreen.tsx +115 -1
- package/src/components/ui/popover.tsx +11 -3
- package/src/components/ui/range-slider.tsx +1 -1
- package/src/components/ui/select.tsx +7 -3
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +2 -0
- package/src/components/ui/tooltip.tsx +10 -3
- package/src/core/ai/__tests__/staged-cells.test.ts +189 -64
- package/src/core/ai/config.ts +6 -2
- package/src/core/ai/context/providers/__tests__/__snapshots__/cell-output.test.ts.snap +17 -0
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +194 -10
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +9 -1
- package/src/core/ai/context/providers/cell-output.ts +170 -112
- package/src/core/ai/context/providers/datasource.ts +25 -1
- package/src/core/ai/context/providers/tables.ts +2 -2
- package/src/core/ai/staged-cells.ts +32 -16
- package/src/core/ai/state.ts +8 -4
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +556 -0
- package/src/core/ai/tools/__tests__/registry.test.ts +41 -8
- package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +450 -0
- package/src/core/ai/tools/__tests__/utils.test.ts +87 -0
- package/src/core/ai/tools/base.ts +109 -6
- package/src/core/ai/tools/edit-notebook-tool.ts +239 -0
- package/src/core/ai/tools/registry.ts +48 -15
- package/src/core/ai/tools/run-cells-tool.ts +233 -0
- package/src/core/ai/tools/sample-tool.ts +53 -15
- package/src/core/ai/tools/utils.ts +23 -0
- package/src/core/cache/requests.ts +5 -0
- package/src/core/cells/__tests__/cells.test.ts +19 -1
- package/src/core/cells/__tests__/session.test.ts +20 -3
- package/src/core/cells/cells.ts +13 -8
- package/src/core/cells/session.ts +1 -1
- package/src/core/codemirror/__tests__/__snapshots__/setup.test.ts.snap +2 -0
- package/src/core/codemirror/__tests__/replace-editor-content.test.ts +336 -0
- package/src/core/codemirror/ai/resources.ts +13 -2
- package/src/core/codemirror/copilot/state.ts +4 -2
- package/src/core/codemirror/find-replace/navigate.ts +2 -2
- package/src/core/codemirror/format.ts +2 -9
- package/src/core/codemirror/language/__tests__/extension.test.ts +10 -2
- package/src/core/codemirror/language/__tests__/sql.test.ts +24 -6
- package/src/core/codemirror/language/languages/markdown.ts +16 -153
- package/src/core/codemirror/language/languages/python.ts +13 -10
- package/src/core/codemirror/language/languages/sql/sql-mode.ts +6 -1
- package/src/core/codemirror/language/languages/sql/sql.ts +43 -306
- package/src/core/codemirror/language/panel/markdown.tsx +2 -1
- package/src/core/codemirror/language/panel/panel.tsx +2 -7
- package/src/core/codemirror/language/utils.ts +3 -8
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +21 -14
- package/src/core/codemirror/lsp/federated-lsp.ts +20 -9
- package/src/core/codemirror/lsp/notebook-lsp.ts +35 -29
- package/src/core/codemirror/lsp/transports.ts +7 -13
- package/src/core/codemirror/lsp/types.ts +0 -13
- package/src/core/codemirror/replace-editor-content.ts +87 -0
- package/src/core/config/__tests__/config-schema.test.ts +3 -0
- package/src/core/config/config-schema.ts +12 -1
- package/src/core/config/feature-flag.tsx +2 -4
- package/src/core/errors/__tests__/errors.test.ts +1 -0
- package/src/core/errors/errors.ts +20 -6
- package/src/core/hotkeys/hotkeys.ts +12 -0
- package/src/core/islands/bridge.ts +2 -0
- package/src/core/islands/main.ts +4 -0
- package/src/core/kernel/messages.ts +1 -0
- package/src/core/lsp/__tests__/transport.test.ts +233 -0
- package/src/core/lsp/transport.ts +139 -0
- package/src/core/network/requests-network.ts +14 -0
- package/src/core/network/requests-static.ts +2 -0
- package/src/core/network/requests-toasting.ts +2 -0
- package/src/core/network/types.ts +5 -0
- package/src/core/rtc/state.ts +6 -1
- package/src/core/saving/save-component.tsx +43 -36
- package/src/core/vscode/is-in-vscode.ts +9 -0
- package/src/core/wasm/bridge.ts +2 -0
- package/src/core/wasm/store.ts +1 -1
- package/src/core/websocket/useMarimoWebSocket.tsx +8 -0
- package/src/css/app/Cell.css +31 -0
- package/src/css/app/codemirror-completions.css +1 -1
- package/src/css/globals.css +5 -0
- package/src/custom.d.ts +2 -0
- package/src/hooks/useIframeCapabilities.ts +14 -0
- package/src/hooks/useLocalStorage.ts +1 -1
- package/src/plugins/core/RenderHTML.tsx +65 -5
- package/src/plugins/core/__test__/RenderHTML.test.ts +25 -23
- package/src/plugins/core/__test__/renderHTML-sanitization.test.tsx +131 -0
- package/src/plugins/core/__test__/sanitize.test.ts +465 -0
- package/src/plugins/core/registerReactComponent.tsx +19 -2
- package/src/plugins/core/sanitize.ts +76 -0
- package/src/plugins/impl/DataTablePlugin.tsx +20 -19
- package/src/plugins/impl/FileBrowserPlugin.tsx +1 -3
- package/src/plugins/impl/FileUploadPlugin.tsx +1 -3
- package/src/plugins/impl/__tests__/DateTimePickerPlugin.test.tsx +40 -1
- package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +6 -0
- package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +8 -1
- package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +3 -0
- package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +17 -2
- package/src/plugins/impl/chat/types.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +7 -2
- package/src/plugins/impl/plotly/__tests__/parse-from-template.test.ts +17 -0
- package/src/plugins/impl/plotly/parse-from-template.ts +2 -1
- package/src/utils/__tests__/arrays.test.ts +42 -0
- package/src/utils/__tests__/capabilities.test.ts +453 -0
- package/src/utils/__tests__/formatting.test.ts +107 -0
- package/src/utils/__tests__/json-parser.test.ts +13 -0
- package/src/utils/__tests__/local-storage.test.ts +1 -1
- package/src/utils/__tests__/storage.test.ts +21 -21
- package/src/utils/arrays.ts +25 -0
- package/src/utils/capabilities.ts +114 -0
- package/src/utils/copy.ts +6 -0
- package/src/utils/formatting.ts +51 -0
- package/src/utils/json/json-parser.ts +28 -3
- package/src/utils/numbers.ts +2 -2
- package/src/utils/{storage.ts → storage/jotai.ts} +16 -4
- package/src/utils/storage/storage.ts +57 -0
- package/src/utils/{localStorage.ts → storage/typed.ts} +22 -12
- package/dist/any-language-editor-CVFQlioK.js +0 -156
- package/dist/apl-ChlaBfxB.js +0 -4
- package/dist/architecture-O4VJ6CD3-BVeaxUcM.js +0 -21
- package/dist/asciiarmor-CcJmm3l_.js +0 -4
- package/dist/asn1-ThRYxoBE.js +0 -4
- package/dist/assets/__vite-browser-external-Dv_SHu1h.js +0 -1
- package/dist/assets/worker-DVOR9oZG.js +0 -54
- package/dist/brainfuck-CEM0JgDn.js +0 -4
- package/dist/chunk-EXTU4WIE-DECT9AAK.js +0 -14
- package/dist/chunk-S3R3BYOJ-DMQ1yeyq.js +0 -386
- package/dist/classDiagram-KNZD7YFC-BG53O6Jt.js +0 -39
- package/dist/classDiagram-v2-RKCZMP56-BmKILsGU.js +0 -39
- package/dist/clojure-B7RHyE9t.js +0 -4
- package/dist/cmake-TeTMP4I5.js +0 -4
- package/dist/cobol-DI-mxUER.js +0 -4
- package/dist/coffeescript-DHUFLqWp.js +0 -4
- package/dist/commonlisp-SLiUrh1m.js +0 -4
- package/dist/crystal-B4fY1ZfJ.js +0 -4
- package/dist/css-Bdoq3TzK.js +0 -5
- package/dist/cypher-CBU182fp.js +0 -4
- package/dist/d-D8myDZeH.js +0 -4
- package/dist/data-grid-overlay-editor-qNmJk2x0.js +0 -135
- package/dist/diagram-QEK2KX5R-fu8Noi3H.js +0 -245
- package/dist/diff-DJF_UB7H.js +0 -4
- package/dist/dist-52-_pKoy.js +0 -6
- package/dist/dist-6DOMStFn.js +0 -6
- package/dist/dist-B334aW7p.js +0 -10
- package/dist/dist-BOI9lUz-.js +0 -12
- package/dist/dist-C06uhBzF.js +0 -6
- package/dist/dist-CGkpguCB.js +0 -6
- package/dist/dist-CrApzUED.js +0 -6
- package/dist/dist-Dp2GLdCl.js +0 -14
- package/dist/dist-WHFsbMDr.js +0 -6
- package/dist/dist-hyKcTPG9.js +0 -10
- package/dist/dtd-DY8q65lC.js +0 -4
- package/dist/dylan-CBLcjWCi.js +0 -4
- package/dist/ecl-BSXPNfOw.js +0 -4
- package/dist/eiffel-BJf0PQX-.js +0 -4
- package/dist/elm-DWQwPCZS.js +0 -4
- package/dist/erlang-BWBaGZ5e.js +0 -4
- package/dist/error-banner-OQIGTqFR.js +0 -1012
- package/dist/esm-BO9n_s6u.js +0 -26
- package/dist/factor-DT1-MBPl.js +0 -5
- package/dist/forth-D9GDt3FB.js +0 -4
- package/dist/fortran-DHkRhDWw.js +0 -4
- package/dist/gas-7lQEOM0H.js +0 -4
- package/dist/gherkin-BLLyroYi.js +0 -4
- package/dist/gitGraph-ZV4HHKMB-z2v_cInC.js +0 -21
- package/dist/groovy-C-wabwj0.js +0 -4
- package/dist/haskell-DaxVQ_d1.js +0 -4
- package/dist/haxe-C2yLoC7h.js +0 -5
- package/dist/idl-DQBP8i7k.js +0 -4
- package/dist/info-63CPKGFF-GS4w6pCB.js +0 -21
- package/dist/infoDiagram-STP46IZ2-DE9YYPFg.js +0 -44
- package/dist/javascript-DRwFV9r5.js +0 -5
- package/dist/jinja2-CNoIpVmN.js +0 -4
- package/dist/julia-DXDf-GhP.js +0 -4
- package/dist/livescript-S2uhJQx7.js +0 -4
- package/dist/lua-Bvgs0y2G.js +0 -4
- package/dist/mathematica-D2zqfwIg.js +0 -4
- package/dist/mbox-SBcPaDuZ.js +0 -4
- package/dist/mirc-hkQc7sVF.js +0 -4
- package/dist/mllike-DRWPBlr9.js +0 -6
- package/dist/modelica-CO2ROGlP.js +0 -4
- package/dist/mscgen-BpX61bO6.js +0 -6
- package/dist/mumps-BCnFeIn6.js +0 -4
- package/dist/nsis-BaTOxlD1.js +0 -5
- package/dist/ntriples-zEo5BWjr.js +0 -4
- package/dist/octave-BE0RnCM9.js +0 -4
- package/dist/oz-C4_2Ttul.js +0 -4
- package/dist/packet-HUATNLJX-CjHqJIqk.js +0 -21
- package/dist/pascal-Q3jJucpw.js +0 -4
- package/dist/perl-DkXZIWHF.js +0 -4
- package/dist/pie-WTHONI2E-D67gLWtR.js +0 -21
- package/dist/pig-DCgEHdsu.js +0 -4
- package/dist/powershell-3rK_nRRJ.js +0 -236
- package/dist/powershell-Eo2-7MoM.js +0 -4
- package/dist/properties-C0IOX8WR.js +0 -4
- package/dist/protobuf--lGQUSRO.js +0 -4
- package/dist/pug-Cf8AQHMJ.js +0 -5
- package/dist/puppet-D7Z3dTJn.js +0 -4
- package/dist/python-FHIx_i8Y.js +0 -5
- package/dist/q-B7UA1feM.js +0 -4
- package/dist/r-Cc9R2A7N.js +0 -4
- package/dist/radar-NJJJXTRR-C-AZP_Te.js +0 -21
- package/dist/rpm-vhJNlrQ6.js +0 -5
- package/dist/ruby-CVluPY0M.js +0 -4
- package/dist/sas-A8DL8oy3.js +0 -4
- package/dist/scheme-6xHHcSXC.js +0 -4
- package/dist/shell-DHN-e5rf.js +0 -4
- package/dist/sieve-BuQwLY02.js +0 -4
- package/dist/smalltalk-BA4HPg2H.js +0 -4
- package/dist/sparql-Bf4yCuy3.js +0 -4
- package/dist/stateDiagram-v2-UMBNRL4Z-C_0FUzzk.js +0 -38
- package/dist/stex-D-I1cYeE.js +0 -5
- package/dist/stylus-BMeped2l.js +0 -4
- package/dist/swift-lwEdlZoC.js +0 -4
- package/dist/tcl-B03ipeqv.js +0 -4
- package/dist/textile-Cy55fYGC.js +0 -4
- package/dist/toml-BLgrVtfu.js +0 -4
- package/dist/treemap-75Q7IDZK-DTvwfpWt.js +0 -21
- package/dist/troff-g6EjN2O2.js +0 -4
- package/dist/ttcn-Dzvba8jK.js +0 -4
- package/dist/ttcn-cfg-CadG0p1K.js +0 -4
- package/dist/turtle-DkXAMWo9.js +0 -4
- package/dist/vb-C5dCiel8.js +0 -4
- package/dist/vbscript-I4bDEQln.js +0 -4
- package/dist/velocity-mt0fDwFH.js +0 -4
- package/dist/verilog-Dxq3KJkc.js +0 -4
- package/dist/vhdl-Km0QUlV-.js +0 -4
- package/dist/webidl-B3lJ2MRL.js +0 -4
- package/dist/xquery-CcIxNPEe.js +0 -4
- package/dist/yacas-oMa-f-tN.js +0 -4
- package/dist/z80-D03Nvn6l.js +0 -4
- package/src/core/codemirror/language/__tests__/ast.test.ts +0 -124
- package/src/core/codemirror/language/utils/ast.ts +0 -84
- package/src/core/codemirror/language/utils/quotes.ts +0 -18
- /package/dist/{_arrayReduce-CVwxyrBP.js → _arrayReduce-Cd9xQjbl.js} +0 -0
- /package/dist/{_baseSlice-OgpvpOOJ.js → _baseSlice-CE9WsQZm.js} +0 -0
- /package/dist/{_hasUnicode-BgIggCqE.js → _hasUnicode-DkEebvtD.js} +0 -0
- /package/dist/{apl-DZqo8Elt.js → apl-aGhy11IM.js} +0 -0
- /package/dist/{array-aAxy08hN.js → array-DYSXIreg.js} +0 -0
- /package/dist/{asciiarmor-DTzHAIeX.js → asciiarmor-DJKJ3Gkn.js} +0 -0
- /package/dist/{asn1-DrAXKsZH.js → asn1-C6f5IeNs.js} +0 -0
- /package/dist/{asterisk-oF4U3h48.js → asterisk-DB1poX9_.js} +0 -0
- /package/dist/{brainfuck-BYgLey30.js → brainfuck-Ch9vjun0.js} +0 -0
- /package/dist/{chunk-57QY23SG-0TxCfmy_.js → chunk-57QY23SG-BpXU7ph4.js} +0 -0
- /package/dist/{clojure-Bs2M3OUY.js → clojure-B_lpr3zt.js} +0 -0
- /package/dist/{cmake-DpI8vxJN.js → cmake-DaocNF4I.js} +0 -0
- /package/dist/{cobol-BQyrWo72.js → cobol-suTPtt7c.js} +0 -0
- /package/dist/{coffeescript-9ke9UHmw.js → coffeescript-CPLIvtqJ.js} +0 -0
- /package/dist/{colors-Cr_mZ2aH.js → colors-BXlG8Lmz.js} +0 -0
- /package/dist/{common-keywords-BzgeAvH1.js → common-keywords-Bhll7O3b.js} +0 -0
- /package/dist/{commonlisp-DghUdrUH.js → commonlisp-BqM3qFK7.js} +0 -0
- /package/dist/{crystal-DEf_SInh.js → crystal-AsSFu4ke.js} +0 -0
- /package/dist/{css-BzTU9lNO.js → css-Df7Sdeyh.js} +0 -0
- /package/dist/{cypher-a2v0c11S.js → cypher-CaVKL6Gu.js} +0 -0
- /package/dist/{d-SAswny-M.js → d-DCGWK7NQ.js} +0 -0
- /package/dist/{defaultLocale-BAgEOGks.js → defaultLocale-CYgZlqDF.js} +0 -0
- /package/dist/{defaultLocale-471SYAPk.js → defaultLocale-Cto8YOmX.js} +0 -0
- /package/dist/{diff-OJ-xLXcG.js → diff-CsxOM4Tr.js} +0 -0
- /package/dist/{dist-CK8Gj3GX.js → dist-C76MUPD3.js} +0 -0
- /package/dist/{dtd-BsUf-rer.js → dtd-Dwr0Jmks.js} +0 -0
- /package/dist/{duckdb-keywords-B0NOra5o.js → duckdb-keywords-7wAWf848.js} +0 -0
- /package/dist/{dylan-C0ZYngjn.js → dylan-A7-ZBSey.js} +0 -0
- /package/dist/{ebnf-DF1xx0b_.js → ebnf-9_SaGDUz.js} +0 -0
- /package/dist/{ecl-Bsuvoouq.js → ecl-BzJVIQDc.js} +0 -0
- /package/dist/{eiffel-DgfSpLi-.js → eiffel-CO9eC_Op.js} +0 -0
- /package/dist/{elm-GNxDj-5E.js → elm-CVAWj8SB.js} +0 -0
- /package/dist/{emotion-is-prop-valid.esm-BHMWayAG.js → emotion-is-prop-valid.esm-C3Yi5GQt.js} +0 -0
- /package/dist/{erlang-Ds3uY1kL.js → erlang-DWbZP546.js} +0 -0
- /package/dist/{fcl-CqBgSioc.js → fcl-CM9t2iay.js} +0 -0
- /package/dist/{forth-JCaLysGk.js → forth-BTYqUuu3.js} +0 -0
- /package/dist/{fortran-Dc2AoKAl.js → fortran-DgAjHcCq.js} +0 -0
- /package/dist/{gas-Q4Uz82YW.js → gas-BjDSWPZd.js} +0 -0
- /package/dist/{gherkin-Dpxe49sQ.js → gherkin-ClRqqpKv.js} +0 -0
- /package/dist/{groovy-D8mTRCu6.js → groovy-BzNjnc8x.js} +0 -0
- /package/dist/{haskell-2_8cC4wY.js → haskell-DLdk34Jq.js} +0 -0
- /package/dist/{haxe-Bl9zkZlz.js → haxe-l6gaY_IS.js} +0 -0
- /package/dist/{http-DKCqY6yS.js → http-6Qg7z_h2.js} +0 -0
- /package/dist/{idl-Dn-HNfGW.js → idl-hlWT4D26.js} +0 -0
- /package/dist/{init-D6eDd7H0.js → init-tZ42Torz.js} +0 -0
- /package/dist/{jinja2-JjFiAGKk.js → jinja2-DI5k_Er3.js} +0 -0
- /package/dist/{julia-R5wne8eu.js → julia-BvDZDiIT.js} +0 -0
- /package/dist/{livescript-DSwokrYj.js → livescript-2YMQfkfI.js} +0 -0
- /package/dist/{lua-CgXfrp2-.js → lua-DIUrQRfA.js} +0 -0
- /package/dist/{main-Czi9-LVy.js → main-BMTpe7M0.js} +0 -0
- /package/dist/{math-C7wLpe9K.js → math-qsHyz2Eo.js} +0 -0
- /package/dist/{mathematica-BVli92MR.js → mathematica-Dqmg_BwL.js} +0 -0
- /package/dist/{mbox-CMFlocdS.js → mbox-Cng-P-F1.js} +0 -0
- /package/dist/{mirc-BkW04Zpc.js → mirc-CNDqOVhQ.js} +0 -0
- /package/dist/{mllike-DEjvHvNV.js → mllike-C1n2UDyX.js} +0 -0
- /package/dist/{modelica-CxDn-oje.js → modelica-QqQC2pFj.js} +0 -0
- /package/dist/{mscgen-D78wmE-w.js → mscgen-C3fl8uhp.js} +0 -0
- /package/dist/{mumps-Bi0IvPOV.js → mumps-BeCUbMej.js} +0 -0
- /package/dist/{nginx-DErPZFhX.js → nginx-ejv7DsBz.js} +0 -0
- /package/dist/{ntriples-Btyp6wRL.js → ntriples-CUgUpcma.js} +0 -0
- /package/dist/{octave-CZA6-2F8.js → octave-BD652tGl.js} +0 -0
- /package/dist/{oz-Bm6LSNfE.js → oz-DrRsFa0K.js} +0 -0
- /package/dist/{pascal-B4J6a9BH.js → pascal-hpcx9sVn.js} +0 -0
- /package/dist/{path-VDkDgx1I.js → path-Bbv2tLY1.js} +0 -0
- /package/dist/{perl-CzVqxS08.js → perl-DW8XHeFc.js} +0 -0
- /package/dist/{pig-Clh03cnn.js → pig-Cv7Nxbfo.js} +0 -0
- /package/dist/{prop-types-0wNc-99T.js → prop-types-Bd16OEUP.js} +0 -0
- /package/dist/{properties-D7ch1Wyb.js → properties-D-qJDXAM.js} +0 -0
- /package/dist/{protobuf-DrkdrMPK.js → protobuf-B48QZbd3.js} +0 -0
- /package/dist/{puppet-BtZG8zdO.js → puppet-15JDyiY2.js} +0 -0
- /package/dist/{python-B6FKOVIv.js → python-DWkQA94h.js} +0 -0
- /package/dist/{r-Dnvo5-96.js → r-dcNRe_Q8.js} +0 -0
- /package/dist/{range-PcytnUSJ.js → range-CQvYp_qE.js} +0 -0
- /package/dist/{rpm-B1DrgfnX.js → rpm-Djl3Dsf1.js} +0 -0
- /package/dist/{ruby-CelfUg17.js → ruby-Dd2CZTip.js} +0 -0
- /package/dist/{sas-DfSQFMWG.js → sas-DYF5_Iqu.js} +0 -0
- /package/dist/{scheme-BplhaWuO.js → scheme-YtWcji1H.js} +0 -0
- /package/dist/{shell-DqU5OS2c.js → shell-C3uC3Y0Z.js} +0 -0
- /package/dist/{sieve-BE4_IyGa.js → sieve-DHB17sQG.js} +0 -0
- /package/dist/{smalltalk-B_WPL8Nx.js → smalltalk-Y5v1Np3H.js} +0 -0
- /package/dist/{solr-DlJFg7H5.js → solr-DvRJLlRD.js} +0 -0
- /package/dist/{sparql-7XIlcOgW.js → sparql-BEt3GJwM.js} +0 -0
- /package/dist/{spreadsheet-BdZSVwVp.js → spreadsheet-Dp4B9_rc.js} +0 -0
- /package/dist/{sql-CCrq7lfJ.js → sql-DBsUs8nQ.js} +0 -0
- /package/dist/{stex-BiFc8QAu.js → stex-C6-x52ei.js} +0 -0
- /package/dist/{stylus-DlSH9xpH.js → stylus-DroA8via.js} +0 -0
- /package/dist/{swift-e3tMTZgJ.js → swift-DR0x1ESK.js} +0 -0
- /package/dist/{tcl-DfZMC20G.js → tcl-BeuTFc_c.js} +0 -0
- /package/dist/{textile-DaSeca5U.js → textile-C0ikhHN3.js} +0 -0
- /package/dist/{tiddlywiki-dfoiz8pS.js → tiddlywiki-C_2Nvsgu.js} +0 -0
- /package/dist/{tiki-yJbQzhma.js → tiki-CKQlhmQQ.js} +0 -0
- /package/dist/{treemap-BpgMKHv-.js → treemap-BYLUKIzA.js} +0 -0
- /package/dist/{troff-FN_FrCXR.js → troff-DkK0f2ZH.js} +0 -0
- /package/dist/{tslib.es6-DofFyd9S.js → tslib.es6-3ZL768sZ.js} +0 -0
- /package/dist/{ttcn-7_i4HlyB.js → ttcn-Bf8vrg-_.js} +0 -0
- /package/dist/{ttcn-cfg-B46AlBUV.js → ttcn-cfg-DjCKzd95.js} +0 -0
- /package/dist/{turtle-QQfeFveR.js → turtle-SSc84S9m.js} +0 -0
- /package/dist/{vb-DToPVnLa.js → vb-CQ6DC3cL.js} +0 -0
- /package/dist/{vbscript-CtsNaTz4.js → vbscript-Dw0gFssg.js} +0 -0
- /package/dist/{velocity-CAoNe6ns.js → velocity-BvJQyBmj.js} +0 -0
- /package/dist/{verilog-DrDOMiJq.js → verilog-CKGAvQjj.js} +0 -0
- /package/dist/{vhdl-DnO0OEPh.js → vhdl-B40_x6fM.js} +0 -0
- /package/dist/{webidl-Or6d1ZfA.js → webidl-Bi9hczCv.js} +0 -0
- /package/dist/{xquery-CEp_Mcpr.js → xquery-DwWUXvP3.js} +0 -0
- /package/dist/{yacas-DgnYrSlp.js → yacas-ClUs0mmH.js} +0 -0
- /package/dist/{z80-DlG_kyeB.js → z80-DPC4UGzR.js} +0 -0
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
var _a, _b;
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import
|
|
12
|
-
import "./
|
|
13
|
-
import
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import "./
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import "./
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
2
|
+
import "./purify.es-CrfFzTyi.js";
|
|
3
|
+
import "./isArrayLikeObject-DU5MCuQM.js";
|
|
4
|
+
import "./isSymbol-CtkA8Y0a.js";
|
|
5
|
+
import "./toString-CbuxCRDG.js";
|
|
6
|
+
import "./_baseIsEqual-BFlyFUxC.js";
|
|
7
|
+
import "./_baseUniq-CKN9mEDq.js";
|
|
8
|
+
import "./_baseProperty-BuqBC0Ie.js";
|
|
9
|
+
import "./memoize-D7eDkf3R.js";
|
|
10
|
+
import "./merge-C_6cGM6o.js";
|
|
11
|
+
import "./_arrayReduce-Cd9xQjbl.js";
|
|
12
|
+
import { t as clone_default } from "./clone-CCgVUJ6x.js";
|
|
13
|
+
import "./isEmpty-Do_v2sls.js";
|
|
14
|
+
import { t as Graph } from "./graphlib-DRS8CrjA.js";
|
|
15
|
+
import "./marked.esm-DkVwEwtO.js";
|
|
16
|
+
import "./path-Bbv2tLY1.js";
|
|
17
|
+
import "./math-qsHyz2Eo.js";
|
|
18
|
+
import "./array-DYSXIreg.js";
|
|
19
|
+
import { _ as basis_default } from "./step-2RJrMSSG.js";
|
|
20
|
+
import { t as line_default } from "./line-B7-GoF1m.js";
|
|
21
|
+
import { a as decodeEntities, g as utils_default, l as getStylesFromArray } from "./chunk-S3R3BYOJ-C5zmcMvn.js";
|
|
22
|
+
import "./timer-CcUhugb0.js";
|
|
23
|
+
import { i as log, r as __name, t as select_default } from "./src-BTqT1mA1.js";
|
|
24
|
+
import { $ as rgba_default, E as getUrl, I as sanitizeText, a as clear, b as getConfig2, c as configureSvgSize, h as evaluate, s as common_default, y as getConfig } from "./chunk-ABZYJK2D-B6ZsU6SR.js";
|
|
25
|
+
import { t as channel_default } from "./channel-X-wRUxX6.js";
|
|
26
|
+
import { t as getLineFunctionsWithOffset } from "./chunk-7GE3RBXV-CT47hCrL.js";
|
|
27
|
+
import { t as getSubGraphTitleMargins } from "./chunk-CVBHYZKI-BuzDGXz0.js";
|
|
28
|
+
import "./dist-C76MUPD3.js";
|
|
29
|
+
import { a as replaceIconSubstring, n as createText } from "./chunk-JA3XYJ7Z-DcxfkcDC.js";
|
|
30
|
+
import { t as getIconStyles } from "./chunk-FMBD7UC4-CYKEpuPr.js";
|
|
30
31
|
var parser = (function() {
|
|
31
32
|
var e = /* @__PURE__ */ __name(function(e2, S2, C2, w2) {
|
|
32
33
|
for (C2 || (C2 = {}), w2 = e2.length; w2--; C2[e2[w2]] = S2) ;
|
|
@@ -1414,8 +1415,8 @@ var cnt = 0, blockDB_default = {
|
|
|
1414
1415
|
clear: clear2,
|
|
1415
1416
|
generateId: /* @__PURE__ */ __name(() => (cnt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + cnt), "generateId")
|
|
1416
1417
|
}, fade = /* @__PURE__ */ __name((e, S) => {
|
|
1417
|
-
let C = channel_default
|
|
1418
|
-
return rgba_default(
|
|
1418
|
+
let C = channel_default;
|
|
1419
|
+
return rgba_default(C(e, "r"), C(e, "g"), C(e, "b"), S);
|
|
1419
1420
|
}, "fade"), styles_default = /* @__PURE__ */ __name((e) => `.label {
|
|
1420
1421
|
font-family: ${e.fontFamily};
|
|
1421
1422
|
color: ${e.nodeTextColor || e.textColor};
|
|
@@ -1565,18 +1566,15 @@ var cnt = 0, blockDB_default = {
|
|
|
1565
1566
|
function calculateBlockPosition(e, S) {
|
|
1566
1567
|
if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
|
|
1567
1568
|
if (S < 0 || !Number.isInteger(S)) throw Error("Position must be a non-negative integer." + S);
|
|
1568
|
-
|
|
1569
|
+
return e < 0 ? {
|
|
1569
1570
|
px: S,
|
|
1570
1571
|
py: 0
|
|
1571
|
-
}
|
|
1572
|
-
if (e === 1) return {
|
|
1572
|
+
} : e === 1 ? {
|
|
1573
1573
|
px: 0,
|
|
1574
1574
|
py: S
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
px: C,
|
|
1579
|
-
py: w
|
|
1575
|
+
} : {
|
|
1576
|
+
px: S % e,
|
|
1577
|
+
py: Math.floor(S / e)
|
|
1580
1578
|
};
|
|
1581
1579
|
}
|
|
1582
1580
|
__name(calculateBlockPosition, "calculateBlockPosition");
|
|
@@ -1695,11 +1693,11 @@ function layout(e) {
|
|
|
1695
1693
|
let S = e.getBlock("root");
|
|
1696
1694
|
if (!S) return;
|
|
1697
1695
|
setBlockSizes(S, e, 0, 0), layoutBlocks(S, e), log.debug("getBlocks", JSON.stringify(S, null, 2));
|
|
1698
|
-
let { minX: C, minY: w, maxX: T, maxY: E } = findBounds(S), D = E - w
|
|
1696
|
+
let { minX: C, minY: w, maxX: T, maxY: E } = findBounds(S), D = E - w;
|
|
1699
1697
|
return {
|
|
1700
1698
|
x: C,
|
|
1701
1699
|
y: w,
|
|
1702
|
-
width:
|
|
1700
|
+
width: T - C,
|
|
1703
1701
|
height: D
|
|
1704
1702
|
};
|
|
1705
1703
|
}
|
|
@@ -1717,15 +1715,12 @@ var createLabel_default = /* @__PURE__ */ __name(async (e, S, C, w) => {
|
|
|
1717
1715
|
let E = e || "";
|
|
1718
1716
|
typeof E == "object" && (E = E[0]);
|
|
1719
1717
|
let D = getConfig2();
|
|
1720
|
-
if (evaluate(D.flowchart.htmlLabels)) {
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
};
|
|
1727
|
-
return addHtmlLabel(C2, D);
|
|
1728
|
-
} else {
|
|
1718
|
+
if (evaluate(D.flowchart.htmlLabels)) return E = E.replace(/\\n|\n/g, "<br />"), log.debug("vertexText" + E), addHtmlLabel({
|
|
1719
|
+
isNode: w,
|
|
1720
|
+
label: await replaceIconSubstring(decodeEntities(E)),
|
|
1721
|
+
labelStyle: S.replace("fill:", "color:")
|
|
1722
|
+
}, D);
|
|
1723
|
+
{
|
|
1729
1724
|
let e2 = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1730
1725
|
e2.setAttribute("style", S.replace("color:", "fill:"));
|
|
1731
1726
|
let w2 = [];
|
|
@@ -1802,46 +1797,46 @@ function setTerminalWidth(e, S) {
|
|
|
1802
1797
|
__name(setTerminalWidth, "setTerminalWidth");
|
|
1803
1798
|
var positionEdgeLabel = /* @__PURE__ */ __name((e, S) => {
|
|
1804
1799
|
log.debug("Moving label abc88 ", e.id, e.label, edgeLabels[e.id], S);
|
|
1805
|
-
let C = S.updatedPath ? S.updatedPath : S.originalPath,
|
|
1800
|
+
let C = S.updatedPath ? S.updatedPath : S.originalPath, { subGraphTitleTotalMargin: w } = getSubGraphTitleMargins(getConfig2());
|
|
1806
1801
|
if (e.label) {
|
|
1807
|
-
let
|
|
1802
|
+
let T = edgeLabels[e.id], D = e.x, k = e.y;
|
|
1808
1803
|
if (C) {
|
|
1809
|
-
let
|
|
1810
|
-
log.debug("Moving label " + e.label + " from (", D, ",", k, ") to (",
|
|
1804
|
+
let w2 = utils_default.calcLabelPosition(C);
|
|
1805
|
+
log.debug("Moving label " + e.label + " from (", D, ",", k, ") to (", w2.x, ",", w2.y, ") abc88"), S.updatedPath && (D = w2.x, k = w2.y);
|
|
1811
1806
|
}
|
|
1812
|
-
|
|
1807
|
+
T.attr("transform", `translate(${D}, ${k + w / 2})`);
|
|
1813
1808
|
}
|
|
1814
1809
|
if (e.startLabelLeft) {
|
|
1815
|
-
let S2 = terminalLabels[e.id].startLeft, w2 = e.x,
|
|
1810
|
+
let S2 = terminalLabels[e.id].startLeft, w2 = e.x, T = e.y;
|
|
1816
1811
|
if (C) {
|
|
1817
1812
|
let S3 = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", C);
|
|
1818
|
-
w2 = S3.x,
|
|
1813
|
+
w2 = S3.x, T = S3.y;
|
|
1819
1814
|
}
|
|
1820
|
-
S2.attr("transform", `translate(${w2}, ${
|
|
1815
|
+
S2.attr("transform", `translate(${w2}, ${T})`);
|
|
1821
1816
|
}
|
|
1822
1817
|
if (e.startLabelRight) {
|
|
1823
|
-
let S2 = terminalLabels[e.id].startRight, w2 = e.x,
|
|
1818
|
+
let S2 = terminalLabels[e.id].startRight, w2 = e.x, T = e.y;
|
|
1824
1819
|
if (C) {
|
|
1825
1820
|
let S3 = utils_default.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", C);
|
|
1826
|
-
w2 = S3.x,
|
|
1821
|
+
w2 = S3.x, T = S3.y;
|
|
1827
1822
|
}
|
|
1828
|
-
S2.attr("transform", `translate(${w2}, ${
|
|
1823
|
+
S2.attr("transform", `translate(${w2}, ${T})`);
|
|
1829
1824
|
}
|
|
1830
1825
|
if (e.endLabelLeft) {
|
|
1831
|
-
let S2 = terminalLabels[e.id].endLeft, w2 = e.x,
|
|
1826
|
+
let S2 = terminalLabels[e.id].endLeft, w2 = e.x, T = e.y;
|
|
1832
1827
|
if (C) {
|
|
1833
1828
|
let S3 = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", C);
|
|
1834
|
-
w2 = S3.x,
|
|
1829
|
+
w2 = S3.x, T = S3.y;
|
|
1835
1830
|
}
|
|
1836
|
-
S2.attr("transform", `translate(${w2}, ${
|
|
1831
|
+
S2.attr("transform", `translate(${w2}, ${T})`);
|
|
1837
1832
|
}
|
|
1838
1833
|
if (e.endLabelRight) {
|
|
1839
|
-
let S2 = terminalLabels[e.id].endRight, w2 = e.x,
|
|
1834
|
+
let S2 = terminalLabels[e.id].endRight, w2 = e.x, T = e.y;
|
|
1840
1835
|
if (C) {
|
|
1841
1836
|
let S3 = utils_default.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", C);
|
|
1842
|
-
w2 = S3.x,
|
|
1837
|
+
w2 = S3.x, T = S3.y;
|
|
1843
1838
|
}
|
|
1844
|
-
S2.attr("transform", `translate(${w2}, ${
|
|
1839
|
+
S2.attr("transform", `translate(${w2}, ${T})`);
|
|
1845
1840
|
}
|
|
1846
1841
|
}, "positionEdgeLabel"), outsideNode = /* @__PURE__ */ __name((e, S) => {
|
|
1847
1842
|
let C = e.x, w = e.y, T = Math.abs(S.x - C), E = Math.abs(S.y - w), D = e.width / 2, O = e.height / 2;
|
|
@@ -1883,12 +1878,12 @@ var positionEdgeLabel = /* @__PURE__ */ __name((e, S) => {
|
|
|
1883
1878
|
} else w = e2, T || C.push(e2);
|
|
1884
1879
|
}), C;
|
|
1885
1880
|
}, "cutPathAtIntersect"), insertEdge = /* @__PURE__ */ __name(function(e, S, T, E, D, k, A) {
|
|
1886
|
-
let
|
|
1881
|
+
let j = T.points;
|
|
1887
1882
|
log.debug("abc88 InsertEdge: edge=", T, "e=", S);
|
|
1888
|
-
let N = false,
|
|
1883
|
+
let N = false, P = k.node(S.v);
|
|
1889
1884
|
var I = k.node(S.w);
|
|
1890
|
-
(I == null ? void 0 : I.intersect) && (
|
|
1891
|
-
let L =
|
|
1885
|
+
(I == null ? void 0 : I.intersect) && (P == null ? void 0 : P.intersect) && (j = j.slice(1, T.points.length - 1), j.unshift(P.intersect(j[0])), j.push(I.intersect(j[j.length - 1]))), T.toCluster && (log.debug("to cluster abc88", E[T.toCluster]), j = cutPathAtIntersect(T.points, E[T.toCluster].node), N = true), T.fromCluster && (log.debug("from cluster abc88", E[T.fromCluster]), j = cutPathAtIntersect(j.reverse(), E[T.fromCluster].node).reverse(), N = true);
|
|
1886
|
+
let L = j.filter((e2) => !Number.isNaN(e2.y)), R = basis_default;
|
|
1892
1887
|
T.curve && (D === "graph" || D === "flowchart") && (R = T.curve);
|
|
1893
1888
|
let { x: z, y: B } = getLineFunctionsWithOffset(T), H = line_default().x(z).y(B).curve(R), U;
|
|
1894
1889
|
switch (T.thickness) {
|
|
@@ -1918,7 +1913,7 @@ var positionEdgeLabel = /* @__PURE__ */ __name((e, S) => {
|
|
|
1918
1913
|
let W = e.append("path").attr("d", H(L)).attr("id", T.id).attr("class", " " + U + (T.classes ? " " + T.classes : "")).attr("style", T.style), G = "";
|
|
1919
1914
|
(getConfig2().flowchart.arrowMarkerAbsolute || getConfig2().state.arrowMarkerAbsolute) && (G = getUrl(true)), addEdgeMarkers(W, T, G, A, D);
|
|
1920
1915
|
let K = {};
|
|
1921
|
-
return N && (K.updatedPath =
|
|
1916
|
+
return N && (K.updatedPath = j), K.originalPath = T.points, K;
|
|
1922
1917
|
}, "insertEdge"), expandAndDeduplicateDirections = /* @__PURE__ */ __name((e) => {
|
|
1923
1918
|
let S = /* @__PURE__ */ new Set();
|
|
1924
1919
|
for (let C of e) switch (C) {
|
|
@@ -2409,19 +2404,19 @@ var intersect_default = {
|
|
|
2409
2404
|
}, labelHelper = /* @__PURE__ */ __name(async (e, S, C, w) => {
|
|
2410
2405
|
let E = getConfig2(), D, O = S.useHtmlLabels || evaluate(E.flowchart.htmlLabels);
|
|
2411
2406
|
D = C || "node default";
|
|
2412
|
-
let j = e.insert("g").attr("class", D).attr("id", S.domId || S.id),
|
|
2413
|
-
|
|
2414
|
-
let I =
|
|
2415
|
-
R = S.labelType === "markdown" ? createText(
|
|
2407
|
+
let j = e.insert("g").attr("class", D).attr("id", S.domId || S.id), M = j.insert("g").attr("class", "label").attr("style", S.labelStyle), P;
|
|
2408
|
+
P = S.labelText === void 0 ? "" : typeof S.labelText == "string" ? S.labelText : S.labelText[0];
|
|
2409
|
+
let I = M.node(), R;
|
|
2410
|
+
R = S.labelType === "markdown" ? createText(M, sanitizeText(decodeEntities(P), E), {
|
|
2416
2411
|
useHtmlLabels: O,
|
|
2417
2412
|
width: S.width || E.flowchart.wrappingWidth,
|
|
2418
2413
|
classes: "markdown-node-label"
|
|
2419
|
-
}, E) : I.appendChild(await createLabel_default(sanitizeText(decodeEntities(
|
|
2414
|
+
}, E) : I.appendChild(await createLabel_default(sanitizeText(decodeEntities(P), E), S.labelStyle, false, w));
|
|
2420
2415
|
let z = R.getBBox(), B = S.padding / 2;
|
|
2421
2416
|
if (evaluate(E.flowchart.htmlLabels)) {
|
|
2422
2417
|
let e2 = R.children[0], S2 = select_default(R), C2 = e2.getElementsByTagName("img");
|
|
2423
2418
|
if (C2) {
|
|
2424
|
-
let e3 =
|
|
2419
|
+
let e3 = P.replace(/<img[^>]*>/g, "").trim() === "";
|
|
2425
2420
|
await Promise.all([...C2].map((S3) => new Promise((C3) => {
|
|
2426
2421
|
function w2() {
|
|
2427
2422
|
if (S3.style.display = "flex", S3.style.flexDirection = "column", e3) {
|
|
@@ -2437,11 +2432,11 @@ var intersect_default = {
|
|
|
2437
2432
|
}
|
|
2438
2433
|
z = e2.getBoundingClientRect(), S2.attr("width", z.width), S2.attr("height", z.height);
|
|
2439
2434
|
}
|
|
2440
|
-
return O ?
|
|
2435
|
+
return O ? M.attr("transform", "translate(" + -z.width / 2 + ", " + -z.height / 2 + ")") : M.attr("transform", "translate(0, " + -z.height / 2 + ")"), S.centerLabel && M.attr("transform", "translate(" + -z.width / 2 + ", " + -z.height / 2 + ")"), M.insert("rect", ":first-child"), {
|
|
2441
2436
|
shapeSvg: j,
|
|
2442
2437
|
bbox: z,
|
|
2443
2438
|
halfPadding: B,
|
|
2444
|
-
label:
|
|
2439
|
+
label: M
|
|
2445
2440
|
};
|
|
2446
2441
|
}, "labelHelper"), updateNodeBounds = /* @__PURE__ */ __name((e, S) => {
|
|
2447
2442
|
let C = S.node().getBBox();
|
|
@@ -2462,28 +2457,28 @@ var note_default = /* @__PURE__ */ __name(async (e, S) => {
|
|
|
2462
2457
|
return intersect_default.rect(S, e2);
|
|
2463
2458
|
}, C;
|
|
2464
2459
|
}, "note"), formatClass = /* @__PURE__ */ __name((e) => e ? " " + e : "", "formatClass"), getClassesFromNode = /* @__PURE__ */ __name((e, S) => `${S || "node default"}${formatClass(e.classes)} ${formatClass(e.class)}`, "getClassesFromNode"), question = /* @__PURE__ */ __name(async (e, S) => {
|
|
2465
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding
|
|
2460
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding + (w.height + S.padding), E = [
|
|
2466
2461
|
{
|
|
2467
|
-
x:
|
|
2462
|
+
x: T / 2,
|
|
2468
2463
|
y: 0
|
|
2469
2464
|
},
|
|
2470
2465
|
{
|
|
2471
|
-
x:
|
|
2472
|
-
y: -
|
|
2466
|
+
x: T,
|
|
2467
|
+
y: -T / 2
|
|
2473
2468
|
},
|
|
2474
2469
|
{
|
|
2475
|
-
x:
|
|
2476
|
-
y: -
|
|
2470
|
+
x: T / 2,
|
|
2471
|
+
y: -T
|
|
2477
2472
|
},
|
|
2478
2473
|
{
|
|
2479
2474
|
x: 0,
|
|
2480
|
-
y: -
|
|
2475
|
+
y: -T / 2
|
|
2481
2476
|
}
|
|
2482
2477
|
];
|
|
2483
2478
|
log.info("Question main (Circle)");
|
|
2484
|
-
let
|
|
2485
|
-
return
|
|
2486
|
-
return log.warn("Intersect called"), intersect_default.polygon(S,
|
|
2479
|
+
let D = insertPolygonShape(C, T, T, E);
|
|
2480
|
+
return D.attr("style", S.style), updateNodeBounds(S, D), S.intersect = function(e2) {
|
|
2481
|
+
return log.warn("Intersect called"), intersect_default.polygon(S, E, e2);
|
|
2487
2482
|
}, C;
|
|
2488
2483
|
}, "question"), choice = /* @__PURE__ */ __name((e, S) => {
|
|
2489
2484
|
let C = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id);
|
|
@@ -2685,8 +2680,8 @@ var note_default = /* @__PURE__ */ __name(async (e, S) => {
|
|
|
2685
2680
|
return intersect_default.polygon(S, D, e2);
|
|
2686
2681
|
}, C;
|
|
2687
2682
|
}, "rect_right_inv_arrow"), cylinder = /* @__PURE__ */ __name(async (e, S) => {
|
|
2688
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding, E = T / 2, D = E / (2.5 + T / 50), O = w.height + D + S.padding, k = "M 0," + D + " a " + E + "," + D + " 0,0,0 " + T + " 0 a " + E + "," + D + " 0,0,0 " + -T + " 0 l 0," + O + " a " + E + "," + D + " 0,0,0 " + T + " 0 l 0," + -O
|
|
2689
|
-
return updateNodeBounds(S,
|
|
2683
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.width + S.padding, E = T / 2, D = E / (2.5 + T / 50), O = w.height + D + S.padding, k = "M 0," + D + " a " + E + "," + D + " 0,0,0 " + T + " 0 a " + E + "," + D + " 0,0,0 " + -T + " 0 l 0," + O + " a " + E + "," + D + " 0,0,0 " + T + " 0 l 0," + -O;
|
|
2684
|
+
return updateNodeBounds(S, C.attr("label-offset-y", D).insert("path", ":first-child").attr("style", S.style).attr("d", k).attr("transform", "translate(" + -T / 2 + "," + -(O / 2 + D) + ")")), S.intersect = function(e2) {
|
|
2690
2685
|
let C2 = intersect_default.rect(S, e2), w2 = C2.x - S.x;
|
|
2691
2686
|
if (E != 0 && (Math.abs(w2) < S.width / 2 || Math.abs(w2) == S.width / 2 && Math.abs(C2.y - S.y) > S.height / 2 - D)) {
|
|
2692
2687
|
let T2 = D * D * (1 - w2 * w2 / (E * E));
|
|
@@ -2753,7 +2748,7 @@ var rectWithTitle = /* @__PURE__ */ __name(async (e, S) => {
|
|
|
2753
2748
|
N = e2.getBoundingClientRect(), S2.attr("width", N.width), S2.attr("height", N.height);
|
|
2754
2749
|
}
|
|
2755
2750
|
log.info("Text 2", k);
|
|
2756
|
-
let
|
|
2751
|
+
let P = k.slice(1, k.length), I = M.getBBox(), R = D.node().appendChild(await createLabel_default(P.join ? P.join("<br/>") : P, S.labelStyle, true, true));
|
|
2757
2752
|
if (evaluate(getConfig2().flowchart.htmlLabels)) {
|
|
2758
2753
|
let e2 = R.children[0], S2 = select_default(R);
|
|
2759
2754
|
N = e2.getBoundingClientRect(), S2.attr("width", N.width), S2.attr("height", N.height);
|
|
@@ -2763,8 +2758,8 @@ var rectWithTitle = /* @__PURE__ */ __name(async (e, S) => {
|
|
|
2763
2758
|
return intersect_default.rect(S, e2);
|
|
2764
2759
|
}, w;
|
|
2765
2760
|
}, "rectWithTitle"), stadium = /* @__PURE__ */ __name(async (e, S) => {
|
|
2766
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.height + S.padding, E = w.width + T / 4 + S.padding
|
|
2767
|
-
return updateNodeBounds(S,
|
|
2761
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), true), T = w.height + S.padding, E = w.width + T / 4 + S.padding;
|
|
2762
|
+
return updateNodeBounds(S, C.insert("rect", ":first-child").attr("style", S.style).attr("rx", T / 2).attr("ry", T / 2).attr("x", -E / 2).attr("y", -T / 2).attr("width", E).attr("height", T)), S.intersect = function(e2) {
|
|
2768
2763
|
return intersect_default.rect(S, e2);
|
|
2769
2764
|
}, C;
|
|
2770
2765
|
}, "stadium"), circle2 = /* @__PURE__ */ __name(async (e, S) => {
|
|
@@ -2830,9 +2825,7 @@ var rectWithTitle = /* @__PURE__ */ __name(async (e, S) => {
|
|
|
2830
2825
|
}, C;
|
|
2831
2826
|
}, "start"), forkJoin = /* @__PURE__ */ __name((e, S, C) => {
|
|
2832
2827
|
let w = e.insert("g").attr("class", "node default").attr("id", S.domId || S.id), T = 70, E = 10;
|
|
2833
|
-
C === "LR" && (T = 10, E = 70)
|
|
2834
|
-
let D = w.append("rect").attr("x", -1 * T / 2).attr("y", -1 * E / 2).attr("width", T).attr("height", E).attr("class", "fork-join");
|
|
2835
|
-
return updateNodeBounds(S, D), S.height += S.padding / 2, S.width += S.padding / 2, S.intersect = function(e2) {
|
|
2828
|
+
return C === "LR" && (T = 10, E = 70), updateNodeBounds(S, w.append("rect").attr("x", -1 * T / 2).attr("y", -1 * E / 2).attr("width", T).attr("height", E).attr("class", "fork-join")), S.height += S.padding / 2, S.width += S.padding / 2, S.intersect = function(e2) {
|
|
2836
2829
|
return intersect_default.rect(S, e2);
|
|
2837
2830
|
}, w;
|
|
2838
2831
|
}, "forkJoin"), shapes = {
|
|
@@ -2870,7 +2863,7 @@ var rectWithTitle = /* @__PURE__ */ __name(async (e, S) => {
|
|
|
2870
2863
|
var _a2;
|
|
2871
2864
|
let C = S.padding / 2, w;
|
|
2872
2865
|
w = S.classes ? "node " + S.classes : "node default";
|
|
2873
|
-
let T = e.insert("g").attr("class", w).attr("id", S.domId || S.id), E = T.insert("rect", ":first-child"), D = T.insert("line"), O = T.insert("line"), k = 0, j = 4, M = T.insert("g").attr("class", "label"), N = 0,
|
|
2866
|
+
let T = e.insert("g").attr("class", w).attr("id", S.domId || S.id), E = T.insert("rect", ":first-child"), D = T.insert("line"), O = T.insert("line"), k = 0, j = 4, M = T.insert("g").attr("class", "label"), N = 0, P = (_a2 = S.classData.annotations) == null ? void 0 : _a2[0], I = S.classData.annotations[0] ? "\xAB" + S.classData.annotations[0] + "\xBB" : "", R = M.node().appendChild(await createLabel_default(I, S.labelStyle, true, true)), z = R.getBBox();
|
|
2874
2867
|
if (evaluate(getConfig2().flowchart.htmlLabels)) {
|
|
2875
2868
|
let e2 = R.children[0], S2 = select_default(R);
|
|
2876
2869
|
z = e2.getBoundingClientRect(), S2.attr("width", z.width), S2.attr("height", z.height);
|
|
@@ -2907,7 +2900,7 @@ var rectWithTitle = /* @__PURE__ */ __name(async (e, S) => {
|
|
|
2907
2900
|
E2 = e3.getBoundingClientRect(), S2.attr("width", E2.width), S2.attr("height", E2.height);
|
|
2908
2901
|
}
|
|
2909
2902
|
E2.width > k && (k = E2.width), j += E2.height + 4, W.push(T2);
|
|
2910
|
-
}), j += 8,
|
|
2903
|
+
}), j += 8, P) {
|
|
2911
2904
|
let e2 = (k - z.width) / 2;
|
|
2912
2905
|
select_default(R).attr("transform", "translate( " + (-1 * k / 2 + e2) + ", " + -1 * j / 2 + ")"), N = z.height + 4;
|
|
2913
2906
|
}
|
|
@@ -3033,22 +3026,19 @@ __name(getNodeFromBlock, "getNodeFromBlock");
|
|
|
3033
3026
|
async function calculateBlockSize(e, S, C) {
|
|
3034
3027
|
let w = getNodeFromBlock(S, C, false);
|
|
3035
3028
|
if (w.type === "group") return;
|
|
3036
|
-
let T =
|
|
3037
|
-
|
|
3038
|
-
width:
|
|
3039
|
-
height:
|
|
3029
|
+
let T = await insertNode(e, w, { config: getConfig() }), E = T.node().getBBox(), D = C.getBlock(w.id);
|
|
3030
|
+
D.size = {
|
|
3031
|
+
width: E.width,
|
|
3032
|
+
height: E.height,
|
|
3040
3033
|
x: 0,
|
|
3041
3034
|
y: 0,
|
|
3042
|
-
node:
|
|
3043
|
-
}, C.setBlock(
|
|
3035
|
+
node: T
|
|
3036
|
+
}, C.setBlock(D), T.remove();
|
|
3044
3037
|
}
|
|
3045
3038
|
__name(calculateBlockSize, "calculateBlockSize");
|
|
3046
3039
|
async function insertBlockPositioned(e, S, C) {
|
|
3047
3040
|
let w = getNodeFromBlock(S, C, true);
|
|
3048
|
-
|
|
3049
|
-
let C2 = getConfig();
|
|
3050
|
-
await insertNode(e, w, { config: C2 }), S.intersect = w == null ? void 0 : w.intersect, positionNode(w);
|
|
3051
|
-
}
|
|
3041
|
+
C.getBlock(w.id).type !== "space" && (await insertNode(e, w, { config: getConfig() }), S.intersect = w == null ? void 0 : w.intersect, positionNode(w));
|
|
3052
3042
|
}
|
|
3053
3043
|
__name(insertBlockPositioned, "insertBlockPositioned");
|
|
3054
3044
|
async function performOperations(e, S, C, w) {
|
|
@@ -3137,10 +3127,10 @@ var diagram = {
|
|
|
3137
3127
|
"circle",
|
|
3138
3128
|
"cross"
|
|
3139
3129
|
], w.type, S);
|
|
3140
|
-
let N = D.getBlocks(), P = D.getBlocksFlat(),
|
|
3130
|
+
let N = D.getBlocks(), P = D.getBlocksFlat(), F = D.getEdges(), L = M.insert("g").attr("class", "block");
|
|
3141
3131
|
await calculateBlockSizes(L, N, D);
|
|
3142
3132
|
let R = layout(D);
|
|
3143
|
-
if (await insertBlocks(L, N, D), await insertEdges(L,
|
|
3133
|
+
if (await insertBlocks(L, N, D), await insertEdges(L, F, P, D, S), R) {
|
|
3144
3134
|
let e2 = R, S2 = Math.max(1, Math.round(0.125 * (e2.width / e2.height))), C2 = e2.height + S2 + 10, w2 = e2.width + 10, { useMaxWidth: T2 } = E;
|
|
3145
3135
|
configureSvgSize(M, C2, w2, !!T2), log.debug("Here Bounds", R, e2), M.attr("viewBox", `${e2.x - 5} ${e2.y - 5} ${e2.width + 10} ${e2.height + 10}`);
|
|
3146
3136
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-DgPTj83v.js";
|
|
2
2
|
import { t as require_react } from "./react-DHL_F5hS.js";
|
|
3
3
|
import { n as require_compiler_runtime, t as require_jsx_runtime } from "./jsx-runtime-DZyWJV5b.js";
|
|
4
|
-
import { i as parseShortcut } from "./hotkeys-
|
|
4
|
+
import { i as parseShortcut } from "./hotkeys-DVxFjl2s.js";
|
|
5
5
|
function r(e) {
|
|
6
6
|
var _, v, y = "";
|
|
7
7
|
if (typeof e == "string" || typeof e == "number") y += e;
|
|
@@ -78,10 +78,7 @@ var clsx_default = clsx, CLASS_PART_SEPARATOR = "-", createClassGroupUtils = (e)
|
|
|
78
78
|
validators: []
|
|
79
79
|
}), v = v.nextPart.get(e2);
|
|
80
80
|
}), v;
|
|
81
|
-
}, isThemeGetter = (e) => e.isThemeGetter, getPrefixedClassGroupEntries = (e, _) => _ ? e.map(([e2, v]) => {
|
|
82
|
-
let y = v.map((e3) => typeof e3 == "string" ? _ + e3 : typeof e3 == "object" ? Object.fromEntries(Object.entries(e3).map(([e4, v2]) => [_ + e4, v2])) : e3);
|
|
83
|
-
return [e2, y];
|
|
84
|
-
}) : e, createLruCache = (e) => {
|
|
81
|
+
}, isThemeGetter = (e) => e.isThemeGetter, getPrefixedClassGroupEntries = (e, _) => _ ? e.map(([e2, v]) => [e2, v.map((e3) => typeof e3 == "string" ? _ + e3 : typeof e3 == "object" ? Object.fromEntries(Object.entries(e3).map(([e4, v2]) => [_ + e4, v2])) : e3)]) : e, createLruCache = (e) => {
|
|
85
82
|
if (e < 1) return {
|
|
86
83
|
get: () => void 0,
|
|
87
84
|
set: () => {
|
|
@@ -117,12 +114,12 @@ var clsx_default = clsx, CLASS_PART_SEPARATOR = "-", createClassGroupUtils = (e)
|
|
|
117
114
|
}
|
|
118
115
|
E2 === "[" ? S2++ : E2 === "]" && S2--;
|
|
119
116
|
}
|
|
120
|
-
let T = v2.length === 0 ? e2 : e2.substring(C), E = T.startsWith(IMPORTANT_MODIFIER)
|
|
117
|
+
let T = v2.length === 0 ? e2 : e2.substring(C), E = T.startsWith(IMPORTANT_MODIFIER);
|
|
121
118
|
return {
|
|
122
119
|
modifiers: v2,
|
|
123
120
|
hasImportantModifier: E,
|
|
124
|
-
baseClassName:
|
|
125
|
-
maybePostfixModifierPosition:
|
|
121
|
+
baseClassName: E ? T.substring(1) : T,
|
|
122
|
+
maybePostfixModifierPosition: w && w > C ? w - C : void 0
|
|
126
123
|
};
|
|
127
124
|
};
|
|
128
125
|
return v ? (e2) => v({
|
|
@@ -180,8 +177,7 @@ var toValue = (e) => {
|
|
|
180
177
|
function createTailwindMerge(e, ..._) {
|
|
181
178
|
let v, y, b, x = S;
|
|
182
179
|
function S(S2) {
|
|
183
|
-
|
|
184
|
-
return v = createConfigUtils(w), y = v.cache.get, b = v.cache.set, x = C, C(S2);
|
|
180
|
+
return v = createConfigUtils(_.reduce((e2, _2) => _2(e2), e())), y = v.cache.get, b = v.cache.set, x = C, C(S2);
|
|
185
181
|
}
|
|
186
182
|
function C(e2) {
|
|
187
183
|
let _2 = y(e2);
|
|
@@ -1347,6 +1343,29 @@ function getElementRef(e) {
|
|
|
1347
1343
|
let _ = (_a = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : _a.get, v = _ && "isReactWarning" in _ && _.isReactWarning;
|
|
1348
1344
|
return v ? e.ref : (_ = (_b = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : _b.get, v = _ && "isReactWarning" in _ && _.isReactWarning, v ? e.props.ref : e.props.ref || e.ref);
|
|
1349
1345
|
}
|
|
1346
|
+
var import_compiler_runtime$1 = /* @__PURE__ */ __toESM(require_compiler_runtime(), 1);
|
|
1347
|
+
function isRefObject(e) {
|
|
1348
|
+
return typeof e == "object" && !!e && "current" in e;
|
|
1349
|
+
}
|
|
1350
|
+
function useEventListener(e, _, v, y) {
|
|
1351
|
+
let b = (0, import_compiler_runtime$1.c)(8), x = (0, import_react.useRef)(v), S, C;
|
|
1352
|
+
b[0] === v ? (S = b[1], C = b[2]) : (S = () => {
|
|
1353
|
+
x.current = v;
|
|
1354
|
+
}, C = [v], b[0] = v, b[1] = S, b[2] = C), (0, import_react.useEffect)(S, C);
|
|
1355
|
+
let w, T;
|
|
1356
|
+
b[3] !== y || b[4] !== e || b[5] !== _ ? (w = () => {
|
|
1357
|
+
let v2 = isRefObject(e) ? e.current : e;
|
|
1358
|
+
if (!v2) return;
|
|
1359
|
+
let b2 = (e2) => x.current(e2);
|
|
1360
|
+
return v2.addEventListener(_, b2, y), () => {
|
|
1361
|
+
v2.removeEventListener(_, b2, y);
|
|
1362
|
+
};
|
|
1363
|
+
}, T = [
|
|
1364
|
+
_,
|
|
1365
|
+
e,
|
|
1366
|
+
y
|
|
1367
|
+
], b[3] = y, b[4] = e, b[5] = _, b[6] = w, b[7] = T) : (w = b[6], T = b[7]), (0, import_react.useEffect)(w, T);
|
|
1368
|
+
}
|
|
1350
1369
|
var falsyToString = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e;
|
|
1351
1370
|
const cx = clsx, cva = (e, _) => (v) => {
|
|
1352
1371
|
var _a;
|
|
@@ -1359,7 +1378,8 @@ const cx = clsx, cva = (e, _) => (v) => {
|
|
|
1359
1378
|
}), S = v && Object.entries(v).reduce((e2, _2) => {
|
|
1360
1379
|
let [v2, y2] = _2;
|
|
1361
1380
|
return y2 === void 0 || (e2[v2] = y2), e2;
|
|
1362
|
-
}, {})
|
|
1381
|
+
}, {});
|
|
1382
|
+
return cx(e, x, (_a = _ == null ? void 0 : _.compoundVariants) == null ? void 0 : _a.reduce((e2, _2) => {
|
|
1363
1383
|
let { class: v2, className: y2, ...x2 } = _2;
|
|
1364
1384
|
return Object.entries(x2).every((e3) => {
|
|
1365
1385
|
let [_3, v3] = e3;
|
|
@@ -1375,33 +1395,9 @@ const cx = clsx, cva = (e, _) => (v) => {
|
|
|
1375
1395
|
v2,
|
|
1376
1396
|
y2
|
|
1377
1397
|
] : e2;
|
|
1378
|
-
}, []);
|
|
1379
|
-
return cx(e, x, C, v == null ? void 0 : v.class, v == null ? void 0 : v.className);
|
|
1398
|
+
}, []), v == null ? void 0 : v.class, v == null ? void 0 : v.className);
|
|
1380
1399
|
};
|
|
1381
|
-
var import_compiler_runtime
|
|
1382
|
-
function isRefObject(e) {
|
|
1383
|
-
return typeof e == "object" && !!e && "current" in e;
|
|
1384
|
-
}
|
|
1385
|
-
function useEventListener(e, _, v, y) {
|
|
1386
|
-
let b = (0, import_compiler_runtime$1.c)(8), x = (0, import_react.useRef)(v), S, C;
|
|
1387
|
-
b[0] === v ? (S = b[1], C = b[2]) : (S = () => {
|
|
1388
|
-
x.current = v;
|
|
1389
|
-
}, C = [v], b[0] = v, b[1] = S, b[2] = C), (0, import_react.useEffect)(S, C);
|
|
1390
|
-
let w, T;
|
|
1391
|
-
b[3] !== y || b[4] !== e || b[5] !== _ ? (w = () => {
|
|
1392
|
-
let v2 = isRefObject(e) ? e.current : e;
|
|
1393
|
-
if (!v2) return;
|
|
1394
|
-
let b2 = (e2) => x.current(e2);
|
|
1395
|
-
return v2.addEventListener(_, b2, y), () => {
|
|
1396
|
-
v2.removeEventListener(_, b2, y);
|
|
1397
|
-
};
|
|
1398
|
-
}, T = [
|
|
1399
|
-
_,
|
|
1400
|
-
e,
|
|
1401
|
-
y
|
|
1402
|
-
], b[3] = y, b[4] = e, b[5] = _, b[6] = w, b[7] = T) : (w = b[6], T = b[7]), (0, import_react.useEffect)(w, T);
|
|
1403
|
-
}
|
|
1404
|
-
var import_compiler_runtime = /* @__PURE__ */ __toESM(require_compiler_runtime()), activeCommon = "active:shadow-none", buttonVariants = cva(cn("disabled:opacity-50 disabled:pointer-events-none", "inline-flex items-center justify-center rounded-md text-sm font-medium focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background"), {
|
|
1400
|
+
var import_compiler_runtime = /* @__PURE__ */ __toESM(require_compiler_runtime(), 1), activeCommon = "active:shadow-none", buttonVariants = cva(cn("disabled:opacity-50 disabled:pointer-events-none", "inline-flex items-center justify-center rounded-md text-sm font-medium focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background"), {
|
|
1405
1401
|
variants: {
|
|
1406
1402
|
variant: {
|
|
1407
1403
|
default: cn("bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs border border-primary", activeCommon),
|
|
@@ -1414,7 +1410,8 @@ var import_compiler_runtime = /* @__PURE__ */ __toESM(require_compiler_runtime()
|
|
|
1414
1410
|
text: cn("opacity-80 hover:opacity-100", "active:opacity-100"),
|
|
1415
1411
|
ghost: cn("border border-transparent", "hover:bg-accent hover:text-accent-foreground hover:shadow-xs", activeCommon, "active:text-accent-foreground"),
|
|
1416
1412
|
link: "underline-offset-4 hover:underline text-link",
|
|
1417
|
-
linkDestructive: "underline-offset-4 hover:underline text-destructive underline-destructive"
|
|
1413
|
+
linkDestructive: "underline-offset-4 hover:underline text-destructive underline-destructive",
|
|
1414
|
+
outlineDestructive: "border border-destructive text-destructive hover:bg-destructive/10"
|
|
1418
1415
|
},
|
|
1419
1416
|
size: {
|
|
1420
1417
|
default: "h-10 py-2 px-4",
|
|
@@ -1456,11 +1453,11 @@ export {
|
|
|
1456
1453
|
composeRefs as c,
|
|
1457
1454
|
cn as d,
|
|
1458
1455
|
clsx_default as f,
|
|
1459
|
-
|
|
1456
|
+
useEventListener as i,
|
|
1460
1457
|
useComposedRefs as l,
|
|
1461
1458
|
buttonVariants as n,
|
|
1462
1459
|
createSlot as o,
|
|
1463
|
-
|
|
1460
|
+
cva as r,
|
|
1464
1461
|
createSlottable as s,
|
|
1465
1462
|
Button as t,
|
|
1466
1463
|
Events as u
|