@celljs/ta 4.11.0 → 4.13.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/README.en.md +2 -2
- package/README.md +2 -2
- package/dist/cli.mjs +1006 -164
- package/dist/gateway.mjs +161 -2
- package/dist/pi/CHANGELOG.md +15 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/README.en.md +1 -1
- package/dist/pi/packages/ta-agents/README.md +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +266 -25
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +7 -2
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -2
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +8 -3
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +12 -4
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +72 -2
- package/dist/pi/packages/ta-agents/lib/agent-session.js +183 -18
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +16 -2
- package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +45 -4
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +17 -1
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +51 -3
- package/dist/pi/packages/ta-agents/lib/extension.js +7 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +12 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +12 -0
- package/dist/pi/packages/ta-agents/package.json +1 -1
- package/dist/pi/packages/ta-bots/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-bots/host/index.mjs +157 -0
- package/dist/pi/packages/ta-bots/package.json +7 -2
- package/dist/pi/packages/ta-changes/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-changes/package.json +8 -2
- package/dist/pi/packages/ta-channels/README.en.md +3 -1
- package/dist/pi/packages/ta-channels/README.md +3 -1
- package/dist/pi/packages/ta-channels/extension/index.mjs +55 -2
- package/dist/pi/packages/ta-channels/host/index.mjs +268 -8
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +25 -0
- package/dist/pi/packages/ta-channels/lib/channels-util.js +8 -2
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +2 -0
- package/dist/pi/packages/ta-channels/lib/room.d.ts +0 -4
- package/dist/pi/packages/ta-channels/lib/room.js +31 -5
- package/dist/pi/packages/ta-channels/lib/sidebar.js +31 -13
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +10 -13
- package/dist/pi/packages/ta-channels/lib/team-view.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/team-view.js +45 -0
- package/dist/pi/packages/ta-channels/lib/team.d.ts +20 -4
- package/dist/pi/packages/ta-channels/lib/team.js +87 -6
- package/dist/pi/packages/ta-channels/lib/views.d.ts +12 -0
- package/dist/pi/packages/ta-channels/lib/views.js +19 -0
- package/dist/pi/packages/ta-channels/package.json +26 -2
- package/dist/pi/packages/ta-channels/web/index.js +191 -36
- package/dist/pi/packages/ta-computer-use/package.json +1 -1
- package/dist/pi/packages/ta-cron/README.en.md +2 -2
- package/dist/pi/packages/ta-cron/README.md +2 -2
- package/dist/pi/packages/ta-cron/extension/index.mjs +91 -257
- package/dist/pi/packages/ta-cron/host/index.mjs +9 -0
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +16 -15
- package/dist/pi/packages/ta-cron/lib/chat-task.js +45 -36
- package/dist/pi/packages/ta-cron/lib/extension.js +11 -7
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +5 -7
- package/dist/pi/packages/ta-cron/lib/i18n.js +10 -14
- package/dist/pi/packages/ta-cron/lib/index.js +0 -2
- package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/page.js +24 -0
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +8 -0
- package/dist/pi/packages/ta-cron/lib/task-change.d.ts +11 -0
- package/dist/pi/packages/ta-cron/lib/task-change.js +43 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.js +2 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +5 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +13 -0
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +26 -2
- package/dist/pi/packages/ta-cron/package.json +10 -2
- package/dist/pi/packages/ta-cron/web/index.js +607 -784
- package/dist/pi/packages/ta-extensions/README.en.md +1 -2
- package/dist/pi/packages/ta-extensions/README.md +1 -2
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +0 -4
- package/dist/pi/packages/ta-extensions/lib/i18n.js +2 -10
- package/dist/pi/packages/ta-extensions/lib/index.js +0 -2
- package/dist/pi/packages/ta-extensions/package.json +10 -2
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +16 -11
- package/dist/pi/packages/ta-extensions/web/index.js +176 -97
- package/dist/pi/packages/ta-games/package.json +8 -2
- package/dist/pi/packages/ta-glance/README.en.md +1 -0
- package/dist/pi/packages/ta-glance/README.md +1 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +425 -3
- package/dist/pi/packages/ta-glance/lib/card.js +42 -15
- package/dist/pi/packages/ta-glance/lib/extension.d.ts +3 -0
- package/dist/pi/packages/ta-glance/lib/extension.js +10 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.d.ts +15 -0
- package/dist/pi/packages/ta-glance/lib/glance-ask.js +97 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +3 -3
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.js +3 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +7 -1
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +45 -9
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +5 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +9 -0
- package/dist/pi/packages/ta-glance/lib/index.js +4 -1
- package/dist/pi/packages/ta-glance/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/style.js +187 -102
- package/dist/pi/packages/ta-glance/package.json +1 -1
- package/dist/pi/packages/ta-glance/web/index.js +272 -124
- package/dist/pi/packages/ta-initiative/README.en.md +66 -0
- package/dist/pi/packages/ta-initiative/README.md +66 -0
- package/dist/pi/packages/ta-initiative/extension/index.mjs +720 -0
- package/dist/pi/packages/ta-initiative/host/index.mjs +1169 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.d.ts +28 -0
- package/dist/pi/packages/ta-initiative/lib/chat-proposals.js +79 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/conversation.js +27 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +94 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/event-proposals.js +76 -0
- package/dist/pi/packages/ta-initiative/lib/extension.d.ts +30 -0
- package/dist/pi/packages/ta-initiative/lib/extension.js +238 -0
- package/dist/pi/packages/ta-initiative/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/host.js +11 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +79 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +159 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.d.ts +19 -0
- package/dist/pi/packages/ta-initiative/lib/inbox-util.js +45 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.d.ts +23 -0
- package/dist/pi/packages/ta-initiative/lib/inbox.js +142 -0
- package/dist/pi/packages/ta-initiative/lib/index.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/index.js +121 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +320 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +96 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +37 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +104 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.d.ts +44 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-store.js +112 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.d.ts +22 -0
- package/dist/pi/packages/ta-initiative/lib/level-util.js +86 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +34 -0
- package/dist/pi/packages/ta-initiative/lib/material-util.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/notices.d.ts +13 -0
- package/dist/pi/packages/ta-initiative/lib/notices.js +65 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.d.ts +25 -0
- package/dist/pi/packages/ta-initiative/lib/notify-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.d.ts +21 -0
- package/dist/pi/packages/ta-initiative/lib/pace-util.js +60 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.d.ts +9 -0
- package/dist/pi/packages/ta-initiative/lib/page-initiative.js +40 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.d.ts +61 -0
- package/dist/pi/packages/ta-initiative/lib/proposal-book.js +397 -0
- package/dist/pi/packages/ta-initiative/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-initiative/lib/react.js +16 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.d.ts +32 -0
- package/dist/pi/packages/ta-initiative/lib/review-service.js +155 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-initiative/lib/server-texts.js +17 -0
- package/dist/pi/packages/ta-initiative/lib/settings.d.ts +10 -0
- package/dist/pi/packages/ta-initiative/lib/settings.js +226 -0
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-initiative/lib/style.js +56 -0
- package/dist/pi/packages/ta-initiative/lib/tool.d.ts +106 -0
- package/dist/pi/packages/ta-initiative/lib/tool.js +98 -0
- package/dist/pi/packages/ta-initiative/package.json +63 -0
- package/dist/pi/packages/ta-initiative/web/index.js +1226 -0
- package/dist/pi/packages/ta-launcher/README.en.md +2 -1
- package/dist/pi/packages/ta-launcher/README.md +2 -1
- package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +2 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.js +4 -0
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +32 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-launcher/lib/style.js +11 -0
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-launcher/web/index.js +58 -1
- package/dist/pi/packages/ta-manual/lib/pictures-b.js +29 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +160 -0
- package/dist/pi/packages/ta-manual/lib/pictures.js +2 -1
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +5 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +155 -9
- package/dist/pi/packages/ta-manual/package.json +1 -1
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +54 -8
- package/dist/pi/packages/ta-manual/web/index.js +750 -10
- package/dist/pi/packages/ta-moments/README.en.md +29 -0
- package/dist/pi/packages/ta-moments/README.md +29 -0
- package/dist/pi/packages/ta-moments/extension/index.mjs +1766 -0
- package/dist/pi/packages/ta-moments/host/index.mjs +2394 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.d.ts +30 -0
- package/dist/pi/packages/ta-moments/lib/brief-util.js +92 -0
- package/dist/pi/packages/ta-moments/lib/context.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/context.js +35 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.d.ts +6 -0
- package/dist/pi/packages/ta-moments/lib/draft-card.js +60 -0
- package/dist/pi/packages/ta-moments/lib/editor.d.ts +16 -0
- package/dist/pi/packages/ta-moments/lib/editor.js +126 -0
- package/dist/pi/packages/ta-moments/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-moments/lib/extension.js +136 -0
- package/dist/pi/packages/ta-moments/lib/friends.d.ts +13 -0
- package/dist/pi/packages/ta-moments/lib/friends.js +27 -0
- package/dist/pi/packages/ta-moments/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/host.js +11 -0
- package/dist/pi/packages/ta-moments/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-moments/lib/i18n.js +201 -0
- package/dist/pi/packages/ta-moments/lib/image-util.d.ts +18 -0
- package/dist/pi/packages/ta-moments/lib/image-util.js +71 -0
- package/dist/pi/packages/ta-moments/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-moments/lib/index.js +50 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.d.ts +133 -0
- package/dist/pi/packages/ta-moments/lib/moments-host.js +821 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +334 -0
- package/dist/pi/packages/ta-moments/lib/moments-protocol.js +99 -0
- package/dist/pi/packages/ta-moments/lib/page.d.ts +7 -0
- package/dist/pi/packages/ta-moments/lib/page.js +307 -0
- package/dist/pi/packages/ta-moments/lib/post-util.d.ts +31 -0
- package/dist/pi/packages/ta-moments/lib/post-util.js +205 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-moments/lib/server-texts.js +104 -0
- package/dist/pi/packages/ta-moments/lib/store.d.ts +33 -0
- package/dist/pi/packages/ta-moments/lib/store.js +108 -0
- package/dist/pi/packages/ta-moments/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-moments/lib/style.js +155 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.d.ts +112 -0
- package/dist/pi/packages/ta-moments/lib/talk-host.js +582 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.d.ts +26 -0
- package/dist/pi/packages/ta-moments/lib/talk-util.js +145 -0
- package/dist/pi/packages/ta-moments/lib/tool.d.ts +48 -0
- package/dist/pi/packages/ta-moments/lib/tool.js +56 -0
- package/dist/pi/packages/ta-moments/package.json +61 -0
- package/dist/pi/packages/ta-moments/web/index.js +1987 -0
- package/dist/pi/packages/ta-nearby/README.en.md +33 -0
- package/dist/pi/packages/ta-nearby/README.md +33 -0
- package/dist/pi/packages/ta-nearby/extension/index.mjs +389 -0
- package/dist/pi/packages/ta-nearby/host/index.mjs +1859 -0
- package/dist/pi/packages/ta-nearby/lib/extension.d.ts +27 -0
- package/dist/pi/packages/ta-nearby/lib/extension.js +190 -0
- package/dist/pi/packages/ta-nearby/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-nearby/lib/host.js +20 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +92 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.js +183 -0
- package/dist/pi/packages/ta-nearby/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/index.js +38 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.d.ts +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-crypto.js +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.d.ts +35 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-meet.js +93 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.d.ts +59 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-net.js +253 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +274 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.js +31 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +199 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +1012 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.d.ts +50 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-spot.js +167 -0
- package/dist/pi/packages/ta-nearby/lib/page.d.ts +52 -0
- package/dist/pi/packages/ta-nearby/lib/page.js +588 -0
- package/dist/pi/packages/ta-nearby/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-nearby/lib/react.js +8 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +45 -0
- package/dist/pi/packages/ta-nearby/lib/server-texts.js +148 -0
- package/dist/pi/packages/ta-nearby/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-nearby/lib/style.js +92 -0
- package/dist/pi/packages/ta-nearby/package.json +65 -0
- package/dist/pi/packages/ta-nearby/web/index.js +1055 -0
- package/dist/pi/packages/ta-notify/README.en.md +3 -1
- package/dist/pi/packages/ta-notify/README.md +3 -1
- package/dist/pi/packages/ta-notify/extension/index.mjs +64 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +24 -1
- package/dist/pi/packages/ta-notify/lib/extension.d.ts +4 -1
- package/dist/pi/packages/ta-notify/lib/extension.js +20 -1
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +23 -3
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +4 -2
- package/dist/pi/packages/ta-notify/lib/notify-service.js +27 -2
- package/dist/pi/packages/ta-notify/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-notify/lib/style.js +1 -1
- package/dist/pi/packages/ta-notify/lib/watcher.js +2 -1
- package/dist/pi/packages/ta-notify/package.json +7 -2
- package/dist/pi/packages/ta-notify/web/index.js +3 -2
- package/dist/pi/packages/ta-recall/README.en.md +15 -6
- package/dist/pi/packages/ta-recall/README.md +15 -6
- package/dist/pi/packages/ta-recall/extension/index.mjs +291 -134
- package/dist/pi/packages/ta-recall/host/index.mjs +451 -116
- package/dist/pi/packages/ta-recall/lib/block-util.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/block-util.js +43 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +25 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.js +38 -1
- package/dist/pi/packages/ta-recall/lib/composer.d.ts +3 -2
- package/dist/pi/packages/ta-recall/lib/composer.js +9 -8
- package/dist/pi/packages/ta-recall/lib/conversations.js +6 -0
- package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +21 -0
- package/dist/pi/packages/ta-recall/lib/extension-util.js +104 -0
- package/dist/pi/packages/ta-recall/lib/extension.d.ts +3 -3
- package/dist/pi/packages/ta-recall/lib/extension.js +35 -26
- package/dist/pi/packages/ta-recall/lib/i18n.d.ts +18 -10
- package/dist/pi/packages/ta-recall/lib/i18n.js +40 -24
- package/dist/pi/packages/ta-recall/lib/index.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/index.js +5 -4
- package/dist/pi/packages/ta-recall/lib/keep-card.d.ts +10 -0
- package/dist/pi/packages/ta-recall/lib/keep-card.js +83 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +15 -0
- package/dist/pi/packages/ta-recall/lib/keep-util.js +55 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +92 -18
- package/dist/pi/packages/ta-recall/lib/recall-protocol.js +19 -9
- package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +16 -6
- package/dist/pi/packages/ta-recall/lib/recall-service.js +101 -11
- package/dist/pi/packages/ta-recall/lib/requests-util.d.ts +6 -0
- package/dist/pi/packages/ta-recall/lib/requests-util.js +37 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.js +5 -0
- package/dist/pi/packages/ta-recall/lib/settings.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/settings.js +1 -1
- package/dist/pi/packages/ta-recall/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-recall/lib/style.js +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +2 -2
- package/dist/pi/packages/ta-recall/lib/tool-line.js +10 -5
- package/dist/pi/packages/ta-recall/lib/tool.d.ts +14 -5
- package/dist/pi/packages/ta-recall/lib/tool.js +29 -17
- package/dist/pi/packages/ta-recall/package.json +13 -5
- package/dist/pi/packages/ta-recall/web/index.js +397 -153
- package/dist/pi/packages/ta-rooms/README.en.md +14 -5
- package/dist/pi/packages/ta-rooms/README.md +14 -5
- package/dist/pi/packages/ta-rooms/extension/index.mjs +526 -0
- package/dist/pi/packages/ta-rooms/host/index.mjs +1734 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.d.ts +25 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.js +128 -0
- package/dist/pi/packages/ta-rooms/lib/dialogs.js +5 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.d.ts +26 -0
- package/dist/pi/packages/ta-rooms/lib/double-agents.js +84 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.d.ts +22 -0
- package/dist/pi/packages/ta-rooms/lib/double-grants.js +140 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.d.ts +117 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.js +476 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +105 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +212 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +258 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.js +128 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +82 -0
- package/dist/pi/packages/ta-rooms/lib/double-tasks.js +527 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.d.ts +19 -0
- package/dist/pi/packages/ta-rooms/lib/double-user.js +124 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +131 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.js +238 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +48 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +151 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.d.ts +34 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +228 -0
- package/dist/pi/packages/ta-rooms/lib/extension.d.ts +33 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +203 -0
- package/dist/pi/packages/ta-rooms/lib/friend-notices.d.ts +12 -0
- package/dist/pi/packages/ta-rooms/lib/friend-notices.js +47 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.d.ts +20 -0
- package/dist/pi/packages/ta-rooms/lib/friends-view.js +224 -0
- package/dist/pi/packages/ta-rooms/lib/host.d.ts +8 -0
- package/dist/pi/packages/ta-rooms/lib/host.js +25 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +27 -2
- package/dist/pi/packages/ta-rooms/lib/i18n.js +68 -18
- package/dist/pi/packages/ta-rooms/lib/index.js +41 -3
- package/dist/pi/packages/ta-rooms/lib/members-view.js +44 -3
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +97 -10
- package/dist/pi/packages/ta-rooms/lib/page.js +223 -45
- package/dist/pi/packages/ta-rooms/lib/room-view.d.ts +2 -4
- package/dist/pi/packages/ta-rooms/lib/room-view.js +57 -35
- package/dist/pi/packages/ta-rooms/lib/rooms-home.d.ts +32 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-home.js +141 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.d.ts +8 -2
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +68 -36
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +126 -50
- package/dist/pi/packages/ta-rooms/lib/tasks-view.d.ts +41 -0
- package/dist/pi/packages/ta-rooms/lib/tasks-view.js +228 -0
- package/dist/pi/packages/ta-rooms/package.json +19 -4
- package/dist/pi/packages/ta-rooms/web/index.js +2585 -470
- package/dist/pi/packages/ta-share/README.en.md +1 -1
- package/dist/pi/packages/ta-share/README.md +1 -1
- package/dist/pi/packages/ta-share/extension/index.mjs +51 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +6 -6
- package/dist/pi/packages/ta-share/lib/share-dialog.js +1 -1
- package/dist/pi/packages/ta-share/lib/shares-page.js +35 -11
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +14 -10
- package/dist/pi/packages/ta-share/package.json +10 -2
- package/dist/pi/packages/ta-share/web/index.js +56 -31
- package/dist/pi/packages/ta-sync/README.en.md +55 -0
- package/dist/pi/packages/ta-sync/README.md +55 -0
- package/dist/pi/packages/ta-sync/host/index.mjs +3763 -0
- package/dist/pi/packages/ta-sync/lib/host.d.ts +10 -0
- package/dist/pi/packages/ta-sync/lib/host.js +94 -0
- package/dist/pi/packages/ta-sync/lib/i18n.d.ts +98 -0
- package/dist/pi/packages/ta-sync/lib/i18n.js +202 -0
- package/dist/pi/packages/ta-sync/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-sync/lib/index.js +115 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.d.ts +88 -0
- package/dist/pi/packages/ta-sync/lib/migrate-archive.js +439 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.d.ts +77 -0
- package/dist/pi/packages/ta-sync/lib/migrate-frames.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +99 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +210 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.d.ts +51 -0
- package/dist/pi/packages/ta-sync/lib/migrate-net.js +170 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.d.ts +126 -0
- package/dist/pi/packages/ta-sync/lib/migrate-protocol.js +43 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.d.ts +86 -0
- package/dist/pi/packages/ta-sync/lib/migrate-service.js +521 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/move-panel.js +320 -0
- package/dist/pi/packages/ta-sync/lib/move-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/move-store.js +42 -0
- package/dist/pi/packages/ta-sync/lib/panel.d.ts +28 -0
- package/dist/pi/packages/ta-sync/lib/panel.js +305 -0
- package/dist/pi/packages/ta-sync/lib/pictures.d.ts +22 -0
- package/dist/pi/packages/ta-sync/lib/pictures.js +92 -0
- package/dist/pi/packages/ta-sync/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-sync/lib/react.js +16 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +29 -0
- package/dist/pi/packages/ta-sync/lib/server-texts.js +111 -0
- package/dist/pi/packages/ta-sync/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-sync/lib/style.js +108 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.d.ts +16 -0
- package/dist/pi/packages/ta-sync/lib/sync-codec.js +61 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.d.ts +57 -0
- package/dist/pi/packages/ta-sync/lib/sync-engine.js +203 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.d.ts +156 -0
- package/dist/pi/packages/ta-sync/lib/sync-folder.js +385 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.d.ts +60 -0
- package/dist/pi/packages/ta-sync/lib/sync-identity.js +201 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.d.ts +104 -0
- package/dist/pi/packages/ta-sync/lib/sync-items.js +426 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.d.ts +42 -0
- package/dist/pi/packages/ta-sync/lib/sync-merge.js +109 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.d.ts +134 -0
- package/dist/pi/packages/ta-sync/lib/sync-protocol.js +72 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.d.ts +128 -0
- package/dist/pi/packages/ta-sync/lib/sync-service.js +679 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.d.ts +15 -0
- package/dist/pi/packages/ta-sync/lib/sync-store.js +41 -0
- package/dist/pi/packages/ta-sync/package.json +57 -0
- package/dist/pi/packages/ta-sync/web/index.js +2018 -0
- package/dist/pi/packages/ta-sync-cloud/README.en.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/README.md +31 -0
- package/dist/pi/packages/ta-sync-cloud/host/index.mjs +810 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.d.ts +90 -0
- package/dist/pi/packages/ta-sync-cloud/lib/git-store.js +393 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-sync-cloud/lib/host.js +112 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.d.ts +72 -0
- package/dist/pi/packages/ta-sync-cloud/lib/s3-store.js +206 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.d.ts +17 -0
- package/dist/pi/packages/ta-sync-cloud/lib/store-util.js +69 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.d.ts +40 -0
- package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.js +144 -0
- package/dist/pi/packages/ta-sync-cloud/package.json +63 -0
- package/dist/pi/packages/ta-team/README.en.md +28 -0
- package/dist/pi/packages/ta-team/README.md +28 -0
- package/dist/pi/packages/ta-team/extension/index.mjs +264 -0
- package/dist/pi/packages/ta-team/host/index.mjs +2100 -0
- package/dist/pi/packages/ta-team/lib/dialogs.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/dialogs.js +335 -0
- package/dist/pi/packages/ta-team/lib/extension.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/extension.js +123 -0
- package/dist/pi/packages/ta-team/lib/host.d.ts +13 -0
- package/dist/pi/packages/ta-team/lib/host.js +45 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +200 -0
- package/dist/pi/packages/ta-team/lib/i18n.js +401 -0
- package/dist/pi/packages/ta-team/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/index.js +67 -0
- package/dist/pi/packages/ta-team/lib/join.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/join.js +48 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.d.ts +2 -0
- package/dist/pi/packages/ta-team/lib/member-dialog.js +121 -0
- package/dist/pi/packages/ta-team/lib/members-tab.d.ts +11 -0
- package/dist/pi/packages/ta-team/lib/members-tab.js +133 -0
- package/dist/pi/packages/ta-team/lib/page.d.ts +42 -0
- package/dist/pi/packages/ta-team/lib/page.js +142 -0
- package/dist/pi/packages/ta-team/lib/parts.d.ts +39 -0
- package/dist/pi/packages/ta-team/lib/parts.js +47 -0
- package/dist/pi/packages/ta-team/lib/policy.d.ts +37 -0
- package/dist/pi/packages/ta-team/lib/policy.js +215 -0
- package/dist/pi/packages/ta-team/lib/protocol.d.ts +285 -0
- package/dist/pi/packages/ta-team/lib/protocol.js +119 -0
- package/dist/pi/packages/ta-team/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/react.js +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/record-tab.js +90 -0
- package/dist/pi/packages/ta-team/lib/remote.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/remote.js +128 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.d.ts +9 -0
- package/dist/pi/packages/ta-team/lib/roles-tab.js +76 -0
- package/dist/pi/packages/ta-team/lib/seal.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/seal.js +75 -0
- package/dist/pi/packages/ta-team/lib/shared-home.d.ts +23 -0
- package/dist/pi/packages/ta-team/lib/shared-home.js +123 -0
- package/dist/pi/packages/ta-team/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/style.js +99 -0
- package/dist/pi/packages/ta-team/lib/team-admin.d.ts +31 -0
- package/dist/pi/packages/ta-team/lib/team-admin.js +140 -0
- package/dist/pi/packages/ta-team/lib/team-audit.d.ts +35 -0
- package/dist/pi/packages/ta-team/lib/team-audit.js +152 -0
- package/dist/pi/packages/ta-team/lib/team-core.d.ts +58 -0
- package/dist/pi/packages/ta-team/lib/team-core.js +115 -0
- package/dist/pi/packages/ta-team/lib/team-error.d.ts +4 -0
- package/dist/pi/packages/ta-team/lib/team-error.js +8 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-expiry.js +67 -0
- package/dist/pi/packages/ta-team/lib/team-files.d.ts +21 -0
- package/dist/pi/packages/ta-team/lib/team-files.js +119 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-inbox.js +32 -0
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +46 -0
- package/dist/pi/packages/ta-team/lib/team-invites.js +204 -0
- package/dist/pi/packages/ta-team/lib/team-page.d.ts +6 -0
- package/dist/pi/packages/ta-team/lib/team-page.js +41 -0
- package/dist/pi/packages/ta-team/lib/team-paths.d.ts +15 -0
- package/dist/pi/packages/ta-team/lib/team-paths.js +70 -0
- package/dist/pi/packages/ta-team/lib/team-people.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-people.js +106 -0
- package/dist/pi/packages/ta-team/lib/team-requests.d.ts +24 -0
- package/dist/pi/packages/ta-team/lib/team-requests.js +126 -0
- package/dist/pi/packages/ta-team/lib/team-runs.d.ts +38 -0
- package/dist/pi/packages/ta-team/lib/team-runs.js +136 -0
- package/dist/pi/packages/ta-team/lib/team-service.d.ts +32 -0
- package/dist/pi/packages/ta-team/lib/team-service.js +58 -0
- package/dist/pi/packages/ta-team/lib/team-shares.d.ts +52 -0
- package/dist/pi/packages/ta-team/lib/team-shares.js +145 -0
- package/dist/pi/packages/ta-team/lib/team-waits.d.ts +8 -0
- package/dist/pi/packages/ta-team/lib/team-waits.js +42 -0
- package/dist/pi/packages/ta-team/lib/team-watch.d.ts +28 -0
- package/dist/pi/packages/ta-team/lib/team-watch.js +136 -0
- package/dist/pi/packages/ta-team/package.json +68 -0
- package/dist/pi/packages/ta-team/web/index.js +2741 -0
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +157 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-D9uU0Tx2.js → abnfDiagram-S7VZAUFO-DJMZKA5d.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-f7Nm7EIo.js → architecture-WOLXFQ4H-DwZ8A2Bp.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-DSAqlcms.js → architectureDiagram-YGSQEFNW-DPezb7-w.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-C0lPIW9g.js → blockDiagram-APKKGZFW-SrFYBlSp.js} +1 -1
- package/dist/public/assets/{browser-WLpgVYno.js → browser-CljOqDFz.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CDcZ7mJq.js → c4Diagram-KJ2TOQU5-COCMkiJ6.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-CXPuyqPL.js → chunk-6MUBBAK2-CWRxZCiu.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-Du6JRX1x.js → chunk-AXFCVDMN-Dgn3RHlx.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-D592E55X.js → chunk-BG4553SI-BDnAChfb.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-BW2r2SL4.js → chunk-DQASFODM-DSgprMfc.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C3yoe54R.js → chunk-HFQBQIA3-ChtjyKjP.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-DF8gfYCy.js → chunk-KQLB2F66-B2o0ufJC.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-C8CRMTv1.js → chunk-KS47KZWR-C4qJvDaX.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-BDcMKiwj.js → chunk-LEVMRMFU-2jTGUstS.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-CKJPBygc.js → chunk-M57EVK23-CKAWW7fj.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-B3ZWH07L.js → chunk-OY52VR5R-B5TUKZAt.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-DI-z4UPL.js → chunk-QB3YPZ4I-CyQFTqwG.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-Bg4-haAc.js → chunk-R3KSYZAL-C6git_yh.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-l_SHib3p.js → chunk-STOXU5M4-AwEqcNnS.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-BINu9tIm.js → chunk-TU62E6Q5-GKcRDmvw.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BQn-mvV5.js → chunk-X4PVCEUW-CMG5EfZ9.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-uvpAu0Ys.js → chunk-XXDRQBXY-BHd-dKtZ.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-BIowooW1.js → classDiagram-v2-L25IHNXF-HaRsBCG9.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-BTyx1Mh2.js → cose-bilkent-JH36ORCC-BPBTCfj3.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DyqqRII3.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-D64EU9I0.js → cynefinDiagram-L36ESFBY-dAmWDtva.js} +1 -1
- package/dist/public/assets/{d3-selection-CN9k6_B9.js → d3-selection-BhemR5ul.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-FCbz2-Kk.js → dagre-SPEB5RXH-D93g6hNI.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-OhHUSI7j.js → diagram-3B7GL73J-FJBKgG3X.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-Be4xMtp6.js → diagram-DNEMPZML-BP22T976.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-CmKSs3aG.js → diagram-L3MUGCDN-DcrCJXRt.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-D1C32rMN.js → diagram-LA4NIPWU-DUgd3PHQ.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BjoE6JXs.js → diagram-MHCOC4E2-ejTInqzQ.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-B22k4v8R.js → diagram-XPFHEONP-BLjkgho1.js} +1 -1
- package/dist/public/assets/{dist-DcBP8Cf6.js → dist-C9xqTt0E.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-Tn-K8-X7.js → ebnfDiagram-UZSYDL2S-CB1QQ4_T.js} +1 -1
- package/dist/public/assets/{editor.api-Bz4sjRz_.js → editor.api-lz6I1oVk.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-COnQsWlN.js → elk-XV6XMXQE-CLBx1s2b.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-c53dJilq.js → erDiagram-EYBAPDEH-Dsj6RYi5.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-DaFpPPks.js → eventmodeling-K75KTNOO-smOORsSG.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +1 -0
- package/dist/public/assets/{freemarker2-BLxfRHsw.js → freemarker2-DrLPw7Mc.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-Md-SavIS.js → ganttDiagram-23REXITY-BV9WK0rK.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CMSwTghO.js → gitGraphDiagram-STJD7YCW-CsSpSQ0T.js} +1 -1
- package/dist/public/assets/{handlebars-sNpu01kP.js → handlebars-CLx5-csF.js} +1 -1
- package/dist/public/assets/{html-C_tKd-uP.js → html-C9LmGm46.js} +1 -1
- package/dist/public/assets/{index-Bn86rI4n.js → index-CLWW0mVu.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-CwgNj-7i.js → infoDiagram-KBXO4MBG-wm5AnXDz.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-BSlzQNMN.js → ishikawaDiagram-M35NCXHK-BLUBDeS3.js} +1 -1
- package/dist/public/assets/{javascript-l3qKw0L-.js → javascript-C4S1eQb7.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-B09LPEnF.js → journeyDiagram-OPLOXDXO-DXc7-I_g.js} +1 -1
- package/dist/public/assets/{jsonMode-5SQQn1EX.js → jsonMode-lLJKR2M6.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-BiW4aJ29.js → kanban-definition-BZKZHSQY-D5Ra4L_5.js} +1 -1
- package/dist/public/assets/{liquid-BGyTIIUt.js → liquid-DRlm-XZd.js} +1 -1
- package/dist/public/assets/{mdx-8tGjz4em.js → mdx-CzIqeqPy.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-CctN5b0z.js → mermaid-parser.core-BIPB1BgS.js} +3 -3
- package/dist/public/assets/{mermaid.core-7ERSdZ4-.js → mermaid.core-DxBlQ6oF.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-D-GOUwW1.js → mindmap-definition-I2QAS2VK-BdupvuYr.js} +1 -1
- package/dist/public/assets/module-BPxWyxwR.js +2362 -0
- package/dist/public/assets/module-C_MSCGQC.js +1 -0
- package/dist/public/assets/{monaco-B_9hlk78.js → monaco-ChpJIYsY.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-BjrqMgis.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-Dmy1fWB3.js → pegDiagram-FD4XPPHP-C_GF7Fng.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-CXFHLYTg.js → pieDiagram-J4AKIIQI-WlpNP-IM.js} +1 -1
- package/dist/public/assets/{python-e-JK0s5M.js → python-BJgFCfc8.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-RQvEpGWO.js → quadrantDiagram-XTYBLID2-CkCL5rJY.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-4nLUXAkG.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-BD2LqZSr.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-CDOSPZwX.js → railroad-abnf-LNEFI6M7-DZZKUytl.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-BTrNQ0DX.js → railroad-ebnf-DWYD2UWJ-CS7KsJdb.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-B7NtVofS.js → railroad-peg-JR7BVNR7-CiukTZVd.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-DsDrT0Jf.js → railroadDiagram-MRQ6NCDL-BS0R_H3-.js} +1 -1
- package/dist/public/assets/{razor-DtSPwumi.js → razor-jcBIjr45.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-BQh0hFuA.js → requirementDiagram-Y7LWUY3S-C0_T9jgl.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-BUXNAQEF.js → sankeyDiagram-WGJFYUXA-DF15sUfS.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-05f-N5V_.js → sequenceDiagram-5NDRBG5M-7AkTLleX.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-D6V1fGWV.js → stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-DWhlPvKs.js → swimlanes-UMQ2AFYF-CR-ieLeo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-COK2pFDF.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-CMdocOui.js → timeline-definition-SEUHKTQE-DeM0Uekm.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-BL13z_2J.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-Lx2qjQpO.js +1 -0
- package/dist/public/assets/{typescript-65jNyipU.js → typescript-B7zp7QPf.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BQTHUX1f.js → usecaseDiagram-AFA6YXN4-D6rDIgdU.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-BULkVTfA.js → vennDiagram-NNMJR3RB-CncVDcMl.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-Cek6l8lz.js → wardleyDiagram-S7YFUSEH-DKPAMfTE.js} +1 -1
- package/dist/public/assets/{xml-DWBejfu-.js → xml-BJIgLD52.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-ujnZQTWA.js → xychartDiagram-GGNKY7IX-DmmXGebm.js} +1 -1
- package/dist/public/assets/{yaml-CwRCT7q1.js → yaml-Dxb2gmP5.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +7767 -3392
- package/package.json +37 -31
- package/dist/pi/packages/ta-cron/lib/composer.d.ts +0 -11
- package/dist/pi/packages/ta-cron/lib/composer.js +0 -58
- package/dist/pi/packages/ta-extensions/lib/composer.d.ts +0 -17
- package/dist/pi/packages/ta-extensions/lib/composer.js +0 -84
- package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +0 -9
- package/dist/pi/packages/ta-recall/lib/skill-card.js +0 -51
- package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +0 -19
- package/dist/pi/packages/ta-recall/lib/skill-util.js +0 -110
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dg54eFzZ.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-V5qkYWIO.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-1q8ldRXU.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-Crere6sx.js +0 -1
- package/dist/public/assets/module-DEqsdd00.js +0 -1
- package/dist/public/assets/module-TWc52XwT.js +0 -2244
- package/dist/public/assets/packet-JDAUHWVQ-qMf5LkHT.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-BjqLn4qm.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-DWO6t_4C.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-D1XOJPWy.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CRn5uHsY.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-D09wHNzT.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-ChxAT7Fq.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-DfSjKzbJ.js +0 -1
|
@@ -2,10 +2,8 @@ import type { TaRoomInfo } from '@celljs/ta-protocol';
|
|
|
2
2
|
export declare function confirmThen(title: string, hint: string, label: string, action: () => Promise<unknown>): Promise<boolean>;
|
|
3
3
|
/** Leaves a room (its owner closes it), asking first; one asked to join, refused or gone is only forgotten. */
|
|
4
4
|
export declare function leaveRoom(room: TaRoomInfo): Promise<boolean>;
|
|
5
|
-
/** The
|
|
6
|
-
export declare function
|
|
7
|
-
/** The title of a room, its members counted, as a messenger titles a group. */
|
|
8
|
-
export declare function RoomTitle({ room }: {
|
|
5
|
+
/** The head of a room, as that of a channel: its name, how many are in it and online, their faces to show them. */
|
|
6
|
+
export declare function RoomHead({ room }: {
|
|
9
7
|
room: TaRoomInfo;
|
|
10
8
|
}): import("react").JSX.Element;
|
|
11
9
|
/** A room, as a group chat: those in it on the left, the user on the right, the box under them. */
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.confirmThen = confirmThen;
|
|
4
4
|
exports.leaveRoom = leaveRoom;
|
|
5
|
-
exports.
|
|
6
|
-
exports.RoomTitle = RoomTitle;
|
|
5
|
+
exports.RoomHead = RoomHead;
|
|
7
6
|
exports.RoomView = RoomView;
|
|
7
|
+
const agents_view_1 = require("./agents-view");
|
|
8
|
+
const double_i18n_1 = require("./double-i18n");
|
|
9
|
+
const doubles_store_1 = require("./doubles-store");
|
|
8
10
|
const page_1 = require("./page");
|
|
9
11
|
const react_1 = require("./react");
|
|
12
|
+
const tasks_view_1 = require("./tasks-view");
|
|
10
13
|
/** A new run after this long without a word of the same member; a line with the time after a longer pause. */
|
|
11
14
|
const RUN_MS = 5 * 60 * 1000;
|
|
12
15
|
const PAUSE_MS = 15 * 60 * 1000;
|
|
@@ -32,6 +35,12 @@ function leaveRoom(room) {
|
|
|
32
35
|
}
|
|
33
36
|
return confirmThen(room.owner ? (0, page_1.t)('closeTitle', { title: room.title }) : (0, page_1.t)('leaveTitle', { title: room.title }), room.owner ? (0, page_1.t)('closeHint') : (0, page_1.t)('leaveHint'), room.owner ? (0, page_1.t)('close') : (0, page_1.t)('leave'), async () => { var _a; return (_a = (0, page_1.rooms)()) === null || _a === void 0 ? void 0 : _a.leave(room.id); });
|
|
34
37
|
}
|
|
38
|
+
/** Who says a line, for its runs: a person, their double and each of their agents are each their own. */
|
|
39
|
+
function speaker(line) {
|
|
40
|
+
var _a;
|
|
41
|
+
var _b;
|
|
42
|
+
return `${line.from}:${line.double ? 'd' : ''}:${(_b = (_a = line.agent) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : ''}`;
|
|
43
|
+
}
|
|
35
44
|
/** The time of a line: when today, else the day too. */
|
|
36
45
|
function time(at) {
|
|
37
46
|
const date = new Date(at);
|
|
@@ -40,25 +49,18 @@ function time(at) {
|
|
|
40
49
|
? clock
|
|
41
50
|
: `${date.toLocaleDateString(page_1.pi.ui.language, { month: 'numeric', day: 'numeric' })} ${clock}`;
|
|
42
51
|
}
|
|
43
|
-
/** The
|
|
44
|
-
function
|
|
52
|
+
/** The head of a room, as that of a channel: its name, how many are in it and online, their faces to show them. */
|
|
53
|
+
function RoomHead({ room }) {
|
|
45
54
|
var _a, _b, _c;
|
|
46
55
|
const shown = !!((_c = (_b = (_a = page_1.pi.ui).useView) === null || _b === void 0 ? void 0 : _b.call(_a, page_1.MEMBERS_VIEW)) === null || _c === void 0 ? void 0 : _c.shown);
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
react_1.React.createElement("span", { className: "trm-room-title-text" },
|
|
56
|
-
react_1.React.createElement("span", { className: "trm-ellipsis" }, room.title),
|
|
57
|
-
react_1.React.createElement("span", { className: "trm-room-count" },
|
|
58
|
-
"(",
|
|
59
|
-
room.members.length,
|
|
60
|
-
")")),
|
|
61
|
-
react_1.React.createElement("span", { className: `trm-room-sub${room.connected ? '' : ' trm-quiet'}` }, !room.connected ? (0, page_1.t)('connecting') : online ? (0, page_1.t)('othersOnline', { n: online }) : (0, page_1.t)('nobodyOnline'))));
|
|
56
|
+
const page = (0, page_1.usePageOf)(room);
|
|
57
|
+
const online = room.members.filter(member => member.online).length;
|
|
58
|
+
return (react_1.React.createElement("div", { className: "trm-room-head" },
|
|
59
|
+
react_1.React.createElement("span", { className: "trm-room-head-title" },
|
|
60
|
+
react_1.React.createElement("strong", { className: "trm-ellipsis" }, room.title),
|
|
61
|
+
react_1.React.createElement("span", { className: "trm-room-head-count" }, (0, page_1.t)('memberCount', { n: room.members.length })),
|
|
62
|
+
react_1.React.createElement("span", { className: `trm-room-head-sub${room.connected ? '' : ' trm-quiet'}` }, !room.connected ? (0, page_1.t)('connecting') : page ? page.title : (0, page_1.t)('onlineCount', { n: online }))),
|
|
63
|
+
react_1.React.createElement(page_1.MemberFaces, { room: room, shown: shown, onClick: () => void page_1.pi.ui.showView(page_1.MEMBERS_VIEW) })));
|
|
62
64
|
}
|
|
63
65
|
/** A room an extension made: its page, a line above the chat that opens it (the Town). */
|
|
64
66
|
function PageLine({ room }) {
|
|
@@ -83,16 +85,23 @@ function RoomView({ room, head, onBack }) {
|
|
|
83
85
|
const Back = (0, page_1.icon)('ArrowLeft');
|
|
84
86
|
const chat = page_1.book.chat(room.id);
|
|
85
87
|
const lines = (0, page_1.useLines)(room);
|
|
88
|
+
const agents = (0, page_1.useAgents)(room);
|
|
89
|
+
const joining = (0, page_1.useJoining)(room);
|
|
90
|
+
const tasks = (0, page_1.useTaskStates)(room);
|
|
86
91
|
const list = react_1.React.useRef(null);
|
|
87
92
|
const stuck = react_1.React.useRef(true);
|
|
88
93
|
const self = room.members.find(member => member.self);
|
|
89
|
-
const
|
|
94
|
+
const personOf = (line) => { var _a; var _b; return (_b = (_a = room.members.find(member => member.member === line.from)) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : line.name; };
|
|
95
|
+
// What a double says is its own, beside the person's: on the left, with their face and `X's double`, the user's too; an agent's with its name.
|
|
96
|
+
const nameOf = (line) => line.agent ? line.agent.name : !line.double ? personOf(line) : line.from === (self === null || self === void 0 ? void 0 : self.member) ? (0, double_i18n_1.dt)('myDouble') : (0, double_i18n_1.dt)('doubleOf', { name: personOf(line) });
|
|
97
|
+
const tagOf = (line) => (line.agent ? (0, agents_view_1.agentOwner)(room, { member: line.from }) : line.double ? (0, double_i18n_1.dt)('doubleTag') : '');
|
|
98
|
+
const mentions = react_1.React.useMemo(() => [...(0, agents_view_1.agentMentions)(room, agents), ...(0, doubles_store_1.askable)(room).map(member => ({ name: (0, doubles_store_1.mentionName)(member.name), detail: (0, double_i18n_1.dt)('mentionDetail') }))], [room, agents]);
|
|
90
99
|
react_1.React.useLayoutEffect(() => {
|
|
91
100
|
const element = list.current;
|
|
92
101
|
if (element && stuck.current) {
|
|
93
102
|
element.scrollTop = element.scrollHeight;
|
|
94
103
|
}
|
|
95
|
-
}, [lines]);
|
|
104
|
+
}, [lines, joining]);
|
|
96
105
|
react_1.React.useEffect(() => {
|
|
97
106
|
var _a;
|
|
98
107
|
if (page_1.pi.ui.Stack) {
|
|
@@ -112,39 +121,52 @@ function RoomView({ room, head, onBack }) {
|
|
|
112
121
|
throw new Error((0, page_1.t)('connecting'));
|
|
113
122
|
}
|
|
114
123
|
stuck.current = true;
|
|
115
|
-
|
|
124
|
+
const to = (0, doubles_store_1.addressed)(text, room, agents);
|
|
125
|
+
await chat.say(text, self, to.length ? { to } : {});
|
|
116
126
|
};
|
|
117
127
|
return (react_1.React.createElement("div", { className: "trm-room-page" },
|
|
118
|
-
head && (react_1.React.createElement("div", { className: "trm-room-
|
|
128
|
+
head && (react_1.React.createElement("div", { className: "trm-room-bar" },
|
|
119
129
|
onBack && (react_1.React.createElement("button", { type: "button", className: "trm-icon", title: (0, page_1.t)('back'), "aria-label": (0, page_1.t)('back'), onClick: onBack },
|
|
120
130
|
react_1.React.createElement(Back, { size: 18 }))),
|
|
121
|
-
react_1.React.createElement(
|
|
122
|
-
react_1.React.createElement(MembersButton, null))),
|
|
131
|
+
react_1.React.createElement(RoomHead, { room: room }))),
|
|
123
132
|
react_1.React.createElement(PageLine, { room: room }),
|
|
124
133
|
react_1.React.createElement("div", { className: "trm-chat ta-conversation", ref: list, onScroll: event => {
|
|
125
134
|
const element = event.currentTarget;
|
|
126
135
|
stuck.current = element.scrollHeight - element.scrollTop - element.clientHeight < 48;
|
|
127
136
|
} },
|
|
128
137
|
react_1.React.createElement("div", { className: "trm-chat-col" },
|
|
129
|
-
lines.length === 0 && react_1.React.createElement("div", { className: "trm-chat-empty" },
|
|
138
|
+
lines.length === 0 && (react_1.React.createElement("div", { className: "trm-chat-empty" },
|
|
139
|
+
react_1.React.createElement(page_1.RoomFace, { room: room, size: 56 }),
|
|
140
|
+
react_1.React.createElement("strong", null, room.title),
|
|
141
|
+
react_1.React.createElement("span", null, room.owner ? (0, page_1.t)('ownRoom') : (0, page_1.t)('roomOf', { name: room.ownerName })),
|
|
142
|
+
react_1.React.createElement("span", { className: "trm-chat-hint" }, (0, page_1.t)('chatEmpty')),
|
|
143
|
+
agents.length === 0 && joining.length === 0 && room.members.length < 2 && (react_1.React.createElement("button", { type: "button", className: "ta-button trm-try-alone", onClick: () => (0, agents_view_1.openAgentPicker)(room) }, (0, double_i18n_1.dt)('inviteAgent'))))),
|
|
130
144
|
lines.map((line, index) => {
|
|
131
|
-
var _a;
|
|
145
|
+
var _a, _b;
|
|
146
|
+
var _c, _d, _e;
|
|
132
147
|
const before = lines[index - 1];
|
|
133
148
|
const separator = !before || line.at - before.at > PAUSE_MS;
|
|
134
|
-
const first = separator || before
|
|
149
|
+
const first = separator || speaker(before) !== speaker(line) || line.at - before.at > RUN_MS;
|
|
135
150
|
const other = room.members.find(member => member.member === line.from);
|
|
136
151
|
return (react_1.React.createElement(react_1.React.Fragment, { key: line.id },
|
|
137
152
|
separator && react_1.React.createElement("div", { className: "trm-chat-time" }, time(line.at)),
|
|
138
|
-
line.from === (self === null || self === void 0 ? void 0 : self.member) ? (react_1.React.createElement("div", { className: "ta-message ta-user trm-mine", title: time(line.at) },
|
|
153
|
+
line.from === (self === null || self === void 0 ? void 0 : self.member) && !line.double && !line.agent ? (react_1.React.createElement("div", { className: "ta-message ta-user trm-mine", title: time(line.at) },
|
|
139
154
|
react_1.React.createElement("div", { className: "ta-bubble" },
|
|
140
|
-
react_1.React.createElement(page_1.pi.ui.Markdown, { text: line.text })))) : (react_1.React.createElement("div", { className: `trm-msg${first ? ' trm-first' : ''}` },
|
|
141
|
-
react_1.React.createElement("div", { className: "trm-msg-face" }, first && react_1.React.createElement(page_1.Face, { id: (_a = other === null || other === void 0 ? void 0 : other.id) !== null &&
|
|
155
|
+
react_1.React.createElement(page_1.pi.ui.Markdown, { text: line.text })))) : (react_1.React.createElement("div", { className: `trm-msg${first ? ' trm-first' : ''}${line.double ? ' trm-double' : ''}${line.agent ? ' trm-agent' : ''}` },
|
|
156
|
+
react_1.React.createElement("div", { className: "trm-msg-face" }, first && (react_1.React.createElement(page_1.Face, { id: (_d = (_c = (_a = line.agent) === null || _a === void 0 ? void 0 : _a.id) !== null && _c !== void 0 ? _c : other === null || other === void 0 ? void 0 : other.id) !== null && _d !== void 0 ? _d : line.from, name: nameOf(line), face: line.agent && ((_b = agents.find(agent => { var _a; return agent.id === ((_a = line.agent) === null || _a === void 0 ? void 0 : _a.id) && agent.member === line.from; })) === null || _b === void 0 ? void 0 : _b.face), size: 28 }))),
|
|
142
157
|
react_1.React.createElement("div", { className: "trm-msg-col" },
|
|
143
|
-
first && react_1.React.createElement("div", { className: "trm-msg-name" },
|
|
158
|
+
first && (react_1.React.createElement("div", { className: "trm-msg-name" },
|
|
159
|
+
nameOf(line),
|
|
160
|
+
tagOf(line) && (react_1.React.createElement("span", { className: `trm-tag ${line.agent ? 'trm-tag-agent' : 'trm-tag-double'}` }, tagOf(line))),
|
|
161
|
+
line.task && react_1.React.createElement("span", { className: "trm-tag trm-tag-task" }, (0, double_i18n_1.dt)('taskTag')))),
|
|
144
162
|
react_1.React.createElement("div", { className: "trm-msg-bubble", title: time(line.at) },
|
|
145
|
-
react_1.React.createElement(page_1.pi.ui.Markdown, { text: line.text }))
|
|
146
|
-
|
|
163
|
+
react_1.React.createElement(page_1.pi.ui.Markdown, { text: line.text })),
|
|
164
|
+
line.task && (react_1.React.createElement(tasks_view_1.TaskLine, { statuses: ((_e = tasks[line.id]) !== null && _e !== void 0 ? _e : []).filter(each => { var _a; return (_a = line.to) === null || _a === void 0 ? void 0 : _a.includes(each.member); }).map(each => each.status) })))))));
|
|
165
|
+
}),
|
|
166
|
+
joining.map(agent => (react_1.React.createElement("div", { key: agent.id, className: "trm-chat-joining", role: "status" },
|
|
167
|
+
react_1.React.createElement("span", { className: "ta-spinner" }),
|
|
168
|
+
(0, double_i18n_1.dt)('joiningRoom', { name: agent.name })))))),
|
|
147
169
|
react_1.React.createElement("div", { className: "trm-chat-bottom" },
|
|
148
|
-
react_1.React.createElement(page_1.pi.ui.Composer, { placeholder: (0, page_1.t)('chatPlaceholder'), onSend: say }))));
|
|
170
|
+
react_1.React.createElement(page_1.pi.ui.Composer, { placeholder: (0, page_1.t)('chatPlaceholder'), onSend: say, mentions: mentions, mentionLabel: (0, double_i18n_1.dt)('mentionLabel') }))));
|
|
149
171
|
}
|
|
150
172
|
//# sourceMappingURL=room-view.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { TaRoomInfo } from '@celljs/ta-protocol';
|
|
2
|
+
import type { RelayRoomChat } from '@celljs/ta-relay/lib/common/relay-room-chat';
|
|
3
|
+
import type { WebHomeItem, WebHomeSource, WebSettingsSection } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
4
|
+
/** Whether the rooms show on the double's home, the same on every device (pi.storage); on unless the user turned it off. */
|
|
5
|
+
export declare const HOME_KEY = "home.rooms";
|
|
6
|
+
/**
|
|
7
|
+
* The rooms the user is in as a section of the double's home (WebHomeItem.section), the latest said in first, as the
|
|
8
|
+
* Rooms page lists them: what was said last, an amber dot for what the user has not read. None when they are in no
|
|
9
|
+
* room, or turned it off ({@link HOME_KEY}).
|
|
10
|
+
*/
|
|
11
|
+
export declare class RoomsHome implements WebHomeSource {
|
|
12
|
+
protected current: readonly WebHomeItem[];
|
|
13
|
+
protected signature: string;
|
|
14
|
+
protected shown: boolean;
|
|
15
|
+
protected readonly listeners: Set<() => void>;
|
|
16
|
+
protected readonly chats: Map<string, () => void>;
|
|
17
|
+
protected readonly faces: Map<string, import("react").ComponentType<{
|
|
18
|
+
size: number;
|
|
19
|
+
}>>;
|
|
20
|
+
readonly items: () => readonly WebHomeItem[];
|
|
21
|
+
readonly subscribe: (listener: () => void) => (() => void);
|
|
22
|
+
start(): () => void;
|
|
23
|
+
protected readShown(): void;
|
|
24
|
+
/** Builds the rows again, and says so only when what they show changed. */
|
|
25
|
+
protected refresh(): void;
|
|
26
|
+
protected item(room: TaRoomInfo, lines: RelayRoomChat['lines'], fresh: boolean): WebHomeItem;
|
|
27
|
+
/** What is said in each room the rows show, as it comes. */
|
|
28
|
+
protected follow(joined: readonly TaRoomInfo[]): void;
|
|
29
|
+
}
|
|
30
|
+
/** Rooms, in the settings: whether they show on the double's home. */
|
|
31
|
+
export declare function roomsSettings(): WebSettingsSection;
|
|
32
|
+
//# sourceMappingURL=rooms-home.d.ts.map
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoomsHome = exports.HOME_KEY = void 0;
|
|
4
|
+
exports.roomsSettings = roomsSettings;
|
|
5
|
+
const page_1 = require("./page");
|
|
6
|
+
const react_1 = require("./react");
|
|
7
|
+
const rooms_page_1 = require("./rooms-page");
|
|
8
|
+
/** Whether the rooms show on the double's home, the same on every device (pi.storage); on unless the user turned it off. */
|
|
9
|
+
exports.HOME_KEY = 'home.rooms';
|
|
10
|
+
/** The face of a room on the double's home: the room as the book has it now. */
|
|
11
|
+
function homeFace(id) {
|
|
12
|
+
return function HomeFace({ size }) {
|
|
13
|
+
const room = react_1.React.useSyncExternalStore(listener => page_1.book.subscribe(listener), () => { var _a; return (_a = page_1.book.get().rooms) === null || _a === void 0 ? void 0 : _a.find(each => each.id === id); });
|
|
14
|
+
return room ? react_1.React.createElement(page_1.RoomFace, { room: room, size: size }) : null;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The rooms the user is in as a section of the double's home (WebHomeItem.section), the latest said in first, as the
|
|
19
|
+
* Rooms page lists them: what was said last, an amber dot for what the user has not read. None when they are in no
|
|
20
|
+
* room, or turned it off ({@link HOME_KEY}).
|
|
21
|
+
*/
|
|
22
|
+
class RoomsHome {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.current = [];
|
|
25
|
+
this.signature = '';
|
|
26
|
+
this.shown = true;
|
|
27
|
+
this.listeners = new Set();
|
|
28
|
+
this.chats = new Map();
|
|
29
|
+
this.faces = new Map();
|
|
30
|
+
this.items = () => this.current;
|
|
31
|
+
this.subscribe = (listener) => {
|
|
32
|
+
this.listeners.add(listener);
|
|
33
|
+
return () => this.listeners.delete(listener);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
start() {
|
|
37
|
+
const stopBook = page_1.book.subscribe(() => this.refresh());
|
|
38
|
+
const stopStorage = page_1.pi.storage.onChange(keys => keys.includes(exports.HOME_KEY) && this.readShown());
|
|
39
|
+
this.readShown();
|
|
40
|
+
this.refresh();
|
|
41
|
+
return () => {
|
|
42
|
+
stopBook();
|
|
43
|
+
stopStorage();
|
|
44
|
+
for (const stop of this.chats.values()) {
|
|
45
|
+
stop();
|
|
46
|
+
}
|
|
47
|
+
this.chats.clear();
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
readShown() {
|
|
51
|
+
void page_1.pi.storage.get(exports.HOME_KEY).then(value => {
|
|
52
|
+
this.shown = value !== false;
|
|
53
|
+
this.refresh();
|
|
54
|
+
}, () => undefined);
|
|
55
|
+
}
|
|
56
|
+
/** Builds the rows again, and says so only when what they show changed. */
|
|
57
|
+
refresh() {
|
|
58
|
+
const { rooms = [], seen } = page_1.book.get();
|
|
59
|
+
const joined = this.shown ? rooms.filter(room => room.status === 'member') : [];
|
|
60
|
+
this.follow(joined);
|
|
61
|
+
const rows = joined.map(room => { var _a; var _b; return ({ room, lines: (_b = (_a = page_1.book.chat(room.id)) === null || _a === void 0 ? void 0 : _a.lines) !== null && _b !== void 0 ? _b : [] }); }).sort((a, b) => (0, rooms_page_1.lastAt)(b.room) - (0, rooms_page_1.lastAt)(a.room));
|
|
62
|
+
const signature = rows
|
|
63
|
+
.map(({ room, lines }) => { var _a; var _b; return [room.id, room.title, (_b = (_a = lines.at(-1)) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : '', (0, page_1.unseen)(room, lines, seen) ? 1 : 0, room.connected ? 1 : 0, room.members.length].join(':'); })
|
|
64
|
+
.join('|');
|
|
65
|
+
if (signature === this.signature) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
this.signature = signature;
|
|
69
|
+
this.current = rows.map(({ room, lines }) => this.item(room, lines, (0, page_1.unseen)(room, lines, seen)));
|
|
70
|
+
for (const listener of this.listeners) {
|
|
71
|
+
listener();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
item(room, lines, fresh) {
|
|
75
|
+
let face = this.faces.get(room.id);
|
|
76
|
+
if (!face) {
|
|
77
|
+
face = homeFace(room.id);
|
|
78
|
+
this.faces.set(room.id, face);
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
id: room.id,
|
|
82
|
+
title: room.title,
|
|
83
|
+
detail: (0, rooms_page_1.roomPreview)(room, lines.at(-1)),
|
|
84
|
+
icon: (0, page_1.icon)('Users'),
|
|
85
|
+
face,
|
|
86
|
+
section: (0, page_1.t)('roomsTitle'),
|
|
87
|
+
at: (0, rooms_page_1.lastAt)(room),
|
|
88
|
+
unseen: fresh,
|
|
89
|
+
open: () => (0, page_1.openRoom)(room.id, true),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
/** What is said in each room the rows show, as it comes. */
|
|
93
|
+
follow(joined) {
|
|
94
|
+
var _a;
|
|
95
|
+
const ids = new Set(joined.map(room => room.id));
|
|
96
|
+
for (const [id, stop] of this.chats) {
|
|
97
|
+
if (!ids.has(id)) {
|
|
98
|
+
stop();
|
|
99
|
+
this.chats.delete(id);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
for (const room of joined) {
|
|
103
|
+
if (!this.chats.has(room.id)) {
|
|
104
|
+
const stop = (_a = page_1.book.chat(room.id)) === null || _a === void 0 ? void 0 : _a.subscribe(() => this.refresh());
|
|
105
|
+
this.chats.set(room.id, stop !== null && stop !== void 0 ? stop : (() => undefined));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.RoomsHome = RoomsHome;
|
|
111
|
+
function HomeSwitch() {
|
|
112
|
+
const [on, setOn] = react_1.React.useState(true);
|
|
113
|
+
react_1.React.useEffect(() => {
|
|
114
|
+
let live = true;
|
|
115
|
+
const read = () => void page_1.pi.storage.get(exports.HOME_KEY).then(value => live && setOn(value !== false), () => undefined);
|
|
116
|
+
read();
|
|
117
|
+
const stop = page_1.pi.storage.onChange(keys => keys.includes(exports.HOME_KEY) && read());
|
|
118
|
+
return () => {
|
|
119
|
+
live = false;
|
|
120
|
+
stop();
|
|
121
|
+
};
|
|
122
|
+
}, []);
|
|
123
|
+
const change = (next) => {
|
|
124
|
+
setOn(next);
|
|
125
|
+
return page_1.pi.storage.set(exports.HOME_KEY, next).catch(error => {
|
|
126
|
+
setOn(!next);
|
|
127
|
+
page_1.pi.ui.notify(error instanceof Error ? error.message : String(error), 'error');
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
const Switch = page_1.pi.ui.Switch;
|
|
131
|
+
return Switch ? (react_1.React.createElement(Switch, { checked: on, label: (0, page_1.t)('showOnHome'), onChange: change })) : (react_1.React.createElement("input", { type: "checkbox", role: "switch", className: "ta-switch", checked: on, "aria-checked": on, "aria-label": (0, page_1.t)('showOnHome'), onChange: event => void change(event.target.checked) }));
|
|
132
|
+
}
|
|
133
|
+
/** Rooms, in the settings: whether they show on the double's home. */
|
|
134
|
+
function roomsSettings() {
|
|
135
|
+
return {
|
|
136
|
+
title: () => (0, page_1.t)('roomsTitle'),
|
|
137
|
+
icon: (0, page_1.icon)('Users'),
|
|
138
|
+
rows: [{ key: 'home', label: () => (0, page_1.t)('showOnHome'), description: () => (0, page_1.t)('showOnHomeHint'), render: HomeSwitch }],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=rooms-home.js.map
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
import type { TaRoomInfo } from '@celljs/ta-protocol';
|
|
2
|
+
import type { RelayChatLine as ChatLine } from '@celljs/ta-relay/lib/common/relay-room-chat';
|
|
3
|
+
/** What a row of a room says under its title: what was said last and by whom, else how the room is. */
|
|
4
|
+
export declare function roomPreview(room: TaRoomInfo, last: ChatLine | undefined): string;
|
|
5
|
+
export declare function lastAt(room: TaRoomInfo): number;
|
|
1
6
|
/**
|
|
2
|
-
* The head of the page
|
|
3
|
-
* and the
|
|
7
|
+
* The head of the page, as the sidebar and the head of a channel side by side: on a computer, the title and the + over
|
|
8
|
+
* the list and the head of the room shown beside them; on a phone the title and the +, or, while a room is pushed over
|
|
9
|
+
* the list, that room's head (the head of the page then goes back, ui.Stack).
|
|
4
10
|
*/
|
|
5
11
|
export declare function RoomsHead(): import("react").JSX.Element;
|
|
6
12
|
/** Rooms, under Discover: the list and a room beside it, or on a phone the list and the room pushed over it. */
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.roomPreview = roomPreview;
|
|
4
|
+
exports.lastAt = lastAt;
|
|
3
5
|
exports.RoomsHead = RoomsHead;
|
|
4
6
|
exports.RoomsPage = RoomsPage;
|
|
5
7
|
const dialogs_1 = require("./dialogs");
|
|
8
|
+
const double_i18n_1 = require("./double-i18n");
|
|
9
|
+
const doubles_store_1 = require("./doubles-store");
|
|
10
|
+
const doubles_view_1 = require("./doubles-view");
|
|
11
|
+
const friends_view_1 = require("./friends-view");
|
|
6
12
|
const page_1 = require("./page");
|
|
7
13
|
const react_1 = require("./react");
|
|
8
14
|
const room_view_1 = require("./room-view");
|
|
@@ -15,6 +21,18 @@ function plain(text) {
|
|
|
15
21
|
.replace(/\s+/g, ' ')
|
|
16
22
|
.trim();
|
|
17
23
|
}
|
|
24
|
+
/** What a row of a room says under its title: what was said last and by whom, else how the room is. */
|
|
25
|
+
function roomPreview(room, last) {
|
|
26
|
+
var _a, _b, _c;
|
|
27
|
+
var _d, _e;
|
|
28
|
+
if (!last) {
|
|
29
|
+
return (0, page_1.statusLine)(room);
|
|
30
|
+
}
|
|
31
|
+
const self = (_a = room.members.find(each => each.self)) === null || _a === void 0 ? void 0 : _a.member;
|
|
32
|
+
const person = (_d = (_b = room.members.find(each => each.member === last.from)) === null || _b === void 0 ? void 0 : _b.name) !== null && _d !== void 0 ? _d : last.name;
|
|
33
|
+
const name = (_e = (_c = last.agent) === null || _c === void 0 ? void 0 : _c.name) !== null && _e !== void 0 ? _e : (!last.double ? person : last.from === self ? (0, double_i18n_1.dt)('myDouble') : (0, double_i18n_1.dt)('doubleOf', { name: person }));
|
|
34
|
+
return last.from === self && !last.agent && !last.double ? plain(last.text) : (0, page_1.t)('said', { name, text: plain(last.text) });
|
|
35
|
+
}
|
|
18
36
|
function lastAt(room) {
|
|
19
37
|
var _a, _b;
|
|
20
38
|
var _c, _d;
|
|
@@ -36,16 +54,12 @@ function useSorted(list) {
|
|
|
36
54
|
return react_1.React.useMemo(() => [...list].sort((a, b) => Number(b.status === 'member') - Number(a.status === 'member') || lastAt(b) - lastAt(a)), [order, list]);
|
|
37
55
|
}
|
|
38
56
|
function RoomRow({ room, active, seen, openMenu }) {
|
|
39
|
-
var _a, _b;
|
|
40
|
-
var _c;
|
|
41
57
|
const lines = (0, page_1.useLines)(room);
|
|
42
58
|
const page = (0, page_1.usePageOf)(room);
|
|
43
59
|
const member = room.status === 'member';
|
|
44
60
|
const last = lines[lines.length - 1];
|
|
45
|
-
const self = (_a = room.members.find(each => each.self)) === null || _a === void 0 ? void 0 : _a.member;
|
|
46
61
|
const unread = member && (0, page_1.unseen)(room, lines, seen);
|
|
47
|
-
const
|
|
48
|
-
const preview = last ? (last.from === self ? plain(last.text) : (0, page_1.t)('said', { name: name !== null && name !== void 0 ? name : '', text: plain(last.text) })) : (0, page_1.statusLine)(room);
|
|
62
|
+
const preview = roomPreview(room, last);
|
|
49
63
|
const menu = [
|
|
50
64
|
member
|
|
51
65
|
? [
|
|
@@ -71,33 +85,25 @@ function RoomRow({ room, active, seen, openMenu }) {
|
|
|
71
85
|
react_1.React.createElement("span", { className: "trm-room-text" },
|
|
72
86
|
react_1.React.createElement("span", { className: "trm-room-line" },
|
|
73
87
|
react_1.React.createElement("span", { className: "trm-room-name trm-ellipsis" }, room.title),
|
|
74
|
-
page && react_1.React.createElement("span", { className: "trm-kind" }, page.title),
|
|
75
88
|
react_1.React.createElement("span", { className: "trm-room-time" }, (0, page_1.when)(lastAt(room)))),
|
|
76
89
|
react_1.React.createElement("span", { className: `trm-room-preview trm-ellipsis${member ? '' : ' trm-quiet'}` }, preview)))));
|
|
77
90
|
}
|
|
78
|
-
|
|
79
|
-
const Remove = (0, page_1.icon)('Trash2');
|
|
80
|
-
const remove = () => void (0, room_view_1.confirmThen)((0, page_1.t)('removeFriendTitle', { name: friend.name }), (0, page_1.t)('removeFriendHint'), (0, page_1.t)('removeFriend'), async () => { var _a; return (_a = (0, page_1.rooms)()) === null || _a === void 0 ? void 0 : _a.removeFriend(friend.id); });
|
|
81
|
-
return (react_1.React.createElement("li", { className: "trm-friend", onContextMenu: event => openMenu(event, [[{ key: 'remove', label: (0, page_1.t)('removeFriend'), icon: Remove, danger: true, run: remove }]]) },
|
|
82
|
-
react_1.React.createElement(page_1.Face, { id: friend.id, name: friend.name, size: 36 }),
|
|
83
|
-
react_1.React.createElement("span", { className: "trm-room-text" },
|
|
84
|
-
react_1.React.createElement("span", { className: "trm-room-name trm-ellipsis" }, friend.name),
|
|
85
|
-
react_1.React.createElement("span", { className: "trm-room-preview trm-ellipsis" }, (0, page_1.t)('friendLine', { rooms: friend.rooms.slice(-3).reverse().join('、') }))),
|
|
86
|
-
react_1.React.createElement("button", { type: "button", className: "trm-icon trm-danger trm-hover-only", title: (0, page_1.t)('removeFriend'), "aria-label": (0, page_1.t)('removeFriend'), onClick: remove },
|
|
87
|
-
react_1.React.createElement(Remove, { size: 15 }))));
|
|
88
|
-
}
|
|
89
|
-
/** The list: who asks to join, the rooms as a messenger lists its chats, the Ta friends, and the user's name. */
|
|
91
|
+
/** The list: who asks to join, the rooms as a messenger lists its chats, the way to the friends, and the user's name. */
|
|
90
92
|
function RoomList({ openMenu }) {
|
|
91
|
-
const { identity, rooms: list, requests,
|
|
93
|
+
const { identity, rooms: list, requests, opened, seen } = (0, page_1.useBook)();
|
|
94
|
+
const { asks } = (0, doubles_store_1.useDoubles)();
|
|
92
95
|
const sorted = useSorted(list !== null && list !== void 0 ? list : []);
|
|
93
96
|
return (react_1.React.createElement("div", { className: "trm-list" },
|
|
97
|
+
asks.length > 0 && (react_1.React.createElement("section", { className: "trm-section" },
|
|
98
|
+
react_1.React.createElement("h3", null, (0, double_i18n_1.dt)('asksTitle')),
|
|
99
|
+
react_1.React.createElement("ul", { className: "trm-card" }, asks.map(ask => (react_1.React.createElement(doubles_view_1.AskRow, { key: ask.id, ask: ask })))))),
|
|
94
100
|
requests.length > 0 && (react_1.React.createElement("section", { className: "trm-section" },
|
|
95
101
|
react_1.React.createElement("h3", null, (0, page_1.t)('requests')),
|
|
96
102
|
react_1.React.createElement("ul", { className: "trm-card" }, requests.map(request => (react_1.React.createElement(dialogs_1.RequestRow, { key: `${request.room}:${request.ask}`, request: request })))))),
|
|
97
|
-
react_1.React.createElement("section", { className: "trm-section" },
|
|
98
|
-
|
|
99
|
-
react_1.React.createElement(
|
|
100
|
-
|
|
103
|
+
react_1.React.createElement("section", { className: "trm-section" },
|
|
104
|
+
react_1.React.createElement("h3", null, (0, page_1.t)('roomsTitle')),
|
|
105
|
+
list === undefined ? (page_1.pi.ui.Skeleton ? (react_1.React.createElement(page_1.pi.ui.Skeleton, { rows: 3 })) : null) : sorted.length === 0 ? (react_1.React.createElement(page_1.pi.ui.Empty, { compact: true, title: (0, page_1.t)('emptyTitle'), hint: (0, page_1.t)('emptyListHint') })) : (react_1.React.createElement("ul", { className: "trm-rooms" }, sorted.map(room => (react_1.React.createElement(RoomRow, { key: room.id, room: room, active: room.id === opened, seen: seen, openMenu: openMenu })))))),
|
|
106
|
+
react_1.React.createElement(friends_view_1.FriendsEntry, null),
|
|
101
107
|
identity && (react_1.React.createElement("p", { className: "trm-me" },
|
|
102
108
|
(0, page_1.t)('meLine', { name: identity.name }),
|
|
103
109
|
react_1.React.createElement("button", { type: "button", className: "trm-link", onClick: () => void (0, dialogs_1.rename)() }, (0, page_1.t)('rename'))))));
|
|
@@ -110,36 +116,56 @@ function addMenu() {
|
|
|
110
116
|
{ key: 'link', label: (0, page_1.t)('joinByLink'), icon: (0, page_1.icon)('Link'), run: () => void (0, dialogs_1.pasteLink)() },
|
|
111
117
|
...(page_1.pi.ui.scanCode ? [{ key: 'scan', label: (0, page_1.t)('scan'), icon: (0, page_1.icon)('ScanLine'), run: () => void (0, dialogs_1.scanLink)() }] : []),
|
|
112
118
|
],
|
|
113
|
-
[{ key: '
|
|
119
|
+
[{ key: 'friend', label: (0, page_1.t)('addFriend'), icon: (0, page_1.icon)('UserPlus'), run: friends_view_1.openAddFriend }],
|
|
120
|
+
[
|
|
121
|
+
{ key: 'name', label: (0, page_1.t)('me'), icon: (0, page_1.icon)('Pencil'), run: () => void (0, dialogs_1.rename)() },
|
|
122
|
+
{ key: 'doubles', label: (0, double_i18n_1.dt)('log'), icon: (0, page_1.icon)('Bot'), run: () => void page_1.pi.ui.showView(doubles_view_1.DOUBLES_VIEW) },
|
|
123
|
+
],
|
|
114
124
|
];
|
|
115
125
|
}
|
|
116
126
|
/**
|
|
117
|
-
* The head of the page
|
|
118
|
-
* and the
|
|
127
|
+
* The head of the page, as the sidebar and the head of a channel side by side: on a computer, the title and the + over
|
|
128
|
+
* the list and the head of the room shown beside them; on a phone the title and the +, or, while a room is pushed over
|
|
129
|
+
* the list, that room's head (the head of the page then goes back, ui.Stack).
|
|
119
130
|
*/
|
|
120
131
|
function RoomsHead() {
|
|
121
132
|
const compact = (0, page_1.useCompact)();
|
|
122
133
|
const opened = (0, page_1.useOpened)();
|
|
123
134
|
const [menu, openMenu] = page_1.pi.ui.useContextMenu();
|
|
124
135
|
const Plus = (0, page_1.icon)('Plus');
|
|
125
|
-
|
|
136
|
+
const add = (0, page_1.rooms)() && (react_1.React.createElement("button", { type: "button", className: "trm-icon", title: (0, page_1.t)('add'), "aria-label": (0, page_1.t)('add'), onClick: event => openMenu(event, addMenu()) },
|
|
137
|
+
react_1.React.createElement(Plus, { size: 18 })));
|
|
138
|
+
if (compact && opened && (page_1.pi.ui.Stack || page_1.book.get().direct)) {
|
|
126
139
|
return (react_1.React.createElement("div", { className: "trm-head" },
|
|
127
|
-
react_1.React.createElement(room_view_1.
|
|
128
|
-
|
|
129
|
-
|
|
140
|
+
react_1.React.createElement(room_view_1.RoomHead, { room: opened })));
|
|
141
|
+
}
|
|
142
|
+
if (compact) {
|
|
143
|
+
return (react_1.React.createElement("div", { className: "trm-head trm-head-center" },
|
|
144
|
+
react_1.React.createElement("span", { className: "trm-head-title" }, (0, page_1.t)('roomsTitle')),
|
|
145
|
+
react_1.React.createElement("span", { className: "trm-head-end" }, add),
|
|
146
|
+
menu));
|
|
130
147
|
}
|
|
131
|
-
return (react_1.React.createElement("div", { className: "trm-head" },
|
|
132
|
-
react_1.React.createElement("
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
148
|
+
return (react_1.React.createElement("div", { className: "trm-head trm-head-split" },
|
|
149
|
+
react_1.React.createElement("div", { className: "trm-head-list" },
|
|
150
|
+
react_1.React.createElement("span", { className: "trm-head-title" }, (0, page_1.t)('roomsTitle')),
|
|
151
|
+
add),
|
|
152
|
+
react_1.React.createElement("div", { className: "trm-head-room" }, opened && react_1.React.createElement(room_view_1.RoomHead, { room: opened })),
|
|
136
153
|
menu));
|
|
137
154
|
}
|
|
138
155
|
/** Rooms, under Discover: the list and a room beside it, or on a phone the list and the room pushed over it. */
|
|
139
156
|
function RoomsPage() {
|
|
157
|
+
var _a, _b, _c;
|
|
140
158
|
const compact = (0, page_1.useCompact)();
|
|
141
159
|
const opened = (0, page_1.useOpened)();
|
|
142
160
|
const [menu, openMenu] = page_1.pi.ui.useContextMenu();
|
|
161
|
+
const { direct } = (0, page_1.useBook)();
|
|
162
|
+
const shownPage = (_c = (_b = (_a = page_1.pi.ui).useView) === null || _b === void 0 ? void 0 : _b.call(_a, page_1.ROOMS_VIEW)) === null || _c === void 0 ? void 0 : _c.shown;
|
|
163
|
+
// A room opened from elsewhere is left with the page: the page shows its list the next time.
|
|
164
|
+
react_1.React.useEffect(() => {
|
|
165
|
+
if (shownPage === false && direct) {
|
|
166
|
+
page_1.book.set({ opened: undefined, direct: false });
|
|
167
|
+
}
|
|
168
|
+
}, [shownPage, direct]);
|
|
143
169
|
// The room pushed over the list on a phone, kept while it slides away.
|
|
144
170
|
const [kept, setKept] = react_1.React.useState();
|
|
145
171
|
react_1.React.useEffect(() => {
|
|
@@ -156,7 +182,13 @@ function RoomsPage() {
|
|
|
156
182
|
if (!compact) {
|
|
157
183
|
return (react_1.React.createElement("div", { className: "trm-split" },
|
|
158
184
|
react_1.React.createElement("div", { className: "trm-split-list" }, list),
|
|
159
|
-
react_1.React.createElement("div", { className: "trm-split-room" }, opened ? react_1.React.createElement(room_view_1.RoomView, { key: opened.id, room: opened, head:
|
|
185
|
+
react_1.React.createElement("div", { className: "trm-split-room" }, opened ? react_1.React.createElement(room_view_1.RoomView, { key: opened.id, room: opened, head: false }) : react_1.React.createElement(page_1.pi.ui.Empty, { title: (0, page_1.t)('pickRoom') })),
|
|
186
|
+
menu));
|
|
187
|
+
}
|
|
188
|
+
if (opened && direct) {
|
|
189
|
+
// From the double's home: the room alone, the page's own back going home, as a chat opened from a list.
|
|
190
|
+
return (react_1.React.createElement(react_1.React.Fragment, null,
|
|
191
|
+
react_1.React.createElement(room_view_1.RoomView, { key: opened.id, room: opened, head: false }),
|
|
160
192
|
menu));
|
|
161
193
|
}
|
|
162
194
|
const Stack = page_1.pi.ui.Stack;
|