@celljs/ta 4.13.0 → 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 -129
- package/dist/pi/CHANGELOG.md +11 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/package.json +3 -3
- package/dist/pi/packages/ta-bots/extension/index.mjs +21 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +171 -114
- package/dist/pi/packages/ta-bots/package.json +3 -3
- package/dist/pi/packages/ta-changes/extension/index.mjs +21 -0
- package/dist/pi/packages/ta-changes/package.json +3 -3
- package/dist/pi/packages/ta-channels/extension/index.mjs +23 -2
- package/dist/pi/packages/ta-channels/host/index.mjs +170 -113
- package/dist/pi/packages/ta-channels/lib/extension.js +2 -2
- 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/extension/index.mjs +22 -1
- package/dist/pi/packages/ta-cron/lib/extension.js +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 -113
- package/dist/pi/packages/ta-games/package.json +3 -3
- package/dist/pi/packages/ta-glance/extension/index.mjs +21 -0
- 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/extension/index.mjs +24 -3
- package/dist/pi/packages/ta-initiative/host/index.mjs +3 -0
- package/dist/pi/packages/ta-initiative/lib/extension.js +3 -4
- 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 +104 -47
- package/dist/pi/packages/ta-moments/host/index.mjs +103 -46
- package/dist/pi/packages/ta-moments/lib/editor.js +1 -1
- package/dist/pi/packages/ta-moments/lib/extension.js +2 -2
- 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 -128
- package/dist/pi/packages/ta-nearby/extension/index.mjs +22 -1
- package/dist/pi/packages/ta-nearby/host/index.mjs +189 -4
- package/dist/pi/packages/ta-nearby/lib/extension.js +1 -1
- 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/extension/index.mjs +21 -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/extension/index.mjs +22 -1
- package/dist/pi/packages/ta-recall/host/index.mjs +30 -12
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +3 -3
- package/dist/pi/packages/ta-recall/lib/extension.js +1 -1
- 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-recall/web/index.js +21 -0
- package/dist/pi/packages/ta-rooms/extension/index.mjs +23 -2
- package/dist/pi/packages/ta-rooms/host/index.mjs +21 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +2 -2
- 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/extension/index.mjs +21 -0
- 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/extension/index.mjs +21 -0
- package/dist/pi/packages/ta-team/host/index.mjs +590 -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 -139
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-DJMZKA5d.js → abnfDiagram-S7VZAUFO-DMceNIR5.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-DwZ8A2Bp.js → architecture-WOLXFQ4H-5AdYeEv8.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-DPezb7-w.js → architectureDiagram-YGSQEFNW-CqkJHg0A.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-SrFYBlSp.js → blockDiagram-APKKGZFW-BtuHdIjQ.js} +1 -1
- package/dist/public/assets/{browser-D2CY3Lfb.js → browser-D2BcOPKG.js} +1 -1
- package/dist/public/assets/{browser-CljOqDFz.js → browser-Ds5TwWWr.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-COCMkiJ6.js → c4Diagram-KJ2TOQU5-eebbjTgZ.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-CWRxZCiu.js → chunk-6MUBBAK2-BjMKSfTf.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-Dgn3RHlx.js → chunk-AXFCVDMN-BElluw_7.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-BDnAChfb.js → chunk-BG4553SI-CUDwpWNL.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-DSgprMfc.js → chunk-DQASFODM-B-92o8Uj.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-ChtjyKjP.js → chunk-HFQBQIA3-pveEMcXK.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-B2o0ufJC.js → chunk-KQLB2F66-m7DKNjYW.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-C4qJvDaX.js → chunk-KS47KZWR-CnSSETdj.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-2jTGUstS.js → chunk-LEVMRMFU-Ds7OnJrC.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-CKAWW7fj.js → chunk-M57EVK23-PJSYCuUh.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-B5TUKZAt.js → chunk-OY52VR5R-C3ygRwSC.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-CyQFTqwG.js → chunk-QB3YPZ4I-DcFtmZh7.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-C6git_yh.js → chunk-R3KSYZAL-B4BOidE6.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-AwEqcNnS.js → chunk-STOXU5M4-DcXfwN7k.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-GKcRDmvw.js → chunk-TU62E6Q5-B-rpQQxX.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-CMG5EfZ9.js → chunk-X4PVCEUW-BBtlFSw1.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-BHd-dKtZ.js → chunk-XXDRQBXY-Do8BIocv.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-HaRsBCG9.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-BPBTCfj3.js → cose-bilkent-JH36ORCC-B7Qv6Hv_.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dfu5k3iG.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-dAmWDtva.js → cynefinDiagram-L36ESFBY-BX-R5Z6L.js} +1 -1
- package/dist/public/assets/{d3-selection-BhemR5ul.js → d3-selection-D3xgEEla.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-D93g6hNI.js → dagre-SPEB5RXH-MfJ9yO0v.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-FJBKgG3X.js → diagram-3B7GL73J-DxFRc2vC.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-BP22T976.js → diagram-DNEMPZML-BcBwOLbM.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-DcrCJXRt.js → diagram-L3MUGCDN--Rw-isPI.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-DUgd3PHQ.js → diagram-LA4NIPWU-DXkY85UN.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-ejTInqzQ.js → diagram-MHCOC4E2-CbNmfAid.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-BLjkgho1.js → diagram-XPFHEONP-D1nGQjzf.js} +1 -1
- package/dist/public/assets/{dist-C9xqTt0E.js → dist-B1JMTrET.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-CB1QQ4_T.js → ebnfDiagram-UZSYDL2S-DGXbVfke.js} +1 -1
- package/dist/public/assets/{editor.api-lz6I1oVk.js → editor.api-e3yQoo1r.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-CLBx1s2b.js → elk-XV6XMXQE-pA-iT6fg.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-Dsj6RYi5.js → erDiagram-EYBAPDEH-BpgBun7y.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-smOORsSG.js → eventmodeling-K75KTNOO-CVfyCcul.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-BHlXeeVG.js +1 -0
- package/dist/public/assets/{freemarker2-DrLPw7Mc.js → freemarker2-dYGec-fT.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-BV9WK0rK.js → ganttDiagram-23REXITY-DjLTTWwA.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-CFVSDv3q.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CsSpSQ0T.js → gitGraphDiagram-STJD7YCW-D9m7IVyJ.js} +1 -1
- package/dist/public/assets/{handlebars-CLx5-csF.js → handlebars-Bxerz7ci.js} +1 -1
- package/dist/public/assets/{html-C9LmGm46.js → html-DlVnGsdp.js} +1 -1
- package/dist/public/assets/{index-CLWW0mVu.js → index-CZmGe9gc.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-C_Db4yjo.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-wm5AnXDz.js → infoDiagram-KBXO4MBG-DoYdhkAy.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-BLUBDeS3.js → ishikawaDiagram-M35NCXHK-Bc0GAInW.js} +1 -1
- package/dist/public/assets/{javascript-C4S1eQb7.js → javascript-DZrowo_I.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-DXc7-I_g.js → journeyDiagram-OPLOXDXO-BM7Dwstu.js} +1 -1
- package/dist/public/assets/{jsonMode-lLJKR2M6.js → jsonMode-Bs30wPr5.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-D5Ra4L_5.js → kanban-definition-BZKZHSQY-CO-Crrdu.js} +1 -1
- package/dist/public/assets/{liquid-DRlm-XZd.js → liquid-dLz9d3ax.js} +1 -1
- package/dist/public/assets/{mdx-CzIqeqPy.js → mdx-DO0x92Kn.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-BIPB1BgS.js → mermaid-parser.core-BXwArNvw.js} +3 -3
- package/dist/public/assets/{mermaid.core-DxBlQ6oF.js → mermaid.core-C6mppfDC.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-BdupvuYr.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-ChpJIYsY.js → monaco-J_Pr5zjk.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-Bw7hmDUU.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-C_GF7Fng.js → pegDiagram-FD4XPPHP-DPDrbtS2.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-cb_eq1B6.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-WlpNP-IM.js → pieDiagram-J4AKIIQI-DXuaepGJ.js} +1 -1
- package/dist/public/assets/{python-BJgFCfc8.js → python-nnmIOv4s.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-CkCL5rJY.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-DZZKUytl.js → railroad-abnf-LNEFI6M7-CkCl68xY.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-CS7KsJdb.js → railroad-ebnf-DWYD2UWJ-DO3GiRv6.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-CiukTZVd.js → railroad-peg-JR7BVNR7-DZBsKy4P.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-BS0R_H3-.js → railroadDiagram-MRQ6NCDL-BeLq7Mqp.js} +1 -1
- package/dist/public/assets/{razor-jcBIjr45.js → razor-l2rRITgB.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-C0_T9jgl.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-DF15sUfS.js → sankeyDiagram-WGJFYUXA-tyo-p7oc.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-7AkTLleX.js → sequenceDiagram-5NDRBG5M-BSGPbeJX.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js → stateDiagram-v2-FJ4FJNEA-Dcdy66MQ.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-CR-ieLeo.js → swimlanes-UMQ2AFYF-BJfgQyQo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BWvcVkFg.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-DeM0Uekm.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-B7zp7QPf.js → typescript-LasX-M7S.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-D6rDIgdU.js → usecaseDiagram-AFA6YXN4-BzlSB4R4.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-CncVDcMl.js → vennDiagram-NNMJR3RB-4xaWLrMk.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-BXBG-txR.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DKPAMfTE.js → wardleyDiagram-S7YFUSEH-C-iK1p-O.js} +1 -1
- package/dist/public/assets/{xml-BJIgLD52.js → xml-CGhYQUqn.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DmmXGebm.js → xychartDiagram-GGNKY7IX-CFsnisdM.js} +1 -1
- package/dist/public/assets/{yaml-Dxb2gmP5.js → yaml-BcOaPfuH.js} +1 -1
- package/dist/public/index.html +2 -2
- package/dist/serve/index.mjs +2333 -1253
- 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-DyqqRII3.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +0 -1
- package/dist/public/assets/module-BPxWyxwR.js +0 -2362
- package/dist/public/assets/module-Blc8dqbf.js +0 -1
- package/dist/public/assets/module-C9WFrzAc.js +0 -1
- package/dist/public/assets/module-C_MSCGQC.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/packet-JDAUHWVQ-BjrqMgis.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-4nLUXAkG.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-BD2LqZSr.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-COK2pFDF.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-BL13z_2J.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-Lx2qjQpO.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +0 -1
|
@@ -8,12 +8,11 @@ exports.openRequest = openRequest;
|
|
|
8
8
|
exports.openJoin = openJoin;
|
|
9
9
|
exports.pasteJoin = pasteJoin;
|
|
10
10
|
const team_protocol_1 = require("@celljs/ta-protocol/lib/common/team-protocol");
|
|
11
|
-
const
|
|
11
|
+
const relay_team_1 = require("@celljs/ta-relay/lib/common/relay-team");
|
|
12
12
|
const page_1 = require("./page");
|
|
13
13
|
const parts_1 = require("./parts");
|
|
14
14
|
const protocol_1 = require("./protocol");
|
|
15
15
|
const react_1 = require("./react");
|
|
16
|
-
const seal_1 = require("./seal");
|
|
17
16
|
/** Shows a component over the page; an app older than `ui.custom` says so. */
|
|
18
17
|
function show(component) {
|
|
19
18
|
if (!page_1.pi.ui.custom) {
|
|
@@ -234,35 +233,49 @@ function openRequest(denial) {
|
|
|
234
233
|
}
|
|
235
234
|
/** Asking to come into another Ta by its link: a name, then waiting for the answer, then connecting there. */
|
|
236
235
|
function JoinDialog({ link, close }) {
|
|
236
|
+
var _a;
|
|
237
237
|
const [name, setName] = react_1.React.useState('');
|
|
238
238
|
const [state, setState] = react_1.React.useState('form');
|
|
239
239
|
const [error, setError] = react_1.React.useState();
|
|
240
|
+
const [ways, setWays] = react_1.React.useState();
|
|
241
|
+
const [signing, setSigning] = react_1.React.useState();
|
|
240
242
|
const joining = react_1.React.useRef(undefined);
|
|
243
|
+
const session = () => {
|
|
244
|
+
var _a;
|
|
245
|
+
(_a = joining.current) !== null && _a !== void 0 ? _a : (joining.current = new relay_team_1.RelayTeamJoining(link));
|
|
246
|
+
return joining.current;
|
|
247
|
+
};
|
|
241
248
|
react_1.React.useEffect(() => {
|
|
242
249
|
var _a;
|
|
243
250
|
void ((_a = page_1.pi.rooms) === null || _a === void 0 ? void 0 : _a.getIdentity().then(identity => setName(current => current || identity.name)).catch(() => undefined));
|
|
251
|
+
void session()
|
|
252
|
+
.ways()
|
|
253
|
+
.then(setWays, () => setWays({ providers: [], required: false }));
|
|
244
254
|
return () => { var _a; return (_a = joining.current) === null || _a === void 0 ? void 0 : _a.close(); };
|
|
245
255
|
}, []);
|
|
246
256
|
const owner = link.owner || 'Ta';
|
|
247
|
-
const ask = async () => {
|
|
257
|
+
const ask = async (signIn) => {
|
|
248
258
|
var _a;
|
|
249
|
-
var _b;
|
|
250
259
|
setError(undefined);
|
|
251
260
|
setState('asking');
|
|
252
|
-
const
|
|
253
|
-
(_a = joining.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
254
|
-
joining.current = session;
|
|
261
|
+
const current = session();
|
|
255
262
|
try {
|
|
256
|
-
let answer = await
|
|
257
|
-
|
|
263
|
+
let answer = await current.ask(name.trim(), undefined, signIn);
|
|
264
|
+
if (answer.status === 'refused' && answer.reason === 'account') {
|
|
265
|
+
setWays(known => { var _a; return ({ providers: (_a = known === null || known === void 0 ? void 0 : known.providers) !== null && _a !== void 0 ? _a : [], required: true }); });
|
|
266
|
+
setState('form');
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
const request = (_a = answer.request) !== null && _a !== void 0 ? _a : '';
|
|
258
270
|
if (answer.status === 'waiting') {
|
|
259
271
|
setState('waiting');
|
|
260
|
-
answer = await
|
|
272
|
+
answer = await current.wait(request);
|
|
261
273
|
}
|
|
262
274
|
if (answer.status === 'accepted' && answer.answer) {
|
|
263
275
|
setState('connecting');
|
|
264
|
-
const pairing = await
|
|
265
|
-
|
|
276
|
+
const pairing = await current.pairing(request, answer.answer);
|
|
277
|
+
current.close();
|
|
278
|
+
joining.current = undefined;
|
|
266
279
|
// Kept on the user's own Ta, before the page goes to the other: what was shared there lists in its home.
|
|
267
280
|
await rememberJoined({ pairing, owner, role: link.role, joinedAt: Date.now() });
|
|
268
281
|
if (!page_1.pi.ui.connect) {
|
|
@@ -285,17 +298,54 @@ function JoinDialog({ link, close }) {
|
|
|
285
298
|
setState('form');
|
|
286
299
|
}
|
|
287
300
|
};
|
|
301
|
+
/**
|
|
302
|
+
* Signs in with a provider in the browser (docs/design/ta-team.md 17): the page of the link signs in there for this
|
|
303
|
+
* app under an id of its own, and the account comes back here through the Ta of the link.
|
|
304
|
+
*/
|
|
305
|
+
const signIn = async (provider) => {
|
|
306
|
+
setError(undefined);
|
|
307
|
+
setSigning(provider.id === 'wechat' ? providerName(provider) : provider.name);
|
|
308
|
+
setState('signing');
|
|
309
|
+
const handoff = randomId();
|
|
310
|
+
// Not openLink: Ta takes a link that invites for itself. A window of the browser, which the provider sends back.
|
|
311
|
+
window.open(relay_team_1.RelayTeamLinkUtil.signInFor(link, provider.id, handoff), '_blank', 'noopener,noreferrer');
|
|
312
|
+
const account = await session().handedOff(handoff);
|
|
313
|
+
if (!account) {
|
|
314
|
+
if (joining.current) {
|
|
315
|
+
setError((0, page_1.t)('signInGone'));
|
|
316
|
+
setState('form');
|
|
317
|
+
}
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
await ask({ handoff });
|
|
321
|
+
};
|
|
322
|
+
const cancelSigning = () => {
|
|
323
|
+
var _a;
|
|
324
|
+
(_a = joining.current) === null || _a === void 0 ? void 0 : _a.close();
|
|
325
|
+
joining.current = undefined;
|
|
326
|
+
setState('form');
|
|
327
|
+
};
|
|
288
328
|
const role = link.role ? (0, page_1.roleName)({ id: link.role, name: link.role, preset: ['admin', 'collaborator', 'viewer', 'guest'].includes(link.role) }) : '';
|
|
329
|
+
const providers = (_a = ways === null || ways === void 0 ? void 0 : ways.providers) !== null && _a !== void 0 ? _a : [];
|
|
330
|
+
const required = !!(ways === null || ways === void 0 ? void 0 : ways.required);
|
|
289
331
|
return (react_1.React.createElement(page_1.pi.ui.Dialog, { title: (0, page_1.t)('joinTitle', { owner }), onClose: close },
|
|
290
332
|
react_1.React.createElement("div", { className: "ttm-dialog" }, state === 'form' || state === 'asking' ? (react_1.React.createElement(react_1.React.Fragment, null,
|
|
291
333
|
react_1.React.createElement("p", { className: "ttm-lead" }, link.what ? (0, page_1.t)('joinWhat', { what: link.what }) : (0, page_1.t)('joinLead', { role })),
|
|
292
|
-
react_1.React.createElement("
|
|
334
|
+
required && react_1.React.createElement("p", { className: "ttm-hint" }, (0, page_1.t)('joinNeedsAccount', { owner })),
|
|
335
|
+
!required && (react_1.React.createElement("label", { className: "ttm-field" },
|
|
293
336
|
react_1.React.createElement("span", null, (0, page_1.t)('yourName')),
|
|
294
|
-
react_1.React.createElement("input", { className: "ttm-input", value: name, onChange: event => setName(event.target.value) })),
|
|
337
|
+
react_1.React.createElement("input", { className: "ttm-input", value: name, onChange: event => setName(event.target.value) }))),
|
|
295
338
|
error && react_1.React.createElement("p", { className: "ttm-error" }, error),
|
|
339
|
+
providers.length > 0 && (react_1.React.createElement("div", { className: "ttm-sign-ins" },
|
|
340
|
+
!required && react_1.React.createElement("span", { className: "ttm-hint" }, (0, page_1.t)('orSignIn')),
|
|
341
|
+
providers.map(provider => (react_1.React.createElement("button", { key: provider.id, type: "button", className: `ta-button${required ? ' ta-primary' : ''}`, disabled: state === 'asking', onClick: () => void signIn(provider) }, (0, page_1.t)('signInWith', { provider: providerName(provider) })))))),
|
|
296
342
|
react_1.React.createElement("div", { className: "ttm-actions" },
|
|
297
343
|
react_1.React.createElement("button", { type: "button", className: "ta-button", onClick: close }, (0, page_1.t)('cancel')),
|
|
298
|
-
react_1.React.createElement("button", { type: "button", className: `ta-button ta-primary${state === 'asking' ? ' ta-busy' : ''}`, disabled: !name.trim() || state === 'asking', onClick: () => void ask() }, (0, page_1.t)('askJoin'))))) : (react_1.React.createElement(react_1.React.Fragment, null,
|
|
344
|
+
!required && (react_1.React.createElement("button", { type: "button", className: `ta-button ta-primary${state === 'asking' ? ' ta-busy' : ''}`, disabled: !name.trim() || state === 'asking' || !ways, onClick: () => void ask() }, (0, page_1.t)('askJoin')))))) : state === 'signing' ? (react_1.React.createElement(react_1.React.Fragment, null,
|
|
345
|
+
react_1.React.createElement("p", { className: "ttm-lead" }, (0, page_1.t)('signingInBrowser', { provider: signing ? providerName({ id: '', name: signing }) : '' })),
|
|
346
|
+
react_1.React.createElement("p", { className: "ttm-hint" }, (0, page_1.t)('signingInHint')),
|
|
347
|
+
react_1.React.createElement("div", { className: "ttm-actions" },
|
|
348
|
+
react_1.React.createElement("button", { type: "button", className: "ta-button", onClick: cancelSigning }, (0, page_1.t)('cancel'))))) : (react_1.React.createElement(react_1.React.Fragment, null,
|
|
299
349
|
react_1.React.createElement("p", { className: "ttm-lead" }, state === 'waiting'
|
|
300
350
|
? (0, page_1.t)('joinWaiting', { owner })
|
|
301
351
|
: state === 'connecting'
|
|
@@ -306,6 +356,23 @@ function JoinDialog({ link, close }) {
|
|
|
306
356
|
react_1.React.createElement("div", { className: "ttm-actions" },
|
|
307
357
|
react_1.React.createElement("button", { type: "button", className: "ta-button", onClick: close }, (0, page_1.t)('close'))))))));
|
|
308
358
|
}
|
|
359
|
+
/** An id of the moment, as RelayTeamLinkUtil.signInFor wants one. */
|
|
360
|
+
function randomId() {
|
|
361
|
+
const bytes = crypto.getRandomValues(new Uint8Array(18));
|
|
362
|
+
return btoa(String.fromCharCode(...bytes))
|
|
363
|
+
.replace(/\+/g, '-')
|
|
364
|
+
.replace(/\//g, '_')
|
|
365
|
+
.replace(/=+$/, '');
|
|
366
|
+
}
|
|
367
|
+
/** A provider in the words of the page: WeChat is 微信 in Chinese. */
|
|
368
|
+
function providerName(provider) {
|
|
369
|
+
const chinese = page_1.pi.ui.language.startsWith('zh');
|
|
370
|
+
if (provider.id === 'wechat' && chinese) {
|
|
371
|
+
return '微信';
|
|
372
|
+
}
|
|
373
|
+
// Latin among Chinese has a space on each side: 用 GitHub 登录.
|
|
374
|
+
return chinese && /^[\x20-\x7e]+$/.test(provider.name) ? ` ${provider.name} ` : provider.name;
|
|
375
|
+
}
|
|
309
376
|
/** Another Ta the user was let into, kept in the data of the package on their own Ta (JOINED_KEY). */
|
|
310
377
|
async function rememberJoined(joined) {
|
|
311
378
|
var _a;
|
|
@@ -318,7 +385,7 @@ async function rememberJoined(joined) {
|
|
|
318
385
|
}
|
|
319
386
|
}
|
|
320
387
|
function openJoin(text) {
|
|
321
|
-
const link =
|
|
388
|
+
const link = relay_team_1.RelayTeamLinkUtil.parse(text);
|
|
322
389
|
if (!link) {
|
|
323
390
|
return false;
|
|
324
391
|
}
|
|
@@ -14,6 +14,10 @@ async function activate(host) {
|
|
|
14
14
|
return {
|
|
15
15
|
_team: team,
|
|
16
16
|
dispose: () => team.dispose(),
|
|
17
|
+
ways: (input) => invites.ways(input),
|
|
18
|
+
signIn: (input) => invites.signIn(input),
|
|
19
|
+
signedIn: (input) => invites.signedIn(input),
|
|
20
|
+
handedOff: (handoff) => invites.handedOff(handoff),
|
|
17
21
|
ask: (input) => invites.ask(input),
|
|
18
22
|
wait: (request) => invites.wait(request),
|
|
19
23
|
createInvite: (input) => invites.createInvite(input),
|
|
@@ -27,7 +27,11 @@ declare const EN: {
|
|
|
27
27
|
you: string;
|
|
28
28
|
owner: string;
|
|
29
29
|
online: string;
|
|
30
|
+
fromBrowser: string;
|
|
30
31
|
offline: string;
|
|
32
|
+
lookingAt: string;
|
|
33
|
+
typingIn: string;
|
|
34
|
+
follow: string;
|
|
31
35
|
remove: string;
|
|
32
36
|
removeTitle: string;
|
|
33
37
|
removeHint: string;
|
|
@@ -59,6 +63,13 @@ declare const EN: {
|
|
|
59
63
|
makeLink: string;
|
|
60
64
|
making: string;
|
|
61
65
|
inviteHint: string;
|
|
66
|
+
joinNeedsAccount: string;
|
|
67
|
+
orSignIn: string;
|
|
68
|
+
anonymous: string;
|
|
69
|
+
signInWith: string;
|
|
70
|
+
signingInBrowser: string;
|
|
71
|
+
signingInHint: string;
|
|
72
|
+
signInGone: string;
|
|
62
73
|
roleDialog: string;
|
|
63
74
|
roleName: string;
|
|
64
75
|
roleDirs: string;
|
|
@@ -30,7 +30,11 @@ const EN = {
|
|
|
30
30
|
you: 'You',
|
|
31
31
|
owner: 'Owner',
|
|
32
32
|
online: 'Online',
|
|
33
|
+
fromBrowser: 'Browser',
|
|
33
34
|
offline: 'Offline',
|
|
35
|
+
lookingAt: 'Looking at {title}',
|
|
36
|
+
typingIn: 'Typing in {title}',
|
|
37
|
+
follow: 'Follow',
|
|
34
38
|
remove: 'Remove',
|
|
35
39
|
removeTitle: 'Remove {name}?',
|
|
36
40
|
removeHint: 'Their devices are cut off at once, and what they were doing stops. Conversations they started stay.',
|
|
@@ -61,7 +65,14 @@ const EN = {
|
|
|
61
65
|
approveHint: 'Off: whoever opens the link is in at once. Keep it on unless you sent it to people you trust only.',
|
|
62
66
|
makeLink: 'Make the link',
|
|
63
67
|
making: 'Making the link…',
|
|
64
|
-
inviteHint: 'Send it: they open it in Ta
|
|
68
|
+
inviteHint: 'Send it: they open it in Ta, or in a browser without Ta, and ask to come in, with a name of their own (anonymous) or signed in with an account, as they like. From a browser, only one signed in gets a role that manages members.',
|
|
69
|
+
joinNeedsAccount: '{owner} asks you to sign in with an account: they see who you are, and it is you from any device.',
|
|
70
|
+
orSignIn: 'Without signing in you are anonymous, by the name you give. Or sign in, so that they see who you are:',
|
|
71
|
+
anonymous: 'Anonymous',
|
|
72
|
+
signInWith: 'Sign in with {provider}',
|
|
73
|
+
signingInBrowser: 'Sign in with {provider} in the browser that opened…',
|
|
74
|
+
signingInHint: 'Once signed in there, come back here: Ta goes on by itself.',
|
|
75
|
+
signInGone: 'The sign-in took too long: try again.',
|
|
65
76
|
roleDialog: 'Role',
|
|
66
77
|
roleName: 'Name',
|
|
67
78
|
roleDirs: 'Its folders (one per line); empty: the folders shared',
|
|
@@ -223,7 +234,11 @@ const ZH = {
|
|
|
223
234
|
you: '你',
|
|
224
235
|
owner: '所有者',
|
|
225
236
|
online: '在线',
|
|
237
|
+
fromBrowser: '浏览器',
|
|
226
238
|
offline: '离线',
|
|
239
|
+
lookingAt: '在看「{title}」',
|
|
240
|
+
typingIn: '正在「{title}」里输入',
|
|
241
|
+
follow: '跟随',
|
|
227
242
|
remove: '移出',
|
|
228
243
|
removeTitle: '移出 {name}?',
|
|
229
244
|
removeHint: '他的设备会立刻断开,正在替他做的事会停下。他新建的对话会保留。',
|
|
@@ -254,7 +269,14 @@ const ZH = {
|
|
|
254
269
|
approveHint: '关掉后打开链接的人会直接加入。除非只发给信任的人,否则建议保持开启。',
|
|
255
270
|
makeLink: '生成链接',
|
|
256
271
|
making: '正在生成链接…',
|
|
257
|
-
inviteHint: '把链接发给对方:他在 Ta
|
|
272
|
+
inviteHint: '把链接发给对方:他在 Ta 里打开,没装 Ta 也能直接用浏览器打开,然后申请加入。登不登录由对方决定:填个名字就是匿名加入,也可以用账号登录让你知道他是谁。从浏览器加入的人要登录才能当管理员。',
|
|
273
|
+
joinNeedsAccount: '{owner}要求用账号登录后申请:对方能看到你是谁,换台设备也是同一个人。',
|
|
274
|
+
orSignIn: '不登录就是匿名加入,对方看到的是你填的名字。也可以用账号登录,让对方知道你是谁:',
|
|
275
|
+
anonymous: '匿名',
|
|
276
|
+
signInWith: '用{provider}登录',
|
|
277
|
+
signingInBrowser: '请在打开的浏览器里用{provider}登录…',
|
|
278
|
+
signingInHint: '登录好后回到这里,Ta 会自动继续。',
|
|
279
|
+
signInGone: '登录等太久了,请再试一次。',
|
|
258
280
|
roleDialog: '角色',
|
|
259
281
|
roleName: '名称',
|
|
260
282
|
roleDirs: '限定的文件夹(每行一个),留空就用共享的文件夹',
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Mine = Mine;
|
|
4
4
|
exports.MembersTab = MembersTab;
|
|
5
|
+
const team_protocol_1 = require("@celljs/ta-protocol/lib/common/team-protocol");
|
|
5
6
|
const dialogs_1 = require("./dialogs");
|
|
6
7
|
const member_dialog_1 = require("./member-dialog");
|
|
7
8
|
const page_1 = require("./page");
|
|
@@ -15,8 +16,10 @@ function JoinRow({ join, overview }) {
|
|
|
15
16
|
return (react_1.React.createElement("li", { className: `ttm-row${busy ? ' ta-pending' : ''}` },
|
|
16
17
|
react_1.React.createElement(parts_1.Face, { seed: join.id, name: join.name }),
|
|
17
18
|
react_1.React.createElement("div", { className: "ttm-row-text" },
|
|
18
|
-
react_1.React.createElement("span", { className: "ttm-row-title" },
|
|
19
|
-
|
|
19
|
+
react_1.React.createElement("span", { className: "ttm-row-title" },
|
|
20
|
+
join.name,
|
|
21
|
+
join.web && react_1.React.createElement("span", { className: "ttm-tag" }, (0, page_1.t)('fromBrowser'))),
|
|
22
|
+
react_1.React.createElement("span", { className: "ttm-row-line ttm-ellipsis" }, [(0, page_1.accountLine)(join.account) || (0, page_1.t)('anonymous'), (0, page_1.t)('joinRow')].join(' · '))),
|
|
20
23
|
react_1.React.createElement("div", { className: "ttm-answers" },
|
|
21
24
|
react_1.React.createElement("select", { className: "ttm-select ttm-select-small", value: role, onChange: event => setRole(event.target.value) }, overview.roles.map(one => (react_1.React.createElement("option", { key: one.id, value: one.id }, (0, page_1.roleName)(one))))),
|
|
22
25
|
react_1.React.createElement("button", { type: "button", className: "ta-button", disabled: busy, onClick: () => void run(() => (0, page_1.act)(() => (0, page_1.call)('answerJoin', join.id, false))) }, (0, page_1.t)('refuse')),
|
|
@@ -71,9 +74,39 @@ function Mine({ me }) {
|
|
|
71
74
|
request.resource && react_1.React.createElement("span", { className: "ttm-row-line ttm-ellipsis" }, (_a = request.resource.title) !== null && _a !== void 0 ? _a : request.resource.id)),
|
|
72
75
|
react_1.React.createElement("span", { className: `ttm-tag${request.status === 'granted' ? ' ttm-tag-good' : ''}` }, status(request)))); })))));
|
|
73
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Where each one is now, by principal: the conversation they look at, as ta serve tells it with the open sessions
|
|
79
|
+
* (TaSessionInfo.people), of those this page may see; this page's own principal is never in it.
|
|
80
|
+
*/
|
|
81
|
+
function usePlaces() {
|
|
82
|
+
const sessions = page_1.pi.ui.useSessions();
|
|
83
|
+
return react_1.React.useMemo(() => {
|
|
84
|
+
var _a;
|
|
85
|
+
var _b;
|
|
86
|
+
const places = new Map();
|
|
87
|
+
for (const session of sessions) {
|
|
88
|
+
for (const person of (_b = session.people) !== null && _b !== void 0 ? _b : []) {
|
|
89
|
+
if (person.viewing && !((_a = places.get(person.id)) === null || _a === void 0 ? void 0 : _a.typing)) {
|
|
90
|
+
const title = session.sessionName || session.firstMessage || session.cwd.split('/').filter(Boolean).pop() || session.cwd;
|
|
91
|
+
places.set(person.id, { sessionFile: session.sessionFile, title, typing: !!person.typing });
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return places;
|
|
96
|
+
}, [sessions]);
|
|
97
|
+
}
|
|
98
|
+
function placeLine(place) {
|
|
99
|
+
return place ? (0, page_1.t)(place.typing ? 'typingIn' : 'lookingAt', { title: place.title }) : '';
|
|
100
|
+
}
|
|
101
|
+
/** Goes where they are: their conversation opens here too. */
|
|
102
|
+
function Follow({ place }) {
|
|
103
|
+
const file = place === null || place === void 0 ? void 0 : place.sessionFile;
|
|
104
|
+
return file ? (react_1.React.createElement("button", { type: "button", className: "ttm-link ttm-follow", onClick: () => { var _a; return void ((_a = page_1.pi.openChat) === null || _a === void 0 ? void 0 : _a.call(page_1.pi, file)); } }, (0, page_1.t)('follow'))) : null;
|
|
105
|
+
}
|
|
74
106
|
/** The tab of members: what waits for an answer, who is in, the links that invite. */
|
|
75
107
|
function MembersTab({ me, overview }) {
|
|
76
108
|
const may = (action) => me.owner || me.actions.includes(action);
|
|
109
|
+
const places = usePlaces();
|
|
77
110
|
const Plus = (0, page_1.icon)('UserPlus');
|
|
78
111
|
const Chevron = (0, page_1.icon)('ChevronRight');
|
|
79
112
|
return (react_1.React.createElement(react_1.React.Fragment, null,
|
|
@@ -92,29 +125,43 @@ function MembersTab({ me, overview }) {
|
|
|
92
125
|
overview.access.map(request => (react_1.React.createElement(AccessRow, { key: request.id, request: request, overview: overview }))))),
|
|
93
126
|
overview && (react_1.React.createElement(parts_1.Section, { title: `${(0, page_1.t)('members')} · ${overview.members.length + 1}`, end: !me.owner && may('members.invite') ? (react_1.React.createElement("button", { type: "button", className: "ttm-link", onClick: () => (0, dialogs_1.openInvite)(overview.roles) }, (0, page_1.t)('invite'))) : undefined },
|
|
94
127
|
react_1.React.createElement("li", { className: "ttm-row" },
|
|
95
|
-
react_1.React.createElement(parts_1.Face, { seed: "owner", name: overview.ownerName, online: true }),
|
|
128
|
+
react_1.React.createElement(parts_1.Face, { seed: "owner", name: overview.ownerName, online: true, double: true }),
|
|
96
129
|
react_1.React.createElement("div", { className: "ttm-row-text" },
|
|
97
130
|
react_1.React.createElement("span", { className: "ttm-row-title" },
|
|
98
131
|
overview.ownerName,
|
|
99
|
-
me.owner && react_1.React.createElement("span", { className: "ttm-tag" }, (0, page_1.t)('you')))
|
|
132
|
+
me.owner && react_1.React.createElement("span", { className: "ttm-tag" }, (0, page_1.t)('you'))),
|
|
133
|
+
places.has(team_protocol_1.TA_OWNER) && react_1.React.createElement("span", { className: "ttm-row-line ttm-ellipsis" }, placeLine(places.get(team_protocol_1.TA_OWNER)))),
|
|
134
|
+
react_1.React.createElement(Follow, { place: places.get(team_protocol_1.TA_OWNER) }),
|
|
100
135
|
react_1.React.createElement("span", { className: "ttm-tag" }, (0, page_1.t)('owner'))),
|
|
101
136
|
overview.members.map(member => {
|
|
102
137
|
const shared = new Set(overview.grants
|
|
103
138
|
.filter(grant => { var _a, _b; return grant.member === member.id && (((_a = grant.resource) === null || _a === void 0 ? void 0 : _a.kind) === 'agent' || ((_b = grant.resource) === null || _b === void 0 ? void 0 : _b.kind) === 'channel'); })
|
|
104
139
|
.map(grant => { var _a; return (_a = grant.resource) === null || _a === void 0 ? void 0 : _a.id; })).size;
|
|
105
|
-
const
|
|
140
|
+
const place = member.online ? places.get(member.id) : undefined;
|
|
141
|
+
const line = [
|
|
142
|
+
member.online ? (0, page_1.t)('online') : (0, page_1.t)('offline'),
|
|
143
|
+
(0, page_1.accountLine)(member.account) || (0, page_1.t)('anonymous'),
|
|
144
|
+
member.web ? (0, page_1.t)('fromBrowser') : '',
|
|
145
|
+
placeLine(place),
|
|
146
|
+
shared ? `${(0, page_1.t)('shared')} ${shared}` : '',
|
|
147
|
+
]
|
|
148
|
+
.filter(Boolean)
|
|
149
|
+
.join(' · ');
|
|
106
150
|
const content = (react_1.React.createElement(react_1.React.Fragment, null,
|
|
107
151
|
react_1.React.createElement(parts_1.Face, { seed: member.id, name: member.name, online: member.online > 0 }),
|
|
108
152
|
react_1.React.createElement("div", { className: "ttm-row-text" },
|
|
109
153
|
react_1.React.createElement("span", { className: "ttm-row-title" },
|
|
110
154
|
member.name,
|
|
111
155
|
member.id === me.principal && react_1.React.createElement("span", { className: "ttm-tag" }, (0, page_1.t)('you'))),
|
|
112
|
-
react_1.React.createElement("span", { className: `ttm-row-line${member.online ? ' ttm-live' : ''}` }, line)),
|
|
156
|
+
react_1.React.createElement("span", { className: `ttm-row-line ttm-ellipsis${member.online ? ' ttm-live' : ''}` }, line)),
|
|
113
157
|
react_1.React.createElement("span", { className: "ttm-tag" }, (0, page_1.roleName)(overview.roles.find(role => role.id === member.role)))));
|
|
114
|
-
return may('members.roles') ? (react_1.React.createElement("li", { key: member.id },
|
|
158
|
+
return may('members.roles') ? (react_1.React.createElement("li", { key: member.id, className: "ttm-follow-wrap" },
|
|
115
159
|
react_1.React.createElement("button", { type: "button", className: "ttm-row ttm-button-row", onClick: () => (0, member_dialog_1.openMember)(member.id) },
|
|
116
160
|
content,
|
|
117
|
-
react_1.React.createElement(Chevron, { size: 15 }))
|
|
161
|
+
react_1.React.createElement(Chevron, { size: 15 })),
|
|
162
|
+
react_1.React.createElement(Follow, { place: place }))) : (react_1.React.createElement("li", { key: member.id, className: "ttm-row" },
|
|
163
|
+
content,
|
|
164
|
+
react_1.React.createElement(Follow, { place: place })));
|
|
118
165
|
}))),
|
|
119
166
|
overview && overview.invites.length > 0 && (react_1.React.createElement(parts_1.Section, { title: (0, page_1.t)('links') }, overview.invites.map(invite => { var _a; return (react_1.React.createElement("li", { key: invite.id, className: "ttm-row" },
|
|
120
167
|
react_1.React.createElement("div", { className: "ttm-row-text" },
|
|
@@ -13,6 +13,11 @@ export declare function roleName(role: {
|
|
|
13
13
|
name: string;
|
|
14
14
|
preset?: boolean;
|
|
15
15
|
} | undefined): string;
|
|
16
|
+
/** An account as the page shows it: `GitHub ada`; WeChat's id says nothing, so its name alone. */
|
|
17
|
+
export declare function accountLine(account: {
|
|
18
|
+
id: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
} | undefined): string;
|
|
16
21
|
export declare function icon(name: string): WebIcon;
|
|
17
22
|
export declare function message(error: unknown): string;
|
|
18
23
|
export declare function call<T>(method: string, ...params: unknown[]): Promise<T>;
|
|
@@ -5,6 +5,7 @@ exports.bindPage = bindPage;
|
|
|
5
5
|
exports.t = t;
|
|
6
6
|
exports.actionTitle = actionTitle;
|
|
7
7
|
exports.roleName = roleName;
|
|
8
|
+
exports.accountLine = accountLine;
|
|
8
9
|
exports.icon = icon;
|
|
9
10
|
exports.message = message;
|
|
10
11
|
exports.call = call;
|
|
@@ -35,6 +36,20 @@ function roleName(role) {
|
|
|
35
36
|
const key = `role.${role.id}`;
|
|
36
37
|
return role.preset && key in i18n_1.TeamWords.of('en') ? t(key) : role.name;
|
|
37
38
|
}
|
|
39
|
+
const PROVIDERS = { github: 'GitHub', google: 'Google', wechat: 'WeChat', oidc: 'SSO' };
|
|
40
|
+
/** An account as the page shows it: `GitHub ada`; WeChat's id says nothing, so its name alone. */
|
|
41
|
+
function accountLine(account) {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
var _c, _d;
|
|
44
|
+
if (!account) {
|
|
45
|
+
return '';
|
|
46
|
+
}
|
|
47
|
+
const at = account.id.indexOf(':');
|
|
48
|
+
const provider = account.id.slice(0, at);
|
|
49
|
+
// As this Ta names it (the operator's own provider has its name); one no longer set up, by its id.
|
|
50
|
+
const name = (_d = (_c = (_b = (_a = exports.book.get().overview) === null || _a === void 0 ? void 0 : _a.providers.find(one => one.id === provider)) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : PROVIDERS[provider]) !== null && _d !== void 0 ? _d : provider;
|
|
51
|
+
return provider === 'wechat' ? (exports.pi.ui.language.startsWith('zh') ? '微信' : name) : `${name} ${account.id.slice(at + 1)}`;
|
|
52
|
+
}
|
|
38
53
|
function icon(name) {
|
|
39
54
|
var _a, _b;
|
|
40
55
|
return (_b = (_a = exports.pi.ui.icons[name]) !== null && _a !== void 0 ? _a : exports.pi.ui.icons.Users) !== null && _b !== void 0 ? _b : exports.pi.ui.icons.Circle;
|
|
@@ -3,11 +3,13 @@ export declare function Section({ title, children, end }: {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
end?: React.ReactNode;
|
|
5
5
|
}): import("react").JSX.Element;
|
|
6
|
-
|
|
6
|
+
/** A face; `double` the owner of this Ta, drawn as its double. */
|
|
7
|
+
export declare function Face({ seed, name, online, size, double }: {
|
|
7
8
|
seed: string;
|
|
8
9
|
name: string;
|
|
9
10
|
online?: boolean;
|
|
10
11
|
size?: number;
|
|
12
|
+
double?: boolean;
|
|
11
13
|
}): import("react").JSX.Element;
|
|
12
14
|
/** A row that opens something: its text and a chevron. */
|
|
13
15
|
export declare function LinkRow({ title, line, onClick, tag }: {
|
|
@@ -15,8 +15,9 @@ function Section({ title, children, end }) {
|
|
|
15
15
|
end),
|
|
16
16
|
react_1.React.createElement("ul", { className: "ttm-card" }, children)));
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/** A face; `double` the owner of this Ta, drawn as its double. */
|
|
19
|
+
function Face({ seed, name, online, size = 34, double }) {
|
|
20
|
+
return page_1.pi.ui.Face ? (react_1.React.createElement(page_1.pi.ui.Face, { seed: seed, size: size, online: online, double: double })) : (react_1.React.createElement("span", { className: "ttm-letter", style: { width: size, height: size } }, name.slice(0, 1).toUpperCase()));
|
|
20
21
|
}
|
|
21
22
|
/** A row that opens something: its text and a chevron. */
|
|
22
23
|
function LinkRow({ title, line, onClick, tag }) {
|
|
@@ -32,7 +33,7 @@ function LinkRow({ title, line, onClick, tag }) {
|
|
|
32
33
|
}
|
|
33
34
|
/** Choices side by side, one picked: the tabs of the page, the level of a share. */
|
|
34
35
|
function Segments({ value, items, onChange, }) {
|
|
35
|
-
return (react_1.React.createElement("div", { className: "ttm-segments", role: "tablist" }, items.map(item => (react_1.React.createElement("button", { key: item.id, type: "button", role: "tab", "aria-selected": item.id === value, className:
|
|
36
|
+
return (react_1.React.createElement("div", { className: "ta-segmented ttm-segments", role: "tablist" }, items.map(item => (react_1.React.createElement("button", { key: item.id, type: "button", role: "tab", "aria-selected": item.id === value, className: item.id === value ? 'ta-on' : undefined, onClick: () => onChange(item.id) },
|
|
36
37
|
item.label,
|
|
37
38
|
item.badge ? react_1.React.createElement("span", { className: "ttm-badge" }, item.badge > 99 ? '99+' : item.badge) : null)))));
|
|
38
39
|
}
|
|
@@ -12,6 +12,30 @@ export interface TeamDenial extends TaDenial {
|
|
|
12
12
|
}
|
|
13
13
|
/** Who may do what among those let into a Ta (docs/design/ta-team.md 3, 13): only allowing, never denying, so that it explains itself. */
|
|
14
14
|
export declare namespace TeamPolicy {
|
|
15
|
+
/**
|
|
16
|
+
* Managing who comes in and what they may: taken in the Ta app alone, never by one who came in from a browser, whose
|
|
17
|
+
* page the relay serves (docs/design/ta-team.md 8.3).
|
|
18
|
+
*/
|
|
19
|
+
const MANAGING: readonly string[];
|
|
20
|
+
function manages(actions: readonly string[]): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether one may manage members as they came in: from the Ta app, or from a browser signed in with an account (the
|
|
23
|
+
* provider says who they are, which the relay serving the page cannot make up).
|
|
24
|
+
*/
|
|
25
|
+
function mayManage(member: {
|
|
26
|
+
web?: true;
|
|
27
|
+
account?: unknown;
|
|
28
|
+
}): boolean;
|
|
29
|
+
/** Throws when one who came in from a browser without an account would get a role that manages members. */
|
|
30
|
+
function mayHold(member: {
|
|
31
|
+
web?: true;
|
|
32
|
+
account?: unknown;
|
|
33
|
+
}, role: Pick<TeamRole, 'actions'>): void;
|
|
34
|
+
/** Throws when one who came in from a browser without an account would be given an action that manages members. */
|
|
35
|
+
function mayBeGiven(member: {
|
|
36
|
+
web?: true;
|
|
37
|
+
account?: unknown;
|
|
38
|
+
} | undefined, action: string): void;
|
|
15
39
|
function roles(data: TeamData): TeamRole[];
|
|
16
40
|
function roleOf(data: TeamData, id: string | undefined): TeamRole | undefined;
|
|
17
41
|
function valid(grant: TeamGrant, now: number): boolean;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TeamPolicy = void 0;
|
|
4
4
|
const team_protocol_1 = require("@celljs/ta-protocol/lib/common/team-protocol");
|
|
5
5
|
const protocol_1 = require("./protocol");
|
|
6
|
+
const team_error_1 = require("./team-error");
|
|
6
7
|
const SCOPED = new Set(['files.read', 'files.write', 'commands.run', 'commands.terminal']);
|
|
7
8
|
/** What a grant of an action also gives: who may change an agent may use it, who may use it sees it. */
|
|
8
9
|
const IMPLIES = {
|
|
@@ -33,6 +34,37 @@ function ofAction(action, of) {
|
|
|
33
34
|
/** Who may do what among those let into a Ta (docs/design/ta-team.md 3, 13): only allowing, never denying, so that it explains itself. */
|
|
34
35
|
var TeamPolicy;
|
|
35
36
|
(function (TeamPolicy) {
|
|
37
|
+
/**
|
|
38
|
+
* Managing who comes in and what they may: taken in the Ta app alone, never by one who came in from a browser, whose
|
|
39
|
+
* page the relay serves (docs/design/ta-team.md 8.3).
|
|
40
|
+
*/
|
|
41
|
+
TeamPolicy.MANAGING = ['members.invite', 'members.approve', 'members.roles'];
|
|
42
|
+
function manages(actions) {
|
|
43
|
+
return actions.some(action => TeamPolicy.MANAGING.includes(action));
|
|
44
|
+
}
|
|
45
|
+
TeamPolicy.manages = manages;
|
|
46
|
+
/**
|
|
47
|
+
* Whether one may manage members as they came in: from the Ta app, or from a browser signed in with an account (the
|
|
48
|
+
* provider says who they are, which the relay serving the page cannot make up).
|
|
49
|
+
*/
|
|
50
|
+
function mayManage(member) {
|
|
51
|
+
return !member.web || !!member.account;
|
|
52
|
+
}
|
|
53
|
+
TeamPolicy.mayManage = mayManage;
|
|
54
|
+
/** Throws when one who came in from a browser without an account would get a role that manages members. */
|
|
55
|
+
function mayHold(member, role) {
|
|
56
|
+
if (!mayManage(member) && manages(role.actions)) {
|
|
57
|
+
throw new team_error_1.TeamError('Who came in from a browser without an account gets no role that manages members: they sign in with one, or join in the Ta app.');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
TeamPolicy.mayHold = mayHold;
|
|
61
|
+
/** Throws when one who came in from a browser without an account would be given an action that manages members. */
|
|
62
|
+
function mayBeGiven(member, action) {
|
|
63
|
+
if (member && !mayManage(member) && TeamPolicy.MANAGING.includes(action)) {
|
|
64
|
+
throw new team_error_1.TeamError('Who came in from a browser without an account is given nothing that manages members: they sign in with one, or join in the Ta app.');
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
TeamPolicy.mayBeGiven = mayBeGiven;
|
|
36
68
|
function roles(data) {
|
|
37
69
|
return [...protocol_1.PRESET_ROLES, ...data.roles.filter(role => !protocol_1.PRESET_ROLES.some(preset => preset.id === role.id))];
|
|
38
70
|
}
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
export declare const NAME = "@celljs/ta-team";
|
|
3
3
|
/** The page of members and what they may do (`ui.showView`). */
|
|
4
4
|
export declare const TEAM_VIEW = "@celljs/ta-team/team";
|
|
5
|
-
/** The path of a link that invites into a Ta, on its relay: `<relay>/j#…`. */
|
|
6
|
-
export declare const JOIN_PATH = "/j";
|
|
7
5
|
/** In the data of the package, for the owner's pages: what waits for an answer, so that they tell of it. */
|
|
8
6
|
export declare const INBOX_KEY = "inbox";
|
|
9
7
|
/** In the data of the package on the user's own Ta: the other Ta they were let into (TeamJoined). */
|
|
@@ -44,6 +42,18 @@ export interface TeamMember {
|
|
|
44
42
|
joinedAt: number;
|
|
45
43
|
/** Who let them in: a principal. */
|
|
46
44
|
by: string;
|
|
45
|
+
/** Came in from a browser (the page of the relay), not the Ta app: given a role or grant that manages members only with `account`. */
|
|
46
|
+
web?: true;
|
|
47
|
+
/**
|
|
48
|
+
* The account they signed in with, as its provider said (docs/design/ta-team.md 17): one person, whichever browser or
|
|
49
|
+
* link they come in by again.
|
|
50
|
+
*/
|
|
51
|
+
account?: TeamAccount;
|
|
52
|
+
}
|
|
53
|
+
/** An account of a provider ta serve signs in with (TaAccount): `github:<login>`, `google:<email>`… */
|
|
54
|
+
export interface TeamAccount {
|
|
55
|
+
id: string;
|
|
56
|
+
name?: string;
|
|
47
57
|
}
|
|
48
58
|
/** What a grant is on: a folder, a conversation, an agent or a channel. */
|
|
49
59
|
export interface TeamGrantResource {
|
|
@@ -97,13 +107,17 @@ export interface TeamJoin {
|
|
|
97
107
|
box: string;
|
|
98
108
|
at: number;
|
|
99
109
|
status: 'waiting' | 'accepted' | 'refused';
|
|
100
|
-
/** Accepted: the device sealed for `box` (
|
|
110
|
+
/** Accepted: the device sealed for `box` (RelayTeamSeal). */
|
|
101
111
|
answer?: {
|
|
102
112
|
box: string;
|
|
103
113
|
sealed: string;
|
|
104
114
|
};
|
|
105
115
|
member?: string;
|
|
106
116
|
by?: string;
|
|
117
|
+
/** Asked from a browser (TeamMember.web). */
|
|
118
|
+
web?: true;
|
|
119
|
+
/** Signed in with it as they asked: the provider says who they are. */
|
|
120
|
+
account?: TeamAccount;
|
|
107
121
|
}
|
|
108
122
|
/** One let in asked for an action they may not do (docs/design/ta-team.md 6). */
|
|
109
123
|
export interface TeamAccess {
|
|
@@ -220,6 +234,11 @@ export interface TeamOverview {
|
|
|
220
234
|
limits: TeamLimits;
|
|
221
235
|
/** Unseen first. */
|
|
222
236
|
alerts: TeamAlert[];
|
|
237
|
+
/** The providers this Ta signs in with (17), which those asking may use, and the names of accounts; none: not set up. */
|
|
238
|
+
providers: {
|
|
239
|
+
id: string;
|
|
240
|
+
name: string;
|
|
241
|
+
}[];
|
|
223
242
|
}
|
|
224
243
|
/** What waits for the owner's answer (INBOX_KEY). */
|
|
225
244
|
export interface TeamInbox {
|
|
@@ -234,18 +253,6 @@ export interface TeamInbox {
|
|
|
234
253
|
at: number;
|
|
235
254
|
};
|
|
236
255
|
}
|
|
237
|
-
/** What a link of invitation carries (JOIN_PATH): the device to ask with, and what to show before asking. */
|
|
238
|
-
export interface TeamInviteLink {
|
|
239
|
-
relay: string;
|
|
240
|
-
host: string;
|
|
241
|
-
device: string;
|
|
242
|
-
key: string;
|
|
243
|
-
/** Whose Ta, and the name of the role it gives. */
|
|
244
|
-
owner: string;
|
|
245
|
-
role: string;
|
|
246
|
-
/** It shares something on its own: the name shown (`设计师`). */
|
|
247
|
-
what?: string;
|
|
248
|
-
}
|
|
249
256
|
/** Another Ta the user was let into, as their own Ta keeps it (JOINED_KEY): what its home lists as shared with them. */
|
|
250
257
|
export interface TeamJoined {
|
|
251
258
|
/** The pairing link of the device they got: a secret, kept on their own Ta alone. */
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SHARE_LEVELS = exports.DEFAULT_ROLE = exports.PRESET_ROLES = exports.EMPTY_DATA = exports.LIMIT_RANGE = exports.DEFAULT_LIMITS = exports.TEAM_OUTSIDE = exports.WAIT_MS = exports.JOINED_KEY = exports.INBOX_KEY = exports.
|
|
3
|
+
exports.SHARE_LEVELS = exports.DEFAULT_ROLE = exports.PRESET_ROLES = exports.EMPTY_DATA = exports.LIMIT_RANGE = exports.DEFAULT_LIMITS = exports.TEAM_OUTSIDE = exports.WAIT_MS = exports.JOINED_KEY = exports.INBOX_KEY = exports.TEAM_VIEW = exports.NAME = void 0;
|
|
4
4
|
/** The name of the package: its host, its data and its links go by it. */
|
|
5
5
|
exports.NAME = '@celljs/ta-team';
|
|
6
6
|
/** The page of members and what they may do (`ui.showView`). */
|
|
7
7
|
exports.TEAM_VIEW = '@celljs/ta-team/team';
|
|
8
|
-
/** The path of a link that invites into a Ta, on its relay: `<relay>/j#…`. */
|
|
9
|
-
exports.JOIN_PATH = '/j';
|
|
10
8
|
/** In the data of the package, for the owner's pages: what waits for an answer, so that they tell of it. */
|
|
11
9
|
exports.INBOX_KEY = 'inbox';
|
|
12
10
|
/** In the data of the package on the user's own Ta: the other Ta they were let into (TeamJoined). */
|