@protobase/ui 0.119.5 → 0.119.6
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/account/messages.d.ts +2 -2
- package/dist/activity-chart/messages.d.ts +2 -2
- package/dist/app/change-confirm/messages.d.ts +2 -2
- package/dist/app/charts/messages.d.ts +2 -2
- package/dist/app/confirm-sign-in-messages.d.ts +2 -2
- package/dist/app/conversation/message-composer.d.ts +11 -2
- package/dist/app/conversation/message-composer.js +10 -5
- package/dist/app/conversation/messages.d.ts +2 -2
- package/dist/app/conversation/thread-items.d.ts +2 -0
- package/dist/app/conversation/thread-items.js +2 -1
- package/dist/app/conversation-page/conversation-header.d.ts +15 -0
- package/dist/app/conversation-page/conversation-header.js +47 -0
- package/dist/app/conversation-page/conversation-message.d.ts +19 -0
- package/dist/app/conversation-page/conversation-message.js +35 -0
- package/dist/app/conversation-page/conversation-messages.d.ts +22 -0
- package/dist/app/conversation-page/conversation-messages.js +85 -0
- package/dist/app/conversation-page/conversation-page.d.ts +14 -0
- package/dist/app/conversation-page/conversation-page.js +69 -0
- package/dist/app/conversation-page/conversation-reads.d.ts +19 -0
- package/dist/app/conversation-page/conversation-reads.js +23 -0
- package/dist/app/conversation-page/conversation-rows.d.ts +43 -0
- package/dist/app/conversation-page/conversation-rows.js +53 -0
- package/dist/app/conversation-page/member-search.d.ts +11 -0
- package/dist/app/conversation-page/member-search.js +16 -0
- package/dist/app/conversation-page/members-title.d.ts +11 -0
- package/dist/app/conversation-page/members-title.js +34 -0
- package/dist/app/conversation-page/messages.d.ts +7 -0
- package/dist/app/conversation-page/messages.js +5 -0
- package/dist/app/conversation-page/use-new-line.d.ts +8 -0
- package/dist/app/conversation-page/use-new-line.js +18 -0
- package/dist/app/conversation-page/use-read-position.d.ts +26 -0
- package/dist/app/conversation-page/use-read-position.js +96 -0
- package/dist/app/create/messages.d.ts +2 -2
- package/dist/app/custom-section.d.ts +1 -1
- package/dist/app/delete/messages.d.ts +2 -2
- package/dist/app/displays/list-cards.d.ts +1 -1
- package/dist/app/displays/messages.d.ts +2 -2
- package/dist/app/embedded-list/messages.d.ts +2 -2
- package/dist/app/export/messages.d.ts +2 -2
- package/dist/app/field-messages.d.ts +2 -2
- package/dist/app/field-types/custom-step-container/messages.d.ts +2 -2
- package/dist/app/field-types/json/messages.d.ts +2 -2
- package/dist/app/field-types/runner-install/messages.d.ts +2 -2
- package/dist/app/field-types/widget-part.d.ts +1 -1
- package/dist/app/field-types/workflow/definition.d.ts +1 -1
- package/dist/app/field-types/workflow/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
- package/dist/app/file-viewers/messages.d.ts +2 -2
- package/dist/app/focus/messages.d.ts +2 -2
- package/dist/app/focus/record-focus-page.d.ts +3 -1
- package/dist/app/full-area-record.d.ts +8 -1
- package/dist/app/full-area-record.js +5 -1
- package/dist/app/gallery/messages.d.ts +2 -2
- package/dist/app/hand-order/messages.d.ts +2 -2
- package/dist/app/import/messages.d.ts +2 -2
- package/dist/app/list-edit/messages.d.ts +2 -2
- package/dist/app/list-messages.d.ts +2 -2
- package/dist/app/messages.d.ts +2 -2
- package/dist/app/meta-gate-messages.d.ts +2 -2
- package/dist/app/new-version/messages.d.ts +2 -2
- package/dist/app/pages/custom-boundary.d.ts +1 -1
- package/dist/app/pages/custom-chosen.d.ts +1 -1
- package/dist/app/pages/messages.d.ts +2 -2
- package/dist/app/pages/use-layout-data.d.ts +1 -1
- package/dist/app/record-chart/messages.d.ts +2 -2
- package/dist/app/record-messages.d.ts +2 -2
- package/dist/app/record-page.js +12 -1
- package/dist/app/record-row/messages.d.ts +2 -2
- package/dist/app/related-cards/messages.d.ts +2 -2
- package/dist/app/runtime/messages.d.ts +2 -2
- package/dist/app/saved/messages.d.ts +2 -2
- package/dist/app/saved/saved-list.d.ts +1 -1
- package/dist/app/searches/messages.d.ts +2 -2
- package/dist/app/titles/member-names.d.ts +10 -0
- package/dist/app/titles/member-names.js +14 -0
- package/dist/app/titles/record-title-of.d.ts +2 -1
- package/dist/app/titles/record-title-of.js +5 -2
- package/dist/app-shell/messages.d.ts +2 -2
- package/dist/assistant-dock/messages.d.ts +2 -2
- package/dist/auth/messages.d.ts +2 -2
- package/dist/calls/messages.d.ts +2 -2
- package/dist/chat/messages.d.ts +2 -2
- package/dist/data-grid/column-spec.d.ts +1 -1
- package/dist/data-grid/messages.d.ts +2 -2
- package/dist/filter-panel/messages.d.ts +2 -2
- package/dist/format/messages.d.ts +2 -2
- package/dist/forms/messages.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/invitations/messages.d.ts +2 -2
- package/dist/live/messages.d.ts +2 -2
- package/dist/locale/en.js +5 -1
- package/dist/locale/en.json.d.ts +4 -0
- package/dist/locale/messages.d.ts +8 -0
- package/dist/locale/nl.js +5 -1
- package/dist/locale/texts-gate.d.ts +1 -1
- package/dist/mailbox/messages.d.ts +2 -2
- package/dist/mocks/customers.d.ts +1 -1
- package/dist/mocks/invoices.d.ts +2 -2
- package/dist/mocks/orders.d.ts +2 -2
- package/dist/mocks/stockMoves.d.ts +1 -1
- package/dist/notifications/bell/messages.d.ts +2 -2
- package/dist/organizations/messages.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/plugins/before-sign-in.d.ts +1 -1
- package/dist/primitives/messages.d.ts +2 -2
- package/dist/shell/assets/{account-page-ve4BUXRh.js → account-page-BNtfocSb.js} +2 -2
- package/dist/shell/assets/app-Cfc4Mr5v.js +34 -0
- package/dist/shell/assets/{assistant-shell-KyMQvcsn.js → assistant-shell-BPyCi5kW.js} +2 -2
- package/dist/shell/assets/board-display-B41TuoWo.js +2 -0
- package/dist/shell/assets/calendar-display-63b_rkuL.js +2 -0
- package/dist/shell/assets/{call-rings-DUzC7UYz.js → call-rings-DBe0CIEa.js} +2 -2
- package/dist/shell/assets/{calls-drZLv0wW.js → calls-DwpgAZRF.js} +2 -2
- package/dist/shell/assets/{circle-alert-COV0WNyG.js → circle-alert-C9z9GbbN.js} +2 -2
- package/dist/shell/assets/{composed-page-CBJLOXNJ.js → composed-page-UB2y5c99.js} +2 -2
- package/dist/shell/assets/{composer-section-05sGMnpR.js → composer-section-CMoh0kSd.js} +2 -2
- package/dist/shell/assets/{connect-route-KBsPFlW4.js → connect-route-DRcj6Ruu.js} +2 -2
- package/dist/shell/assets/{copy-field-14Vmg95D.js → copy-field-MTVXamwX.js} +2 -2
- package/dist/shell/assets/create-route-CEfuAg9p.js +2 -0
- package/dist/shell/assets/{custom-step-container-field-D0cmhURR.js → custom-step-container-field-19o4BVGX.js} +4 -4
- package/dist/shell/assets/embedded-list-CWzU8ruS.js +3 -0
- package/dist/shell/assets/en-BLkfn3BD.js +2 -0
- package/dist/shell/assets/{export-dialog-Cz26bxgN.js → export-dialog-DHbFHvEa.js} +2 -2
- package/dist/shell/assets/export-worker-D0h27FKA.js +15 -0
- package/dist/shell/assets/{first-organization-page-C9ejBI4S.js → first-organization-page-Uc0es2bM.js} +2 -2
- package/dist/shell/assets/{graph-view-B3TE-xbG.js → graph-view-C_kd2p_w.js} +2 -2
- package/dist/shell/assets/{group-donut-BAyTgqYv.js → group-donut-w_BFP4Nu.js} +2 -2
- package/dist/shell/assets/{guest-call-page-CEcPrLXS.js → guest-call-page-D3gaOqIw.js} +3 -3
- package/dist/shell/assets/{html-viewer-DaeVR6PB.js → html-viewer-BrCIs_XH.js} +2 -2
- package/dist/shell/assets/{import-dialog-6I25EI49.js → import-dialog-DCcZNJgD.js} +2 -2
- package/dist/shell/assets/import-table-dialog-CWL7kUhP.js +2 -0
- package/dist/shell/assets/{index-CLyiQa16.js → index-CI4ggWZ9.js} +1 -1
- package/dist/shell/assets/invitations-page-CX-S9_g6.js +2 -0
- package/dist/shell/assets/{layout-grid-BTGS8Vdw.js → layout-grid-DK79NnII.js} +2 -2
- package/dist/shell/assets/{legend-item-DkIaBiD0.js → legend-item-IhWkwVRv.js} +2 -2
- package/dist/shell/assets/list-page-BJ7BwcjM.js +4 -0
- package/dist/shell/assets/{maplibre-JTZsxvhv.js → maplibre-XgWOYlHw.js} +2 -2
- package/dist/shell/assets/{markdown-content-DBVa63k_.js → markdown-content-oKb66g72.js} +2 -2
- package/dist/shell/assets/members-page-CB947V03.js +2 -0
- package/dist/shell/assets/{message-content-DzyGCvgQ.js → message-content-Cae9o0KB.js} +3 -3
- package/dist/shell/assets/messages-KWWs-PYa.js +2 -0
- package/dist/shell/assets/nl-Ozd1Th1I.js +2 -0
- package/dist/shell/assets/organization-page-Daa29-ya.js +2 -0
- package/dist/shell/assets/organizations-page-DFla8W4s.js +2 -0
- package/dist/shell/assets/parse-worker-BzKm_KiA.js +35 -0
- package/dist/shell/assets/{pending-invitation-row-DvqK-Lh5.js → pending-invitation-row-ufQDhiqy.js} +2 -2
- package/dist/shell/assets/{period-chart-Cn9bgVfB.js → period-chart-CDAaiRKi.js} +2 -2
- package/dist/shell/assets/{person-row-CSBZnBQc.js → person-row-DKpGU4lp.js} +2 -2
- package/dist/shell/assets/public-form-page-CWI8qeDR.js +2 -0
- package/dist/shell/assets/{record-lines-3DhkRSpH.js → record-lines-Dr5kvt8p.js} +2 -2
- package/dist/shell/assets/{record-map-D4rgUOwb.js → record-map-JMNMJGUZ.js} +2 -2
- package/dist/shell/assets/{record-opens-BSFQWqio.js → record-opens-iz29YMzQ.js} +2 -2
- package/dist/shell/assets/record-page-Db_9ytem.js +3 -0
- package/dist/shell/assets/{record-preview-Bdzkrw0H.js → record-preview-BCYfgSHu.js} +2 -2
- package/dist/shell/assets/{records-map-BfkBfva4.js → records-map-iNOkFYn9.js} +2 -2
- package/dist/shell/assets/render-node-D5xobkr6.js +3 -0
- package/dist/shell/assets/reorder-button-05HCaCaE.js +2 -0
- package/dist/shell/assets/{run-trace-view-Cd3DppYM.js → run-trace-view-BSrF6_Kg.js} +2 -2
- package/dist/shell/assets/{runner-install-field-CK3olYt5.js → runner-install-field-CgXWqOkx.js} +2 -2
- package/dist/shell/assets/{runtime-update-BNTp15Vo.js → runtime-update-BrM_FHvq.js} +2 -2
- package/dist/shell/assets/shared-protobase-ui-CtGq44Ix.js +1 -0
- package/dist/shell/assets/{sheet-source-DONoSDqu.js → sheet-source-BdUpw5K0.js} +3 -3
- package/dist/shell/assets/sign-in-policy-page-CavUG1RD.js +2 -0
- package/dist/shell/assets/start-block-queries-DrZpbWHB.js +2 -0
- package/dist/shell/assets/step-catalog-C49x4u-Y.js +2 -0
- package/dist/shell/assets/{step-panel-CoFQOZfZ.js → step-panel-CyZhEKcD.js} +2 -2
- package/dist/shell/assets/timeline-display-Bzg1mU4E.js +2 -0
- package/dist/shell/assets/{trash-BFH8OA7M.js → trash-CqUcV16Q.js} +2 -2
- package/dist/shell/assets/{update-set-CivHicWr.js → update-set-Da02tZfu.js} +2 -2
- package/dist/shell/assets/use-calendar-move-D93tEWOf.js +2 -0
- package/dist/shell/assets/{use-display-rows-7iLrRpz6.js → use-display-rows-BPgcYLdT.js} +2 -2
- package/dist/shell/assets/use-my-invitations-CPQ3DMUh.js +2 -0
- package/dist/shell/assets/{use-paged-search-CblCRsCd.js → use-paged-search-w0puq1Yl.js} +2 -2
- package/dist/shell/assets/{use-run-trace-vMzYYuXG.js → use-run-trace-BEM0bOMt.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-Dac4wyOA.js → use-workflow-page-DpBacPYs.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-Bi8u42jQ.js → use-workflow-types-Bc6SdoP6.js} +2 -2
- package/dist/shell/assets/{workflow-canvas-2owtFZNz.js → workflow-canvas-DpONgLJR.js} +4 -4
- package/dist/shell/assets/{workflow-field-Ct0HoH5Z.js → workflow-field-4i7H_hCR.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-oAKVQAgf.js → workflow-graph-editor-BP_eCoyB.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-C7ff1D9_.js → workflow-run-field-e0JGWLQd.js} +3 -3
- package/dist/shell/assets/workflow-status-field-RevEnRLG.js +2 -0
- package/dist/shell/assets/workflow-workbench-DY0czZaG.js +4 -0
- package/dist/shell/index.html +3 -3
- package/dist/shell/protobase.shell.json +2 -2
- package/dist/shell/protobase.sw.js +2 -2
- package/dist/shell-source-maps/assets/{account-page-ve4BUXRh.js.map → account-page-BNtfocSb.js.map} +1 -1
- package/dist/shell-source-maps/assets/app-Cfc4Mr5v.js.map +1 -0
- package/dist/shell-source-maps/assets/{assistant-shell-KyMQvcsn.js.map → assistant-shell-BPyCi5kW.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-BaMLmYUJ.js.map → board-display-B41TuoWo.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-CzQPcItV.js.map → calendar-display-63b_rkuL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-DUzC7UYz.js.map → call-rings-DBe0CIEa.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-drZLv0wW.js.map → calls-DwpgAZRF.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-COV0WNyG.js.map → circle-alert-C9z9GbbN.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-CBJLOXNJ.js.map → composed-page-UB2y5c99.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-05sGMnpR.js.map → composer-section-CMoh0kSd.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-KBsPFlW4.js.map → connect-route-DRcj6Ruu.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-14Vmg95D.js.map → copy-field-MTVXamwX.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-DAprAV2h.js.map → create-route-CEfuAg9p.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-D0cmhURR.js.map → custom-step-container-field-19o4BVGX.js.map} +1 -1
- package/dist/shell-source-maps/assets/{embedded-list-Ra3OLUh6.js.map → embedded-list-CWzU8ruS.js.map} +1 -1
- package/dist/shell-source-maps/assets/en-BLkfn3BD.js.map +1 -0
- package/dist/shell-source-maps/assets/{export-dialog-Cz26bxgN.js.map → export-dialog-DHbFHvEa.js.map} +1 -1
- package/dist/shell-source-maps/assets/export-worker-D0h27FKA.js.map +1 -0
- package/dist/shell-source-maps/assets/{first-organization-page-C9ejBI4S.js.map → first-organization-page-Uc0es2bM.js.map} +1 -1
- package/dist/shell-source-maps/assets/{graph-view-B3TE-xbG.js.map → graph-view-C_kd2p_w.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-BAyTgqYv.js.map → group-donut-w_BFP4Nu.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-CEcPrLXS.js.map → guest-call-page-D3gaOqIw.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-DaeVR6PB.js.map → html-viewer-BrCIs_XH.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-6I25EI49.js.map → import-dialog-DCcZNJgD.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-COsPNket.js.map → import-table-dialog-CWL7kUhP.js.map} +1 -1
- package/dist/shell-source-maps/assets/{invitations-page-TBz_-ekD.js.map → invitations-page-CX-S9_g6.js.map} +1 -1
- package/dist/shell-source-maps/assets/{layout-grid-BTGS8Vdw.js.map → layout-grid-DK79NnII.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item-DkIaBiD0.js.map → legend-item-IhWkwVRv.js.map} +1 -1
- package/dist/shell-source-maps/assets/{list-page-Dpq9M7YO.js.map → list-page-BJ7BwcjM.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-JTZsxvhv.js.map → maplibre-XgWOYlHw.js.map} +1 -1
- package/dist/shell-source-maps/assets/{markdown-content-DBVa63k_.js.map → markdown-content-oKb66g72.js.map} +1 -1
- package/dist/shell-source-maps/assets/{members-page-CHRY9H9W.js.map → members-page-CB947V03.js.map} +1 -1
- package/dist/shell-source-maps/assets/{message-content-DzyGCvgQ.js.map → message-content-Cae9o0KB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{messages-BwcGcxFR.js.map → messages-KWWs-PYa.js.map} +1 -1
- package/dist/shell-source-maps/assets/nl-Ozd1Th1I.js.map +1 -0
- package/dist/shell-source-maps/assets/{organization-page-BE182e_K.js.map → organization-page-Daa29-ya.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organizations-page-DaN6zQZj.js.map → organizations-page-DFla8W4s.js.map} +1 -1
- package/dist/shell-source-maps/assets/parse-worker-BzKm_KiA.js.map +1 -0
- package/dist/shell-source-maps/assets/{pending-invitation-row-DvqK-Lh5.js.map → pending-invitation-row-ufQDhiqy.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-Cn9bgVfB.js.map → period-chart-CDAaiRKi.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-CSBZnBQc.js.map → person-row-DKpGU4lp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-CaNVr6BS.js.map → public-form-page-CWI8qeDR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-3DhkRSpH.js.map → record-lines-Dr5kvt8p.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-D4rgUOwb.js.map → record-map-JMNMJGUZ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-BSFQWqio.js.map → record-opens-iz29YMzQ.js.map} +1 -1
- package/dist/shell-source-maps/assets/record-page-Db_9ytem.js.map +1 -0
- package/dist/shell-source-maps/assets/{record-preview-Bdzkrw0H.js.map → record-preview-BCYfgSHu.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-BfkBfva4.js.map → records-map-iNOkFYn9.js.map} +1 -1
- package/dist/shell-source-maps/assets/render-node-D5xobkr6.js.map +1 -0
- package/dist/shell-source-maps/assets/{reorder-button-pGaEX5DI.js.map → reorder-button-05HCaCaE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-Cd3DppYM.js.map → run-trace-view-BSrF6_Kg.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-CK3olYt5.js.map → runner-install-field-CgXWqOkx.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-BNTp15Vo.js.map → runtime-update-BrM_FHvq.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sheet-source-DONoSDqu.js.map → sheet-source-BdUpw5K0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-C4MEEpwM.js.map → sign-in-policy-page-CavUG1RD.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-B7qJvkWD.js.map → start-block-queries-DrZpbWHB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-CgPcuEu_.js.map → step-catalog-C49x4u-Y.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-CoFQOZfZ.js.map → step-panel-CyZhEKcD.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-F8qMrey9.js.map → timeline-display-Bzg1mU4E.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-BFH8OA7M.js.map → trash-CqUcV16Q.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-CivHicWr.js.map → update-set-Da02tZfu.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-CezBW0KE.js.map → use-calendar-move-D93tEWOf.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-7iLrRpz6.js.map → use-display-rows-BPgcYLdT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-my-invitations-B7w0Q5kk.js.map → use-my-invitations-CPQ3DMUh.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-paged-search-CblCRsCd.js.map → use-paged-search-w0puq1Yl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-vMzYYuXG.js.map → use-run-trace-BEM0bOMt.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-Dac4wyOA.js.map → use-workflow-page-DpBacPYs.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-Bi8u42jQ.js.map → use-workflow-types-Bc6SdoP6.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-2owtFZNz.js.map → workflow-canvas-DpONgLJR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-Ct0HoH5Z.js.map → workflow-field-4i7H_hCR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-oAKVQAgf.js.map → workflow-graph-editor-BP_eCoyB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-C7ff1D9_.js.map → workflow-run-field-e0JGWLQd.js.map} +1 -1
- package/dist/shell-source-maps/assets/workflow-status-field-RevEnRLG.js.map +1 -0
- package/dist/shell-source-maps/assets/{workflow-workbench-BCsEjQVw.js.map → workflow-workbench-DY0czZaG.js.map} +1 -1
- package/dist/status/messages.d.ts +2 -2
- package/dist/users/messages.d.ts +2 -2
- package/package.json +5 -5
- package/dist/shell/assets/app-DU-Bny4k.js +0 -34
- package/dist/shell/assets/board-display-BaMLmYUJ.js +0 -2
- package/dist/shell/assets/calendar-display-CzQPcItV.js +0 -2
- package/dist/shell/assets/create-route-DAprAV2h.js +0 -2
- package/dist/shell/assets/embedded-list-Ra3OLUh6.js +0 -3
- package/dist/shell/assets/en-dURxhEht.js +0 -2
- package/dist/shell/assets/export-worker-DfIG4xQy.js +0 -15
- package/dist/shell/assets/import-table-dialog-COsPNket.js +0 -2
- package/dist/shell/assets/invitations-page-TBz_-ekD.js +0 -2
- package/dist/shell/assets/list-page-Dpq9M7YO.js +0 -4
- package/dist/shell/assets/members-page-CHRY9H9W.js +0 -2
- package/dist/shell/assets/messages-BwcGcxFR.js +0 -2
- package/dist/shell/assets/nl-B0dpIbbz.js +0 -2
- package/dist/shell/assets/organization-page-BE182e_K.js +0 -2
- package/dist/shell/assets/organizations-page-DaN6zQZj.js +0 -2
- package/dist/shell/assets/parse-worker-VaelBbE0.js +0 -35
- package/dist/shell/assets/public-form-page-CaNVr6BS.js +0 -2
- package/dist/shell/assets/record-page-Cbx9gqMY.js +0 -3
- package/dist/shell/assets/render-node-ChsAMZVA.js +0 -3
- package/dist/shell/assets/reorder-button-pGaEX5DI.js +0 -2
- package/dist/shell/assets/shared-protobase-ui-gnK6D3Al.js +0 -1
- package/dist/shell/assets/sign-in-policy-page-C4MEEpwM.js +0 -2
- package/dist/shell/assets/start-block-queries-B7qJvkWD.js +0 -2
- package/dist/shell/assets/step-catalog-CgPcuEu_.js +0 -2
- package/dist/shell/assets/timeline-display-F8qMrey9.js +0 -2
- package/dist/shell/assets/use-calendar-move-CezBW0KE.js +0 -2
- package/dist/shell/assets/use-my-invitations-B7w0Q5kk.js +0 -2
- package/dist/shell/assets/workflow-status-field-iHUr4FZM.js +0 -2
- package/dist/shell/assets/workflow-workbench-BCsEjQVw.js +0 -4
- package/dist/shell-source-maps/assets/app-DU-Bny4k.js.map +0 -1
- package/dist/shell-source-maps/assets/en-dURxhEht.js.map +0 -1
- package/dist/shell-source-maps/assets/export-worker-DfIG4xQy.js.map +0 -1
- package/dist/shell-source-maps/assets/nl-B0dpIbbz.js.map +0 -1
- package/dist/shell-source-maps/assets/parse-worker-VaelBbE0.js.map +0 -1
- package/dist/shell-source-maps/assets/record-page-Cbx9gqMY.js.map +0 -1
- package/dist/shell-source-maps/assets/render-node-ChsAMZVA.js.map +0 -1
- package/dist/shell-source-maps/assets/workflow-status-field-iHUr4FZM.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/account/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "email" | "connections" | "password" | "passkey" | "twoFactor" | "staffAccess" | "platformSignIn" | "required" | "download" | "staff" | "as" | "account" | "mailbox" | "noAccount" | "noAccountDescription" | "signInPolicy" | "couldNotReadMethods" | "couldNotReadProfile" | "profile" | "profileDescription" | "changeName" | "changeNameDescription" | "changeEmail" | "changeEmailDescription" | "newEmail" | "sendCode" | "codeSentTo" | "code" | "otherAddress" | "theProvider" | "loading" | "backupCodes" | "copied" | "copy" | "cancel" | "save" | "name" | "yourPassword" | "passwordIsSet" | "passwordNotSet" | "passwordForbidden" | "passwordStaff" | "passwordSaved" | "changePassword" | "setPassword" | "currentPassword" | "newPassword" | "repeatPassword" | "changeSignsOutOthers" | "atLeast" | "useAtLeast" | "passwordTooLong" | "passwordsDiffer" | "continue" | "on" | "off" | "optional" | "passkeys" | "passkeysAllowed" | "passkeysRequired" | "passkeysForbidden" | "addedOn" | "addedEarlier" | "synced" | "oneDevice" | "rename" | "remove" | "keepLastPasskey" | "addPasskey" | "confirmedAddPasskey" | "renamePasskey" | "renamePasskeyDescription" | "removePasskey" | "removePasskeyDescription" | "thisPasskey" | "connectedAccounts" | "connectedAccountsDescription" | "connected" | "connect" | "connectAgain" | "mailboxDescription" | "fromAddresses" | "fromAddressesDescription" | "couldNotReadFromAddresses" | "mailboxOwnAddress" | "makeDefault" | "default" | "edit" | "ownSignature" | "genericSignature" | "addFromAddress" | "addFromAddressDescription" | "changeFromAddressDescription" | "addAddress" | "fromAddress" | "fromAddressPlaceholder" | "fromName" | "fromNamePlaceholder" | "defaultFromAddress" | "signature" | "signaturePlaceholder" | "removeFromAddress" | "removeFromAddressDescription" | "connectionsDescription" | "connectedOn" | "connectionNeedsSignIn" | "connectionUsedBy" | "disconnect" | "disconnectTitle" | "disconnectDescription" | "disconnectWholeGrant" | "disconnectedRevoked" | "disconnectedQueued" | "disconnectedNotRevoked" | "stopped" | "ended" | "signedInUntil" | "devices" | "devicesDescription" | "couldNotReadDevices" | "noDevices" | "thisDevice" | "browserOn" | "aBrowserOn" | "unknownDevice" | "staffOf" | "signedInFromUntil" | "signOut" | "signOutDevice" | "signOutDeviceDescription" | "signOutLinkedDeviceDescription" | "deviceThrough" | "linkedOn" | "signOutOthers" | "signOutOthersTitle" | "signOutOthersDescription" | "staffSignIns" | "staffSignInsDescription" | "noStaffSignIns" | "qrCode" | "twoFactorAllowed" | "twoFactorRequired" | "twoFactorForbidden" | "twoFactorOnWithApp" | "twoFactorOnWithAppOrMail" | "twoFactorOnWithMail" | "turnOn" | "turnOff" | "addAuthenticator" | "newBackupCodes" | "twoFactorIsRequired" | "turnOffTitle" | "turnOffDescription" | "newCodesTitle" | "newCodesDescription" | "makeNewCodes" | "yourNewCodes" | "keepCodesSafe" | "savedCodes" | "authenticatorApp" | "authenticatorAppDescription" | "emailedCode" | "emailedCodeDescription" | "twoFactorIsOn" | "scanCode" | "cannotScan" | "codeFromApp" | "secondStep" | "passwordDescription" | "emailedSignInCode" | "emailedSignInCodeDescription" | "passkeysPolicyDescription" | "twoFactorPolicyDescription" | "staffAccessDescription" | "emailThePerson" | "platformSignInDescription" | "platformSignInWith" | "codeNeedsMail" | "passwordStaysOn" | "staffNeedsMail" | "platformOff" | "appliesAs" | "lastSaved" | "lastSavedBy" | "neverChanged" | "reset" | "couldNotReadStaffSignIns" | "couldNotReadPolicy" | "policySaved" | "policySubtitle" | "mcpAddress" | "mcpAddressDescription" | "copyMcpAddress" | "accessTokens" | "accessTokensDescription" | "couldNotReadAccessTokens" | "noAccessTokens" | "newAccessToken" | "newAccessTokenDescription" | "accessTokenNamePlaceholder" | "accessTokenExpiry" | "expiresIn30Days" | "expiresIn90Days" | "expiresInAYear" | "neverExpires" | "createAccessToken" | "confirmedCreateAccessToken" | "accessTokenCreated" | "accessTokenCreatedDescription" | "copyAccessToken" | "noAnswerFromServer" | "copyRefused" | "done" | "createdOn" | "expiresOn" | "expiredOn" | "lastUsedOn" | "notUsedYet" | "actsAs" | "actsAsIn" | "revoke" | "revokeAccessToken" | "revokeAccessTokenDescription" | "addToClaude" | "deleteAccount" | "deleteAccountDescription" | "deleteAccountStaff" | "deleteAccountQuestion" | "deleteAccountWarning" | "deleteAccountPassword" | "deleteAccountConfirm" | "deleteAccountLastAdmin" | "deleteAccountLocked", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "email" | "connections" | "password" | "passkey" | "twoFactor" | "staffAccess" | "platformSignIn" | "required" | "download" | "staff" | "as" | "account" | "mailbox" | "noAccount" | "noAccountDescription" | "signInPolicy" | "couldNotReadMethods" | "couldNotReadProfile" | "profile" | "profileDescription" | "changeName" | "changeNameDescription" | "changeEmail" | "changeEmailDescription" | "newEmail" | "sendCode" | "codeSentTo" | "code" | "otherAddress" | "theProvider" | "loading" | "backupCodes" | "copied" | "copy" | "cancel" | "save" | "name" | "yourPassword" | "passwordIsSet" | "passwordNotSet" | "passwordForbidden" | "passwordStaff" | "passwordSaved" | "changePassword" | "setPassword" | "currentPassword" | "newPassword" | "repeatPassword" | "changeSignsOutOthers" | "atLeast" | "useAtLeast" | "passwordTooLong" | "passwordsDiffer" | "continue" | "on" | "off" | "optional" | "passkeys" | "passkeysAllowed" | "passkeysRequired" | "passkeysForbidden" | "addedOn" | "addedEarlier" | "synced" | "oneDevice" | "rename" | "remove" | "keepLastPasskey" | "addPasskey" | "confirmedAddPasskey" | "renamePasskey" | "renamePasskeyDescription" | "removePasskey" | "removePasskeyDescription" | "thisPasskey" | "connectedAccounts" | "connectedAccountsDescription" | "connected" | "connect" | "connectAgain" | "mailboxDescription" | "fromAddresses" | "fromAddressesDescription" | "couldNotReadFromAddresses" | "mailboxOwnAddress" | "makeDefault" | "default" | "edit" | "ownSignature" | "genericSignature" | "addFromAddress" | "addFromAddressDescription" | "changeFromAddressDescription" | "addAddress" | "fromAddress" | "fromAddressPlaceholder" | "fromName" | "fromNamePlaceholder" | "defaultFromAddress" | "signature" | "signaturePlaceholder" | "removeFromAddress" | "removeFromAddressDescription" | "connectionsDescription" | "connectedOn" | "connectionNeedsSignIn" | "connectionUsedBy" | "disconnect" | "disconnectTitle" | "disconnectDescription" | "disconnectWholeGrant" | "disconnectedRevoked" | "disconnectedQueued" | "disconnectedNotRevoked" | "stopped" | "ended" | "signedInUntil" | "devices" | "devicesDescription" | "couldNotReadDevices" | "noDevices" | "thisDevice" | "browserOn" | "aBrowserOn" | "unknownDevice" | "staffOf" | "signedInFromUntil" | "signOut" | "signOutDevice" | "signOutDeviceDescription" | "signOutLinkedDeviceDescription" | "deviceThrough" | "linkedOn" | "signOutOthers" | "signOutOthersTitle" | "signOutOthersDescription" | "staffSignIns" | "staffSignInsDescription" | "noStaffSignIns" | "qrCode" | "twoFactorAllowed" | "twoFactorRequired" | "twoFactorForbidden" | "twoFactorOnWithApp" | "twoFactorOnWithAppOrMail" | "twoFactorOnWithMail" | "turnOn" | "turnOff" | "addAuthenticator" | "newBackupCodes" | "twoFactorIsRequired" | "turnOffTitle" | "turnOffDescription" | "newCodesTitle" | "newCodesDescription" | "makeNewCodes" | "yourNewCodes" | "keepCodesSafe" | "savedCodes" | "authenticatorApp" | "authenticatorAppDescription" | "emailedCode" | "emailedCodeDescription" | "twoFactorIsOn" | "scanCode" | "cannotScan" | "codeFromApp" | "secondStep" | "passwordDescription" | "emailedSignInCode" | "emailedSignInCodeDescription" | "passkeysPolicyDescription" | "twoFactorPolicyDescription" | "staffAccessDescription" | "emailThePerson" | "platformSignInDescription" | "platformSignInWith" | "codeNeedsMail" | "passwordStaysOn" | "staffNeedsMail" | "platformOff" | "appliesAs" | "lastSaved" | "lastSavedBy" | "neverChanged" | "reset" | "couldNotReadStaffSignIns" | "couldNotReadPolicy" | "policySaved" | "policySubtitle" | "mcpAddress" | "mcpAddressDescription" | "copyMcpAddress" | "accessTokens" | "accessTokensDescription" | "couldNotReadAccessTokens" | "noAccessTokens" | "newAccessToken" | "newAccessTokenDescription" | "accessTokenNamePlaceholder" | "accessTokenExpiry" | "expiresIn30Days" | "expiresIn90Days" | "expiresInAYear" | "neverExpires" | "createAccessToken" | "confirmedCreateAccessToken" | "accessTokenCreated" | "accessTokenCreatedDescription" | "copyAccessToken" | "noAnswerFromServer" | "copyRefused" | "done" | "createdOn" | "expiresOn" | "expiredOn" | "lastUsedOn" | "notUsedYet" | "actsAs" | "actsAsIn" | "revoke" | "revokeAccessToken" | "revokeAccessTokenDescription" | "addToClaude" | "deleteAccount" | "deleteAccountDescription" | "deleteAccountStaff" | "deleteAccountQuestion" | "deleteAccountWarning" | "deleteAccountPassword" | "deleteAccountConfirm" | "deleteAccountLastAdmin" | "deleteAccountLocked", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/activity-chart/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "day" | "week" | "couldNotLoad", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "day" | "week" | "couldNotLoad", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/change-confirm/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "title" | "
|
|
5
|
-
rich(id: "title" | "
|
|
4
|
+
(id: "title" | "change" | "cancel", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "title" | "change" | "cancel", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/charts/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "count" | "sum" | "
|
|
5
|
-
rich(id: "count" | "sum" | "
|
|
4
|
+
(id: "count" | "sum" | "couldNotLoad" | "average" | "maximum" | "nothingYet" | "yes" | "no" | "today" | "records" | "notSet" | "other" | "toToday" | "period" | "chartKeys", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "count" | "sum" | "couldNotLoad" | "average" | "maximum" | "nothingYet" | "yes" | "no" | "today" | "records" | "notSet" | "other" | "toToday" | "period" | "chartKeys", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/app/confirm-sign-in-messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "password" | "emailCode" | "
|
|
5
|
-
rich(id: "password" | "emailCode" | "
|
|
4
|
+
(id: "password" | "emailCode" | "emailedCode" | "confirmTitle" | "confirmWhy" | "confirmWhyChange" | "usePasskey" | "authenticatorCode" | "confirm" | "codeSent" | "emailNewCode" | "nothingToConfirmWith", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "password" | "emailCode" | "emailedCode" | "confirmTitle" | "confirmWhy" | "confirmWhyChange" | "usePasskey" | "authenticatorCode" | "confirm" | "codeSent" | "emailNewCode" | "nothingToConfirmWith", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PeopleSearch } from "../../mentions/use-people-search.js";
|
|
2
|
+
import "../../mentions/index.js";
|
|
1
3
|
//#region src/app/conversation/message-composer.d.ts
|
|
2
4
|
export type MessageComposerProps = {
|
|
3
5
|
resource: string;
|
|
@@ -6,7 +8,14 @@ export type MessageComposerProps = {
|
|
|
6
8
|
/** Values sent with every message, such as the record's key in its relation. */
|
|
7
9
|
values?: Record<string, unknown>;
|
|
8
10
|
placeholder?: string;
|
|
11
|
+
/** Finds the people `@` lists; without it, `@` is plain text. */
|
|
12
|
+
searchPeople?: PeopleSearch;
|
|
13
|
+
/** The JSON field the ids of the people a message mentions go in. */
|
|
14
|
+
mentions?: string;
|
|
9
15
|
};
|
|
10
|
-
/**
|
|
11
|
-
|
|
16
|
+
/**
|
|
17
|
+
* A box that sends a message: each send creates a record of `resource` with the text in `field`, the ids of the people
|
|
18
|
+
* it mentions in `mentions` and the `values`, for a user who may create one.
|
|
19
|
+
*/
|
|
20
|
+
export declare const MessageComposer: ({ resource, field, values, placeholder, searchPeople, mentions }: MessageComposerProps) => import("react").JSX.Element | null;
|
|
12
21
|
//#endregion
|
|
@@ -8,8 +8,11 @@ import { text } from "./messages.js";
|
|
|
8
8
|
import { useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/app/conversation/message-composer.tsx
|
|
11
|
-
/**
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* A box that sends a message: each send creates a record of `resource` with the text in `field`, the ids of the people
|
|
13
|
+
* it mentions in `mentions` and the `values`, for a user who may create one.
|
|
14
|
+
*/
|
|
15
|
+
const MessageComposer = ({ resource, field, values, placeholder, searchPeople, mentions }) => {
|
|
13
16
|
const { resources } = useAdminMeta();
|
|
14
17
|
const client = useClient();
|
|
15
18
|
const refresh = useRefreshResource();
|
|
@@ -17,12 +20,13 @@ const MessageComposer = ({ resource, field, values, placeholder }) => {
|
|
|
17
20
|
const [sending, setSending] = useState(false);
|
|
18
21
|
const [failure, setFailure] = useState();
|
|
19
22
|
if (!resources[resource] || !can(permissions, "create")) return null;
|
|
20
|
-
const send = async (message) => {
|
|
23
|
+
const send = async (message, mentioned) => {
|
|
21
24
|
setSending(true);
|
|
22
25
|
setFailure(void 0);
|
|
23
26
|
const sent = await client.create(resource, {
|
|
24
27
|
...values,
|
|
25
|
-
[field]: message
|
|
28
|
+
[field]: message,
|
|
29
|
+
...mentions !== void 0 && { [mentions]: mentioned }
|
|
26
30
|
}).then(() => true, (error) => {
|
|
27
31
|
setFailure(error);
|
|
28
32
|
return false;
|
|
@@ -39,7 +43,8 @@ const MessageComposer = ({ resource, field, values, placeholder }) => {
|
|
|
39
43
|
}), /* @__PURE__ */ jsx(Composer, {
|
|
40
44
|
onSend: send,
|
|
41
45
|
busy: sending,
|
|
42
|
-
placeholder
|
|
46
|
+
placeholder,
|
|
47
|
+
searchPeople
|
|
43
48
|
})]
|
|
44
49
|
});
|
|
45
50
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/conversation/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "couldNotLoad" | "notSent" | "noMessages" | "loadingMessages" | "callInput" | "callResult" | "callError" | "couldNotLoadCalls", values?: Record<string, MessageValue>): string;
|
|
5
|
-
rich(id: "couldNotLoad" | "notSent" | "noMessages" | "loadingMessages" | "callInput" | "callResult" | "callError" | "couldNotLoadCalls", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
4
|
+
(id: "couldNotLoad" | "details" | "notSent" | "noMessages" | "loadingMessages" | "callInput" | "callResult" | "callError" | "couldNotLoadCalls" | "edited" | "editedAt" | "positionNotSaved", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "couldNotLoad" | "details" | "notSent" | "noMessages" | "loadingMessages" | "callInput" | "callResult" | "callError" | "couldNotLoadCalls" | "edited" | "editedAt" | "positionNotSaved", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -35,6 +35,8 @@ export type ThreadItem = {
|
|
|
35
35
|
status?: string;
|
|
36
36
|
continued: boolean;
|
|
37
37
|
} | ToolCall;
|
|
38
|
+
/** Who sent a message: a relation comes named as `{ id, name }` (`withLabels`); any other sender is its own name. */
|
|
39
|
+
export declare const authorOf: (value: unknown) => ChatAuthor;
|
|
38
40
|
/**
|
|
39
41
|
* The messages and tool calls of a thread, read newest first, as its lines oldest first: a day divider above each day's
|
|
40
42
|
* first item, and a message that follows its sender's on the same day, with no tool call between, drawn as continued.
|
|
@@ -6,6 +6,7 @@ const messageRows = (rows, time) => rows.map((row) => ({
|
|
|
6
6
|
row,
|
|
7
7
|
time: typeof row[time] === "string" ? row[time] : void 0
|
|
8
8
|
}));
|
|
9
|
+
/** Who sent a message: a relation comes named as `{ id, name }` (`withLabels`); any other sender is its own name. */
|
|
9
10
|
const authorOf = (value) => {
|
|
10
11
|
if (typeof value === "object" && value !== null && "id" in value) {
|
|
11
12
|
const { id, name } = value;
|
|
@@ -63,4 +64,4 @@ const threadItems = (newestFirst, { key, sender, text, status }, now = Date.now(
|
|
|
63
64
|
return items;
|
|
64
65
|
};
|
|
65
66
|
//#endregion
|
|
66
|
-
export { messageRows, threadItems };
|
|
67
|
+
export { authorOf, messageRows, threadItems };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LayoutRecord } from "../pages/record-scope.js";
|
|
2
|
+
import { ConversationPageModel } from "@protobase/schema";
|
|
3
|
+
//#region src/app/conversation-page/conversation-header.d.ts
|
|
4
|
+
type Props = {
|
|
5
|
+
page: ConversationPageModel;
|
|
6
|
+
scope: LayoutRecord;
|
|
7
|
+
title: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The slim row over a conversation: the record's title, which the top bar repeats at mobile width and so shows only on
|
|
11
|
+
* a wider screen, or with `members` the other people in it with their status, shown at every width; its `subtitle`
|
|
12
|
+
* beside it; and a link to the record's standard page, where its details, Edit and Delete are.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ConversationHeader: ({ page, scope, title }: Props) => import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { cn } from "../../lib/cn.js";
|
|
2
|
+
import { buttonClass } from "../../primitives/button.js";
|
|
3
|
+
import { AppLink } from "../use-app-address.js";
|
|
4
|
+
import { MembersTitle } from "./members-title.js";
|
|
5
|
+
import { text } from "./messages.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/app/conversation-page/conversation-header.tsx
|
|
8
|
+
/**
|
|
9
|
+
* The slim row over a conversation: the record's title, which the top bar repeats at mobile width and so shows only on
|
|
10
|
+
* a wider screen, or with `members` the other people in it with their status, shown at every width; its `subtitle`
|
|
11
|
+
* beside it; and a link to the record's standard page, where its details, Edit and Delete are.
|
|
12
|
+
*/
|
|
13
|
+
const ConversationHeader = ({ page, scope, title }) => {
|
|
14
|
+
const subtitle = page.subtitle === void 0 ? void 0 : scope.record[page.subtitle];
|
|
15
|
+
const members = page.members !== void 0;
|
|
16
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
17
|
+
className: "flex h-12 shrink-0 items-center gap-3 border-b border-border bg-background px-4",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx("h1", {
|
|
20
|
+
className: cn(members ? "flex" : "hidden md:flex", "min-w-0 items-center gap-2 truncate font-medium"),
|
|
21
|
+
children: members ? /* @__PURE__ */ jsx(MembersTitle, {
|
|
22
|
+
value: scope.record[page.members],
|
|
23
|
+
fallback: title
|
|
24
|
+
}) : title
|
|
25
|
+
}),
|
|
26
|
+
typeof subtitle === "string" && subtitle !== "" && /* @__PURE__ */ jsx("p", {
|
|
27
|
+
className: "min-w-0 flex-1 truncate text-sm text-muted-foreground",
|
|
28
|
+
children: subtitle
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ jsx(AppLink, {
|
|
31
|
+
to: {
|
|
32
|
+
kind: "record",
|
|
33
|
+
resource: scope.model.name,
|
|
34
|
+
key: scope.key,
|
|
35
|
+
standard: true
|
|
36
|
+
},
|
|
37
|
+
className: cn(buttonClass({
|
|
38
|
+
variant: "ghost",
|
|
39
|
+
size: "sm"
|
|
40
|
+
}), "ml-auto shrink-0"),
|
|
41
|
+
children: text("details")
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { ConversationHeader };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ChatAuthor } from "../../chat/chat-message.js";
|
|
2
|
+
import "../../chat/index.js";
|
|
3
|
+
import { Member } from "../../people/use-members.js";
|
|
4
|
+
import { ConversationPageModel } from "@protobase/schema";
|
|
5
|
+
//#region src/app/conversation-page/conversation-message.d.ts
|
|
6
|
+
type Props = {
|
|
7
|
+
page: ConversationPageModel;
|
|
8
|
+
row: Record<string, unknown>;
|
|
9
|
+
author: ChatAuthor;
|
|
10
|
+
time: string | undefined;
|
|
11
|
+
continued: boolean;
|
|
12
|
+
member: (id: string) => Member | undefined;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* One message under its author, named after the organization's member with their id when there is one, its text with
|
|
16
|
+
* the people it mentions picked out as `MentionedText` does, and "(edited)" under it once changed.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ConversationMessage: ({ page, row, author, time, continued, member }: Props) => import("react").JSX.Element;
|
|
19
|
+
//#endregion
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { formatDateTime } from "../../format/date.js";
|
|
2
|
+
import { ChatMessage } from "../../chat/chat-message.js";
|
|
3
|
+
import { MentionedText } from "../../mentions/mentioned-text.js";
|
|
4
|
+
import { text } from "./messages.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/app/conversation-page/conversation-message.tsx
|
|
7
|
+
const idsOf = (value) => Array.isArray(value) ? value.filter((id) => typeof id === "string") : [];
|
|
8
|
+
/**
|
|
9
|
+
* One message under its author, named after the organization's member with their id when there is one, its text with
|
|
10
|
+
* the people it mentions picked out as `MentionedText` does, and "(edited)" under it once changed.
|
|
11
|
+
*/
|
|
12
|
+
const ConversationMessage = ({ page, row, author, time, continued, member }) => {
|
|
13
|
+
const body = row[page.text] == null ? "" : String(row[page.text]);
|
|
14
|
+
const mentioned = page.mentions === void 0 ? [] : idsOf(row[page.mentions]).map((id) => ({ name: member(id)?.name }));
|
|
15
|
+
const edited = page.edited === void 0 ? void 0 : row[page.edited];
|
|
16
|
+
const footer = typeof edited === "string" && /* @__PURE__ */ jsx("span", {
|
|
17
|
+
title: text("editedAt", { time: formatDateTime(Date.parse(edited)) }),
|
|
18
|
+
children: text("edited")
|
|
19
|
+
});
|
|
20
|
+
return /* @__PURE__ */ jsx(ChatMessage, {
|
|
21
|
+
author: {
|
|
22
|
+
id: author.id,
|
|
23
|
+
name: member(author.id)?.name ?? author.name
|
|
24
|
+
},
|
|
25
|
+
time,
|
|
26
|
+
continued,
|
|
27
|
+
footer,
|
|
28
|
+
children: /* @__PURE__ */ jsx(MentionedText, {
|
|
29
|
+
text: body,
|
|
30
|
+
mentions: mentioned
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { ConversationMessage };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ConversationPageModel, ResourceModel } from "@protobase/schema";
|
|
2
|
+
//#region src/app/conversation-page/conversation-messages.d.ts
|
|
3
|
+
type Props = {
|
|
4
|
+
page: ConversationPageModel;
|
|
5
|
+
model: ResourceModel;
|
|
6
|
+
recordKey: string;
|
|
7
|
+
me: string | undefined;
|
|
8
|
+
/** The reader's read position, as `useReadPosition` gives it. */
|
|
9
|
+
position: {
|
|
10
|
+
ready: boolean;
|
|
11
|
+
openedAt: number | undefined;
|
|
12
|
+
readTo: ((key: number) => void) | undefined;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* The record's messages, the latest page with earlier ones on request, read with the reader's own access and their
|
|
17
|
+
* senders' names in the same read, kept current as the live updates tell of new, changed and deleted ones. They show
|
|
18
|
+
* once the read position is there too, so they open on the "New messages" line, and reading to the end moves it. They
|
|
19
|
+
* scroll in a box of their own, so the box that sends one stays in view.
|
|
20
|
+
*/
|
|
21
|
+
export declare const ConversationMessages: ({ page, model, recordKey, me, position }: Props) => import("react").JSX.Element;
|
|
22
|
+
//#endregion
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { useAdminMeta } from "../meta-gate.js";
|
|
2
|
+
import { recordKey } from "../../live/model-helpers.js";
|
|
3
|
+
import { useMembers } from "../../people/use-members.js";
|
|
4
|
+
import { useList } from "../../data/use-list.js";
|
|
5
|
+
import { ErrorBanner } from "../error-banner.js";
|
|
6
|
+
import { Quiet } from "../pages/blocks/card-frame.js";
|
|
7
|
+
import { listLabels, withLabels } from "../../live/relation-labels.js";
|
|
8
|
+
import { ChatDivider } from "../../chat/chat-divider.js";
|
|
9
|
+
import { ChatThread } from "../../chat/chat-thread.js";
|
|
10
|
+
import { retryOf, showsErrorAbove, threadState } from "../conversation/thread-state.js";
|
|
11
|
+
import { text } from "./messages.js";
|
|
12
|
+
import { ConversationMessage } from "./conversation-message.js";
|
|
13
|
+
import { messagesRequest } from "./conversation-reads.js";
|
|
14
|
+
import { conversationRows, firstUnreadKey } from "./conversation-rows.js";
|
|
15
|
+
import { useNewLine } from "./use-new-line.js";
|
|
16
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
//#region src/app/conversation-page/conversation-messages.tsx
|
|
18
|
+
/**
|
|
19
|
+
* The record's messages, the latest page with earlier ones on request, read with the reader's own access and their
|
|
20
|
+
* senders' names in the same read, kept current as the live updates tell of new, changed and deleted ones. They show
|
|
21
|
+
* once the read position is there too, so they open on the "New messages" line, and reading to the end moves it. They
|
|
22
|
+
* scroll in a box of their own, so the box that sends one stays in view.
|
|
23
|
+
*/
|
|
24
|
+
const ConversationMessages = ({ page, model, recordKey: recordKey$1, me, position }) => {
|
|
25
|
+
const { resources, views } = useAdminMeta();
|
|
26
|
+
const { member } = useMembers();
|
|
27
|
+
const senders = [page.sender];
|
|
28
|
+
const list = useList(model.name, {
|
|
29
|
+
...messagesRequest(page, recordKey$1),
|
|
30
|
+
labels: listLabels(resources, views, model, senders)
|
|
31
|
+
});
|
|
32
|
+
const oldestFirst = withLabels(resources, model, senders, list.items, list.labels).reverse();
|
|
33
|
+
const key = (row) => String(recordKey(model, row));
|
|
34
|
+
const state = threadState(list);
|
|
35
|
+
const loaded = state === "messages" && !list.isLoading && position.ready;
|
|
36
|
+
const newLineAbove = useNewLine(loaded && oldestFirst.length > 0 && position.openedAt !== void 0 && me !== void 0, () => firstUnreadKey(oldestFirst, {
|
|
37
|
+
key,
|
|
38
|
+
sender: page.sender
|
|
39
|
+
}, position.openedAt, me, list.hasNextPage));
|
|
40
|
+
if (state === "error") return /* @__PURE__ */ jsx("div", {
|
|
41
|
+
className: "flex-1 p-4",
|
|
42
|
+
children: /* @__PURE__ */ jsx(ErrorBanner, {
|
|
43
|
+
title: text("couldNotLoad"),
|
|
44
|
+
error: list.error,
|
|
45
|
+
onRetry: retryOf(list)
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
if (!loaded) return /* @__PURE__ */ jsx("div", {
|
|
49
|
+
className: "flex-1 p-4",
|
|
50
|
+
children: /* @__PURE__ */ jsx(Quiet, { children: text("loadingMessages") })
|
|
51
|
+
});
|
|
52
|
+
const rows = conversationRows(oldestFirst, {
|
|
53
|
+
key,
|
|
54
|
+
sender: page.sender,
|
|
55
|
+
time: page.time
|
|
56
|
+
}, newLineAbove);
|
|
57
|
+
const newest = oldestFirst.at(-1);
|
|
58
|
+
const own = rows.findLast((line) => line.kind === "message" && me !== void 0 && line.author.id === me);
|
|
59
|
+
const readTo = position.readTo;
|
|
60
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [showsErrorAbove(list) && /* @__PURE__ */ jsx("div", {
|
|
61
|
+
className: "shrink-0 p-2",
|
|
62
|
+
children: /* @__PURE__ */ jsx(ErrorBanner, {
|
|
63
|
+
title: text("couldNotLoad"),
|
|
64
|
+
error: list.error,
|
|
65
|
+
onRetry: retryOf(list)
|
|
66
|
+
})
|
|
67
|
+
}), /* @__PURE__ */ jsx(ChatThread, {
|
|
68
|
+
length: oldestFirst.length,
|
|
69
|
+
followKey: own?.key,
|
|
70
|
+
empty: page.empty ?? text("noMessages"),
|
|
71
|
+
onLoadEarlier: list.hasNextPage ? () => void list.fetchNextPage() : void 0,
|
|
72
|
+
loadingEarlier: list.isFetchingNextPage,
|
|
73
|
+
onReadToEnd: readTo && newest ? () => readTo(Number(key(newest))) : void 0,
|
|
74
|
+
children: rows.map((line) => line.kind === "day" ? /* @__PURE__ */ jsx(ChatDivider, { label: line.label }, line.key) : line.kind === "new" ? /* @__PURE__ */ jsx(ChatDivider, { tone: "new" }, line.key) : /* @__PURE__ */ jsx(ConversationMessage, {
|
|
75
|
+
page,
|
|
76
|
+
row: line.row,
|
|
77
|
+
author: line.author,
|
|
78
|
+
time: line.time,
|
|
79
|
+
continued: line.continued,
|
|
80
|
+
member
|
|
81
|
+
}, line.key))
|
|
82
|
+
})] });
|
|
83
|
+
};
|
|
84
|
+
//#endregion
|
|
85
|
+
export { ConversationMessages };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LayoutRecord } from "../pages/record-scope.js";
|
|
2
|
+
import { ConversationPageModel } from "@protobase/schema";
|
|
3
|
+
//#region src/app/conversation-page/conversation-page.d.ts
|
|
4
|
+
type Props = {
|
|
5
|
+
page: ConversationPageModel;
|
|
6
|
+
scope: LayoutRecord;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* A record page that is the record's conversation (`.record({ conversation })`), filling the content area: its header,
|
|
10
|
+
* its messages and the box that sends one, where `@` lists the organization's members. The page does not scroll; the
|
|
11
|
+
* messages scroll in a box of their own, so the box stays in view. Key it by the record, so another one starts afresh.
|
|
12
|
+
*/
|
|
13
|
+
export declare const ConversationPage: ({ page, scope }: Props) => import("react").JSX.Element;
|
|
14
|
+
//#endregion
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { useOptionalAuth } from "../../auth/auth-provider.js";
|
|
2
|
+
import { useAdminMeta } from "../meta-gate.js";
|
|
3
|
+
import { useMembers } from "../../people/use-members.js";
|
|
4
|
+
import { useRecordTitle } from "../titles/record-titles.js";
|
|
5
|
+
import { keyValue } from "../create/create-values.js";
|
|
6
|
+
import { MessageComposer } from "../conversation/message-composer.js";
|
|
7
|
+
import { FullArea } from "../full-area-record.js";
|
|
8
|
+
import { text } from "./messages.js";
|
|
9
|
+
import { ConversationHeader } from "./conversation-header.js";
|
|
10
|
+
import { ConversationMessages } from "./conversation-messages.js";
|
|
11
|
+
import { matchingMembers } from "./member-search.js";
|
|
12
|
+
import { useReadPosition } from "./use-read-position.js";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
//#region src/app/conversation-page/conversation-page.tsx
|
|
15
|
+
/**
|
|
16
|
+
* A record page that is the record's conversation (`.record({ conversation })`), filling the content area: its header,
|
|
17
|
+
* its messages and the box that sends one, where `@` lists the organization's members. The page does not scroll; the
|
|
18
|
+
* messages scroll in a box of their own, so the box stays in view. Key it by the record, so another one starts afresh.
|
|
19
|
+
*/
|
|
20
|
+
const ConversationPage = ({ page, scope }) => {
|
|
21
|
+
const { resources, views } = useAdminMeta();
|
|
22
|
+
const title = useRecordTitle()(scope.model, views[scope.model.name], scope.record, scope.key);
|
|
23
|
+
const auth = useOptionalAuth();
|
|
24
|
+
const me = auth?.state.kind === "signed-in" ? auth.state.user.id : void 0;
|
|
25
|
+
const members = useMembers();
|
|
26
|
+
const model = resources[page.resource];
|
|
27
|
+
const position = useReadPosition({
|
|
28
|
+
position: page.readPosition,
|
|
29
|
+
model: page.readPosition && resources[page.readPosition.resource],
|
|
30
|
+
owner: scope.model,
|
|
31
|
+
recordKey: scope.key,
|
|
32
|
+
me
|
|
33
|
+
});
|
|
34
|
+
const searchPeople = page.mentions === void 0 ? void 0 : async (query) => matchingMembers(members.data ?? [], query, me);
|
|
35
|
+
return /* @__PURE__ */ jsx(FullArea, { children: /* @__PURE__ */ jsxs("div", {
|
|
36
|
+
className: "flex min-h-0 min-w-0 flex-col",
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ jsx(ConversationHeader, {
|
|
39
|
+
page,
|
|
40
|
+
scope,
|
|
41
|
+
title
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ jsx(ConversationMessages, {
|
|
44
|
+
page,
|
|
45
|
+
model,
|
|
46
|
+
recordKey: scope.key,
|
|
47
|
+
me,
|
|
48
|
+
position
|
|
49
|
+
}),
|
|
50
|
+
position.error !== void 0 && /* @__PURE__ */ jsx("p", {
|
|
51
|
+
className: "shrink-0 px-4 text-sm text-danger-text",
|
|
52
|
+
children: text("positionNotSaved")
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ jsx("div", {
|
|
55
|
+
className: "shrink-0 px-3 pb-3",
|
|
56
|
+
children: /* @__PURE__ */ jsx(MessageComposer, {
|
|
57
|
+
resource: page.resource,
|
|
58
|
+
field: page.text,
|
|
59
|
+
values: { [page.field]: keyValue(scope.model, scope.key) },
|
|
60
|
+
placeholder: page.placeholder,
|
|
61
|
+
searchPeople,
|
|
62
|
+
mentions: page.mentions
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
}) });
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
69
|
+
export { ConversationPage };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ConversationPageModel, ReadPositionModel } from "@protobase/schema";
|
|
2
|
+
//#region src/app/conversation-page/conversation-reads.d.ts
|
|
3
|
+
/** How many messages a page of the conversation brings: the latest on opening, and each "Load earlier". */
|
|
4
|
+
export declare const conversationPageSize = 50;
|
|
5
|
+
/**
|
|
6
|
+
* The read of a conversation's messages through the list API, with the reader's own access, so a message they may not
|
|
7
|
+
* read never shows: those whose relation holds the record's key, newest first, a page at a time.
|
|
8
|
+
*/
|
|
9
|
+
export declare const messagesRequest: (page: Pick<ConversationPageModel, "field" | "time">, recordKey: string) => {
|
|
10
|
+
filter: string;
|
|
11
|
+
orderBy: string;
|
|
12
|
+
pageSize: number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The read of the reader's own read position in a record, through the list API: the one whose relation holds the
|
|
16
|
+
* record's key and whose author, `author`, is `me`, even where the resource lets them read other people's.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ownPositionFilter: (position: Pick<ReadPositionModel, "field">, recordKey: string, author: string, me: string) => string;
|
|
19
|
+
//#endregion
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { recordMessagesFilter } from "../conversation/record-filter.js";
|
|
2
|
+
import { threadSort } from "@protobase/layout";
|
|
3
|
+
import { createWhere, printFilter } from "@protobase/schema";
|
|
4
|
+
//#region src/app/conversation-page/conversation-reads.ts
|
|
5
|
+
const where$1 = createWhere();
|
|
6
|
+
/** How many messages a page of the conversation brings: the latest on opening, and each "Load earlier". */
|
|
7
|
+
const conversationPageSize = 50;
|
|
8
|
+
/**
|
|
9
|
+
* The read of a conversation's messages through the list API, with the reader's own access, so a message they may not
|
|
10
|
+
* read never shows: those whose relation holds the record's key, newest first, a page at a time.
|
|
11
|
+
*/
|
|
12
|
+
const messagesRequest = (page, recordKey) => ({
|
|
13
|
+
filter: recordMessagesFilter(page.field, recordKey),
|
|
14
|
+
orderBy: threadSort(page.time),
|
|
15
|
+
pageSize: 50
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* The read of the reader's own read position in a record, through the list API: the one whose relation holds the
|
|
19
|
+
* record's key and whose author, `author`, is `me`, even where the resource lets them read other people's.
|
|
20
|
+
*/
|
|
21
|
+
const ownPositionFilter = (position, recordKey, author, me) => printFilter(where$1.and(where$1.eq(position.field, recordKey), where$1.eq(author, me)));
|
|
22
|
+
//#endregion
|
|
23
|
+
export { conversationPageSize, messagesRequest, ownPositionFilter };
|