@mistriwork/mistri 1.0.0-rc.12 → 1.0.0-rc.13
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 +4 -3
- package/dist/client/assets/LayoutBuilder-MPzkVU2e.js.map +1 -1
- package/dist/client/assets/index-D2dHI6hR.js.map +1 -1
- package/dist/client/assets/shell-TreN_uLs.js.map +1 -1
- package/dist/docs/access-model.md +1 -1
- package/dist/docs/build-and-deploy.md +0 -1
- package/dist/docs/cli.md +1 -1
- package/dist/docs/glossary.md +3 -3
- package/dist/docs/query.md +9 -21
- package/dist/docs/status.md +3 -3
- package/dist/embed/react/chunks/LayoutBuilder-Cbxa_wve.js.map +1 -1
- package/dist/embed/react/chunks/app-0UZ1Re1k.js.map +1 -1
- package/dist/embed/react/chunks/page-Bx4o1kpQ.js.map +1 -1
- package/dist/embed/react/chunks/palette-Bb7Lf6eo.js.map +1 -1
- package/dist/embed/react/chunks/shell-DZRACiB9.js.map +1 -1
- package/dist/embed/react/chunks/write-BQO4CFc9.js.map +1 -1
- package/dist/embed/react/index.js +1 -1
- package/dist/server/build/dockerfile.js +1 -1
- package/dist/server/cli/usage.js +2 -2
- package/dist/ui/index.js +2 -2
- package/dist/ui/page.js +2 -2
- package/dist/ui/{shared-N4Ej8yRD.js → shared-1PD7TOTJ.js} +5 -5
- package/dist/ui/{shared-N4Ej8yRD.js.map → shared-1PD7TOTJ.js.map} +1 -1
- package/dist/ui/{shared-D5m86-4o.js → shared-1gMnOu9J.js} +6 -6
- package/dist/ui/{shared-D5m86-4o.js.map → shared-1gMnOu9J.js.map} +1 -1
- package/dist/ui/{shared-Ctaj8mR2.js → shared-5RQMi4BR.js} +3 -3
- package/dist/ui/{shared-Ctaj8mR2.js.map → shared-5RQMi4BR.js.map} +1 -1
- package/dist/ui/{shared-DpLeIATZ.js → shared-B-BUF9fx.js} +2 -2
- package/dist/ui/{shared-DpLeIATZ.js.map → shared-B-BUF9fx.js.map} +1 -1
- package/dist/ui/{shared-DWYnjItP.js → shared-B-MhiPIN.js} +9 -9
- package/dist/ui/{shared-DWYnjItP.js.map → shared-B-MhiPIN.js.map} +1 -1
- package/dist/ui/{shared-0fNuhSbG.js → shared-B07qIMlE.js} +5 -5
- package/dist/ui/{shared-0fNuhSbG.js.map → shared-B07qIMlE.js.map} +1 -1
- package/dist/ui/{shared-lYtMadRU.js → shared-B1SAS_J-.js} +3 -3
- package/dist/ui/{shared-lYtMadRU.js.map → shared-B1SAS_J-.js.map} +1 -1
- package/dist/ui/{shared-CpI0Y8M5.js → shared-B4jgU8h9.js} +6 -6
- package/dist/ui/{shared-CpI0Y8M5.js.map → shared-B4jgU8h9.js.map} +1 -1
- package/dist/ui/{shared-Cxu1c35l.js → shared-B5aBCUi7.js} +30 -30
- package/dist/ui/{shared-Cxu1c35l.js.map → shared-B5aBCUi7.js.map} +1 -1
- package/dist/ui/{shared-CAe-US1q.js → shared-B9H7_Pji.js} +5 -5
- package/dist/ui/{shared-CAe-US1q.js.map → shared-B9H7_Pji.js.map} +1 -1
- package/dist/ui/{shared-Q2bgBaYo.js → shared-BAXr20S-.js} +4 -4
- package/dist/ui/{shared-Q2bgBaYo.js.map → shared-BAXr20S-.js.map} +1 -1
- package/dist/ui/{shared-CyEefFFb.js → shared-BDDUzH-f.js} +19 -19
- package/dist/ui/{shared-CyEefFFb.js.map → shared-BDDUzH-f.js.map} +1 -1
- package/dist/ui/{shared-BdhPI6dq.js → shared-BGmkeDeW.js} +3 -3
- package/dist/ui/{shared-BdhPI6dq.js.map → shared-BGmkeDeW.js.map} +1 -1
- package/dist/ui/{shared-DONIpq2q.js → shared-BHCQ60yN.js} +2 -2
- package/dist/ui/{shared-DONIpq2q.js.map → shared-BHCQ60yN.js.map} +1 -1
- package/dist/ui/{shared-CNmaAv64.js → shared-BHsjawAG.js} +8 -8
- package/dist/ui/{shared-CNmaAv64.js.map → shared-BHsjawAG.js.map} +1 -1
- package/dist/ui/{shared-DgjU9kOy.js → shared-BIQuK_nq.js} +4 -4
- package/dist/ui/{shared-DgjU9kOy.js.map → shared-BIQuK_nq.js.map} +1 -1
- package/dist/ui/{shared-icSQAj21.js → shared-BOe4W2FI.js} +3 -3
- package/dist/ui/{shared-icSQAj21.js.map → shared-BOe4W2FI.js.map} +1 -1
- package/dist/ui/{shared-BlxoOJSk.js → shared-BPpC08ip.js} +3 -3
- package/dist/ui/{shared-BlxoOJSk.js.map → shared-BPpC08ip.js.map} +1 -1
- package/dist/ui/{shared-BtiFL37J.js → shared-BdA3LPCB.js} +2 -2
- package/dist/ui/{shared-BtiFL37J.js.map → shared-BdA3LPCB.js.map} +1 -1
- package/dist/ui/{shared-CvR94vn4.js → shared-Be3nbWsd.js} +11 -11
- package/dist/ui/{shared-CvR94vn4.js.map → shared-Be3nbWsd.js.map} +1 -1
- package/dist/ui/{shared-Bl_nF_IH.js → shared-Bf30ZLoS.js} +8 -4
- package/dist/ui/shared-Bf30ZLoS.js.map +1 -0
- package/dist/ui/{shared-DijrJ_V-.js → shared-BguP_BaR.js} +7 -7
- package/dist/ui/{shared-DijrJ_V-.js.map → shared-BguP_BaR.js.map} +1 -1
- package/dist/ui/{shared-DPAVoWY0.js → shared-BoLbc2WD.js} +17 -2
- package/dist/ui/{shared-DPAVoWY0.js.map → shared-BoLbc2WD.js.map} +1 -1
- package/dist/ui/{shared-BkdBTYwx.js → shared-BttyOW4W.js} +3 -3
- package/dist/ui/{shared-BkdBTYwx.js.map → shared-BttyOW4W.js.map} +1 -1
- package/dist/ui/{shared-CQWLz8uT.js → shared-BumxsBlA.js} +10 -10
- package/dist/ui/{shared-CQWLz8uT.js.map → shared-BumxsBlA.js.map} +1 -1
- package/dist/ui/{shared-Dzu7tFiC.js → shared-Bw73ktBk.js} +3 -3
- package/dist/ui/{shared-Dzu7tFiC.js.map → shared-Bw73ktBk.js.map} +1 -1
- package/dist/ui/{shared-BhAYErSx.js → shared-C1B0GH0e.js} +4 -4
- package/dist/ui/{shared-BhAYErSx.js.map → shared-C1B0GH0e.js.map} +1 -1
- package/dist/ui/{shared-BQJQcGgj.js → shared-C2FsyYr7.js} +4 -4
- package/dist/ui/{shared-BQJQcGgj.js.map → shared-C2FsyYr7.js.map} +1 -1
- package/dist/ui/{shared-B9lw2Ryh.js → shared-C2RU1qjv.js} +4 -4
- package/dist/ui/{shared-B9lw2Ryh.js.map → shared-C2RU1qjv.js.map} +1 -1
- package/dist/ui/{shared-DQYNI9wO.js → shared-C42f07hJ.js} +5 -5
- package/dist/ui/{shared-DQYNI9wO.js.map → shared-C42f07hJ.js.map} +1 -1
- package/dist/ui/{shared-CqCZ8wMY.js → shared-C4LkPCU4.js} +3 -3
- package/dist/ui/{shared-CqCZ8wMY.js.map → shared-C4LkPCU4.js.map} +1 -1
- package/dist/ui/{shared-BhtpgOpa.js → shared-C4wSfz6k.js} +9 -9
- package/dist/ui/{shared-BhtpgOpa.js.map → shared-C4wSfz6k.js.map} +1 -1
- package/dist/ui/{shared-BHc2Izkj.js → shared-C9DZtSFH.js} +2 -2
- package/dist/ui/{shared-BHc2Izkj.js.map → shared-C9DZtSFH.js.map} +1 -1
- package/dist/ui/{shared-DW1YuiNS.js → shared-CA52ClGo.js} +2 -2
- package/dist/ui/{shared-DW1YuiNS.js.map → shared-CA52ClGo.js.map} +1 -1
- package/dist/ui/{shared-BbSbilkh.js → shared-CBciTwm6.js} +9 -9
- package/dist/ui/{shared-BbSbilkh.js.map → shared-CBciTwm6.js.map} +1 -1
- package/dist/ui/{shared-C-J32eBn.js → shared-CL3RLKDA.js} +16 -16
- package/dist/ui/{shared-C-J32eBn.js.map → shared-CL3RLKDA.js.map} +1 -1
- package/dist/ui/{shared-Ck8S4OxW.js → shared-CLq3-_hW.js} +3 -3
- package/dist/ui/{shared-Ck8S4OxW.js.map → shared-CLq3-_hW.js.map} +1 -1
- package/dist/ui/{shared-Q5WefT7G.js → shared-CMjK-Ucd.js} +3 -3
- package/dist/ui/{shared-Q5WefT7G.js.map → shared-CMjK-Ucd.js.map} +1 -1
- package/dist/ui/{shared-D3MAuEA3.js → shared-CPjpSFGh.js} +2 -2
- package/dist/ui/{shared-D3MAuEA3.js.map → shared-CPjpSFGh.js.map} +1 -1
- package/dist/ui/{shared-VshXGwXP.js → shared-CSPhENq3.js} +2 -2
- package/dist/ui/{shared-VshXGwXP.js.map → shared-CSPhENq3.js.map} +1 -1
- package/dist/ui/{shared-DJrJaE73.js → shared-CZJE4Bmp.js} +3 -3
- package/dist/ui/{shared-DJrJaE73.js.map → shared-CZJE4Bmp.js.map} +1 -1
- package/dist/ui/{shared-D7ONOwI7.js → shared-C_BhUL2I.js} +7 -7
- package/dist/ui/{shared-D7ONOwI7.js.map → shared-C_BhUL2I.js.map} +1 -1
- package/dist/ui/{shared-j-2peBIB.js → shared-CbeujwdU.js} +4 -4
- package/dist/ui/{shared-j-2peBIB.js.map → shared-CbeujwdU.js.map} +1 -1
- package/dist/ui/{shared-D5GrOEa2.js → shared-Cbf-o4Dt.js} +4 -4
- package/dist/ui/{shared-D5GrOEa2.js.map → shared-Cbf-o4Dt.js.map} +1 -1
- package/dist/ui/{shared-HwiPIajr.js → shared-CdNmeNHh.js} +3 -3
- package/dist/ui/{shared-HwiPIajr.js.map → shared-CdNmeNHh.js.map} +1 -1
- package/dist/ui/{shared-ZCFt-CPb.js → shared-CdQOMD8J.js} +3 -3
- package/dist/ui/{shared-ZCFt-CPb.js.map → shared-CdQOMD8J.js.map} +1 -1
- package/dist/ui/{shared-ClhXSGGK.js → shared-CdiPYlTh.js} +2 -2
- package/dist/ui/{shared-ClhXSGGK.js.map → shared-CdiPYlTh.js.map} +1 -1
- package/dist/ui/{shared-DA8_pVRZ.js → shared-CepLAhwm.js} +2 -2
- package/dist/ui/{shared-DA8_pVRZ.js.map → shared-CepLAhwm.js.map} +1 -1
- package/dist/ui/{shared-BrYKjrnM.js → shared-Ch82h_Fu.js} +6 -6
- package/dist/ui/{shared-BrYKjrnM.js.map → shared-Ch82h_Fu.js.map} +1 -1
- package/dist/ui/{shared-C4UrE8Fb.js → shared-Chp88all.js} +3 -3
- package/dist/ui/{shared-C4UrE8Fb.js.map → shared-Chp88all.js.map} +1 -1
- package/dist/ui/{shared-CWa80DTO.js → shared-Ci16s2rN.js} +9 -9
- package/dist/ui/{shared-CWa80DTO.js.map → shared-Ci16s2rN.js.map} +1 -1
- package/dist/ui/{shared-tksTLD6Q.js → shared-CiqNkoE1.js} +5 -5
- package/dist/ui/{shared-tksTLD6Q.js.map → shared-CiqNkoE1.js.map} +1 -1
- package/dist/ui/{shared-yt7DjSrq.js → shared-CpMhOq8F.js} +2 -2
- package/dist/ui/{shared-yt7DjSrq.js.map → shared-CpMhOq8F.js.map} +1 -1
- package/dist/ui/{shared-Dm0z5WUl.js → shared-CrWv5JKH.js} +6 -6
- package/dist/ui/{shared-Dm0z5WUl.js.map → shared-CrWv5JKH.js.map} +1 -1
- package/dist/ui/{shared-CQL3FGHc.js → shared-Csfi3Pti.js} +2 -2
- package/dist/ui/{shared-CQL3FGHc.js.map → shared-Csfi3Pti.js.map} +1 -1
- package/dist/ui/{shared-BKNRbm-V.js → shared-CuZt26rm.js} +2 -2
- package/dist/ui/{shared-BKNRbm-V.js.map → shared-CuZt26rm.js.map} +1 -1
- package/dist/ui/{shared-Guq3upiR.js → shared-Cws_z-TS.js} +2 -2
- package/dist/ui/{shared-Guq3upiR.js.map → shared-Cws_z-TS.js.map} +1 -1
- package/dist/ui/{shared-Bw_qZeIj.js → shared-D1KWuCg6.js} +2 -2
- package/dist/ui/{shared-Bw_qZeIj.js.map → shared-D1KWuCg6.js.map} +1 -1
- package/dist/ui/{shared-CuCZKwXW.js → shared-D66ju_Cb.js} +23 -23
- package/dist/ui/{shared-CuCZKwXW.js.map → shared-D66ju_Cb.js.map} +1 -1
- package/dist/ui/{shared-DYfX7NSM.js → shared-DGaQZXnw.js} +2 -2
- package/dist/ui/{shared-DYfX7NSM.js.map → shared-DGaQZXnw.js.map} +1 -1
- package/dist/ui/{shared-B3Hp8tOv.js → shared-DHy41sET.js} +6 -6
- package/dist/ui/{shared-B3Hp8tOv.js.map → shared-DHy41sET.js.map} +1 -1
- package/dist/ui/{shared-CXyd7IKi.js → shared-DKEOMQ6l.js} +2 -2
- package/dist/ui/{shared-CXyd7IKi.js.map → shared-DKEOMQ6l.js.map} +1 -1
- package/dist/ui/{shared-Ccmc8YO0.js → shared-DSUICuaJ.js} +33 -33
- package/dist/ui/{shared-Ccmc8YO0.js.map → shared-DSUICuaJ.js.map} +1 -1
- package/dist/ui/{shared-CL2iw_js.js → shared-DUPMRoO0.js} +13 -13
- package/dist/ui/{shared-CL2iw_js.js.map → shared-DUPMRoO0.js.map} +1 -1
- package/dist/ui/{shared-Dtp4eRul.js → shared-DVfdm6ah.js} +2 -2
- package/dist/ui/{shared-Dtp4eRul.js.map → shared-DVfdm6ah.js.map} +1 -1
- package/dist/ui/{shared-BJ5Ex32G.js → shared-DXM7d7lJ.js} +3 -3
- package/dist/ui/{shared-BJ5Ex32G.js.map → shared-DXM7d7lJ.js.map} +1 -1
- package/dist/ui/{shared-BFr6ld0e.js → shared-DXbMlcev.js} +2 -2
- package/dist/ui/{shared-BFr6ld0e.js.map → shared-DXbMlcev.js.map} +1 -1
- package/dist/ui/{shared-BUp3jv-N.js → shared-D_SkPtJ9.js} +6 -6
- package/dist/ui/{shared-BUp3jv-N.js.map → shared-D_SkPtJ9.js.map} +1 -1
- package/dist/ui/{shared-CdNomVzH.js → shared-Dd21k2ic.js} +4 -4
- package/dist/ui/{shared-CdNomVzH.js.map → shared-Dd21k2ic.js.map} +1 -1
- package/dist/ui/{shared-gRMbxmpu.js → shared-Dh0nHtLZ.js} +8 -8
- package/dist/ui/{shared-gRMbxmpu.js.map → shared-Dh0nHtLZ.js.map} +1 -1
- package/dist/ui/{shared-BKGJgjog.js → shared-DkOdSpSK.js} +3 -3
- package/dist/ui/{shared-BKGJgjog.js.map → shared-DkOdSpSK.js.map} +1 -1
- package/dist/ui/{shared-BMsh72Uq.js → shared-Dkph5ckT.js} +2 -2
- package/dist/ui/{shared-BMsh72Uq.js.map → shared-Dkph5ckT.js.map} +1 -1
- package/dist/ui/{shared-Be1HpDOB.js → shared-Dl1_Nx--.js} +3 -3
- package/dist/ui/{shared-Be1HpDOB.js.map → shared-Dl1_Nx--.js.map} +1 -1
- package/dist/ui/{shared-BQIZWOoJ.js → shared-Dm0IGbAf.js} +2 -2
- package/dist/ui/{shared-BQIZWOoJ.js.map → shared-Dm0IGbAf.js.map} +1 -1
- package/dist/ui/{shared-DSUtcU5S.js → shared-DnIkTpPr.js} +5 -5
- package/dist/ui/{shared-DSUtcU5S.js.map → shared-DnIkTpPr.js.map} +1 -1
- package/dist/ui/{shared-DsxGbYlV.js → shared-Docl_0tq.js} +3 -3
- package/dist/ui/{shared-DsxGbYlV.js.map → shared-Docl_0tq.js.map} +1 -1
- package/dist/ui/{shared-DZskrV26.js → shared-DprrHC72.js} +2 -2
- package/dist/ui/{shared-DZskrV26.js.map → shared-DprrHC72.js.map} +1 -1
- package/dist/ui/{shared-Bmw43Hwf.js → shared-DyKsJTZs.js} +2 -2
- package/dist/ui/{shared-Bmw43Hwf.js.map → shared-DyKsJTZs.js.map} +1 -1
- package/dist/ui/{shared-BLG88Pya.js → shared-FO7vfI3F.js} +4 -4
- package/dist/ui/{shared-BLG88Pya.js.map → shared-FO7vfI3F.js.map} +1 -1
- package/dist/ui/{shared-DLSd80D1.js → shared-HalAVHjv.js} +3 -3
- package/dist/ui/{shared-DLSd80D1.js.map → shared-HalAVHjv.js.map} +1 -1
- package/dist/ui/{shared-D1mMBLdj.js → shared-JvcI-LWp.js} +15 -15
- package/dist/ui/{shared-D1mMBLdj.js.map → shared-JvcI-LWp.js.map} +1 -1
- package/dist/ui/{shared-C6Hv_4O0.js → shared-K7Ym27yg.js} +2 -2
- package/dist/ui/{shared-C6Hv_4O0.js.map → shared-K7Ym27yg.js.map} +1 -1
- package/dist/ui/{shared-B39ln7oi.js → shared-SzlnwfJO.js} +3 -3
- package/dist/ui/{shared-B39ln7oi.js.map → shared-SzlnwfJO.js.map} +1 -1
- package/dist/ui/{shared-DgPn_Jll.js → shared-TrGbd1FY.js} +3 -3
- package/dist/ui/{shared-DgPn_Jll.js.map → shared-TrGbd1FY.js.map} +1 -1
- package/dist/ui/{shared-DrFb-XtA.js → shared-WhbuObEW.js} +2 -2
- package/dist/ui/{shared-DrFb-XtA.js.map → shared-WhbuObEW.js.map} +1 -1
- package/dist/ui/{shared-DiFQljcq.js → shared-XcSKDp6N.js} +11 -11
- package/dist/ui/{shared-DiFQljcq.js.map → shared-XcSKDp6N.js.map} +1 -1
- package/dist/ui/{shared-CMAg58rY.js → shared-Z4uBJU6I.js} +7 -6
- package/dist/ui/shared-Z4uBJU6I.js.map +1 -0
- package/dist/ui/{shared-BnUptuUp.js → shared-bAgeiRa5.js} +2 -2
- package/dist/ui/{shared-BnUptuUp.js.map → shared-bAgeiRa5.js.map} +1 -1
- package/dist/ui/{shared-BxMvSjey.js → shared-cgXG7OgZ.js} +5 -5
- package/dist/ui/{shared-BxMvSjey.js.map → shared-cgXG7OgZ.js.map} +1 -1
- package/dist/ui/{shared-u4CG2kQJ.js → shared-eZ0SB_zm.js} +2 -2
- package/dist/ui/{shared-u4CG2kQJ.js.map → shared-eZ0SB_zm.js.map} +1 -1
- package/dist/ui/{shared-L90bWW8e.js → shared-frKFb79C.js} +2 -2
- package/dist/ui/{shared-L90bWW8e.js.map → shared-frKFb79C.js.map} +1 -1
- package/dist/ui/{shared-Dd34nhkw.js → shared-hAayNSRA.js} +3 -3
- package/dist/ui/{shared-Dd34nhkw.js.map → shared-hAayNSRA.js.map} +1 -1
- package/dist/ui/{shared-DzC64cpp.js → shared-j_J16p2B.js} +2 -2
- package/dist/ui/{shared-DzC64cpp.js.map → shared-j_J16p2B.js.map} +1 -1
- package/dist/ui/{shared-DX7HRIV-.js → shared-tqpl5N3g.js} +6 -6
- package/dist/ui/{shared-DX7HRIV-.js.map → shared-tqpl5N3g.js.map} +1 -1
- package/dist/ui/{shared-BS5dBMpA.js → shared-y-6_ZDts.js} +2 -2
- package/dist/ui/{shared-BS5dBMpA.js.map → shared-y-6_ZDts.js.map} +1 -1
- package/dist/ui/{shared-Cv5v_MP1.js → shared-zG6e1Rhz.js} +13 -13
- package/dist/ui/{shared-Cv5v_MP1.js.map → shared-zG6e1Rhz.js.map} +1 -1
- package/dist/ui/testing.js +1 -1
- package/package.json +4 -4
- package/dist/docs/cli-browser.md +0 -232
- package/dist/docs/database-browser.md +0 -115
- package/dist/docs/keyboard.md +0 -63
- package/dist/docs/mcp.md +0 -86
- package/dist/ui/shared-Bl_nF_IH.js.map +0 -1
- package/dist/ui/shared-CMAg58rY.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as sessionIdentity } from "./shared-poc11xxo.js";
|
|
2
|
-
import { L as state } from "./shared-
|
|
2
|
+
import { L as state } from "./shared-BoLbc2WD.js";
|
|
3
3
|
// packages/mistri/src/client/appState.js
|
|
4
4
|
/**
|
|
5
5
|
* What the App is, as the client knows it: the loaded manifest and the modes
|
|
@@ -30,4 +30,4 @@ function inAppMode() {
|
|
|
30
30
|
}
|
|
31
31
|
export { inAppMode as n, activeApp as t };
|
|
32
32
|
|
|
33
|
-
//# sourceMappingURL=shared-
|
|
33
|
+
//# sourceMappingURL=shared-DGaQZXnw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-
|
|
1
|
+
{"version":3,"file":"shared-DGaQZXnw.js","names":[],"sources":["../../src/client/appState.js"],"sourcesContent":["/**\n * What the App is, as the client knows it: the loaded manifest and the modes\n * read from it. A leaf. `appnav.js` fetches and registers the App's words and\n * openers (and so reaches the Page tree through the peek drawer); the App\n * framework's modules that only ask \"is there an App, and which\" import this\n * instead, so the answer does not drag navigation in behind it. The kit asks\n * the shell (shellMode.ts `app()`, `inApp()`), which the App shell answers\n * from here: a kit module never reads the App framework's state itself.\n */\nimport { state } from '@mistriwork/kit/client/core.js';\nimport { sessionIdentity } from '@mistriwork/kit/client/sessionIdentity.js';\n\n/** @type {{ owner: string, identity: ReturnType<typeof sessionIdentity>, app: import('../shared/appPayload.js').AppPayloadApp | null, loadError?: string, loadProblem?: import('../shared/appPayload.js').AppLoadProblem, live?: boolean } | null} */\nlet cache = null;\n\n/** The loader's answer for this connection, or null to forget it.\n * @param {typeof cache} next */\nexport function setAppCache(next) {\n cache = next;\n}\n\n/**\n * The app curating this connection's UI, or null for the ordinary browser.\n * @returns {import('../shared/appPayload.js').AppPayloadApp | null}\n */\nexport function activeApp() {\n if (!cache || !cache.app || cache.identity !== sessionIdentity()) return null;\n /* Stale answers are no answers: a switch that has not re-fetched yet must\n not dress the new connection in the old connection's app. */\n if (state.activeConnection && cache.owner && cache.owner !== state.activeConnection) {\n return null;\n }\n return cache.app;\n}\n\n/** In the app's curated mode: any App is active. An App serves only what it\n * declares and never the Workbench, so an account its grants give no view —\n * an administrator of an App that declares no `admin` role — sees the App\n * with nothing in it, not the Workbench's tables, Run and Schema. */\nexport function inAppMode() {\n return Boolean(activeApp());\n}\n\n/**\n * Why the app directory on disk no longer loads, while the app served is\n * the last good save — the hot-reload story, told where the author is\n * looking. Empty when disk and server agree.\n */\nexport function appLoadError() {\n return (activeApp() && cache?.loadError) || '';\n}\n\n/** The same, placed in the App's files for the overlay (appLive.ts); undefined when there is none, or no place yet. */\nexport function appLoadProblem() {\n return (activeApp() && cache?.loadError && cache.loadProblem) || undefined;\n}\n\n/** Whether the server follows this App's source, and so tells the page of each save (appLive.ts). */\nexport function appFollowsSaves() {\n return Boolean(activeApp() && cache?.live);\n}\n\n/** Active-App policy also covers cold record/page links with no selected list.\n * This preference grants no permission to edit or submit a record.\n * @returns {'explicit'|'blur'}\n */\nexport function appSaveMode() {\n return inAppMode() && activeApp()?.ui.editing?.save === 'blur' ? 'blur' : 'explicit';\n}\n"],"mappings":";;;;;;;;;;;;;AAaA,IAAI,QAAQ;;;;;AAYZ,SAAgB,YAAY;CAC1B,IAAI,CAAC,SAAS,CAAC,MAAM,OAAO,MAAM,aAAa,gBAAgB,GAAG,OAAO;CAGzE,IAAI,MAAM,oBAAoB,MAAM,SAAS,MAAM,UAAU,MAAM,kBACjE,OAAO;CAET,OAAO,MAAM;AACf;;;;;AAMA,SAAgB,YAAY;CAC1B,OAAO,QAAQ,UAAU,CAAC;AAC5B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { gt as defineMessages, nt as richTextImageAddress } from "./shared-DJZjSi3J.js";
|
|
2
|
-
import { D as refsFrom, d as findTable, i as api, st as ownedBy } from "./shared-
|
|
3
|
-
import { t as onDemand } from "./shared-
|
|
2
|
+
import { D as refsFrom, d as findTable, i as api, st as ownedBy } from "./shared-BoLbc2WD.js";
|
|
3
|
+
import { t as onDemand } from "./shared-B-BUF9fx.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
// packages/kit/src/client/copy/forms/components/RichTextField.ts
|
|
6
6
|
/** What RichTextField says, in the forms room (packages/kit/src/client/messages.ts says how the catalog is split). */
|
|
@@ -19,7 +19,7 @@ var say = defineMessages({ pictureUnread: "The picture was kept, but its address
|
|
|
19
19
|
* attachment of the record being written; with no record yet there is no
|
|
20
20
|
* row to attach it to, and the editor takes no pictures).
|
|
21
21
|
*/
|
|
22
|
-
var Editor = onDemand(() => import("./shared-
|
|
22
|
+
var Editor = onDemand(() => import("./shared-CdNmeNHh.js"), "RichTextEditor", { quiet: true });
|
|
23
23
|
function RichTextField(props) {
|
|
24
24
|
return /* @__PURE__ */ jsx("div", {
|
|
25
25
|
className: "rich-field",
|
|
@@ -34,7 +34,7 @@ function RichTextField(props) {
|
|
|
34
34
|
function mentionSearch(source, connection) {
|
|
35
35
|
return async (query) => {
|
|
36
36
|
const typed = query.trim();
|
|
37
|
-
const { mentionRows } = await import("./shared-
|
|
37
|
+
const { mentionRows } = await import("./shared-Dkph5ckT.js");
|
|
38
38
|
const [people, groups] = await Promise.all([mentionRows(source, typed, connection), source.groups ? mentionRows(source.groups, typed, connection, "group").catch(() => []) : Promise.resolve([])]);
|
|
39
39
|
return groups.length ? [...people.slice(0, 8 - Math.min(groups.length, 3)), ...groups].slice(0, 8) : people;
|
|
40
40
|
};
|
|
@@ -50,7 +50,7 @@ function pictureKeeper(images, record, connection) {
|
|
|
50
50
|
if (!link) return void 0;
|
|
51
51
|
const values = { [link.from.columns[0]]: record.key[link.to.columns[0]] };
|
|
52
52
|
return async (file) => {
|
|
53
|
-
const { fileToBase64 } = await import("./shared-
|
|
53
|
+
const { fileToBase64 } = await import("./shared-FO7vfI3F.js");
|
|
54
54
|
const reply = await api("/api/file/upload", {
|
|
55
55
|
table: images,
|
|
56
56
|
values,
|
|
@@ -69,4 +69,4 @@ function pictureKeeper(images, record, connection) {
|
|
|
69
69
|
}
|
|
70
70
|
export { mentionSearch as n, pictureKeeper as r, RichTextField as t };
|
|
71
71
|
|
|
72
|
-
//# sourceMappingURL=shared-
|
|
72
|
+
//# sourceMappingURL=shared-DHy41sET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-
|
|
1
|
+
{"version":3,"file":"shared-DHy41sET.js","names":[],"sources":["../../../kit/src/client/copy/forms/components/RichTextField.ts","../../../kit/src/client/components/RichTextField.tsx"],"sourcesContent":["/** What RichTextField says, in the forms room (packages/kit/src/client/messages.ts says how the catalog is split). */\nimport { defineMessages } from '../../../messages.js';\n\nexport const say = defineMessages({\n pictureUnread: 'The picture was kept, but its address was not read back.',\n});\n","/**\n * A rich text field wherever one is edited — a command's input, a record's\n * field, a New form, the timeline's composer — drawn by the editor\n * (RichTextEditor.tsx), which is a chunk of its own: fetched the first time a\n * rich text value is edited, never by a first page. Until it is here the\n * field keeps its height, so nothing under it moves when it arrives.\n *\n * What the editor needs from the App comes from here: who an @ may name (a\n * read of the declared people, through the reader's own grants) and where a\n * picture is kept (an upload into the declared file resource, as an\n * attachment of the record being written; with no record yet there is no\n * row to attach it to, and the editor takes no pictures).\n */\nimport { api, findTable, refsFrom } from '../core.js';\nimport { ownedBy } from '../requestIdentity.js';\nimport { richTextImageAddress } from '@mistriwork/engine/shared/richText.js';\nimport type { MentionSource as MentionResource } from '@mistriwork/engine/shared/mentionLookup.js';\nimport { onDemand } from './onDemand.js';\nimport { say } from '../copy/forms/components/RichTextField.js';\nimport type { MentionPerson, RichTextEditorProps } from './RichTextEditor.js';\n\nconst Editor = onDemand(() => import('./RichTextEditor.js'), 'RichTextEditor', { quiet: true });\n\nexport function RichTextField(props: RichTextEditorProps) {\n return (\n <div className=\"rich-field\">\n <Editor {...props} />\n </div>\n );\n}\n\n/** Who an @ names: `{ from, by, labelColumn?, groups? }`, as a rich text field or column declares it. */\ninterface MentionSource extends MentionResource {\n /** The teams an @ may also name, each told as its members; with `through`, only those a link row names. */\n groups?: MentionResource & { through?: string };\n}\n\n/**\n * The people an @ may name, by what was typed after it: the declared resource,\n * read as the reader may read it — and, where teams are declared, the teams\n * after the people. A team the reader cannot read is simply not offered.\n */\nexport function mentionSearch(source: MentionSource, connection: string | null | undefined): (query: string) => Promise<MentionPerson[]> {\n return async (query) => {\n const typed = query.trim();\n /* Fetched with the first @ typed, not with the field: a public form never offers mentions, and its first\n visit has a ceiling (test/built-client-browser.mjs). */\n const { mentionRows } = await import('./mentionRows.js');\n const [people, groups] = await Promise.all([\n mentionRows(source, typed, connection),\n source.groups ? mentionRows(source.groups, typed, connection, 'group').catch(() => []) : Promise.resolve([]),\n ]);\n /* Eight in all; a team gets a place even when eight people match. */\n return groups.length ? [...people.slice(0, 8 - Math.min(groups.length, 3)), ...groups].slice(0, 8) : people;\n };\n}\n\n/**\n * Where a picture is kept: a new row of the file resource that points at the\n * record, its stored address once it is there. Undefined where the resource\n * has no single column pointing at the record's table, or there is no record.\n */\nexport function pictureKeeper(\n images: string | undefined,\n record: { table: string; key: Record<string, unknown> } | undefined,\n connection: string | null | undefined,\n): ((file: File) => Promise<string>) | undefined {\n if (!images || !record || !findTable(images)) return undefined;\n const link = (refsFrom(images) as Array<{ from: { columns: string[] }; to: { table: string; columns: string[] } }>).find(\n (fk) => fk.to.table === record.table && fk.from.columns.length === 1 && Object.hasOwn(record.key, fk.to.columns[0]),\n );\n if (!link) return undefined;\n const values = { [link.from.columns[0]]: record.key[link.to.columns[0]] };\n return async (file) => {\n const { fileToBase64 } = await import('./AttachmentList.js');\n const reply = (await api('/api/file/upload', {\n table: images,\n values,\n ...ownedBy(connection ?? null),\n file: { name: file.name || 'picture', type: file.type, data: await fileToBase64(file) },\n })) as { key?: Record<string, string | number>; error?: string; errors?: Array<{ message: string }> };\n if (reply.errors?.length) throw new Error(reply.errors[0].message);\n if (typeof reply.error === 'string') throw new Error(reply.error);\n if (!reply.key) throw new Error(say('pictureUnread'));\n return richTextImageAddress(images, reply.key);\n };\n}\n"],"mappings":";;;;;;AAGA,IAAa,MAAM,eAAe,EAChC,eAAe,2DACjB,CAAC;;;;;;;;;;;;;;;ACgBD,IAAM,SAAS,eAAe,OAAO,yBAAwB,kBAAkB,EAAE,OAAO,KAAK,CAAC;AAE9F,SAAgB,cAAc,OAA4B;CACxD,OACE,oBAAC,OAAD;EAAK,WAAU;EACb,UAAA,oBAAC,QAAD,EAAQ,GAAI,MAAQ,CAAA;CACjB,CAAA;AAET;;;;;;AAaA,SAAgB,cAAc,QAAuB,YAAoF;CACvI,OAAO,OAAO,UAAU;EACtB,MAAM,QAAQ,MAAM,KAAK;EAGzB,MAAM,EAAE,gBAAgB,MAAM,OAAO;EACrC,MAAM,CAAC,QAAQ,UAAU,MAAM,QAAQ,IAAI,CACzC,YAAY,QAAQ,OAAO,UAAU,GACrC,OAAO,SAAS,YAAY,OAAO,QAAQ,OAAO,YAAY,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,IAAI,QAAQ,QAAQ,CAAC,CAAC,CAC7G,CAAC;EAED,OAAO,OAAO,SAAS,CAAC,GAAG,OAAO,MAAM,GAAG,IAAI,KAAK,IAAI,OAAO,QAAQ,CAAC,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI;CACvG;AACF;;;;;;AAOA,SAAgB,cACd,QACA,QACA,YAC+C;CAC/C,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,MAAM,GAAG,OAAO,KAAA;CACrD,MAAM,OAAQ,SAAS,MAAM,CAAC,CAAsF,MACjH,OAAO,GAAG,GAAG,UAAU,OAAO,SAAS,GAAG,KAAK,QAAQ,WAAW,KAAK,OAAO,OAAO,OAAO,KAAK,GAAG,GAAG,QAAQ,EAAE,CACpH;CACA,IAAI,CAAC,MAAM,OAAO,KAAA;CAClB,MAAM,SAAS,GAAG,KAAK,KAAK,QAAQ,KAAK,OAAO,IAAI,KAAK,GAAG,QAAQ,IAAI;CACxE,OAAO,OAAO,SAAS;EACrB,MAAM,EAAE,iBAAiB,MAAM,OAAO;EACtC,MAAM,QAAS,MAAM,IAAI,oBAAoB;GAC3C,OAAO;GACP;GACA,GAAG,QAAQ,cAAc,IAAI;GAC7B,MAAM;IAAE,MAAM,KAAK,QAAQ;IAAW,MAAM,KAAK;IAAM,MAAM,MAAM,aAAa,IAAI;GAAE;EACxF,CAAC;EACD,IAAI,MAAM,QAAQ,QAAQ,MAAM,IAAI,MAAM,MAAM,OAAO,EAAE,CAAC,OAAO;EACjE,IAAI,OAAO,MAAM,UAAU,UAAU,MAAM,IAAI,MAAM,MAAM,KAAK;EAChE,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,MAAM,IAAI,eAAe,CAAC;EACpD,OAAO,qBAAqB,QAAQ,MAAM,GAAG;CAC/C;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ut as formatDate, Yt as formatPercent, gt as defineMessages } from "./shared-DJZjSi3J.js";
|
|
2
|
-
import "./shared-
|
|
2
|
+
import "./shared-BoLbc2WD.js";
|
|
3
3
|
import { Wn as viewportBox } from "./shared-CRr4kJXB.js";
|
|
4
4
|
import { n as niceScale } from "./shared-Cq8JuR8T.js";
|
|
5
5
|
import { useLayoutEffect, useRef, useState } from "react";
|
|
@@ -1526,4 +1526,4 @@ function Sparkline({ rows, say = String }) {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
export { StackedBars as a, axisMarks as c, Sparkline as i, periodTick as l, DonutChart as n, StackedColumns as o, LineChart as r, TONE_INK as s, BarChart as t };
|
|
1528
1528
|
|
|
1529
|
-
//# sourceMappingURL=shared-
|
|
1529
|
+
//# sourceMappingURL=shared-DKEOMQ6l.js.map
|