@tempots/beatui 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -34
- package/dist/2019-C0NjrG2i.js +164 -0
- package/dist/2019-JlqBnfO0.cjs +1 -0
- package/dist/2020-lqWvthL_.js +192 -0
- package/dist/2020-r3MHWrkK.cjs +1 -0
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +1 -0
- package/dist/apl-B2DGVGxc.js +76 -0
- package/dist/apl-M-DNMvvR.cjs +1 -0
- package/dist/ar-BsUm-TCn.cjs +1 -0
- package/dist/ar-DReA9eQ2.cjs +1 -0
- package/dist/ar-NCCPhOpI.js +38 -0
- package/dist/ar-VA2yE-1i.js +82 -0
- package/dist/asciiarmor-2LVJmxlE.js +34 -0
- package/dist/asciiarmor-BMx3XVjX.cjs +1 -0
- package/dist/asn1-OOsVM4yU.cjs +1 -0
- package/dist/asn1-jKiBa2Ya.js +95 -0
- package/dist/asterisk-B1QUaW1C.cjs +1 -0
- package/dist/asterisk-DS281yxp.js +271 -0
- package/dist/auth/index.cjs.js +1 -0
- package/dist/auth/index.es.js +1331 -0
- package/dist/beatui.css +1 -1
- package/dist/brainfuck-BjUlYKdF.cjs +1 -0
- package/dist/brainfuck-C_p9pTT8.js +34 -0
- package/dist/clike-BEMIzMUI.cjs +1 -0
- package/dist/clike-DGTaUp48.js +620 -0
- package/dist/clojure-Ap_IXD2I.cjs +1 -0
- package/dist/clojure-CCKyeQKf.js +800 -0
- package/dist/cmake-C4D5_VmS.cjs +1 -0
- package/dist/cmake-CuaCgAKt.js +28 -0
- package/dist/cobol-BlTKFDRj.js +72 -0
- package/dist/cobol-Du-cT2hr.cjs +1 -0
- package/dist/coffeescript-BVCvwO8I.js +179 -0
- package/dist/coffeescript-DDFAj2ea.cjs +1 -0
- package/dist/commonlisp-CXBBRCTx.cjs +1 -0
- package/dist/commonlisp-D_kxz07b.js +75 -0
- package/dist/crystal-D309uH6_.js +217 -0
- package/dist/crystal-DAFWRDbh.cjs +1 -0
- package/dist/css-BkF-NPzE.js +1553 -0
- package/dist/css-DzFJyRJ8.cjs +1 -0
- package/dist/cypher-BMq4Fwjl.js +68 -0
- package/dist/cypher-BN0-oCze.cjs +1 -0
- package/dist/d-BHsqGcfm.cjs +1 -0
- package/dist/d-BZcgY6La.js +127 -0
- package/dist/de-BIj_wrpg.cjs +1 -0
- package/dist/de-BUFLEyKr.cjs +1 -0
- package/dist/de-BVK2MkCk.js +38 -0
- package/dist/de-C14QN5V1.js +82 -0
- package/dist/diff-CemTHKfk.cjs +1 -0
- package/dist/diff-Cg9d_RX2.js +18 -0
- package/dist/dockerfile-BBTH3voH.cjs +1 -0
- package/dist/dockerfile-DIy8NleC.js +194 -0
- package/dist/dtd-ChoVQPwv.cjs +1 -0
- package/dist/dtd-CtLokQ-U.js +84 -0
- package/dist/dylan-QYeExnWK.js +234 -0
- package/dist/dylan-apTQIgUA.cjs +1 -0
- package/dist/ebnf-DUPDuY4r.js +78 -0
- package/dist/ebnf-LYmLy17h.cjs +1 -0
- package/dist/ecl-C7WNQq7-.cjs +1 -0
- package/dist/ecl-CiXN-g_D.js +121 -0
- package/dist/eiffel-BJThA8RG.cjs +1 -0
- package/dist/eiffel-yQhjl4T1.js +110 -0
- package/dist/elm-CNT9vbN0.js +108 -0
- package/dist/elm-CcXP9T36.cjs +1 -0
- package/dist/erlang-B6mpcObI.cjs +1 -0
- package/dist/erlang-CFOYdy9e.js +487 -0
- package/dist/es-B5GqMkMg.js +82 -0
- package/dist/es-BQS8PL9j.js +38 -0
- package/dist/es-BxBeTRCv.cjs +1 -0
- package/dist/es-D1oMYUqV.cjs +1 -0
- package/dist/fa-BxlrmcQK.js +82 -0
- package/dist/fa-D5TvDNdj.cjs +1 -0
- package/dist/fa-DxPseW3g.cjs +1 -0
- package/dist/fa-T-tkJSJr.js +38 -0
- package/dist/factor-B-tsx9yW.cjs +1 -0
- package/dist/factor-DDOC7X6P.js +65 -0
- package/dist/fcl-BzAKklXo.cjs +1 -0
- package/dist/fcl-CPC2WYrI.js +103 -0
- package/dist/forth-BmxRyE9S.js +60 -0
- package/dist/forth-CPAzyZ_n.cjs +1 -0
- package/dist/fortran-9bvPyrOW.js +442 -0
- package/dist/fortran-DHiTlGV1.cjs +1 -0
- package/dist/fr-BzFxzocR.js +82 -0
- package/dist/fr-CSRRhyCG.js +38 -0
- package/dist/fr-Cdyopuz3.cjs +1 -0
- package/dist/fr-DPGRV4C4.cjs +1 -0
- package/dist/gas-BiPtGF2E.cjs +1 -0
- package/dist/gas-cpmYfFX2.js +183 -0
- package/dist/gherkin-CJuwpceU.js +34 -0
- package/dist/gherkin-Djo7Y51D.cjs +1 -0
- package/dist/groovy-BMVITiCm.cjs +1 -0
- package/dist/groovy-DZeT_VM-.js +146 -0
- package/dist/haskell-Bvt3Qq1t.js +375 -0
- package/dist/haskell-CngODaW-.cjs +1 -0
- package/dist/haxe-70NVW1pR.js +359 -0
- package/dist/haxe-Dyk-piTh.cjs +1 -0
- package/dist/he-Bxdc4M08.js +38 -0
- package/dist/he-DarDNPn0.cjs +1 -0
- package/dist/he-DjHXtt_S.js +82 -0
- package/dist/he-XNDY7609.cjs +1 -0
- package/dist/hi-CJeFvTBe.js +38 -0
- package/dist/hi-Xlc0IeoY.js +82 -0
- package/dist/hi-eMrnBh0O.cjs +1 -0
- package/dist/hi-tATwsXJ6.cjs +1 -0
- package/dist/http-BkLifcnL.cjs +1 -0
- package/dist/http-D9LttvKF.js +44 -0
- package/dist/idl-B6TRFYjl.js +947 -0
- package/dist/idl-FmHDmsE-.cjs +1 -0
- package/dist/index-22y56f5G.js +270 -0
- package/dist/index-85k3bgcY.cjs +1 -0
- package/dist/index-9HEatb8C.js +612 -0
- package/dist/index-B16dbwxM.cjs +1 -0
- package/dist/index-B1w_-cUQ.js +136 -0
- package/dist/index-B2079wM-.js +921 -0
- package/dist/index-B66rNs5i.cjs +2 -0
- package/dist/index-B79joQIU.js +76 -0
- package/dist/index-BDr9qHd0.js +138 -0
- package/dist/index-BF_OOMtT.js +1307 -0
- package/dist/index-BGcCFDkp.js +74 -0
- package/dist/index-BKr-B2hh.js +1874 -0
- package/dist/index-BUKtbimR.cjs +6 -0
- package/dist/index-BWxeedWQ.js +59 -0
- package/dist/index-BYk56bqR.cjs +13 -0
- package/dist/index-BZHMnjr6.cjs +1 -0
- package/dist/index-BguvTLHu.cjs +1 -0
- package/dist/index-BmUA4_Ip.js +302 -0
- package/dist/index-By8a3eg5.cjs +1 -0
- package/dist/index-C0t8aD9u.js +94 -0
- package/dist/index-C3BW17zm.cjs +1 -0
- package/dist/index-C4UzgyIA.cjs +1 -0
- package/dist/index-CIfx_bs7.cjs +7 -0
- package/dist/index-COyS3EXB.js +289 -0
- package/dist/index-CRfUh74G.cjs +1 -0
- package/dist/index-CY_sj-qf.js +309 -0
- package/dist/index-CeYwt1r1.js +342 -0
- package/dist/index-Cohec4rB.cjs +1 -0
- package/dist/index-CpqyQcup.js +552 -0
- package/dist/index-D-Rzl363.cjs +1 -0
- package/dist/index-D48AYUAg.js +226 -0
- package/dist/index-DD8_efWr.cjs +1 -0
- package/dist/index-DIO06RsV.js +554 -0
- package/dist/index-DLJt9Ebe.cjs +8 -0
- package/dist/index-DSvEBuy-.cjs +3 -0
- package/dist/index-DV7tB1MN.cjs +1 -0
- package/dist/index-DgUJYXoy.cjs +1 -0
- package/dist/index-Dghyrng7.js +960 -0
- package/dist/index-DjNMMz5-.cjs +1 -0
- package/dist/index-DpHYZhFL.js +251 -0
- package/dist/index-DutbjaBQ.js +101 -0
- package/dist/index-DxG_avr8.cjs +1 -0
- package/dist/index-FEy4Hwnx.cjs +1 -0
- package/dist/index-d3p39HQv.js +157 -0
- package/dist/index-dsitEt8M.cjs +1 -0
- package/dist/index-kk6qFeC5.cjs +1 -0
- package/dist/index-tOao3Qu5.js +953 -0
- package/dist/index-xnxTfNd2.js +8283 -0
- package/dist/index.cjs.js +143 -0
- package/dist/index.es.js +4736 -7849
- package/dist/index.esm-8xolKogd.cjs +1 -0
- package/dist/index.esm-CSotgpVw.js +4959 -0
- package/dist/it-BmFag7j0.cjs +1 -0
- package/dist/it-CR0FAQEB.js +82 -0
- package/dist/it-DzUV0SmB.cjs +1 -0
- package/dist/it-Zmp0BhIj.js +38 -0
- package/dist/ja-DWjoA-hQ.js +38 -0
- package/dist/ja-Dj-bAKLf.cjs +1 -0
- package/dist/ja-WICb5O3K.js +83 -0
- package/dist/ja-f2fDsTUD.cjs +1 -0
- package/dist/javascript-C2yteZeJ.js +691 -0
- package/dist/javascript-DngSGg_0.cjs +1 -0
- package/dist/jinja2-DnB6dQmV.js +154 -0
- package/dist/jinja2-wbVbDTNi.cjs +1 -0
- package/dist/json-schema/index.cjs.js +1 -0
- package/dist/json-schema/index.es.js +37 -0
- package/dist/julia-DA67Qw9E.cjs +1 -0
- package/dist/julia-DpvXAuO6.js +241 -0
- package/dist/ko-30evSGGW.js +82 -0
- package/dist/ko-BOlI-33h.js +38 -0
- package/dist/ko-BomUE-yQ.cjs +1 -0
- package/dist/ko-DvDEQ6FS.cjs +1 -0
- package/dist/link-portal-B-RvroWY.js +5 -0
- package/dist/link-portal-_tiDFZqh.cjs +1 -0
- package/dist/livescript-Bg3URadp.cjs +1 -0
- package/dist/livescript-CanGTf8u.js +272 -0
- package/dist/lua-CIsxjGwi.cjs +1 -0
- package/dist/lua-XplVlWi_.js +217 -0
- package/dist/markdown/index.cjs.js +2 -0
- package/dist/markdown/index.es.js +422 -0
- package/dist/markdown.css +39 -0
- package/dist/mathematica-BG089QIc.cjs +1 -0
- package/dist/mathematica-jaRHnSxC.js +35 -0
- package/dist/mbox-BctzC1hL.js +76 -0
- package/dist/mbox-CySolFFZ.cjs +1 -0
- package/dist/milkdown/index.cjs.js +1 -0
- package/dist/milkdown/index.es.js +4 -0
- package/dist/milkdown-input-C-Muq7PQ.cjs +941 -0
- package/dist/milkdown-input-DaN9l6E_.js +62376 -0
- package/dist/milkdown-url-BKbqhNCO.js +4 -0
- package/dist/milkdown-url-BLgXPmZR.cjs +1 -0
- package/dist/milkdown.css +1903 -0
- package/dist/mirc-BfqEffzk.cjs +1 -0
- package/dist/mirc-CFBPAOaF.js +72 -0
- package/dist/mllike-BSnXJBGA.js +272 -0
- package/dist/mllike-QUjwI6zq.cjs +1 -0
- package/dist/modal-Ba2uXVSD.cjs +1 -0
- package/dist/modal-CeVJb-Ko.js +614 -0
- package/dist/modelica-B6Zhcb-M.cjs +1 -0
- package/dist/modelica-vUgVs--1.js +93 -0
- package/dist/monaco/index.cjs.js +2 -0
- package/dist/monaco/index.es.js +269 -0
- package/dist/monaco.css +14 -0
- package/dist/mscgen-BToym4Bs.cjs +1 -0
- package/dist/mscgen-Cpl0NYLN.js +104 -0
- package/dist/mumps-CQoS1kWX.js +25 -0
- package/dist/mumps-wfyQdxSu.cjs +1 -0
- package/dist/nginx-CwqyBUfA.cjs +1 -0
- package/dist/nginx-zDPm3Z74.js +89 -0
- package/dist/nl-DaCzsF01.js +83 -0
- package/dist/nl-Dr-l6zUy.cjs +1 -0
- package/dist/nl-hmXJvCw7.cjs +1 -0
- package/dist/nl-kQNcAdY1.js +38 -0
- package/dist/notice-BgnHRPMk.js +2432 -0
- package/dist/notice-t8qZIDvK.cjs +1 -0
- package/dist/nsis-DPj2fUaP.cjs +1 -0
- package/dist/nsis-fePjrhq7.js +62 -0
- package/dist/ntriples-CsNjv2QF.js +79 -0
- package/dist/ntriples-DgwJmozm.cjs +1 -0
- package/dist/octave-1pkKrgAA.cjs +1 -0
- package/dist/octave-C8PmmSRH.js +143 -0
- package/dist/oz-BXOZCt0U.cjs +1 -0
- package/dist/oz-Ce8aN8oE.js +151 -0
- package/dist/pascal-De0D6mP7.js +77 -0
- package/dist/pascal-DtY2LEkJ.cjs +1 -0
- package/dist/perl-B4bSCe1C.js +915 -0
- package/dist/perl-CVDWbEju.cjs +1 -0
- package/dist/pig-D24Z8EXi.js +54 -0
- package/dist/pig-DMByOrnr.cjs +1 -0
- package/dist/pl-BK0i_yvq.cjs +1 -0
- package/dist/pl-CKyPFvss.js +38 -0
- package/dist/pl-Cg5Kr9eZ.cjs +1 -0
- package/dist/pl-DlMR1sq8.js +83 -0
- package/dist/powershell-BaoYaFvj.cjs +1 -0
- package/dist/powershell-DkYVfTzP.js +249 -0
- package/dist/preprocess-CvkqwVNt.cjs +3 -0
- package/dist/preprocess-D898zxsP.js +2295 -0
- package/dist/properties-DXHJZ3WE.cjs +1 -0
- package/dist/properties-Dn9wna3M.js +26 -0
- package/dist/protobuf-BKhXdfH6.cjs +1 -0
- package/dist/protobuf-BPIjwpzm.js +49 -0
- package/dist/pt-B7uWbJ1j.cjs +1 -0
- package/dist/pt-DBmUhaNI.js +38 -0
- package/dist/pt-lX3h34iM.js +82 -0
- package/dist/pt-oBMmVYcu.cjs +1 -0
- package/dist/pug-CwAQJzGR.js +248 -0
- package/dist/pug-kEfRDOiF.cjs +1 -0
- package/dist/puppet-8mAyuMbW.cjs +1 -0
- package/dist/puppet-nyd4dhjf.js +45 -0
- package/dist/python-BkR3uSy8.js +313 -0
- package/dist/python-D-iU6WXz.cjs +1 -0
- package/dist/q-BPQ45Nxu.cjs +1 -0
- package/dist/q-DXjKs-tC.js +83 -0
- package/dist/r-LKEuhEGI.js +104 -0
- package/dist/r-r2_EZsON.cjs +1 -0
- package/dist/rpm-IznJm2Xc.js +57 -0
- package/dist/rpm-YK81m3qU.cjs +1 -0
- package/dist/ru-2aVFFaQ-.js +87 -0
- package/dist/ru-CrQR5RUx.cjs +1 -0
- package/dist/ru-CsJ_yT-7.js +38 -0
- package/dist/ru-CtxMmoa6.cjs +1 -0
- package/dist/ruby-CcYfvIk6.js +228 -0
- package/dist/ruby-Cn1sFkZF.cjs +1 -0
- package/dist/sas-7E8yHoCW.js +105 -0
- package/dist/sas-DAGcJy94.cjs +1 -0
- package/dist/scheme-B0ZrbojV.cjs +1 -0
- package/dist/scheme-DjibxsNh.js +124 -0
- package/dist/shell-BMYo43V6.cjs +1 -0
- package/dist/shell-C0C2sNA_.js +182 -0
- package/dist/sieve-Bwz7vjP5.js +72 -0
- package/dist/sieve-CIYW-b_H.cjs +1 -0
- package/dist/simple-mode-B0dvCdAA.js +89 -0
- package/dist/simple-mode-BIKNPBes.cjs +1 -0
- package/dist/smalltalk-Bhddl2pB.js +48 -0
- package/dist/smalltalk-CSslY-3i.cjs +1 -0
- package/dist/solr-A1kSnAwJ.cjs +1 -0
- package/dist/solr-BNlsLglM.js +41 -0
- package/dist/sparql-DnHMBLLY.cjs +1 -0
- package/dist/sparql-FarWu_Gb.js +197 -0
- package/dist/spreadsheet-B7_BK8hB.cjs +1 -0
- package/dist/spreadsheet-C-cy4P5N.js +49 -0
- package/dist/sql-9VmIWHrZ.cjs +1 -0
- package/dist/sql-CfG5lQ3l.js +282 -0
- package/dist/stex-B4wyjEnp.cjs +1 -0
- package/dist/stex-Du4h4KAU.js +129 -0
- package/dist/styles-url-B-d6aezR.cjs +1 -0
- package/dist/styles-url-B4WGMvfi.js +4 -0
- package/dist/styles-url-CZUL_YRT.cjs +1 -0
- package/dist/styles-url-DpP5gepF.js +4 -0
- package/dist/stylus-CAdqWld3.js +250 -0
- package/dist/stylus-D6GYOT3Z.cjs +1 -0
- package/dist/swift-DGw6Cgu8.cjs +1 -0
- package/dist/swift-DSxqR9R6.js +230 -0
- package/dist/tcl-ByLXbQFo.cjs +1 -0
- package/dist/tcl-xfoLljhY.js +81 -0
- package/dist/textile-D1AWE-pc.js +295 -0
- package/dist/textile-iryw-lTw.cjs +1 -0
- package/dist/theme-CJVt8QIc.js +34 -0
- package/dist/theme-YS3sFklH.cjs +1 -0
- package/dist/tiddlywiki-5wqsXtSk.js +155 -0
- package/dist/tiddlywiki-D8IJz1k7.cjs +1 -0
- package/dist/tiki-C5p5KSQK.cjs +1 -0
- package/dist/tiki-__Kn3CeS.js +181 -0
- package/dist/timer-CcMCjYrq.cjs +1 -0
- package/dist/timer-CkgWORR9.js +42 -0
- package/dist/toml-3ZsH_4Qa.cjs +1 -0
- package/dist/toml-BHiuTcfn.js +49 -0
- package/dist/tr-Bn5ldVJs.js +38 -0
- package/dist/tr-CgJ8uhZu.cjs +1 -0
- package/dist/tr-DN9zPGaS.cjs +1 -0
- package/dist/tr-DgRS_mcj.js +82 -0
- package/dist/translations-CSUEQrNH.cjs +2 -0
- package/dist/translations-CVR1KQJ3.js +47 -0
- package/dist/translations-CxMNY8i7.js +2006 -0
- package/dist/translations-pfS-x8Ak.cjs +1 -0
- package/dist/troff-D-3QCOYN.cjs +1 -0
- package/dist/troff-D2UO-fKf.js +35 -0
- package/dist/ttcn-Bsa4sfRm.js +123 -0
- package/dist/ttcn-C2MXAqcM.cjs +1 -0
- package/dist/ttcn-cfg-BYqcMRxC.cjs +1 -0
- package/dist/ttcn-cfg-Bac_acMi.js +88 -0
- package/dist/turtle-DSJNatSv.cjs +1 -0
- package/dist/turtle-xwJUxoPV.js +80 -0
- package/dist/types/auth/index.d.ts +1 -0
- package/dist/types/auth-i18n/default.d.ts +25 -25
- package/dist/types/auth-i18n/locales/ar.d.ts +25 -25
- package/dist/types/auth-i18n/locales/de.d.ts +25 -25
- package/dist/types/auth-i18n/locales/en.d.ts +25 -25
- package/dist/types/auth-i18n/locales/es.d.ts +25 -25
- package/dist/types/auth-i18n/locales/fa.d.ts +25 -25
- package/dist/types/auth-i18n/locales/fr.d.ts +25 -25
- package/dist/types/auth-i18n/locales/he.d.ts +25 -25
- package/dist/types/auth-i18n/locales/hi.d.ts +25 -25
- package/dist/types/auth-i18n/locales/it.d.ts +25 -25
- package/dist/types/auth-i18n/locales/ja.d.ts +25 -25
- package/dist/types/auth-i18n/locales/ko.d.ts +25 -25
- package/dist/types/auth-i18n/locales/nl.d.ts +25 -25
- package/dist/types/auth-i18n/locales/pl.d.ts +25 -25
- package/dist/types/auth-i18n/locales/pt.d.ts +25 -25
- package/dist/types/auth-i18n/locales/ru.d.ts +25 -25
- package/dist/types/auth-i18n/locales/tr.d.ts +25 -25
- package/dist/types/auth-i18n/locales/ur.d.ts +25 -25
- package/dist/types/auth-i18n/locales/vi.d.ts +25 -25
- package/dist/types/auth-i18n/locales/zh.d.ts +25 -25
- package/dist/types/auth-i18n/translations.d.ts +26 -26
- package/dist/types/beatui-i18n/default.d.ts +52 -41
- package/dist/types/beatui-i18n/locales/en.d.ts +52 -41
- package/dist/types/beatui-i18n/translations.d.ts +53 -42
- package/dist/types/components/auth/auth-divider.d.ts +2 -2
- package/dist/types/components/auth/index.d.ts +8 -6
- package/dist/types/components/auth/password-strength-indicator.d.ts +4 -4
- package/dist/types/components/auth/reset-password-form.d.ts +2 -2
- package/dist/types/components/auth/signin-form.d.ts +2 -2
- package/dist/types/components/auth/signup-form.d.ts +2 -2
- package/dist/types/components/auth/social-login-button.d.ts +27 -27
- package/dist/types/components/auth/types.d.ts +46 -48
- package/dist/types/components/auth/utils.d.ts +0 -2
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/button/close-button.d.ts +15 -0
- package/dist/types/components/button/index.d.ts +1 -0
- package/dist/types/components/data/tag.d.ts +3 -2
- package/dist/types/components/data/unstyled-drop-zone.d.ts +5 -2
- package/dist/types/components/form/control/control-factory.d.ts +24 -0
- package/dist/types/components/form/control/date-utils.d.ts +6 -0
- package/dist/types/components/form/control/index.d.ts +3 -22
- package/dist/types/components/form/control/list-control.d.ts +23 -14
- package/dist/types/components/form/controller/controller.d.ts +20 -1
- package/dist/types/components/form/controller/index.d.ts +2 -0
- package/dist/types/components/form/controller/union-controller.d.ts +53 -0
- package/dist/types/components/form/controller/utils.d.ts +4 -0
- package/dist/types/components/form/input/appearance-selector.d.ts +2 -1
- package/dist/types/components/form/input/base64-input.d.ts +10 -0
- package/dist/types/components/form/input/base64s-input.d.ts +12 -0
- package/dist/types/components/form/input/bigint-input.d.ts +9 -0
- package/dist/types/components/form/input/color-input.d.ts +8 -1
- package/dist/types/components/form/input/combobox-input.d.ts +16 -0
- package/dist/types/components/form/input/combobox-tags-input.d.ts +16 -0
- package/dist/types/components/form/input/dropdown-base.d.ts +19 -0
- package/dist/types/components/form/input/dropdown-input.d.ts +14 -0
- package/dist/types/components/form/input/duration-input.d.ts +3 -0
- package/dist/types/components/form/input/duration-mask.d.ts +12 -0
- package/dist/types/components/form/input/editable-text.d.ts +2 -1
- package/dist/types/components/form/input/file-input.d.ts +3 -3
- package/dist/types/components/form/input/files-input.d.ts +12 -0
- package/dist/types/components/form/input/index.d.ts +42 -2
- package/dist/types/components/form/input/input-container.d.ts +2 -3
- package/dist/types/components/form/input/input-options.d.ts +0 -13
- package/dist/types/components/form/input/input-wrapper.d.ts +1 -1
- package/dist/types/components/form/input/instant-input.d.ts +3 -0
- package/dist/types/components/form/input/lazy-native-select.d.ts +1 -1
- package/dist/types/components/form/input/list-input.d.ts +14 -0
- package/dist/types/components/form/input/mask-input.d.ts +94 -0
- package/dist/types/components/form/input/native-select.d.ts +4 -23
- package/dist/types/components/form/input/nullable-base64-input.d.ts +8 -0
- package/dist/types/components/form/input/nullable-bigint-input.d.ts +9 -0
- package/dist/types/components/form/input/nullable-duration-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-email-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-instant-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-mask-input.d.ts +5 -0
- package/dist/types/components/form/input/nullable-number-input.d.ts +9 -0
- package/dist/types/components/form/input/nullable-password-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-plain-date-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-month-day-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-time-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +3 -0
- package/dist/types/components/form/input/nullable-rating-input.d.ts +14 -0
- package/dist/types/components/form/input/nullable-url-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-utils.d.ts +2 -0
- package/dist/types/components/form/input/nullable-uuid-input.d.ts +2 -0
- package/dist/types/components/form/input/nullable-zoned-date-time-input.d.ts +3 -0
- package/dist/types/components/form/input/option.d.ts +38 -0
- package/dist/types/components/form/input/plain-date-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-date-time-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-month-day-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-time-input.d.ts +3 -0
- package/dist/types/components/form/input/plain-year-month-input.d.ts +3 -0
- package/dist/types/components/form/input/rating-input.d.ts +15 -0
- package/dist/types/components/form/input/segmented-input.d.ts +10 -0
- package/dist/types/components/form/input/select-tags-input.d.ts +20 -0
- package/dist/types/components/form/input/slider-input.d.ts +15 -0
- package/dist/types/components/form/input/tag-utils.d.ts +11 -0
- package/dist/types/components/form/input/url-input.d.ts +2 -0
- package/dist/types/components/form/input/uuid-input.d.ts +2 -0
- package/dist/types/components/form/input/zoned-date-time-input.d.ts +3 -0
- package/dist/types/components/form/schema/custom-validation.d.ts +1 -1
- package/dist/types/components/form/use-form.d.ts +11 -4
- package/dist/types/components/i18n/make-i18nprovider.d.ts +2 -3
- package/dist/types/components/json-schema/ajv-utils.d.ts +121 -0
- package/dist/types/components/json-schema/cache-management.d.ts +148 -0
- package/dist/types/components/json-schema/containers/container-layouts.d.ts +66 -0
- package/dist/types/components/json-schema/controls/any-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/array-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/boolean-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/composition-controls.d.ts +24 -0
- package/dist/types/components/json-schema/controls/composition-shared.d.ts +34 -0
- package/dist/types/components/json-schema/controls/enum-const-controls.d.ts +17 -0
- package/dist/types/components/json-schema/controls/generic-control.d.ts +18 -0
- package/dist/types/components/json-schema/controls/null-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/number-controls.d.ts +17 -0
- package/dist/types/components/json-schema/controls/object-control.d.ts +12 -0
- package/dist/types/components/json-schema/controls/object-helpers.d.ts +31 -0
- package/dist/types/components/json-schema/controls/presence-toggle.d.ts +12 -0
- package/dist/types/components/json-schema/controls/schema-banners.d.ts +14 -0
- package/dist/types/components/json-schema/controls/schema-wrapper.d.ts +7 -0
- package/dist/types/components/json-schema/controls/shared-utils.d.ts +16 -0
- package/dist/types/components/json-schema/controls/string-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls/type-utils.d.ts +27 -0
- package/dist/types/components/json-schema/controls/union-control.d.ts +10 -0
- package/dist/types/components/json-schema/controls.d.ts +11 -0
- package/dist/types/components/json-schema/discriminator/discriminator-utils.d.ts +57 -0
- package/dist/types/components/json-schema/index.d.ts +5 -0
- package/dist/types/components/json-schema/json-schema-form.d.ts +79 -0
- package/dist/types/components/json-schema/oneof-branch-detection.d.ts +35 -0
- package/dist/types/components/json-schema/ref-utils.d.ts +18 -0
- package/dist/types/components/json-schema/schema-context.d.ts +185 -0
- package/dist/types/components/json-schema/validation/async-validation.d.ts +113 -0
- package/dist/types/components/json-schema/validation/conditional-validation.d.ts +75 -0
- package/dist/types/components/json-schema/validation/cross-field-validation.d.ts +71 -0
- package/dist/types/components/json-schema/validation/error-aggregation.d.ts +84 -0
- package/dist/types/components/json-schema/validation/performance-optimization.d.ts +120 -0
- package/dist/types/components/json-schema/validator.d.ts +10 -0
- package/dist/types/components/json-schema/visibility/visibility-evaluation.d.ts +77 -0
- package/dist/types/components/json-schema/visibility/visibility-wrapper.d.ts +56 -0
- package/dist/types/components/json-schema/widgets/enhanced-widgets.d.ts +70 -0
- package/dist/types/components/json-schema/widgets/string-controls.d.ts +8 -0
- package/dist/types/components/json-schema/widgets/string-detection.d.ts +3 -0
- package/dist/types/components/json-schema/widgets/string-type.d.ts +62 -0
- package/dist/types/components/json-schema/widgets/utils.d.ts +45 -0
- package/dist/types/components/json-schema/widgets/widget-composition.d.ts +144 -0
- package/dist/types/components/json-schema/widgets/widget-customization.d.ts +120 -0
- package/dist/types/components/layout/index.d.ts +1 -0
- package/dist/types/components/layout/nine-slice-scroll-view.d.ts +21 -0
- package/dist/types/components/layout/scrollable-panel.d.ts +1 -1
- package/dist/types/components/milkdown/milkdown-input.d.ts +15 -0
- package/dist/types/components/milkdown/milkdown-url.d.ts +2 -0
- package/dist/types/components/misc/index.d.ts +3 -0
- package/dist/types/components/misc/link-portal.d.ts +11 -0
- package/dist/types/components/misc/notice.d.ts +15 -0
- package/dist/types/components/misc/style-portal.d.ts +10 -0
- package/dist/types/components/monaco/monaco-editor-input.d.ts +12 -0
- package/dist/types/components/navigation/flyout.d.ts +2 -2
- package/dist/types/components/navigation/index.d.ts +1 -0
- package/dist/types/components/navigation/menu.d.ts +7 -7
- package/dist/types/components/navigation/toolbar/index.d.ts +1 -0
- package/dist/types/components/navigation/toolbar/toolbar.d.ts +17 -0
- package/dist/types/components/overlay/drawer.d.ts +2 -2
- package/dist/types/components/overlay/modal.d.ts +3 -3
- package/dist/types/components/overlay/tooltip.d.ts +2 -2
- package/dist/types/i18n/translate.d.ts +2 -17
- package/dist/types/index.d.ts +1 -1
- package/dist/types/json-schema/index.d.ts +1 -0
- package/dist/types/markdown/extensions.d.ts +8 -0
- package/dist/types/markdown/index.d.ts +17 -0
- package/dist/types/markdown/styles-url.d.ts +2 -0
- package/dist/types/markdown/styles.d.ts +2 -0
- package/dist/types/milkdown/index.d.ts +1 -0
- package/dist/types/milkdown/styles.d.ts +2 -0
- package/dist/types/monaco/index.d.ts +3 -0
- package/dist/types/monaco/lazy-loader.d.ts +5 -0
- package/dist/types/monaco/styles-url.d.ts +2 -0
- package/dist/types/monaco/styles.d.ts +2 -0
- package/dist/types/monaco/types.d.ts +14 -0
- package/dist/types/styles/base-url.d.ts +2 -0
- package/dist/types/styles/base.d.ts +2 -0
- package/dist/types/temporal/index.d.ts +3 -0
- package/dist/types/temporal/runtime.d.ts +2 -0
- package/dist/types/temporal/types.d.ts +10 -0
- package/dist/types/temporal/with-temporal.d.ts +3 -0
- package/dist/types/tokens/colors.d.ts +13 -2
- package/dist/types/utils/focus-trap.d.ts +4 -4
- package/dist/types/utils/format-file-size.d.ts +6 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/ur-Bg9eX81v.js +38 -0
- package/dist/ur-BzgBZpdY.cjs +1 -0
- package/dist/ur-DvqAg9gW.cjs +1 -0
- package/dist/ur-fgmvVBHY.js +82 -0
- package/dist/vb-c2kQGd6-.js +74 -0
- package/dist/vb-qzHzzvyB.cjs +1 -0
- package/dist/vbscript-1f_Dhg5H.js +324 -0
- package/dist/vbscript-CWm8v9tE.cjs +1 -0
- package/dist/velocity-D3_yAIp3.cjs +1 -0
- package/dist/velocity-DJd0pTTC.js +96 -0
- package/dist/verilog-BOhLNmQo.cjs +1 -0
- package/dist/verilog-CiS1jyi5.js +262 -0
- package/dist/vhdl-CMFbi8Im.cjs +1 -0
- package/dist/vhdl-T9HkrbI2.js +106 -0
- package/dist/vi-D5R3YcU0.cjs +1 -0
- package/dist/vi-DZzB43iu.js +82 -0
- package/dist/vi-DhdsHHf_.js +38 -0
- package/dist/vi-DijXfJCL.cjs +1 -0
- package/dist/webidl-CWb_flNk.cjs +1 -0
- package/dist/webidl-CjfDENEo.js +155 -0
- package/dist/xquery-BUQdORAS.js +422 -0
- package/dist/xquery-Cjw5fRnG.cjs +1 -0
- package/dist/yacas-C0absKBh.js +73 -0
- package/dist/yacas-urx_N5C8.cjs +1 -0
- package/dist/z80-CsG3CM6M.cjs +1 -0
- package/dist/z80-Pki2zAjW.js +61 -0
- package/dist/zh-BIykcEu9.js +38 -0
- package/dist/zh-BMcC2kwD.cjs +1 -0
- package/dist/zh-Bcz-uyJp.js +82 -0
- package/dist/zh-CCGXcj5r.cjs +1 -0
- package/package.json +56 -7
- package/dist/ar-C7sFBvd3.js +0 -49
- package/dist/ar-D9ef1rPL.js +0 -38
- package/dist/de-DvSVUCKi.js +0 -38
- package/dist/de-g1A7pWNb.js +0 -49
- package/dist/es-VVHXE2N_.js +0 -49
- package/dist/es-kZH0y7yE.js +0 -38
- package/dist/fa-CJNIz_z3.js +0 -49
- package/dist/fa-CZ1jHeSI.js +0 -38
- package/dist/fr-Bi9Ce2bU.js +0 -38
- package/dist/fr-CV72Obmu.js +0 -49
- package/dist/he-B7FDQHq5.js +0 -49
- package/dist/he-iAAKM-JS.js +0 -38
- package/dist/hi-BCajgsBt.js +0 -49
- package/dist/hi-BMfFIHn-.js +0 -38
- package/dist/index.umd.js +0 -100
- package/dist/it-BeJHf7Ur.js +0 -49
- package/dist/it-RYZ8E-C6.js +0 -38
- package/dist/ja-4x5hNiAy.js +0 -38
- package/dist/ja-D5YyTu5k.js +0 -50
- package/dist/ko-BFy6uytC.js +0 -38
- package/dist/ko-DNqvHWiZ.js +0 -49
- package/dist/nl-BRZt7kSA.js +0 -38
- package/dist/nl-Cdbu51NB.js +0 -50
- package/dist/pl-Bru8UPLn.js +0 -50
- package/dist/pl-DKbc4KpN.js +0 -38
- package/dist/pt-Bful1nYu.js +0 -38
- package/dist/pt-LCfmUFgc.js +0 -49
- package/dist/ru-9lG4xtda.js +0 -38
- package/dist/ru-D7gTuXxP.js +0 -50
- package/dist/tr-D3uQnNr4.js +0 -38
- package/dist/tr-DlFekEUg.js +0 -49
- package/dist/types/components/form/control/combobox-control.d.ts +0 -11
- package/dist/types/components/form/control/control-input-wrapper.d.ts +0 -7
- package/dist/types/components/form/control/control-options.d.ts +0 -20
- package/dist/types/components/form/control/date-control.d.ts +0 -3
- package/dist/types/components/form/control/date-time-control.d.ts +0 -3
- package/dist/types/components/form/control/email-control.d.ts +0 -3
- package/dist/types/components/form/control/file-control.d.ts +0 -11
- package/dist/types/components/form/control/lazy-native-select-control.d.ts +0 -16
- package/dist/types/components/form/control/native-select-control.d.ts +0 -9
- package/dist/types/components/form/control/nullable-date-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-date-time-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-string-date-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-string-date-time-control.d.ts +0 -3
- package/dist/types/components/form/control/nullable-text-area-control.d.ts +0 -7
- package/dist/types/components/form/control/nullable-text-control.d.ts +0 -3
- package/dist/types/components/form/control/number-control.d.ts +0 -9
- package/dist/types/components/form/control/password-control.d.ts +0 -3
- package/dist/types/components/form/control/segmented-control.d.ts +0 -10
- package/dist/types/components/form/control/string-date-control.d.ts +0 -3
- package/dist/types/components/form/control/tags-control.d.ts +0 -3
- package/dist/types/components/form/control/text-area-control.d.ts +0 -7
- package/dist/types/components/form/control/text-control.d.ts +0 -8
- package/dist/types/components/form/input/combobox.d.ts +0 -39
- package/dist/ur-BThJLsvD.js +0 -38
- package/dist/ur-mIO25A6L.js +0 -49
- package/dist/vi-Cd6F8iSa.js +0 -38
- package/dist/vi-Dw_DDZWP.js +0 -49
- package/dist/zh-Boy-i2zO.js +0 -38
- package/dist/zh-Dojj6P4C.js +0 -49
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
function c(n) {
|
|
2
|
+
for (var e = {}, t = 0; t < n.length; t++) e[n[t]] = !0;
|
|
3
|
+
return e;
|
|
4
|
+
}
|
|
5
|
+
var l = c([
|
|
6
|
+
"_",
|
|
7
|
+
"var",
|
|
8
|
+
"let",
|
|
9
|
+
"actor",
|
|
10
|
+
"class",
|
|
11
|
+
"enum",
|
|
12
|
+
"extension",
|
|
13
|
+
"import",
|
|
14
|
+
"protocol",
|
|
15
|
+
"struct",
|
|
16
|
+
"func",
|
|
17
|
+
"typealias",
|
|
18
|
+
"associatedtype",
|
|
19
|
+
"open",
|
|
20
|
+
"public",
|
|
21
|
+
"internal",
|
|
22
|
+
"fileprivate",
|
|
23
|
+
"private",
|
|
24
|
+
"deinit",
|
|
25
|
+
"init",
|
|
26
|
+
"new",
|
|
27
|
+
"override",
|
|
28
|
+
"self",
|
|
29
|
+
"subscript",
|
|
30
|
+
"super",
|
|
31
|
+
"convenience",
|
|
32
|
+
"dynamic",
|
|
33
|
+
"final",
|
|
34
|
+
"indirect",
|
|
35
|
+
"lazy",
|
|
36
|
+
"required",
|
|
37
|
+
"static",
|
|
38
|
+
"unowned",
|
|
39
|
+
"unowned(safe)",
|
|
40
|
+
"unowned(unsafe)",
|
|
41
|
+
"weak",
|
|
42
|
+
"as",
|
|
43
|
+
"is",
|
|
44
|
+
"break",
|
|
45
|
+
"case",
|
|
46
|
+
"continue",
|
|
47
|
+
"default",
|
|
48
|
+
"else",
|
|
49
|
+
"fallthrough",
|
|
50
|
+
"for",
|
|
51
|
+
"guard",
|
|
52
|
+
"if",
|
|
53
|
+
"in",
|
|
54
|
+
"repeat",
|
|
55
|
+
"switch",
|
|
56
|
+
"where",
|
|
57
|
+
"while",
|
|
58
|
+
"defer",
|
|
59
|
+
"return",
|
|
60
|
+
"inout",
|
|
61
|
+
"mutating",
|
|
62
|
+
"nonmutating",
|
|
63
|
+
"isolated",
|
|
64
|
+
"nonisolated",
|
|
65
|
+
"catch",
|
|
66
|
+
"do",
|
|
67
|
+
"rethrows",
|
|
68
|
+
"throw",
|
|
69
|
+
"throws",
|
|
70
|
+
"async",
|
|
71
|
+
"await",
|
|
72
|
+
"try",
|
|
73
|
+
"didSet",
|
|
74
|
+
"get",
|
|
75
|
+
"set",
|
|
76
|
+
"willSet",
|
|
77
|
+
"assignment",
|
|
78
|
+
"associativity",
|
|
79
|
+
"infix",
|
|
80
|
+
"left",
|
|
81
|
+
"none",
|
|
82
|
+
"operator",
|
|
83
|
+
"postfix",
|
|
84
|
+
"precedence",
|
|
85
|
+
"precedencegroup",
|
|
86
|
+
"prefix",
|
|
87
|
+
"right",
|
|
88
|
+
"Any",
|
|
89
|
+
"AnyObject",
|
|
90
|
+
"Type",
|
|
91
|
+
"dynamicType",
|
|
92
|
+
"Self",
|
|
93
|
+
"Protocol",
|
|
94
|
+
"__COLUMN__",
|
|
95
|
+
"__FILE__",
|
|
96
|
+
"__FUNCTION__",
|
|
97
|
+
"__LINE__"
|
|
98
|
+
]), p = c(["var", "let", "actor", "class", "enum", "extension", "import", "protocol", "struct", "func", "typealias", "associatedtype", "for"]), d = c(["true", "false", "nil", "self", "super", "_"]), v = c([
|
|
99
|
+
"Array",
|
|
100
|
+
"Bool",
|
|
101
|
+
"Character",
|
|
102
|
+
"Dictionary",
|
|
103
|
+
"Double",
|
|
104
|
+
"Float",
|
|
105
|
+
"Int",
|
|
106
|
+
"Int8",
|
|
107
|
+
"Int16",
|
|
108
|
+
"Int32",
|
|
109
|
+
"Int64",
|
|
110
|
+
"Never",
|
|
111
|
+
"Optional",
|
|
112
|
+
"Set",
|
|
113
|
+
"String",
|
|
114
|
+
"UInt8",
|
|
115
|
+
"UInt16",
|
|
116
|
+
"UInt32",
|
|
117
|
+
"UInt64",
|
|
118
|
+
"Void"
|
|
119
|
+
]), h = "+-/*%=|&<>~^?!", _ = ":;,.(){}[]", s = /^\-?0b[01][01_]*/, k = /^\-?0o[0-7][0-7_]*/, x = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/, y = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/, g = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/, w = /^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/, z = /^\#[A-Za-z]+/, b = /^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;
|
|
120
|
+
function f(n, e, t) {
|
|
121
|
+
if (n.sol() && (e.indented = n.indentation()), n.eatSpace()) return null;
|
|
122
|
+
var i = n.peek();
|
|
123
|
+
if (i == "/") {
|
|
124
|
+
if (n.match("//"))
|
|
125
|
+
return n.skipToEnd(), "comment";
|
|
126
|
+
if (n.match("/*"))
|
|
127
|
+
return e.tokenize.push(a), a(n, e);
|
|
128
|
+
}
|
|
129
|
+
if (n.match(z)) return "builtin";
|
|
130
|
+
if (n.match(b)) return "attribute";
|
|
131
|
+
if (n.match(s) || n.match(k) || n.match(x) || n.match(y)) return "number";
|
|
132
|
+
if (n.match(w)) return "property";
|
|
133
|
+
if (h.indexOf(i) > -1)
|
|
134
|
+
return n.next(), "operator";
|
|
135
|
+
if (_.indexOf(i) > -1)
|
|
136
|
+
return n.next(), n.match(".."), "punctuation";
|
|
137
|
+
var r;
|
|
138
|
+
if (r = n.match(/("""|"|')/)) {
|
|
139
|
+
var o = I.bind(null, r[0]);
|
|
140
|
+
return e.tokenize.push(o), o(n, e);
|
|
141
|
+
}
|
|
142
|
+
if (n.match(g)) {
|
|
143
|
+
var u = n.current();
|
|
144
|
+
return v.hasOwnProperty(u) ? "type" : d.hasOwnProperty(u) ? "atom" : l.hasOwnProperty(u) ? (p.hasOwnProperty(u) && (e.prev = "define"), "keyword") : t == "define" ? "def" : "variable";
|
|
145
|
+
}
|
|
146
|
+
return n.next(), null;
|
|
147
|
+
}
|
|
148
|
+
function A() {
|
|
149
|
+
var n = 0;
|
|
150
|
+
return function(e, t, i) {
|
|
151
|
+
var r = f(e, t, i);
|
|
152
|
+
if (r == "punctuation") {
|
|
153
|
+
if (e.current() == "(") ++n;
|
|
154
|
+
else if (e.current() == ")") {
|
|
155
|
+
if (n == 0)
|
|
156
|
+
return e.backUp(1), t.tokenize.pop(), t.tokenize[t.tokenize.length - 1](e, t);
|
|
157
|
+
--n;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return r;
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function I(n, e, t) {
|
|
164
|
+
for (var i = n.length == 1, r, o = !1; r = e.peek(); )
|
|
165
|
+
if (o) {
|
|
166
|
+
if (e.next(), r == "(")
|
|
167
|
+
return t.tokenize.push(A()), "string";
|
|
168
|
+
o = !1;
|
|
169
|
+
} else {
|
|
170
|
+
if (e.match(n))
|
|
171
|
+
return t.tokenize.pop(), "string";
|
|
172
|
+
e.next(), o = r == "\\";
|
|
173
|
+
}
|
|
174
|
+
return i && t.tokenize.pop(), "string";
|
|
175
|
+
}
|
|
176
|
+
function a(n, e) {
|
|
177
|
+
for (var t; t = n.next(); )
|
|
178
|
+
if (t === "/" && n.eat("*"))
|
|
179
|
+
e.tokenize.push(a);
|
|
180
|
+
else if (t === "*" && n.eat("/")) {
|
|
181
|
+
e.tokenize.pop();
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
return "comment";
|
|
185
|
+
}
|
|
186
|
+
function O(n, e, t) {
|
|
187
|
+
this.prev = n, this.align = e, this.indented = t;
|
|
188
|
+
}
|
|
189
|
+
function m(n, e) {
|
|
190
|
+
var t = e.match(/^\s*($|\/[\/\*]|[)}\]])/, !1) ? null : e.column() + 1;
|
|
191
|
+
n.context = new O(n.context, t, n.indented);
|
|
192
|
+
}
|
|
193
|
+
function S(n) {
|
|
194
|
+
n.context && (n.indented = n.context.indented, n.context = n.context.prev);
|
|
195
|
+
}
|
|
196
|
+
const C = {
|
|
197
|
+
name: "swift",
|
|
198
|
+
startState: function() {
|
|
199
|
+
return {
|
|
200
|
+
prev: null,
|
|
201
|
+
context: null,
|
|
202
|
+
indented: 0,
|
|
203
|
+
tokenize: []
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
token: function(n, e) {
|
|
207
|
+
var t = e.prev;
|
|
208
|
+
e.prev = null;
|
|
209
|
+
var i = e.tokenize[e.tokenize.length - 1] || f, r = i(n, e, t);
|
|
210
|
+
if (!r || r == "comment" ? e.prev = t : e.prev || (e.prev = r), r == "punctuation") {
|
|
211
|
+
var o = /[\(\[\{]|([\]\)\}])/.exec(n.current());
|
|
212
|
+
o && (o[1] ? S : m)(e, n);
|
|
213
|
+
}
|
|
214
|
+
return r;
|
|
215
|
+
},
|
|
216
|
+
indent: function(n, e, t) {
|
|
217
|
+
var i = n.context;
|
|
218
|
+
if (!i) return 0;
|
|
219
|
+
var r = /^[\]\}\)]/.test(e);
|
|
220
|
+
return i.align != null ? i.align - (r ? 1 : 0) : i.indented + (r ? 0 : t.unit);
|
|
221
|
+
},
|
|
222
|
+
languageData: {
|
|
223
|
+
indentOnInput: /^\s*[\)\}\]]$/,
|
|
224
|
+
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
|
|
225
|
+
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] }
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
export {
|
|
229
|
+
C as swift
|
|
230
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(r){for(var n={},t=r.split(" "),e=0;e<t.length;++e)n[t[e]]=!0;return n}var f=s("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),u=s("if elseif else and not or eq ne in ni for foreach while switch"),c=/[+\-*&%=<>!?^\/\|]/;function i(r,n,t){return n.tokenize=t,t(r,n)}function o(r,n){var t=n.beforeParams;n.beforeParams=!1;var e=r.next();if((e=='"'||e=="'")&&n.inParams)return i(r,n,d(e));if(/[\[\]{}\(\),;\.]/.test(e))return e=="("&&t?n.inParams=!0:e==")"&&(n.inParams=!1),null;if(/\d/.test(e))return r.eatWhile(/[\w\.]/),"number";if(e=="#")return r.eat("*")?i(r,n,p):e=="#"&&r.match(/ *\[ *\[/)?i(r,n,k):(r.skipToEnd(),"comment");if(e=='"')return r.skipTo(/"/),"comment";if(e=="$")return r.eatWhile(/[$_a-z0-9A-Z\.{:]/),r.eatWhile(/}/),n.beforeParams=!0,"builtin";if(c.test(e))return r.eatWhile(c),"comment";r.eatWhile(/[\w\$_{}\xa1-\uffff]/);var a=r.current().toLowerCase();return f&&f.propertyIsEnumerable(a)?"keyword":u&&u.propertyIsEnumerable(a)?(n.beforeParams=!0,"keyword"):null}function d(r){return function(n,t){for(var e=!1,a,l=!1;(a=n.next())!=null;){if(a==r&&!e){l=!0;break}e=!e&&a=="\\"}return l&&(t.tokenize=o),"string"}}function p(r,n){for(var t=!1,e;e=r.next();){if(e=="#"&&t){n.tokenize=o;break}t=e=="*"}return"comment"}function k(r,n){for(var t=0,e;e=r.next();){if(e=="#"&&t==2){n.tokenize=o;break}e=="]"?t++:e!=" "&&(t=0)}return"meta"}const m={name:"tcl",startState:function(){return{tokenize:o,beforeParams:!1,inParams:!1}},token:function(r,n){return r.eatSpace()?null:n.tokenize(r,n)},languageData:{commentTokens:{line:"#"}}};exports.tcl=m;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
function s(r) {
|
|
2
|
+
for (var n = {}, t = r.split(" "), e = 0; e < t.length; ++e) n[t[e]] = !0;
|
|
3
|
+
return n;
|
|
4
|
+
}
|
|
5
|
+
var f = s("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"), u = s("if elseif else and not or eq ne in ni for foreach while switch"), c = /[+\-*&%=<>!?^\/\|]/;
|
|
6
|
+
function i(r, n, t) {
|
|
7
|
+
return n.tokenize = t, t(r, n);
|
|
8
|
+
}
|
|
9
|
+
function o(r, n) {
|
|
10
|
+
var t = n.beforeParams;
|
|
11
|
+
n.beforeParams = !1;
|
|
12
|
+
var e = r.next();
|
|
13
|
+
if ((e == '"' || e == "'") && n.inParams)
|
|
14
|
+
return i(r, n, p(e));
|
|
15
|
+
if (/[\[\]{}\(\),;\.]/.test(e))
|
|
16
|
+
return e == "(" && t ? n.inParams = !0 : e == ")" && (n.inParams = !1), null;
|
|
17
|
+
if (/\d/.test(e))
|
|
18
|
+
return r.eatWhile(/[\w\.]/), "number";
|
|
19
|
+
if (e == "#")
|
|
20
|
+
return r.eat("*") ? i(r, n, d) : e == "#" && r.match(/ *\[ *\[/) ? i(r, n, k) : (r.skipToEnd(), "comment");
|
|
21
|
+
if (e == '"')
|
|
22
|
+
return r.skipTo(/"/), "comment";
|
|
23
|
+
if (e == "$")
|
|
24
|
+
return r.eatWhile(/[$_a-z0-9A-Z\.{:]/), r.eatWhile(/}/), n.beforeParams = !0, "builtin";
|
|
25
|
+
if (c.test(e))
|
|
26
|
+
return r.eatWhile(c), "comment";
|
|
27
|
+
r.eatWhile(/[\w\$_{}\xa1-\uffff]/);
|
|
28
|
+
var a = r.current().toLowerCase();
|
|
29
|
+
return f && f.propertyIsEnumerable(a) ? "keyword" : u && u.propertyIsEnumerable(a) ? (n.beforeParams = !0, "keyword") : null;
|
|
30
|
+
}
|
|
31
|
+
function p(r) {
|
|
32
|
+
return function(n, t) {
|
|
33
|
+
for (var e = !1, a, l = !1; (a = n.next()) != null; ) {
|
|
34
|
+
if (a == r && !e) {
|
|
35
|
+
l = !0;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
e = !e && a == "\\";
|
|
39
|
+
}
|
|
40
|
+
return l && (t.tokenize = o), "string";
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function d(r, n) {
|
|
44
|
+
for (var t = !1, e; e = r.next(); ) {
|
|
45
|
+
if (e == "#" && t) {
|
|
46
|
+
n.tokenize = o;
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
t = e == "*";
|
|
50
|
+
}
|
|
51
|
+
return "comment";
|
|
52
|
+
}
|
|
53
|
+
function k(r, n) {
|
|
54
|
+
for (var t = 0, e; e = r.next(); ) {
|
|
55
|
+
if (e == "#" && t == 2) {
|
|
56
|
+
n.tokenize = o;
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
e == "]" ? t++ : e != " " && (t = 0);
|
|
60
|
+
}
|
|
61
|
+
return "meta";
|
|
62
|
+
}
|
|
63
|
+
const m = {
|
|
64
|
+
name: "tcl",
|
|
65
|
+
startState: function() {
|
|
66
|
+
return {
|
|
67
|
+
tokenize: o,
|
|
68
|
+
beforeParams: !1,
|
|
69
|
+
inParams: !1
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
token: function(r, n) {
|
|
73
|
+
return r.eatSpace() ? null : n.tokenize(r, n);
|
|
74
|
+
},
|
|
75
|
+
languageData: {
|
|
76
|
+
commentTokens: { line: "#" }
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
m as tcl
|
|
81
|
+
};
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
var f = {
|
|
2
|
+
addition: "inserted",
|
|
3
|
+
attributes: "propertyName",
|
|
4
|
+
bold: "strong",
|
|
5
|
+
cite: "keyword",
|
|
6
|
+
code: "monospace",
|
|
7
|
+
definitionList: "list",
|
|
8
|
+
deletion: "deleted",
|
|
9
|
+
div: "punctuation",
|
|
10
|
+
em: "emphasis",
|
|
11
|
+
footnote: "variable",
|
|
12
|
+
footCite: "qualifier",
|
|
13
|
+
header: "heading",
|
|
14
|
+
html: "comment",
|
|
15
|
+
image: "atom",
|
|
16
|
+
italic: "emphasis",
|
|
17
|
+
link: "link",
|
|
18
|
+
linkDefinition: "link",
|
|
19
|
+
list1: "list",
|
|
20
|
+
list2: "list.special",
|
|
21
|
+
list3: "list",
|
|
22
|
+
notextile: "string.special",
|
|
23
|
+
pre: "operator",
|
|
24
|
+
p: "content",
|
|
25
|
+
quote: "bracket",
|
|
26
|
+
span: "quote",
|
|
27
|
+
specialChar: "character",
|
|
28
|
+
strong: "strong",
|
|
29
|
+
sub: "content.special",
|
|
30
|
+
sup: "content.special",
|
|
31
|
+
table: "variableName.special",
|
|
32
|
+
tableHeading: "operator"
|
|
33
|
+
};
|
|
34
|
+
function h(i, e) {
|
|
35
|
+
e.mode = r.newLayout, e.tableHeading = !1, e.layoutType === "definitionList" && e.spanningLayout && i.match(l("definitionListEnd"), !1) && (e.spanningLayout = !1);
|
|
36
|
+
}
|
|
37
|
+
function s(i, e, n) {
|
|
38
|
+
if (n === "_")
|
|
39
|
+
return i.eat("_") ? a(i, e, "italic", /__/, 2) : a(i, e, "em", /_/, 1);
|
|
40
|
+
if (n === "*")
|
|
41
|
+
return i.eat("*") ? a(i, e, "bold", /\*\*/, 2) : a(i, e, "strong", /\*/, 1);
|
|
42
|
+
if (n === "[")
|
|
43
|
+
return i.match(/\d+\]/) && (e.footCite = !0), u(e);
|
|
44
|
+
if (n === "(") {
|
|
45
|
+
var o = i.match(/^(r|tm|c)\)/);
|
|
46
|
+
if (o)
|
|
47
|
+
return f.specialChar;
|
|
48
|
+
}
|
|
49
|
+
if (n === "<" && i.match(/(\w+)[^>]+>[^<]+<\/\1>/))
|
|
50
|
+
return f.html;
|
|
51
|
+
if (n === "?" && i.eat("?"))
|
|
52
|
+
return a(i, e, "cite", /\?\?/, 2);
|
|
53
|
+
if (n === "=" && i.eat("="))
|
|
54
|
+
return a(i, e, "notextile", /==/, 2);
|
|
55
|
+
if (n === "-" && !i.eat("-"))
|
|
56
|
+
return a(i, e, "deletion", /-/, 1);
|
|
57
|
+
if (n === "+")
|
|
58
|
+
return a(i, e, "addition", /\+/, 1);
|
|
59
|
+
if (n === "~")
|
|
60
|
+
return a(i, e, "sub", /~/, 1);
|
|
61
|
+
if (n === "^")
|
|
62
|
+
return a(i, e, "sup", /\^/, 1);
|
|
63
|
+
if (n === "%")
|
|
64
|
+
return a(i, e, "span", /%/, 1);
|
|
65
|
+
if (n === "@")
|
|
66
|
+
return a(i, e, "code", /@/, 1);
|
|
67
|
+
if (n === "!") {
|
|
68
|
+
var c = a(i, e, "image", /(?:\([^\)]+\))?!/, 1);
|
|
69
|
+
return i.match(/^:\S+/), c;
|
|
70
|
+
}
|
|
71
|
+
return u(e);
|
|
72
|
+
}
|
|
73
|
+
function a(i, e, n, o, c) {
|
|
74
|
+
var d = i.pos > c ? i.string.charAt(i.pos - c - 1) : null, p = i.peek();
|
|
75
|
+
if (e[n]) {
|
|
76
|
+
if ((!p || /\W/.test(p)) && d && /\S/.test(d)) {
|
|
77
|
+
var y = u(e);
|
|
78
|
+
return e[n] = !1, y;
|
|
79
|
+
}
|
|
80
|
+
} else (!d || /\W/.test(d)) && p && /\S/.test(p) && i.match(new RegExp("^.*\\S" + o.source + "(?:\\W|$)"), !1) && (e[n] = !0, e.mode = r.attributes);
|
|
81
|
+
return u(e);
|
|
82
|
+
}
|
|
83
|
+
function u(i) {
|
|
84
|
+
var e = b(i);
|
|
85
|
+
if (e) return e;
|
|
86
|
+
var n = [];
|
|
87
|
+
return i.layoutType && n.push(f[i.layoutType]), n = n.concat(g(
|
|
88
|
+
i,
|
|
89
|
+
"addition",
|
|
90
|
+
"bold",
|
|
91
|
+
"cite",
|
|
92
|
+
"code",
|
|
93
|
+
"deletion",
|
|
94
|
+
"em",
|
|
95
|
+
"footCite",
|
|
96
|
+
"image",
|
|
97
|
+
"italic",
|
|
98
|
+
"link",
|
|
99
|
+
"span",
|
|
100
|
+
"strong",
|
|
101
|
+
"sub",
|
|
102
|
+
"sup",
|
|
103
|
+
"table",
|
|
104
|
+
"tableHeading"
|
|
105
|
+
)), i.layoutType === "header" && n.push(f.header + "-" + i.header), n.length ? n.join(" ") : null;
|
|
106
|
+
}
|
|
107
|
+
function b(i) {
|
|
108
|
+
var e = i.layoutType;
|
|
109
|
+
switch (e) {
|
|
110
|
+
case "notextile":
|
|
111
|
+
case "code":
|
|
112
|
+
case "pre":
|
|
113
|
+
return f[e];
|
|
114
|
+
default:
|
|
115
|
+
return i.notextile ? f.notextile + (e ? " " + f[e] : "") : null;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
function g(i) {
|
|
119
|
+
for (var e = [], n = 1; n < arguments.length; ++n)
|
|
120
|
+
i[arguments[n]] && e.push(f[arguments[n]]);
|
|
121
|
+
return e;
|
|
122
|
+
}
|
|
123
|
+
function m(i) {
|
|
124
|
+
var e = i.spanningLayout, n = i.layoutType;
|
|
125
|
+
for (var o in i) i.hasOwnProperty(o) && delete i[o];
|
|
126
|
+
i.mode = r.newLayout, e && (i.layoutType = n, i.spanningLayout = !0);
|
|
127
|
+
}
|
|
128
|
+
var t = {
|
|
129
|
+
cache: {},
|
|
130
|
+
single: {
|
|
131
|
+
bc: "bc",
|
|
132
|
+
bq: "bq",
|
|
133
|
+
definitionList: /- .*?:=+/,
|
|
134
|
+
definitionListEnd: /.*=:\s*$/,
|
|
135
|
+
div: "div",
|
|
136
|
+
drawTable: /\|.*\|/,
|
|
137
|
+
foot: /fn\d+/,
|
|
138
|
+
header: /h[1-6]/,
|
|
139
|
+
html: /\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,
|
|
140
|
+
link: /[^"]+":\S/,
|
|
141
|
+
linkDefinition: /\[[^\s\]]+\]\S+/,
|
|
142
|
+
list: /(?:#+|\*+)/,
|
|
143
|
+
notextile: "notextile",
|
|
144
|
+
para: "p",
|
|
145
|
+
pre: "pre",
|
|
146
|
+
table: "table",
|
|
147
|
+
tableCellAttributes: /[\/\\]\d+/,
|
|
148
|
+
tableHeading: /\|_\./,
|
|
149
|
+
tableText: /[^"_\*\[\(\?\+~\^%@|-]+/,
|
|
150
|
+
text: /[^!"_=\*\[\(<\?\+~\^%@-]+/
|
|
151
|
+
},
|
|
152
|
+
attributes: {
|
|
153
|
+
align: /(?:<>|<|>|=)/,
|
|
154
|
+
selector: /\([^\(][^\)]+\)/,
|
|
155
|
+
lang: /\[[^\[\]]+\]/,
|
|
156
|
+
pad: /(?:\(+|\)+){1,2}/,
|
|
157
|
+
css: /\{[^\}]+\}/
|
|
158
|
+
},
|
|
159
|
+
createRe: function(i) {
|
|
160
|
+
switch (i) {
|
|
161
|
+
case "drawTable":
|
|
162
|
+
return t.makeRe("^", t.single.drawTable, "$");
|
|
163
|
+
case "html":
|
|
164
|
+
return t.makeRe("^", t.single.html, "(?:", t.single.html, ")*", "$");
|
|
165
|
+
case "linkDefinition":
|
|
166
|
+
return t.makeRe("^", t.single.linkDefinition, "$");
|
|
167
|
+
case "listLayout":
|
|
168
|
+
return t.makeRe("^", t.single.list, l("allAttributes"), "*\\s+");
|
|
169
|
+
case "tableCellAttributes":
|
|
170
|
+
return t.makeRe("^", t.choiceRe(
|
|
171
|
+
t.single.tableCellAttributes,
|
|
172
|
+
l("allAttributes")
|
|
173
|
+
), "+\\.");
|
|
174
|
+
case "type":
|
|
175
|
+
return t.makeRe("^", l("allTypes"));
|
|
176
|
+
case "typeLayout":
|
|
177
|
+
return t.makeRe(
|
|
178
|
+
"^",
|
|
179
|
+
l("allTypes"),
|
|
180
|
+
l("allAttributes"),
|
|
181
|
+
"*\\.\\.?",
|
|
182
|
+
"(\\s+|$)"
|
|
183
|
+
);
|
|
184
|
+
case "attributes":
|
|
185
|
+
return t.makeRe("^", l("allAttributes"), "+");
|
|
186
|
+
case "allTypes":
|
|
187
|
+
return t.choiceRe(
|
|
188
|
+
t.single.div,
|
|
189
|
+
t.single.foot,
|
|
190
|
+
t.single.header,
|
|
191
|
+
t.single.bc,
|
|
192
|
+
t.single.bq,
|
|
193
|
+
t.single.notextile,
|
|
194
|
+
t.single.pre,
|
|
195
|
+
t.single.table,
|
|
196
|
+
t.single.para
|
|
197
|
+
);
|
|
198
|
+
case "allAttributes":
|
|
199
|
+
return t.choiceRe(
|
|
200
|
+
t.attributes.selector,
|
|
201
|
+
t.attributes.css,
|
|
202
|
+
t.attributes.lang,
|
|
203
|
+
t.attributes.align,
|
|
204
|
+
t.attributes.pad
|
|
205
|
+
);
|
|
206
|
+
default:
|
|
207
|
+
return t.makeRe("^", t.single[i]);
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
makeRe: function() {
|
|
211
|
+
for (var i = "", e = 0; e < arguments.length; ++e) {
|
|
212
|
+
var n = arguments[e];
|
|
213
|
+
i += typeof n == "string" ? n : n.source;
|
|
214
|
+
}
|
|
215
|
+
return new RegExp(i);
|
|
216
|
+
},
|
|
217
|
+
choiceRe: function() {
|
|
218
|
+
for (var i = [arguments[0]], e = 1; e < arguments.length; ++e)
|
|
219
|
+
i[e * 2 - 1] = "|", i[e * 2] = arguments[e];
|
|
220
|
+
return i.unshift("(?:"), i.push(")"), t.makeRe.apply(null, i);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
function l(i) {
|
|
224
|
+
return t.cache[i] || (t.cache[i] = t.createRe(i));
|
|
225
|
+
}
|
|
226
|
+
var r = {
|
|
227
|
+
newLayout: function(i, e) {
|
|
228
|
+
if (i.match(l("typeLayout"), !1))
|
|
229
|
+
return e.spanningLayout = !1, (e.mode = r.blockType)(i, e);
|
|
230
|
+
var n;
|
|
231
|
+
return b(e) || (i.match(l("listLayout"), !1) ? n = r.list : i.match(l("drawTable"), !1) ? n = r.table : i.match(l("linkDefinition"), !1) ? n = r.linkDefinition : i.match(l("definitionList")) ? n = r.definitionList : i.match(l("html"), !1) && (n = r.html)), (e.mode = n || r.text)(i, e);
|
|
232
|
+
},
|
|
233
|
+
blockType: function(i, e) {
|
|
234
|
+
var n, o;
|
|
235
|
+
if (e.layoutType = null, n = i.match(l("type")))
|
|
236
|
+
o = n[0];
|
|
237
|
+
else
|
|
238
|
+
return (e.mode = r.text)(i, e);
|
|
239
|
+
return (n = o.match(l("header"))) ? (e.layoutType = "header", e.header = parseInt(n[0][1])) : o.match(l("bq")) ? e.layoutType = "quote" : o.match(l("bc")) ? e.layoutType = "code" : o.match(l("foot")) ? e.layoutType = "footnote" : o.match(l("notextile")) ? e.layoutType = "notextile" : o.match(l("pre")) ? e.layoutType = "pre" : o.match(l("div")) ? e.layoutType = "div" : o.match(l("table")) && (e.layoutType = "table"), e.mode = r.attributes, u(e);
|
|
240
|
+
},
|
|
241
|
+
text: function(i, e) {
|
|
242
|
+
if (i.match(l("text"))) return u(e);
|
|
243
|
+
var n = i.next();
|
|
244
|
+
return n === '"' ? (e.mode = r.link)(i, e) : s(i, e, n);
|
|
245
|
+
},
|
|
246
|
+
attributes: function(i, e) {
|
|
247
|
+
return e.mode = r.layoutLength, i.match(l("attributes")) ? f.attributes : u(e);
|
|
248
|
+
},
|
|
249
|
+
layoutLength: function(i, e) {
|
|
250
|
+
return i.eat(".") && i.eat(".") && (e.spanningLayout = !0), e.mode = r.text, u(e);
|
|
251
|
+
},
|
|
252
|
+
list: function(i, e) {
|
|
253
|
+
var n = i.match(l("list"));
|
|
254
|
+
e.listDepth = n[0].length;
|
|
255
|
+
var o = (e.listDepth - 1) % 3;
|
|
256
|
+
return o ? o === 1 ? e.layoutType = "list2" : e.layoutType = "list3" : e.layoutType = "list1", e.mode = r.attributes, u(e);
|
|
257
|
+
},
|
|
258
|
+
link: function(i, e) {
|
|
259
|
+
return e.mode = r.text, i.match(l("link")) ? (i.match(/\S+/), f.link) : u(e);
|
|
260
|
+
},
|
|
261
|
+
linkDefinition: function(i) {
|
|
262
|
+
return i.skipToEnd(), f.linkDefinition;
|
|
263
|
+
},
|
|
264
|
+
definitionList: function(i, e) {
|
|
265
|
+
return i.match(l("definitionList")), e.layoutType = "definitionList", i.match(/\s*$/) ? e.spanningLayout = !0 : e.mode = r.attributes, u(e);
|
|
266
|
+
},
|
|
267
|
+
html: function(i) {
|
|
268
|
+
return i.skipToEnd(), f.html;
|
|
269
|
+
},
|
|
270
|
+
table: function(i, e) {
|
|
271
|
+
return e.layoutType = "table", (e.mode = r.tableCell)(i, e);
|
|
272
|
+
},
|
|
273
|
+
tableCell: function(i, e) {
|
|
274
|
+
return i.match(l("tableHeading")) ? e.tableHeading = !0 : i.eat("|"), e.mode = r.tableCellAttributes, u(e);
|
|
275
|
+
},
|
|
276
|
+
tableCellAttributes: function(i, e) {
|
|
277
|
+
return e.mode = r.tableText, i.match(l("tableCellAttributes")) ? f.attributes : u(e);
|
|
278
|
+
},
|
|
279
|
+
tableText: function(i, e) {
|
|
280
|
+
return i.match(l("tableText")) ? u(e) : i.peek() === "|" ? (e.mode = r.tableCell, u(e)) : s(i, e, i.next());
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
const k = {
|
|
284
|
+
name: "textile",
|
|
285
|
+
startState: function() {
|
|
286
|
+
return { mode: r.newLayout };
|
|
287
|
+
},
|
|
288
|
+
token: function(i, e) {
|
|
289
|
+
return i.sol() && h(i, e), e.mode(i, e);
|
|
290
|
+
},
|
|
291
|
+
blankLine: m
|
|
292
|
+
};
|
|
293
|
+
export {
|
|
294
|
+
k as textile
|
|
295
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var f={addition:"inserted",attributes:"propertyName",bold:"strong",cite:"keyword",code:"monospace",definitionList:"list",deletion:"deleted",div:"punctuation",em:"emphasis",footnote:"variable",footCite:"qualifier",header:"heading",html:"comment",image:"atom",italic:"emphasis",link:"link",linkDefinition:"link",list1:"list",list2:"list.special",list3:"list",notextile:"string.special",pre:"operator",p:"content",quote:"bracket",span:"quote",specialChar:"character",strong:"strong",sub:"content.special",sup:"content.special",table:"variableName.special",tableHeading:"operator"};function h(i,e){e.mode=r.newLayout,e.tableHeading=!1,e.layoutType==="definitionList"&&e.spanningLayout&&i.match(l("definitionListEnd"),!1)&&(e.spanningLayout=!1)}function s(i,e,n){if(n==="_")return i.eat("_")?a(i,e,"italic",/__/,2):a(i,e,"em",/_/,1);if(n==="*")return i.eat("*")?a(i,e,"bold",/\*\*/,2):a(i,e,"strong",/\*/,1);if(n==="[")return i.match(/\d+\]/)&&(e.footCite=!0),u(e);if(n==="("){var o=i.match(/^(r|tm|c)\)/);if(o)return f.specialChar}if(n==="<"&&i.match(/(\w+)[^>]+>[^<]+<\/\1>/))return f.html;if(n==="?"&&i.eat("?"))return a(i,e,"cite",/\?\?/,2);if(n==="="&&i.eat("="))return a(i,e,"notextile",/==/,2);if(n==="-"&&!i.eat("-"))return a(i,e,"deletion",/-/,1);if(n==="+")return a(i,e,"addition",/\+/,1);if(n==="~")return a(i,e,"sub",/~/,1);if(n==="^")return a(i,e,"sup",/\^/,1);if(n==="%")return a(i,e,"span",/%/,1);if(n==="@")return a(i,e,"code",/@/,1);if(n==="!"){var c=a(i,e,"image",/(?:\([^\)]+\))?!/,1);return i.match(/^:\S+/),c}return u(e)}function a(i,e,n,o,c){var d=i.pos>c?i.string.charAt(i.pos-c-1):null,p=i.peek();if(e[n]){if((!p||/\W/.test(p))&&d&&/\S/.test(d)){var y=u(e);return e[n]=!1,y}}else(!d||/\W/.test(d))&&p&&/\S/.test(p)&&i.match(new RegExp("^.*\\S"+o.source+"(?:\\W|$)"),!1)&&(e[n]=!0,e.mode=r.attributes);return u(e)}function u(i){var e=b(i);if(e)return e;var n=[];return i.layoutType&&n.push(f[i.layoutType]),n=n.concat(g(i,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading")),i.layoutType==="header"&&n.push(f.header+"-"+i.header),n.length?n.join(" "):null}function b(i){var e=i.layoutType;switch(e){case"notextile":case"code":case"pre":return f[e];default:return i.notextile?f.notextile+(e?" "+f[e]:""):null}}function g(i){for(var e=[],n=1;n<arguments.length;++n)i[arguments[n]]&&e.push(f[arguments[n]]);return e}function m(i){var e=i.spanningLayout,n=i.layoutType;for(var o in i)i.hasOwnProperty(o)&&delete i[o];i.mode=r.newLayout,e&&(i.layoutType=n,i.spanningLayout=!0)}var t={cache:{},single:{bc:"bc",bq:"bq",definitionList:/- .*?:=+/,definitionListEnd:/.*=:\s*$/,div:"div",drawTable:/\|.*\|/,foot:/fn\d+/,header:/h[1-6]/,html:/\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(i){switch(i){case"drawTable":return t.makeRe("^",t.single.drawTable,"$");case"html":return t.makeRe("^",t.single.html,"(?:",t.single.html,")*","$");case"linkDefinition":return t.makeRe("^",t.single.linkDefinition,"$");case"listLayout":return t.makeRe("^",t.single.list,l("allAttributes"),"*\\s+");case"tableCellAttributes":return t.makeRe("^",t.choiceRe(t.single.tableCellAttributes,l("allAttributes")),"+\\.");case"type":return t.makeRe("^",l("allTypes"));case"typeLayout":return t.makeRe("^",l("allTypes"),l("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return t.makeRe("^",l("allAttributes"),"+");case"allTypes":return t.choiceRe(t.single.div,t.single.foot,t.single.header,t.single.bc,t.single.bq,t.single.notextile,t.single.pre,t.single.table,t.single.para);case"allAttributes":return t.choiceRe(t.attributes.selector,t.attributes.css,t.attributes.lang,t.attributes.align,t.attributes.pad);default:return t.makeRe("^",t.single[i])}},makeRe:function(){for(var i="",e=0;e<arguments.length;++e){var n=arguments[e];i+=typeof n=="string"?n:n.source}return new RegExp(i)},choiceRe:function(){for(var i=[arguments[0]],e=1;e<arguments.length;++e)i[e*2-1]="|",i[e*2]=arguments[e];return i.unshift("(?:"),i.push(")"),t.makeRe.apply(null,i)}};function l(i){return t.cache[i]||(t.cache[i]=t.createRe(i))}var r={newLayout:function(i,e){if(i.match(l("typeLayout"),!1))return e.spanningLayout=!1,(e.mode=r.blockType)(i,e);var n;return b(e)||(i.match(l("listLayout"),!1)?n=r.list:i.match(l("drawTable"),!1)?n=r.table:i.match(l("linkDefinition"),!1)?n=r.linkDefinition:i.match(l("definitionList"))?n=r.definitionList:i.match(l("html"),!1)&&(n=r.html)),(e.mode=n||r.text)(i,e)},blockType:function(i,e){var n,o;if(e.layoutType=null,n=i.match(l("type")))o=n[0];else return(e.mode=r.text)(i,e);return(n=o.match(l("header")))?(e.layoutType="header",e.header=parseInt(n[0][1])):o.match(l("bq"))?e.layoutType="quote":o.match(l("bc"))?e.layoutType="code":o.match(l("foot"))?e.layoutType="footnote":o.match(l("notextile"))?e.layoutType="notextile":o.match(l("pre"))?e.layoutType="pre":o.match(l("div"))?e.layoutType="div":o.match(l("table"))&&(e.layoutType="table"),e.mode=r.attributes,u(e)},text:function(i,e){if(i.match(l("text")))return u(e);var n=i.next();return n==='"'?(e.mode=r.link)(i,e):s(i,e,n)},attributes:function(i,e){return e.mode=r.layoutLength,i.match(l("attributes"))?f.attributes:u(e)},layoutLength:function(i,e){return i.eat(".")&&i.eat(".")&&(e.spanningLayout=!0),e.mode=r.text,u(e)},list:function(i,e){var n=i.match(l("list"));e.listDepth=n[0].length;var o=(e.listDepth-1)%3;return o?o===1?e.layoutType="list2":e.layoutType="list3":e.layoutType="list1",e.mode=r.attributes,u(e)},link:function(i,e){return e.mode=r.text,i.match(l("link"))?(i.match(/\S+/),f.link):u(e)},linkDefinition:function(i){return i.skipToEnd(),f.linkDefinition},definitionList:function(i,e){return i.match(l("definitionList")),e.layoutType="definitionList",i.match(/\s*$/)?e.spanningLayout=!0:e.mode=r.attributes,u(e)},html:function(i){return i.skipToEnd(),f.html},table:function(i,e){return e.layoutType="table",(e.mode=r.tableCell)(i,e)},tableCell:function(i,e){return i.match(l("tableHeading"))?e.tableHeading=!0:i.eat("|"),e.mode=r.tableCellAttributes,u(e)},tableCellAttributes:function(i,e){return e.mode=r.tableText,i.match(l("tableCellAttributes"))?f.attributes:u(e)},tableText:function(i,e){return i.match(l("tableText"))?u(e):i.peek()==="|"?(e.mode=r.tableCell,u(e)):s(i,e,i.next())}};const k={name:"textile",startState:function(){return{mode:r.newLayout}},token:function(i,e){return i.sol()&&h(i,e),e.mode(i,e)},blankLine:m};exports.textile=k;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { makeProviderMark as n, localStorageProp as c, computedOf as o, Use as m, attr as u } from "@tempots/dom";
|
|
2
|
+
import { useAppearance as i } from "@tempots/ui";
|
|
3
|
+
const f = {
|
|
4
|
+
mark: n("Theme"),
|
|
5
|
+
// Create function returns the value and cleanup
|
|
6
|
+
create: (s) => {
|
|
7
|
+
const e = i(), a = c({
|
|
8
|
+
key: "beatui-appearance-preference",
|
|
9
|
+
defaultValue: "system"
|
|
10
|
+
}), t = () => {
|
|
11
|
+
e.dispose(), a.dispose();
|
|
12
|
+
};
|
|
13
|
+
return {
|
|
14
|
+
value: {
|
|
15
|
+
appearance: o(
|
|
16
|
+
e,
|
|
17
|
+
a
|
|
18
|
+
)((r, p) => p === "system" ? r : p),
|
|
19
|
+
appearancePreference: a,
|
|
20
|
+
setAppearancePreference: (r) => {
|
|
21
|
+
a.set(r);
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
dispose: t
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}, k = () => m(
|
|
28
|
+
f,
|
|
29
|
+
({ appearance: s }) => u.class(s.map((e) => `b-${e}`))
|
|
30
|
+
);
|
|
31
|
+
export {
|
|
32
|
+
f as T,
|
|
33
|
+
k as a
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("@tempots/dom"),o=require("@tempots/ui"),n={mark:e.makeProviderMark("Theme"),create:t=>{const r=o.useAppearance(),a=e.localStorageProp({key:"beatui-appearance-preference",defaultValue:"system"}),p=()=>{r.dispose(),a.dispose()};return{value:{appearance:e.computedOf(r,a)((s,c)=>c==="system"?s:c),appearancePreference:a,setAppearancePreference:s=>{a.set(s)}},dispose:p}}},u=()=>e.Use(n,({appearance:t})=>e.attr.class(t.map(r=>`b-${r}`)));exports.Theme=n;exports.ThemeAppearance=u;
|