@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,45 @@
|
|
|
1
|
+
import { JSONSchema } from '../schema-context';
|
|
2
|
+
/**
|
|
3
|
+
* Unified x:ui configuration types
|
|
4
|
+
*/
|
|
5
|
+
export type XUIString = string;
|
|
6
|
+
export interface XUIObject {
|
|
7
|
+
/** Widget type - takes precedence over format */
|
|
8
|
+
widget?: string;
|
|
9
|
+
/** Format type - fallback if widget not specified */
|
|
10
|
+
format?: string;
|
|
11
|
+
/** Widget-specific options */
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export type XUIConfig = XUIString | XUIObject;
|
|
15
|
+
/**
|
|
16
|
+
* Resolved widget information with precedence applied
|
|
17
|
+
*/
|
|
18
|
+
export interface ResolvedWidget {
|
|
19
|
+
/** The effective widget type */
|
|
20
|
+
widget: string;
|
|
21
|
+
/** Source of the widget selection for debugging */
|
|
22
|
+
source: 'explicit-widget' | 'explicit-format' | 'schema-format' | 'schema-media' | 'constraints' | 'heuristics' | 'type-fallback';
|
|
23
|
+
/** Additional options from x:ui object */
|
|
24
|
+
options?: Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Extract x:ui configuration from schema definition
|
|
28
|
+
*/
|
|
29
|
+
export declare function getXUIConfig(definition: JSONSchema): XUIConfig | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Resolve effective widget with precedence rules:
|
|
32
|
+
* 1. Explicit x:ui.widget
|
|
33
|
+
* 2. Explicit x:ui.format (or x:ui as string)
|
|
34
|
+
* 3. Schema format property
|
|
35
|
+
* 4. Schema contentMediaType/contentEncoding
|
|
36
|
+
* 5. Schema constraints (enum, const, min/max, etc.)
|
|
37
|
+
* 6. Heuristics (property names, length bounds)
|
|
38
|
+
* 7. Type fallback
|
|
39
|
+
*/
|
|
40
|
+
export declare function resolveWidget(definition: JSONSchema, propertyName?: string): ResolvedWidget | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Legacy function for backward compatibility
|
|
43
|
+
* @deprecated Use resolveWidget instead
|
|
44
|
+
*/
|
|
45
|
+
export declare function getUIFormat(definition: JSONSchema): string | undefined;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import type { Renderable } from '@tempots/dom';
|
|
2
|
+
import type { Controller } from '../../form';
|
|
3
|
+
import type { SchemaContext, JSONSchemaDefinition } from '../schema-context';
|
|
4
|
+
import type { WidgetFactory } from './widget-customization';
|
|
5
|
+
/**
|
|
6
|
+
* Widget composition configuration
|
|
7
|
+
*/
|
|
8
|
+
export interface WidgetComposition {
|
|
9
|
+
/** Layout type for composition */
|
|
10
|
+
layout: 'horizontal' | 'vertical' | 'grid' | 'tabs' | 'accordion' | 'custom';
|
|
11
|
+
/** Widgets to compose */
|
|
12
|
+
widgets: ComposedWidget[];
|
|
13
|
+
/** Layout-specific options */
|
|
14
|
+
layoutOptions?: {
|
|
15
|
+
/** Grid columns (for grid layout) */
|
|
16
|
+
columns?: number;
|
|
17
|
+
/** Gap between widgets */
|
|
18
|
+
gap?: string;
|
|
19
|
+
/** Alignment */
|
|
20
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
21
|
+
/** Custom CSS classes */
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
/** Conditional composition rules */
|
|
25
|
+
conditions?: CompositionCondition[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Individual widget in a composition
|
|
29
|
+
*/
|
|
30
|
+
export interface ComposedWidget {
|
|
31
|
+
/** Widget type/name */
|
|
32
|
+
type: string;
|
|
33
|
+
/** Widget-specific configuration */
|
|
34
|
+
config?: Record<string, unknown>;
|
|
35
|
+
/** Widget label/title */
|
|
36
|
+
label?: string;
|
|
37
|
+
/** Widget description */
|
|
38
|
+
description?: string;
|
|
39
|
+
/** Conditional visibility */
|
|
40
|
+
condition?: string | ((value: unknown, formData: unknown) => boolean);
|
|
41
|
+
/** Layout constraints */
|
|
42
|
+
layout?: {
|
|
43
|
+
/** Grid column span */
|
|
44
|
+
colSpan?: number;
|
|
45
|
+
/** Grid row span */
|
|
46
|
+
rowSpan?: number;
|
|
47
|
+
/** Flex grow factor */
|
|
48
|
+
grow?: number;
|
|
49
|
+
/** Flex shrink factor */
|
|
50
|
+
shrink?: number;
|
|
51
|
+
/** Minimum width */
|
|
52
|
+
minWidth?: string;
|
|
53
|
+
/** Maximum width */
|
|
54
|
+
maxWidth?: string;
|
|
55
|
+
};
|
|
56
|
+
/** Custom styling */
|
|
57
|
+
style?: Record<string, string>;
|
|
58
|
+
/** Custom CSS classes */
|
|
59
|
+
className?: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Composition condition for dynamic widget selection
|
|
63
|
+
*/
|
|
64
|
+
export interface CompositionCondition {
|
|
65
|
+
/** Condition to evaluate */
|
|
66
|
+
condition: string | ((value: unknown, formData: unknown) => boolean);
|
|
67
|
+
/** Composition to use when condition is true */
|
|
68
|
+
then: WidgetComposition;
|
|
69
|
+
/** Composition to use when condition is false */
|
|
70
|
+
else?: WidgetComposition;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Widget composition renderer
|
|
74
|
+
*/
|
|
75
|
+
export declare class WidgetComposer {
|
|
76
|
+
private widgetFactories;
|
|
77
|
+
/**
|
|
78
|
+
* Register a widget factory for composition
|
|
79
|
+
*/
|
|
80
|
+
registerWidget(name: string, factory: WidgetFactory): void;
|
|
81
|
+
/**
|
|
82
|
+
* Unregister a widget factory
|
|
83
|
+
*/
|
|
84
|
+
unregisterWidget(name: string): void;
|
|
85
|
+
/**
|
|
86
|
+
* Render a composed widget
|
|
87
|
+
*/
|
|
88
|
+
renderComposition(composition: WidgetComposition, controller: Controller<unknown>, ctx: SchemaContext): Renderable;
|
|
89
|
+
/**
|
|
90
|
+
* Evaluate composition conditions
|
|
91
|
+
*/
|
|
92
|
+
private evaluateConditions;
|
|
93
|
+
/**
|
|
94
|
+
* Evaluate widget visibility condition
|
|
95
|
+
*/
|
|
96
|
+
private evaluateWidgetCondition;
|
|
97
|
+
/**
|
|
98
|
+
* Evaluate a condition
|
|
99
|
+
*/
|
|
100
|
+
private evaluateCondition;
|
|
101
|
+
/**
|
|
102
|
+
* Render an individual widget
|
|
103
|
+
*/
|
|
104
|
+
private renderWidget;
|
|
105
|
+
/**
|
|
106
|
+
* Wrap widget with layout constraints and styling
|
|
107
|
+
*/
|
|
108
|
+
private wrapWidget;
|
|
109
|
+
/**
|
|
110
|
+
* Apply layout to rendered widgets
|
|
111
|
+
*/
|
|
112
|
+
private applyLayout;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Global widget composer instance
|
|
116
|
+
*/
|
|
117
|
+
export declare const globalWidgetComposer: WidgetComposer;
|
|
118
|
+
/**
|
|
119
|
+
* Extract widget composition from schema x:ui
|
|
120
|
+
*/
|
|
121
|
+
export declare function getWidgetComposition(schema: JSONSchemaDefinition): WidgetComposition | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* Helper to create a simple horizontal composition
|
|
124
|
+
*/
|
|
125
|
+
export declare function createHorizontalComposition(widgets: Array<{
|
|
126
|
+
type: string;
|
|
127
|
+
config?: Record<string, unknown>;
|
|
128
|
+
label?: string;
|
|
129
|
+
}>, options?: {
|
|
130
|
+
gap?: string;
|
|
131
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
132
|
+
}): WidgetComposition;
|
|
133
|
+
/**
|
|
134
|
+
* Helper to create a simple grid composition
|
|
135
|
+
*/
|
|
136
|
+
export declare function createGridComposition(widgets: Array<{
|
|
137
|
+
type: string;
|
|
138
|
+
config?: Record<string, unknown>;
|
|
139
|
+
label?: string;
|
|
140
|
+
colSpan?: number;
|
|
141
|
+
rowSpan?: number;
|
|
142
|
+
}>, columns: number, options?: {
|
|
143
|
+
gap?: string;
|
|
144
|
+
}): WidgetComposition;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { Renderable } from '@tempots/dom';
|
|
2
|
+
import type { Controller } from '../../form';
|
|
3
|
+
import type { SchemaContext, JSONSchema } from '../schema-context';
|
|
4
|
+
import { type ResolvedWidget } from './utils';
|
|
5
|
+
/**
|
|
6
|
+
* Widget factory function signature
|
|
7
|
+
*/
|
|
8
|
+
export type WidgetFactory<T = unknown> = (props: {
|
|
9
|
+
controller: Controller<T>;
|
|
10
|
+
ctx: SchemaContext;
|
|
11
|
+
options?: Record<string, unknown>;
|
|
12
|
+
}) => Renderable;
|
|
13
|
+
/**
|
|
14
|
+
* Widget registration entry
|
|
15
|
+
*/
|
|
16
|
+
export interface WidgetRegistration<T = unknown> {
|
|
17
|
+
/** Widget factory function */
|
|
18
|
+
factory: WidgetFactory<T>;
|
|
19
|
+
/** Widget display name */
|
|
20
|
+
displayName: string;
|
|
21
|
+
/** Widget description */
|
|
22
|
+
description?: string;
|
|
23
|
+
/** Supported JSON Schema types */
|
|
24
|
+
supportedTypes?: string[];
|
|
25
|
+
/** Default configuration */
|
|
26
|
+
defaultConfig?: Record<string, unknown>;
|
|
27
|
+
/** Configuration schema for the widget */
|
|
28
|
+
configSchema?: JSONSchema;
|
|
29
|
+
/** Widget priority (higher = preferred when multiple widgets match) */
|
|
30
|
+
priority?: number;
|
|
31
|
+
/** Whether this widget can be used as a fallback */
|
|
32
|
+
canFallback?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Widget customization configuration from x:ui
|
|
36
|
+
*/
|
|
37
|
+
export interface WidgetCustomization {
|
|
38
|
+
/** Custom widget type override */
|
|
39
|
+
widget?: string;
|
|
40
|
+
/** Widget-specific configuration */
|
|
41
|
+
config?: Record<string, unknown>;
|
|
42
|
+
/** Custom CSS classes */
|
|
43
|
+
className?: string;
|
|
44
|
+
/** Custom styles */
|
|
45
|
+
style?: Record<string, string>;
|
|
46
|
+
/** Custom attributes */
|
|
47
|
+
attributes?: Record<string, string>;
|
|
48
|
+
/** Widget wrapper configuration */
|
|
49
|
+
wrapper?: {
|
|
50
|
+
tag?: string;
|
|
51
|
+
className?: string;
|
|
52
|
+
style?: Record<string, string>;
|
|
53
|
+
attributes?: Record<string, string>;
|
|
54
|
+
};
|
|
55
|
+
/** Conditional widget selection */
|
|
56
|
+
conditional?: {
|
|
57
|
+
condition: string | ((value: unknown, formData: unknown) => boolean);
|
|
58
|
+
then?: WidgetCustomization;
|
|
59
|
+
else?: WidgetCustomization;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Widget registry for managing custom widgets
|
|
64
|
+
*/
|
|
65
|
+
export declare class WidgetRegistry {
|
|
66
|
+
private widgets;
|
|
67
|
+
private typeMapping;
|
|
68
|
+
/**
|
|
69
|
+
* Register a custom widget
|
|
70
|
+
*/
|
|
71
|
+
register<T = unknown>(name: string, registration: WidgetRegistration<T>): void;
|
|
72
|
+
/**
|
|
73
|
+
* Unregister a widget
|
|
74
|
+
*/
|
|
75
|
+
unregister(name: string): void;
|
|
76
|
+
/**
|
|
77
|
+
* Get a registered widget
|
|
78
|
+
*/
|
|
79
|
+
get(name: string): WidgetRegistration<unknown> | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Get all registered widgets
|
|
82
|
+
*/
|
|
83
|
+
getAll(): Map<string, WidgetRegistration<unknown>>;
|
|
84
|
+
/**
|
|
85
|
+
* Get widgets that support a specific JSON Schema type
|
|
86
|
+
*/
|
|
87
|
+
getForType(type: string): WidgetRegistration<unknown>[];
|
|
88
|
+
/**
|
|
89
|
+
* Find the best widget for a schema context
|
|
90
|
+
*/
|
|
91
|
+
findBestWidget(ctx: SchemaContext): {
|
|
92
|
+
name: string;
|
|
93
|
+
registration: WidgetRegistration<unknown>;
|
|
94
|
+
resolved: ResolvedWidget;
|
|
95
|
+
} | null;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Global widget registry instance
|
|
99
|
+
*/
|
|
100
|
+
export declare const globalWidgetRegistry: WidgetRegistry;
|
|
101
|
+
/**
|
|
102
|
+
* Extract widget customization from schema x:ui
|
|
103
|
+
*/
|
|
104
|
+
export declare function getWidgetCustomization(schema: JSONSchema): WidgetCustomization | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Apply widget customization to a rendered widget
|
|
107
|
+
*/
|
|
108
|
+
export declare function applyWidgetCustomization(widget: Renderable, customization: WidgetCustomization, value?: unknown, formData?: unknown): Renderable;
|
|
109
|
+
/**
|
|
110
|
+
* Create a customized widget factory
|
|
111
|
+
*/
|
|
112
|
+
export declare function createCustomizedWidget<T = unknown>(baseFactory: WidgetFactory<T>, customization: WidgetCustomization): WidgetFactory<T>;
|
|
113
|
+
/**
|
|
114
|
+
* Register built-in enhanced widgets
|
|
115
|
+
*/
|
|
116
|
+
export declare function registerEnhancedWidgets(registry?: WidgetRegistry): void;
|
|
117
|
+
/**
|
|
118
|
+
* Helper to register a simple widget
|
|
119
|
+
*/
|
|
120
|
+
export declare function registerWidget<T = unknown>(name: string, factory: WidgetFactory<T>, options?: Partial<WidgetRegistration<T>>, registry?: WidgetRegistry): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TNode, Value } from '@tempots/dom';
|
|
2
|
+
export type AnchorMode = 'container-edge' | 'body-end' | 'body-bottom' | 'body-end-bottom';
|
|
3
|
+
export type NineSliceScrollViewOptions = {
|
|
4
|
+
body: TNode;
|
|
5
|
+
contentWidth: Value<bigint>;
|
|
6
|
+
contentHeight: Value<bigint>;
|
|
7
|
+
header?: TNode;
|
|
8
|
+
headerHeight?: Value<number>;
|
|
9
|
+
topStart?: TNode;
|
|
10
|
+
topEnd?: TNode;
|
|
11
|
+
footer?: TNode;
|
|
12
|
+
footerHeight?: Value<number>;
|
|
13
|
+
bottomStart?: TNode;
|
|
14
|
+
bottomEnd?: TNode;
|
|
15
|
+
sidebarStart?: TNode;
|
|
16
|
+
sidebarStartWidth?: Value<number>;
|
|
17
|
+
sidebarEnd?: TNode;
|
|
18
|
+
sidebarEndWidth?: Value<number>;
|
|
19
|
+
anchorMode?: Value<AnchorMode>;
|
|
20
|
+
};
|
|
21
|
+
export declare function NineSliceScrollView({ body, contentWidth, contentHeight, header, headerHeight, topStart, topEnd, footer, footerHeight, bottomStart, bottomEnd, sidebarStart, sidebarStartWidth, sidebarEnd, sidebarEndWidth, anchorMode, }: NineSliceScrollViewOptions): import("@tempots/dom").Renderable;
|
|
@@ -5,4 +5,4 @@ export type ScrollablePanelOptions = {
|
|
|
5
5
|
body: TNode;
|
|
6
6
|
shadowOnScroll?: Value<boolean>;
|
|
7
7
|
};
|
|
8
|
-
export declare function ScrollablePanel({ header, footer, body, shadowOnScroll
|
|
8
|
+
export declare function ScrollablePanel({ header, footer, body, shadowOnScroll }: ScrollablePanelOptions, ...children: TNode[]): import("@tempots/dom").Renderable;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TNode, Value } from '@tempots/dom';
|
|
2
|
+
import type { InputOptions } from '../form/input/input-options';
|
|
3
|
+
import { Merge } from '@tempots/std';
|
|
4
|
+
export type ListenerManager = {
|
|
5
|
+
markdownUpdated: (fn: (ctx: unknown, markdown: string, prevMarkdown: string) => unknown) => unknown;
|
|
6
|
+
focus: (fn: () => unknown) => unknown;
|
|
7
|
+
blur: (fn: () => unknown) => unknown;
|
|
8
|
+
};
|
|
9
|
+
export type MilkdownInputOptions = Merge<InputOptions<string>, {
|
|
10
|
+
readOnly?: Value<boolean>;
|
|
11
|
+
featureConfigs?: Record<string, unknown> | undefined;
|
|
12
|
+
features?: Record<string, boolean> | undefined;
|
|
13
|
+
cssInjection?: 'link' | 'none';
|
|
14
|
+
}>;
|
|
15
|
+
export declare const MilkdownInput: (options: MilkdownInputOptions) => TNode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Renderable, Value } from '@tempots/dom';
|
|
2
|
+
export type LinkPortalOptions = {
|
|
3
|
+
id?: Value<string>;
|
|
4
|
+
href: Value<string>;
|
|
5
|
+
rel?: Value<string>;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Injects a <link rel="stylesheet"> tag with the provided href into <head> via Portal.
|
|
9
|
+
* Keeps styling SSR/SSG-friendly while leveraging browser caching of CSS assets.
|
|
10
|
+
*/
|
|
11
|
+
export declare const LinkPortal: ({ id, href, rel }: LinkPortalOptions) => Renderable;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TNode, Value, Renderable } from '@tempots/dom';
|
|
2
|
+
export type NoticeVariant = 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
export type NoticeTone = 'subtle' | 'prominent';
|
|
4
|
+
export type NoticeRole = 'status' | 'alert';
|
|
5
|
+
export type NoticeOptions = {
|
|
6
|
+
variant?: Value<NoticeVariant>;
|
|
7
|
+
tone?: Value<NoticeTone>;
|
|
8
|
+
role?: Value<NoticeRole | undefined>;
|
|
9
|
+
title?: Value<string | undefined>;
|
|
10
|
+
icon?: Value<string | false | undefined>;
|
|
11
|
+
closable?: Value<boolean>;
|
|
12
|
+
onDismiss?: () => void;
|
|
13
|
+
class?: Value<string>;
|
|
14
|
+
};
|
|
15
|
+
export declare function Notice({ variant, tone, role, title, icon, closable, onDismiss, class: cls, }: NoticeOptions, ...children: TNode[]): Renderable;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Renderable, Value } from '@tempots/dom';
|
|
2
|
+
export type StylePortalOptions = {
|
|
3
|
+
id?: Value<string>;
|
|
4
|
+
css: Value<string>;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Injects a <style> tag with the provided CSS into <head> via Portal.
|
|
8
|
+
* Ensures declarative, SSR/SSG-friendly styling without imperative DOM APIs.
|
|
9
|
+
*/
|
|
10
|
+
export declare const StylePortal: ({ id, css }: StylePortalOptions) => Renderable;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Renderable } from '@tempots/dom';
|
|
2
|
+
import type { InputOptions } from '../form/input/input-options';
|
|
3
|
+
import { Merge } from '@tempots/std';
|
|
4
|
+
import { MonacoEditorSpecificOptions } from '@/monaco/types';
|
|
5
|
+
export type MonacoEditorInputOptions = Merge<InputOptions<string>, MonacoEditorSpecificOptions & {
|
|
6
|
+
cssInjection?: 'link' | 'none';
|
|
7
|
+
}>;
|
|
8
|
+
/**
|
|
9
|
+
* MonacoEditorInput mounts a Monaco editor in an InputContainer and wires its value to BeatUI inputs.
|
|
10
|
+
* Note: This component dynamically imports 'monaco-editor' at runtime and does not include it in the main bundle.
|
|
11
|
+
*/
|
|
12
|
+
export declare const MonacoEditorInput: (options: MonacoEditorInputOptions) => Renderable;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TNode, Value } from '@tempots/dom';
|
|
1
|
+
import { Renderable, TNode, Value } from '@tempots/dom';
|
|
2
2
|
import { Placement } from '@tempots/ui';
|
|
3
3
|
export type FlyoutTrigger = 'hover' | 'focus' | 'hover-focus' | 'click' | 'never';
|
|
4
4
|
export type FlyoutTriggerFunction = (show: () => void, hide: () => void) => TNode;
|
|
@@ -41,4 +41,4 @@ export interface FlyoutOptions {
|
|
|
41
41
|
*
|
|
42
42
|
* Uses @tempo-ts/ui PopOver for positioning.
|
|
43
43
|
*/
|
|
44
|
-
export declare function Flyout(options: FlyoutOptions):
|
|
44
|
+
export declare function Flyout(options: FlyoutOptions): Renderable;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TNode, Value } from '@tempots/dom';
|
|
1
|
+
import { TNode, Value, Renderable } from '@tempots/dom';
|
|
2
2
|
import { Placement } from '@tempots/ui';
|
|
3
|
-
import { FlyoutTrigger } from './flyout';
|
|
3
|
+
import { FlyoutTrigger, FlyoutTriggerFunction } from './flyout';
|
|
4
4
|
export type MenuTrigger = FlyoutTrigger;
|
|
5
5
|
export interface MenuOptions {
|
|
6
6
|
/** The menu items to display */
|
|
@@ -15,8 +15,8 @@ export interface MenuOptions {
|
|
|
15
15
|
mainAxisOffset?: Value<number>;
|
|
16
16
|
/** Offset in pixels from the cross axis */
|
|
17
17
|
crossAxisOffset?: Value<number>;
|
|
18
|
-
/** How to show the menu */
|
|
19
|
-
showOn?: Value<MenuTrigger
|
|
18
|
+
/** How to show the menu (accepts Flyout trigger or a custom trigger function) */
|
|
19
|
+
showOn?: Value<MenuTrigger> | FlyoutTriggerFunction;
|
|
20
20
|
/** Whether the menu can be closed with Escape key */
|
|
21
21
|
closable?: Value<boolean>;
|
|
22
22
|
/** Callback when menu is closed */
|
|
@@ -72,7 +72,7 @@ export interface MenuSeparatorOptions {
|
|
|
72
72
|
* )
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
|
75
|
-
export declare function Menu(options: MenuOptions):
|
|
75
|
+
export declare function Menu(options: MenuOptions): Renderable;
|
|
76
76
|
/**
|
|
77
77
|
* MenuItem component for individual menu items.
|
|
78
78
|
*
|
|
@@ -86,7 +86,7 @@ export declare function Menu(options: MenuOptions): TNode;
|
|
|
86
86
|
* })
|
|
87
87
|
* ```
|
|
88
88
|
*/
|
|
89
|
-
export declare function MenuItem(options: MenuItemOptions):
|
|
89
|
+
export declare function MenuItem(options: MenuItemOptions): Renderable;
|
|
90
90
|
/**
|
|
91
91
|
* MenuSeparator component for visual grouping of menu items.
|
|
92
92
|
* Creates a visual divider between groups of menu items.
|
|
@@ -103,4 +103,4 @@ export declare function MenuItem(options: MenuItemOptions): TNode;
|
|
|
103
103
|
* })
|
|
104
104
|
* ```
|
|
105
105
|
*/
|
|
106
|
-
export declare function MenuSeparator(options?: MenuSeparatorOptions):
|
|
106
|
+
export declare function MenuSeparator(options?: MenuSeparatorOptions): Renderable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toolbar';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TNode, Value } from '@tempots/dom';
|
|
2
|
+
import { ButtonOptions } from '@/components/button/button';
|
|
3
|
+
export interface ToolbarOptions {
|
|
4
|
+
ariaLabel?: Value<string>;
|
|
5
|
+
}
|
|
6
|
+
export declare function Toolbar(...children: TNode[]): import("@tempots/dom").Renderable;
|
|
7
|
+
export interface ToolbarButtonOptions extends ButtonOptions {
|
|
8
|
+
iconOnly?: Value<boolean>;
|
|
9
|
+
ariaLabel?: Value<string>;
|
|
10
|
+
}
|
|
11
|
+
export declare function ToolbarButton(options: ButtonOptions, ...children: TNode[]): import("@tempots/dom").Renderable;
|
|
12
|
+
export interface ToolbarGroupOptions {
|
|
13
|
+
ariaLabel?: Value<string>;
|
|
14
|
+
}
|
|
15
|
+
export declare function ToolbarGroup(...children: TNode[]): import("@tempots/dom").Renderable;
|
|
16
|
+
export declare function ToolbarDivider(): import("@tempots/dom").Renderable;
|
|
17
|
+
export declare function ToolbarSpacer(): import("@tempots/dom").Renderable;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TNode, Value } from '@tempots/dom';
|
|
1
|
+
import { TNode, Renderable, Value } from '@tempots/dom';
|
|
2
2
|
import { OverlayEffect } from '../theme/types';
|
|
3
3
|
export interface DrawerOptions {
|
|
4
4
|
/** Size of the drawer */
|
|
@@ -26,4 +26,4 @@ export interface DrawerOptions {
|
|
|
26
26
|
* Drawer component that provides a slide-out panel anchored to any side
|
|
27
27
|
* Built on top of the overlay component
|
|
28
28
|
*/
|
|
29
|
-
export declare function Drawer(fn: (open: (options: DrawerOptions) => void, close: () => void) => TNode):
|
|
29
|
+
export declare function Drawer(fn: (open: (options: DrawerOptions) => void, close: () => void) => TNode): Renderable;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TNode, Value } from '@tempots/dom';
|
|
1
|
+
import { TNode, Value, Renderable } from '@tempots/dom';
|
|
2
2
|
import { OverlayEffect } from '../theme';
|
|
3
3
|
export interface ModalOptions {
|
|
4
4
|
/** Size of the modal */
|
|
@@ -28,7 +28,7 @@ export interface ModalContentOptions {
|
|
|
28
28
|
* Modal component that provides a structured dialog with optional header, body, and footer
|
|
29
29
|
* Built on top of the overlay component
|
|
30
30
|
*/
|
|
31
|
-
export declare function Modal(options: ModalOptions, fn: (open: (content: ModalContentOptions) => void, close: () => void) => TNode):
|
|
31
|
+
export declare function Modal(options: ModalOptions, fn: (open: (content: ModalContentOptions) => void, close: () => void) => TNode): Renderable;
|
|
32
32
|
/**
|
|
33
33
|
* Convenience function to create a confirmation modal
|
|
34
34
|
*/
|
|
@@ -37,4 +37,4 @@ export declare function ConfirmModal(options: ModalOptions & {
|
|
|
37
37
|
cancelText?: Value<string>;
|
|
38
38
|
onConfirm?: () => void;
|
|
39
39
|
onCancel?: () => void;
|
|
40
|
-
}, fn: (open: (message: TNode) => void, close: () => void) => TNode):
|
|
40
|
+
}, fn: (open: (message: TNode) => void, close: () => void) => TNode): Renderable;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TNode, Value } from '@tempots/dom';
|
|
1
|
+
import { TNode, Value, Renderable } from '@tempots/dom';
|
|
2
2
|
import { Placement } from '@tempots/ui';
|
|
3
3
|
import { FlyoutTrigger } from '../navigation/flyout';
|
|
4
4
|
export type TooltipTrigger = FlyoutTrigger;
|
|
@@ -34,4 +34,4 @@ export interface TooltipOptions {
|
|
|
34
34
|
* )
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
export declare function Tooltip(options: TooltipOptions):
|
|
37
|
+
export declare function Tooltip(options: TooltipOptions): Renderable;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import { Signal
|
|
2
|
-
/**
|
|
3
|
-
* Utility type that wraps each element of a tuple in a Value<T>.
|
|
4
|
-
* Used to convert function parameters to reactive values.
|
|
5
|
-
*/
|
|
6
|
-
type WrapInValue<T extends unknown[]> = {
|
|
7
|
-
[K in keyof T]: Value<T[K]>;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Transforms a messages object into a computed version where each message function
|
|
11
|
-
* returns a reactive Signal instead of a direct value.
|
|
12
|
-
*/
|
|
13
|
-
export type ReactiveMessages<M extends object> = {
|
|
14
|
-
[K in keyof M]: M[K] extends (...args: infer Args) => infer R ? (...args: WrapInValue<Args>) => Signal<R> : never;
|
|
15
|
-
};
|
|
1
|
+
import { Signal } from '@tempots/dom';
|
|
16
2
|
/**
|
|
17
3
|
* Creates a reactive translation system that dynamically loads locale-specific messages.
|
|
18
4
|
*
|
|
@@ -77,6 +63,5 @@ export declare function makeMessages<M extends object>({ locale, defaultLocale,
|
|
|
77
63
|
/** Clean up all resources and event listeners */
|
|
78
64
|
dispose: () => void;
|
|
79
65
|
/** Translation functions that return reactive signals */
|
|
80
|
-
t:
|
|
66
|
+
t: import("@tempots/dom").Prop<M>;
|
|
81
67
|
};
|
|
82
|
-
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { Use } from '@tempots/dom';
|
|
2
2
|
export * from './beatui-i18n';
|
|
3
|
-
export * from './components/auth';
|
|
4
3
|
export * from './components/beatui';
|
|
5
4
|
export * from './components/button';
|
|
6
5
|
export * from './components/content';
|
|
@@ -16,3 +15,4 @@ export * from './components/typography';
|
|
|
16
15
|
export * from './i18n';
|
|
17
16
|
export * from './tokens';
|
|
18
17
|
export * from './utils';
|
|
18
|
+
export * from './temporal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/json-schema';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Options as MicromarkOptions } from 'micromark';
|
|
2
|
+
export type MarkdownFeatures = {
|
|
3
|
+
gfm?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare function resolveExtensions(features?: MarkdownFeatures): Promise<{
|
|
6
|
+
extensions: MicromarkOptions['extensions'];
|
|
7
|
+
htmlExtensions: MicromarkOptions['htmlExtensions'];
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TNode, Value, Renderable } from '@tempots/dom';
|
|
2
|
+
export type MarkdownOptions = {
|
|
3
|
+
content: Value<string>;
|
|
4
|
+
/** Escape HTML by default for safety. Set true to allow raw HTML passthrough. */
|
|
5
|
+
allowHtml?: Value<boolean>;
|
|
6
|
+
features?: Value<{
|
|
7
|
+
gfm?: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
cssInjection?: 'link' | 'none';
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Markdown component: renders Markdown to HTML using micromark.
|
|
13
|
+
* - Escapes HTML by default (allowHtml: false)
|
|
14
|
+
* - Applies bu-prose utilities for typography and a small component CSS (bc-markdown)
|
|
15
|
+
* - Ships as separate subpath bundle (@tempots/beatui/markdown)
|
|
16
|
+
*/
|
|
17
|
+
export declare function Markdown(options: MarkdownOptions, ...children: TNode[]): Renderable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/milkdown/milkdown-input';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as MonacoTypes from 'monaco-editor';
|
|
2
|
+
export declare function loadMonacoCore(): Promise<typeof MonacoTypes>;
|
|
3
|
+
export declare function loadLanguageFeatures(language: string): Promise<void>;
|
|
4
|
+
export declare function loadMonacoWithLanguage(language: string): Promise<typeof MonacoTypes>;
|
|
5
|
+
export declare function configureMonacoEnvironment(getWorkerFn?: (workerId: string, label: string) => Worker): void;
|