@celljs/ta 4.13.1 → 4.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +997 -811
- package/dist/gateway.mjs +315 -150
- package/dist/pi/CHANGELOG.md +7 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/package.json +3 -3
- package/dist/pi/packages/ta-bots/host/index.mjs +171 -135
- package/dist/pi/packages/ta-bots/package.json +3 -3
- package/dist/pi/packages/ta-changes/package.json +3 -3
- package/dist/pi/packages/ta-channels/host/index.mjs +170 -134
- package/dist/pi/packages/ta-channels/lib/room.js +3 -3
- package/dist/pi/packages/ta-channels/package.json +3 -3
- package/dist/pi/packages/ta-channels/web/index.js +1 -0
- package/dist/pi/packages/ta-computer-use/package.json +3 -3
- package/dist/pi/packages/ta-cron/README.en.md +1 -1
- package/dist/pi/packages/ta-cron/README.md +1 -1
- package/dist/pi/packages/ta-cron/lib/page.d.ts +2 -0
- package/dist/pi/packages/ta-cron/lib/page.js +8 -4
- package/dist/pi/packages/ta-cron/package.json +3 -3
- package/dist/pi/packages/ta-cron/web/index.js +9 -4
- package/dist/pi/packages/ta-extensions/package.json +3 -3
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +1 -1
- package/dist/pi/packages/ta-extensions/web/index.js +170 -134
- package/dist/pi/packages/ta-games/package.json +3 -3
- package/dist/pi/packages/ta-glance/package.json +3 -3
- package/dist/pi/packages/ta-initiative/README.en.md +1 -0
- package/dist/pi/packages/ta-initiative/README.md +1 -0
- package/dist/pi/packages/ta-initiative/host/index.mjs +3 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +4 -2
- package/dist/pi/packages/ta-initiative/lib/inbox.js +1 -1
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +1 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +3 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.js +5 -1
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-initiative/lib/style.js +1 -1
- package/dist/pi/packages/ta-initiative/package.json +3 -3
- package/dist/pi/packages/ta-initiative/web/index.js +10 -7
- package/dist/pi/packages/ta-launcher/package.json +3 -3
- package/dist/pi/packages/ta-manual/package.json +3 -3
- package/dist/pi/packages/ta-moments/extension/index.mjs +81 -45
- package/dist/pi/packages/ta-moments/host/index.mjs +82 -46
- package/dist/pi/packages/ta-moments/lib/editor.js +1 -1
- package/dist/pi/packages/ta-moments/lib/friends.d.ts +4 -1
- package/dist/pi/packages/ta-moments/lib/friends.js +3 -2
- package/dist/pi/packages/ta-moments/lib/moments-host.js +1 -1
- package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-moments/lib/page.js +4 -5
- package/dist/pi/packages/ta-moments/lib/post-util.js +2 -2
- package/dist/pi/packages/ta-moments/lib/store.js +6 -0
- package/dist/pi/packages/ta-moments/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-moments/lib/style.js +4 -5
- package/dist/pi/packages/ta-moments/package.json +3 -3
- package/dist/pi/packages/ta-moments/web/index.js +193 -149
- package/dist/pi/packages/ta-nearby/host/index.mjs +189 -4
- package/dist/pi/packages/ta-nearby/lib/nearby-net.js +2 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +11 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +3 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +32 -7
- package/dist/pi/packages/ta-nearby/lib/page.js +10 -9
- package/dist/pi/packages/ta-nearby/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-nearby/lib/style.js +1 -1
- package/dist/pi/packages/ta-nearby/package.json +3 -3
- package/dist/pi/packages/ta-nearby/web/index.js +10 -2
- package/dist/pi/packages/ta-notify/README.en.md +1 -0
- package/dist/pi/packages/ta-notify/README.md +1 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +3 -0
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +1 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.js +3 -0
- package/dist/pi/packages/ta-notify/package.json +3 -3
- package/dist/pi/packages/ta-recall/README.en.md +1 -1
- package/dist/pi/packages/ta-recall/README.md +1 -1
- package/dist/pi/packages/ta-recall/host/index.mjs +9 -12
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +3 -3
- package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +5 -3
- package/dist/pi/packages/ta-recall/lib/recall-service.js +11 -7
- package/dist/pi/packages/ta-recall/package.json +3 -3
- package/dist/pi/packages/ta-rooms/lib/friends-view.js +7 -8
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +12 -0
- package/dist/pi/packages/ta-rooms/lib/page.js +38 -3
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +1 -2
- package/dist/pi/packages/ta-rooms/package.json +3 -3
- package/dist/pi/packages/ta-rooms/web/index.js +58 -17
- package/dist/pi/packages/ta-share/package.json +3 -3
- package/dist/pi/packages/ta-sync/lib/i18n.js +2 -2
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +2 -2
- package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-sync/lib/style.js +1 -1
- package/dist/pi/packages/ta-sync/package.json +3 -3
- package/dist/pi/packages/ta-sync/web/index.js +5 -5
- package/dist/pi/packages/ta-sync-cloud/package.json +3 -3
- package/dist/pi/packages/ta-team/README.en.md +3 -1
- package/dist/pi/packages/ta-team/README.md +3 -1
- package/dist/pi/packages/ta-team/host/index.mjs +569 -47
- package/dist/pi/packages/ta-team/lib/dialogs.js +83 -16
- package/dist/pi/packages/ta-team/lib/host.js +4 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +11 -0
- package/dist/pi/packages/ta-team/lib/i18n.js +24 -2
- package/dist/pi/packages/ta-team/lib/members-tab.js +55 -8
- package/dist/pi/packages/ta-team/lib/page.d.ts +5 -0
- package/dist/pi/packages/ta-team/lib/page.js +15 -0
- package/dist/pi/packages/ta-team/lib/parts.d.ts +3 -1
- package/dist/pi/packages/ta-team/lib/parts.js +4 -3
- package/dist/pi/packages/ta-team/lib/policy.d.ts +24 -0
- package/dist/pi/packages/ta-team/lib/policy.js +32 -0
- package/dist/pi/packages/ta-team/lib/protocol.d.ts +22 -15
- package/dist/pi/packages/ta-team/lib/protocol.js +1 -3
- package/dist/pi/packages/ta-team/lib/shared-home.js +2 -2
- package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-team/lib/style.js +8 -4
- package/dist/pi/packages/ta-team/lib/team-admin.js +1 -0
- package/dist/pi/packages/ta-team/lib/team-core.js +1 -0
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +74 -6
- package/dist/pi/packages/ta-team/lib/team-invites.js +207 -10
- package/dist/pi/packages/ta-team/lib/team-people.js +2 -0
- package/dist/pi/packages/ta-team/package.json +7 -3
- package/dist/pi/packages/ta-team/web/index.js +362 -139
- package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.js +2 -2
- package/dist/pi/packages/ta-workspace/package.json +4 -4
- package/dist/pi/packages/ta-workspace/web/index.js +210 -160
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-C30pzFN3.js → abnfDiagram-S7VZAUFO-DMceNIR5.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-wfYFQl2u.js → architecture-WOLXFQ4H-5AdYeEv8.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-B05zgxyT.js → architectureDiagram-YGSQEFNW-CqkJHg0A.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BhN8Bsu0.js → blockDiagram-APKKGZFW-BtuHdIjQ.js} +1 -1
- package/dist/public/assets/{browser-D2CY3Lfb.js → browser-D2BcOPKG.js} +1 -1
- package/dist/public/assets/{browser-DteLjv_-.js → browser-Ds5TwWWr.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-DvdF3qCV.js → c4Diagram-KJ2TOQU5-eebbjTgZ.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-DNavkrnr.js → chunk-6MUBBAK2-BjMKSfTf.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-DplVEqp_.js → chunk-AXFCVDMN-BElluw_7.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-BazOaHvw.js → chunk-BG4553SI-CUDwpWNL.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-DmoQWa8b.js → chunk-DQASFODM-B-92o8Uj.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-Cj1m9ccz.js → chunk-HFQBQIA3-pveEMcXK.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-_jbilrLX.js → chunk-KQLB2F66-m7DKNjYW.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-CWU16Lut.js → chunk-KS47KZWR-CnSSETdj.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-wsbxWEZE.js → chunk-LEVMRMFU-Ds7OnJrC.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-BGvmwwTv.js → chunk-M57EVK23-PJSYCuUh.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-Bp3hJ4kT.js → chunk-OY52VR5R-C3ygRwSC.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-C1rQVxsJ.js → chunk-QB3YPZ4I-DcFtmZh7.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-CEy0dKWn.js → chunk-R3KSYZAL-B4BOidE6.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-akqvafwH.js → chunk-STOXU5M4-DcXfwN7k.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-CVXAS4DS.js → chunk-TU62E6Q5-B-rpQQxX.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-DT_bEMvQ.js → chunk-X4PVCEUW-BBtlFSw1.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-Bgv_n5Qh.js → chunk-XXDRQBXY-Do8BIocv.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-BtjQChpS.js → classDiagram-v2-L25IHNXF-bhGAODMS.js} +1 -1
- package/dist/public/assets/{client-sUFoEC5s.js → client-C8gi9Fk2.js} +1 -1
- package/dist/public/assets/{common-CGQN5htF.js → common-DrZR0tgm.js} +2 -2
- package/dist/public/assets/{cose-bilkent-JH36ORCC-DSrOY8Uk.js → cose-bilkent-JH36ORCC-B7Qv6Hv_.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dfu5k3iG.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-DTy7FNFS.js → cynefinDiagram-L36ESFBY-BX-R5Z6L.js} +1 -1
- package/dist/public/assets/{d3-selection-ip6rDUzY.js → d3-selection-D3xgEEla.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-CHrks7Jb.js → dagre-SPEB5RXH-MfJ9yO0v.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-eUJ7STAr.js → diagram-3B7GL73J-DxFRc2vC.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-B_fptNkg.js → diagram-DNEMPZML-BcBwOLbM.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-C15owCSG.js → diagram-L3MUGCDN--Rw-isPI.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-Bfa1qEgY.js → diagram-LA4NIPWU-DXkY85UN.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-Bwxsih_Q.js → diagram-MHCOC4E2-CbNmfAid.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-DKZ_lwah.js → diagram-XPFHEONP-D1nGQjzf.js} +1 -1
- package/dist/public/assets/{dist-VHGBaby6.js → dist-B1JMTrET.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-CCkttvYi.js → ebnfDiagram-UZSYDL2S-DGXbVfke.js} +1 -1
- package/dist/public/assets/{editor.api-a2gC0dVD.js → editor.api-e3yQoo1r.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-DcikW39e.js → elk-XV6XMXQE-pA-iT6fg.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BE3TV5lU.js → erDiagram-EYBAPDEH-BpgBun7y.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-C2s1kutf.js → eventmodeling-K75KTNOO-CVfyCcul.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-BHlXeeVG.js +1 -0
- package/dist/public/assets/{freemarker2-2e8pZojb.js → freemarker2-dYGec-fT.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-rGnJptii.js → ganttDiagram-23REXITY-DjLTTWwA.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-CFVSDv3q.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CNnsDjQA.js → gitGraphDiagram-STJD7YCW-D9m7IVyJ.js} +1 -1
- package/dist/public/assets/{handlebars-CMKN6E37.js → handlebars-Bxerz7ci.js} +1 -1
- package/dist/public/assets/{html-0AjXQhkQ.js → html-DlVnGsdp.js} +1 -1
- package/dist/public/assets/{index-TUtoc8CW.js → index-CZmGe9gc.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-C_Db4yjo.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-DMKs8cuE.js → infoDiagram-KBXO4MBG-DoYdhkAy.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Dg_IbA0G.js → ishikawaDiagram-M35NCXHK-Bc0GAInW.js} +1 -1
- package/dist/public/assets/{javascript-CqYOqPjw.js → javascript-DZrowo_I.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-ohAOfoEY.js → journeyDiagram-OPLOXDXO-BM7Dwstu.js} +1 -1
- package/dist/public/assets/{jsonMode-D-gI-S5H.js → jsonMode-Bs30wPr5.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-w-aKZS_U.js → kanban-definition-BZKZHSQY-CO-Crrdu.js} +1 -1
- package/dist/public/assets/{liquid-oBN7c8NZ.js → liquid-dLz9d3ax.js} +1 -1
- package/dist/public/assets/{mdx-CnwhgGjX.js → mdx-DO0x92Kn.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-CfFkSR0t.js → mermaid-parser.core-BXwArNvw.js} +3 -3
- package/dist/public/assets/{mermaid.core-apiVCSBY.js → mermaid.core-C6mppfDC.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-E7vqVWB0.js → mindmap-definition-I2QAS2VK-vcQ2EU4T.js} +1 -1
- package/dist/public/assets/module-C0tELrcJ.js +1 -0
- package/dist/public/assets/{module-B8jze-Tx.js → module-Cm_mLwAQ.js} +1 -1
- package/dist/public/assets/module-CteT9pTP.js +2405 -0
- package/dist/public/assets/module-DDH-aU6z.js +1 -0
- package/dist/public/assets/module-DRofmFJn.js +1 -0
- package/dist/public/assets/{module-ZhkaqrNe.js → module-DUYj4E8T.js} +1 -1
- package/dist/public/assets/module-MaD4hvv4.js +1 -0
- package/dist/public/assets/module-ZDJutm0b.js +1 -0
- package/dist/public/assets/module-qoBVcE5h.js +1 -0
- package/dist/public/assets/{monaco-C0ByxW3l.js → monaco-J_Pr5zjk.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-Bw7hmDUU.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP--RpwCE7x.js → pegDiagram-FD4XPPHP-DPDrbtS2.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-cb_eq1B6.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-DxSbPaRZ.js → pieDiagram-J4AKIIQI-DXuaepGJ.js} +1 -1
- package/dist/public/assets/{python-vNPe_Fao.js → python-nnmIOv4s.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-CR_eeYXi.js → quadrantDiagram-XTYBLID2-BuD_-coZ.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-Dqy-xoY_.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-CBPVCTd3.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-D6I2HxIC.js → railroad-abnf-LNEFI6M7-CkCl68xY.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-BuhDRGo3.js → railroad-ebnf-DWYD2UWJ-DO3GiRv6.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-n15PB7Sb.js → railroad-peg-JR7BVNR7-DZBsKy4P.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Bbe5bNap.js → railroadDiagram-MRQ6NCDL-BeLq7Mqp.js} +1 -1
- package/dist/public/assets/{razor-CnKbF0Yz.js → razor-l2rRITgB.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-Beuygh9j.js → requirementDiagram-Y7LWUY3S-BBizkrON.js} +1 -1
- package/dist/public/assets/{resolver-B7c_-amj.js → resolver-0zC31mg5.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-jwWPgnrS.js → sankeyDiagram-WGJFYUXA-tyo-p7oc.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-CmU-HYQI.js → sequenceDiagram-5NDRBG5M-BSGPbeJX.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-Bo7BEi-m.js → stateDiagram-v2-FJ4FJNEA-Dcdy66MQ.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-PSKyZN_b.js → swimlanes-UMQ2AFYF-BJfgQyQo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BWvcVkFg.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-BuRxLScZ.js → timeline-definition-SEUHKTQE-Ch8aQwF6.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB--XUqgqA6.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-CfrNtG7H.js +1 -0
- package/dist/public/assets/{typescript-C00ztMLg.js → typescript-LasX-M7S.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-Dlvyos8r.js → usecaseDiagram-AFA6YXN4-BzlSB4R4.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-CuLZubJH.js → vennDiagram-NNMJR3RB-4xaWLrMk.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-BXBG-txR.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-WOGGTs4y.js → wardleyDiagram-S7YFUSEH-C-iK1p-O.js} +1 -1
- package/dist/public/assets/{xml-CHBFuf5n.js → xml-CGhYQUqn.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DwW9eifP.js → xychartDiagram-GGNKY7IX-CFsnisdM.js} +1 -1
- package/dist/public/assets/{yaml-C4qkqzcL.js → yaml-BcOaPfuH.js} +1 -1
- package/dist/public/index.html +2 -2
- package/dist/serve/index.mjs +2318 -1257
- package/package.json +39 -39
- package/dist/pi/packages/ta-team/lib/join.d.ts +0 -28
- package/dist/pi/packages/ta-team/lib/join.js +0 -48
- package/dist/pi/packages/ta-team/lib/remote.d.ts +0 -31
- package/dist/pi/packages/ta-team/lib/remote.js +0 -128
- package/dist/pi/packages/ta-team/lib/seal.d.ts +0 -28
- package/dist/pi/packages/ta-team/lib/seal.js +0 -75
- package/dist/public/assets/cynefin-EF2NZ3EQ-DYlwwGUb.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Bufgn1OL.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-D_tzR9z9.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-C5Pwv-6e.js +0 -1
- package/dist/public/assets/module-Blc8dqbf.js +0 -1
- package/dist/public/assets/module-C2jtFD0v.js +0 -2365
- package/dist/public/assets/module-C9WFrzAc.js +0 -1
- package/dist/public/assets/module-CouMtASh.js +0 -1
- package/dist/public/assets/module-EGdAhoOx.js +0 -1
- package/dist/public/assets/module-EeaigZHL.js +0 -1
- package/dist/public/assets/module-xT4L5yYw.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-xozI7a9T.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-BkHXIzDi.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-CaUh9zV3.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-DckPvlDe.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-z_0ABNQq.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-BN38Jg9j.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-CKdz7u7W.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-B0cvM1zV.js +0 -1
|
@@ -288,10 +288,11 @@ function restOfDay(now = new Date) {
|
|
|
288
288
|
end.setHours(23, 59, 59, 999);
|
|
289
289
|
return Math.max(1, Math.round((end.getTime() - now.getTime()) / 60000));
|
|
290
290
|
}
|
|
291
|
-
function Face({ seed, face, size }) {
|
|
291
|
+
function Face({ seed, face, look, size }) {
|
|
292
292
|
return /* @__PURE__ */ React.createElement(pi.ui.Face, {
|
|
293
293
|
seed,
|
|
294
294
|
face,
|
|
295
|
+
look,
|
|
295
296
|
size
|
|
296
297
|
});
|
|
297
298
|
}
|
|
@@ -324,6 +325,7 @@ function Looking({ peers }) {
|
|
|
324
325
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
325
326
|
seed: peer.friend?.id ?? peer.e,
|
|
326
327
|
face: peer.face,
|
|
328
|
+
look: peer.look,
|
|
327
329
|
size: 30
|
|
328
330
|
}))));
|
|
329
331
|
}
|
|
@@ -365,6 +367,7 @@ function PeerTile({ peer, chosen, toggle }) {
|
|
|
365
367
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
366
368
|
seed: peer.friend?.id ?? peer.e,
|
|
367
369
|
face: peer.face,
|
|
370
|
+
look: peer.look,
|
|
368
371
|
size: 52
|
|
369
372
|
}), /* @__PURE__ */ React.createElement("span", {
|
|
370
373
|
className: "tnb-check"
|
|
@@ -382,6 +385,7 @@ function InviteRow({ invite }) {
|
|
|
382
385
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
383
386
|
seed: invite.friend?.id ?? invite.e,
|
|
384
387
|
face: invite.face,
|
|
388
|
+
look: invite.look,
|
|
385
389
|
size: 40
|
|
386
390
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
387
391
|
className: "tnb-invite-text"
|
|
@@ -588,6 +592,7 @@ function ShowOverlay({ shown, close }) {
|
|
|
588
592
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
589
593
|
seed: current.friend?.id ?? current.k,
|
|
590
594
|
face: current.face,
|
|
595
|
+
look: current.look,
|
|
591
596
|
size: 48
|
|
592
597
|
}), /* @__PURE__ */ React.createElement("strong", null, t("wantsToShow", { name: who(current), title: current.title }))), /* @__PURE__ */ React.createElement("p", {
|
|
593
598
|
className: "tnb-quiet"
|
|
@@ -609,6 +614,7 @@ function ShowOverlay({ shown, close }) {
|
|
|
609
614
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
610
615
|
seed: current.friend?.id ?? current.k,
|
|
611
616
|
face: current.face,
|
|
617
|
+
look: current.look,
|
|
612
618
|
size: 26
|
|
613
619
|
}), /* @__PURE__ */ React.createElement("span", {
|
|
614
620
|
className: "tnb-show-title tnb-ellipsis"
|
|
@@ -690,6 +696,7 @@ function GreetRow({ greet }) {
|
|
|
690
696
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
691
697
|
seed: greet.friend?.id ?? greet.e,
|
|
692
698
|
face: greet.face,
|
|
699
|
+
look: greet.look,
|
|
693
700
|
size: 40
|
|
694
701
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
695
702
|
className: "tnb-invite-text"
|
|
@@ -847,6 +854,7 @@ function openInvite(invite) {
|
|
|
847
854
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
848
855
|
seed: invite.friend?.id ?? invite.e,
|
|
849
856
|
face: invite.face,
|
|
857
|
+
look: invite.look,
|
|
850
858
|
size: 48
|
|
851
859
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
852
860
|
className: "tnb-invite-text"
|
|
@@ -954,7 +962,7 @@ var STYLE = `
|
|
|
954
962
|
/* Off: what it does, and for how long */
|
|
955
963
|
.tnb-off, .tnb-on { display: flex; flex-direction: column; align-items: center; text-align: center; }
|
|
956
964
|
.tnb-off h2 { margin: 6px 0 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }
|
|
957
|
-
.tnb-off p { max-width: 380px; margin: 0; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; }
|
|
965
|
+
.tnb-off p { max-width: 380px; margin: 0; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
|
|
958
966
|
.tnb-durations { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; margin-top: 20px; }
|
|
959
967
|
.tnb-durations .ta-button { width: 100%; justify-content: center; min-height: 40px; }
|
|
960
968
|
/* Rings that go out from the user */
|
|
@@ -24,6 +24,7 @@ The data of the package (`@celljs/ta-notify`): `notices` (the latest 30, the new
|
|
|
24
24
|
What its host (`pi.host`) answers, for web extensions through `callPackageHost('@celljs/ta-notify', …)`:
|
|
25
25
|
|
|
26
26
|
- `mute(target, muted, title?)`: mutes a conversation or not; the list after.
|
|
27
|
+
- `notices()`: the notices kept, the newest last. Another package (the brief of ta-recall) reads them so, not by the data of this package.
|
|
27
28
|
- `notify({ from, id, level, title, text, view? })`: another package tells the user of what is no conversation's (a double in a room asks for a permission), as the setting Tell me allows; a notice of the system while the page is not in front, a tap opening `view`.
|
|
28
29
|
|
|
29
30
|
Another extension that tells the user news of its own uses the page's `ui.notifySession` (see @celljs/ta-web), not the data of this package.
|
|
@@ -24,6 +24,7 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展
|
|
|
24
24
|
包宿主(`pi.host`)的方法,Web 扩展经 `callPackageHost('@celljs/ta-notify', …)` 调用:
|
|
25
25
|
|
|
26
26
|
- `mute(target, muted, title?)`:设成或取消免打扰,返回新的列表。
|
|
27
|
+
- `notices()`:保留的提醒,最新的在后。别的包(ta-recall 的简报)这样读,不读本包的数据。
|
|
27
28
|
- `notify({ from, id, level, title, text, view? })`:别的包告诉用户不属于某个对话的事(如房间里分身请你授权),按"提醒我"的设置过滤;页面不在前台时发系统通知,点开打开 `view`。
|
|
28
29
|
|
|
29
30
|
别的扩展要告诉用户自己的消息,用页面的 `ui.notifySession`(见 @celljs/ta-web),不要写这个包的数据。
|
|
@@ -90,5 +90,7 @@ export interface NotifyService {
|
|
|
90
90
|
notify(input: PackageNoticeInput): Promise<Notice | undefined>;
|
|
91
91
|
/** Mutes a conversation or not; the list after. */
|
|
92
92
|
mute(target: string, muted: boolean, title?: string): Promise<Muted[]>;
|
|
93
|
+
/** The notices kept, the newest last: how another package reads them (ta-recall's brief), not by this package's data. */
|
|
94
|
+
notices(): Promise<Notice[]>;
|
|
93
95
|
}
|
|
94
96
|
//# sourceMappingURL=notify-protocol.d.ts.map
|
|
@@ -15,6 +15,7 @@ export declare class NotifyHost implements NotifyService, TaPackageService {
|
|
|
15
15
|
post(input: NoticeInput): Promise<Notice | undefined>;
|
|
16
16
|
notify(input: PackageNoticeInput): Promise<Notice | undefined>;
|
|
17
17
|
mute(target: string, muted: boolean, title?: string): Promise<Muted[]>;
|
|
18
|
+
notices(): Promise<Notice[]>;
|
|
18
19
|
/** Nothing runs on its own: what is written is written. */
|
|
19
20
|
dispose(): void;
|
|
20
21
|
protected read(key: string): Promise<unknown>;
|
|
@@ -85,6 +85,9 @@ class NotifyHost {
|
|
|
85
85
|
return next;
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
+
async notices() {
|
|
89
|
+
return notify_util_1.NotifyUtil.notices(await this.read(notify_protocol_1.Keys.NOTICES));
|
|
90
|
+
}
|
|
88
91
|
/** Nothing runs on its own: what is written is written. */
|
|
89
92
|
dispose() { }
|
|
90
93
|
read(key) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-notify",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: tells the user when a conversation needs them, failed or answered, while they look elsewhere, and lets Ta ask them to decide with answers to pick",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/cellbang/
|
|
8
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/cellbang/
|
|
10
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -17,7 +17,7 @@ Settings → Recall: the daily brief, its time, one written now, and the offers
|
|
|
17
17
|
|
|
18
18
|
Sessions a package opened for a role of its own (an agent of a channel, a run of a schedule) are offered nothing to keep.
|
|
19
19
|
|
|
20
|
-
Offering to keep something is a kind of Initiative (`@celljs/ta-initiative`), `recall.keep`: declined twice in a row it goes down to In the brief and is no longer offered in conversations; what you keep, have made or decline is told to it. The brief tells too what waits in Suggestions and what Ta did on its own.
|
|
20
|
+
Offering to keep something is a kind of Initiative (`@celljs/ta-initiative`), `recall.keep`: declined twice in a row it goes down to In the brief and is no longer offered in conversations; what you keep, have made or decline is told to it. The brief tells too what waits in Suggestions and what Ta did on its own. The notices, the runs of scheduled tasks and the suggestions are read by the methods of those packages' hosts (`notices` of ta-notify, `list` / `runs` of ta-cron, `proposals` of ta-initiative), never by their data; a package that is off leaves its part out.
|
|
21
21
|
|
|
22
22
|
## Data and calls
|
|
23
23
|
|
|
@@ -17,7 +17,7 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展
|
|
|
17
17
|
|
|
18
18
|
由别的包打开、承担固定角色的会话(频道里的智能体、定时任务的运行)不建议存下来。
|
|
19
19
|
|
|
20
|
-
建议存下来是"主动"(`@celljs/ta-initiative`)的一类事 `recall.keep`:你连续拒绝两次后它降到"只进简报",就不再在对话里建议;存下、做成扩展或拒绝都会回报给它。简报也写上"Ta 的建议"里等你决定的事和 Ta
|
|
20
|
+
建议存下来是"主动"(`@celljs/ta-initiative`)的一类事 `recall.keep`:你连续拒绝两次后它降到"只进简报",就不再在对话里建议;存下、做成扩展或拒绝都会回报给它。简报也写上"Ta 的建议"里等你决定的事和 Ta 自己做了的事。提醒、定时任务的运行和建议都经各包宿主的方法读(`ta-notify` 的 `notices`、`ta-cron` 的 `list` / `runs`、`ta-initiative` 的 `proposals`),不读它们的包数据;包关着时简报就没有那一段。
|
|
21
21
|
|
|
22
22
|
## 数据与调用
|
|
23
23
|
|
|
@@ -1096,23 +1096,17 @@ class RecallHost {
|
|
|
1096
1096
|
return sources.filter((source) => !!source);
|
|
1097
1097
|
}
|
|
1098
1098
|
async notices() {
|
|
1099
|
-
const value = await this.
|
|
1100
|
-
return;
|
|
1101
|
-
});
|
|
1099
|
+
const value = await this.fromPackage(NOTIFY, "notices");
|
|
1102
1100
|
return Array.isArray(value) ? value.filter((notice) => !!notice && typeof notice.at === "number" && typeof notice.text === "string") : [];
|
|
1103
1101
|
}
|
|
1104
1102
|
async runs(since) {
|
|
1105
|
-
const tasks = await this.
|
|
1106
|
-
return;
|
|
1107
|
-
});
|
|
1103
|
+
const tasks = await this.fromPackage(CRON2, "list");
|
|
1108
1104
|
if (!Array.isArray(tasks)) {
|
|
1109
1105
|
return [];
|
|
1110
1106
|
}
|
|
1111
1107
|
const ran = tasks.filter((task) => task && typeof task.id === "string" && Date.parse(task.lastRunAt ?? "") >= since);
|
|
1112
1108
|
return Promise.all(ran.map(async (task) => {
|
|
1113
|
-
const runs = await this.
|
|
1114
|
-
return;
|
|
1115
|
-
});
|
|
1109
|
+
const runs = await this.fromPackage(CRON2, "runs", task.id, 1);
|
|
1116
1110
|
const run = Array.isArray(runs) ? runs[0] : undefined;
|
|
1117
1111
|
return {
|
|
1118
1112
|
name: String(task.name ?? task.id),
|
|
@@ -1123,9 +1117,7 @@ class RecallHost {
|
|
|
1123
1117
|
}));
|
|
1124
1118
|
}
|
|
1125
1119
|
async suggestions() {
|
|
1126
|
-
const value = await this.
|
|
1127
|
-
return;
|
|
1128
|
-
});
|
|
1120
|
+
const value = await this.fromPackage(INITIATIVE, "proposals");
|
|
1129
1121
|
return Array.isArray(value) ? value.filter((one) => !!one && typeof one.title === "string" && typeof one.state === "string" && typeof one.at === "number") : [];
|
|
1130
1122
|
}
|
|
1131
1123
|
async initiative(method, ...params) {
|
|
@@ -1153,6 +1145,11 @@ class RecallHost {
|
|
|
1153
1145
|
return;
|
|
1154
1146
|
});
|
|
1155
1147
|
}
|
|
1148
|
+
fromPackage(name, method, ...params) {
|
|
1149
|
+
return this.host.callPackageHost(name, method, params).catch(() => {
|
|
1150
|
+
return;
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1156
1153
|
serial(work) {
|
|
1157
1154
|
const next = this.queue.then(work, work);
|
|
1158
1155
|
this.queue = next.catch(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BriefSettings, type BriefSummary, type Conversation } from './recall-protocol';
|
|
2
|
-
/** A notice of ta-notify, as its
|
|
2
|
+
/** A notice of ta-notify, as its host gives it (`notices`): only what a brief reads. */
|
|
3
3
|
export interface BriefNotice {
|
|
4
4
|
at: number;
|
|
5
5
|
level: string;
|
|
@@ -7,14 +7,14 @@ export interface BriefNotice {
|
|
|
7
7
|
title?: string;
|
|
8
8
|
sessionFile?: string;
|
|
9
9
|
}
|
|
10
|
-
/** A task of ta-cron and the summary of its last run, as
|
|
10
|
+
/** A task of ta-cron and the summary of its last run, as its host gives them (`list`, `runs`): only what a brief reads. */
|
|
11
11
|
export interface BriefRun {
|
|
12
12
|
name: string;
|
|
13
13
|
at: number;
|
|
14
14
|
status?: string;
|
|
15
15
|
summary?: string;
|
|
16
16
|
}
|
|
17
|
-
/** A proposal of ta-initiative, as its
|
|
17
|
+
/** A proposal of ta-initiative, as its host gives it (`proposals`): only what a brief reads. */
|
|
18
18
|
export interface BriefSuggestion {
|
|
19
19
|
title: string;
|
|
20
20
|
why?: string;
|
|
@@ -37,16 +37,18 @@ export declare class RecallHost implements RecallService, TaPackageService {
|
|
|
37
37
|
protected briefSession(sessions: TaSessionInfo[], file: string | undefined): Promise<TaSessionInfo>;
|
|
38
38
|
/** What the packages that are on have for the brief (TA_BRIEF_SOURCE). */
|
|
39
39
|
protected sources(): Promise<BriefSource[]>;
|
|
40
|
-
/** The notices of ta-notify, when it is
|
|
40
|
+
/** The notices of ta-notify (its host's `notices`), when it is on. */
|
|
41
41
|
protected notices(): Promise<BriefNotice[]>;
|
|
42
|
-
/** The tasks of ta-cron that ran since, with the summary of their last run, when it is
|
|
42
|
+
/** The tasks of ta-cron that ran since, with the summary of their last run (its host's `list` and `runs`), when it is on. */
|
|
43
43
|
protected runs(since: number): Promise<BriefRun[]>;
|
|
44
|
-
/** The proposals of ta-initiative, when it is
|
|
44
|
+
/** The proposals of ta-initiative (its host's `proposals`), when it is on. */
|
|
45
45
|
protected suggestions(): Promise<BriefSuggestion[]>;
|
|
46
46
|
/** A call of the host of ta-initiative, which defines KEEP_KIND first; undefined when it is not there (turned off). */
|
|
47
47
|
protected initiative(method: string, ...params: unknown[]): Promise<unknown>;
|
|
48
48
|
protected decide(key: string, decision: KeepDecision): Promise<void>;
|
|
49
49
|
protected read(key: string): Promise<unknown>;
|
|
50
|
+
/** What the host of another package answers, by a method its README names; undefined when it is off or fails. */
|
|
51
|
+
protected fromPackage(name: string, method: string, ...params: unknown[]): Promise<unknown>;
|
|
50
52
|
protected serial<T>(work: () => Promise<T>): Promise<T>;
|
|
51
53
|
}
|
|
52
54
|
//# sourceMappingURL=recall-service.d.ts.map
|
|
@@ -260,23 +260,23 @@ class RecallHost {
|
|
|
260
260
|
.map(async (info) => brief_util_1.BriefUtil.source(info.name, await this.host.getExtensionData(info.name, ta_extension_host_1.TA_BRIEF_SOURCE).catch(() => undefined))));
|
|
261
261
|
return sources.filter((source) => !!source);
|
|
262
262
|
}
|
|
263
|
-
/** The notices of ta-notify, when it is
|
|
263
|
+
/** The notices of ta-notify (its host's `notices`), when it is on. */
|
|
264
264
|
async notices() {
|
|
265
|
-
const value = await this.
|
|
265
|
+
const value = await this.fromPackage(NOTIFY, 'notices');
|
|
266
266
|
return Array.isArray(value)
|
|
267
267
|
? value.filter((notice) => !!notice && typeof notice.at === 'number' && typeof notice.text === 'string')
|
|
268
268
|
: [];
|
|
269
269
|
}
|
|
270
|
-
/** The tasks of ta-cron that ran since, with the summary of their last run, when it is
|
|
270
|
+
/** The tasks of ta-cron that ran since, with the summary of their last run (its host's `list` and `runs`), when it is on. */
|
|
271
271
|
async runs(since) {
|
|
272
|
-
const tasks = await this.
|
|
272
|
+
const tasks = await this.fromPackage(CRON, 'list');
|
|
273
273
|
if (!Array.isArray(tasks)) {
|
|
274
274
|
return [];
|
|
275
275
|
}
|
|
276
276
|
const ran = tasks.filter(task => { var _a; return task && typeof task.id === 'string' && Date.parse((_a = task.lastRunAt) !== null && _a !== void 0 ? _a : '') >= since; });
|
|
277
277
|
return Promise.all(ran.map(async (task) => {
|
|
278
278
|
var _a;
|
|
279
|
-
const runs = await this.
|
|
279
|
+
const runs = await this.fromPackage(CRON, 'runs', task.id, 1);
|
|
280
280
|
const run = Array.isArray(runs) ? runs[0] : undefined;
|
|
281
281
|
return {
|
|
282
282
|
name: String((_a = task.name) !== null && _a !== void 0 ? _a : task.id),
|
|
@@ -286,9 +286,9 @@ class RecallHost {
|
|
|
286
286
|
};
|
|
287
287
|
}));
|
|
288
288
|
}
|
|
289
|
-
/** The proposals of ta-initiative, when it is
|
|
289
|
+
/** The proposals of ta-initiative (its host's `proposals`), when it is on. */
|
|
290
290
|
async suggestions() {
|
|
291
|
-
const value = await this.
|
|
291
|
+
const value = await this.fromPackage(INITIATIVE, 'proposals');
|
|
292
292
|
return Array.isArray(value)
|
|
293
293
|
? value.filter((one) => !!one && typeof one.title === 'string' && typeof one.state === 'string' && typeof one.at === 'number')
|
|
294
294
|
: [];
|
|
@@ -318,6 +318,10 @@ class RecallHost {
|
|
|
318
318
|
read(key) {
|
|
319
319
|
return this.host.getExtensionData(recall_protocol_1.NAME, key).catch(() => undefined);
|
|
320
320
|
}
|
|
321
|
+
/** What the host of another package answers, by a method its README names; undefined when it is off or fails. */
|
|
322
|
+
fromPackage(name, method, ...params) {
|
|
323
|
+
return this.host.callPackageHost(name, method, params).catch(() => undefined);
|
|
324
|
+
}
|
|
321
325
|
serial(work) {
|
|
322
326
|
const next = this.queue.then(work, work);
|
|
323
327
|
this.queue = next.catch(() => undefined);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-recall",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: asks earlier conversations what was done, offers to keep a request asked again as an extension (steps, a card, a page), and writes a daily brief of what got done and what waits for the user",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/cellbang/
|
|
8
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/cellbang/
|
|
10
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -78,14 +78,13 @@ function FriendsPage() {
|
|
|
78
78
|
friendRequests.length > 0 && (react_1.React.createElement("section", { className: "trm-section" },
|
|
79
79
|
react_1.React.createElement("h3", null, (0, page_1.t)('friendRequestsTitle')),
|
|
80
80
|
react_1.React.createElement("ul", { className: "trm-card" }, friendRequests.map(request => (react_1.React.createElement(FriendRequestRow, { key: request.id, request: request })))))),
|
|
81
|
-
react_1.React.createElement(
|
|
81
|
+
(friends === null || friends === void 0 ? void 0 : friends.length) === 0 ? (react_1.React.createElement(page_1.pi.ui.Empty, { title: (0, page_1.t)('friendsEmpty'), hint: (0, page_1.t)('friendsEmptyHint') },
|
|
82
|
+
react_1.React.createElement("button", { type: "button", className: "ta-button ta-primary", onClick: openAddFriend },
|
|
83
|
+
react_1.React.createElement(Add, { size: 14 }),
|
|
84
|
+
" ",
|
|
85
|
+
(0, page_1.t)('addFriend')))) : (react_1.React.createElement("section", { className: "trm-section" },
|
|
82
86
|
!!(friends === null || friends === void 0 ? void 0 : friends.length) && react_1.React.createElement("h3", null, `${(0, page_1.t)('friends')} · ${friends.length}`),
|
|
83
|
-
friends === undefined ? (page_1.pi.ui.Skeleton ? (react_1.React.createElement(page_1.pi.ui.Skeleton, { rows: 3 })) : null) :
|
|
84
|
-
react_1.React.createElement(page_1.pi.ui.Empty, { compact: true, title: (0, page_1.t)('friendsEmpty'), hint: (0, page_1.t)('friendsEmptyHint') }),
|
|
85
|
-
react_1.React.createElement("button", { type: "button", className: "ta-button ta-primary", onClick: openAddFriend },
|
|
86
|
-
react_1.React.createElement(Add, { size: 14 }),
|
|
87
|
-
" ",
|
|
88
|
-
(0, page_1.t)('addFriend')))) : (react_1.React.createElement("ul", { className: "trm-rooms" }, friends.map(friend => (react_1.React.createElement(FriendRow, { key: friend.id, friend: friend }))))))));
|
|
87
|
+
friends === undefined ? (page_1.pi.ui.Skeleton ? (react_1.React.createElement(page_1.pi.ui.Skeleton, { rows: 3 })) : null) : (react_1.React.createElement("ul", { className: "trm-rooms" }, friends.map(friend => (react_1.React.createElement(FriendRow, { key: friend.id, friend: friend })))))))));
|
|
89
88
|
}
|
|
90
89
|
function FriendsHead() {
|
|
91
90
|
const Add = (0, page_1.icon)('UserPlus');
|
|
@@ -104,7 +103,7 @@ function FriendsEntry() {
|
|
|
104
103
|
react_1.React.createElement("span", { className: "trm-friends-entry-label" }, (0, page_1.t)('friends')),
|
|
105
104
|
friendRequests.length > 0 && react_1.React.createElement("span", { className: "trm-dot" }),
|
|
106
105
|
react_1.React.createElement("span", { className: "trm-grow" }),
|
|
107
|
-
list.length > 0 && page_1.pi.ui.GroupFace && react_1.React.createElement(page_1.pi.ui.GroupFace, { members: list.slice(0, 4).map(friend => ({ seed: friend.id })), size: 24 }),
|
|
106
|
+
list.length > 0 && page_1.pi.ui.GroupFace && (react_1.React.createElement(page_1.pi.ui.GroupFace, { members: list.slice(0, 4).map(friend => ({ seed: friend.id, look: friend.look })), size: 24 })),
|
|
108
107
|
react_1.React.createElement("span", { className: "trm-quiet" }, list.length ? (0, page_1.t)('friendsCount', { n: list.length }) : (0, page_1.t)('friendsNone')),
|
|
109
108
|
react_1.React.createElement(Chevron, { size: 16 })));
|
|
110
109
|
}
|
|
@@ -120,6 +120,18 @@ export declare class RoomBook {
|
|
|
120
120
|
protected read(next: BookState): void;
|
|
121
121
|
}
|
|
122
122
|
export declare const book: RoomBook;
|
|
123
|
+
/**
|
|
124
|
+
* How the Ta the page knows look (TaRoomMember.look, TaFriend.look), by identity: the members of rooms, friends, those who
|
|
125
|
+
* ask. The user's own is `double`, the double as the user picked it.
|
|
126
|
+
*/
|
|
127
|
+
export declare namespace RoomLooks {
|
|
128
|
+
function of(state: BookState): Map<string, string>;
|
|
129
|
+
/** What `ui.Face` draws the Ta of `id` by. */
|
|
130
|
+
function faceOf(state: BookState, id: string): {
|
|
131
|
+
look?: string;
|
|
132
|
+
double?: boolean;
|
|
133
|
+
};
|
|
134
|
+
}
|
|
123
135
|
export declare function useBook(): BookState;
|
|
124
136
|
/** What was said in a room, as it changes; nothing for one not joined. */
|
|
125
137
|
export declare function useLines(room: TaRoomInfo): readonly ChatLine[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RoomSeenUtil = exports.book = exports.RoomBook = exports.pi = exports.CHAT_STATE = exports.MEMBERS_VIEW = exports.FRIENDS_VIEW = exports.ROOMS_VIEW = exports.ROOMS_KIND = void 0;
|
|
3
|
+
exports.RoomSeenUtil = exports.RoomLooks = exports.book = exports.RoomBook = exports.pi = exports.CHAT_STATE = exports.MEMBERS_VIEW = exports.FRIENDS_VIEW = exports.ROOMS_VIEW = exports.ROOMS_KIND = void 0;
|
|
4
4
|
exports.bindPage = bindPage;
|
|
5
5
|
exports.t = t;
|
|
6
6
|
exports.icon = icon;
|
|
@@ -293,6 +293,39 @@ class RoomBook {
|
|
|
293
293
|
}
|
|
294
294
|
exports.RoomBook = RoomBook;
|
|
295
295
|
exports.book = new RoomBook();
|
|
296
|
+
/**
|
|
297
|
+
* How the Ta the page knows look (TaRoomMember.look, TaFriend.look), by identity: the members of rooms, friends, those who
|
|
298
|
+
* ask. The user's own is `double`, the double as the user picked it.
|
|
299
|
+
*/
|
|
300
|
+
var RoomLooks;
|
|
301
|
+
(function (RoomLooks) {
|
|
302
|
+
const known = new WeakMap();
|
|
303
|
+
function of(state) {
|
|
304
|
+
var _a, _b;
|
|
305
|
+
let looks = known.get(state);
|
|
306
|
+
if (!looks) {
|
|
307
|
+
looks = new Map();
|
|
308
|
+
for (const each of [...state.requests, ...state.friendRequests, ...((_a = state.friends) !== null && _a !== void 0 ? _a : []), ...((_b = state.rooms) !== null && _b !== void 0 ? _b : []).flatMap(room => room.members)]) {
|
|
309
|
+
if (each.look) {
|
|
310
|
+
looks.set(each.id, each.look);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
known.set(state, looks);
|
|
314
|
+
}
|
|
315
|
+
return looks;
|
|
316
|
+
}
|
|
317
|
+
RoomLooks.of = of;
|
|
318
|
+
/** What `ui.Face` draws the Ta of `id` by. */
|
|
319
|
+
function faceOf(state, id) {
|
|
320
|
+
var _a;
|
|
321
|
+
return id === ((_a = state.identity) === null || _a === void 0 ? void 0 : _a.id) ? { double: true } : { look: of(state).get(id) };
|
|
322
|
+
}
|
|
323
|
+
RoomLooks.faceOf = faceOf;
|
|
324
|
+
})(RoomLooks || (exports.RoomLooks = RoomLooks = {}));
|
|
325
|
+
/** The state of the book without reading it: what each face reads. */
|
|
326
|
+
function useBookState() {
|
|
327
|
+
return react_1.React.useSyncExternalStore(listener => exports.book.subscribe(listener), () => exports.book.get());
|
|
328
|
+
}
|
|
296
329
|
function useBook() {
|
|
297
330
|
const state = react_1.React.useSyncExternalStore(listener => exports.book.subscribe(listener), () => exports.book.get());
|
|
298
331
|
react_1.React.useEffect(() => {
|
|
@@ -431,8 +464,9 @@ function initial(name) {
|
|
|
431
464
|
}
|
|
432
465
|
/** A face of one of the rooms, as the agents of channels have (`ui.Face`); a letter in a circle in an app of before. */
|
|
433
466
|
function Face({ id, name, size = 34, online, face }) {
|
|
467
|
+
const state = useBookState();
|
|
434
468
|
if (exports.pi.ui.Face) {
|
|
435
|
-
return react_1.React.createElement(exports.pi.ui.Face, { seed: id, face: face, size: size, online: online });
|
|
469
|
+
return react_1.React.createElement(exports.pi.ui.Face, { seed: id, face: face, size: size, online: online, ...RoomLooks.faceOf(state, id) });
|
|
436
470
|
}
|
|
437
471
|
const n = tint(id);
|
|
438
472
|
return (react_1.React.createElement("span", { className: "trm-face", "aria-hidden": "true", style: { width: size, height: size, fontSize: Math.round(size * 0.42), background: `var(--ta-tint-${n})`, color: `var(--ta-tint-ink-${n})` } },
|
|
@@ -458,8 +492,9 @@ function RoomFace({ room, size = 40, unread }) {
|
|
|
458
492
|
const page = usePageOf(room);
|
|
459
493
|
const Mark = page === null || page === void 0 ? void 0 : page.icon;
|
|
460
494
|
const members = faceMembers(room, useAgents(room));
|
|
495
|
+
const state = useBookState();
|
|
461
496
|
return (react_1.React.createElement("span", { className: "trm-room-face", style: { width: size, height: size }, "aria-hidden": "true" },
|
|
462
|
-
exports.pi.ui.GroupFace ? (react_1.React.createElement(exports.pi.ui.GroupFace, { members: members.map(member => ({ seed: member.id, face: member.face })), size: size })) : (react_1.React.createElement(Face, { id: (_d = (_a = members[0]) === null || _a === void 0 ? void 0 : _a.id) !== null && _d !== void 0 ? _d : room.id, name: (_e = (_b = members[0]) === null || _b === void 0 ? void 0 : _b.name) !== null && _e !== void 0 ? _e : room.title, face: (_c = members[0]) === null || _c === void 0 ? void 0 : _c.face, size: size })),
|
|
497
|
+
exports.pi.ui.GroupFace ? (react_1.React.createElement(exports.pi.ui.GroupFace, { members: members.map(member => ({ seed: member.id, face: member.face, ...RoomLooks.faceOf(state, member.id) })), size: size })) : (react_1.React.createElement(Face, { id: (_d = (_a = members[0]) === null || _a === void 0 ? void 0 : _a.id) !== null && _d !== void 0 ? _d : room.id, name: (_e = (_b = members[0]) === null || _b === void 0 ? void 0 : _b.name) !== null && _e !== void 0 ? _e : room.title, face: (_c = members[0]) === null || _c === void 0 ? void 0 : _c.face, size: size })),
|
|
463
498
|
Mark && (react_1.React.createElement("span", { className: "trm-room-face-mark" },
|
|
464
499
|
react_1.React.createElement(Mark, { size: 11, strokeWidth: 2.4 }))),
|
|
465
500
|
unread && react_1.React.createElement("i", { className: "trm-unread" })));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. Prefix `trm-`. */
|
|
2
|
-
export declare const STYLE = "\n.trm-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.trm-quiet { color: var(--ta-muted); }\n/* The head of the page (RoomsHead): over the list and the room on a computer, as the sidebar and a channel's head */\n.trm-head { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; height: 100%; }\n.trm-head-center { justify-content: center; padding: 0 44px; }\n.trm-head-title { font-weight: 600; font-size: calc(14.5px * var(--ta-font-scale)); }\n.trm-head-end { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; }\n.ta-main-head:has(.trm-head-split) { padding-left: 0; }\n.ta-main-head-view:has(.trm-head-split) { align-self: stretch; }\n.trm-head-split { align-items: stretch; }\n.trm-head-list { flex: none; display: flex; align-items: center; justify-content: space-between; width: 320px; box-sizing: border-box; padding: 0 8px 0 22px; background: var(--ta-side); border-right: 1px solid var(--ta-border-muted); }\n.trm-head-room { flex: 1; min-width: 0; display: flex; align-items: center; padding-left: 20px; }\n/* The list, as the sidebar of the double: faces, a name and when, a line under it */\n.trm-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; }\n.trm-page > .trm-list { max-width: 720px; margin: 0 auto; }\n.trm-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 10px calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n.trm-section h3 { display: flex; align-items: center; height: 30px; margin: 0; padding: 0 10px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; letter-spacing: 0.02em; color: var(--ta-muted); }\n.trm-card { margin: 0; padding: 2px 6px; list-style: none; border-radius: 14px; background: var(--ta-raised); }\n.trm-card .trm-row { padding: 10px 4px; }\n.trm-rooms { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }\n.trm-room { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 1px 0; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 120ms; }\n@media (hover: hover) { .trm-room:hover, .trm-friend:hover, li.trm-member:hover, button.trm-member:hover { background: var(--ta-hover); } }\n.trm-room:active { background: var(--ta-hover); }\n.trm-room.trm-active { background: var(--ta-selected, var(--ta-hover-strong)); }\n.trm-room:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.trm-room-out { opacity: .55; }\n.trm-room-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }\n.trm-room-line { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.trm-room-name { flex: 0 1 auto; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; line-height: calc(19px * var(--ta-font-scale)); }\n.trm-room-time { flex: none; margin-left: auto; padding-left: 4px; color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.trm-room-preview { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }\n.trm-tag { flex: none; align-self: center; padding: 0 6px; border-radius: 6px; background: var(--ta-chip, var(--ta-hover)); color: var(--ta-secondary); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 400; line-height: calc(17px * var(--ta-font-scale)); }\n.trm-tag-friend { background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.trm-friend { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 9px 10px; box-sizing: border-box; border-radius: 12px; }\n.trm-hover-only { opacity: 0; transition: opacity 120ms; }\n.trm-friend:hover .trm-hover-only, .trm-hover-only:focus-visible { opacity: 1; }\n@media (hover: none) { .trm-hover-only { display: none; } }\n.trm-me { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 0; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-link { padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }\n.trm-link:hover { background: var(--ta-hover); }\n.trm-link.trm-danger { color: var(--ta-red); }\n/* The faces: those of channels (ui.Face), or a letter in a circle in an app of before */\n.ta-face { --ta-face-ring: var(--ta-side); }\n.trm-chat .ta-face, .trm-panel .ta-face, .trm-head .ta-face { --ta-face-ring: var(--ta-main); }\n.trm-face { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; line-height: 1; user-select: none; }\n.trm-face i { position: absolute; right: -1px; bottom: -1px; width: 28%; height: 28%; min-width: 7px; min-height: 7px; border-radius: 50%; border: 2px solid var(--ta-main); }\n.trm-on { background: var(--ta-green); }\n.trm-off { background: var(--ta-border-field); }\n.trm-room-face { position: relative; flex: none; display: inline-flex; }\n.trm-room-face-mark { position: absolute; right: -3px; bottom: -3px; z-index: 2; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ta-raised); color: var(--ta-text); box-shadow: 0 0 0 2px var(--ta-side); }\n.trm-unread { position: absolute; top: -2px; right: -2px; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n/* Beside each other, on a computer or a tablet: the list on the colour of the sidebar */\n.trm-split { display: grid; grid-template-columns: 320px minmax(0, 1fr); flex: 1; min-height: 0; height: 100%; }\n.trm-split-list { min-height: 0; overflow-y: auto; overscroll-behavior: none; background: var(--ta-side); border-right: 1px solid var(--ta-border-muted); }\n.trm-split-room { display: flex; flex-direction: column; min-width: 0; min-height: 0; }\n/* A room (room-view.tsx): a group chat, as a channel */\n.trm-room-page { display: flex; flex-direction: column; flex: 1; height: 100%; min-height: 0; background: var(--ta-main); color: var(--ta-text); }\n.trm-room-bar { flex: none; display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 6px 12px; box-sizing: border-box; }\n.trm-room-head { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }\n.trm-room-head-title { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; white-space: nowrap; }\n.trm-room-head-title strong { font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 600; }\n.trm-room-head-count { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-room-head-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ta-green); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-room-head-sub.trm-quiet { color: var(--ta-muted); }\n.trm-faces { display: flex; align-items: center; flex: none; height: 32px; padding: 0 6px 0 10px; border: 0; border-radius: 999px; background: none; color: var(--ta-secondary); font: inherit; cursor: pointer; transition: background 120ms; }\n.trm-faces.trm-on-icon { background: var(--ta-hover); }\n@media (hover: hover) { .trm-faces:hover { background: var(--ta-hover); } .trm-faces:hover .trm-faces-one { background: var(--ta-hover); } }\n.trm-faces-one { display: inline-flex; margin-left: -4px; padding: 1px; border-radius: 50%; background: var(--ta-main); }\n.trm-faces.trm-on-icon .trm-faces-one { background: var(--ta-hover); }\n.trm-faces-more { margin-left: 4px; font-size: calc(12px * var(--ta-font-scale)); }\n.trm-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.trm-icon:hover:not(:disabled) { background: var(--ta-hover-strong); color: var(--ta-text); }\n.trm-icon.trm-danger:hover:not(:disabled) { color: var(--ta-red); }\n.trm-page-line { flex: none; display: flex; align-items: center; gap: 10px; width: calc(100% - 48px); max-width: var(--ta-col); margin: 8px auto 0; padding: 8px 10px 8px 8px; box-sizing: border-box; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-side); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; transition: background 120ms; }\n.trm-page-line:hover { background: var(--ta-hover); }\n.trm-page-line-icon { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--ta-tint-3); color: var(--ta-tint-ink-3); }\n.trm-page-line-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-secondary); }\n.trm-page-line-open { display: inline-flex; align-items: center; gap: 2px; flex: none; color: var(--ta-link); font-weight: 500; }\n.trm-chat { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overflow-anchor: none; overscroll-behavior: none; }\n.trm-chat-col { position: relative; display: flex; flex-direction: column; gap: 4px; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 12px; box-sizing: border-box; }\n.trm-chat-time { align-self: center; margin: 14px 0 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.trm-chat-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12vh auto 0; max-width: 360px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); text-align: center; }\n.trm-chat-empty strong { margin-top: 6px; color: var(--ta-text); font-size: calc(16px * var(--ta-font-scale)); }\n.trm-chat-hint { margin-top: 4px; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.6; }\n.trm-mine { margin: 6px 0 2px; }\n.trm-msg { display: flex; align-items: flex-start; gap: 10px; }\n.trm-msg.trm-first { margin-top: 10px; }\n.trm-msg-face { display: flex; justify-content: center; width: 28px; flex: none; }\n.trm-msg-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: min(84%, var(--ta-col)); }\n.trm-msg-name { margin: 0 2px 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n.trm-msg-bubble { min-width: 0; max-width: 100%; padding: 9px 14px; border: 1px solid var(--ta-border-muted); border-radius: 5px 16px 16px 16px; background: var(--ta-side); color: var(--ta-body); line-height: 1.6; overflow-wrap: anywhere; }\n.trm-msg-bubble pre { max-width: 100%; overflow-x: auto; }\n.trm-chat-bottom { flex: none; width: 100%; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 8px 24px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n/* Above the keyboard the home indicator is not there: no room for it, as under the box of a conversation. */\n:root[data-keyboard] .trm-chat-bottom { padding-bottom: 8px; }\n:root[data-keyboard-moving] .trm-chat-bottom { transition: padding-bottom 450ms cubic-bezier(0.15, 0.75, 0.2, 1); }\n/* The members of the room shown (members-view.tsx), in the workbench */\n.trm-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--ta-main); color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); }\n.trm-panel-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 12px; }\n.trm-panel-top { display: flex; align-items: center; gap: 12px; padding: 14px 10px 10px; }\n.trm-panel-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.trm-panel-title strong { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.trm-panel-title span { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-panel-label { padding: 10px 10px 6px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-panel-members { margin: 0; padding: 0; list-style: none; }\n.trm-member { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; box-sizing: border-box; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; }\nbutton.trm-member { cursor: pointer; }\n.trm-member-plus { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ta-hover); color: var(--ta-secondary); }\n.trm-member-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }\n.trm-member-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; }\n.trm-member-detail { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-member-detail.trm-live { color: var(--ta-green); }\n.trm-member-action { opacity: 0; transition: opacity 120ms; }\n.trm-member:hover .trm-member-action, .trm-member-action:focus-visible { opacity: 1; }\n@media (hover: none) { .trm-member-action { opacity: 1; } }\n.trm-panel-sep { height: 1px; margin: 8px 10px; background: var(--ta-border-muted); }\n.trm-setting { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; }\n.trm-setting:hover { background: var(--ta-hover); }\n.trm-setting > svg { flex: none; color: var(--ta-muted); }\n.trm-setting-label { flex: none; }\n.trm-setting-value { flex: 1; text-align: right; color: var(--ta-muted); }\n.trm-panel-foot { display: flex; justify-content: center; flex: none; padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ta-border-muted); }\n.trm-panel-foot .trm-link { width: 100%; min-height: 36px; border-radius: 10px; font-weight: 500; }\n/* Dialogs */\n.trm-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; }\n.trm-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.trm-row-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.trm-row-line { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.trm-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }\n.trm-answers { flex: none; display: flex; gap: 6px; }\n.trm-dialog { display: flex; flex-direction: column; gap: 12px; width: min(420px, calc(100vw - 48px)); }\n.trm-lead { margin: 0; line-height: 1.5; }\n.trm-note, .trm-hint { margin: 0; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }\n.trm-hint { text-align: center; color: var(--ta-secondary); }\n.trm-error { margin: 0; color: var(--ta-red); font-size: calc(12.5px * var(--ta-font-scale)); }\n.trm-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }\n.trm-center { justify-content: center; }\n.trm-join { display: flex; align-items: center; gap: 12px; }\n.trm-friends-page { max-width: 720px; margin: 0 auto; width: 100%; overflow-y: auto; height: 100%; }\n.trm-friends-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0 20px; }\n.trm-friends-other { gap: 18px; padding-top: 4px; }\n.trm-friends-entry { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--ta-surface, transparent); color: inherit; font: inherit; cursor: pointer; text-align: left; }\n@media (hover: hover) { .trm-friends-entry:hover { background: var(--ta-hover); } }\n.trm-friends-entry-label { font-weight: 500; }\n.trm-grow { flex: 1; }\n.trm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ta-amber, #f5a524); }\n.trm-join-name { font-size: calc(15px * var(--ta-font-scale)); }\n.trm-dialog .trm-join:has(.trm-join-name) { flex-direction: column; text-align: center; gap: 8px; }\n.trm-member-friend { color: var(--ta-muted); }\n.trm-invite { align-items: stretch; }\n.trm-qr { align-self: center; width: 188px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--ta-border-muted); }\n.trm-qr svg { display: block; width: 100%; height: auto; }\n.trm-link-box { padding: 8px 10px; border-radius: 8px; background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.trm-dialog .trm-row { padding: 8px 0; }\n/* The doubles (docs/design/ta-link.md 4): what a double says, its permissions, its log */\n.trm-tag-double { margin-left: 6px; background: var(--ta-tint-3); color: var(--ta-tint-ink-3); }\n.trm-double .trm-msg-bubble { border-style: dashed; background: var(--ta-main); }\n.trm-tag-agent { margin-left: 6px; background: var(--ta-tint-5); color: var(--ta-tint-ink-5); }\n.trm-member-name .trm-tag-agent { margin-left: 0; }\n.trm-tag-task { margin-left: 6px; background: var(--ta-tint-0); color: var(--ta-tint-ink-0); }\n.trm-task-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-task-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ta-secondary); flex: none; }\n.trm-task-running .trm-task-dot, .trm-task-queued .trm-task-dot, .trm-task-sent .trm-task-dot { background: var(--ta-green); animation: trm-breathe 1.6s ease-in-out infinite; }\n.trm-task-permission .trm-task-dot { background: var(--ta-yellow); }\n.trm-task-done .trm-task-dot { background: var(--ta-green); }\n.trm-task-failed .trm-task-dot, .trm-task-declined .trm-task-dot { background: var(--ta-red); }\n@keyframes trm-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }\n.trm-task-card { margin: 4px 0; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); overflow: hidden; max-width: 560px; }\n.trm-task-card-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.trm-task-card-head:hover { background: var(--ta-hover); }\n.trm-task-card-title { flex: 1; min-width: 0; font-weight: 500; }\n.trm-task-chip { flex: none; padding: 0 7px; border-radius: 6px; background: var(--ta-chip, var(--ta-hover)); color: var(--ta-secondary); font-size: calc(11px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); }\n.trm-task-done .trm-task-chip { background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.trm-task-failed .trm-task-chip, .trm-task-declined .trm-task-chip { background: color-mix(in srgb, var(--ta-red) 12%, transparent); color: var(--ta-red); }\n.trm-task-card-text { padding: 0 12px 8px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.trm-task-card-answer { padding: 8px 12px; border-top: 1px solid var(--ta-border); }\n.trm-try-alone { margin-top: 12px; }\n.trm-chat-joining { display: inline-flex; align-self: center; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 6px 12px; border-radius: 999px; background: var(--ta-hover); color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.trm-agent-pick .trm-member:disabled { cursor: default; opacity: 1; }\n.trm-agent-pick .trm-member:disabled .trm-member-detail { color: var(--ta-green); }\n.trm-member-may { color: var(--ta-secondary); }\n.trm-member-action.trm-on-icon { opacity: 1; color: var(--ta-green); }\n.trm-double-switch, .trm-grant-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }\n.trm-grant-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }\n.trm-grant-who { display: flex; align-items: center; gap: 12px; }\n.trm-grant-reason { margin: 0; padding: 8px 12px; border-left: 3px solid var(--ta-border); border-radius: 0 8px 8px 0; background: var(--ta-side); color: var(--ta-body); line-height: 1.55; overflow-wrap: anywhere; }\n.trm-grant-list { margin: 0; padding: 4px 0; list-style: none; border: 1px solid var(--ta-border-muted); border-radius: 12px; }\n.trm-grant-list .trm-grant-item + .trm-grant-item { border-top: 1px solid var(--ta-border-muted); }\n.trm-grant-field { display: flex; align-items: center; gap: 12px; min-width: 0; }\n.trm-grant-label { flex: none; width: 56px; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }\n.trm-grant-dir { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; min-height: 34px; padding: 0 10px; border: 1px solid var(--ta-border-muted); border-radius: 8px; background: var(--ta-side); color: var(--ta-text); font: inherit; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.trm-grant-dir > svg { flex: none; color: var(--ta-muted); }\n.trm-chips { display: flex; flex-wrap: wrap; gap: 6px; }\n.trm-chip { min-height: 30px; padding: 0 12px; border: 1px solid var(--ta-border-muted); border-radius: 999px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.trm-chip-on { border-color: var(--ta-green); background: var(--ta-hover); color: var(--ta-text); font-weight: 500; }\n.trm-panel-note { display: block; margin: 0 10px 8px; }\n.trm-log-label { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }\n.trm-logs { margin: 0; padding: 0; list-style: none; }\n.trm-log { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; }\n.trm-log + .trm-log { border-top: 1px solid var(--ta-border-muted); border-radius: 0; }\n.trm-log-head { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.trm-log-who { flex: 1; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-log-time { flex: none; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.trm-log-asked { color: var(--ta-text); line-height: 1.5; overflow-wrap: anywhere; }\n.trm-log-answer { padding-left: 10px; border-left: 2px solid var(--ta-border-muted); color: var(--ta-secondary); line-height: 1.5; overflow-wrap: anywhere; }\n.trm-log-meta { color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.trm-log-meta.trm-log-bad { color: var(--ta-yellow); }\n.trm-log-empty { display: flex; flex-direction: column; padding: 12px 0; }\n[data-layout='compact'] .trm-room-head-sub { display: none; }\n[data-layout='compact'] .trm-faces.trm-on-icon, [data-layout='compact'] .trm-faces.trm-on-icon .trm-faces-one { background: none; }\n[data-layout='compact'] .trm-chat-col, [data-layout='compact'] .trm-chat-bottom { padding-left: 12px; padding-right: 12px; }\n[data-layout='compact'] .trm-msg-col { max-width: calc(100% - 40px); }\n[data-layout='compact'] .trm-page-line { width: calc(100% - 24px); }\n@media (max-width: 480px) { .trm-answers .ta-button { padding-left: 10px; padding-right: 10px; } }\n@media (prefers-reduced-motion: reduce) { .trm-room, .trm-page-line { transition: none; } }\n";
|
|
2
|
+
export declare const STYLE = "\n.trm-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.trm-quiet { color: var(--ta-muted); }\n/* The head of the page (RoomsHead): over the list and the room on a computer, as the sidebar and a channel's head */\n.trm-head { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; height: 100%; }\n.trm-head-center { justify-content: center; padding: 0 44px; }\n.trm-head-title { font-weight: 600; font-size: calc(14.5px * var(--ta-font-scale)); }\n.trm-head-end { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; }\n.ta-main-head:has(.trm-head-split) { padding-left: 0; }\n.ta-main-head-view:has(.trm-head-split) { align-self: stretch; }\n.trm-head-split { align-items: stretch; }\n.trm-head-list { flex: none; display: flex; align-items: center; justify-content: space-between; width: 320px; box-sizing: border-box; padding: 0 8px 0 22px; background: var(--ta-side); border-right: 1px solid var(--ta-border-muted); }\n.trm-head-room { flex: 1; min-width: 0; display: flex; align-items: center; padding-left: 20px; }\n/* The list, as the sidebar of the double: faces, a name and when, a line under it */\n.trm-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; }\n.trm-page > .trm-list { max-width: 720px; margin: 0 auto; }\n.trm-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 10px calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n.trm-section h3 { display: flex; align-items: center; height: 30px; margin: 0; padding: 0 10px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; letter-spacing: 0.02em; color: var(--ta-muted); }\n.trm-card { margin: 0; padding: 2px 6px; list-style: none; border-radius: 14px; background: var(--ta-raised); }\n.trm-card .trm-row { padding: 10px 4px; }\n.trm-rooms { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }\n.trm-room { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; margin: 1px 0; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 120ms; }\n@media (hover: hover) { .trm-room:hover, .trm-friend:hover, li.trm-member:hover, button.trm-member:hover { background: var(--ta-hover); } }\n.trm-room:active { background: var(--ta-hover); }\n.trm-room.trm-active { background: var(--ta-selected, var(--ta-hover-strong)); }\n.trm-room:focus-visible { outline: 1px solid var(--ta-border-focus); outline-offset: -1px; }\n.trm-room-out { opacity: .55; }\n.trm-room-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }\n.trm-room-line { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.trm-room-name { flex: 0 1 auto; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; line-height: calc(19px * var(--ta-font-scale)); }\n.trm-room-time { flex: none; margin-left: auto; padding-left: 4px; color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.trm-room-preview { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }\n.trm-tag { flex: none; align-self: center; padding: 0 6px; border-radius: 6px; background: var(--ta-chip, var(--ta-hover)); color: var(--ta-secondary); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 400; line-height: calc(17px * var(--ta-font-scale)); }\n.trm-tag-friend { background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.trm-friend { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 9px 10px; box-sizing: border-box; border-radius: 12px; }\n.trm-hover-only { opacity: 0; transition: opacity 120ms; }\n.trm-friend:hover .trm-hover-only, .trm-hover-only:focus-visible { opacity: 1; }\n@media (hover: none) { .trm-hover-only { display: none; } }\n.trm-me { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 0; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-link { padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }\n.trm-link:hover { background: var(--ta-hover); }\n.trm-link.trm-danger { color: var(--ta-red); }\n/* The faces: those of channels (ui.Face), or a letter in a circle in an app of before */\n.ta-face { --ta-face-ring: var(--ta-side); }\n.trm-chat .ta-face, .trm-panel .ta-face, .trm-head .ta-face { --ta-face-ring: var(--ta-main); }\n.trm-face { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; line-height: 1; user-select: none; }\n.trm-face i { position: absolute; right: -1px; bottom: -1px; width: 28%; height: 28%; min-width: 7px; min-height: 7px; border-radius: 50%; border: 2px solid var(--ta-main); }\n.trm-on { background: var(--ta-green); }\n.trm-off { background: var(--ta-border-field); }\n.trm-room-face { position: relative; flex: none; display: inline-flex; }\n.trm-room-face-mark { position: absolute; right: -3px; bottom: -3px; z-index: 2; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ta-raised); color: var(--ta-text); box-shadow: 0 0 0 2px var(--ta-side); }\n.trm-unread { position: absolute; top: -2px; right: -2px; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n/* Beside each other, on a computer or a tablet: the list on the colour of the sidebar */\n.trm-split { display: grid; grid-template-columns: 320px minmax(0, 1fr); flex: 1; min-height: 0; height: 100%; }\n.trm-split-list { min-height: 0; overflow-y: auto; overscroll-behavior: none; background: var(--ta-side); border-right: 1px solid var(--ta-border-muted); }\n.trm-split-room { display: flex; flex-direction: column; min-width: 0; min-height: 0; }\n/* A room (room-view.tsx): a group chat, as a channel */\n.trm-room-page { display: flex; flex-direction: column; flex: 1; height: 100%; min-height: 0; background: var(--ta-main); color: var(--ta-text); }\n.trm-room-bar { flex: none; display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 6px 12px; box-sizing: border-box; }\n.trm-room-head { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }\n.trm-room-head-title { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; white-space: nowrap; }\n.trm-room-head-title strong { font-size: calc(14.5px * var(--ta-font-scale)); font-weight: 600; }\n.trm-room-head-count { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-room-head-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ta-green); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-room-head-sub.trm-quiet { color: var(--ta-muted); }\n.trm-faces { display: flex; align-items: center; flex: none; height: 32px; padding: 0 6px 0 10px; border: 0; border-radius: 999px; background: none; color: var(--ta-secondary); font: inherit; cursor: pointer; transition: background 120ms; }\n.trm-faces.trm-on-icon { background: var(--ta-hover); }\n@media (hover: hover) { .trm-faces:hover { background: var(--ta-hover); } .trm-faces:hover .trm-faces-one { background: var(--ta-hover); } }\n.trm-faces-one { display: inline-flex; margin-left: -4px; padding: 1px; border-radius: 50%; background: var(--ta-main); }\n.trm-faces.trm-on-icon .trm-faces-one { background: var(--ta-hover); }\n.trm-faces-more { margin-left: 4px; font-size: calc(12px * var(--ta-font-scale)); }\n.trm-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.trm-icon:hover:not(:disabled) { background: var(--ta-hover-strong); color: var(--ta-text); }\n.trm-icon.trm-danger:hover:not(:disabled) { color: var(--ta-red); }\n.trm-page-line { flex: none; display: flex; align-items: center; gap: 10px; width: calc(100% - 48px); max-width: var(--ta-col); margin: 8px auto 0; padding: 8px 10px 8px 8px; box-sizing: border-box; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-side); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; transition: background 120ms; }\n.trm-page-line:hover { background: var(--ta-hover); }\n.trm-page-line-icon { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--ta-tint-3); color: var(--ta-tint-ink-3); }\n.trm-page-line-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-secondary); }\n.trm-page-line-open { display: inline-flex; align-items: center; gap: 2px; flex: none; color: var(--ta-link); font-weight: 500; }\n.trm-chat { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overflow-anchor: none; overscroll-behavior: none; }\n.trm-chat-col { position: relative; display: flex; flex-direction: column; gap: 4px; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 12px; box-sizing: border-box; }\n.trm-chat-time { align-self: center; margin: 14px 0 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.trm-chat-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12vh auto 0; max-width: 360px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); text-align: center; }\n.trm-chat-empty strong { margin-top: 6px; color: var(--ta-text); font-size: calc(16px * var(--ta-font-scale)); }\n.trm-chat-hint { margin-top: 4px; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.6; }\n.trm-mine { margin: 6px 0 2px; }\n.trm-msg { display: flex; align-items: flex-start; gap: 10px; }\n.trm-msg.trm-first { margin-top: 10px; }\n.trm-msg-face { display: flex; justify-content: center; width: 28px; flex: none; }\n.trm-msg-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: min(84%, var(--ta-col)); }\n.trm-msg-name { margin: 0 2px 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(16px * var(--ta-font-scale)); }\n.trm-msg-bubble { min-width: 0; max-width: 100%; padding: 9px 14px; border: 1px solid var(--ta-border-muted); border-radius: 5px 16px 16px 16px; background: var(--ta-side); color: var(--ta-body); line-height: 1.6; overflow-wrap: anywhere; }\n.trm-msg-bubble pre { max-width: 100%; overflow-x: auto; }\n.trm-chat-bottom { flex: none; width: 100%; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 8px 24px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n/* Above the keyboard the home indicator is not there: no room for it, as under the box of a conversation. */\n:root[data-keyboard] .trm-chat-bottom { padding-bottom: 8px; }\n:root[data-keyboard-moving] .trm-chat-bottom { transition: padding-bottom 450ms cubic-bezier(0.15, 0.75, 0.2, 1); }\n/* The members of the room shown (members-view.tsx), in the workbench */\n.trm-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--ta-main); color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); }\n.trm-panel-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 12px; }\n.trm-panel-top { display: flex; align-items: center; gap: 12px; padding: 14px 10px 10px; }\n.trm-panel-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.trm-panel-title strong { font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; }\n.trm-panel-title span { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-panel-label { padding: 10px 10px 6px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-panel-members { margin: 0; padding: 0; list-style: none; }\n.trm-member { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; box-sizing: border-box; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; text-align: left; }\nbutton.trm-member { cursor: pointer; }\n.trm-member-plus { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ta-hover); color: var(--ta-secondary); }\n.trm-member-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }\n.trm-member-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; }\n.trm-member-detail { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-member-detail.trm-live { color: var(--ta-green); }\n.trm-member-action { opacity: 0; transition: opacity 120ms; }\n.trm-member:hover .trm-member-action, .trm-member-action:focus-visible { opacity: 1; }\n@media (hover: none) { .trm-member-action { opacity: 1; } }\n.trm-panel-sep { height: 1px; margin: 8px 10px; background: var(--ta-border-muted); }\n.trm-setting { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; }\n.trm-setting:hover { background: var(--ta-hover); }\n.trm-setting > svg { flex: none; color: var(--ta-muted); }\n.trm-setting-label { flex: none; }\n.trm-setting-value { flex: 1; text-align: right; color: var(--ta-muted); }\n.trm-panel-foot { display: flex; justify-content: center; flex: none; padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ta-border-muted); }\n.trm-panel-foot .trm-link { width: 100%; min-height: 36px; border-radius: 10px; font-weight: 500; }\n/* Dialogs */\n.trm-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; }\n.trm-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.trm-row-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.trm-row-line { display: flex; align-items: center; gap: 4px; min-width: 0; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.trm-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }\n.trm-answers { flex: none; display: flex; gap: 6px; }\n.trm-dialog { display: flex; flex-direction: column; gap: 12px; width: min(420px, calc(100vw - 48px)); }\n.trm-lead { margin: 0; line-height: 1.5; }\n.trm-note, .trm-hint { margin: 0; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; }\n.trm-hint { text-align: center; color: var(--ta-secondary); }\n.trm-error { margin: 0; color: var(--ta-red); font-size: calc(12.5px * var(--ta-font-scale)); }\n.trm-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }\n.trm-center { justify-content: center; }\n.trm-join { display: flex; align-items: center; gap: 12px; }\n.trm-friends-page { max-width: 720px; margin: 0 auto; width: 100%; overflow-y: auto; height: 100%; }\n.trm-friends-other { gap: 18px; padding-top: 4px; }\n.trm-friends-entry { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--ta-surface, transparent); color: inherit; font: inherit; cursor: pointer; text-align: left; }\n@media (hover: hover) { .trm-friends-entry:hover { background: var(--ta-hover); } }\n.trm-friends-entry-label { font-weight: 500; }\n.trm-grow { flex: 1; }\n.trm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); }\n.trm-join-name { font-size: calc(15px * var(--ta-font-scale)); }\n.trm-dialog .trm-join:has(.trm-join-name) { flex-direction: column; text-align: center; gap: 8px; }\n.trm-member-friend { color: var(--ta-muted); }\n.trm-invite { align-items: stretch; }\n.trm-qr { align-self: center; width: 188px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--ta-border-muted); }\n.trm-qr svg { display: block; width: 100%; height: auto; }\n.trm-link-box { padding: 8px 10px; border-radius: 8px; background: var(--ta-code); font-family: var(--ta-mono); font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.trm-dialog .trm-row { padding: 8px 0; }\n/* The doubles (docs/design/ta-link.md 4): what a double says, its permissions, its log */\n.trm-tag-double { margin-left: 6px; background: var(--ta-tint-3); color: var(--ta-tint-ink-3); }\n.trm-double .trm-msg-bubble { border-style: dashed; background: var(--ta-main); }\n.trm-tag-agent { margin-left: 6px; background: var(--ta-tint-5); color: var(--ta-tint-ink-5); }\n.trm-member-name .trm-tag-agent { margin-left: 0; }\n.trm-tag-task { margin-left: 6px; background: var(--ta-tint-0); color: var(--ta-tint-ink-0); }\n.trm-task-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-task-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ta-secondary); flex: none; }\n.trm-task-running .trm-task-dot, .trm-task-queued .trm-task-dot, .trm-task-sent .trm-task-dot { background: var(--ta-green); animation: trm-breathe 1.6s ease-in-out infinite; }\n.trm-task-permission .trm-task-dot { background: var(--ta-yellow); }\n.trm-task-done .trm-task-dot { background: var(--ta-green); }\n.trm-task-failed .trm-task-dot, .trm-task-declined .trm-task-dot { background: var(--ta-red); }\n@keyframes trm-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }\n.trm-task-card { margin: 4px 0; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); overflow: hidden; max-width: 560px; }\n.trm-task-card-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.trm-task-card-head:hover { background: var(--ta-hover); }\n.trm-task-card-title { flex: 1; min-width: 0; font-weight: 500; }\n.trm-task-chip { flex: none; padding: 0 7px; border-radius: 6px; background: var(--ta-chip, var(--ta-hover)); color: var(--ta-secondary); font-size: calc(11px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); }\n.trm-task-done .trm-task-chip { background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.trm-task-failed .trm-task-chip, .trm-task-declined .trm-task-chip { background: color-mix(in srgb, var(--ta-red) 12%, transparent); color: var(--ta-red); }\n.trm-task-card-text { padding: 0 12px 8px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.trm-task-card-answer { padding: 8px 12px; border-top: 1px solid var(--ta-border); }\n.trm-try-alone { margin-top: 12px; }\n.trm-chat-joining { display: inline-flex; align-self: center; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 6px 12px; border-radius: 999px; background: var(--ta-hover); color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.trm-agent-pick .trm-member:disabled { cursor: default; opacity: 1; }\n.trm-agent-pick .trm-member:disabled .trm-member-detail { color: var(--ta-green); }\n.trm-member-may { color: var(--ta-secondary); }\n.trm-member-action.trm-on-icon { opacity: 1; color: var(--ta-green); }\n.trm-double-switch, .trm-grant-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }\n.trm-grant-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }\n.trm-grant-who { display: flex; align-items: center; gap: 12px; }\n.trm-grant-reason { margin: 0; padding: 8px 12px; border-left: 3px solid var(--ta-border); border-radius: 0 8px 8px 0; background: var(--ta-side); color: var(--ta-body); line-height: 1.55; overflow-wrap: anywhere; }\n.trm-grant-list { margin: 0; padding: 4px 0; list-style: none; border: 1px solid var(--ta-border-muted); border-radius: 12px; }\n.trm-grant-list .trm-grant-item + .trm-grant-item { border-top: 1px solid var(--ta-border-muted); }\n.trm-grant-field { display: flex; align-items: center; gap: 12px; min-width: 0; }\n.trm-grant-label { flex: none; width: 56px; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }\n.trm-grant-dir { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; min-height: 34px; padding: 0 10px; border: 1px solid var(--ta-border-muted); border-radius: 8px; background: var(--ta-side); color: var(--ta-text); font: inherit; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.trm-grant-dir > svg { flex: none; color: var(--ta-muted); }\n.trm-chips { display: flex; flex-wrap: wrap; gap: 6px; }\n.trm-chip { min-height: 30px; padding: 0 12px; border: 1px solid var(--ta-border-muted); border-radius: 999px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.trm-chip-on { border-color: var(--ta-green); background: var(--ta-hover); color: var(--ta-text); font-weight: 500; }\n.trm-panel-note { display: block; margin: 0 10px 8px; }\n.trm-log-label { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }\n.trm-logs { margin: 0; padding: 0; list-style: none; }\n.trm-log { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; }\n.trm-log + .trm-log { border-top: 1px solid var(--ta-border-muted); border-radius: 0; }\n.trm-log-head { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.trm-log-who { flex: 1; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); }\n.trm-log-time { flex: none; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.trm-log-asked { color: var(--ta-text); line-height: 1.5; overflow-wrap: anywhere; }\n.trm-log-answer { padding-left: 10px; border-left: 2px solid var(--ta-border-muted); color: var(--ta-secondary); line-height: 1.5; overflow-wrap: anywhere; }\n.trm-log-meta { color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.trm-log-meta.trm-log-bad { color: var(--ta-yellow); }\n.trm-log-empty { display: flex; flex-direction: column; padding: 12px 0; }\n[data-layout='compact'] .trm-room-head-sub { display: none; }\n[data-layout='compact'] .trm-faces.trm-on-icon, [data-layout='compact'] .trm-faces.trm-on-icon .trm-faces-one { background: none; }\n[data-layout='compact'] .trm-chat-col, [data-layout='compact'] .trm-chat-bottom { padding-left: 12px; padding-right: 12px; }\n[data-layout='compact'] .trm-msg-col { max-width: calc(100% - 40px); }\n[data-layout='compact'] .trm-page-line { width: calc(100% - 24px); }\n@media (max-width: 480px) { .trm-answers .ta-button { padding-left: 10px; padding-right: 10px; } }\n@media (prefers-reduced-motion: reduce) { .trm-room, .trm-page-line { transition: none; } }\n";
|
|
3
3
|
export declare function injectStyle(): () => void;
|
|
4
4
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -143,13 +143,12 @@ button.trm-member { cursor: pointer; }
|
|
|
143
143
|
.trm-center { justify-content: center; }
|
|
144
144
|
.trm-join { display: flex; align-items: center; gap: 12px; }
|
|
145
145
|
.trm-friends-page { max-width: 720px; margin: 0 auto; width: 100%; overflow-y: auto; height: 100%; }
|
|
146
|
-
.trm-friends-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0 20px; }
|
|
147
146
|
.trm-friends-other { gap: 18px; padding-top: 4px; }
|
|
148
147
|
.trm-friends-entry { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--ta-surface, transparent); color: inherit; font: inherit; cursor: pointer; text-align: left; }
|
|
149
148
|
@media (hover: hover) { .trm-friends-entry:hover { background: var(--ta-hover); } }
|
|
150
149
|
.trm-friends-entry-label { font-weight: 500; }
|
|
151
150
|
.trm-grow { flex: 1; }
|
|
152
|
-
.trm-dot { width:
|
|
151
|
+
.trm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); }
|
|
153
152
|
.trm-join-name { font-size: calc(15px * var(--ta-font-scale)); }
|
|
154
153
|
.trm-dialog .trm-join:has(.trm-join-name) { flex-direction: column; text-align: center; gap: 8px; }
|
|
155
154
|
.trm-member-friend { color: var(--ta-muted); }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-rooms",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: rooms shared with other Ta through the relay, end to end: who asks to join and the owner's answer, your rooms and their members, your Ta friends, and links that invite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/cellbang/
|
|
8
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/cellbang/
|
|
10
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|