@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
|
@@ -328,6 +328,168 @@ var NearbyMeetUtil;
|
|
|
328
328
|
import { createSocket } from "node:dgram";
|
|
329
329
|
import { createConnection, createServer } from "node:net";
|
|
330
330
|
import { networkInterfaces } from "node:os";
|
|
331
|
+
|
|
332
|
+
// ../ta-relay/esm/common/relay-bytes.js
|
|
333
|
+
var RelayBytes;
|
|
334
|
+
(function(RelayBytes2) {
|
|
335
|
+
function random(length) {
|
|
336
|
+
return globalThis.crypto.getRandomValues(new Uint8Array(length));
|
|
337
|
+
}
|
|
338
|
+
RelayBytes2.random = random;
|
|
339
|
+
function toBase64(bytes) {
|
|
340
|
+
let binary = "";
|
|
341
|
+
for (const byte of bytes) {
|
|
342
|
+
binary += String.fromCharCode(byte);
|
|
343
|
+
}
|
|
344
|
+
return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
345
|
+
}
|
|
346
|
+
RelayBytes2.toBase64 = toBase64;
|
|
347
|
+
function fromBase64(text) {
|
|
348
|
+
if (!/^[A-Za-z0-9_-]*$/.test(text)) {
|
|
349
|
+
throw new Error("Not base64url.");
|
|
350
|
+
}
|
|
351
|
+
const binary = atob(text.replace(/-/g, "+").replace(/_/g, "/"));
|
|
352
|
+
const bytes = new Uint8Array(binary.length);
|
|
353
|
+
for (let i = 0;i < binary.length; i++) {
|
|
354
|
+
bytes[i] = binary.charCodeAt(i);
|
|
355
|
+
}
|
|
356
|
+
return bytes;
|
|
357
|
+
}
|
|
358
|
+
RelayBytes2.fromBase64 = fromBase64;
|
|
359
|
+
function concat(...parts) {
|
|
360
|
+
const bytes = new Uint8Array(parts.reduce((length, part) => length + part.length, 0));
|
|
361
|
+
let offset = 0;
|
|
362
|
+
for (const part of parts) {
|
|
363
|
+
bytes.set(part, offset);
|
|
364
|
+
offset += part.length;
|
|
365
|
+
}
|
|
366
|
+
return bytes;
|
|
367
|
+
}
|
|
368
|
+
RelayBytes2.concat = concat;
|
|
369
|
+
})(RelayBytes || (RelayBytes = {}));
|
|
370
|
+
|
|
371
|
+
// ../ta-relay/esm/common/relay-identity.js
|
|
372
|
+
var encoder = new TextEncoder;
|
|
373
|
+
var decoder = new TextDecoder;
|
|
374
|
+
var subtle = () => globalThis.crypto.subtle;
|
|
375
|
+
var SIGN = { name: "ECDSA", namedCurve: "P-256" };
|
|
376
|
+
var BOX = { name: "ECDH", namedCurve: "P-256" };
|
|
377
|
+
var SIGNATURE = { name: "ECDSA", hash: "SHA-256" };
|
|
378
|
+
var RelayKeys;
|
|
379
|
+
(function(RelayKeys2) {
|
|
380
|
+
async function hkdf(key, salt, info) {
|
|
381
|
+
const secret = await subtle().importKey("raw", key, "HKDF", false, ["deriveBits"]);
|
|
382
|
+
const bits = await subtle().deriveBits({ name: "HKDF", hash: "SHA-256", salt, info: encoder.encode(info) }, secret, 256);
|
|
383
|
+
return new Uint8Array(bits);
|
|
384
|
+
}
|
|
385
|
+
RelayKeys2.hkdf = hkdf;
|
|
386
|
+
async function sha256(bytes) {
|
|
387
|
+
const data = typeof bytes === "string" ? encoder.encode(bytes) : bytes;
|
|
388
|
+
return new Uint8Array(await subtle().digest("SHA-256", data));
|
|
389
|
+
}
|
|
390
|
+
RelayKeys2.sha256 = sha256;
|
|
391
|
+
async function hash(text) {
|
|
392
|
+
return RelayBytes.toBase64(await sha256(text));
|
|
393
|
+
}
|
|
394
|
+
RelayKeys2.hash = hash;
|
|
395
|
+
async function hmac(key, text) {
|
|
396
|
+
const imported = await subtle().importKey("raw", key, { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
|
|
397
|
+
return RelayBytes.toBase64(new Uint8Array(await subtle().sign("HMAC", imported, encoder.encode(text))));
|
|
398
|
+
}
|
|
399
|
+
RelayKeys2.hmac = hmac;
|
|
400
|
+
function aesKey(key) {
|
|
401
|
+
return subtle().importKey("raw", key, "AES-GCM", false, ["encrypt", "decrypt"]);
|
|
402
|
+
}
|
|
403
|
+
RelayKeys2.aesKey = aesKey;
|
|
404
|
+
async function seal(key, text) {
|
|
405
|
+
const iv = RelayBytes.random(12);
|
|
406
|
+
const sealed = await subtle().encrypt({ name: "AES-GCM", iv }, key, encoder.encode(text));
|
|
407
|
+
return RelayBytes.toBase64(RelayBytes.concat(iv, new Uint8Array(sealed)));
|
|
408
|
+
}
|
|
409
|
+
RelayKeys2.seal = seal;
|
|
410
|
+
async function open(key, sealed) {
|
|
411
|
+
const bytes = RelayBytes.fromBase64(sealed);
|
|
412
|
+
const opened = await subtle().decrypt({ name: "AES-GCM", iv: bytes.subarray(0, 12) }, key, bytes.subarray(12));
|
|
413
|
+
return decoder.decode(opened);
|
|
414
|
+
}
|
|
415
|
+
RelayKeys2.open = open;
|
|
416
|
+
})(RelayKeys || (RelayKeys = {}));
|
|
417
|
+
var RelayIdentityUtil;
|
|
418
|
+
(function(RelayIdentityUtil2) {
|
|
419
|
+
async function create(name, now = Date.now()) {
|
|
420
|
+
const sign2 = await subtle().generateKey(SIGN, true, ["sign", "verify"]);
|
|
421
|
+
const box = await subtle().generateKey(BOX, true, ["deriveBits"]);
|
|
422
|
+
const raw = async (key) => RelayBytes.toBase64(new Uint8Array(await subtle().exportKey("raw", key)));
|
|
423
|
+
const [signPublic, boxPublic] = await Promise.all([raw(sign2.publicKey), raw(box.publicKey)]);
|
|
424
|
+
return {
|
|
425
|
+
id: await id(signPublic, boxPublic),
|
|
426
|
+
name,
|
|
427
|
+
sign: signPublic,
|
|
428
|
+
box: boxPublic,
|
|
429
|
+
signKey: await subtle().exportKey("jwk", sign2.privateKey),
|
|
430
|
+
boxKey: await subtle().exportKey("jwk", box.privateKey),
|
|
431
|
+
createdAt: now
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
RelayIdentityUtil2.create = create;
|
|
435
|
+
async function id(sign2, box) {
|
|
436
|
+
const digest = await RelayKeys.sha256(RelayBytes.concat(RelayBytes.fromBase64(sign2), RelayBytes.fromBase64(box)));
|
|
437
|
+
return RelayBytes.toBase64(digest.subarray(0, 16));
|
|
438
|
+
}
|
|
439
|
+
RelayIdentityUtil2.id = id;
|
|
440
|
+
async function check(identity) {
|
|
441
|
+
try {
|
|
442
|
+
if (identity.id !== await id(identity.sign, identity.box)) {
|
|
443
|
+
return false;
|
|
444
|
+
}
|
|
445
|
+
await Promise.all([importSign(identity.sign), importBox(identity.box)]);
|
|
446
|
+
return true;
|
|
447
|
+
} catch (_a) {
|
|
448
|
+
return false;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
RelayIdentityUtil2.check = check;
|
|
452
|
+
function publicOf(identity) {
|
|
453
|
+
return withLook({ id: identity.id, name: identity.name, sign: identity.sign, box: identity.box }, identity.look);
|
|
454
|
+
}
|
|
455
|
+
RelayIdentityUtil2.publicOf = publicOf;
|
|
456
|
+
function isLook(look) {
|
|
457
|
+
return typeof look === "string" && /^[a-z][a-z0-9-]{0,31}$/.test(look);
|
|
458
|
+
}
|
|
459
|
+
RelayIdentityUtil2.isLook = isLook;
|
|
460
|
+
function withLook(value, look) {
|
|
461
|
+
const { look: _, ...rest } = value;
|
|
462
|
+
return isLook(look) ? { ...rest, look } : rest;
|
|
463
|
+
}
|
|
464
|
+
RelayIdentityUtil2.withLook = withLook;
|
|
465
|
+
async function sign(identity, text) {
|
|
466
|
+
const key = await subtle().importKey("jwk", identity.signKey, SIGN, false, ["sign"]);
|
|
467
|
+
return RelayBytes.toBase64(new Uint8Array(await subtle().sign(SIGNATURE, key, encoder.encode(text))));
|
|
468
|
+
}
|
|
469
|
+
RelayIdentityUtil2.sign = sign;
|
|
470
|
+
async function verify(signPublic, text, signature) {
|
|
471
|
+
try {
|
|
472
|
+
return await subtle().verify(SIGNATURE, await importSign(signPublic), RelayBytes.fromBase64(signature), encoder.encode(text));
|
|
473
|
+
} catch (_a) {
|
|
474
|
+
return false;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
RelayIdentityUtil2.verify = verify;
|
|
478
|
+
async function agree(identity, otherBox, salt, info) {
|
|
479
|
+
const own = await subtle().importKey("jwk", identity.boxKey, BOX, false, ["deriveBits"]);
|
|
480
|
+
const shared = await subtle().deriveBits({ name: "ECDH", public: await importBox(otherBox) }, own, 256);
|
|
481
|
+
return RelayKeys.hkdf(new Uint8Array(shared), encoder.encode(salt), info);
|
|
482
|
+
}
|
|
483
|
+
RelayIdentityUtil2.agree = agree;
|
|
484
|
+
function importSign(raw) {
|
|
485
|
+
return subtle().importKey("raw", RelayBytes.fromBase64(raw), SIGN, false, ["verify"]);
|
|
486
|
+
}
|
|
487
|
+
function importBox(raw) {
|
|
488
|
+
return subtle().importKey("raw", RelayBytes.fromBase64(raw), BOX, false, []);
|
|
489
|
+
}
|
|
490
|
+
})(RelayIdentityUtil || (RelayIdentityUtil = {}));
|
|
491
|
+
|
|
492
|
+
// web-src/nearby-net.ts
|
|
331
493
|
var OFFERS = ["show", "work"];
|
|
332
494
|
var MAX_LINE = 1500000;
|
|
333
495
|
var SEND_MS = 4000;
|
|
@@ -367,7 +529,8 @@ var NearbyNetUtil;
|
|
|
367
529
|
x: data.x,
|
|
368
530
|
h: data.h,
|
|
369
531
|
...offers.length ? { o: [...new Set(offers)] } : {},
|
|
370
|
-
...data.m === 1 ? { m: 1 } : {}
|
|
532
|
+
...data.m === 1 ? { m: 1 } : {},
|
|
533
|
+
...RelayIdentityUtil.isLook(data.l) ? { l: data.l } : {}
|
|
371
534
|
};
|
|
372
535
|
} catch {
|
|
373
536
|
return;
|
|
@@ -911,6 +1074,7 @@ var GATHER_MS = 5 * 60000;
|
|
|
911
1074
|
var PROPOSE_GAP_MS = 2 * 60 * 60000;
|
|
912
1075
|
var SKEW_MS = 5 * 60000;
|
|
913
1076
|
var TICK_MS = 2000;
|
|
1077
|
+
var IDENTITY_MS = 1e4;
|
|
914
1078
|
var INITIATIVE = "@celljs/ta-initiative";
|
|
915
1079
|
var NOTIFY = "@celljs/ta-notify";
|
|
916
1080
|
var ROOM_KIND = "nearby.room";
|
|
@@ -933,6 +1097,7 @@ class NearbyService {
|
|
|
933
1097
|
sent = new Map;
|
|
934
1098
|
received = new Map;
|
|
935
1099
|
identity;
|
|
1100
|
+
identityAt = 0;
|
|
936
1101
|
friends = [];
|
|
937
1102
|
friendsAt = 0;
|
|
938
1103
|
error;
|
|
@@ -1023,7 +1188,11 @@ class NearbyService {
|
|
|
1023
1188
|
return {
|
|
1024
1189
|
visible: !!this.visible,
|
|
1025
1190
|
...this.visible?.until !== undefined ? { until: this.visible.until } : {},
|
|
1026
|
-
self: {
|
|
1191
|
+
self: {
|
|
1192
|
+
name: this.selfName(),
|
|
1193
|
+
face: this.identity ? FaceUtil.of(this.identity.id) : 0,
|
|
1194
|
+
...this.identity?.look ? { look: this.identity.look } : {}
|
|
1195
|
+
},
|
|
1027
1196
|
peers: this.peers(),
|
|
1028
1197
|
invites: [...this.received.values()].filter((invite) => now - invite.at < INVITE_MS).map(({ link: _, ...invite }) => invite),
|
|
1029
1198
|
...this.shown ? { shown: NearbyService.withoutData(this.shown) } : {},
|
|
@@ -1035,7 +1204,15 @@ class NearbyService {
|
|
|
1035
1204
|
};
|
|
1036
1205
|
}
|
|
1037
1206
|
peers() {
|
|
1038
|
-
return [...this.heard.values()].sort((a, b) => a.since - b.since).map(({ data, since, friend }) => ({
|
|
1207
|
+
return [...this.heard.values()].sort((a, b) => a.since - b.since).map(({ data, since, friend }) => ({
|
|
1208
|
+
e: data.e,
|
|
1209
|
+
name: data.n,
|
|
1210
|
+
face: data.f,
|
|
1211
|
+
...data.l ? { look: data.l } : {},
|
|
1212
|
+
...friend ? { friend } : {},
|
|
1213
|
+
offers: data.o ?? [],
|
|
1214
|
+
since
|
|
1215
|
+
}));
|
|
1039
1216
|
}
|
|
1040
1217
|
section() {
|
|
1041
1218
|
if (!this.visible) {
|
|
@@ -1114,6 +1291,7 @@ class NearbyService {
|
|
|
1114
1291
|
e: keys.e,
|
|
1115
1292
|
n: this.selfName(),
|
|
1116
1293
|
f: this.identity ? FaceUtil.of(this.identity.id) : 0,
|
|
1294
|
+
...this.identity?.look ? { l: this.identity.look } : {},
|
|
1117
1295
|
p: port,
|
|
1118
1296
|
a: NearbyNetUtil.addresses(),
|
|
1119
1297
|
x: keys.x,
|
|
@@ -1132,9 +1310,10 @@ class NearbyService {
|
|
|
1132
1310
|
return this.settings.hideName ? "" : (this.identity?.name ?? "").slice(0, 40);
|
|
1133
1311
|
}
|
|
1134
1312
|
async loadIdentity() {
|
|
1313
|
+
this.identityAt = this.now();
|
|
1135
1314
|
try {
|
|
1136
1315
|
const identity = await this.host.rooms.getIdentity();
|
|
1137
|
-
this.identity = { id: identity.id, name: identity.name };
|
|
1316
|
+
this.identity = { id: identity.id, name: identity.name, ...identity.look ? { look: identity.look } : {} };
|
|
1138
1317
|
} catch {}
|
|
1139
1318
|
}
|
|
1140
1319
|
async tick() {
|
|
@@ -1147,6 +1326,9 @@ class NearbyService {
|
|
|
1147
1326
|
await this.publish(true);
|
|
1148
1327
|
return;
|
|
1149
1328
|
}
|
|
1329
|
+
if (this.keys && now - this.identityAt >= IDENTITY_MS) {
|
|
1330
|
+
await this.loadIdentity();
|
|
1331
|
+
}
|
|
1150
1332
|
if (this.keys && now - this.keys.createdAt >= SLOT_MS) {
|
|
1151
1333
|
this.previous = this.keys;
|
|
1152
1334
|
this.keys = new NearbyKeys(now);
|
|
@@ -1331,6 +1513,7 @@ class NearbyService {
|
|
|
1331
1513
|
title: String(message.title ?? "").slice(0, 80) || NearbyTexts.nearby(),
|
|
1332
1514
|
name: heard.data.n,
|
|
1333
1515
|
face: heard.data.f,
|
|
1516
|
+
...heard.data.l ? { look: heard.data.l } : {},
|
|
1334
1517
|
...heard.friend ? { friend: heard.friend } : {},
|
|
1335
1518
|
...typeof message.why === "string" && message.why ? { why: message.why.slice(0, 200) } : {},
|
|
1336
1519
|
at: this.now(),
|
|
@@ -1405,6 +1588,7 @@ class NearbyService {
|
|
|
1405
1588
|
kind: message.kind,
|
|
1406
1589
|
name: heard.data.n,
|
|
1407
1590
|
face: heard.data.f,
|
|
1591
|
+
...heard.data.l ? { look: heard.data.l } : {},
|
|
1408
1592
|
...heard.friend ? { friend: heard.friend } : {},
|
|
1409
1593
|
ask: mode === "ask",
|
|
1410
1594
|
at: this.now(),
|
|
@@ -1586,6 +1770,7 @@ class NearbyService {
|
|
|
1586
1770
|
e: heard.data.e,
|
|
1587
1771
|
name: heard.data.n,
|
|
1588
1772
|
face: heard.data.f,
|
|
1773
|
+
...heard.data.l ? { look: heard.data.l } : {},
|
|
1589
1774
|
...heard.friend ? { friend: heard.friend } : {},
|
|
1590
1775
|
line: String(message.line ?? "").slice(0, 200),
|
|
1591
1776
|
why: String(message.why ?? "").slice(0, 300),
|
|
@@ -4,6 +4,7 @@ exports.NearbyChannel = exports.NearbyBeacon = exports.NearbyNetUtil = void 0;
|
|
|
4
4
|
const node_dgram_1 = require("node:dgram");
|
|
5
5
|
const node_net_1 = require("node:net");
|
|
6
6
|
const node_os_1 = require("node:os");
|
|
7
|
+
const relay_identity_1 = require("@celljs/ta-relay/lib/common/relay-identity");
|
|
7
8
|
const OFFERS = ['show', 'work'];
|
|
8
9
|
/** A line of the channel at most: a message and its seal. */
|
|
9
10
|
const MAX_LINE = 1500000;
|
|
@@ -70,6 +71,7 @@ var NearbyNetUtil;
|
|
|
70
71
|
h: data.h,
|
|
71
72
|
...(offers.length ? { o: [...new Set(offers)] } : {}),
|
|
72
73
|
...(data.m === 1 ? { m: 1 } : {}),
|
|
74
|
+
...(relay_identity_1.RelayIdentityUtil.isLook(data.l) ? { l: data.l } : {}),
|
|
73
75
|
};
|
|
74
76
|
}
|
|
75
77
|
catch (_a) {
|
|
@@ -51,6 +51,8 @@ export interface NearbyShown {
|
|
|
51
51
|
/** Who shows it. */
|
|
52
52
|
name: string;
|
|
53
53
|
face: number;
|
|
54
|
+
/** The look of its double (TaIdentity.look): drawn as that dinosaur. None from a Ta of before. */
|
|
55
|
+
look?: string;
|
|
54
56
|
friend?: {
|
|
55
57
|
id: string;
|
|
56
58
|
name: string;
|
|
@@ -76,6 +78,8 @@ export interface NearbyPeer {
|
|
|
76
78
|
/** The name it gives; empty when it shows none. A stranger's is only what it says. */
|
|
77
79
|
name: string;
|
|
78
80
|
face: number;
|
|
81
|
+
/** The look of its double (TaIdentity.look): drawn as that dinosaur. None from a Ta of before. */
|
|
82
|
+
look?: string;
|
|
79
83
|
/** A Ta friend recognized by its mark: who it is for sure. */
|
|
80
84
|
friend?: {
|
|
81
85
|
id: string;
|
|
@@ -93,6 +97,8 @@ export interface NearbyInvite {
|
|
|
93
97
|
title: string;
|
|
94
98
|
name: string;
|
|
95
99
|
face: number;
|
|
100
|
+
/** The look of its double (TaIdentity.look): drawn as that dinosaur. None from a Ta of before. */
|
|
101
|
+
look?: string;
|
|
96
102
|
friend?: {
|
|
97
103
|
id: string;
|
|
98
104
|
name: string;
|
|
@@ -106,6 +112,8 @@ export interface NearbyGreet {
|
|
|
106
112
|
e: string;
|
|
107
113
|
name: string;
|
|
108
114
|
face: number;
|
|
115
|
+
/** The look of its double (TaIdentity.look): drawn as that dinosaur. None from a Ta of before. */
|
|
116
|
+
look?: string;
|
|
109
117
|
friend?: {
|
|
110
118
|
id: string;
|
|
111
119
|
name: string;
|
|
@@ -122,6 +130,7 @@ export interface NearbyStatus {
|
|
|
122
130
|
self: {
|
|
123
131
|
name: string;
|
|
124
132
|
face: number;
|
|
133
|
+
look?: string;
|
|
125
134
|
};
|
|
126
135
|
peers: NearbyPeer[];
|
|
127
136
|
invites: NearbyInvite[];
|
|
@@ -218,6 +227,8 @@ export interface NearbyBeaconData {
|
|
|
218
227
|
e: string;
|
|
219
228
|
n: string;
|
|
220
229
|
f: number;
|
|
230
|
+
/** The look of its double (TaIdentity.look). */
|
|
231
|
+
l?: string;
|
|
221
232
|
p: number;
|
|
222
233
|
a: string[];
|
|
223
234
|
x: string;
|
|
@@ -77,7 +77,10 @@ export declare class NearbyService {
|
|
|
77
77
|
protected identity?: {
|
|
78
78
|
id: string;
|
|
79
79
|
name: string;
|
|
80
|
+
look?: string;
|
|
80
81
|
};
|
|
82
|
+
/** When the identity was last read. */
|
|
83
|
+
protected identityAt: number;
|
|
81
84
|
protected friends: TaFriend[];
|
|
82
85
|
protected friendsAt: number;
|
|
83
86
|
protected error?: string;
|
|
@@ -20,6 +20,8 @@ const PROPOSE_GAP_MS = 2 * 60 * 60000;
|
|
|
20
20
|
/** Messages older or newer than this are dropped. */
|
|
21
21
|
const SKEW_MS = 5 * 60000;
|
|
22
22
|
const TICK_MS = 2000;
|
|
23
|
+
/** How often the identity is read again while visible: its name or look may change. */
|
|
24
|
+
const IDENTITY_MS = 10000;
|
|
23
25
|
const INITIATIVE = '@celljs/ta-initiative';
|
|
24
26
|
const NOTIFY = '@celljs/ta-notify';
|
|
25
27
|
exports.ROOM_KIND = 'nearby.room';
|
|
@@ -45,6 +47,8 @@ class NearbyService {
|
|
|
45
47
|
this.heard = new Map();
|
|
46
48
|
this.sent = new Map();
|
|
47
49
|
this.received = new Map();
|
|
50
|
+
/** When the identity was last read. */
|
|
51
|
+
this.identityAt = 0;
|
|
48
52
|
this.friends = [];
|
|
49
53
|
this.friendsAt = 0;
|
|
50
54
|
this.published = '';
|
|
@@ -127,12 +131,16 @@ class NearbyService {
|
|
|
127
131
|
return !!this.visible;
|
|
128
132
|
}
|
|
129
133
|
status() {
|
|
130
|
-
var _a;
|
|
134
|
+
var _a, _b;
|
|
131
135
|
const now = this.now();
|
|
132
136
|
return {
|
|
133
137
|
visible: !!this.visible,
|
|
134
138
|
...(((_a = this.visible) === null || _a === void 0 ? void 0 : _a.until) !== undefined ? { until: this.visible.until } : {}),
|
|
135
|
-
self: {
|
|
139
|
+
self: {
|
|
140
|
+
name: this.selfName(),
|
|
141
|
+
face: this.identity ? relay_faces_1.FaceUtil.of(this.identity.id) : 0,
|
|
142
|
+
...(((_b = this.identity) === null || _b === void 0 ? void 0 : _b.look) ? { look: this.identity.look } : {}),
|
|
143
|
+
},
|
|
136
144
|
peers: this.peers(),
|
|
137
145
|
invites: [...this.received.values()].filter(invite => now - invite.at < INVITE_MS).map(({ link: _, ...invite }) => invite),
|
|
138
146
|
...(this.shown ? { shown: NearbyService.withoutData(this.shown) } : {}),
|
|
@@ -146,7 +154,15 @@ class NearbyService {
|
|
|
146
154
|
peers() {
|
|
147
155
|
return [...this.heard.values()]
|
|
148
156
|
.sort((a, b) => a.since - b.since)
|
|
149
|
-
.map(({ data, since, friend }) => { var _a; return ({
|
|
157
|
+
.map(({ data, since, friend }) => { var _a; return ({
|
|
158
|
+
e: data.e,
|
|
159
|
+
name: data.n,
|
|
160
|
+
face: data.f,
|
|
161
|
+
...(data.l ? { look: data.l } : {}),
|
|
162
|
+
...(friend ? { friend } : {}),
|
|
163
|
+
offers: (_a = data.o) !== null && _a !== void 0 ? _a : [],
|
|
164
|
+
since,
|
|
165
|
+
}); });
|
|
150
166
|
}
|
|
151
167
|
/** What Ta is told of who is around, in the user's conversations; none while the user is not visible. */
|
|
152
168
|
section() {
|
|
@@ -226,8 +242,8 @@ class NearbyService {
|
|
|
226
242
|
this.heard.clear();
|
|
227
243
|
}
|
|
228
244
|
beaconData(port) {
|
|
229
|
-
var _a;
|
|
230
|
-
var
|
|
245
|
+
var _a, _b;
|
|
246
|
+
var _c;
|
|
231
247
|
const keys = this.keys;
|
|
232
248
|
return {
|
|
233
249
|
t: 'ta-near',
|
|
@@ -235,10 +251,11 @@ class NearbyService {
|
|
|
235
251
|
e: keys.e,
|
|
236
252
|
n: this.selfName(),
|
|
237
253
|
f: this.identity ? relay_faces_1.FaceUtil.of(this.identity.id) : 0,
|
|
254
|
+
...(((_a = this.identity) === null || _a === void 0 ? void 0 : _a.look) ? { l: this.identity.look } : {}),
|
|
238
255
|
p: port,
|
|
239
256
|
a: nearby_net_1.NearbyNetUtil.addresses(),
|
|
240
257
|
x: keys.x,
|
|
241
|
-
h: nearby_crypto_1.NearbyCrypto.mark((
|
|
258
|
+
h: nearby_crypto_1.NearbyCrypto.mark((_c = (_b = this.identity) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : '', nearby_crypto_1.NearbyCrypto.slot(this.now())),
|
|
242
259
|
...(this.offers().length ? { o: this.offers() } : {}),
|
|
243
260
|
...(this.meets() ? { m: 1 } : {}),
|
|
244
261
|
};
|
|
@@ -257,9 +274,10 @@ class NearbyService {
|
|
|
257
274
|
return this.settings.hideName ? '' : ((_b = (_a = this.identity) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : '').slice(0, 40);
|
|
258
275
|
}
|
|
259
276
|
async loadIdentity() {
|
|
277
|
+
this.identityAt = this.now();
|
|
260
278
|
try {
|
|
261
279
|
const identity = await this.host.rooms.getIdentity();
|
|
262
|
-
this.identity = { id: identity.id, name: identity.name };
|
|
280
|
+
this.identity = { id: identity.id, name: identity.name, ...(identity.look ? { look: identity.look } : {}) };
|
|
263
281
|
}
|
|
264
282
|
catch (_a) {
|
|
265
283
|
// Rooms are off: no mark of its own.
|
|
@@ -274,6 +292,10 @@ class NearbyService {
|
|
|
274
292
|
await this.publish(true);
|
|
275
293
|
return;
|
|
276
294
|
}
|
|
295
|
+
// The double's look may have changed: the next beacon says it.
|
|
296
|
+
if (this.keys && now - this.identityAt >= IDENTITY_MS) {
|
|
297
|
+
await this.loadIdentity();
|
|
298
|
+
}
|
|
277
299
|
if (this.keys && now - this.keys.createdAt >= nearby_crypto_1.SLOT_MS) {
|
|
278
300
|
this.previous = this.keys;
|
|
279
301
|
this.keys = new nearby_crypto_1.NearbyKeys(now);
|
|
@@ -467,6 +489,7 @@ class NearbyService {
|
|
|
467
489
|
title: String((_a = message.title) !== null && _a !== void 0 ? _a : '').slice(0, 80) || server_texts_1.NearbyTexts.nearby(),
|
|
468
490
|
name: heard.data.n,
|
|
469
491
|
face: heard.data.f,
|
|
492
|
+
...(heard.data.l ? { look: heard.data.l } : {}),
|
|
470
493
|
...(heard.friend ? { friend: heard.friend } : {}),
|
|
471
494
|
...(typeof message.why === 'string' && message.why ? { why: message.why.slice(0, 200) } : {}),
|
|
472
495
|
at: this.now(),
|
|
@@ -544,6 +567,7 @@ class NearbyService {
|
|
|
544
567
|
kind: message.kind,
|
|
545
568
|
name: heard.data.n,
|
|
546
569
|
face: heard.data.f,
|
|
570
|
+
...(heard.data.l ? { look: heard.data.l } : {}),
|
|
547
571
|
...(heard.friend ? { friend: heard.friend } : {}),
|
|
548
572
|
ask: mode === 'ask',
|
|
549
573
|
at: this.now(),
|
|
@@ -741,6 +765,7 @@ class NearbyService {
|
|
|
741
765
|
e: heard.data.e,
|
|
742
766
|
name: heard.data.n,
|
|
743
767
|
face: heard.data.f,
|
|
768
|
+
...(heard.data.l ? { look: heard.data.l } : {}),
|
|
744
769
|
...(heard.friend ? { friend: heard.friend } : {}),
|
|
745
770
|
line: String((_a = message.line) !== null && _a !== void 0 ? _a : '').slice(0, 200),
|
|
746
771
|
why: String((_b = message.why) !== null && _b !== void 0 ? _b : '').slice(0, 300),
|
|
@@ -115,8 +115,9 @@ function restOfDay(now = new Date()) {
|
|
|
115
115
|
end.setHours(23, 59, 59, 999);
|
|
116
116
|
return Math.max(1, Math.round((end.getTime() - now.getTime()) / 60000));
|
|
117
117
|
}
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
/** One nearby, as its double looks (`look`); its face in a Ta of before. */
|
|
119
|
+
function Face({ seed, face, look, size }) {
|
|
120
|
+
return react_1.React.createElement(exports.pi.ui.Face, { seed: seed, face: face, look: look, size: size });
|
|
120
121
|
}
|
|
121
122
|
/** Rings that go out from the user: looking around. */
|
|
122
123
|
function Looking({ peers }) {
|
|
@@ -134,7 +135,7 @@ function Looking({ peers }) {
|
|
|
134
135
|
react_1.React.createElement("span", { className: "tnb-ring tnb-ring-3" }),
|
|
135
136
|
react_1.React.createElement("span", { className: "tnb-me" }, exports.pi.ui.Avatar ? react_1.React.createElement(exports.pi.ui.Avatar, { size: 44 }) : null),
|
|
136
137
|
shown.map((peer, index) => { var _a; var _b; return (react_1.React.createElement("span", { key: peer.e, className: "tnb-spot", style: { left: `${spots[index][0] * 100}%`, top: `${spots[index][1] * 100}%` } },
|
|
137
|
-
react_1.React.createElement(Face, { seed: (_b = (_a = peer.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : peer.e, face: peer.face, size: 30 }))); })));
|
|
138
|
+
react_1.React.createElement(Face, { seed: (_b = (_a = peer.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : peer.e, face: peer.face, look: peer.look, size: 30 }))); })));
|
|
138
139
|
}
|
|
139
140
|
function Busy({ children, onClick, primary }) {
|
|
140
141
|
const [busy, run] = exports.pi.ui.useBusy ? exports.pi.ui.useBusy() : [false, async (action) => action()];
|
|
@@ -168,7 +169,7 @@ function PeerTile({ peer, chosen, toggle }) {
|
|
|
168
169
|
return (react_1.React.createElement("li", null,
|
|
169
170
|
react_1.React.createElement("button", { type: "button", className: `tnb-peer${chosen ? ' tnb-chosen' : ''}`, "aria-pressed": chosen, onClick: toggle },
|
|
170
171
|
react_1.React.createElement("span", { className: "tnb-peer-face" },
|
|
171
|
-
react_1.React.createElement(Face, { seed: (_b = (_a = peer.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : peer.e, face: peer.face, size: 52 }),
|
|
172
|
+
react_1.React.createElement(Face, { seed: (_b = (_a = peer.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : peer.e, face: peer.face, look: peer.look, size: 52 }),
|
|
172
173
|
react_1.React.createElement("span", { className: "tnb-check" }, exports.pi.ui.SelectCheck ? react_1.React.createElement(exports.pi.ui.SelectCheck, { checked: chosen }) : null)),
|
|
173
174
|
react_1.React.createElement("span", { className: "tnb-peer-name tnb-ellipsis" }, who(peer)),
|
|
174
175
|
peer.friend && react_1.React.createElement("span", { className: "tnb-tag tnb-tag-friend" }, t('friend')))));
|
|
@@ -177,7 +178,7 @@ function InviteRow({ invite }) {
|
|
|
177
178
|
var _a;
|
|
178
179
|
var _b;
|
|
179
180
|
return (react_1.React.createElement("li", { className: "tnb-invite" },
|
|
180
|
-
react_1.React.createElement(Face, { seed: (_b = (_a = invite.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : invite.e, face: invite.face, size: 40 }),
|
|
181
|
+
react_1.React.createElement(Face, { seed: (_b = (_a = invite.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : invite.e, face: invite.face, look: invite.look, size: 40 }),
|
|
181
182
|
react_1.React.createElement("div", { className: "tnb-invite-text" },
|
|
182
183
|
react_1.React.createElement("span", null, t('invited', { name: who(invite), title: invite.title })),
|
|
183
184
|
invite.why && react_1.React.createElement("span", { className: "tnb-quiet" }, invite.why)),
|
|
@@ -315,7 +316,7 @@ function ShowOverlay({ shown, close }) {
|
|
|
315
316
|
return (react_1.React.createElement(exports.pi.ui.Dialog, { title: t('title'), onClose: finish },
|
|
316
317
|
react_1.React.createElement("div", { className: "tnb-dialog" },
|
|
317
318
|
react_1.React.createElement("div", { className: "tnb-dialog-head" },
|
|
318
|
-
react_1.React.createElement(Face, { seed: (_d = (_b = current.friend) === null || _b === void 0 ? void 0 : _b.id) !== null && _d !== void 0 ? _d : current.k, face: current.face, size: 48 }),
|
|
319
|
+
react_1.React.createElement(Face, { seed: (_d = (_b = current.friend) === null || _b === void 0 ? void 0 : _b.id) !== null && _d !== void 0 ? _d : current.k, face: current.face, look: current.look, size: 48 }),
|
|
319
320
|
react_1.React.createElement("strong", null, t('wantsToShow', { name: who(current), title: current.title }))),
|
|
320
321
|
react_1.React.createElement("p", { className: "tnb-quiet" }, [t('showNote'), current.friend ? '' : t('inviteStranger')].filter(Boolean).join(exports.pi.ui.language === 'zh-CN' ? '' : ' ')),
|
|
321
322
|
react_1.React.createElement("div", { className: "tnb-actions tnb-dialog-actions" },
|
|
@@ -324,7 +325,7 @@ function ShowOverlay({ shown, close }) {
|
|
|
324
325
|
}
|
|
325
326
|
return (react_1.React.createElement(exports.pi.ui.FullScreen, { className: "tnb-show" },
|
|
326
327
|
react_1.React.createElement("div", { className: "tnb-show-bar" },
|
|
327
|
-
react_1.React.createElement(Face, { seed: (_e = (_c = current.friend) === null || _c === void 0 ? void 0 : _c.id) !== null && _e !== void 0 ? _e : current.k, face: current.face, size: 26 }),
|
|
328
|
+
react_1.React.createElement(Face, { seed: (_e = (_c = current.friend) === null || _c === void 0 ? void 0 : _c.id) !== null && _e !== void 0 ? _e : current.k, face: current.face, look: current.look, size: 26 }),
|
|
328
329
|
react_1.React.createElement("span", { className: "tnb-show-title tnb-ellipsis" }, current.title),
|
|
329
330
|
react_1.React.createElement("span", { className: "tnb-quiet tnb-ellipsis" }, t('from', { name: who(current) })),
|
|
330
331
|
react_1.React.createElement("button", { type: "button", className: "ta-button", onClick: finish }, t('close'))),
|
|
@@ -381,7 +382,7 @@ function GreetRow({ greet }) {
|
|
|
381
382
|
}
|
|
382
383
|
};
|
|
383
384
|
return (react_1.React.createElement("li", { className: "tnb-invite" },
|
|
384
|
-
react_1.React.createElement(Face, { seed: (_b = (_a = greet.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : greet.e, face: greet.face, size: 40 }),
|
|
385
|
+
react_1.React.createElement(Face, { seed: (_b = (_a = greet.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : greet.e, face: greet.face, look: greet.look, size: 40 }),
|
|
385
386
|
react_1.React.createElement("div", { className: "tnb-invite-text" },
|
|
386
387
|
react_1.React.createElement("span", null, t('greetLine', { name: who(greet) })),
|
|
387
388
|
greet.line && react_1.React.createElement("span", null, greet.line),
|
|
@@ -496,7 +497,7 @@ function openInvite(invite) {
|
|
|
496
497
|
return (react_1.React.createElement(exports.pi.ui.Dialog, { title: t('title'), onClose: done },
|
|
497
498
|
react_1.React.createElement("div", { className: "tnb-dialog" },
|
|
498
499
|
react_1.React.createElement("div", { className: "tnb-dialog-head" },
|
|
499
|
-
react_1.React.createElement(Face, { seed: (_b = (_a = invite.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : invite.e, face: invite.face, size: 48 }),
|
|
500
|
+
react_1.React.createElement(Face, { seed: (_b = (_a = invite.friend) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : invite.e, face: invite.face, look: invite.look, size: 48 }),
|
|
500
501
|
react_1.React.createElement("div", { className: "tnb-invite-text" },
|
|
501
502
|
react_1.React.createElement("strong", null, t('invited', { name: who(invite), title: invite.title })),
|
|
502
503
|
invite.friend ? react_1.React.createElement("span", { className: "tnb-tag tnb-tag-friend" }, t('friend')) : null)),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. Prefix `tnb-`. */
|
|
2
|
-
export declare const STYLE = "\n.tnb-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tnb-quiet { color: var(--ta-muted); }\n.tnb-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; }\n.tnb-body { display: flex; flex-direction: column; gap: 18px; max-width: 560px; margin: 0 auto; padding: 12px 16px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n.tnb-section h3 { margin: 0 0 6px; padding: 0 4px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.tnb-card { margin: 0; padding: 2px 10px; list-style: none; border-radius: 14px; background: var(--ta-raised); }\n.tnb-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 0; }\n.tnb-invite > .ta-face, .tnb-invite > .trm-face { align-self: flex-start; }\n.tnb-invite .tnb-actions { margin-left: auto; }\n.tnb-invite + .tnb-invite { border-top: 1px solid var(--ta-border-muted); }\n.tnb-invite-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 200px; min-width: 0; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.45; }\n.tnb-invite-text .tnb-tag { align-self: flex-start; }\n.tnb-actions { display: flex; gap: 8px; flex: none; }\n/* Off: what it does, and for how long */\n.tnb-off, .tnb-on { display: flex; flex-direction: column; align-items: center; text-align: center; }\n.tnb-off h2 { margin: 6px 0 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }\n.tnb-off p { max-width: 380px; margin: 0; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; }\n.tnb-durations { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; margin-top: 20px; }\n.tnb-durations .ta-button { width: 100%; justify-content: center; min-height: 40px; }\n/* Rings that go out from the user */\n.tnb-looking { position: relative; width: 220px; height: 220px; margin: 8px 0 4px; }\n.tnb-ring { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ta-accent, var(--ta-link)) 35%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--ta-accent, var(--ta-link)) 7%, transparent) 0%, transparent 70%); animation: tnb-out 3.6s ease-out infinite; opacity: 0; }\n.tnb-ring-2 { animation-delay: 1.2s; }\n.tnb-ring-3 { animation-delay: 2.4s; }\n@keyframes tnb-out { 0% { transform: scale(0.25); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }\n@media (prefers-reduced-motion: reduce) { .tnb-ring { animation: none; opacity: 0.5; } .tnb-ring-2 { transform: scale(0.66); } .tnb-ring-3 { transform: scale(0.33); } }\n.tnb-me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }\n.tnb-spot { position: absolute; transform: translate(-50%, -50%); animation: tnb-in 300ms ease-out both; }\n@keyframes tnb-in { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } }\n.tnb-on-line { display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-green); }\n.tnb-link { padding: 2px 6px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }\n.tnb-link:hover { background: var(--ta-hover); }\n.tnb-error { margin: 8px 0 0; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-nobody { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; text-align: center; font-size: calc(13px * var(--ta-font-scale)); }\n/* Those around: tiles to choose */\n.tnb-peers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }\n.tnb-peers > li { width: 96px; }\n.tnb-peer { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; padding: 12px 6px 10px; border: 1px solid transparent; border-radius: 14px; background: var(--ta-raised); color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color 120ms, opacity 120ms; }\n.tnb-peer:not(.tnb-chosen) { opacity: 0.55; }\n.tnb-peer.tnb-chosen { border-color: color-mix(in srgb, var(--ta-accent, var(--ta-link)) 45%, transparent); }\n.tnb-peer:focus-visible { outline: 1px solid var(--ta-border-focus); }\n.tnb-peer-face { position: relative; display: inline-flex; }\n.tnb-check { position: absolute; right: -4px; bottom: -4px; }\n.tnb-peer-name { max-width: 100%; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.tnb-tag { 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)); line-height: calc(17px * var(--ta-font-scale)); }\n.tnb-tag-friend { background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.tnb-make { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }\n.tnb-make .ta-button { min-width: 200px; min-height: 40px; justify-content: center; }\n.tnb-make p { margin: 0; font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-code-row { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); text-align: center; }\n.tnb-code-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 12px; border-radius: 14px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); text-align: center; }\n.tnb-code { font-size: calc(30px * var(--ta-font-scale)); font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }\n.tnb-self { display: flex; justify-content: center; gap: 8px; margin: 0; font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-select { height: 32px; padding: 0 28px 0 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-main); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-field { display: flex; flex-direction: column; gap: 4px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.tnb-input { box-sizing: border-box; width: 100%; padding: 7px 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-main); color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); resize: vertical; }\n.tnb-input:focus { outline: none; border-color: var(--ta-border-focus); }\n.tnb-grow { flex: 1; }\n.tnb-meet { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); }\n.tnb-card-setting { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 360px; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-card-setting .ta-button { flex: none; }\n/* What one nearby shows, over the page */\n.tnb-show { background: var(--ta-main); color: var(--ta-text); }\n.tnb-show-bar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; box-sizing: border-box; border-bottom: 1px solid var(--ta-border-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-show-title { font-weight: 600; font-size: calc(14px * var(--ta-font-scale)); }\n.tnb-show-bar .ta-button { margin-left: auto; flex: none; }\n.tnb-show-body { flex: 1; min-height: 0; display: flex; overflow: auto; }\n.tnb-show-frame { flex: 1; width: 100%; border: 0; background: #fff; }\n.tnb-show-image { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; }\n.tnb-show-text { width: 100%; max-width: 860px; margin: 0 auto; padding: 24px; box-sizing: border-box; font-size: calc(16px * var(--ta-font-scale)); line-height: 1.7; }\n.tnb-show-pre { white-space: pre-wrap; font-family: var(--ta-mono, ui-monospace, monospace); font-size: calc(14px * var(--ta-font-scale)); }\n/* The invitation over the page */\n.tnb-dialog { display: flex; flex-direction: column; gap: 10px; min-width: min(360px, 80vw); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.5; }\n.tnb-dialog p { margin: 0; }\n.tnb-dialog-head { display: flex; align-items: center; gap: 12px; }\n.tnb-dialog-actions { justify-content: flex-end; margin-top: 4px; }\n";
|
|
2
|
+
export declare const STYLE = "\n.tnb-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tnb-quiet { color: var(--ta-muted); }\n.tnb-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; }\n.tnb-body { display: flex; flex-direction: column; gap: 18px; max-width: 560px; margin: 0 auto; padding: 12px 16px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n.tnb-section h3 { margin: 0 0 6px; padding: 0 4px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.tnb-card { margin: 0; padding: 2px 10px; list-style: none; border-radius: 14px; background: var(--ta-raised); }\n.tnb-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 0; }\n.tnb-invite > .ta-face, .tnb-invite > .trm-face { align-self: flex-start; }\n.tnb-invite .tnb-actions { margin-left: auto; }\n.tnb-invite + .tnb-invite { border-top: 1px solid var(--ta-border-muted); }\n.tnb-invite-text { display: flex; flex-direction: column; gap: 3px; flex: 1 1 200px; min-width: 0; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.45; }\n.tnb-invite-text .tnb-tag { align-self: flex-start; }\n.tnb-actions { display: flex; gap: 8px; flex: none; }\n/* Off: what it does, and for how long */\n.tnb-off, .tnb-on { display: flex; flex-direction: column; align-items: center; text-align: center; }\n.tnb-off h2 { margin: 6px 0 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }\n.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; }\n.tnb-durations { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; margin-top: 20px; }\n.tnb-durations .ta-button { width: 100%; justify-content: center; min-height: 40px; }\n/* Rings that go out from the user */\n.tnb-looking { position: relative; width: 220px; height: 220px; margin: 8px 0 4px; }\n.tnb-ring { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ta-accent, var(--ta-link)) 35%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--ta-accent, var(--ta-link)) 7%, transparent) 0%, transparent 70%); animation: tnb-out 3.6s ease-out infinite; opacity: 0; }\n.tnb-ring-2 { animation-delay: 1.2s; }\n.tnb-ring-3 { animation-delay: 2.4s; }\n@keyframes tnb-out { 0% { transform: scale(0.25); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }\n@media (prefers-reduced-motion: reduce) { .tnb-ring { animation: none; opacity: 0.5; } .tnb-ring-2 { transform: scale(0.66); } .tnb-ring-3 { transform: scale(0.33); } }\n.tnb-me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }\n.tnb-spot { position: absolute; transform: translate(-50%, -50%); animation: tnb-in 300ms ease-out both; }\n@keyframes tnb-in { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } }\n.tnb-on-line { display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-green); }\n.tnb-link { padding: 2px 6px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }\n.tnb-link:hover { background: var(--ta-hover); }\n.tnb-error { margin: 8px 0 0; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-nobody { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; text-align: center; font-size: calc(13px * var(--ta-font-scale)); }\n/* Those around: tiles to choose */\n.tnb-peers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }\n.tnb-peers > li { width: 96px; }\n.tnb-peer { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; padding: 12px 6px 10px; border: 1px solid transparent; border-radius: 14px; background: var(--ta-raised); color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color 120ms, opacity 120ms; }\n.tnb-peer:not(.tnb-chosen) { opacity: 0.55; }\n.tnb-peer.tnb-chosen { border-color: color-mix(in srgb, var(--ta-accent, var(--ta-link)) 45%, transparent); }\n.tnb-peer:focus-visible { outline: 1px solid var(--ta-border-focus); }\n.tnb-peer-face { position: relative; display: inline-flex; }\n.tnb-check { position: absolute; right: -4px; bottom: -4px; }\n.tnb-peer-name { max-width: 100%; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.tnb-tag { 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)); line-height: calc(17px * var(--ta-font-scale)); }\n.tnb-tag-friend { background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: var(--ta-green); }\n.tnb-make { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }\n.tnb-make .ta-button { min-width: 200px; min-height: 40px; justify-content: center; }\n.tnb-make p { margin: 0; font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-code-row { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); text-align: center; }\n.tnb-code-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 12px; border-radius: 14px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); text-align: center; }\n.tnb-code { font-size: calc(30px * var(--ta-font-scale)); font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }\n.tnb-self { display: flex; justify-content: center; gap: 8px; margin: 0; font-size: calc(12px * var(--ta-font-scale)); }\n.tnb-select { height: 32px; padding: 0 28px 0 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-main); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-field { display: flex; flex-direction: column; gap: 4px; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.tnb-input { box-sizing: border-box; width: 100%; padding: 7px 10px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-main); color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); resize: vertical; }\n.tnb-input:focus { outline: none; border-color: var(--ta-border-focus); }\n.tnb-grow { flex: 1; }\n.tnb-meet { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); }\n.tnb-card-setting { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 360px; font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-card-setting .ta-button { flex: none; }\n/* What one nearby shows, over the page */\n.tnb-show { background: var(--ta-main); color: var(--ta-text); }\n.tnb-show-bar { flex: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; box-sizing: border-box; border-bottom: 1px solid var(--ta-border-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.tnb-show-title { font-weight: 600; font-size: calc(14px * var(--ta-font-scale)); }\n.tnb-show-bar .ta-button { margin-left: auto; flex: none; }\n.tnb-show-body { flex: 1; min-height: 0; display: flex; overflow: auto; }\n.tnb-show-frame { flex: 1; width: 100%; border: 0; background: #fff; }\n.tnb-show-image { margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; }\n.tnb-show-text { width: 100%; max-width: 860px; margin: 0 auto; padding: 24px; box-sizing: border-box; font-size: calc(16px * var(--ta-font-scale)); line-height: 1.7; }\n.tnb-show-pre { white-space: pre-wrap; font-family: var(--ta-mono, ui-monospace, monospace); font-size: calc(14px * var(--ta-font-scale)); }\n/* The invitation over the page */\n.tnb-dialog { display: flex; flex-direction: column; gap: 10px; min-width: min(360px, 80vw); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.5; }\n.tnb-dialog p { margin: 0; }\n.tnb-dialog-head { display: flex; align-items: center; gap: 12px; }\n.tnb-dialog-actions { justify-content: flex-end; margin-top: 4px; }\n";
|
|
3
3
|
export declare function injectStyle(): () => void;
|
|
4
4
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -20,7 +20,7 @@ exports.STYLE = `
|
|
|
20
20
|
/* Off: what it does, and for how long */
|
|
21
21
|
.tnb-off, .tnb-on { display: flex; flex-direction: column; align-items: center; text-align: center; }
|
|
22
22
|
.tnb-off h2 { margin: 6px 0 6px; font-size: calc(17px * var(--ta-font-scale)); font-weight: 600; }
|
|
23
|
-
.tnb-off p { max-width: 380px; margin: 0; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; }
|
|
23
|
+
.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; }
|
|
24
24
|
.tnb-durations { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; margin-top: 20px; }
|
|
25
25
|
.tnb-durations .ta-button { width: 100%; justify-content: center; min-height: 40px; }
|
|
26
26
|
/* Rings that go out from the user */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-nearby",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: the other Ta around on the same network while you let them see you, known to Ta in your conversations, and rooms of those present made in a tap",
|
|
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",
|