@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
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. Prefix `tmo-`. */
|
|
2
|
-
export declare const STYLE = "\n.tmo-quiet { color: var(--ta-muted); }\n.tmo-small { font-size: calc(12px * var(--ta-font-scale)); }\n.tmo-center { text-align: center; }\n.tmo-good { color: var(--ta-green); }\n.tmo-grow { flex: 1; }\n.tmo-link { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }\n.tmo-link:hover { background: var(--ta-hover); }\n.tmo-link:disabled { opacity: .5; cursor: default; }\n.tmo-icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.tmo-icon-button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.tmo-face { display: inline-block; flex: none; border-radius: 50%; background: var(--ta-raised); }\n/* The head of the page */\n.tmo-head { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; height: 100%; padding: 0 84px; }\n.tmo-head-title { font-weight: 600; font-size: calc(14.5px * var(--ta-font-scale)); }\n.tmo-head-end { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; }\n/* The page: one column, as WeChat's Moments */\n.tmo-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; background: var(--ta-main); color: var(--ta-text); }\n.tmo-feed { display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; padding: 6px 14px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n.tmo-card { margin: 4px 0 8px; padding: 2px 8px; border-radius: 14px; background: var(--ta-raised); }\n.tmo-friends-row { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 2px 0 6px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.tmo-friends-row:hover, .tmo-friends-row:active { background: var(--ta-hover); }\n.tmo-friends-label { font-weight: 500; }\n.tmo-friends-row .ta-face { --ta-face-ring: var(--ta-raised); }\n.tmo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); }\n.tmo-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 0 24px; text-align: center; }\n/* A post: the face, then the name, words, pictures, what to take, when and the heart */\n.tmo-post { display: flex; gap: 12px; padding: 16px 2px 14px; border-bottom: 1px solid var(--ta-border-muted); }\n.tmo-post .ta-face { --ta-face-ring: var(--ta-main); }\n.tmo-post-body { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }\n.tmo-name { font-weight: 600; color: var(--ta-link); font-size: calc(14.5px * var(--ta-font-scale)); line-height: 1.3; }\n.tmo-why { display: flex; align-items: flex-start; gap: 5px; align-self: flex-start; max-width: 100%; padding: 3px 8px; border-radius: 7px; background: color-mix(in srgb, var(--ta-yellow) 14%, transparent); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.45; }\n.tmo-why svg { flex: none; position: relative; top: 2px; color: var(--ta-yellow); }\n.tmo-post.tmo-focus { animation: tmo-focus 1.6s ease-out; }\n@keyframes tmo-focus { from { background: var(--ta-hover); } to { background: transparent; } }\n.tmo-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: calc(14.5px * var(--ta-font-scale)); }\n.tmo-images { display: flex; }\n.tmo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; max-width: 300px; }\n.tmo-image { position: relative; display: block; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--ta-raised); cursor: zoom-in; }\n.tmo-image img { display: block; width: 100%; height: 100%; object-fit: cover; }\n.tmo-square { aspect-ratio: 1; width: 100%; }\n.tmo-image img.tmo-thumb-blur { filter: blur(10px) saturate(1.1); transform: scale(1.15); }\n.tmo-wait-note { margin-top: -2px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tmo-image-wait { display: block; width: 100%; height: 100%; min-height: 60px; background: var(--ta-hover); animation: tmo-wait 1.2s ease-in-out infinite alternate; }\n@keyframes tmo-wait { from { opacity: .45; } to { opacity: 1; } }\n.tmo-attach { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 10px; background: var(--ta-raised); }\n.tmo-attach-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--ta-card); color: var(--ta-secondary); }\n.tmo-attach-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }\n.tmo-attach-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tmo-attach-line { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\n.tmo-attach .ta-button { flex: none; }\n.tmo-meta { display: flex; align-items: center; gap: 10px; min-height: 28px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tmo-meta .tmo-link { color: var(--ta-muted); }\n.tmo-meta .tmo-link:hover { color: var(--ta-red); }\n.tmo-like { display: grid; place-items: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 120ms, transform 120ms; }\n.tmo-like:hover { background: var(--ta-hover); color: var(--ta-text); }\n.tmo-like.tmo-on { color: var(--ta-red); }\n.tmo-like.tmo-on svg { fill: currentColor; }\n.tmo-chevron { display: inline-flex; }\n.tmo-like:active { transform: scale(.88); }\n.tmo-marks { display: flex; flex-direction: column; gap: 4px; padding: 7px 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-link); }\n.tmo-marks-line { display: flex; align-items: baseline; gap: 6px; overflow-wrap: anywhere; }\n.tmo-marks-line svg { flex: none; position: relative; top: 1px; color: var(--ta-muted); }\n/* Words on a post, in the box of the likes */\n.tmo-talk { display: flex; flex-direction: column; gap: 1px; color: var(--ta-text); }\n.tmo-talk-split { margin-top: 3px; padding-top: 6px; border-top: 1px solid var(--ta-border-muted); }\n.tmo-talk-line { display: block; width: 100%; padding: 2px 3px; margin: 0 -3px; border: 0; border-radius: 5px; background: none; color: inherit; font: inherit; line-height: 1.55; text-align: left; overflow-wrap: anywhere; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.tmo-talk-line:hover, .tmo-talk-line:active { background: var(--ta-hover); }\n.tmo-talk-line b { font-weight: 500; color: var(--ta-link); }\n.tmo-talk-word { margin: 0 4px; color: var(--ta-muted); }\n.tmo-talk-word-end { margin-right: 0; }\n.tmo-talk-spark { position: relative; top: 1px; margin-right: 3px; color: var(--ta-yellow); }\n.tmo-talk-text { white-space: pre-wrap; }\n.tmo-talk-wait { margin-left: 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.tmo-pending .tmo-talk-text { color: var(--ta-secondary); }\n.tmo-ask { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.tmo-ask svg { color: var(--ta-yellow); }\n.tmo-ask:hover, .tmo-ask.tmo-on { background: var(--ta-hover); color: var(--ta-text); }\n.tmo-like.tmo-on-talk { color: var(--ta-text); background: var(--ta-hover); }\n.tmo-talk-box { display: flex; flex-direction: column; gap: 2px; }\n.tmo-talk-cancel { align-self: flex-end; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tmo-editor-check { gap: 7px; cursor: pointer; font-size: calc(13px * var(--ta-font-scale)); }\n.tmo-editor-check input { margin: 0; accent-color: var(--ta-brand, var(--ta-link)); }\n/* A picture over the page */\n.tmo-viewer { background: rgba(0, 0, 0, .92); }\n.tmo-viewer-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }\n/* Rows of friends and of those asking */\n.tmo-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }\n.tmo-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 4px; }\n.tmo-row .ta-face { --ta-face-ring: var(--ta-raised); }\n.tmo-row-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }\n.tmo-row-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tmo-row-line { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tmo-row-end { display: flex; gap: 6px; flex: none; }\n.tmo-section { margin: 0 0 2px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.tmo-friends { display: flex; flex-direction: column; gap: 10px; min-width: min(380px, 80vw); }\n.tmo-friends .tmo-row .ta-face { --ta-face-ring: var(--ta-card); }\n.tmo-wide { justify-content: center; width: 100%; }\n/* The link that adds a friend */\n.tmo-invite { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: min(340px, 80vw); text-align: center; }\n.tmo-qr { display: grid; place-items: center; width: 200px; height: 200px; padding: 10px; border-radius: 14px; background: #fff; }\n.tmo-qr-busy { background: var(--ta-raised); }\n.tmo-invite-hint { margin: 0; max-width: 320px; line-height: 1.55; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.tmo-invite-actions { display: flex; gap: 8px; justify-content: center; }\n.tmo-add { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: min(320px, 80vw); padding-top: 4px; text-align: center; }\n.tmo-add .ta-face { --ta-face-ring: var(--ta-card); }\n.tmo-add-name { font-weight: 600; font-size: calc(16px * var(--ta-font-scale)); }\n.tmo-add-body { margin: 0 0 6px; max-width: 300px; color: var(--ta-secondary); line-height: 1.55; font-size: calc(13px * var(--ta-font-scale)); }\n/* Writing a post, in a dialog or in Ta's card */\n.tmo-editor { display: flex; flex-direction: column; gap: 10px; min-width: min(420px, 82vw); }\n.tmo-editor-text { width: 100%; min-height: 72px; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--ta-border-field); border-radius: 10px; background: var(--ta-main); color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); line-height: 1.55; resize: none; }\n.tmo-editor-text:focus { outline: none; border-color: var(--ta-border-focus); }\n.tmo-editor-images { display: flex; flex-wrap: wrap; gap: 8px; }\n.tmo-thumb { position: relative; display: grid; place-items: center; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--ta-raised); color: var(--ta-muted); }\n.tmo-thumb img { width: 100%; height: 100%; object-fit: cover; }\n.tmo-thumb-add { border: 1px dashed var(--ta-border-field); background: none; cursor: pointer; }\n.tmo-thumb-add:hover { color: var(--ta-text); border-color: var(--ta-muted); }\n.tmo-thumb-x { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }\n.tmo-editor-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }\n.tmo-editor-label { flex: none; min-width: 34px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tmo-select { flex: 1; min-width: 0; max-width: 320px; height: 32px; padding: 0 8px; 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.tmo-segments { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 9px; background: var(--ta-raised); }\n.tmo-segment { min-height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.tmo-segment.tmo-on { background: var(--ta-segment, var(--ta-card)); color: var(--ta-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }\n.tmo-chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; padding: 5px 6px 5px 10px; border-radius: 8px; background: var(--ta-raised); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tmo-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); }\n.tmo-chip-x { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ta-muted); cursor: pointer; }\n.tmo-chip-x:hover { background: var(--ta-hover); color: var(--ta-text); }\n.tmo-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }\n[data-touch] .tmo-editor-actions .ta-button, [data-touch] .tmo-attach .ta-button { min-height: 38px; }\n/* Ta's draft, in its conversation */\n.tmo-draft { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; padding: 12px; max-width: 560px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }\n.tmo-draft .tmo-editor { min-width: 0; }\n.tmo-draft-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 500; font-size: calc(13px * var(--ta-font-scale)); }\n.tmo-draft-head .tmo-small { font-weight: 400; }\n.tmo-draft-done { flex-direction: row; align-items: center; gap: 6px; padding: 8px 12px; font-size: calc(12.5px * var(--ta-font-scale)); }\n/* By Moments under Discover */\n.tmo-mark { position: relative; display: inline-flex; }\n.tmo-mark .ta-face { --ta-face-ring: var(--ta-list-cell, var(--ta-main)); }\n.tmo-mark-dot { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-list-cell, var(--ta-main)); }\n@media (prefers-reduced-motion: reduce) { .tmo-image-wait { animation: none; } .tmo-like { transition: none; } }\n";
|
|
2
|
+
export declare const STYLE = "\n.tmo-quiet { color: var(--ta-muted); }\n.tmo-small { font-size: calc(12px * var(--ta-font-scale)); }\n.tmo-center { text-align: center; }\n.tmo-good { color: var(--ta-green); }\n.tmo-grow { flex: 1; }\n.tmo-link { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--ta-link); font: inherit; cursor: pointer; }\n.tmo-link:hover { background: var(--ta-hover); }\n.tmo-link:disabled { opacity: .5; cursor: default; }\n.tmo-icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.tmo-icon-button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.tmo-face { display: inline-block; flex: none; border-radius: 50%; background: var(--ta-raised); }\n/* The head of the page */\n.tmo-head { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; height: 100%; padding: 0 84px; }\n.tmo-head-title { font-weight: 600; font-size: calc(14.5px * var(--ta-font-scale)); }\n.tmo-head-end { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; }\n/* The page: one column, as WeChat's Moments */\n.tmo-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; background: var(--ta-main); color: var(--ta-text); }\n.tmo-feed { display: flex; flex-direction: column; min-height: 100%; max-width: 640px; margin: 0 auto; padding: 6px 14px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }\n.tmo-card { margin: 4px 0 8px; padding: 2px 8px; border-radius: 14px; background: var(--ta-raised); }\n.tmo-friends-row { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 2px 0 6px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.tmo-friends-row:hover, .tmo-friends-row:active { background: var(--ta-hover); }\n.tmo-friends-label { font-weight: 500; }\n.tmo-friends-row .ta-face { --ta-face-ring: var(--ta-raised); }\n.tmo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); }\n/* A post: the face, then the name, words, pictures, what to take, when and the heart */\n.tmo-post { display: flex; gap: 12px; padding: 16px 2px 14px; border-bottom: 1px solid var(--ta-border-muted); }\n.tmo-post .ta-face { --ta-face-ring: var(--ta-main); }\n.tmo-post-body { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }\n.tmo-name { font-weight: 600; color: var(--ta-link); font-size: calc(14.5px * var(--ta-font-scale)); line-height: 1.3; }\n.tmo-why { display: flex; align-items: flex-start; gap: 5px; align-self: flex-start; max-width: 100%; padding: 3px 8px; border-radius: 7px; background: color-mix(in srgb, var(--ta-yellow) 14%, transparent); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.45; }\n.tmo-why svg { flex: none; position: relative; top: 2px; color: var(--ta-yellow); }\n.tmo-post.tmo-focus { animation: tmo-focus 1.6s ease-out; }\n@keyframes tmo-focus { from { background: var(--ta-hover); } to { background: transparent; } }\n.tmo-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: calc(14.5px * var(--ta-font-scale)); }\n.tmo-images { display: flex; }\n.tmo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; max-width: 300px; }\n.tmo-image { position: relative; display: block; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--ta-raised); cursor: zoom-in; }\n.tmo-image img { display: block; width: 100%; height: 100%; object-fit: cover; }\n.tmo-square { aspect-ratio: 1; width: 100%; }\n.tmo-image img.tmo-thumb-blur { filter: blur(10px) saturate(1.1); transform: scale(1.15); }\n.tmo-wait-note { margin-top: -2px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tmo-image-wait { display: block; width: 100%; height: 100%; min-height: 60px; background: var(--ta-hover); animation: tmo-wait 1.2s ease-in-out infinite alternate; }\n@keyframes tmo-wait { from { opacity: .45; } to { opacity: 1; } }\n.tmo-attach { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 10px; background: var(--ta-raised); }\n.tmo-attach-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--ta-card); color: var(--ta-secondary); }\n.tmo-attach-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }\n.tmo-attach-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tmo-attach-line { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }\n.tmo-attach .ta-button { flex: none; }\n.tmo-meta { display: flex; align-items: center; gap: 10px; min-height: 28px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tmo-meta .tmo-link { color: var(--ta-muted); }\n.tmo-meta .tmo-link:hover { color: var(--ta-red); }\n.tmo-like { display: grid; place-items: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 120ms, transform 120ms; }\n.tmo-like:hover { background: var(--ta-hover); color: var(--ta-text); }\n.tmo-like.tmo-on { color: var(--ta-red); }\n.tmo-like.tmo-on svg { fill: currentColor; }\n.tmo-chevron { display: inline-flex; }\n.tmo-like:active { transform: scale(.88); }\n.tmo-marks { display: flex; flex-direction: column; gap: 4px; padding: 7px 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-link); }\n.tmo-marks-line { display: flex; align-items: baseline; gap: 6px; overflow-wrap: anywhere; }\n.tmo-marks-line svg { flex: none; position: relative; top: 1px; color: var(--ta-muted); }\n/* Words on a post, in the box of the likes */\n.tmo-talk { display: flex; flex-direction: column; gap: 1px; color: var(--ta-text); }\n.tmo-talk-split { margin-top: 3px; padding-top: 6px; border-top: 1px solid var(--ta-border-muted); }\n.tmo-talk-line { display: block; width: 100%; padding: 2px 3px; margin: 0 -3px; border: 0; border-radius: 5px; background: none; color: inherit; font: inherit; line-height: 1.55; text-align: left; overflow-wrap: anywhere; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.tmo-talk-line:hover, .tmo-talk-line:active { background: var(--ta-hover); }\n.tmo-talk-line b { font-weight: 500; color: var(--ta-link); }\n.tmo-talk-word { margin: 0 4px; color: var(--ta-muted); }\n.tmo-talk-word-end { margin-right: 0; }\n.tmo-talk-spark { position: relative; top: 1px; margin-right: 3px; color: var(--ta-yellow); }\n.tmo-talk-text { white-space: pre-wrap; }\n.tmo-talk-wait { margin-left: 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.tmo-pending .tmo-talk-text { color: var(--ta-secondary); }\n.tmo-ask { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.tmo-ask svg { color: var(--ta-yellow); }\n.tmo-ask:hover, .tmo-ask.tmo-on { background: var(--ta-hover); color: var(--ta-text); }\n.tmo-like.tmo-on-talk { color: var(--ta-text); background: var(--ta-hover); }\n.tmo-talk-box { display: flex; flex-direction: column; gap: 2px; }\n.tmo-talk-cancel { align-self: flex-end; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tmo-editor-check { gap: 7px; cursor: pointer; font-size: calc(13px * var(--ta-font-scale)); }\n.tmo-editor-check input { margin: 0; accent-color: var(--ta-brand, var(--ta-link)); }\n/* A picture over the page */\n.tmo-viewer { background: rgba(0, 0, 0, .92); }\n.tmo-viewer-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }\n/* Rows of friends and of those asking */\n.tmo-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }\n.tmo-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 4px; }\n.tmo-row .ta-face { --ta-face-ring: var(--ta-raised); }\n.tmo-row-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }\n.tmo-row-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tmo-row-line { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tmo-row-end { display: flex; gap: 6px; flex: none; }\n.tmo-section { margin: 0 0 2px; font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-muted); }\n.tmo-friends { display: flex; flex-direction: column; gap: 10px; min-width: min(380px, 80vw); }\n.tmo-friends .tmo-row .ta-face { --ta-face-ring: var(--ta-card); }\n.tmo-wide { justify-content: center; width: 100%; }\n/* The link that adds a friend */\n.tmo-invite { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: min(340px, 80vw); text-align: center; }\n.tmo-qr { display: grid; place-items: center; width: 200px; height: 200px; padding: 10px; border-radius: 14px; background: #fff; }\n.tmo-qr-busy { background: var(--ta-raised); }\n.tmo-invite-hint { margin: 0; max-width: 320px; line-height: 1.55; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.tmo-invite-actions { display: flex; gap: 8px; justify-content: center; }\n.tmo-add { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: min(320px, 80vw); padding-top: 4px; text-align: center; }\n.tmo-add .ta-face { --ta-face-ring: var(--ta-card); }\n.tmo-add-name { font-weight: 600; font-size: calc(16px * var(--ta-font-scale)); }\n.tmo-add-body { margin: 0 0 6px; max-width: 300px; color: var(--ta-secondary); line-height: 1.55; font-size: calc(13px * var(--ta-font-scale)); }\n/* Writing a post, in a dialog or in Ta's card */\n.tmo-editor { display: flex; flex-direction: column; gap: 10px; min-width: min(420px, 82vw); }\n.tmo-editor-text { width: 100%; min-height: 72px; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--ta-border-field); border-radius: 10px; background: var(--ta-main); color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); line-height: 1.55; resize: none; }\n.tmo-editor-text:focus { outline: none; border-color: var(--ta-border-focus); }\n.tmo-editor-images { display: flex; flex-wrap: wrap; gap: 8px; }\n.tmo-thumb { position: relative; display: grid; place-items: center; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--ta-raised); color: var(--ta-muted); }\n.tmo-thumb img { width: 100%; height: 100%; object-fit: cover; }\n.tmo-thumb-add { border: 1px dashed var(--ta-border-field); background: none; cursor: pointer; }\n.tmo-thumb-add:hover { color: var(--ta-text); border-color: var(--ta-muted); }\n.tmo-thumb-x { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }\n.tmo-editor-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }\n.tmo-editor-label { flex: none; min-width: 34px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tmo-select { flex: 1; min-width: 0; max-width: 320px; height: 32px; padding: 0 8px; 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/* How long a post stays: the page's segmented control (.ta-segmented), sized to its labels */\n.tmo-segments { max-width: 100%; }\n.tmo-segments button { padding: 0 10px; white-space: nowrap; cursor: pointer; }\n.tmo-chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; padding: 5px 6px 5px 10px; border-radius: 8px; background: var(--ta-raised); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tmo-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); }\n.tmo-chip-x { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ta-muted); cursor: pointer; }\n.tmo-chip-x:hover { background: var(--ta-hover); color: var(--ta-text); }\n.tmo-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }\n[data-touch] .tmo-editor-actions .ta-button, [data-touch] .tmo-attach .ta-button { min-height: 38px; }\n/* Ta's draft, in its conversation */\n.tmo-draft { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; padding: 12px; max-width: 560px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }\n.tmo-draft .tmo-editor { min-width: 0; }\n.tmo-draft-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 500; font-size: calc(13px * var(--ta-font-scale)); }\n.tmo-draft-head .tmo-small { font-weight: 400; }\n.tmo-draft-done { flex-direction: row; align-items: center; gap: 6px; padding: 8px 12px; font-size: calc(12.5px * var(--ta-font-scale)); }\n/* By Moments under Discover */\n.tmo-mark { position: relative; display: inline-flex; }\n.tmo-mark .ta-face { --ta-face-ring: var(--ta-list-cell, var(--ta-main)); }\n.tmo-mark-dot { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-list-cell, var(--ta-main)); }\n@media (prefers-reduced-motion: reduce) { .tmo-image-wait { animation: none; } .tmo-like { transition: none; } }\n";
|
|
3
3
|
export declare function injectStyle(): () => void;
|
|
4
4
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -21,14 +21,13 @@ exports.STYLE = `
|
|
|
21
21
|
.tmo-head-end { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; }
|
|
22
22
|
/* The page: one column, as WeChat's Moments */
|
|
23
23
|
.tmo-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; background: var(--ta-main); color: var(--ta-text); }
|
|
24
|
-
.tmo-feed { display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; padding: 6px 14px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }
|
|
24
|
+
.tmo-feed { display: flex; flex-direction: column; min-height: 100%; max-width: 640px; margin: 0 auto; padding: 6px 14px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }
|
|
25
25
|
.tmo-card { margin: 4px 0 8px; padding: 2px 8px; border-radius: 14px; background: var(--ta-raised); }
|
|
26
26
|
.tmo-friends-row { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 2px 0 6px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
27
27
|
.tmo-friends-row:hover, .tmo-friends-row:active { background: var(--ta-hover); }
|
|
28
28
|
.tmo-friends-label { font-weight: 500; }
|
|
29
29
|
.tmo-friends-row .ta-face { --ta-face-ring: var(--ta-raised); }
|
|
30
30
|
.tmo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); }
|
|
31
|
-
.tmo-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 0 24px; text-align: center; }
|
|
32
31
|
/* A post: the face, then the name, words, pictures, what to take, when and the heart */
|
|
33
32
|
.tmo-post { display: flex; gap: 12px; padding: 16px 2px 14px; border-bottom: 1px solid var(--ta-border-muted); }
|
|
34
33
|
.tmo-post .ta-face { --ta-face-ring: var(--ta-main); }
|
|
@@ -124,9 +123,9 @@ exports.STYLE = `
|
|
|
124
123
|
.tmo-editor-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
125
124
|
.tmo-editor-label { flex: none; min-width: 34px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
126
125
|
.tmo-select { flex: 1; min-width: 0; max-width: 320px; height: 32px; padding: 0 8px; 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)); }
|
|
127
|
-
|
|
128
|
-
.tmo-
|
|
129
|
-
.tmo-
|
|
126
|
+
/* How long a post stays: the page's segmented control (.ta-segmented), sized to its labels */
|
|
127
|
+
.tmo-segments { max-width: 100%; }
|
|
128
|
+
.tmo-segments button { padding: 0 10px; white-space: nowrap; cursor: pointer; }
|
|
130
129
|
.tmo-chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; padding: 5px 6px 5px 10px; border-radius: 8px; background: var(--ta-raised); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
131
130
|
.tmo-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); }
|
|
132
131
|
.tmo-chip-x { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ta-muted); cursor: pointer; }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-moments",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A pi package for Ta: Moments, what friends made with Ta that one can take and use. Ta drafts a post of what you made and you post it; your Ta friends see it, like it and take it, their Ta reading the code first",
|
|
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",
|
|
@@ -468,140 +468,6 @@ var TaPackageTextUtil;
|
|
|
468
468
|
}
|
|
469
469
|
TaPackageTextUtil2.pick = pick;
|
|
470
470
|
})(TaPackageTextUtil || (TaPackageTextUtil = {}));
|
|
471
|
-
// ../ta-protocol/esm/common/relay-protocol.js
|
|
472
|
-
var TaRelayServer = Symbol("TaRelayServer");
|
|
473
|
-
// ../ta-protocol/esm/common/remote-protocol.js
|
|
474
|
-
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
475
|
-
// ../ta-protocol/esm/common/room-protocol.js
|
|
476
|
-
var TaRoomServer = Symbol("TaRoomServer");
|
|
477
|
-
var TaRoomWatchUtil;
|
|
478
|
-
(function(TaRoomWatchUtil2) {
|
|
479
|
-
function of(messages, state) {
|
|
480
|
-
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
481
|
-
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
482
|
-
}
|
|
483
|
-
TaRoomWatchUtil2.of = of;
|
|
484
|
-
function union(watches) {
|
|
485
|
-
let messages = false;
|
|
486
|
-
const state = [];
|
|
487
|
-
for (const watch of watches) {
|
|
488
|
-
messages || (messages = watch.messages);
|
|
489
|
-
state.push(...watch.state);
|
|
490
|
-
}
|
|
491
|
-
return of(messages, messages ? [] : state);
|
|
492
|
-
}
|
|
493
|
-
TaRoomWatchUtil2.union = union;
|
|
494
|
-
function same(a, b) {
|
|
495
|
-
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
496
|
-
`) === b.state.join(`
|
|
497
|
-
`);
|
|
498
|
-
}
|
|
499
|
-
TaRoomWatchUtil2.same = same;
|
|
500
|
-
function hears(watch, event) {
|
|
501
|
-
if (event.type === "message") {
|
|
502
|
-
return watch.messages;
|
|
503
|
-
}
|
|
504
|
-
if (event.type === "state") {
|
|
505
|
-
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
506
|
-
}
|
|
507
|
-
return true;
|
|
508
|
-
}
|
|
509
|
-
TaRoomWatchUtil2.hears = hears;
|
|
510
|
-
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
511
|
-
// ../ta-protocol/esm/common/settings-protocol.js
|
|
512
|
-
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
513
|
-
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
514
|
-
var TA_HOST_EVENT = "ta:host";
|
|
515
|
-
var TaHostUtil;
|
|
516
|
-
(function(TaHostUtil2) {
|
|
517
|
-
TaHostUtil2.WAIT_MS = 1000;
|
|
518
|
-
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
519
|
-
return new Promise((resolve) => {
|
|
520
|
-
let heard = false;
|
|
521
|
-
let answered = false;
|
|
522
|
-
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
523
|
-
const request = {
|
|
524
|
-
name,
|
|
525
|
-
heard: () => {
|
|
526
|
-
heard = true;
|
|
527
|
-
},
|
|
528
|
-
resolve: (answer) => {
|
|
529
|
-
answered = true;
|
|
530
|
-
clearTimeout(timer);
|
|
531
|
-
resolve(answer);
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
events.emit(TA_HOST_EVENT, request);
|
|
535
|
-
if (!heard && !answered) {
|
|
536
|
-
clearTimeout(timer);
|
|
537
|
-
resolve(undefined);
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
TaHostUtil2.reach = reach;
|
|
542
|
-
function marked(systemPrompt, mark) {
|
|
543
|
-
return role(systemPrompt).includes(mark);
|
|
544
|
-
}
|
|
545
|
-
TaHostUtil2.marked = marked;
|
|
546
|
-
function role(systemPrompt) {
|
|
547
|
-
if (!systemPrompt) {
|
|
548
|
-
return "";
|
|
549
|
-
}
|
|
550
|
-
const open = `<addendum>
|
|
551
|
-
`;
|
|
552
|
-
const start = systemPrompt.indexOf(open);
|
|
553
|
-
const context = systemPrompt.indexOf(`<project_context>
|
|
554
|
-
`);
|
|
555
|
-
if (start < 0 || context >= 0 && context < start) {
|
|
556
|
-
return "";
|
|
557
|
-
}
|
|
558
|
-
const end = systemPrompt.indexOf(`
|
|
559
|
-
</addendum>`, start);
|
|
560
|
-
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
561
|
-
}
|
|
562
|
-
TaHostUtil2.role = role;
|
|
563
|
-
})(TaHostUtil || (TaHostUtil = {}));
|
|
564
|
-
var TA_ASK_ENTRY = "ta-ask";
|
|
565
|
-
var TaAskUtil;
|
|
566
|
-
(function(TaAskUtil2) {
|
|
567
|
-
const LENGTH = 120;
|
|
568
|
-
function entry(question) {
|
|
569
|
-
const line = question.replace(/\s+/g, " ").trim();
|
|
570
|
-
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
571
|
-
}
|
|
572
|
-
TaAskUtil2.entry = entry;
|
|
573
|
-
function asking(entries) {
|
|
574
|
-
var _a;
|
|
575
|
-
for (let i = entries.length - 1;i >= 0; i--) {
|
|
576
|
-
const entry2 = entries[i];
|
|
577
|
-
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
578
|
-
return;
|
|
579
|
-
}
|
|
580
|
-
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
581
|
-
return read(entry2);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
return;
|
|
585
|
-
}
|
|
586
|
-
TaAskUtil2.asking = asking;
|
|
587
|
-
function next(asked, entry2) {
|
|
588
|
-
var _a;
|
|
589
|
-
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
590
|
-
return;
|
|
591
|
-
}
|
|
592
|
-
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
593
|
-
}
|
|
594
|
-
TaAskUtil2.next = next;
|
|
595
|
-
function read(found) {
|
|
596
|
-
var _a;
|
|
597
|
-
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
598
|
-
if (typeof question !== "string" || !question.trim()) {
|
|
599
|
-
return;
|
|
600
|
-
}
|
|
601
|
-
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
602
|
-
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
603
|
-
}
|
|
604
|
-
})(TaAskUtil || (TaAskUtil = {}));
|
|
605
471
|
// ../ta-protocol/esm/common/ta-protocol.js
|
|
606
472
|
var TaServer = Symbol("TaServer");
|
|
607
473
|
var TaClient = Symbol("TaClient");
|
|
@@ -787,6 +653,176 @@ var TaSkillUse;
|
|
|
787
653
|
}
|
|
788
654
|
TaSkillUse2.command = command;
|
|
789
655
|
})(TaSkillUse || (TaSkillUse = {}));
|
|
656
|
+
|
|
657
|
+
// ../ta-protocol/esm/common/presence-protocol.js
|
|
658
|
+
var TaPresenceServer = Symbol("TaPresenceServer");
|
|
659
|
+
var TaMessageAuthor;
|
|
660
|
+
(function(TaMessageAuthor2) {
|
|
661
|
+
const LINE = /^\[ta:by ([^\s\]]+)(?: ([^\]\n]+))?\]$/m;
|
|
662
|
+
const LINES = /^\[ta:by [^\]\n]*\]$\n?/gm;
|
|
663
|
+
function strip(message2) {
|
|
664
|
+
const context = TaMessageContext.read(message2);
|
|
665
|
+
if (context === undefined || !LINE.test(context)) {
|
|
666
|
+
return message2;
|
|
667
|
+
}
|
|
668
|
+
const kept = context.replace(LINES, "").replace(/\n+$/, "");
|
|
669
|
+
const body = TaMessageContext.strip(message2);
|
|
670
|
+
return kept.trim() ? TaMessageContext.wrap(kept, body) : body;
|
|
671
|
+
}
|
|
672
|
+
TaMessageAuthor2.strip = strip;
|
|
673
|
+
function mark(message2, id, name) {
|
|
674
|
+
const plain = strip(message2);
|
|
675
|
+
if (/^[/!]/.test(plain)) {
|
|
676
|
+
return plain;
|
|
677
|
+
}
|
|
678
|
+
const line = `[ta:by ${id.replace(/[\s\]]/g, "")} ${name.replace(/[\]\n]/g, " ").trim() || id}]`;
|
|
679
|
+
const context = TaMessageContext.read(plain);
|
|
680
|
+
return TaMessageContext.wrap(context === undefined ? line : `${context}
|
|
681
|
+
${line}`, TaMessageContext.strip(plain));
|
|
682
|
+
}
|
|
683
|
+
TaMessageAuthor2.mark = mark;
|
|
684
|
+
function of(message2) {
|
|
685
|
+
var _a;
|
|
686
|
+
const context = TaMessageContext.read(message2);
|
|
687
|
+
const match = context === undefined ? null : LINE.exec(context);
|
|
688
|
+
return match ? { id: match[1], name: ((_a = match[2]) !== null && _a !== undefined ? _a : match[1]).trim() } : undefined;
|
|
689
|
+
}
|
|
690
|
+
TaMessageAuthor2.of = of;
|
|
691
|
+
})(TaMessageAuthor || (TaMessageAuthor = {}));
|
|
692
|
+
// ../ta-protocol/esm/common/relay-protocol.js
|
|
693
|
+
var TaRelayServer = Symbol("TaRelayServer");
|
|
694
|
+
// ../ta-protocol/esm/common/remote-protocol.js
|
|
695
|
+
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
696
|
+
// ../ta-protocol/esm/common/room-protocol.js
|
|
697
|
+
var TaRoomServer = Symbol("TaRoomServer");
|
|
698
|
+
var TaRoomWatchUtil;
|
|
699
|
+
(function(TaRoomWatchUtil2) {
|
|
700
|
+
function of(messages, state) {
|
|
701
|
+
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
702
|
+
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
703
|
+
}
|
|
704
|
+
TaRoomWatchUtil2.of = of;
|
|
705
|
+
function union(watches) {
|
|
706
|
+
let messages = false;
|
|
707
|
+
const state = [];
|
|
708
|
+
for (const watch of watches) {
|
|
709
|
+
messages || (messages = watch.messages);
|
|
710
|
+
state.push(...watch.state);
|
|
711
|
+
}
|
|
712
|
+
return of(messages, messages ? [] : state);
|
|
713
|
+
}
|
|
714
|
+
TaRoomWatchUtil2.union = union;
|
|
715
|
+
function same(a, b) {
|
|
716
|
+
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
717
|
+
`) === b.state.join(`
|
|
718
|
+
`);
|
|
719
|
+
}
|
|
720
|
+
TaRoomWatchUtil2.same = same;
|
|
721
|
+
function hears(watch, event) {
|
|
722
|
+
if (event.type === "message") {
|
|
723
|
+
return watch.messages;
|
|
724
|
+
}
|
|
725
|
+
if (event.type === "state") {
|
|
726
|
+
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
727
|
+
}
|
|
728
|
+
return true;
|
|
729
|
+
}
|
|
730
|
+
TaRoomWatchUtil2.hears = hears;
|
|
731
|
+
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
732
|
+
// ../ta-protocol/esm/common/settings-protocol.js
|
|
733
|
+
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
734
|
+
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
735
|
+
var TA_HOST_EVENT = "ta:host";
|
|
736
|
+
var TaHostUtil;
|
|
737
|
+
(function(TaHostUtil2) {
|
|
738
|
+
TaHostUtil2.WAIT_MS = 1000;
|
|
739
|
+
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
740
|
+
return new Promise((resolve) => {
|
|
741
|
+
let heard = false;
|
|
742
|
+
let answered = false;
|
|
743
|
+
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
744
|
+
const request = {
|
|
745
|
+
name,
|
|
746
|
+
heard: () => {
|
|
747
|
+
heard = true;
|
|
748
|
+
},
|
|
749
|
+
resolve: (answer) => {
|
|
750
|
+
answered = true;
|
|
751
|
+
clearTimeout(timer);
|
|
752
|
+
resolve(answer);
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
events.emit(TA_HOST_EVENT, request);
|
|
756
|
+
if (!heard && !answered) {
|
|
757
|
+
clearTimeout(timer);
|
|
758
|
+
resolve(undefined);
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
TaHostUtil2.reach = reach;
|
|
763
|
+
function marked(systemPrompt, mark) {
|
|
764
|
+
return role(systemPrompt).includes(mark);
|
|
765
|
+
}
|
|
766
|
+
TaHostUtil2.marked = marked;
|
|
767
|
+
function role(systemPrompt) {
|
|
768
|
+
if (!systemPrompt) {
|
|
769
|
+
return "";
|
|
770
|
+
}
|
|
771
|
+
const open = `<addendum>
|
|
772
|
+
`;
|
|
773
|
+
const start = systemPrompt.indexOf(open);
|
|
774
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
775
|
+
`);
|
|
776
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
777
|
+
return "";
|
|
778
|
+
}
|
|
779
|
+
const end = systemPrompt.indexOf(`
|
|
780
|
+
</addendum>`, start);
|
|
781
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
782
|
+
}
|
|
783
|
+
TaHostUtil2.role = role;
|
|
784
|
+
})(TaHostUtil || (TaHostUtil = {}));
|
|
785
|
+
var TA_ASK_ENTRY = "ta-ask";
|
|
786
|
+
var TaAskUtil;
|
|
787
|
+
(function(TaAskUtil2) {
|
|
788
|
+
const LENGTH = 120;
|
|
789
|
+
function entry(question) {
|
|
790
|
+
const line = question.replace(/\s+/g, " ").trim();
|
|
791
|
+
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
792
|
+
}
|
|
793
|
+
TaAskUtil2.entry = entry;
|
|
794
|
+
function asking(entries) {
|
|
795
|
+
var _a;
|
|
796
|
+
for (let i = entries.length - 1;i >= 0; i--) {
|
|
797
|
+
const entry2 = entries[i];
|
|
798
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
799
|
+
return;
|
|
800
|
+
}
|
|
801
|
+
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
802
|
+
return read(entry2);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
return;
|
|
806
|
+
}
|
|
807
|
+
TaAskUtil2.asking = asking;
|
|
808
|
+
function next(asked, entry2) {
|
|
809
|
+
var _a;
|
|
810
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
811
|
+
return;
|
|
812
|
+
}
|
|
813
|
+
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
814
|
+
}
|
|
815
|
+
TaAskUtil2.next = next;
|
|
816
|
+
function read(found) {
|
|
817
|
+
var _a;
|
|
818
|
+
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
819
|
+
if (typeof question !== "string" || !question.trim()) {
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
822
|
+
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
823
|
+
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
824
|
+
}
|
|
825
|
+
})(TaAskUtil || (TaAskUtil = {}));
|
|
790
826
|
// ../ta-protocol/esm/common/team-protocol.js
|
|
791
827
|
var TA_UNDECLARED = "extensions.install";
|
|
792
828
|
var TaPermissionUtil;
|
|
@@ -1149,12 +1185,12 @@ function PostEditor({ text: first, images, attach: firstAttach, pickPackage, onP
|
|
|
1149
1185
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
1150
1186
|
className: "tmo-editor-label"
|
|
1151
1187
|
}, t("keep")), /* @__PURE__ */ React.createElement("div", {
|
|
1152
|
-
className: "tmo-segments"
|
|
1188
|
+
className: "ta-segmented tmo-segments"
|
|
1153
1189
|
}, Limits.DAYS.map((value) => /* @__PURE__ */ React.createElement("button", {
|
|
1154
1190
|
key: value,
|
|
1155
1191
|
type: "button",
|
|
1156
1192
|
"aria-pressed": days === value,
|
|
1157
|
-
className:
|
|
1193
|
+
className: days === value ? "ta-on" : undefined,
|
|
1158
1194
|
onClick: () => setDays(value)
|
|
1159
1195
|
}, t(KEEP[value]))))), /* @__PURE__ */ React.createElement("label", {
|
|
1160
1196
|
className: "tmo-editor-row tmo-editor-check"
|
|
@@ -1250,6 +1286,13 @@ class MomentsStore {
|
|
|
1250
1286
|
if (latest > this.seen) {
|
|
1251
1287
|
this.seen = latest;
|
|
1252
1288
|
this.emit();
|
|
1289
|
+
const kept = await pi.storage.get(Keys.SEEN).catch(() => {
|
|
1290
|
+
return;
|
|
1291
|
+
});
|
|
1292
|
+
if (typeof kept === "number" && kept >= latest) {
|
|
1293
|
+
await this.readSeen();
|
|
1294
|
+
return;
|
|
1295
|
+
}
|
|
1253
1296
|
await pi.storage.set(Keys.SEEN, latest);
|
|
1254
1297
|
}
|
|
1255
1298
|
}
|
|
@@ -1356,10 +1399,12 @@ function show(component) {
|
|
|
1356
1399
|
}
|
|
1357
1400
|
pi.ui.custom(component);
|
|
1358
1401
|
}
|
|
1359
|
-
function Face({ id, size = 40 }) {
|
|
1402
|
+
function Face({ id, look, mine, size = 40 }) {
|
|
1360
1403
|
const Face2 = pi.ui.Face;
|
|
1361
1404
|
return Face2 ? /* @__PURE__ */ React.createElement(Face2, {
|
|
1362
1405
|
seed: id,
|
|
1406
|
+
look,
|
|
1407
|
+
double: mine || undefined,
|
|
1363
1408
|
size
|
|
1364
1409
|
}) : /* @__PURE__ */ React.createElement("span", {
|
|
1365
1410
|
className: "tmo-face",
|
|
@@ -1625,6 +1670,8 @@ function PostView({ post, me, now }) {
|
|
|
1625
1670
|
"data-post": `${post.room}:${post.id}`
|
|
1626
1671
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
1627
1672
|
id: post.author.id,
|
|
1673
|
+
look: post.author.look,
|
|
1674
|
+
mine: post.mine,
|
|
1628
1675
|
size: 42
|
|
1629
1676
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
1630
1677
|
className: "tmo-post-body"
|
|
@@ -1726,7 +1773,7 @@ function FriendsRow() {
|
|
|
1726
1773
|
}) : null, /* @__PURE__ */ React.createElement("span", {
|
|
1727
1774
|
className: "tmo-grow"
|
|
1728
1775
|
}), friends.length > 0 && GroupFace && /* @__PURE__ */ React.createElement(GroupFace, {
|
|
1729
|
-
members: friends.slice(0, 4).map((friend) => ({ seed: friend.id })),
|
|
1776
|
+
members: friends.slice(0, 4).map((friend) => ({ seed: friend.id, look: friend.look })),
|
|
1730
1777
|
size: 24
|
|
1731
1778
|
}), /* @__PURE__ */ React.createElement("span", {
|
|
1732
1779
|
className: "tmo-quiet"
|
|
@@ -1788,13 +1835,10 @@ function MomentsPage() {
|
|
|
1788
1835
|
})) : state.friends.length ? /* @__PURE__ */ React.createElement(pi.ui.Empty, {
|
|
1789
1836
|
title: t("noPosts"),
|
|
1790
1837
|
hint: t("noPostsHint")
|
|
1791
|
-
}) : /* @__PURE__ */ React.createElement(
|
|
1792
|
-
className: "tmo-empty"
|
|
1793
|
-
}, /* @__PURE__ */ React.createElement(pi.ui.Empty, {
|
|
1838
|
+
}) : /* @__PURE__ */ React.createElement(pi.ui.Empty, {
|
|
1794
1839
|
title: t("emptyTitle"),
|
|
1795
|
-
hint: t("emptyHint")
|
|
1796
|
-
|
|
1797
|
-
}), /* @__PURE__ */ React.createElement("button", {
|
|
1840
|
+
hint: t("emptyHint")
|
|
1841
|
+
}, /* @__PURE__ */ React.createElement("button", {
|
|
1798
1842
|
type: "button",
|
|
1799
1843
|
className: "ta-button ta-primary",
|
|
1800
1844
|
onClick: openFriends
|
|
@@ -1813,6 +1857,7 @@ function MomentsMark() {
|
|
|
1813
1857
|
className: "tmo-mark"
|
|
1814
1858
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
1815
1859
|
id: latest.author.id,
|
|
1860
|
+
look: latest.author.look,
|
|
1816
1861
|
size: 26
|
|
1817
1862
|
}), /* @__PURE__ */ React.createElement("i", {
|
|
1818
1863
|
className: "tmo-mark-dot"
|
|
@@ -1838,14 +1883,13 @@ var STYLE = `
|
|
|
1838
1883
|
.tmo-head-end { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; }
|
|
1839
1884
|
/* The page: one column, as WeChat's Moments */
|
|
1840
1885
|
.tmo-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; background: var(--ta-main); color: var(--ta-text); }
|
|
1841
|
-
.tmo-feed { display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; padding: 6px 14px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }
|
|
1886
|
+
.tmo-feed { display: flex; flex-direction: column; min-height: 100%; max-width: 640px; margin: 0 auto; padding: 6px 14px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }
|
|
1842
1887
|
.tmo-card { margin: 4px 0 8px; padding: 2px 8px; border-radius: 14px; background: var(--ta-raised); }
|
|
1843
1888
|
.tmo-friends-row { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 2px 0 6px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
1844
1889
|
.tmo-friends-row:hover, .tmo-friends-row:active { background: var(--ta-hover); }
|
|
1845
1890
|
.tmo-friends-label { font-weight: 500; }
|
|
1846
1891
|
.tmo-friends-row .ta-face { --ta-face-ring: var(--ta-raised); }
|
|
1847
1892
|
.tmo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); }
|
|
1848
|
-
.tmo-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 0 24px; text-align: center; }
|
|
1849
1893
|
/* A post: the face, then the name, words, pictures, what to take, when and the heart */
|
|
1850
1894
|
.tmo-post { display: flex; gap: 12px; padding: 16px 2px 14px; border-bottom: 1px solid var(--ta-border-muted); }
|
|
1851
1895
|
.tmo-post .ta-face { --ta-face-ring: var(--ta-main); }
|
|
@@ -1941,9 +1985,9 @@ var STYLE = `
|
|
|
1941
1985
|
.tmo-editor-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
1942
1986
|
.tmo-editor-label { flex: none; min-width: 34px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
1943
1987
|
.tmo-select { flex: 1; min-width: 0; max-width: 320px; height: 32px; padding: 0 8px; 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)); }
|
|
1944
|
-
|
|
1945
|
-
.tmo-
|
|
1946
|
-
.tmo-
|
|
1988
|
+
/* How long a post stays: the page's segmented control (.ta-segmented), sized to its labels */
|
|
1989
|
+
.tmo-segments { max-width: 100%; }
|
|
1990
|
+
.tmo-segments button { padding: 0 10px; white-space: nowrap; cursor: pointer; }
|
|
1947
1991
|
.tmo-chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; padding: 5px 6px 5px 10px; border-radius: 8px; background: var(--ta-raised); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
1948
1992
|
.tmo-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); }
|
|
1949
1993
|
.tmo-chip-x { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ta-muted); cursor: pointer; }
|