@protobase/ui 0.121.6 → 0.121.8
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/comments/messages.d.ts +2 -2
- package/dist/app/confirm-sign-in-messages.d.ts +2 -2
- package/dist/app/conversation/messages.d.ts +2 -2
- package/dist/app/conversation/thread-state.d.ts +1 -1
- package/dist/app/conversation-page/conversation-call.d.ts +14 -0
- package/dist/app/conversation-page/conversation-call.js +28 -0
- package/dist/app/conversation-page/conversation-header.d.ts +2 -1
- package/dist/app/conversation-page/conversation-header.js +20 -12
- package/dist/app/conversation-page/conversation-messages.js +3 -3
- package/dist/app/conversation-page/conversation-page.d.ts +3 -1
- package/dist/app/conversation-page/conversation-page.js +42 -31
- package/dist/app/conversation-page/conversation-rows.d.ts +5 -2
- package/dist/app/conversation-page/conversation-rows.js +10 -7
- package/dist/app/conversation-page/messages.d.ts +2 -2
- package/dist/app/conversation-page/messages.js +1 -1
- package/dist/app/conversation-page/read-position-write.d.ts +21 -0
- package/dist/app/conversation-page/read-position-write.js +25 -0
- package/dist/app/conversation-page/use-read-position.d.ts +3 -2
- package/dist/app/conversation-page/use-read-position.js +33 -34
- package/dist/app/conversation-page/use-thread-address.d.ts +1 -1
- package/dist/app/conversation-page/use-thread-address.js +7 -4
- 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/runner-install/messages.d.ts +2 -2
- package/dist/app/field-types/widget-part.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/gallery/gallery-layout.d.ts +2 -2
- package/dist/app/gallery/messages.d.ts +2 -2
- package/dist/app/hand-order/messages.d.ts +2 -2
- package/dist/app/history/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/record-chart/messages.d.ts +2 -2
- package/dist/app/record-messages.d.ts +2 -2
- package/dist/app/record-mode/shown-layout.d.ts +1 -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/search/messages.d.ts +2 -2
- package/dist/app/searches/messages.d.ts +2 -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/carousel/messages.d.ts +2 -2
- package/dist/chat/messages.d.ts +2 -2
- package/dist/compact-table/messages.d.ts +2 -2
- package/dist/data/api-provider.d.ts +3 -0
- 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/focus-page/messages.d.ts +2 -2
- package/dist/forms/messages.d.ts +2 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +4 -1
- package/dist/inline-child-table/messages.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 +6 -1
- package/dist/locale/en.json.d.ts +5 -0
- package/dist/locale/messages.d.ts +10 -0
- package/dist/locale/nl.js +6 -1
- package/dist/locale/texts-gate.d.ts +1 -1
- package/dist/mailbox/messages.d.ts +2 -2
- package/dist/markdown/messages.d.ts +2 -2
- package/dist/mentions/messages.d.ts +2 -2
- package/dist/mocks/orders.d.ts +2 -2
- 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/plugins/plugin-api.exports.js +3 -0
- package/dist/primitives/messages.d.ts +2 -2
- package/dist/record-view/messages.d.ts +2 -2
- package/dist/shell/assets/{account-page-D1S57VfK.js → account-page-Bol_Cyym.js} +2 -2
- package/dist/shell/assets/{app-2d0YQdR7.js → app-BulPOtFk.js} +5 -5
- package/dist/shell/assets/{app-Cv0aTDUz.css → app-woXO0qfi.css} +1 -1
- package/dist/shell/assets/{assistant-shell-Bb0KRa8E.js → assistant-shell-53oFy4Ou.js} +2 -2
- package/dist/shell/assets/{board-display-B0hMSJLc.js → board-display-BylvC8rm.js} +2 -2
- package/dist/shell/assets/{calendar-display-DNTXJ2Lj.js → calendar-display-09CH-1fR.js} +2 -2
- package/dist/shell/assets/{call-rings-D2efFDY-.js → call-rings-RWbmYtx9.js} +2 -2
- package/dist/shell/assets/{calls-mmgOyL_n.js → calls-BwuATZa5.js} +2 -2
- package/dist/shell/assets/{circle-alert-BWBUUk9M.js → circle-alert-Dryq5uqy.js} +2 -2
- package/dist/shell/assets/{composed-page-jwnPyg2o.js → composed-page-Q5bLBT1Y.js} +2 -2
- package/dist/shell/assets/{composer-section-raPl4Mf_.js → composer-section-DqEh8dqn.js} +2 -2
- package/dist/shell/assets/{connect-route-DnTRKFdW.js → connect-route-Dvth57DD.js} +2 -2
- package/dist/shell/assets/{copy-field-BtAsyigB.js → copy-field-D7GQ8uU3.js} +2 -2
- package/dist/shell/assets/{create-route-CEuERj3K.js → create-route-FhNYu3un.js} +2 -2
- package/dist/shell/assets/{custom-step-container-field-B1RXdjeH.js → custom-step-container-field-O-AdqrzI.js} +2 -2
- package/dist/shell/assets/{embedded-list-BIvBUQCm.js → embedded-list-B7DLA-5K.js} +3 -3
- package/dist/shell/assets/en-F4WlEfjV.js +2 -0
- package/dist/shell/assets/{export-dialog-BibbA1JE.js → export-dialog-CCqw6Vg4.js} +2 -2
- package/dist/shell/assets/export-worker-BbrJ4DH1.js +15 -0
- package/dist/shell/assets/{first-organization-page-DgL_N1W1.js → first-organization-page-BmzAeuIa.js} +2 -2
- package/dist/shell/assets/{graph-view-D5uSsu67.js → graph-view-sRrZ3dv5.js} +2 -2
- package/dist/shell/assets/{group-donut-BeAjogon.js → group-donut-BMaPH00x.js} +2 -2
- package/dist/shell/assets/{guest-call-page-DXOfa3rF.js → guest-call-page-C3Ub0Xk8.js} +3 -3
- package/dist/shell/assets/{html-viewer-SuYrL7fw.js → html-viewer-D2bU4Db6.js} +2 -2
- package/dist/shell/assets/{import-dialog-DjMoHP8N.js → import-dialog-nz2J7bjB.js} +2 -2
- package/dist/shell/assets/{import-table-dialog-45beoZDX.js → import-table-dialog-By8VriYe.js} +2 -2
- package/dist/shell/assets/{index-CH_1Ns3R.js → index-DX9nVQnQ.js} +1 -1
- package/dist/shell/assets/{invitations-page-CwtY8Tbq.js → invitations-page-Cc-THava.js} +2 -2
- package/dist/shell/assets/{layout-grid-DSS3tNid.js → layout-grid-B6cY-gl1.js} +2 -2
- package/dist/shell/assets/{legend-item--JCuOrBW.js → legend-item-ba3UDmtP.js} +2 -2
- package/dist/shell/assets/{list-page-Do4wAJXr.js → list-page-VOcfNXSu.js} +4 -4
- package/dist/shell/assets/{maplibre-DmuZi_YZ.js → maplibre-DNpCfHV-.js} +2 -2
- package/dist/shell/assets/{markdown-content-B0lkEYGr.js → markdown-content-xFmjDCfJ.js} +2 -2
- package/dist/shell/assets/{members-page-BaLe1e4J.js → members-page-CCvXHTOf.js} +2 -2
- package/dist/shell/assets/{message-content-JJSKhX2W.js → message-content-DNRWVK_X.js} +2 -2
- package/dist/shell/assets/{messages-BaKmueMc.js → messages-CtFScIoe.js} +2 -2
- package/dist/shell/assets/nl-CGzPjT6w.js +2 -0
- package/dist/shell/assets/{organization-page-CIML07Cz.js → organization-page-DlwBJK_f.js} +2 -2
- package/dist/shell/assets/{organizations-page-Cctkt6cu.js → organizations-page-DNNhawp4.js} +2 -2
- package/dist/shell/assets/parse-worker-CG0FAJQa.js +35 -0
- package/dist/shell/assets/{pending-invitation-row-xf_wfIQ2.js → pending-invitation-row-DXKZcXbf.js} +2 -2
- package/dist/shell/assets/{period-chart-Cuw7AISK.js → period-chart-CU7J-wRt.js} +2 -2
- package/dist/shell/assets/{person-row-DtXuek5W.js → person-row-HHay14rT.js} +2 -2
- package/dist/shell/assets/{public-form-page-noW7JMKv.js → public-form-page-D6LqD12d.js} +2 -2
- package/dist/shell/assets/{record-lines-B-Wll3-R.js → record-lines-qMYX94_m.js} +2 -2
- package/dist/shell/assets/{record-map-D6Yog0Uu.js → record-map-B3nR7MxF.js} +2 -2
- package/dist/shell/assets/{record-opens-Cy15Gu5o.js → record-opens-DXTbfpzS.js} +2 -2
- package/dist/shell/assets/record-page-BBzqRdwu.js +3 -0
- package/dist/shell/assets/{record-preview-CDgsSTFF.js → record-preview-ChaLENC7.js} +2 -2
- package/dist/shell/assets/{records-map-CV5k8jcU.js → records-map-UDchvAws.js} +2 -2
- package/dist/shell/assets/{render-node-CtZZjLGx.js → render-node--uibz0Bz.js} +3 -3
- package/dist/shell/assets/{reorder-button-DHV9_n1M.js → reorder-button-CTtdkBf4.js} +2 -2
- package/dist/shell/assets/{run-trace-view-DOyzvKTV.js → run-trace-view-B36JYW7H.js} +2 -2
- package/dist/shell/assets/{runner-install-field-CJberN6i.js → runner-install-field-87axN_nr.js} +2 -2
- package/dist/shell/assets/{runtime-update-DiRL2UEA.js → runtime-update-V-FSS7QK.js} +2 -2
- package/dist/shell/assets/shared-protobase-ui-DNJPl0rL.js +1 -0
- package/dist/shell/assets/{sheet-source-xZ9l3FLl.js → sheet-source-DyHPlNPL.js} +3 -3
- package/dist/shell/assets/{sign-in-policy-page-BUKwvVFG.js → sign-in-policy-page-DECFF6RI.js} +2 -2
- package/dist/shell/assets/{start-block-queries-s1eLXHpW.js → start-block-queries-B8EjsiSc.js} +2 -2
- package/dist/shell/assets/{step-catalog-BvlUh62_.js → step-catalog-D9dnoYRA.js} +2 -2
- package/dist/shell/assets/{step-panel-BGJiJ7z6.js → step-panel-D79fQp7L.js} +2 -2
- package/dist/shell/assets/{timeline-display-B_xs7U-p.js → timeline-display-DCkpp_4U.js} +2 -2
- package/dist/shell/assets/{trash-BfWYOlBD.js → trash-BdUW_art.js} +2 -2
- package/dist/shell/assets/{update-set-iwxyRxhm.js → update-set-BuK7kxsT.js} +2 -2
- package/dist/shell/assets/{use-calendar-move-Cd92WAhx.js → use-calendar-move-D1ioWyYb.js} +2 -2
- package/dist/shell/assets/{use-display-rows-HuX1NEhA.js → use-display-rows-BHxf0ztp.js} +2 -2
- package/dist/shell/assets/{use-my-invitations-DaKmW2De.js → use-my-invitations-DPvBcDs_.js} +2 -2
- package/dist/shell/assets/{use-paged-search-DPuOZYVz.js → use-paged-search-BQUDN_jI.js} +2 -2
- package/dist/shell/assets/{use-run-trace-Dukz4W0q.js → use-run-trace-CT0b-3H8.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-Cgw-Aurp.js → use-workflow-page-BzXJJb3R.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-B1NI4zqE.js → use-workflow-types-9Prpm41m.js} +2 -2
- package/dist/shell/assets/{workflow-canvas-B-IYnZVg.js → workflow-canvas-BzcU7Mlj.js} +2 -2
- package/dist/shell/assets/{workflow-field-BSH37gjx.js → workflow-field-BNQxV_YF.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-C1U_7a-n.js → workflow-graph-editor-kKt2gb-H.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-D_yV-Pdt.js → workflow-run-field-DmzVO3b8.js} +3 -3
- package/dist/shell/assets/{workflow-status-field-CIX3WM-W.js → workflow-status-field-BGthXJli.js} +2 -2
- package/dist/shell/assets/{workflow-workbench-CoVlp47h.js → workflow-workbench-C0lRyTcS.js} +2 -2
- package/dist/shell/index.html +4 -4
- package/dist/shell/protobase.shell.json +2 -2
- package/dist/shell/protobase.sw.js +2 -2
- package/dist/shell-source-maps/assets/{account-page-D1S57VfK.js.map → account-page-Bol_Cyym.js.map} +1 -1
- package/dist/shell-source-maps/assets/app-BulPOtFk.js.map +1 -0
- package/dist/shell-source-maps/assets/{assistant-shell-Bb0KRa8E.js.map → assistant-shell-53oFy4Ou.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-B0hMSJLc.js.map → board-display-BylvC8rm.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-DNTXJ2Lj.js.map → calendar-display-09CH-1fR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-D2efFDY-.js.map → call-rings-RWbmYtx9.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-mmgOyL_n.js.map → calls-BwuATZa5.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-BWBUUk9M.js.map → circle-alert-Dryq5uqy.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-jwnPyg2o.js.map → composed-page-Q5bLBT1Y.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-raPl4Mf_.js.map → composer-section-DqEh8dqn.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-DnTRKFdW.js.map → connect-route-Dvth57DD.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-BtAsyigB.js.map → copy-field-D7GQ8uU3.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-CEuERj3K.js.map → create-route-FhNYu3un.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-B1RXdjeH.js.map → custom-step-container-field-O-AdqrzI.js.map} +1 -1
- package/dist/shell-source-maps/assets/{embedded-list-BIvBUQCm.js.map → embedded-list-B7DLA-5K.js.map} +1 -1
- package/dist/shell-source-maps/assets/en-F4WlEfjV.js.map +1 -0
- package/dist/shell-source-maps/assets/{export-dialog-BibbA1JE.js.map → export-dialog-CCqw6Vg4.js.map} +1 -1
- package/dist/shell-source-maps/assets/export-worker-BbrJ4DH1.js.map +1 -0
- package/dist/shell-source-maps/assets/{first-organization-page-DgL_N1W1.js.map → first-organization-page-BmzAeuIa.js.map} +1 -1
- package/dist/shell-source-maps/assets/{graph-view-D5uSsu67.js.map → graph-view-sRrZ3dv5.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-BeAjogon.js.map → group-donut-BMaPH00x.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-DXOfa3rF.js.map → guest-call-page-C3Ub0Xk8.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-SuYrL7fw.js.map → html-viewer-D2bU4Db6.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-DjMoHP8N.js.map → import-dialog-nz2J7bjB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-45beoZDX.js.map → import-table-dialog-By8VriYe.js.map} +1 -1
- package/dist/shell-source-maps/assets/{invitations-page-CwtY8Tbq.js.map → invitations-page-Cc-THava.js.map} +1 -1
- package/dist/shell-source-maps/assets/{layout-grid-DSS3tNid.js.map → layout-grid-B6cY-gl1.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item--JCuOrBW.js.map → legend-item-ba3UDmtP.js.map} +1 -1
- package/dist/shell-source-maps/assets/{list-page-Do4wAJXr.js.map → list-page-VOcfNXSu.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-DmuZi_YZ.js.map → maplibre-DNpCfHV-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{markdown-content-B0lkEYGr.js.map → markdown-content-xFmjDCfJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{members-page-BaLe1e4J.js.map → members-page-CCvXHTOf.js.map} +1 -1
- package/dist/shell-source-maps/assets/{message-content-JJSKhX2W.js.map → message-content-DNRWVK_X.js.map} +1 -1
- package/dist/shell-source-maps/assets/{messages-BaKmueMc.js.map → messages-CtFScIoe.js.map} +1 -1
- package/dist/shell-source-maps/assets/nl-CGzPjT6w.js.map +1 -0
- package/dist/shell-source-maps/assets/{organization-page-CIML07Cz.js.map → organization-page-DlwBJK_f.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organizations-page-Cctkt6cu.js.map → organizations-page-DNNhawp4.js.map} +1 -1
- package/dist/shell-source-maps/assets/parse-worker-CG0FAJQa.js.map +1 -0
- package/dist/shell-source-maps/assets/{pending-invitation-row-xf_wfIQ2.js.map → pending-invitation-row-DXKZcXbf.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-Cuw7AISK.js.map → period-chart-CU7J-wRt.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-DtXuek5W.js.map → person-row-HHay14rT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-noW7JMKv.js.map → public-form-page-D6LqD12d.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-B-Wll3-R.js.map → record-lines-qMYX94_m.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-D6Yog0Uu.js.map → record-map-B3nR7MxF.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-Cy15Gu5o.js.map → record-opens-DXTbfpzS.js.map} +1 -1
- package/dist/shell-source-maps/assets/record-page-BBzqRdwu.js.map +1 -0
- package/dist/shell-source-maps/assets/{record-preview-CDgsSTFF.js.map → record-preview-ChaLENC7.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-CV5k8jcU.js.map → records-map-UDchvAws.js.map} +1 -1
- package/dist/shell-source-maps/assets/{render-node-CtZZjLGx.js.map → render-node--uibz0Bz.js.map} +1 -1
- package/dist/shell-source-maps/assets/{reorder-button-DHV9_n1M.js.map → reorder-button-CTtdkBf4.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-DOyzvKTV.js.map → run-trace-view-B36JYW7H.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-CJberN6i.js.map → runner-install-field-87axN_nr.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-DiRL2UEA.js.map → runtime-update-V-FSS7QK.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sheet-source-xZ9l3FLl.js.map → sheet-source-DyHPlNPL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-BUKwvVFG.js.map → sign-in-policy-page-DECFF6RI.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-s1eLXHpW.js.map → start-block-queries-B8EjsiSc.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-BvlUh62_.js.map → step-catalog-D9dnoYRA.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-BGJiJ7z6.js.map → step-panel-D79fQp7L.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-B_xs7U-p.js.map → timeline-display-DCkpp_4U.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-BfWYOlBD.js.map → trash-BdUW_art.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-iwxyRxhm.js.map → update-set-BuK7kxsT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-Cd92WAhx.js.map → use-calendar-move-D1ioWyYb.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-HuX1NEhA.js.map → use-display-rows-BHxf0ztp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-my-invitations-DaKmW2De.js.map → use-my-invitations-DPvBcDs_.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-paged-search-DPuOZYVz.js.map → use-paged-search-BQUDN_jI.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-Dukz4W0q.js.map → use-run-trace-CT0b-3H8.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-Cgw-Aurp.js.map → use-workflow-page-BzXJJb3R.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-B1NI4zqE.js.map → use-workflow-types-9Prpm41m.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-B-IYnZVg.js.map → workflow-canvas-BzcU7Mlj.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-BSH37gjx.js.map → workflow-field-BNQxV_YF.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-C1U_7a-n.js.map → workflow-graph-editor-kKt2gb-H.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-D_yV-Pdt.js.map → workflow-run-field-DmzVO3b8.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-status-field-CIX3WM-W.js.map → workflow-status-field-BGthXJli.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-workbench-CoVlp47h.js.map → workflow-workbench-C0lRyTcS.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/en-_QUqgkv9.js +0 -2
- package/dist/shell/assets/export-worker-BUvAe-pU.js +0 -15
- package/dist/shell/assets/nl-B7S2-35v.js +0 -2
- package/dist/shell/assets/parse-worker-BXZM3e8_.js +0 -35
- package/dist/shell/assets/record-page-Bo0pD8vx.js +0 -3
- package/dist/shell/assets/shared-protobase-ui-Bq-qMwVs.js +0 -1
- package/dist/shell-source-maps/assets/app-2d0YQdR7.js.map +0 -1
- package/dist/shell-source-maps/assets/en-_QUqgkv9.js.map +0 -1
- package/dist/shell-source-maps/assets/export-worker-BUvAe-pU.js.map +0 -1
- package/dist/shell-source-maps/assets/nl-B7S2-35v.js.map +0 -1
- package/dist/shell-source-maps/assets/parse-worker-BXZM3e8_.js.map +0 -1
- package/dist/shell-source-maps/assets/record-page-Bo0pD8vx.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" | "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" | "download" | "cancel" | "save" | "name" | "yourPassword" | "passwordIsSet" | "passwordNotSet" | "passwordForbidden" | "passwordStaff" | "passwordSaved" | "changePassword" | "setPassword" | "currentPassword" | "newPassword" | "repeatPassword" | "changeSignsOutOthers" | "atLeast" | "useAtLeast" | "passwordTooLong" | "passwordsDiffer" | "continue" | "on" | "off" | "optional" | "required" | "passkeys" | "passkey" | "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" | "twoFactor" | "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" | "password" | "passwordDescription" | "emailedSignInCode" | "emailedSignInCodeDescription" | "passkeysPolicyDescription" | "twoFactorPolicyDescription" | "staffAccess" | "staffAccessDescription" | "emailThePerson" | "platformSignIn" | "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" | "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" | "download" | "cancel" | "save" | "name" | "yourPassword" | "passwordIsSet" | "passwordNotSet" | "passwordForbidden" | "passwordStaff" | "passwordSaved" | "changePassword" | "setPassword" | "currentPassword" | "newPassword" | "repeatPassword" | "changeSignsOutOthers" | "atLeast" | "useAtLeast" | "passwordTooLong" | "passwordsDiffer" | "continue" | "on" | "off" | "optional" | "required" | "passkeys" | "passkey" | "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" | "twoFactor" | "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" | "password" | "passwordDescription" | "emailedSignInCode" | "emailedSignInCodeDescription" | "passkeysPolicyDescription" | "twoFactorPolicyDescription" | "staffAccess" | "staffAccessDescription" | "emailThePerson" | "platformSignIn" | "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: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "today" | "couldNotLoad" | "maximum" | "average" | "count" | "sum" | "nothingYet" | "yes" | "no" | "notSet" | "other" | "records" | "toToday" | "period" | "chartKeys", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "today" | "couldNotLoad" | "maximum" | "average" | "count" | "sum" | "nothingYet" | "yes" | "no" | "notSet" | "other" | "records" | "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/comments/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "couldNotLoad" | "placeholder" | "comment" | "couldNotPost" | "showEarlier" | "noComments", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "couldNotLoad" | "placeholder" | "comment" | "couldNotPost" | "showEarlier" | "noComments", 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: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "emailedCode" | "password" | "emailCode" | "confirmTitle" | "confirmWhy" | "confirmWhyChange" | "usePasskey" | "authenticatorCode" | "confirm" | "codeSent" | "emailNewCode" | "nothingToConfirmWith", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "emailedCode" | "password" | "emailCode" | "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,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: "
|
|
5
|
-
rich(id: "
|
|
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;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -8,7 +8,7 @@ type ThreadList = {
|
|
|
8
8
|
* What a thread shows of its list: the error only while no message has loaded, so a failed refetch keeps the messages
|
|
9
9
|
* on screen and the reader's place in them; then its loading line until the first page arrives; then the messages.
|
|
10
10
|
*/
|
|
11
|
-
export declare const threadState: (list: ThreadList) => "
|
|
11
|
+
export declare const threadState: (list: ThreadList) => "loading" | "error" | "messages";
|
|
12
12
|
/** What an empty thread says: its loading line while its calls still load, so it never says empty before they arrive. */
|
|
13
13
|
export declare const emptyLine: (calls: {
|
|
14
14
|
isLoading: boolean;
|
|
@@ -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-call.d.ts
|
|
4
|
+
type Props = {
|
|
5
|
+
page: ConversationPageModel;
|
|
6
|
+
scope: LayoutRecord;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The record's call while the page joins it (`?call=join`), on a conversation with `call`: beside the messages, or
|
|
10
|
+
* above them at mobile width, half the space either way, so the box under the messages stays in view. It opens the
|
|
11
|
+
* `call` function's socket with the record's key, and names the people in it after the organization's members.
|
|
12
|
+
*/
|
|
13
|
+
export declare const ConversationCall: ({ page, scope }: Props) => import("react").JSX.Element | null;
|
|
14
|
+
//#endregion
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useClient } from "../../data/api-provider.js";
|
|
2
|
+
import { useMembers } from "../../people/use-members.js";
|
|
3
|
+
import { useRecordCallAddress } from "../../calls/use-record-call-address.js";
|
|
4
|
+
import { RecordCall } from "../../calls/record-call.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/app/conversation-page/conversation-call.tsx
|
|
7
|
+
/**
|
|
8
|
+
* The record's call while the page joins it (`?call=join`), on a conversation with `call`: beside the messages, or
|
|
9
|
+
* above them at mobile width, half the space either way, so the box under the messages stays in view. It opens the
|
|
10
|
+
* `call` function's socket with the record's key, and names the people in it after the organization's members.
|
|
11
|
+
*/
|
|
12
|
+
const ConversationCall = ({ page, scope }) => {
|
|
13
|
+
const { joining } = useRecordCallAddress(scope.model.name, scope.key);
|
|
14
|
+
const client = useClient();
|
|
15
|
+
const members = useMembers();
|
|
16
|
+
if (page.call === void 0 || !joining) return null;
|
|
17
|
+
return /* @__PURE__ */ jsx("div", {
|
|
18
|
+
className: "grid min-h-0 min-w-0 shrink-0 grid-cols-[minmax(0,1fr)] grid-rows-[minmax(0,1fr)] border-border max-md:h-1/2 max-md:border-b md:w-1/2 md:border-r",
|
|
19
|
+
children: /* @__PURE__ */ jsx(RecordCall, {
|
|
20
|
+
resource: scope.model.name,
|
|
21
|
+
recordKey: scope.key,
|
|
22
|
+
url: client.functionSocketUrl(page.call, { key: scope.key }),
|
|
23
|
+
nameOf: (user) => members.member(user)?.name ?? user
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ConversationCall };
|
|
@@ -9,7 +9,8 @@ type Props = {
|
|
|
9
9
|
/**
|
|
10
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
11
|
* a wider screen, or with `members` the other people in it with their status, shown at every width; its `subtitle`
|
|
12
|
-
* beside it;
|
|
12
|
+
* beside it; with `call`, the record's call, Start call or the call going on with Join; and a link to the record's
|
|
13
|
+
* standard page, where its details, Edit and Delete are.
|
|
13
14
|
*/
|
|
14
15
|
export declare const ConversationHeader: ({ page, scope, title }: Props) => import("react").JSX.Element;
|
|
15
16
|
//#endregion
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../lib/cn.js";
|
|
2
2
|
import { buttonClass } from "../../primitives/button.js";
|
|
3
3
|
import { AppLink } from "../use-app-address.js";
|
|
4
|
+
import { CallMark } from "../../calls/call-mark.js";
|
|
4
5
|
import { MembersTitle } from "./members-title.js";
|
|
5
6
|
import { text } from "./messages.js";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -8,7 +9,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
8
9
|
/**
|
|
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
|
|
10
11
|
* a wider screen, or with `members` the other people in it with their status, shown at every width; its `subtitle`
|
|
11
|
-
* beside it;
|
|
12
|
+
* beside it; with `call`, the record's call, Start call or the call going on with Join; and a link to the record's
|
|
13
|
+
* standard page, where its details, Edit and Delete are.
|
|
12
14
|
*/
|
|
13
15
|
const ConversationHeader = ({ page, scope, title }) => {
|
|
14
16
|
const subtitle = page.subtitle === void 0 ? void 0 : scope.record[page.subtitle];
|
|
@@ -27,18 +29,24 @@ const ConversationHeader = ({ page, scope, title }) => {
|
|
|
27
29
|
className: "min-w-0 flex-1 truncate text-sm text-muted-foreground",
|
|
28
30
|
children: subtitle
|
|
29
31
|
}),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
/* @__PURE__ */ jsxs("div", {
|
|
33
|
+
className: "ml-auto flex shrink-0 items-center gap-2",
|
|
34
|
+
children: [page.call !== void 0 && /* @__PURE__ */ jsx(CallMark, {
|
|
33
35
|
resource: scope.model.name,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
recordKey: scope.key
|
|
37
|
+
}), /* @__PURE__ */ jsx(AppLink, {
|
|
38
|
+
to: {
|
|
39
|
+
kind: "record",
|
|
40
|
+
resource: scope.model.name,
|
|
41
|
+
key: scope.key,
|
|
42
|
+
standard: true
|
|
43
|
+
},
|
|
44
|
+
className: buttonClass({
|
|
45
|
+
variant: "ghost",
|
|
46
|
+
size: "sm"
|
|
47
|
+
}),
|
|
48
|
+
children: text("details")
|
|
49
|
+
})]
|
|
42
50
|
})
|
|
43
51
|
]
|
|
44
52
|
});
|
|
@@ -10,7 +10,7 @@ import { retryOf, showsErrorAbove, threadState } from "../conversation/thread-st
|
|
|
10
10
|
import { text } from "./messages.js";
|
|
11
11
|
import { ConversationMessage } from "./conversation-message.js";
|
|
12
12
|
import { messagesRequest } from "./conversation-reads.js";
|
|
13
|
-
import { conversationRows, firstUnreadKey } from "./conversation-rows.js";
|
|
13
|
+
import { conversationRows, firstUnreadKey, highestKey } from "./conversation-rows.js";
|
|
14
14
|
import { useMessageSetup } from "./use-message-setup.js";
|
|
15
15
|
import { useNewLine } from "./use-new-line.js";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -60,7 +60,7 @@ const ConversationMessages = ({ page, model, recordKey: recordKey$1, me, positio
|
|
|
60
60
|
sender: page.sender,
|
|
61
61
|
time: page.time
|
|
62
62
|
}, newLineAbove);
|
|
63
|
-
const
|
|
63
|
+
const readEnd = highestKey(oldestFirst, key);
|
|
64
64
|
const own = rows.findLast((line) => line.kind === "message" && me !== void 0 && line.author.id === me);
|
|
65
65
|
const readTo = position.readTo;
|
|
66
66
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -85,7 +85,7 @@ const ConversationMessages = ({ page, model, recordKey: recordKey$1, me, positio
|
|
|
85
85
|
empty: page.empty ?? text("noMessages"),
|
|
86
86
|
onLoadEarlier: list.hasNextPage ? () => void list.fetchNextPage() : void 0,
|
|
87
87
|
loadingEarlier: list.isFetchingNextPage,
|
|
88
|
-
onReadToEnd: readTo &&
|
|
88
|
+
onReadToEnd: readTo && readEnd !== void 0 ? () => readTo(readEnd) : void 0,
|
|
89
89
|
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, {
|
|
90
90
|
setup,
|
|
91
91
|
row: line.row,
|
|
@@ -9,7 +9,9 @@ type Props = {
|
|
|
9
9
|
* A record page that is the record's conversation (`.record({ conversation })`), filling the content area: its header,
|
|
10
10
|
* its messages and the box that sends one, where `@` lists the organization's members. The page does not scroll; the
|
|
11
11
|
* messages scroll in a box of their own, so the box stays in view. With threads, the thread its address names
|
|
12
|
-
* (`?thread=`) opens in a panel beside it.
|
|
12
|
+
* (`?thread=`) opens in a panel beside it. With `call`, the record's call shows while the page joins it (`?call=join`),
|
|
13
|
+
* between the header and the messages: beside them, or above them at mobile width, with a thread's panel after both,
|
|
14
|
+
* covering the screen at mobile width. Key it by the record, so another one starts afresh.
|
|
13
15
|
*/
|
|
14
16
|
export declare const ConversationPage: ({ page, scope }: Props) => import("react").JSX.Element;
|
|
15
17
|
//#endregion
|
|
@@ -5,6 +5,7 @@ import { useRecordTitle } from "../titles/record-titles.js";
|
|
|
5
5
|
import { keyValue } from "../create/create-values.js";
|
|
6
6
|
import { MessageComposer } from "../conversation/message-composer.js";
|
|
7
7
|
import { FullArea } from "../full-area-record.js";
|
|
8
|
+
import { ConversationCall } from "./conversation-call.js";
|
|
8
9
|
import { text } from "./messages.js";
|
|
9
10
|
import { ConversationHeader } from "./conversation-header.js";
|
|
10
11
|
import { ConversationMessages } from "./conversation-messages.js";
|
|
@@ -18,7 +19,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
18
19
|
* A record page that is the record's conversation (`.record({ conversation })`), filling the content area: its header,
|
|
19
20
|
* its messages and the box that sends one, where `@` lists the organization's members. The page does not scroll; the
|
|
20
21
|
* messages scroll in a box of their own, so the box stays in view. With threads, the thread its address names
|
|
21
|
-
* (`?thread=`) opens in a panel beside it.
|
|
22
|
+
* (`?thread=`) opens in a panel beside it. With `call`, the record's call shows while the page joins it (`?call=join`),
|
|
23
|
+
* between the header and the messages: beside them, or above them at mobile width, with a thread's panel after both,
|
|
24
|
+
* covering the screen at mobile width. Key it by the record, so another one starts afresh.
|
|
22
25
|
*/
|
|
23
26
|
const ConversationPage = ({ page, scope }) => {
|
|
24
27
|
const { resources, views } = useAdminMeta();
|
|
@@ -44,37 +47,45 @@ const ConversationPage = ({ page, scope }) => {
|
|
|
44
47
|
className: "flex min-h-0 min-w-0",
|
|
45
48
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
46
49
|
className: "flex min-h-0 min-w-0 flex-1 flex-col",
|
|
47
|
-
children: [
|
|
48
|
-
|
|
50
|
+
children: [/* @__PURE__ */ jsx(ConversationHeader, {
|
|
51
|
+
page,
|
|
52
|
+
scope,
|
|
53
|
+
title
|
|
54
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
55
|
+
className: "flex min-h-0 min-w-0 flex-1 max-md:flex-col",
|
|
56
|
+
children: [/* @__PURE__ */ jsx(ConversationCall, {
|
|
49
57
|
page,
|
|
50
|
-
scope
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
58
|
+
scope
|
|
59
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
60
|
+
className: "flex min-h-0 min-w-0 flex-1 flex-col",
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ jsx(ConversationMessages, {
|
|
63
|
+
page,
|
|
64
|
+
model,
|
|
65
|
+
recordKey: scope.key,
|
|
66
|
+
me,
|
|
67
|
+
position,
|
|
68
|
+
threadTo: threaded && thread.to,
|
|
69
|
+
searchPeople
|
|
70
|
+
}),
|
|
71
|
+
position.error !== void 0 && /* @__PURE__ */ jsx("p", {
|
|
72
|
+
className: "shrink-0 px-4 text-sm text-danger-text",
|
|
73
|
+
children: text("positionNotSaved")
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ jsx("div", {
|
|
76
|
+
className: "shrink-0 px-3 pb-3",
|
|
77
|
+
children: /* @__PURE__ */ jsx(MessageComposer, {
|
|
78
|
+
resource: page.resource,
|
|
79
|
+
field: page.text,
|
|
80
|
+
values: { [page.field]: keyValue(scope.model, scope.key) },
|
|
81
|
+
placeholder: page.placeholder,
|
|
82
|
+
searchPeople,
|
|
83
|
+
mentions: page.mentions
|
|
84
|
+
})
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
})]
|
|
88
|
+
})]
|
|
78
89
|
}), threaded && thread.open !== void 0 && /* @__PURE__ */ jsx(ThreadPanel, {
|
|
79
90
|
page: threaded,
|
|
80
91
|
owner: scope.model,
|
|
@@ -36,8 +36,11 @@ export type ConversationRow = {
|
|
|
36
36
|
export declare const conversationRows: (oldestFirst: Row[], { key, sender, time }: MessageFields, newLineAbove?: string, now?: number) => ConversationRow[];
|
|
37
37
|
/**
|
|
38
38
|
* The key of the message the "New messages" line goes above: the first after `lastRead`, the key of the newest message
|
|
39
|
-
* the reader read, by someone other than `me`; none when none is unread. When
|
|
40
|
-
*
|
|
39
|
+
* the reader read, by someone other than `me`; none when none is unread. When earlier messages are not loaded and the
|
|
40
|
+
* lowest loaded key is past `lastRead`, the first unread one may be among those, so there is no line rather than one in
|
|
41
|
+
* the wrong place.
|
|
41
42
|
*/
|
|
42
43
|
export declare const firstUnreadKey: (oldestFirst: Row[], { key, sender }: Omit<MessageFields, "time">, lastRead: number, me: string, hasEarlier: boolean) => string | undefined;
|
|
44
|
+
/** The highest key among the messages, the one reading them all reads to, whatever order their times put them in. */
|
|
45
|
+
export declare const highestKey: (rows: Row[], key: (row: Row) => string) => number | undefined;
|
|
43
46
|
//#endregion
|
|
@@ -38,16 +38,19 @@ const conversationRows = (oldestFirst, { key, sender, time }, newLineAbove, now
|
|
|
38
38
|
}
|
|
39
39
|
];
|
|
40
40
|
});
|
|
41
|
+
const keysOf = (rows, key) => rows.map((row) => Number(key(row)));
|
|
41
42
|
/**
|
|
42
43
|
* The key of the message the "New messages" line goes above: the first after `lastRead`, the key of the newest message
|
|
43
|
-
* the reader read, by someone other than `me`; none when none is unread. When
|
|
44
|
-
*
|
|
44
|
+
* the reader read, by someone other than `me`; none when none is unread. When earlier messages are not loaded and the
|
|
45
|
+
* lowest loaded key is past `lastRead`, the first unread one may be among those, so there is no line rather than one in
|
|
46
|
+
* the wrong place.
|
|
45
47
|
*/
|
|
46
48
|
const firstUnreadKey = (oldestFirst, { key, sender }, lastRead, me, hasEarlier) => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return key(oldestFirst[index]);
|
|
49
|
+
if (hasEarlier && Math.min(...keysOf(oldestFirst, key)) > lastRead) return;
|
|
50
|
+
const found = oldestFirst.find((row) => Number(key(row)) > lastRead && authorOf(row[sender]).id !== me);
|
|
51
|
+
return found && key(found);
|
|
51
52
|
};
|
|
53
|
+
/** The highest key among the messages, the one reading them all reads to, whatever order their times put them in. */
|
|
54
|
+
const highestKey = (rows, key) => rows.length === 0 ? void 0 : Math.max(...keysOf(rows, key));
|
|
52
55
|
//#endregion
|
|
53
|
-
export { conversationRows, firstUnreadKey, groupWindowMs };
|
|
56
|
+
export { conversationRows, firstUnreadKey, groupWindowMs, highestKey };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/conversation-page/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "message" | "copied" | "cancel" | "save" | "edit" | "couldNotLoad" | "delete" | "details" | "thread" | "notSaved" | "deleteDescription" | "deleteTitle" | "noMessages" | "loadingMessages" | "edited" | "editedAt" | "positionNotSaved" | "messageActions" | "reactWith" | "react" | "reactedBy" | "someone" | "replyInThread" | "copyText" | "editMessage" | "yourMessage" | "messageFrom" | "showYourActions" | "showActionsFrom" | "showActions" | "notDeleted" | "reactionNotSaved" | "replies" | "lastReply" | "replyPlaceholder" | "couldNotLoadThread" | "threadElsewhere" | "couldNotLoadReactions" | "notCopied", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "message" | "copied" | "cancel" | "save" | "edit" | "couldNotLoad" | "delete" | "details" | "thread" | "notSaved" | "deleteDescription" | "deleteTitle" | "noMessages" | "loadingMessages" | "edited" | "editedAt" | "positionNotSaved" | "messageActions" | "reactWith" | "react" | "reactedBy" | "someone" | "replyInThread" | "copyText" | "editMessage" | "yourMessage" | "messageFrom" | "showYourActions" | "showActionsFrom" | "showActions" | "notDeleted" | "reactionNotSaved" | "replies" | "lastReply" | "replyPlaceholder" | "couldNotLoadThread" | "threadElsewhere" | "couldNotLoadReactions" | "notCopied", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/app/conversation-page/read-position-write.d.ts
|
|
2
|
+
/** The reader's stored position: its record's key, the key of the message they read to, and the version it was read at. */
|
|
3
|
+
export type SavedPosition = {
|
|
4
|
+
key: string;
|
|
5
|
+
lastRead: number;
|
|
6
|
+
etag: string;
|
|
7
|
+
};
|
|
8
|
+
/** How the position is read and written: `update` writes only over the version `at` holds, else rejects with a 412. */
|
|
9
|
+
export type PositionStore = {
|
|
10
|
+
find: () => Promise<SavedPosition | undefined>;
|
|
11
|
+
create: (lastRead: number) => Promise<SavedPosition>;
|
|
12
|
+
update: (at: SavedPosition, lastRead: number) => Promise<SavedPosition>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Moves the reader's position up to `lastRead` from `saved`, what this tab last stored, and answers what is stored
|
|
16
|
+
* after. It never moves down: each write goes over the version it compared against, so when another tab wrote since,
|
|
17
|
+
* the write is refused, and the position that tab stored is compared again and kept when it is as far or further. A
|
|
18
|
+
* create another tab beat to it, refused as taken, goes the same way.
|
|
19
|
+
*/
|
|
20
|
+
export declare const moveReadPosition: (store: PositionStore, saved: SavedPosition | undefined, lastRead: number) => Promise<SavedPosition>;
|
|
21
|
+
//#endregion
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { isApiError } from "@protobase/client";
|
|
2
|
+
//#region src/app/conversation-page/read-position-write.ts
|
|
3
|
+
const stored = async (store, failed) => {
|
|
4
|
+
const found = await store.find();
|
|
5
|
+
if (!found) throw failed;
|
|
6
|
+
return found;
|
|
7
|
+
};
|
|
8
|
+
const raise = (store, at, lastRead) => at.lastRead >= lastRead ? at : store.update(at, lastRead);
|
|
9
|
+
/**
|
|
10
|
+
* Moves the reader's position up to `lastRead` from `saved`, what this tab last stored, and answers what is stored
|
|
11
|
+
* after. It never moves down: each write goes over the version it compared against, so when another tab wrote since,
|
|
12
|
+
* the write is refused, and the position that tab stored is compared again and kept when it is as far or further. A
|
|
13
|
+
* create another tab beat to it, refused as taken, goes the same way.
|
|
14
|
+
*/
|
|
15
|
+
const moveReadPosition = async (store, saved, lastRead) => {
|
|
16
|
+
if (saved && saved.lastRead >= lastRead) return saved;
|
|
17
|
+
const write = saved ? store.update(saved, lastRead) : store.create(lastRead);
|
|
18
|
+
const status = saved ? 412 : 409;
|
|
19
|
+
return write.catch(async (failed) => {
|
|
20
|
+
if (!isApiError(failed) || failed.status !== status) throw failed;
|
|
21
|
+
return raise(store, await stored(store, failed), lastRead);
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { moveReadPosition };
|
|
@@ -14,8 +14,9 @@ type Props = {
|
|
|
14
14
|
* The reader's read position in a record's conversation. `openedAt` is the key of the newest message they had read when
|
|
15
15
|
* they opened it, 0 for none, and undefined while it loads or without a read position: it stays put while the page is
|
|
16
16
|
* open, so the "New messages" line does not move as they read. `readTo` moves the position to a message they read; it
|
|
17
|
-
* never moves back, a move to where it is writes nothing, and moves go
|
|
18
|
-
* `ready` holds at once and there is no `readTo`, so nothing is read or
|
|
17
|
+
* never moves back, not even over a further move another tab stored, a move to where it is writes nothing, and moves go
|
|
18
|
+
* one after another. Without a read position, `ready` holds at once and there is no `readTo`, so nothing is read or
|
|
19
|
+
* written; one that could not be read is ready too.
|
|
19
20
|
*/
|
|
20
21
|
export declare const useReadPosition: ({ position, model, owner, recordKey, me }: Props) => {
|
|
21
22
|
ready: boolean;
|