@blocklet/pages-kit-inner-components 0.0.5 → 0.0.7
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/lib/cjs/components.js +1 -0
- package/lib/cjs/home.js +1 -1
- package/lib/cjs/resources.js +1 -0
- package/lib/cjs/site-state.js +1 -0
- package/lib/components-DITf866E.js +29 -0
- package/lib/components-DsmhMXRy.mjs +412 -0
- package/lib/draft-data-B1uf57Cy.mjs +13 -0
- package/lib/draft-data-Wp7NHQJ8.js +1 -0
- package/lib/es/components.js +21 -0
- package/lib/es/home.js +16 -5
- package/lib/es/resources.js +168 -0
- package/lib/es/site-state.js +37 -0
- package/lib/home-DZ1HSzX6.js +542 -0
- package/lib/home-NljemGBa.mjs +2619 -0
- package/lib/publish-button-CP42jrDJ.mjs +279 -0
- package/lib/publish-button-h0M1NWWo.js +1 -0
- package/lib/site-state-BmPKdiAM.mjs +929 -0
- package/lib/site-state-CD1Wvsfh.js +1 -0
- package/package.json +29 -5
- package/lib/1c-Bs9pXvvI.mjs +0 -26
- package/lib/1c-C39IK7lV.js +0 -1
- package/lib/abap-Ba92TArv.mjs +0 -26
- package/lib/abap-meVbDg_K.js +0 -1
- package/lib/abnf-9CXH_9NO.mjs +0 -26
- package/lib/abnf-CZ5-fBu_.js +0 -1
- package/lib/abnf-Cie9mGO4.js +0 -1
- package/lib/abnf-ebH08uQE.mjs +0 -26
- package/lib/accesslog-CRVszHbi.js +0 -1
- package/lib/accesslog-D0yn0qDc.mjs +0 -26
- package/lib/actionscript-BRmSLhcE.mjs +0 -26
- package/lib/actionscript-BSAfSH07.js +0 -1
- package/lib/actionscript-DmJeSkCk.mjs +0 -26
- package/lib/actionscript-L90VhD1G.js +0 -1
- package/lib/ada-C12GMUAj.mjs +0 -26
- package/lib/ada-DP-sZr15.mjs +0 -26
- package/lib/ada-TbEoKQHL.js +0 -1
- package/lib/ada-yJlEvFJd.js +0 -1
- package/lib/agda-B5lbheHp.mjs +0 -26
- package/lib/agda-rSPN3tsL.js +0 -1
- package/lib/al-BV3ibhax.mjs +0 -26
- package/lib/al-CtTvImhT.js +0 -1
- package/lib/angelscript-DmFLyY7K.js +0 -1
- package/lib/angelscript-k3qSTPi_.mjs +0 -26
- package/lib/antlr4-C89LD0Lo.mjs +0 -26
- package/lib/antlr4-pXjw-oIs.js +0 -1
- package/lib/apache-ClqAHFon.mjs +0 -26
- package/lib/apache-DS9j812_.js +0 -1
- package/lib/apacheconf-CxvguooO.js +0 -1
- package/lib/apacheconf-U1BQbWjH.mjs +0 -26
- package/lib/apex-DK4-jype.mjs +0 -26
- package/lib/apex-Dwly54ZS.js +0 -1
- package/lib/apl-Dn4cOcAY.mjs +0 -26
- package/lib/apl-bH6M0Now.js +0 -1
- package/lib/applescript-4NWDAyzZ.js +0 -1
- package/lib/applescript-CC13CGTo.mjs +0 -26
- package/lib/applescript-DkoiS--8.js +0 -1
- package/lib/applescript-sAg4zYmv.mjs +0 -26
- package/lib/aql--ynQgpUu.js +0 -1
- package/lib/aql-DgJF94J_.mjs +0 -26
- package/lib/arcade-C4uSKiPb.js +0 -1
- package/lib/arcade-DYNNMvqW.mjs +0 -26
- package/lib/arduino-DYBh1Zn3.js +0 -1
- package/lib/arduino-K-4vCa0x.js +0 -1
- package/lib/arduino-LM9O4hm4.mjs +0 -26
- package/lib/arduino-ZXElR7OR.mjs +0 -26
- package/lib/arff-D3IT6xRu.mjs +0 -26
- package/lib/arff-DQu9ekO2.js +0 -1
- package/lib/armasm-DLvihnVv.mjs +0 -26
- package/lib/armasm-DR5wplET.js +0 -1
- package/lib/asciidoc-Bg_ToT2o.mjs +0 -26
- package/lib/asciidoc-DZM7HD0O.js +0 -1
- package/lib/asciidoc-Y8srVjkA.mjs +0 -26
- package/lib/asciidoc-dDjUIP6a.js +0 -1
- package/lib/asm6502-ChLUYUY1.mjs +0 -26
- package/lib/asm6502-pTwldDCz.js +0 -1
- package/lib/asmatmel-BUkRs-5z.mjs +0 -26
- package/lib/asmatmel-CDDQelBm.js +0 -1
- package/lib/aspectj-D0gwjRy3.mjs +0 -26
- package/lib/aspectj-DkVlqtQv.js +0 -1
- package/lib/aspnet-CYkTdF-L.js +0 -1
- package/lib/aspnet-DQemjfUR.mjs +0 -26
- package/lib/asyncToGenerator-B1xMCLi4.mjs +0 -51
- package/lib/asyncToGenerator-DOfjjSSg.js +0 -1
- package/lib/autohotkey-B1Gx9Y_0.js +0 -1
- package/lib/autohotkey-BEnbmNox.js +0 -1
- package/lib/autohotkey-C-6LpQP8.mjs +0 -26
- package/lib/autohotkey-CrYPXS9P.mjs +0 -26
- package/lib/autoit-Cls0rOl-.mjs +0 -26
- package/lib/autoit-D8dPaI-b.mjs +0 -26
- package/lib/autoit-DAoF4J2y.js +0 -1
- package/lib/autoit-DeQOcOOG.js +0 -1
- package/lib/avisynth-C6QfM6Tk.js +0 -1
- package/lib/avisynth-DL4ZUkmf.mjs +0 -26
- package/lib/avrasm-CQYwe3-Q.mjs +0 -26
- package/lib/avrasm-SEkuyTUC.js +0 -1
- package/lib/avro-idl-DTFkx5lq.mjs +0 -26
- package/lib/avro-idl-jIkA8gxg.js +0 -1
- package/lib/awk-DVcG7fkA.mjs +0 -26
- package/lib/awk-WMzR38Rd.js +0 -1
- package/lib/axapta-BX8U86kX.mjs +0 -26
- package/lib/axapta-hxFpO4gQ.js +0 -1
- package/lib/bash-0zKWcpMx.js +0 -1
- package/lib/bash-ChZPstDF.js +0 -1
- package/lib/bash-CsjMVMVH.mjs +0 -26
- package/lib/bash-h_LXmWzu.mjs +0 -26
- package/lib/basic-CteIQH65.mjs +0 -26
- package/lib/basic-D-CS6xi3.js +0 -1
- package/lib/basic-DKOT4hw4.mjs +0 -26
- package/lib/basic-Ja--p66X.js +0 -1
- package/lib/batch-BAQJ8kx_.js +0 -1
- package/lib/batch-Dg-KkQmM.mjs +0 -26
- package/lib/bbcode-Cd-Y2Amv.mjs +0 -26
- package/lib/bbcode-DfGQvdFE.js +0 -1
- package/lib/bicep-DCfKsTen.mjs +0 -26
- package/lib/bicep-DWX167W_.js +0 -1
- package/lib/birb-B0O6driY.mjs +0 -26
- package/lib/birb-CJhV8uk8.js +0 -1
- package/lib/bison-CjQuZgk1.js +0 -1
- package/lib/bison-D9y5AqaQ.mjs +0 -26
- package/lib/bnf-50JQ6JwT.js +0 -1
- package/lib/bnf-BZb6-KI9.mjs +0 -26
- package/lib/bnf-Bes4qUzh.js +0 -1
- package/lib/bnf-DXy3pudF.mjs +0 -26
- package/lib/brainfuck-9PJYV9Dg.mjs +0 -26
- package/lib/brainfuck-BICPM104.js +0 -1
- package/lib/brainfuck-CliSnE-5.mjs +0 -26
- package/lib/brainfuck-D4K4hgjn.js +0 -1
- package/lib/brightscript-B05nf70p.mjs +0 -26
- package/lib/brightscript-CjI3SuDZ.js +0 -1
- package/lib/bro-BG3UZFnT.js +0 -1
- package/lib/bro-Dv2u745k.mjs +0 -26
- package/lib/browser-Bv6x6YnK.mjs +0 -553
- package/lib/browser-CRdXG8hu.js +0 -1
- package/lib/bsl-B7-WA38z.js +0 -1
- package/lib/bsl-BWRlQdwv.mjs +0 -26
- package/lib/builtin-module-transformer-CJMHA4BM.js +0 -1
- package/lib/builtin-module-transformer-DpvYloS0.mjs +0 -40
- package/lib/c-CBLPNxBQ.js +0 -1
- package/lib/c-DN6yKO0c.mjs +0 -26
- package/lib/c-DlfOiZSe.js +0 -1
- package/lib/c-like-BHy0btUR.js +0 -1
- package/lib/c-like-VfAFtRjH.mjs +0 -26
- package/lib/c-xoqGmEPc.mjs +0 -26
- package/lib/cal-ADQRhx49.mjs +0 -26
- package/lib/cal-T9CYlajn.js +0 -1
- package/lib/capnproto-B46DHn4y.mjs +0 -26
- package/lib/capnproto-Dr_RFcZe.js +0 -1
- package/lib/ceylon-7ylpAxav.js +0 -1
- package/lib/ceylon-B6YmOAGz.mjs +0 -26
- package/lib/cfscript-C5v7eh0M.js +0 -1
- package/lib/cfscript-CcFCUv6w.mjs +0 -26
- package/lib/chaiscript-B-ewWZP2.mjs +0 -26
- package/lib/chaiscript-C9-e3kpZ.js +0 -1
- package/lib/cil-Dfnx9Pvm.js +0 -1
- package/lib/cil-Dhw91PAV.mjs +0 -26
- package/lib/clean-C23bQd9E.mjs +0 -26
- package/lib/clean-I9sbEk5e.js +0 -1
- package/lib/clojure-ChA-Up3k.js +0 -1
- package/lib/clojure-DZMoscQp.mjs +0 -26
- package/lib/clojure-DqowBfQq.mjs +0 -26
- package/lib/clojure-repl-Bm3ibPib.mjs +0 -26
- package/lib/clojure-repl-D6aZil-e.js +0 -1
- package/lib/clojure-xkhj0EM2.js +0 -1
- package/lib/cmake-99-iKoG9.mjs +0 -26
- package/lib/cmake-D0syz1CJ.js +0 -1
- package/lib/cmake-DlUPO9Dr.mjs +0 -26
- package/lib/cmake-J0RsJk_o.js +0 -1
- package/lib/cobol-CU3KSw3b.mjs +0 -26
- package/lib/cobol-DtXuqE_R.js +0 -1
- package/lib/coffeescript-BJO4b7f8.mjs +0 -26
- package/lib/coffeescript-BrOK0q7W.js +0 -1
- package/lib/coffeescript-Bts65mRk.js +0 -1
- package/lib/coffeescript-VW8ZhEWC.mjs +0 -26
- package/lib/concurnas-ClwSyolR.js +0 -1
- package/lib/concurnas-DXCQyzno.mjs +0 -26
- package/lib/coq-CWq8fIzY.mjs +0 -26
- package/lib/coq-Cn-_kIo4.js +0 -1
- package/lib/coq-DVTKOhry.mjs +0 -26
- package/lib/coq-V8TEawQV.js +0 -1
- package/lib/cos-BpX0kpWq.js +0 -1
- package/lib/cos-DQxt1TLe.mjs +0 -26
- package/lib/cpp-BC9MBkXF.mjs +0 -26
- package/lib/cpp-CDfEwTl-.js +0 -1
- package/lib/cpp-DKHY9sGI.js +0 -1
- package/lib/cpp-bg4Sfav2.mjs +0 -26
- package/lib/crmsh-B2b5UmFu.mjs +0 -26
- package/lib/crmsh-DTnnZL22.js +0 -1
- package/lib/crystal-BGtvPFtz.mjs +0 -26
- package/lib/crystal-BO7wkWff.js +0 -1
- package/lib/crystal-DJ6F-qAf.js +0 -1
- package/lib/crystal-wWX9HzyV.mjs +0 -26
- package/lib/csharp-B5hYn_zJ.mjs +0 -26
- package/lib/csharp-BABTSiEh.mjs +0 -26
- package/lib/csharp-BCr4SfiJ.js +0 -1
- package/lib/csharp-DrO2CQOu.js +0 -1
- package/lib/cshtml-CDjNeGk4.js +0 -1
- package/lib/cshtml-COp63J0p.mjs +0 -26
- package/lib/csp-BG0X5jRN.js +0 -1
- package/lib/csp-BsmXdbo6.js +0 -1
- package/lib/csp-BuS9ROPV.mjs +0 -26
- package/lib/csp-ClGCNLDF.mjs +0 -26
- package/lib/css-DURbr_X8.mjs +0 -26
- package/lib/css-extras-COwpajNO.mjs +0 -26
- package/lib/css-extras-DGtsifkB.js +0 -1
- package/lib/css-rogB1gcL.js +0 -1
- package/lib/csv-65TsaTM-.js +0 -1
- package/lib/csv-BxvpKySS.mjs +0 -26
- package/lib/cypher-BXztdB5Y.mjs +0 -26
- package/lib/cypher-BqWEKqyE.js +0 -1
- package/lib/d-DhrC9_Mi.mjs +0 -26
- package/lib/d-Ds9eS3dK.mjs +0 -26
- package/lib/d-RE2FJgWl.js +0 -1
- package/lib/d-SRHqhNMt.js +0 -1
- package/lib/dart-CbiPhbGv.js +0 -1
- package/lib/dart-DgtQO19W.mjs +0 -26
- package/lib/dart-Y1fXaG7B.js +0 -1
- package/lib/dart-mQZxLJfQ.mjs +0 -26
- package/lib/dataweave-C2WKGsZS.js +0 -1
- package/lib/dataweave-Ds5tF5ke.mjs +0 -26
- package/lib/dax-CuQhwvJY.mjs +0 -26
- package/lib/dax-CwrkNQXu.js +0 -1
- package/lib/delphi-DYKQFqDO.mjs +0 -26
- package/lib/delphi-D_jfyblv.js +0 -1
- package/lib/dhall-BZb9NxGm.js +0 -1
- package/lib/dhall-DkljQSeI.mjs +0 -26
- package/lib/diff-BzdhYyKW.js +0 -1
- package/lib/diff-CH1o54bg.mjs +0 -26
- package/lib/diff-DHRkW9gg.mjs +0 -26
- package/lib/diff-S2-DEUnf.js +0 -1
- package/lib/django-BoV-ymPw.js +0 -1
- package/lib/django-BrHpVMOx.js +0 -1
- package/lib/django-CHDh_GDZ.mjs +0 -26
- package/lib/django-C_kM_4Yh.mjs +0 -26
- package/lib/dns-BITFR_Ef.js +0 -1
- package/lib/dns-DcNRGqeN.mjs +0 -26
- package/lib/dns-zone-file-B292peKs.mjs +0 -26
- package/lib/dns-zone-file-CucuZnKS.js +0 -1
- package/lib/docker-6rht89kV.js +0 -1
- package/lib/docker-BgVCBJ3V.mjs +0 -26
- package/lib/dockerfile-BZQX0SqA.mjs +0 -26
- package/lib/dockerfile-CEsdALK1.js +0 -1
- package/lib/dos-CQJecdBJ.js +0 -1
- package/lib/dos-D9uMqEs4.mjs +0 -26
- package/lib/dot-5WsEhkp8.js +0 -1
- package/lib/dot-DATizvce.mjs +0 -26
- package/lib/draft-data-B8D9FB1Z.js +0 -1
- package/lib/draft-data-iNxOmZwm.mjs +0 -12
- package/lib/dsconfig-DYJJnc4N.mjs +0 -26
- package/lib/dsconfig-D_25Q29X.js +0 -1
- package/lib/dts-Bky6_5ko.mjs +0 -26
- package/lib/dts-DsfUQLEQ.js +0 -1
- package/lib/dust-ByX-C4ZR.js +0 -1
- package/lib/dust-DIbSXIe4.mjs +0 -26
- package/lib/ebnf-08htO-ak.mjs +0 -26
- package/lib/ebnf-CWPwQc6C.mjs +0 -26
- package/lib/ebnf-Dzo_MlD3.js +0 -1
- package/lib/ebnf-UtWxJSPg.js +0 -1
- package/lib/editorconfig-C7YhOQoU.mjs +0 -26
- package/lib/editorconfig-DQmtuBnN.js +0 -1
- package/lib/eiffel-BZv_k9Lg.js +0 -1
- package/lib/eiffel-Cf5WLPTN.mjs +0 -26
- package/lib/ejs-C10fjyFW.js +0 -1
- package/lib/ejs-Dj3dao07.mjs +0 -26
- package/lib/elixir-B1KHv2uL.mjs +0 -26
- package/lib/elixir-BTKomYOG.js +0 -1
- package/lib/elixir-CQOrbrB2.mjs +0 -26
- package/lib/elixir-DUye61PZ.js +0 -1
- package/lib/elm-BJqZ394m.js +0 -1
- package/lib/elm-BqLgCSde.mjs +0 -26
- package/lib/elm-CfSoQWm2.mjs +0 -26
- package/lib/elm-XbROMzhE.js +0 -1
- package/lib/erb-BCJn8gfv.mjs +0 -26
- package/lib/erb-Bpite9N7.js +0 -1
- package/lib/erb-DYrzjCeP.mjs +0 -26
- package/lib/erb-pCk_OKJV.js +0 -1
- package/lib/erlang-BFKCsx_R.js +0 -1
- package/lib/erlang-BsDWULm9.js +0 -1
- package/lib/erlang-CYC7qs6s.mjs +0 -26
- package/lib/erlang-b6N_yGRe.mjs +0 -26
- package/lib/erlang-repl-CMFFqfRN.js +0 -1
- package/lib/erlang-repl-D469YiS4.mjs +0 -26
- package/lib/etlua-Cn_pmnqD.js +0 -1
- package/lib/etlua-ptlzgx1a.mjs +0 -26
- package/lib/excel-CmDqrc_r.mjs +0 -26
- package/lib/excel-D5R4_DLm.js +0 -1
- package/lib/excel-formula-DanyZ6i_.js +0 -1
- package/lib/excel-formula-DkI3pX9B.mjs +0 -26
- package/lib/factor-BwQ2oFub.js +0 -1
- package/lib/factor-CdtfGXPq.mjs +0 -26
- package/lib/false-CXYeUihT.mjs +0 -26
- package/lib/false-F_ijYE5M.js +0 -1
- package/lib/firestore-security-rules-C-NHuJ3t.js +0 -1
- package/lib/firestore-security-rules-DebcyLAN.mjs +0 -26
- package/lib/fix-BZzqm0nT.js +0 -1
- package/lib/fix-CGz5qFvq.mjs +0 -26
- package/lib/flix-BInaIsIK.js +0 -1
- package/lib/flix-Bq-4Hpu2.mjs +0 -26
- package/lib/flow-CN6z7YCa.mjs +0 -26
- package/lib/flow-D7P3KwDj.js +0 -1
- package/lib/fortran-CKgxei6_.mjs +0 -26
- package/lib/fortran-D4PdB5LD.mjs +0 -26
- package/lib/fortran-DOuKdANA.js +0 -1
- package/lib/fortran-Dey0z_Dn.js +0 -1
- package/lib/fsharp-BZgRkPLC.mjs +0 -26
- package/lib/fsharp-C3h408bt.mjs +0 -26
- package/lib/fsharp-D1bk2xW-.js +0 -1
- package/lib/fsharp-_E40_w2e.js +0 -1
- package/lib/ftl-B2gRadXt.js +0 -1
- package/lib/ftl-CzdvtBya.mjs +0 -26
- package/lib/gams-BAOyolAe.mjs +0 -26
- package/lib/gams-BpsNXnCo.js +0 -1
- package/lib/gap-3z-Dfo8v.js +0 -1
- package/lib/gap-C9PWqF6T.mjs +0 -26
- package/lib/gauss-BMGgOlOq.mjs +0 -26
- package/lib/gauss-CfiOBxmd.js +0 -1
- package/lib/gcode-3X3LcuaL.js +0 -1
- package/lib/gcode-C2FdODd-.mjs +0 -26
- package/lib/gcode-C5NA32Je.js +0 -1
- package/lib/gcode-DGCHn6XS.mjs +0 -26
- package/lib/gdscript-BOIEBizA.mjs +0 -26
- package/lib/gdscript-CucLV4ik.js +0 -1
- package/lib/gedcom-BJQ8iGWW.mjs +0 -26
- package/lib/gedcom-D7wPGrhR.js +0 -1
- package/lib/gherkin-C46Hu2oB.js +0 -1
- package/lib/gherkin-C4WIME1b.mjs +0 -26
- package/lib/gherkin-Cg1x0J7y.js +0 -1
- package/lib/gherkin-bdFLCOlj.mjs +0 -26
- package/lib/git-D70zYbR_.mjs +0 -26
- package/lib/git-DglKVnPE.js +0 -1
- package/lib/glsl-B6Tb_bju.mjs +0 -26
- package/lib/glsl-BnHMUXtT.js +0 -1
- package/lib/glsl-DsFIvk3h.mjs +0 -26
- package/lib/glsl-t03mv5N0.js +0 -1
- package/lib/gml-Cpv9qgGf.js +0 -1
- package/lib/gml-hViQ7n5w.mjs +0 -26
- package/lib/gml-ixrPBFOG.mjs +0 -26
- package/lib/gml-lv1PUt1R.js +0 -1
- package/lib/gn-CqQn5ATh.js +0 -1
- package/lib/gn-ycy34S6b.mjs +0 -26
- package/lib/go-BKWJ9edD.mjs +0 -26
- package/lib/go-CEkC0DnB.js +0 -1
- package/lib/go-QT937xHF.mjs +0 -26
- package/lib/go-Z8uEphXR.js +0 -1
- package/lib/go-module-DZeUiFeT.js +0 -1
- package/lib/go-module-KAygsYL_.mjs +0 -26
- package/lib/golo-C2Sv9op4.mjs +0 -26
- package/lib/golo-jxVAbsiY.js +0 -1
- package/lib/gradle-Cd2H6iPT.mjs +0 -26
- package/lib/gradle-aBtL6PIq.js +0 -1
- package/lib/graphql-C1kRxUoy.js +0 -1
- package/lib/graphql-CQ0kmm2f.mjs +0 -26
- package/lib/groovy-B6gEHa4K.js +0 -1
- package/lib/groovy-CFogyYVL.js +0 -1
- package/lib/groovy-CO7OG8ZH.mjs +0 -26
- package/lib/groovy-TID1njnY.mjs +0 -26
- package/lib/haml-C6oGWZon.mjs +0 -26
- package/lib/haml-CZ-0tkqy.mjs +0 -26
- package/lib/haml-D8uRTe_A.js +0 -1
- package/lib/haml-DjIRW6FB.js +0 -1
- package/lib/handlebars-CRNdQOeq.mjs +0 -26
- package/lib/handlebars-CutsZgzY.js +0 -1
- package/lib/handlebars-DSFTyiUk.mjs +0 -26
- package/lib/handlebars-DZ60RQc0.js +0 -1
- package/lib/haskell-BWA_AxfR.js +0 -1
- package/lib/haskell-BY75ll7B.mjs +0 -26
- package/lib/haskell-Bv2HtVZQ.mjs +0 -26
- package/lib/haskell-Vr61Om00.js +0 -1
- package/lib/haxe-C4-iw8OY.mjs +0 -26
- package/lib/haxe-C5pGRQn4.mjs +0 -26
- package/lib/haxe-CSCBCHRT.js +0 -1
- package/lib/haxe-DMO9bXkH.js +0 -1
- package/lib/hcl-DRB954KQ.mjs +0 -26
- package/lib/hcl-DuQ8KNiP.js +0 -1
- package/lib/hlsl-C4Dot-zU.js +0 -1
- package/lib/hlsl-D2ZaWUEE.mjs +0 -26
- package/lib/home-35JGwnWv.js +0 -2359
- package/lib/home-Ce0qUaCA.mjs +0 -116249
- package/lib/hoon-B28nIxbP.mjs +0 -26
- package/lib/hoon-BVbuhgh2.js +0 -1
- package/lib/hpkp-t7Zy9qwc.js +0 -1
- package/lib/hpkp-vp9I7TRB.mjs +0 -26
- package/lib/hsp-D6c8smzB.js +0 -1
- package/lib/hsp-sdws4HK0.mjs +0 -26
- package/lib/hsts-CuqKWSd_.js +0 -1
- package/lib/hsts-ydRYc-HE.mjs +0 -26
- package/lib/html2canvas-BEMEPQmJ.js +0 -1
- package/lib/html2canvas-IncdIgo-.mjs +0 -26
- package/lib/html2pdf-BcE98tEU.mjs +0 -16727
- package/lib/html2pdf-CN4xbMTK.js +0 -277
- package/lib/htmlbars-86Gy7vjR.mjs +0 -26
- package/lib/htmlbars-aDZKy5nn.js +0 -1
- package/lib/http-B31MnJWt.mjs +0 -26
- package/lib/http-BRvkzzIn.mjs +0 -26
- package/lib/http-D6RM7ADE.js +0 -1
- package/lib/http-DXmCnjBN.js +0 -1
- package/lib/hy-BN_Z2hXn.mjs +0 -26
- package/lib/hy-DUlBpm93.js +0 -1
- package/lib/ichigojam-CfHLTWaw.js +0 -1
- package/lib/ichigojam-DsrUUerW.mjs +0 -26
- package/lib/icon-DqkQRA3r.mjs +0 -26
- package/lib/icon-vO0Mws0d.js +0 -1
- package/lib/icu-message-format-9cQCFK8T.js +0 -1
- package/lib/icu-message-format-CYCz12LN.mjs +0 -26
- package/lib/idris-D_WnwVn6.js +0 -1
- package/lib/idris-DqwLQsen.mjs +0 -26
- package/lib/iecst-B60WKg9P.mjs +0 -26
- package/lib/iecst-DK-BZ3H0.js +0 -1
- package/lib/ignore-YorCZ14Y.mjs +0 -26
- package/lib/ignore-aE-hOyc-.js +0 -1
- package/lib/index-0TMai0HB.mjs +0 -51028
- package/lib/index-B5Z6bR9H.js +0 -1
- package/lib/index-CQY4FFWP.mjs +0 -43346
- package/lib/index-CWZa9iIv.js +0 -28
- package/lib/index-CrIr5Whs.js +0 -191
- package/lib/index-DJGLmQ_j.mjs +0 -59069
- package/lib/index-DZoMh6TA.mjs +0 -5
- package/lib/index-Du6mqpWU.js +0 -1593
- package/lib/index.es-CRxjFf_l.mjs +0 -5574
- package/lib/index.es-woLn6b85.js +0 -18
- package/lib/inform7-BSomUtPa.js +0 -1
- package/lib/inform7-DOB5EZh3.js +0 -1
- package/lib/inform7-DtYFBtMq.mjs +0 -26
- package/lib/inform7-lgOJvjQe.mjs +0 -26
- package/lib/ini-8TDj0WJd.js +0 -1
- package/lib/ini-BZjBz5QU.js +0 -1
- package/lib/ini-CZjchXvO.mjs +0 -26
- package/lib/ini-CldPGVH6.mjs +0 -26
- package/lib/io-BfUh8K6D.mjs +0 -26
- package/lib/io-CCrMPu-q.js +0 -1
- package/lib/irpf90-Bv54UtJb.js +0 -1
- package/lib/irpf90-BvppU5TH.mjs +0 -26
- package/lib/isbl-DZHASXb9.js +0 -1
- package/lib/isbl-GhMQD5Kk.mjs +0 -26
- package/lib/j-BPuK5xyV.js +0 -1
- package/lib/j-CZj1C8tn.mjs +0 -26
- package/lib/java-BwORVhp9.mjs +0 -26
- package/lib/java-CEfFTDG4.js +0 -1
- package/lib/java-CEoYIcDO.js +0 -1
- package/lib/java-DSCwhihm.mjs +0 -26
- package/lib/javadoc-B5IjlgEV.mjs +0 -26
- package/lib/javadoc-BuFKD_ra.js +0 -1
- package/lib/javadoclike-Cfi30Wrq.mjs +0 -26
- package/lib/javadoclike-DfTcrcZY.js +0 -1
- package/lib/javascript-D4r5St04.js +0 -1
- package/lib/javascript-G6DIOSX3.mjs +0 -26
- package/lib/javastacktrace-D_9ii-5U.js +0 -1
- package/lib/javastacktrace-lb9DbSxe.mjs +0 -26
- package/lib/jboss-cli-BjLNBaZR.mjs +0 -26
- package/lib/jboss-cli-DLpTtt7N.js +0 -1
- package/lib/jexl-B0SjdULu.mjs +0 -26
- package/lib/jexl-DGC8a3jh.js +0 -1
- package/lib/jolie-CwpNXvf_.mjs +0 -26
- package/lib/jolie-Dl_VIENE.js +0 -1
- package/lib/jq-DRBvQLSc.js +0 -1
- package/lib/jq-qMbbDTC0.mjs +0 -26
- package/lib/js-extras-BSk1XCe1.js +0 -1
- package/lib/js-extras-D1H9VXcE.mjs +0 -26
- package/lib/js-templates-BG1b7HkD.js +0 -1
- package/lib/js-templates-BXhZrkMV.mjs +0 -26
- package/lib/jsdoc-CQP7eOm6.js +0 -1
- package/lib/jsdoc-t_shg59Z.mjs +0 -26
- package/lib/json-Ba8c2Ow1.mjs +0 -26
- package/lib/json-BwRv4fwh.js +0 -1
- package/lib/json-C_QaSbj6.js +0 -1
- package/lib/json-DAB75AZZ.mjs +0 -26
- package/lib/json5-CUEIMzQA.mjs +0 -26
- package/lib/json5-MMDYFC7C.js +0 -1
- package/lib/jsonp-B-UOTIy1.js +0 -1
- package/lib/jsonp-Dy-vUreF.mjs +0 -26
- package/lib/jsstacktrace-B5XQs-p2.js +0 -1
- package/lib/jsstacktrace-zUHCmfbJ.mjs +0 -26
- package/lib/jsx-Cj0FtPh2.mjs +0 -26
- package/lib/jsx-DoCmgN57.js +0 -1
- package/lib/julia-BT9W0JoP.js +0 -1
- package/lib/julia-CQW4tSrQ.mjs +0 -26
- package/lib/julia-CcA-8z8R.mjs +0 -26
- package/lib/julia-DfhsgmtN.js +0 -1
- package/lib/julia-repl-BB3UsU_i.mjs +0 -26
- package/lib/julia-repl-Ney0C0f0.js +0 -1
- package/lib/keepalived-CB73zemW.js +0 -1
- package/lib/keepalived-DIzPwuIR.mjs +0 -26
- package/lib/keyman-BdW8jl4T.mjs +0 -26
- package/lib/keyman-DwbR7oAC.js +0 -1
- package/lib/kotlin-9yxwOd-g.js +0 -1
- package/lib/kotlin-CH60SHIz.mjs +0 -26
- package/lib/kotlin-CgTkqPen.mjs +0 -26
- package/lib/kotlin-DBW6avAp.js +0 -1
- package/lib/kumir-CCM2Tb3z.js +0 -1
- package/lib/kumir-CGbF7bh7.mjs +0 -26
- package/lib/kusto-BY0QFeqR.mjs +0 -26
- package/lib/kusto-D10CZTBU.js +0 -1
- package/lib/lasso-0gSad0G_.js +0 -1
- package/lib/lasso-9ColaOMy.mjs +0 -26
- package/lib/latex-B5pD0Oon.mjs +0 -26
- package/lib/latex-BJNN7J4g.js +0 -1
- package/lib/latex-DrfaFHM_.mjs +0 -26
- package/lib/latex-J4q9wQ5P.js +0 -1
- package/lib/latte-BGrqTQF4.mjs +0 -26
- package/lib/latte-COE1A8Y4.js +0 -1
- package/lib/ldif-BUE5FUg1.js +0 -1
- package/lib/ldif-D-KaLjQd.mjs +0 -26
- package/lib/leaf-D8okCosv.js +0 -1
- package/lib/leaf-I95NPzwa.mjs +0 -26
- package/lib/less-D45iEJQZ.js +0 -1
- package/lib/less-DLA8QL4H.mjs +0 -26
- package/lib/less-Dx-M57rT.mjs +0 -26
- package/lib/less-HRjxxhOM.js +0 -1
- package/lib/lilypond-Cc2kMiGI.js +0 -1
- package/lib/lilypond-edAZbW2n.mjs +0 -26
- package/lib/liquid-bWgiEhUC.mjs +0 -26
- package/lib/liquid-wqse59wC.js +0 -1
- package/lib/lisp-BR2tFfXH.js +0 -1
- package/lib/lisp-CGySsZSs.js +0 -1
- package/lib/lisp-DoNWNygI.mjs +0 -26
- package/lib/lisp-DsaJHoOI.mjs +0 -26
- package/lib/livecodeserver-C_Tvlmoy.mjs +0 -26
- package/lib/livecodeserver-ax1j6UGv.js +0 -1
- package/lib/livescript-C4PJY2-k.js +0 -1
- package/lib/livescript-GreA3qlW.js +0 -1
- package/lib/livescript-J93_iZvK.mjs +0 -26
- package/lib/livescript-nA2vQbbP.mjs +0 -26
- package/lib/llvm-B873HMLZ.js +0 -1
- package/lib/llvm-CHv--dy5.js +0 -1
- package/lib/llvm-CWshjBVJ.mjs +0 -26
- package/lib/llvm-Xwjbe6Ax.mjs +0 -26
- package/lib/log-BBXSNYlg.js +0 -1
- package/lib/log-CRnq7wQn.mjs +0 -26
- package/lib/lolcode-DLGRNlEO.mjs +0 -26
- package/lib/lolcode-DiZWeHQI.js +0 -1
- package/lib/lottie-player.esm-D1JfckUJ.js +0 -267
- package/lib/lottie-player.esm-D_ORj6Ei.mjs +0 -6469
- package/lib/lottie-react.esm-CMOZdxvs.mjs +0 -6118
- package/lib/lottie-react.esm-Dx0bWN2J.js +0 -269
- package/lib/lsl-CNQnsmQV.js +0 -1
- package/lib/lsl-D6vOBDFW.mjs +0 -26
- package/lib/lua-BDbolQaE.mjs +0 -26
- package/lib/lua-BgvXT_jF.js +0 -1
- package/lib/lua-s_x2yHGi.js +0 -1
- package/lib/lua-zu816sKw.mjs +0 -26
- package/lib/magma-B0hSFZkV.mjs +0 -26
- package/lib/magma-CSIeYZom.js +0 -1
- package/lib/makefile-BrYF0Aw_.mjs +0 -26
- package/lib/makefile-Coe0wC_-.js +0 -1
- package/lib/makefile-CvvXx-KJ.js +0 -1
- package/lib/makefile-DVgM8i0a.mjs +0 -26
- package/lib/markdown-BHFUQpd4.mjs +0 -26
- package/lib/markdown-DX5d9S6v.js +0 -1
- package/lib/markdown-LgnHOitM.js +0 -1
- package/lib/markdown-vp4aAtfn.mjs +0 -26
- package/lib/markup-templating-BUfD2w5F.js +0 -1
- package/lib/markup-templating-CmZAQOFK.mjs +0 -26
- package/lib/mathematica-CAxDJC8s.js +0 -1
- package/lib/mathematica-DEM4ZZEl.mjs +0 -26
- package/lib/matlab-Bcsp-eDt.mjs +0 -26
- package/lib/matlab-BfPI4X3w.mjs +0 -26
- package/lib/matlab-C4hyRG_G.js +0 -1
- package/lib/matlab-D_TDLDtN.js +0 -1
- package/lib/maxima-BXqyH78k.js +0 -1
- package/lib/maxima-CnoKGn-z.mjs +0 -26
- package/lib/maxscript-CubLuVn0.js +0 -1
- package/lib/maxscript-DpDupQb6.mjs +0 -26
- package/lib/mel-BkTUarDe.mjs +0 -26
- package/lib/mel-CQCHSPhM.js +0 -1
- package/lib/mel-DTixjK10.mjs +0 -26
- package/lib/mel-DZmSKNoY.js +0 -1
- package/lib/mercury-Bo0PRQLK.mjs +0 -26
- package/lib/mercury-Ca9L56Vg.js +0 -1
- package/lib/mermaid-1cf75e0q.mjs +0 -26
- package/lib/mermaid-C7CJC1TF.js +0 -1
- package/lib/mipsasm-DVbHI2KW.js +0 -1
- package/lib/mipsasm-kLN5h3n4.mjs +0 -26
- package/lib/mizar-B55qscsS.mjs +0 -26
- package/lib/mizar-BHkamXa6.js +0 -1
- package/lib/mizar-BThta26A.mjs +0 -26
- package/lib/mizar-CsZVNK0I.js +0 -1
- package/lib/mojolicious-BPNl_967.mjs +0 -26
- package/lib/mojolicious-Di9iqg1V.js +0 -1
- package/lib/mongodb-CYZmYSDI.js +0 -1
- package/lib/mongodb-rLmSkD0f.mjs +0 -26
- package/lib/monkey-BEFjUSSV.js +0 -1
- package/lib/monkey-BWnmsR1P.mjs +0 -26
- package/lib/monkey-CObZgNPz.mjs +0 -26
- package/lib/monkey-Cadjej9A.js +0 -1
- package/lib/moonscript-BqOR_Iao.mjs +0 -26
- package/lib/moonscript-Dc16bFSf.js +0 -1
- package/lib/moonscript-KtYbUWfi.mjs +0 -26
- package/lib/moonscript-Nt9b0w3L.js +0 -1
- package/lib/n1ql-BzfrlDeG.mjs +0 -26
- package/lib/n1ql-C9Cb19R3.mjs +0 -26
- package/lib/n1ql-CEC2USPr.js +0 -1
- package/lib/n1ql-DLm1kvcH.js +0 -1
- package/lib/n4js-CUfyZcvp.js +0 -1
- package/lib/n4js-CZHaOvHV.mjs +0 -26
- package/lib/nand2tetris-hdl-BJmG3wvj.mjs +0 -26
- package/lib/nand2tetris-hdl-BUVK21gU.js +0 -1
- package/lib/naniscript-BONtFZ0L.mjs +0 -26
- package/lib/naniscript-CZanaL67.js +0 -1
- package/lib/nasm-6vxrf0XV.mjs +0 -26
- package/lib/nasm-BkTrft5w.js +0 -1
- package/lib/neon-BlREvLjz.mjs +0 -26
- package/lib/neon-DNP2fjlo.js +0 -1
- package/lib/nevod-CHpfJxcr.mjs +0 -26
- package/lib/nevod-_PaKj1Zt.js +0 -1
- package/lib/nginx-CG3Dy_26.js +0 -1
- package/lib/nginx-CNZCIXUC.mjs +0 -26
- package/lib/nginx-DYVxz03R.js +0 -1
- package/lib/nginx-Ds_e7h33.mjs +0 -26
- package/lib/nim-5TkB7SpO.mjs +0 -26
- package/lib/nim-Cd_uH1ee.js +0 -1
- package/lib/nim-DN4qtRXe.mjs +0 -26
- package/lib/nim-M2phzSsI.js +0 -1
- package/lib/nix-B197zRtH.js +0 -1
- package/lib/nix-BP2lhnb-.mjs +0 -26
- package/lib/nix-BrK7LmiH.mjs +0 -26
- package/lib/nix-qDHuEC0A.js +0 -1
- package/lib/node-repl-CBohEreB.mjs +0 -26
- package/lib/node-repl-DsbS859r.js +0 -1
- package/lib/nsis-B7_7vBKO.js +0 -1
- package/lib/nsis-BfVGmJpz.mjs +0 -26
- package/lib/nsis-C3k9_QGq.mjs +0 -26
- package/lib/nsis-DH3rioKg.js +0 -1
- package/lib/objectivec-BKNfFTja.mjs +0 -26
- package/lib/objectivec-BT8FynOE.mjs +0 -26
- package/lib/objectivec-C3MTpV1e.js +0 -1
- package/lib/objectivec-DYPBfIL9.js +0 -1
- package/lib/ocaml-Bvihet8I.js +0 -1
- package/lib/ocaml-D7Szdgc3.mjs +0 -26
- package/lib/ocaml-Dfga_k9k.mjs +0 -26
- package/lib/ocaml-z9MoDKVQ.js +0 -1
- package/lib/opencl-BkjP5-TK.js +0 -1
- package/lib/opencl-S3xKN38V.mjs +0 -26
- package/lib/openqasm-BhGBNFCp.mjs +0 -26
- package/lib/openqasm-JKLu7eH_.js +0 -1
- package/lib/openscad-BoqM3KdD.js +0 -1
- package/lib/openscad-Dok2rUGq.mjs +0 -26
- package/lib/oxygene-DSs9-5cN.js +0 -1
- package/lib/oxygene-Dpb1gAQK.mjs +0 -26
- package/lib/oz-Chl7wEZ0.js +0 -1
- package/lib/oz-DdaHM_zD.mjs +0 -26
- package/lib/parigp-Cd5Wrocj.mjs +0 -26
- package/lib/parigp-Lo8RqaXJ.js +0 -1
- package/lib/parser-Cl-m5mfp.mjs +0 -26
- package/lib/parser-D0kUugNm.js +0 -1
- package/lib/parser3-CCuSayEc.js +0 -1
- package/lib/parser3-DAo4e4gL.mjs +0 -26
- package/lib/pascal-C7eZ1o6P.mjs +0 -26
- package/lib/pascal-CQ3AzUWY.js +0 -1
- package/lib/pascaligo-C0GXLe6p.js +0 -1
- package/lib/pascaligo-DaMrzFOl.mjs +0 -26
- package/lib/pcaxis-DHvVVZeP.js +0 -1
- package/lib/pcaxis-Du678R93.mjs +0 -26
- package/lib/peoplecode-BDje6uAT.mjs +0 -26
- package/lib/peoplecode-w5-Zhknv.js +0 -1
- package/lib/perl-C62CwbRW.js +0 -1
- package/lib/perl-D7LrCQrT.js +0 -1
- package/lib/perl-Dbwf8eeE.mjs +0 -26
- package/lib/perl-YKGc_cof.mjs +0 -26
- package/lib/pf-CBnZop56.mjs +0 -26
- package/lib/pf-D8hSLSaG.js +0 -1
- package/lib/pgsql-CJBOFKGC.mjs +0 -26
- package/lib/pgsql-DAZEiZ30.js +0 -1
- package/lib/php-BHG9ODpg.js +0 -1
- package/lib/php-DCeTLzMi.mjs +0 -26
- package/lib/php-cHWhI_4C.mjs +0 -26
- package/lib/php-extras-DTReFtzx.js +0 -1
- package/lib/php-extras-m1NNL2dH.mjs +0 -26
- package/lib/php-template-DscFmqIu.js +0 -1
- package/lib/php-template-LGmIuh0B.mjs +0 -26
- package/lib/php-vrQPcXtN.js +0 -1
- package/lib/phpdoc-BbWcl1zh.js +0 -1
- package/lib/phpdoc-D5fR3_qP.mjs +0 -26
- package/lib/plaintext-D6D-wa9M.mjs +0 -26
- package/lib/plaintext-DYVbjGhh.js +0 -1
- package/lib/plsql-BmkrOsAu.js +0 -1
- package/lib/plsql-swJASf8a.mjs +0 -26
- package/lib/pony-CqsFdIct.js +0 -1
- package/lib/pony-DLh4EMLx.mjs +0 -26
- package/lib/powerquery-8uGICuxc.mjs +0 -26
- package/lib/powerquery-DDHz1krO.js +0 -1
- package/lib/powershell-BZL_Pwx0.mjs +0 -26
- package/lib/powershell-CMy-0IHc.js +0 -1
- package/lib/powershell-D-JJ5nf3.js +0 -1
- package/lib/powershell-DpQ3xzMv.mjs +0 -26
- package/lib/processing-BjKQFuKi.js +0 -1
- package/lib/processing-C9boSzT-.mjs +0 -26
- package/lib/processing-HBoNyvaF.mjs +0 -26
- package/lib/processing-RbHEx1mv.js +0 -1
- package/lib/profile-CPTHkKWp.mjs +0 -26
- package/lib/profile-Cp2RnUzm.js +0 -1
- package/lib/prolog-BMUYm5CT.mjs +0 -26
- package/lib/prolog-BnfyOuHB.js +0 -1
- package/lib/prolog-CiILs_a7.js +0 -1
- package/lib/prolog-yM7-z1F3.mjs +0 -26
- package/lib/promql-CAsbv_-v.js +0 -1
- package/lib/promql-YhhOhjBd.mjs +0 -26
- package/lib/properties-1AKYHKmt.js +0 -1
- package/lib/properties-BfNdbPmK.mjs +0 -26
- package/lib/properties-CkxgQTFN.mjs +0 -26
- package/lib/properties-CmsE431g.js +0 -1
- package/lib/protobuf-Bef82LCS.js +0 -1
- package/lib/protobuf-BrQpqtag.mjs +0 -26
- package/lib/protobuf-CTDxhlCz.mjs +0 -26
- package/lib/protobuf-D0n68si0.js +0 -1
- package/lib/psl-BlcqJ6Xs.mjs +0 -26
- package/lib/psl-FwP3I0on.js +0 -1
- package/lib/publish-button-Dwbla8I_.mjs +0 -295
- package/lib/publish-button-DzeyFIzw.js +0 -1
- package/lib/pug-BktOy1Dl.js +0 -1
- package/lib/pug-Df2hseox.mjs +0 -26
- package/lib/puppet-CO0vLTRa.mjs +0 -26
- package/lib/puppet-Cpx4ilDE.js +0 -1
- package/lib/puppet-O0IklSu7.mjs +0 -26
- package/lib/puppet-q_u1Jiir.js +0 -1
- package/lib/pure-BjmKKAsz.js +0 -1
- package/lib/pure-D3UBP3ej.mjs +0 -26
- package/lib/purebasic-B2fDygbd.js +0 -1
- package/lib/purebasic-BEZAEjLd.mjs +0 -26
- package/lib/purebasic-D0pZaR47.js +0 -1
- package/lib/purebasic-DuoNtJaU.mjs +0 -26
- package/lib/purescript-C6ORft2z.js +0 -1
- package/lib/purescript-CGjF5Pmi.mjs +0 -26
- package/lib/purify.es-CKk_t3XZ.mjs +0 -471
- package/lib/purify.es-CYVvLED6.js +0 -3
- package/lib/python-B04e6Ehl.mjs +0 -26
- package/lib/python-DFk19Jsk.js +0 -1
- package/lib/python-DXFqf5gR.js +0 -1
- package/lib/python-WZCHFA-n.mjs +0 -26
- package/lib/python-repl-Ca_ToS2U.mjs +0 -26
- package/lib/python-repl-Dk-V9Pwn.js +0 -1
- package/lib/q-Bmb1eQZu.js +0 -1
- package/lib/q-CKyNqN7f.mjs +0 -26
- package/lib/q-D6wiGndU.js +0 -1
- package/lib/q-n-agqn1G.mjs +0 -26
- package/lib/qml-B98M_EUp.mjs +0 -26
- package/lib/qml-Chwa5yco.js +0 -1
- package/lib/qml-CyjTVeyi.js +0 -1
- package/lib/qml-Dtf_nW-c.mjs +0 -26
- package/lib/qore-B38UDpjb.js +0 -1
- package/lib/qore-BkYxVXWc.mjs +0 -26
- package/lib/qsharp-B-gmGzoU.js +0 -1
- package/lib/qsharp-Ccw8aChn.mjs +0 -26
- package/lib/r-BQsXL5E1.js +0 -1
- package/lib/r-Ch_BMCC9.mjs +0 -26
- package/lib/r-Dv2kGJIM.mjs +0 -26
- package/lib/r-vn68hF33.js +0 -1
- package/lib/racket-D9D81bUc.mjs +0 -26
- package/lib/racket-Dgu3bouX.js +0 -1
- package/lib/reason-BhXzMgmn.js +0 -1
- package/lib/reason-Bno8Dp57.mjs +0 -26
- package/lib/reasonml-CJFACnVR.js +0 -1
- package/lib/reasonml-DptOkE_p.mjs +0 -26
- package/lib/regex-Bpatnora.js +0 -1
- package/lib/regex-TGs9j-Cy.mjs +0 -26
- package/lib/rego-BykE0Lu8.mjs +0 -26
- package/lib/rego-DB7Z_ghB.js +0 -1
- package/lib/renpy-Zglq6qIS.mjs +0 -26
- package/lib/renpy-cIxtUmn3.js +0 -1
- package/lib/rest-BgG-oVYq.js +0 -1
- package/lib/rest-wdnIpKG_.mjs +0 -26
- package/lib/rib-B05TFjVf.js +0 -1
- package/lib/rib-nslgU4Hr.mjs +0 -26
- package/lib/rip-D_zcrWf3.js +0 -1
- package/lib/rip-pNZxtvzL.mjs +0 -26
- package/lib/roboconf-BoBF67ij.mjs +0 -26
- package/lib/roboconf-CtM5_0hf.mjs +0 -26
- package/lib/roboconf-DJo_BbOC.js +0 -1
- package/lib/roboconf-DsAjwTds.js +0 -1
- package/lib/robotframework-DqwMwL67.mjs +0 -26
- package/lib/robotframework-X4wg0F_I.js +0 -1
- package/lib/routeros-ChyI8ktt.js +0 -1
- package/lib/routeros-OBSE73OD.mjs +0 -26
- package/lib/rsl-BOGufExx.mjs +0 -26
- package/lib/rsl-CoZYApee.js +0 -1
- package/lib/ruby-B25KkpLH.mjs +0 -26
- package/lib/ruby-CLZZTuBt.js +0 -1
- package/lib/ruby-CPjPfvNP.js +0 -1
- package/lib/ruby-Cxj9q9fC.mjs +0 -26
- package/lib/ruleslanguage-BpQxfzjl.mjs +0 -26
- package/lib/ruleslanguage-Cd_G9idi.js +0 -1
- package/lib/rust-8DFrS_Hk.mjs +0 -26
- package/lib/rust-C3n2fZ7r.js +0 -1
- package/lib/rust-CRXpBmwL.mjs +0 -26
- package/lib/rust-DmjOML_w.js +0 -1
- package/lib/sas-DZLC9C0n.mjs +0 -26
- package/lib/sas-Di3IbB4z.js +0 -1
- package/lib/sas-YE0fz8Ji.js +0 -1
- package/lib/sas-gjP57DT4.mjs +0 -26
- package/lib/sass-BIUOzC4-.js +0 -1
- package/lib/sass-CCU3f92Q.mjs +0 -26
- package/lib/scala-C6vFE8BH.js +0 -1
- package/lib/scala-C9YAm2iq.js +0 -1
- package/lib/scala-kWIGn0at.mjs +0 -26
- package/lib/scala-z0ixR55h.mjs +0 -26
- package/lib/scheme-B5Uh3kgt.js +0 -1
- package/lib/scheme-BZ87kGMi.js +0 -1
- package/lib/scheme-BxgmiYWD.mjs +0 -26
- package/lib/scheme-sP9YwSWE.mjs +0 -26
- package/lib/scilab-CkWQ1fmH.mjs +0 -26
- package/lib/scilab-IZBcoLf8.js +0 -1
- package/lib/scss-C9ZpzVu_.js +0 -1
- package/lib/scss-DRhFoKAW.mjs +0 -26
- package/lib/scss-emTkCK92.js +0 -1
- package/lib/scss-p54_BnZ7.mjs +0 -26
- package/lib/shell-BHY8CKok.js +0 -1
- package/lib/shell-Bm1aYzDs.mjs +0 -26
- package/lib/shell-session-Du1Ksgvz.js +0 -1
- package/lib/shell-session-ItcM2Wl5.mjs +0 -26
- package/lib/smali-9vHDeT6o.mjs +0 -26
- package/lib/smali-BLw6xZRE.js +0 -1
- package/lib/smali-BTl4qDCF.mjs +0 -26
- package/lib/smali-ftfmxLgs.js +0 -1
- package/lib/smalltalk-CAmcr0vz.js +0 -1
- package/lib/smalltalk-CH8Mcoy3.mjs +0 -26
- package/lib/smalltalk-VVnQAsQT.mjs +0 -26
- package/lib/smalltalk-W7cY9uCd.js +0 -1
- package/lib/smarty-CgSFDA2B.js +0 -1
- package/lib/smarty-v0QAEay5.mjs +0 -26
- package/lib/sml-BMAbQ5ax.mjs +0 -26
- package/lib/sml-BPnjyyT4.js +0 -1
- package/lib/sml-C3KNFolj.js +0 -1
- package/lib/sml-D-9fjWuw.mjs +0 -26
- package/lib/solidity-DE0ygAkz.mjs +0 -26
- package/lib/solidity-xk2_2Gg1.js +0 -1
- package/lib/solution-file-BJk0ibNX.js +0 -1
- package/lib/solution-file-BJy1_mLg.mjs +0 -26
- package/lib/soy-B2XhMGj8.js +0 -1
- package/lib/soy-DiG5S3G4.mjs +0 -26
- package/lib/sparql-C0t-SHXX.mjs +0 -26
- package/lib/sparql-DnmYsTIq.js +0 -1
- package/lib/splunk-spl-CrTJ_A9O.mjs +0 -26
- package/lib/splunk-spl-DkOwitKK.js +0 -1
- package/lib/sqf-BAMtFbRw.js +0 -1
- package/lib/sqf-BXPrp1vc.js +0 -1
- package/lib/sqf-BrtPYz6Q.mjs +0 -26
- package/lib/sqf-NtiBv9T3.mjs +0 -26
- package/lib/sql-CYYykJUO.js +0 -1
- package/lib/sql-ChWlf1nS.mjs +0 -26
- package/lib/sql-CicZ6Une.mjs +0 -26
- package/lib/sql-Ky_arPi3.js +0 -1
- package/lib/sql_more-B1NsMJke.mjs +0 -26
- package/lib/sql_more-CyDoERhD.js +0 -1
- package/lib/squirrel-DxafQKaS.mjs +0 -26
- package/lib/squirrel-y0mRzVCb.js +0 -1
- package/lib/stan-BH3QzkQd.mjs +0 -26
- package/lib/stan-BnJmVdd9.js +0 -1
- package/lib/stan-DOOBX5Ld.mjs +0 -26
- package/lib/stan-DtAb-idL.js +0 -1
- package/lib/stata-DMqsfhlU.js +0 -1
- package/lib/stata-FEE3kr9N.mjs +0 -26
- package/lib/step21-Ch5W1ExI.js +0 -1
- package/lib/step21-nfQEsKsF.mjs +0 -26
- package/lib/style.css +0 -9
- package/lib/stylus-BDbRyCnw.js +0 -1
- package/lib/stylus-CWnTdqMo.js +0 -1
- package/lib/stylus-CbNbPysx.mjs +0 -26
- package/lib/stylus-LuqTmJVc.mjs +0 -26
- package/lib/subunit-B9OLUHtE.mjs +0 -26
- package/lib/subunit-MpaITVZD.js +0 -1
- package/lib/swift-CAZHDTPz.mjs +0 -26
- package/lib/swift-CG3OqFaR.js +0 -1
- package/lib/swift-Czd41d2-.mjs +0 -26
- package/lib/swift-ShEKR0Eg.js +0 -1
- package/lib/systemd-CCtAbH9G.mjs +0 -26
- package/lib/systemd-DHtMxT0R.js +0 -1
- package/lib/t4-cs-D_bC1ijx.js +0 -1
- package/lib/t4-cs-hVR5W93N.mjs +0 -26
- package/lib/t4-templating-Ccnq5NZa.js +0 -1
- package/lib/t4-templating-Cg0Gstxu.mjs +0 -26
- package/lib/t4-vb-CW43ak29.js +0 -1
- package/lib/t4-vb-D3swuzkv.mjs +0 -26
- package/lib/taggerscript-CdK9JDzO.mjs +0 -26
- package/lib/taggerscript-SNZmpBXQ.js +0 -1
- package/lib/tap-Bk9IDomH.js +0 -1
- package/lib/tap-CCcrlNQs.mjs +0 -26
- package/lib/tap-CK9f8J53.mjs +0 -26
- package/lib/tap-DXSKQxfG.js +0 -1
- package/lib/tcl-B5mRBjm7.mjs +0 -26
- package/lib/tcl-BKHtr1EA.js +0 -1
- package/lib/tcl-BzhfONtH.mjs +0 -26
- package/lib/tcl-DZTuUIu0.js +0 -1
- package/lib/textile-CzQOdDDE.js +0 -1
- package/lib/textile-ZOsnrriw.mjs +0 -26
- package/lib/thrift-BY_pK7AT.js +0 -1
- package/lib/thrift-DnAtQQ57.mjs +0 -26
- package/lib/toml-9X-rdjTd.js +0 -1
- package/lib/toml-Bg7XcaIi.mjs +0 -26
- package/lib/tp-B1EfO8OA.mjs +0 -26
- package/lib/tp-Dg5GLvCF.js +0 -1
- package/lib/tremor-BmPQGfBT.js +0 -1
- package/lib/tremor-DzHptFty.mjs +0 -26
- package/lib/tsx-9RfdoBV7.mjs +0 -26
- package/lib/tsx-Czve3tv1.js +0 -1
- package/lib/tt2-CN8_kp8e.mjs +0 -26
- package/lib/tt2-JyIfmSNp.js +0 -1
- package/lib/turtle-BDIYYMS0.js +0 -1
- package/lib/turtle-Bwo2Pm1n.mjs +0 -26
- package/lib/twig-B1qn7zyH.mjs +0 -26
- package/lib/twig-BRFEqMJq.js +0 -1
- package/lib/twig-Bztp96ah.js +0 -1
- package/lib/twig-CRZnUP7P.mjs +0 -26
- package/lib/typeof-BVqtjQBM.mjs +0 -11
- package/lib/typeof-DFEP3Ok6.js +0 -1
- package/lib/typescript-B_ykCf6b.mjs +0 -155959
- package/lib/typescript-ByHMKqdV.mjs +0 -26
- package/lib/typescript-CLIlFmS0.mjs +0 -26
- package/lib/typescript-CUgkFkBd.js +0 -424
- package/lib/typescript-Ca3umUXS.js +0 -1
- package/lib/typescript-Dout0Pb9.js +0 -1
- package/lib/typoscript-BGkLHxvr.js +0 -1
- package/lib/typoscript-CinkfOuX.mjs +0 -26
- package/lib/unrealscript-C2CKJ6jP.mjs +0 -26
- package/lib/unrealscript-DFnpRXUe.js +0 -1
- package/lib/uorazor-CNtbyW7x.mjs +0 -26
- package/lib/uorazor-Co320XNn.js +0 -1
- package/lib/uri-COMsu0LS.mjs +0 -26
- package/lib/uri-JgxOrBuR.js +0 -1
- package/lib/useInternalContext-BeCds1Ns.mjs +0 -66
- package/lib/useInternalContext-GMjYSdgv.js +0 -1
- package/lib/v-CqqKp4wE.js +0 -1
- package/lib/v-D82TQJ-W.mjs +0 -26
- package/lib/vala-C6JtSCMV.js +0 -1
- package/lib/vala-DMhVXFhB.mjs +0 -26
- package/lib/vala-DdfnH04G.js +0 -1
- package/lib/vala-Ui2i0acn.mjs +0 -26
- package/lib/vbnet-BodGITBM.mjs +0 -26
- package/lib/vbnet-CKlRyfDD.mjs +0 -26
- package/lib/vbnet-DB8rHfeD.js +0 -1
- package/lib/vbnet-DKIEFyzj.js +0 -1
- package/lib/vbscript-Bh3I75aI.mjs +0 -26
- package/lib/vbscript-DZZV90_T.js +0 -1
- package/lib/vbscript-html-B3NgFcwR.js +0 -1
- package/lib/vbscript-html-Bi3Eamy3.mjs +0 -26
- package/lib/velocity--H4ZhvB7.mjs +0 -26
- package/lib/velocity-cbPENDSz.js +0 -1
- package/lib/verilog-77xj9v37.mjs +0 -26
- package/lib/verilog-CF-Jv-L4.js +0 -1
- package/lib/verilog-KenoeKX9.mjs +0 -26
- package/lib/verilog-n9N3-7BV.js +0 -1
- package/lib/vhdl-31jMUKz8.js +0 -1
- package/lib/vhdl-BSZMCiBa.mjs +0 -26
- package/lib/vhdl-DJZFgu8I.js +0 -1
- package/lib/vhdl-DpMSqpoH.mjs +0 -26
- package/lib/vim-CCA-GGRZ.js +0 -1
- package/lib/vim-DYlGVa4h.js +0 -1
- package/lib/vim-WKIBTnxv.mjs +0 -26
- package/lib/vim-WqkvOHcg.mjs +0 -26
- package/lib/visual-basic-CbE76yh3.js +0 -1
- package/lib/visual-basic-D3Eb90y3.mjs +0 -26
- package/lib/warpscript-COaHTt-z.js +0 -1
- package/lib/warpscript-CyHcyoen.mjs +0 -26
- package/lib/wasm-5MgZBWhE.mjs +0 -26
- package/lib/wasm-DRwbH7sx.js +0 -1
- package/lib/web-idl-Bi3S2K9t.mjs +0 -26
- package/lib/web-idl-CoiSRDqj.js +0 -1
- package/lib/wiki-CaVn6JYp.js +0 -1
- package/lib/wiki-ToWUYAH1.mjs +0 -26
- package/lib/wolfram-CV3dY-SH.js +0 -1
- package/lib/wolfram-CZcE8q0H.mjs +0 -26
- package/lib/wren-Doi5kF0x.js +0 -1
- package/lib/wren-HC8QT0vC.mjs +0 -26
- package/lib/x86asm-BdHHfgRj.js +0 -1
- package/lib/x86asm-YKNujAnA.mjs +0 -26
- package/lib/xeora-CclQtVKk.js +0 -1
- package/lib/xeora-Cvu-Dh-u.mjs +0 -26
- package/lib/xl-ChcZaa3E.mjs +0 -26
- package/lib/xl-DK71VwvT.js +0 -1
- package/lib/xml-BnZqyATd.js +0 -1
- package/lib/xml-DxgP7rNM.mjs +0 -26
- package/lib/xml-doc-BgLphla6.mjs +0 -26
- package/lib/xml-doc-CHIeO_7L.js +0 -1
- package/lib/xojo-5y24Tj60.mjs +0 -26
- package/lib/xojo-C7VTCna8.js +0 -1
- package/lib/xquery-CqwuFcsI.js +0 -1
- package/lib/xquery-DKLT1nlS.mjs +0 -26
- package/lib/xquery-QcMGKf5c.mjs +0 -26
- package/lib/xquery-WbM3tqZ3.js +0 -1
- package/lib/yaml-7FQ5wrh6.js +0 -1
- package/lib/yaml-CEiWxepj.mjs +0 -26
- package/lib/yaml-CExu9M3G.js +0 -1
- package/lib/yaml-CTkdaGne.mjs +0 -26
- package/lib/yang-BwOWknb8.mjs +0 -26
- package/lib/yang-CwTk7uGL.js +0 -1
- package/lib/zephir-4XCK9tOu.mjs +0 -26
- package/lib/zephir-DqjeeQo1.js +0 -1
- package/lib/zig-BYNZrPZ7.js +0 -1
- package/lib/zig-CVe56grp.mjs +0 -26
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@blocklet/pages-kit/builtin/utils");require("@blocklet/pages-kit/types");require("@blocklet/pages-kit/utils/property");require("@blocklet/quickjs");require("@blocklet/sdk/lib/config");require("lru-cache");require("node-fetch");require("ufo");const e=require("../components-DITf866E.js");exports.CUSTOM_COMPONENT_CACHE_DURATION_IN_SECONDS=e.CUSTOM_COMPONENT_CACHE_DURATION_IN_SECONDS;exports.GET_SERVER_SIDE_PROPS_TIMEOUT_IN_SECONDS=e.GET_SERVER_SIDE_PROPS_TIMEOUT_IN_SECONDS;exports.clearPreloadComponentsCache=e.clearPreloadComponentsCache;exports.clearPreloadComponentsCacheByMode=e.clearPreloadComponentsCacheByMode;exports.getComponentFromState=e.getComponentFromState;exports.getComponentFromStateByName=e.getComponentFromStateByName;exports.getExportSchemaValueFromCode=e.getExportSchemaValueFromCode;exports.getPreloadComponent=e.getPreloadComponent;exports.getPreloadComponents=e.getPreloadComponents;exports.getPreloadComponentsCacheKey=e.getPreloadComponentsCacheKey;
|
package/lib/cjs/home.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../home-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("react/jsx-runtime");const e=require("../home-DZ1HSzX6.js");require("@arcblock/ux/lib/Locale/context");require("@arcblock/ux/lib/Result");require("@blocklet/pages-kit/builtin/page/header");require("@blocklet/ui-react/lib/Header");require("@emotion/css");require("@emotion/react");require("@emotion/styled");require("@mui/material");require("isomorphic-dompurify");require("lodash/isEmpty");require("react");require("react-helmet");require("react-router-dom");require("react-use");require("ufo");exports.HomeView=e.HomeView;exports.PageRoutes=e.PageRoutes;exports.PageView=e.PageView;exports.TranslucentHeader=e.TranslucentHeader;exports.default=e.Home;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("../site-state-CD1Wvsfh.js"),b=require("../components-DITf866E.js"),U=require("async_hooks"),F=require("express"),J=require("fs"),X=require("joi"),O=require("lodash"),N=require("path"),W=require("@blocklet/sdk/lib/middlewares/auth"),G=require("@blocklet/sdk/lib/component"),E=t=>t&&t.__esModule?t:{default:t},p=E(J),I=E(X),k=E(N),v=E(W);new U.AsyncLocalStorage;const K=async(t,e,o)=>{var n,s,r,a;try{const{projectId:u}=t.params;if(!u)return o();const f=await c.Project.findByPk(u);if(!f)return e==null?void 0:e.status(404).json({error:"Project not found"});const P=(n=t.user)==null?void 0:n.did,h=((s=t.user)==null?void 0:s.role)||"UNKNOWN_ROLE";if(!P)return e==null?void 0:e.status(401).json({error:"Authentication required"});if(c.isMultiTenant()){const w=f.createdBy===P,i=(a=(r=c.getMultiTenantAllProjectAccessPassports())==null?void 0:r.includes)==null?void 0:a.call(r,h);if(!w&&!i)return e==null?void 0:e.status(403).json({error:"No permission to access this project in multi-tenant mode"})}else if(!["owner","admin","pagesEditor"].includes(h))return e==null?void 0:e.status(403).json({error:"No permission to access this project in single-tenant mode"});t.project=f,t.projectId=u,o()}catch(u){b.logger.error("Project middleware error:",u),e==null||e.status(500).json({error:"Internal server error"})}};function T(t,e){return new Promise((o,n)=>{const s=p.default.createReadStream(t),r=p.default.createWriteStream(e);s.on("error",n),r.on("error",n),r.on("finish",o),s.pipe(r)})}async function B(t,e){await p.default.promises.mkdir(e,{recursive:!0});const o=await p.default.promises.readdir(t,{withFileTypes:!0});for(const n of o){const s=k.default.join(t,n.name),r=k.default.join(e,n.name);n.isDirectory()?await B(s,r):await T(s,r)}}async function Y(t,e){(await p.default.promises.stat(t)).isDirectory()?await B(t,e):await T(t,e)}const D=(t,e,o)=>c.isMultiTenant()?v.default()(t,e,o):v.default({roles:["owner","admin","pagesEditor"]})(t,e,o),$=(t,e)=>{const o=G.getResourceExportDir({projectId:t,releaseId:e});return N.join(o,c.COMPONENT_DID,c.RESOURCE_TYPE)},S=F.Router(),q="@page",L="@component",y=":",_="ALL",M="@project",C=({pageId:t,projectId:e})=>[q,e,t].join(y),z=t=>{const[e,o,n]=t.split(y);if(e===q)return{pageId:n,projectId:o}},A=({componentId:t,projectId:e})=>[L,e,t].join(y),H=t=>{const[e,o,n]=t.split(y);if(e===L)return{componentId:n,projectId:o}},Q=t=>[M,t].join(y),V=t=>{const[e,o]=t.split(y);if(e===M)return o},Z=t=>{try{return JSON.parse(t)}catch{}return{}};async function x(t){const e=await c.SiteState.shared(t).getState("production"),o=await c.Project.findByPk(t),n=e.pageIds.map(r=>{const a=e.pages[r];if(a)return{id:C({pageId:r,projectId:t}),name:a.slug}}).filter(Boolean),s=O.sortBy(Object.values(e.components),r=>r.index).map(({data:r})=>({id:A({componentId:r.id,projectId:t}),name:r.name||r.id}));return{id:Q(t),name:(o==null?void 0:o.name)||"Unnamed Project",children:[{id:C({pageId:_,projectId:t}),name:"Pages",children:n},{id:A({componentId:_,projectId:t}),name:"Components",children:s}]}}S.get("/resources",D,async(t,e)=>{const{projectId:o}=Z(t.query.resourcesParams);if(o){t.params={...t.params,projectId:o},await K(t,e,()=>{});const r=await x(o);e.json({resources:[r]});return}const n=await c.Project.findAll({where:{}}),s=await Promise.all(n.map(r=>x(r.id)));e.json({resources:s})});const tt=I.default.object({projectId:I.default.string().required().min(1),releaseId:I.default.string().allow(""),resources:I.default.array().items(I.default.string()).required(),locale:I.default.string().allow("")});S.post("/resources",D,async(t,e)=>{const{resources:o,projectId:n,releaseId:s}=await tt.validateAsync(t.body),r="production",a=[],u=[];for(const i of o){if(V(i))continue;const{pageId:m,projectId:j}=z(i)||{};if(m)m===_||m&&j&&a.push({pageId:m,projectId:j});else{const{componentId:l,projectId:d}=H(i)||{};l===_||l&&d&&u.push({componentId:l,projectId:d})}}const f=O.groupBy(a,"projectId"),P=O.groupBy(u,"projectId"),h=new Set([...Object.keys(f),...Object.keys(P)]),w=$(n,s);p.default.rmSync(w,{recursive:!0,force:!0}),p.default.mkdirSync(w,{recursive:!0});for(const i of h){const m=await c.SiteState.shared(i).getState(r),j=f[i],l=P[i],d=j==null?void 0:j.map(g=>g.pageId),R=l==null?void 0:l.map(g=>g.componentId);if(d!=null&&d.length||R!=null&&R.length){const g=await c.toPackage(m,{exportAssets:!0,pageIds:d,componentIds:R});await Y(g,w),p.default.rmSync(g,{recursive:!0,force:!0})}b.logger.info(`Exported resources for project ${i}`,{pageIds:d,componentIds:R})}e.json({})});S.get("/all-resources",D,async(t,e)=>{const{states:o}=await c.getResourceStates(),n=o==null?void 0:o.map(s=>{const r={blockletId:s.blockletId,blockletTitle:s.blockletTitle,components:{}};if(s.state.components&&(r.components=s.state.components),Object.keys(r.components).length!==0)return r}).filter(Boolean);e.json(n)});module.exports=S;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("../components-DITf866E.js");const e=require("../site-state-CD1Wvsfh.js");require("@blocklet/quickjs");require("@blocklet/sdk/lib/component");require("@blocklet/sdk/lib/config");require("@reactivedata/reactive");require("@syncedstore/core");require("fs");require("glob");require("lib0/decoding");require("lib0/encoding");require("lodash");require("lru-cache");require("nanoid");require("p-limit");require("path");require("stream/promises");require("tar");require("ufo");require("wait-on");require("y-protocols/awareness");require("y-protocols/sync");require("yaml");require("yjs");exports.PUBLISH_MODES=e.PUBLISH_MODES;exports.SITE_STATE_PATH=e.SITE_STATE_PATH;exports.STATE_MODES=e.STATE_MODES;exports.default=e.SiteState;exports.fromPackage=e.fromPackage;exports.getResourceStates=e.getResourceStates;exports.initPackResourceStates=e.initPackResourceStates;exports.mergeState=e.mergeState;exports.nextId=e.nextId;exports.toPackage=e.toPackage;exports.triggerReloadAllProjectResource=e.triggerReloadAllProjectResource;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";const v=require("@blocklet/pages-kit/builtin/utils"),N=require("@blocklet/pages-kit/types"),O=require("@blocklet/pages-kit/utils/property"),h=require("@blocklet/quickjs"),q=require("@blocklet/sdk/lib/config"),F=require("lru-cache"),I=require("node-fetch"),C=require("ufo"),B=require("@blocklet/logger"),K=require("@blocklet/pages-kit/utils/builtin"),Q=require("@blocklet/pages-kit/utils/typescript/builtin-module-transformer"),J=require("autoprefixer"),V=require("esbuild"),A=require("postcss"),G=require("tailwindcss"),W=require("typescript"),S=e=>e&&e.__esModule?e:{default:e};function H(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const T=S(q),z=S(I),X=S(B),Y=S(J),Z=H(V),ee=S(A),te=S(G),m=S(W),f=X.default("pages-kit"),oe=async(e,{componentId:t})=>{const o=`@tailwind components;
|
|
2
|
+
@tailwind utilities;
|
|
3
|
+
`,n=`.CustomComponent_${t}`;return(await ee.default([te.default({content:[{raw:e,extension:"tsx"}]}),Y.default({overrideBrowserslist:["> 1%","last 2 versions"],stats:{}}),i=>{i.walkRules(r=>{r.selectors=r.selectors.map(s=>s.replace(/\.(.+)/g,`${n}.$1,${n} .$1`))})}]).process(o)).css},ne=async(e,{componentId:t})=>{const o=await oe(e,{componentId:t});return`export const __PagesKit_CSS__ = ${JSON.stringify(o)};
|
|
4
|
+
|
|
5
|
+
${e}
|
|
6
|
+
`},j=h.memoize(async(e,t)=>{let o=m.default.transpileModule(e,{compilerOptions:{jsx:m.default.JsxEmit.React,target:m.default.ScriptTarget.ES2016,module:m.default.ModuleKind.ESNext},transformers:{before:[Q.createBuiltinModuleTransformer(m.default)]}}).outputText;if(t.tailwind&&(o=await ne(o,{componentId:t.componentId})),t.module===N.PreloadComponentScriptModule.ESM)return o;const n=m.default.transpileModule(o,{compilerOptions:{jsx:m.default.JsxEmit.React,target:m.default.ScriptTarget.ES2016,module:m.default.ModuleKind.CommonJS,moduleResolution:m.default.ModuleResolutionKind.Node16}}).outputText;return se(t.moduleName,n)},{keyGenerator:(e,t)=>JSON.stringify(["transpileModule",e,t])}),re=async(e,t)=>{var r,s;const n=(s=(r=(await Z.build({entryPoints:["index.tsx"],external:Object.keys(K.BuiltinModules),format:"esm",target:"es2020",bundle:!0,write:!1,plugins:[{name:"vfs",setup(u){u.onResolve({filter:/.*/},a=>a.path==="index.tsx"?{path:"index.tsx",namespace:"vfs"}:a.path==="./component"?{path:"component.tsx",namespace:"vfs"}:null),u.onLoad({filter:/.*/,namespace:"vfs"},async a=>a.path==="index.tsx"?{contents:`export { ${t} } from './component'`,loader:"tsx"}:a.path==="component.tsx"?{contents:e,loader:"tsx"}:null)}}]})).outputFiles)==null?void 0:r[0])==null?void 0:s.contents;if(!n)throw new Error("Failed to build server code");const c=Buffer.from(n).toString();return m.default.transpileModule(c,{compilerOptions:{module:m.default.ModuleKind.ESNext,target:m.default.ScriptTarget.ES2020}}).outputText},R=h.memoize(async(e,t)=>{const o=await re(e,t);return new RegExp(`export\\s+\\{\\s+${t}\\s+\\}`,"m").test(o)?o:void 0},{keyGenerator:(e,t)=>JSON.stringify(["extractExportValueSchema",e,t])}),se=(e,t)=>`// GENERATED FILE. DO NOT EDIT.
|
|
7
|
+
var ${e} = function () {
|
|
8
|
+
return (function(exports) {
|
|
9
|
+
${t}
|
|
10
|
+
return exports
|
|
11
|
+
})({})
|
|
12
|
+
};
|
|
13
|
+
`,y=new F.LRUCache({max:100}),$=60*60,M=60;function k(e){f.info("clear preload components cache",{cacheKey:e}),y.delete(e)}function ce(e){for(const t of y.keys())t.includes(e)&&(f.info("clear preload components cache",{cacheKey:t}),k(t))}function U({mode:e,instanceId:t,componentId:o,locale:n}){return["getPreloadComponents",e,t,o,n].join("-")}async function ae({mode:e,req:t,state:o,locale:n,instances:c,module:i}){const{supportedLocales:r,config:{defaultLocale:s}}=o;if(!s)return null;const u=(await Promise.all(c.map(async p=>{const d=U({mode:e,instanceId:p.id,componentId:p.componentId,locale:n});if(e!=="draft"&&p.useCache&&y.has(d))return f.info(`get preload component from cache: ${d}`),y.get(d);const _=w({state:o,componentId:p.componentId});if(!_)return null;const E=await L({req:t,state:o,componentId:_.id,locale:n,defaultLocale:s,properties:p.properties});if(!E)return null;const b={instanceId:p.id,preload:E};if(e!=="draft"&&p.useCache){let P=$;p.cacheDuration&&(P=p.cacheDuration),f.info(`set preload component to cache(${P}s): ${d}`),y.set(d,b,{ttl:P*1e3})}return b}))).filter(p=>!!p),a=Object.values(u.reduce((p,d)=>({...p,...d.preload.components}),{}));async function l(){const p=await Promise.all(a.map(async d=>{const _=O.componentUMDName({componentId:d.component.id}),E=i===N.PreloadComponentScriptModule.ESM?{module:i,script:await j(d.script,{componentId:d.component.id,module:i,tailwind:e!=="draft"})}:{module:i,script:await j(d.script,{componentId:d.component.id,module:i,moduleName:_,tailwind:e!=="draft"}),moduleName:_};return[d.component.id,{component:d.component,script:E}]}));return Object.fromEntries(p)}const g=await l();return{config:{defaultLocale:s,supportedLocales:r},components:g,instances:u.map(p=>({id:p.instanceId,componentId:p.preload.component.id,locales:{[p.preload.locale]:{props:p.preload.props}}}))}}async function L({req:e,state:t,componentId:o,locale:n,defaultLocale:c,properties:i}){const{supportedLocales:r}=t,s=w({state:t,componentId:o});if(!s)return null;const u=r.some(l=>l.locale===n)?n:c;if(!u)return null;const a=await D({req:e,state:t,componentId:o,locale:u,defaultLocale:c,properties:i});return a?{component:s,...a}:null}const ie=20;async function D({req:e,depth:t=0,state:o,componentId:n,locale:c,defaultLocale:i,properties:r}){if(t>ie)throw new RangeError("max component depth exceeded");const s=pe({state:o,componentId:n,properties:r,locale:c});if(!s)return null;const{props:u}=s,a={locale:c||i,components:{[s.component.id]:{component:s.component,script:s.script}},props:{...u}};try{const l=await le({...s,req:e});l!=null&&l.props&&Object.assign(a.props,l.props)}catch(l){f.error("preload data at server side error",{componentId:n,name:s.component.name},{error:l})}return await Promise.all(Object.entries(u).map(async([l,g])=>{if((g==null?void 0:g.type)===O.RenderNestedComponent){const x=await D({req:e,depth:t+1,state:o,componentId:g.componentId,locale:c,defaultLocale:i,properties:g.properties});x&&(Object.assign(a.components,x.components),Object.assign(a.props,{[l]:{type:O.RenderNestedComponent,componentId:g.componentId,props:x.props}}))}})),a}function pe({state:e,componentId:t,locale:o,properties:n}){const c=w({state:e,componentId:t});if(!c)return null;const i=O.mergeComponent({componentId:t,getComponent:r=>w({state:e,componentId:r}),locale:o,defaultLocale:e.config.defaultLocale,properties:n});return i?{component:c,script:i.script,props:{locale:o,...i.properties}}:null}function w({state:e,componentId:t}){var o,n,c;return((o=e.components[t])==null?void 0:o.data)??((c=(n=e.resources.components)==null?void 0:n[t])==null?void 0:c.component)}function ue({state:e,name:t}){var n,c;const o=t.toLowerCase();return((n=Object.values(e.components).find(i=>{var r;return((r=i.data.name)==null?void 0:r.toLowerCase())===o}))==null?void 0:n.data)??((c=e.resources.components&&Object.values(e.resources.components).find(i=>{var r;return((r=i.component.name)==null?void 0:r.toLowerCase())===o}))==null?void 0:c.component)}async function le({component:e,script:t,props:o,req:n}){const c=await R(t,"getServerSideProps");if(!c)return null;const i=new Promise((r,s)=>{setTimeout(()=>s(new Error("getServerSideProps timeout in promise race")),M*1e3)});return Promise.race([i,h.Sandbox.callFunction({code:`${c}
|
|
14
|
+
|
|
15
|
+
export async function getServerSidePropsWrapper({ location, fetch, props}) {
|
|
16
|
+
globalThis.location = location
|
|
17
|
+
globalThis.fetch = fetch
|
|
18
|
+
|
|
19
|
+
return getServerSideProps(props);
|
|
20
|
+
}
|
|
21
|
+
`,filename:`${e.name||e.id}.js`,moduleLoader:r=>{if(r==="@blocklet/pages-kit/builtin/utils")return`const { joinURL, withQuery, getQuery, getComponentMountPoint } = globalThis
|
|
22
|
+
export { joinURL, withQuery, getQuery, getComponentMountPoint }
|
|
23
|
+
`;if(r==="@blocklet/pages-kit/builtin/dayjs")return h.BuiltinModules.dayjs},global:{console:{log:(...r)=>{f.info(...r)},warn:(...r)=>{f.warn(...r)},error:(...r)=>{f.error(...r)}},getComponentMountPoint:v.getComponentMountPoint,joinURL:C.joinURL,withQuery:C.withQuery,getQuery:C.getQuery},functionName:"getServerSidePropsWrapper",args:[{location:{href:C.joinURL(C.withHttps(n.hostname),n.originalUrl)},fetch:(r,{...s}={})=>{const u=typeof r=="string"&&r.startsWith("/")?C.joinURL(T.default.env.appUrl,r):r;if(typeof u=="string"&&C.parseURL(u).host===C.parseURL(T.default.env.appUrl).host){const a=n.get("cookie");if(a){const l=new I.Headers(s.headers);l.set("cookie",a),s.headers=l}}return z.default(u,{...s,timeout:M*1e3}).then(a=>({ok:a.ok,status:a.status,statusText:a.statusText,headers:Object.fromEntries(a.headers.entries()),json:()=>a.json()}))},props:o}]})])}const de=h.memoize(async(e,t,o)=>{const n=await R(e,t);return n?await h.Sandbox.callFunction({code:`
|
|
24
|
+
${n}
|
|
25
|
+
|
|
26
|
+
export function get${t}SchemaWrapper() {
|
|
27
|
+
return ${t};
|
|
28
|
+
}
|
|
29
|
+
`,filename:`${o}.js`,functionName:`get${t}SchemaWrapper`}):null},{keyGenerator:(e,t,o)=>JSON.stringify(["getExportSchemaValueFromCode",e,t,o])});exports.CUSTOM_COMPONENT_CACHE_DURATION_IN_SECONDS=$;exports.GET_SERVER_SIDE_PROPS_TIMEOUT_IN_SECONDS=M;exports.clearPreloadComponentsCache=k;exports.clearPreloadComponentsCacheByMode=ce;exports.getComponentFromState=w;exports.getComponentFromStateByName=ue;exports.getExportSchemaValueFromCode=de;exports.getPreloadComponent=L;exports.getPreloadComponents=ae;exports.getPreloadComponentsCacheKey=U;exports.logger=f;
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { getComponentMountPoint as k } from "@blocklet/pages-kit/builtin/utils";
|
|
2
|
+
import { PreloadComponentScriptModule as $ } from "@blocklet/pages-kit/types";
|
|
3
|
+
import { RenderNestedComponent as M, mergeComponent as v, componentUMDName as L } from "@blocklet/pages-kit/utils/property";
|
|
4
|
+
import { memoize as O, Sandbox as _, BuiltinModules as U } from "@blocklet/quickjs";
|
|
5
|
+
import T from "@blocklet/sdk/lib/config";
|
|
6
|
+
import { LRUCache as D } from "lru-cache";
|
|
7
|
+
import F, { Headers as B } from "node-fetch";
|
|
8
|
+
import { joinURL as E, withQuery as J, getQuery as K, withHttps as G, parseURL as b } from "ufo";
|
|
9
|
+
import Q from "@blocklet/logger";
|
|
10
|
+
import { BuiltinModules as W } from "@blocklet/pages-kit/utils/builtin";
|
|
11
|
+
import { createBuiltinModuleTransformer as V } from "@blocklet/pages-kit/utils/typescript/builtin-module-transformer";
|
|
12
|
+
import A from "autoprefixer";
|
|
13
|
+
import * as H from "esbuild";
|
|
14
|
+
import z from "postcss";
|
|
15
|
+
import X from "tailwindcss";
|
|
16
|
+
import d from "typescript";
|
|
17
|
+
const g = Q("pages-kit"), Y = async (e, { componentId: t }) => {
|
|
18
|
+
const o = `@tailwind components;
|
|
19
|
+
@tailwind utilities;
|
|
20
|
+
`, r = `.CustomComponent_${t}`;
|
|
21
|
+
return (await z([
|
|
22
|
+
X({ content: [{ raw: e, extension: "tsx" }] }),
|
|
23
|
+
A({
|
|
24
|
+
overrideBrowserslist: ["> 1%", "last 2 versions"],
|
|
25
|
+
stats: {}
|
|
26
|
+
}),
|
|
27
|
+
(a) => {
|
|
28
|
+
a.walkRules((n) => {
|
|
29
|
+
n.selectors = n.selectors.map((s) => s.replace(/\.(.+)/g, `${r}.$1,${r} .$1`));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
// FIXME: cssnano use browserslist, it is not working with the fs isolation
|
|
33
|
+
// cssnano({ preset: 'default' }),
|
|
34
|
+
]).process(o)).css;
|
|
35
|
+
}, Z = async (e, { componentId: t }) => {
|
|
36
|
+
const o = await Y(e, { componentId: t });
|
|
37
|
+
return `export const __PagesKit_CSS__ = ${JSON.stringify(o)};
|
|
38
|
+
|
|
39
|
+
${e}
|
|
40
|
+
`;
|
|
41
|
+
}, I = O(
|
|
42
|
+
async (e, t) => {
|
|
43
|
+
let o = d.transpileModule(e, {
|
|
44
|
+
compilerOptions: {
|
|
45
|
+
jsx: d.JsxEmit.React,
|
|
46
|
+
target: d.ScriptTarget.ES2016,
|
|
47
|
+
module: d.ModuleKind.ESNext
|
|
48
|
+
},
|
|
49
|
+
transformers: {
|
|
50
|
+
before: [V(d)]
|
|
51
|
+
}
|
|
52
|
+
}).outputText;
|
|
53
|
+
if (t.tailwind && (o = await Z(o, { componentId: t.componentId })), t.module === $.ESM) return o;
|
|
54
|
+
const r = d.transpileModule(o, {
|
|
55
|
+
compilerOptions: {
|
|
56
|
+
jsx: d.JsxEmit.React,
|
|
57
|
+
target: d.ScriptTarget.ES2016,
|
|
58
|
+
module: d.ModuleKind.CommonJS,
|
|
59
|
+
moduleResolution: d.ModuleResolutionKind.Node16
|
|
60
|
+
}
|
|
61
|
+
}).outputText;
|
|
62
|
+
return ee(t.moduleName, r);
|
|
63
|
+
},
|
|
64
|
+
{ keyGenerator: (e, t) => JSON.stringify(["transpileModule", e, t]) }
|
|
65
|
+
), q = async (e, t) => {
|
|
66
|
+
var n, s;
|
|
67
|
+
const r = (s = (n = (await H.build({
|
|
68
|
+
entryPoints: ["index.tsx"],
|
|
69
|
+
external: Object.keys(W),
|
|
70
|
+
format: "esm",
|
|
71
|
+
target: "es2020",
|
|
72
|
+
bundle: !0,
|
|
73
|
+
write: !1,
|
|
74
|
+
plugins: [
|
|
75
|
+
{
|
|
76
|
+
name: "vfs",
|
|
77
|
+
setup(l) {
|
|
78
|
+
l.onResolve({ filter: /.*/ }, (i) => i.path === "index.tsx" ? { path: "index.tsx", namespace: "vfs" } : i.path === "./component" ? { path: "component.tsx", namespace: "vfs" } : null), l.onLoad({ filter: /.*/, namespace: "vfs" }, async (i) => i.path === "index.tsx" ? { contents: `export { ${t} } from './component'`, loader: "tsx" } : i.path === "component.tsx" ? { contents: e, loader: "tsx" } : null);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
})).outputFiles) == null ? void 0 : n[0]) == null ? void 0 : s.contents;
|
|
83
|
+
if (!r) throw new Error("Failed to build server code");
|
|
84
|
+
const c = Buffer.from(r).toString();
|
|
85
|
+
return d.transpileModule(c, {
|
|
86
|
+
compilerOptions: { module: d.ModuleKind.ESNext, target: d.ScriptTarget.ES2020 }
|
|
87
|
+
}).outputText;
|
|
88
|
+
}, N = O(
|
|
89
|
+
async (e, t) => {
|
|
90
|
+
const o = await q(e, t);
|
|
91
|
+
return new RegExp(`export\\s+\\{\\s+${t}\\s+\\}`, "m").test(o) ? o : void 0;
|
|
92
|
+
},
|
|
93
|
+
{ keyGenerator: (e, t) => JSON.stringify(["extractExportValueSchema", e, t]) }
|
|
94
|
+
), ee = (e, t) => `// GENERATED FILE. DO NOT EDIT.
|
|
95
|
+
var ${e} = function () {
|
|
96
|
+
return (function(exports) {
|
|
97
|
+
${t}
|
|
98
|
+
return exports
|
|
99
|
+
})({})
|
|
100
|
+
};
|
|
101
|
+
`, w = new D({
|
|
102
|
+
max: 100
|
|
103
|
+
}), te = 60 * 60, j = 60;
|
|
104
|
+
function oe(e) {
|
|
105
|
+
g.info("clear preload components cache", { cacheKey: e }), w.delete(e);
|
|
106
|
+
}
|
|
107
|
+
function Oe(e) {
|
|
108
|
+
for (const t of w.keys())
|
|
109
|
+
t.includes(e) && (g.info("clear preload components cache", { cacheKey: t }), oe(t));
|
|
110
|
+
}
|
|
111
|
+
function ne({
|
|
112
|
+
mode: e,
|
|
113
|
+
instanceId: t,
|
|
114
|
+
componentId: o,
|
|
115
|
+
locale: r
|
|
116
|
+
}) {
|
|
117
|
+
return ["getPreloadComponents", e, t, o, r].join("-");
|
|
118
|
+
}
|
|
119
|
+
async function Pe({
|
|
120
|
+
mode: e,
|
|
121
|
+
req: t,
|
|
122
|
+
state: o,
|
|
123
|
+
locale: r,
|
|
124
|
+
instances: c,
|
|
125
|
+
module: a
|
|
126
|
+
}) {
|
|
127
|
+
const {
|
|
128
|
+
supportedLocales: n,
|
|
129
|
+
config: { defaultLocale: s }
|
|
130
|
+
} = o;
|
|
131
|
+
if (!s) return null;
|
|
132
|
+
const l = (await Promise.all(
|
|
133
|
+
c.map(async (p) => {
|
|
134
|
+
const u = ne({
|
|
135
|
+
mode: e,
|
|
136
|
+
instanceId: p.id,
|
|
137
|
+
componentId: p.componentId,
|
|
138
|
+
locale: r
|
|
139
|
+
});
|
|
140
|
+
if (e !== "draft" && p.useCache && w.has(u))
|
|
141
|
+
return g.info(`get preload component from cache: ${u}`), w.get(u);
|
|
142
|
+
const h = C({ state: o, componentId: p.componentId });
|
|
143
|
+
if (!h) return null;
|
|
144
|
+
const S = await re({
|
|
145
|
+
req: t,
|
|
146
|
+
state: o,
|
|
147
|
+
componentId: h.id,
|
|
148
|
+
locale: r,
|
|
149
|
+
defaultLocale: s,
|
|
150
|
+
properties: p.properties
|
|
151
|
+
});
|
|
152
|
+
if (!S) return null;
|
|
153
|
+
const P = { instanceId: p.id, preload: S };
|
|
154
|
+
if (e !== "draft" && p.useCache) {
|
|
155
|
+
let y = te;
|
|
156
|
+
p.cacheDuration && (y = p.cacheDuration), g.info(`set preload component to cache(${y}s): ${u}`), w.set(u, P, {
|
|
157
|
+
ttl: y * 1e3
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
return P;
|
|
161
|
+
})
|
|
162
|
+
)).filter((p) => !!p), i = Object.values(
|
|
163
|
+
l.reduce((p, u) => ({ ...p, ...u.preload.components }), {})
|
|
164
|
+
);
|
|
165
|
+
async function m() {
|
|
166
|
+
const p = await Promise.all(
|
|
167
|
+
i.map(async (u) => {
|
|
168
|
+
const h = L({ componentId: u.component.id }), S = a === $.ESM ? {
|
|
169
|
+
module: a,
|
|
170
|
+
script: await I(u.script, {
|
|
171
|
+
componentId: u.component.id,
|
|
172
|
+
module: a,
|
|
173
|
+
tailwind: e !== "draft"
|
|
174
|
+
})
|
|
175
|
+
} : {
|
|
176
|
+
module: a,
|
|
177
|
+
script: await I(u.script, {
|
|
178
|
+
componentId: u.component.id,
|
|
179
|
+
module: a,
|
|
180
|
+
moduleName: h,
|
|
181
|
+
tailwind: e !== "draft"
|
|
182
|
+
}),
|
|
183
|
+
moduleName: h
|
|
184
|
+
};
|
|
185
|
+
return [u.component.id, { component: u.component, script: S }];
|
|
186
|
+
})
|
|
187
|
+
);
|
|
188
|
+
return Object.fromEntries(p);
|
|
189
|
+
}
|
|
190
|
+
const f = await m();
|
|
191
|
+
return {
|
|
192
|
+
config: { defaultLocale: s, supportedLocales: n },
|
|
193
|
+
components: f,
|
|
194
|
+
instances: l.map((p) => ({
|
|
195
|
+
id: p.instanceId,
|
|
196
|
+
componentId: p.preload.component.id,
|
|
197
|
+
locales: { [p.preload.locale]: { props: p.preload.props } }
|
|
198
|
+
}))
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
async function re({
|
|
202
|
+
req: e,
|
|
203
|
+
state: t,
|
|
204
|
+
componentId: o,
|
|
205
|
+
locale: r,
|
|
206
|
+
defaultLocale: c,
|
|
207
|
+
properties: a
|
|
208
|
+
}) {
|
|
209
|
+
const { supportedLocales: n } = t, s = C({ state: t, componentId: o });
|
|
210
|
+
if (!s) return null;
|
|
211
|
+
const l = n.some((m) => m.locale === r) ? r : c;
|
|
212
|
+
if (!l) return null;
|
|
213
|
+
const i = await R({ req: e, state: t, componentId: o, locale: l, defaultLocale: c, properties: a });
|
|
214
|
+
return i ? {
|
|
215
|
+
component: s,
|
|
216
|
+
...i
|
|
217
|
+
} : null;
|
|
218
|
+
}
|
|
219
|
+
const se = 20;
|
|
220
|
+
async function R({
|
|
221
|
+
req: e,
|
|
222
|
+
depth: t = 0,
|
|
223
|
+
state: o,
|
|
224
|
+
componentId: r,
|
|
225
|
+
locale: c,
|
|
226
|
+
defaultLocale: a,
|
|
227
|
+
properties: n
|
|
228
|
+
}) {
|
|
229
|
+
if (t > se) throw new RangeError("max component depth exceeded");
|
|
230
|
+
const s = ce({ state: o, componentId: r, properties: n, locale: c });
|
|
231
|
+
if (!s) return null;
|
|
232
|
+
const { props: l } = s, i = {
|
|
233
|
+
locale: c || a,
|
|
234
|
+
components: { [s.component.id]: { component: s.component, script: s.script } },
|
|
235
|
+
props: { ...l }
|
|
236
|
+
};
|
|
237
|
+
try {
|
|
238
|
+
const m = await ie({ ...s, req: e });
|
|
239
|
+
m != null && m.props && Object.assign(i.props, m.props);
|
|
240
|
+
} catch (m) {
|
|
241
|
+
g.error("preload data at server side error", { componentId: r, name: s.component.name }, { error: m });
|
|
242
|
+
}
|
|
243
|
+
return await Promise.all(
|
|
244
|
+
Object.entries(l).map(async ([m, f]) => {
|
|
245
|
+
if ((f == null ? void 0 : f.type) === M) {
|
|
246
|
+
const x = await R({
|
|
247
|
+
req: e,
|
|
248
|
+
depth: t + 1,
|
|
249
|
+
state: o,
|
|
250
|
+
componentId: f.componentId,
|
|
251
|
+
locale: c,
|
|
252
|
+
defaultLocale: a,
|
|
253
|
+
properties: f.properties
|
|
254
|
+
});
|
|
255
|
+
x && (Object.assign(i.components, x.components), Object.assign(i.props, {
|
|
256
|
+
[m]: {
|
|
257
|
+
type: M,
|
|
258
|
+
componentId: f.componentId,
|
|
259
|
+
props: x.props
|
|
260
|
+
}
|
|
261
|
+
}));
|
|
262
|
+
}
|
|
263
|
+
})
|
|
264
|
+
), i;
|
|
265
|
+
}
|
|
266
|
+
function ce({
|
|
267
|
+
state: e,
|
|
268
|
+
componentId: t,
|
|
269
|
+
locale: o,
|
|
270
|
+
properties: r
|
|
271
|
+
}) {
|
|
272
|
+
const c = C({ state: e, componentId: t });
|
|
273
|
+
if (!c) return null;
|
|
274
|
+
const a = v({
|
|
275
|
+
componentId: t,
|
|
276
|
+
getComponent: (n) => C({ state: e, componentId: n }),
|
|
277
|
+
locale: o,
|
|
278
|
+
defaultLocale: e.config.defaultLocale,
|
|
279
|
+
properties: r
|
|
280
|
+
});
|
|
281
|
+
return a ? { component: c, script: a.script, props: { locale: o, ...a.properties } } : null;
|
|
282
|
+
}
|
|
283
|
+
function C({ state: e, componentId: t }) {
|
|
284
|
+
var o, r, c;
|
|
285
|
+
return ((o = e.components[t]) == null ? void 0 : o.data) ?? ((c = (r = e.resources.components) == null ? void 0 : r[t]) == null ? void 0 : c.component);
|
|
286
|
+
}
|
|
287
|
+
function Me({ state: e, name: t }) {
|
|
288
|
+
var r, c;
|
|
289
|
+
const o = t.toLowerCase();
|
|
290
|
+
return ((r = Object.values(e.components).find((a) => {
|
|
291
|
+
var n;
|
|
292
|
+
return ((n = a.data.name) == null ? void 0 : n.toLowerCase()) === o;
|
|
293
|
+
})) == null ? void 0 : r.data) ?? ((c = e.resources.components && Object.values(e.resources.components).find((a) => {
|
|
294
|
+
var n;
|
|
295
|
+
return ((n = a.component.name) == null ? void 0 : n.toLowerCase()) === o;
|
|
296
|
+
})) == null ? void 0 : c.component);
|
|
297
|
+
}
|
|
298
|
+
async function ie({
|
|
299
|
+
component: e,
|
|
300
|
+
script: t,
|
|
301
|
+
props: o,
|
|
302
|
+
req: r
|
|
303
|
+
}) {
|
|
304
|
+
const c = await N(t, "getServerSideProps");
|
|
305
|
+
if (!c) return null;
|
|
306
|
+
const a = new Promise((n, s) => {
|
|
307
|
+
setTimeout(() => s(new Error("getServerSideProps timeout in promise race")), j * 1e3);
|
|
308
|
+
});
|
|
309
|
+
return Promise.race([
|
|
310
|
+
a,
|
|
311
|
+
_.callFunction({
|
|
312
|
+
code: `${c}
|
|
313
|
+
|
|
314
|
+
export async function getServerSidePropsWrapper({ location, fetch, props}) {
|
|
315
|
+
globalThis.location = location
|
|
316
|
+
globalThis.fetch = fetch
|
|
317
|
+
|
|
318
|
+
return getServerSideProps(props);
|
|
319
|
+
}
|
|
320
|
+
`,
|
|
321
|
+
filename: `${e.name || e.id}.js`,
|
|
322
|
+
moduleLoader: (n) => {
|
|
323
|
+
if (n === "@blocklet/pages-kit/builtin/utils")
|
|
324
|
+
return `const { joinURL, withQuery, getQuery, getComponentMountPoint } = globalThis
|
|
325
|
+
export { joinURL, withQuery, getQuery, getComponentMountPoint }
|
|
326
|
+
`;
|
|
327
|
+
if (n === "@blocklet/pages-kit/builtin/dayjs")
|
|
328
|
+
return U.dayjs;
|
|
329
|
+
},
|
|
330
|
+
global: {
|
|
331
|
+
console: {
|
|
332
|
+
// NOTE: do not return logger.xxx result, it will cause memory leak
|
|
333
|
+
// eslint-disable-next-line prettier/prettier
|
|
334
|
+
log: (...n) => {
|
|
335
|
+
g.info(...n);
|
|
336
|
+
},
|
|
337
|
+
warn: (...n) => {
|
|
338
|
+
g.warn(...n);
|
|
339
|
+
},
|
|
340
|
+
error: (...n) => {
|
|
341
|
+
g.error(...n);
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
getComponentMountPoint: k,
|
|
345
|
+
joinURL: E,
|
|
346
|
+
withQuery: J,
|
|
347
|
+
getQuery: K
|
|
348
|
+
},
|
|
349
|
+
functionName: "getServerSidePropsWrapper",
|
|
350
|
+
args: [
|
|
351
|
+
{
|
|
352
|
+
// NOTE: IMPORTANT! place location and fetch (has side effect) at the args not global
|
|
353
|
+
// because the global is shared between all runtime and just init once
|
|
354
|
+
location: { href: E(G(r.hostname), r.originalUrl) },
|
|
355
|
+
fetch: (n, { ...s } = {}) => {
|
|
356
|
+
const l = typeof n == "string" && n.startsWith("/") ? E(T.env.appUrl, n) : n;
|
|
357
|
+
if (typeof l == "string" && b(l).host === b(T.env.appUrl).host) {
|
|
358
|
+
const i = r.get("cookie");
|
|
359
|
+
if (i) {
|
|
360
|
+
const m = new B(s.headers);
|
|
361
|
+
m.set("cookie", i), s.headers = m;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return F(l, {
|
|
365
|
+
...s,
|
|
366
|
+
timeout: j * 1e3
|
|
367
|
+
}).then((i) => ({
|
|
368
|
+
ok: i.ok,
|
|
369
|
+
status: i.status,
|
|
370
|
+
statusText: i.statusText,
|
|
371
|
+
headers: Object.fromEntries(i.headers.entries()),
|
|
372
|
+
json: () => i.json()
|
|
373
|
+
}));
|
|
374
|
+
},
|
|
375
|
+
props: o
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
})
|
|
379
|
+
]);
|
|
380
|
+
}
|
|
381
|
+
const Te = O(
|
|
382
|
+
async (e, t, o) => {
|
|
383
|
+
const r = await N(e, t);
|
|
384
|
+
return r ? await _.callFunction({
|
|
385
|
+
code: `
|
|
386
|
+
${r}
|
|
387
|
+
|
|
388
|
+
export function get${t}SchemaWrapper() {
|
|
389
|
+
return ${t};
|
|
390
|
+
}
|
|
391
|
+
`,
|
|
392
|
+
filename: `${o}.js`,
|
|
393
|
+
functionName: `get${t}SchemaWrapper`
|
|
394
|
+
}) : null;
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
keyGenerator: (e, t, o) => JSON.stringify(["getExportSchemaValueFromCode", e, t, o])
|
|
398
|
+
}
|
|
399
|
+
);
|
|
400
|
+
export {
|
|
401
|
+
te as C,
|
|
402
|
+
j as G,
|
|
403
|
+
oe as a,
|
|
404
|
+
ne as b,
|
|
405
|
+
Oe as c,
|
|
406
|
+
Pe as d,
|
|
407
|
+
re as e,
|
|
408
|
+
C as f,
|
|
409
|
+
Te as g,
|
|
410
|
+
Me as h,
|
|
411
|
+
g as l
|
|
412
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { u as a, S as o, g as s, a as n } from "./home-NljemGBa.mjs";
|
|
3
|
+
function d({ children: t }) {
|
|
4
|
+
const r = a();
|
|
5
|
+
return /* @__PURE__ */ e(o, { url: s(r ?? ""), name: "root", waitingSynced: !0, children: /* @__PURE__ */ e(i, { children: t }) });
|
|
6
|
+
}
|
|
7
|
+
function i({ children: t }) {
|
|
8
|
+
const { state: r } = n();
|
|
9
|
+
return t({ state: r });
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
d as default
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),t=require("./home-DZ1HSzX6.js");function n({children:e}){const r=t.useProjectId();return o.jsx(t.StoreProvider,{url:t.getWssURL(r??""),name:"root",waitingSynced:!0,children:o.jsx(s,{children:e})})}function s({children:e}){const{state:r}=t.useStore();return e({state:r})}exports.default=n;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "@blocklet/pages-kit/builtin/utils";
|
|
2
|
+
import "@blocklet/pages-kit/types";
|
|
3
|
+
import "@blocklet/pages-kit/utils/property";
|
|
4
|
+
import "@blocklet/quickjs";
|
|
5
|
+
import "@blocklet/sdk/lib/config";
|
|
6
|
+
import "lru-cache";
|
|
7
|
+
import "node-fetch";
|
|
8
|
+
import "ufo";
|
|
9
|
+
import { C as S, G as _, a as E, c as d, f as i, h as l, g as N, e as O, d as P, b as c } from "../components-DsmhMXRy.mjs";
|
|
10
|
+
export {
|
|
11
|
+
S as CUSTOM_COMPONENT_CACHE_DURATION_IN_SECONDS,
|
|
12
|
+
_ as GET_SERVER_SIDE_PROPS_TIMEOUT_IN_SECONDS,
|
|
13
|
+
E as clearPreloadComponentsCache,
|
|
14
|
+
d as clearPreloadComponentsCacheByMode,
|
|
15
|
+
i as getComponentFromState,
|
|
16
|
+
l as getComponentFromStateByName,
|
|
17
|
+
N as getExportSchemaValueFromCode,
|
|
18
|
+
O as getPreloadComponent,
|
|
19
|
+
P as getPreloadComponents,
|
|
20
|
+
c as getPreloadComponentsCacheKey
|
|
21
|
+
};
|
package/lib/es/home.js
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { e as T, f as V, h as c, T as h, H as x } from "../home-NljemGBa.mjs";
|
|
3
|
+
import "@arcblock/ux/lib/Locale/context";
|
|
4
|
+
import "@arcblock/ux/lib/Result";
|
|
5
|
+
import "@blocklet/pages-kit/builtin/page/header";
|
|
6
|
+
import "@blocklet/ui-react/lib/Header";
|
|
7
|
+
import "@emotion/css";
|
|
2
8
|
import "@emotion/react";
|
|
3
9
|
import "@emotion/styled";
|
|
4
10
|
import "@mui/material";
|
|
11
|
+
import "isomorphic-dompurify";
|
|
12
|
+
import "lodash/isEmpty";
|
|
5
13
|
import "react";
|
|
14
|
+
import "react-helmet";
|
|
6
15
|
import "react-router-dom";
|
|
16
|
+
import "react-use";
|
|
17
|
+
import "ufo";
|
|
7
18
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
19
|
+
T as HomeView,
|
|
20
|
+
V as PageRoutes,
|
|
10
21
|
c as PageView,
|
|
11
|
-
|
|
12
|
-
|
|
22
|
+
h as TranslucentHeader,
|
|
23
|
+
x as default
|
|
13
24
|
};
|