@protobase/ui 0.123.0 → 0.123.1
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/charts/messages.d.ts +2 -2
- package/dist/app/confirm-sign-in-messages.d.ts +2 -2
- package/dist/app/conversation-page/conversation-page.d.ts +5 -4
- package/dist/app/conversation-page/conversation-page.js +14 -11
- package/dist/app/conversation-page/messages.d.ts +2 -2
- package/dist/app/conversation-page/thread-panel.d.ts +6 -2
- package/dist/app/conversation-page/thread-panel.js +12 -6
- package/dist/app/conversation-page/use-conversation-typing.d.ts +8 -0
- package/dist/app/conversation-page/use-conversation-typing.js +20 -0
- package/dist/app/create/messages.d.ts +2 -2
- package/dist/app/delete/messages.d.ts +2 -2
- 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/workflow/definition.d.ts +1 -1
- package/dist/app/field-types/workflow/messages.d.ts +2 -2
- package/dist/app/field-types/workflow/pins/pin-text.d.ts +1 -1
- 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/field-types/workflow-status/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/new-version/messages.d.ts +2 -2
- 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/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/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/inline-child-table/messages.d.ts +2 -2
- package/dist/invitations/messages.d.ts +2 -2
- package/dist/mailbox/messages.d.ts +2 -2
- package/dist/mentions/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/notifications/bell/messages.d.ts +2 -2
- package/dist/organizations/messages.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/primitives/messages.d.ts +2 -2
- package/dist/record-view/messages.d.ts +2 -2
- package/dist/record-view/use-autosave.d.ts +1 -1
- package/dist/relay/relay-context.js +1 -1
- package/dist/relay/relay-store.d.ts +1 -1
- package/dist/relay/relay-store.js +11 -18
- package/dist/relay/typing-line.d.ts +1 -6
- package/dist/relay/typing-line.js +4 -26
- package/dist/relay/use-relay-typing.d.ts +8 -0
- package/dist/relay/use-relay-typing.js +38 -0
- package/dist/relay/use-typing-sender.d.ts +5 -2
- package/dist/relay/use-typing-sender.js +5 -27
- package/dist/shell/assets/{account-page-D15oXHUN.js → account-page-DS2lZVD1.js} +2 -2
- package/dist/shell/assets/{app-CG26wvV-.js → app-1IZYQXW2.js} +13 -13
- package/dist/shell/assets/{assistant-shell-vuaTWe1u.js → assistant-shell-BIpWuqnT.js} +2 -2
- package/dist/shell/assets/board-display-Buo0YyZ5.js +2 -0
- package/dist/shell/assets/calendar-display-10AgoW3N.js +2 -0
- package/dist/shell/assets/{call-rings-CN1O37Vm.js → call-rings-BUUwC1QU.js} +2 -2
- package/dist/shell/assets/{calls-BgpYzNDg.js → calls-eQ3_Fp6k.js} +2 -2
- package/dist/shell/assets/{circle-alert-CYtCwklT.js → circle-alert-D7B_KeB7.js} +2 -2
- package/dist/shell/assets/{composed-page-CfvP7zgM.js → composed-page-Btkd6u0m.js} +2 -2
- package/dist/shell/assets/{composer-section-D8Iupdnl.js → composer-section-DUmPQLgo.js} +2 -2
- package/dist/shell/assets/{connect-route-2GF04qVw.js → connect-route-DQIlzdmb.js} +2 -2
- package/dist/shell/assets/{copy-field-Od-pW31E.js → copy-field-BfYo47Io.js} +2 -2
- package/dist/shell/assets/{create-route-BOGcWPvp.js → create-route-CSTAtNAw.js} +2 -2
- package/dist/shell/assets/{custom-step-container-field-B0JbqL0W.js → custom-step-container-field-Dxltzn8J.js} +4 -4
- package/dist/shell/assets/embedded-list-7l7TUHug.js +3 -0
- package/dist/shell/assets/{export-dialog-Cj0urwkZ.js → export-dialog-DWcXdfEj.js} +2 -2
- package/dist/shell/assets/{first-organization-page-Cr_eunjI.js → first-organization-page-77PHesxY.js} +2 -2
- package/dist/shell/assets/{graph-view-Ck8qrE0y.js → graph-view-DQOQDrmJ.js} +2 -2
- package/dist/shell/assets/{group-donut-_2BqPybE.js → group-donut-BGfuQ6iU.js} +2 -2
- package/dist/shell/assets/{guest-call-page-BKpxRWu7.js → guest-call-page-BdV2Hwhv.js} +3 -3
- package/dist/shell/assets/{html-viewer-PjyNPHSq.js → html-viewer-CXABej3u.js} +2 -2
- package/dist/shell/assets/{import-dialog-K0rhUDim.js → import-dialog-Cqu_xO6L.js} +2 -2
- package/dist/shell/assets/import-table-dialog-MwfAiAmM.js +2 -0
- package/dist/shell/assets/{index-xBA_aU0w.js → index-DJQ4glyU.js} +1 -1
- package/dist/shell/assets/invitations-page-C6LjToJR.js +2 -0
- package/dist/shell/assets/{layout-grid-Cr-RvgOt.js → layout-grid-C_uTX3Tb.js} +2 -2
- package/dist/shell/assets/{legend-item-BOIlaOng.js → legend-item-DzqFlC4D.js} +2 -2
- package/dist/shell/assets/list-page-CTGtveKF.js +4 -0
- package/dist/shell/assets/{maplibre-BOy1wGSA.js → maplibre-aCJmOb1H.js} +2 -2
- package/dist/shell/assets/{markdown-content-BrnTSgUW.js → markdown-content-CDmFTB6r.js} +2 -2
- package/dist/shell/assets/members-page-Defqhu24.js +2 -0
- package/dist/shell/assets/{message-content-BLdexhtW.js → message-content-CeLDUud8.js} +3 -3
- package/dist/shell/assets/messages-XnV72On0.js +2 -0
- package/dist/shell/assets/organization-page-Cdfaqvsh.js +2 -0
- package/dist/shell/assets/organizations-page-C37kxzUq.js +2 -0
- package/dist/shell/assets/{pending-invitation-row-2aTEUX6U.js → pending-invitation-row-Cyu7Ucej.js} +2 -2
- package/dist/shell/assets/{period-chart-Bf1e1Rfd.js → period-chart-T4rBI9Y2.js} +2 -2
- package/dist/shell/assets/{person-row-DM8AgaGL.js → person-row-DjxZAaa3.js} +2 -2
- package/dist/shell/assets/public-form-page-DaPFaXOT.js +2 -0
- package/dist/shell/assets/{record-lines-DO-JkjJw.js → record-lines-CSeqYQnm.js} +2 -2
- package/dist/shell/assets/{record-map-BM3T3O3d.js → record-map-l-E3DvxV.js} +2 -2
- package/dist/shell/assets/{record-opens-1_hpMdpy.js → record-opens-DPMtZw1p.js} +2 -2
- package/dist/shell/assets/record-page-DK2-zwXx.js +3 -0
- package/dist/shell/assets/{record-preview-WMGeft1g.js → record-preview-0BdCZkO9.js} +2 -2
- package/dist/shell/assets/{records-map-DA4QJ5o1.js → records-map-DSg2fbqb.js} +2 -2
- package/dist/shell/assets/render-node-qPc-4XAK.js +3 -0
- package/dist/shell/assets/reorder-button-Z_evPIxl.js +2 -0
- package/dist/shell/assets/{run-trace-view-DZqLuDCs.js → run-trace-view-ChuThRe4.js} +2 -2
- package/dist/shell/assets/{runner-install-field-CZFX7YDn.js → runner-install-field-8Ap9WvhK.js} +2 -2
- package/dist/shell/assets/{runtime-update-BSvbTfZB.js → runtime-update-B4DPgHIL.js} +2 -2
- package/dist/shell/assets/shared-protobase-ui-ClTsd7Ce.js +1 -0
- package/dist/shell/assets/{sheet-source-8s0DvsVl.js → sheet-source-D0v07JHr.js} +3 -3
- package/dist/shell/assets/sign-in-policy-page-CV3iE_o8.js +2 -0
- package/dist/shell/assets/start-block-queries-DJX-JI2P.js +2 -0
- package/dist/shell/assets/step-catalog-DSHlXxWA.js +2 -0
- package/dist/shell/assets/{step-panel-k-OfcV1o.js → step-panel-CF6x9K8Y.js} +2 -2
- package/dist/shell/assets/timeline-display-DpVKeXjG.js +2 -0
- package/dist/shell/assets/{trash-C576xGNJ.js → trash-Ccs0JhuD.js} +2 -2
- package/dist/shell/assets/{update-set-OSkktpzc.js → update-set-L1kw--38.js} +2 -2
- package/dist/shell/assets/use-calendar-move-DHCS22jF.js +2 -0
- package/dist/shell/assets/{use-display-rows-xrXX3vo7.js → use-display-rows-DcY7w9cN.js} +2 -2
- package/dist/shell/assets/{use-my-invitations-BzmabmV5.js → use-my-invitations-Dodu_ib9.js} +2 -2
- package/dist/shell/assets/{use-paged-search-1j6rT5dX.js → use-paged-search-Crpqw2e-.js} +2 -2
- package/dist/shell/assets/{use-run-trace-DhxoDhjX.js → use-run-trace-Cozaxsfl.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-Dof4TXvO.js → use-workflow-page-eP9jGrad.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-DlnnSIon.js → use-workflow-types-DjJ87TLL.js} +2 -2
- package/dist/shell/assets/{workflow-canvas-04KWcras.js → workflow-canvas-NJSHRDav.js} +4 -4
- package/dist/shell/assets/{workflow-field-DnRl3Zn3.js → workflow-field-D_pqVGeK.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-CW-k7iPq.js → workflow-graph-editor-D4zxMPy4.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-Cb04vQvU.js → workflow-run-field-DcL-8XS_.js} +3 -3
- package/dist/shell/assets/workflow-status-field-15bq7T5K.js +2 -0
- package/dist/shell/assets/workflow-workbench-CC_mXUfW.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-D15oXHUN.js.map → account-page-DS2lZVD1.js.map} +1 -1
- package/dist/shell-source-maps/assets/{app-CG26wvV-.js.map → app-1IZYQXW2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{assistant-shell-vuaTWe1u.js.map → assistant-shell-BIpWuqnT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-DPYwY014.js.map → board-display-Buo0YyZ5.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-CPqQ_x_H.js.map → calendar-display-10AgoW3N.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-CN1O37Vm.js.map → call-rings-BUUwC1QU.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-BgpYzNDg.js.map → calls-eQ3_Fp6k.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-CYtCwklT.js.map → circle-alert-D7B_KeB7.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-CfvP7zgM.js.map → composed-page-Btkd6u0m.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-D8Iupdnl.js.map → composer-section-DUmPQLgo.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-2GF04qVw.js.map → connect-route-DQIlzdmb.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-Od-pW31E.js.map → copy-field-BfYo47Io.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-BOGcWPvp.js.map → create-route-CSTAtNAw.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-B0JbqL0W.js.map → custom-step-container-field-Dxltzn8J.js.map} +1 -1
- package/dist/shell-source-maps/assets/{embedded-list-BiErfCKc.js.map → embedded-list-7l7TUHug.js.map} +1 -1
- package/dist/shell-source-maps/assets/{export-dialog-Cj0urwkZ.js.map → export-dialog-DWcXdfEj.js.map} +1 -1
- package/dist/shell-source-maps/assets/{first-organization-page-Cr_eunjI.js.map → first-organization-page-77PHesxY.js.map} +1 -1
- package/dist/shell-source-maps/assets/{graph-view-Ck8qrE0y.js.map → graph-view-DQOQDrmJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-_2BqPybE.js.map → group-donut-BGfuQ6iU.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-BKpxRWu7.js.map → guest-call-page-BdV2Hwhv.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-PjyNPHSq.js.map → html-viewer-CXABej3u.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-K0rhUDim.js.map → import-dialog-Cqu_xO6L.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-QNdJfEUq.js.map → import-table-dialog-MwfAiAmM.js.map} +1 -1
- package/dist/shell-source-maps/assets/{invitations-page-BA90Dbkk.js.map → invitations-page-C6LjToJR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{layout-grid-Cr-RvgOt.js.map → layout-grid-C_uTX3Tb.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item-BOIlaOng.js.map → legend-item-DzqFlC4D.js.map} +1 -1
- package/dist/shell-source-maps/assets/{list-page-lR1G4P0j.js.map → list-page-CTGtveKF.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-BOy1wGSA.js.map → maplibre-aCJmOb1H.js.map} +1 -1
- package/dist/shell-source-maps/assets/{markdown-content-BrnTSgUW.js.map → markdown-content-CDmFTB6r.js.map} +1 -1
- package/dist/shell-source-maps/assets/{members-page-VcGQ0wXn.js.map → members-page-Defqhu24.js.map} +1 -1
- package/dist/shell-source-maps/assets/{message-content-BLdexhtW.js.map → message-content-CeLDUud8.js.map} +1 -1
- package/dist/shell-source-maps/assets/{messages-DPRjc1DX.js.map → messages-XnV72On0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organization-page-DprBMbrZ.js.map → organization-page-Cdfaqvsh.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organizations-page--4KynkcH.js.map → organizations-page-C37kxzUq.js.map} +1 -1
- package/dist/shell-source-maps/assets/{pending-invitation-row-2aTEUX6U.js.map → pending-invitation-row-Cyu7Ucej.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-Bf1e1Rfd.js.map → period-chart-T4rBI9Y2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-DM8AgaGL.js.map → person-row-DjxZAaa3.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-Dk47d12N.js.map → public-form-page-DaPFaXOT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-DO-JkjJw.js.map → record-lines-CSeqYQnm.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-BM3T3O3d.js.map → record-map-l-E3DvxV.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-1_hpMdpy.js.map → record-opens-DPMtZw1p.js.map} +1 -1
- package/dist/shell-source-maps/assets/record-page-DK2-zwXx.js.map +1 -0
- package/dist/shell-source-maps/assets/{record-preview-WMGeft1g.js.map → record-preview-0BdCZkO9.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-DA4QJ5o1.js.map → records-map-DSg2fbqb.js.map} +1 -1
- package/dist/shell-source-maps/assets/{render-node-BYXtHiwx.js.map → render-node-qPc-4XAK.js.map} +1 -1
- package/dist/shell-source-maps/assets/{reorder-button-DlbkRsr1.js.map → reorder-button-Z_evPIxl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-DZqLuDCs.js.map → run-trace-view-ChuThRe4.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-CZFX7YDn.js.map → runner-install-field-8Ap9WvhK.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-BSvbTfZB.js.map → runtime-update-B4DPgHIL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sheet-source-8s0DvsVl.js.map → sheet-source-D0v07JHr.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-BJN_TfWv.js.map → sign-in-policy-page-CV3iE_o8.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-nfDrEnQD.js.map → start-block-queries-DJX-JI2P.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-QhL8OPW4.js.map → step-catalog-DSHlXxWA.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-k-OfcV1o.js.map → step-panel-CF6x9K8Y.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-CbqpZrs6.js.map → timeline-display-DpVKeXjG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-C576xGNJ.js.map → trash-Ccs0JhuD.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-OSkktpzc.js.map → update-set-L1kw--38.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-DJbTVBiR.js.map → use-calendar-move-DHCS22jF.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-xrXX3vo7.js.map → use-display-rows-DcY7w9cN.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-my-invitations-BzmabmV5.js.map → use-my-invitations-Dodu_ib9.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-paged-search-1j6rT5dX.js.map → use-paged-search-Crpqw2e-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-DhxoDhjX.js.map → use-run-trace-Cozaxsfl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-Dof4TXvO.js.map → use-workflow-page-eP9jGrad.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-DlnnSIon.js.map → use-workflow-types-DjJ87TLL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-04KWcras.js.map → workflow-canvas-NJSHRDav.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-DnRl3Zn3.js.map → workflow-field-D_pqVGeK.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-CW-k7iPq.js.map → workflow-graph-editor-D4zxMPy4.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-Cb04vQvU.js.map → workflow-run-field-DcL-8XS_.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-status-field-D4-yEdIA.js.map → workflow-status-field-15bq7T5K.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-workbench-BBRBLI2p.js.map → workflow-workbench-CC_mXUfW.js.map} +1 -1
- package/dist/status/messages.d.ts +2 -2
- package/dist/typing/conversation-typing.d.ts +15 -0
- package/dist/typing/conversation-typing.js +11 -0
- package/dist/typing/record-channel-typing.d.ts +14 -0
- package/dist/typing/record-channel-typing.js +33 -0
- package/dist/typing/typers-store.d.ts +15 -0
- package/dist/typing/typers-store.js +31 -0
- package/dist/typing/typing-names.d.ts +11 -0
- package/dist/typing/typing-names.js +29 -0
- package/dist/typing/typing.d.ts +49 -0
- package/dist/typing/typing.js +102 -0
- package/dist/typing/use-record-typing.d.ts +11 -0
- package/dist/typing/use-record-typing.js +51 -0
- package/dist/typing/use-typing-box.d.ts +16 -0
- package/dist/typing/use-typing-box.js +30 -0
- package/dist/users/messages.d.ts +2 -2
- package/package.json +5 -5
- package/dist/relay/typing.d.ts +0 -37
- package/dist/relay/typing.js +0 -78
- package/dist/shell/assets/board-display-DPYwY014.js +0 -2
- package/dist/shell/assets/calendar-display-CPqQ_x_H.js +0 -2
- package/dist/shell/assets/embedded-list-BiErfCKc.js +0 -3
- package/dist/shell/assets/import-table-dialog-QNdJfEUq.js +0 -2
- package/dist/shell/assets/invitations-page-BA90Dbkk.js +0 -2
- package/dist/shell/assets/list-page-lR1G4P0j.js +0 -4
- package/dist/shell/assets/members-page-VcGQ0wXn.js +0 -2
- package/dist/shell/assets/messages-DPRjc1DX.js +0 -2
- package/dist/shell/assets/organization-page-DprBMbrZ.js +0 -2
- package/dist/shell/assets/organizations-page--4KynkcH.js +0 -2
- package/dist/shell/assets/public-form-page-Dk47d12N.js +0 -2
- package/dist/shell/assets/record-page-C7tfbihg.js +0 -3
- package/dist/shell/assets/render-node-BYXtHiwx.js +0 -3
- package/dist/shell/assets/reorder-button-DlbkRsr1.js +0 -2
- package/dist/shell/assets/shared-protobase-ui-CDYOdP3n.js +0 -1
- package/dist/shell/assets/sign-in-policy-page-BJN_TfWv.js +0 -2
- package/dist/shell/assets/start-block-queries-nfDrEnQD.js +0 -2
- package/dist/shell/assets/step-catalog-QhL8OPW4.js +0 -2
- package/dist/shell/assets/timeline-display-CbqpZrs6.js +0 -2
- package/dist/shell/assets/use-calendar-move-DJbTVBiR.js +0 -2
- package/dist/shell/assets/workflow-status-field-D4-yEdIA.js +0 -2
- package/dist/shell/assets/workflow-workbench-BBRBLI2p.js +0 -4
- package/dist/shell-source-maps/assets/record-page-C7tfbihg.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/invitations/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "email" | "revoke" | "until" | "invite" | "expired" | "sendAgain" | "passLinkOn", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "email" | "revoke" | "until" | "invite" | "expired" | "sendAgain" | "passLinkOn", 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/mailbox/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "tryAgain" | "missing" | "expired" | "missingTitle" | "expiredTitle" | "signInOnly" | "connect" | "connectAgain" | "defaultSender" | "senderNotAvailable" | "chooseSender" | "senderNotYours" | "accountPage" | "sendersNotRead", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "tryAgain" | "missing" | "expired" | "missingTitle" | "expiredTitle" | "signInOnly" | "connect" | "connectAgain" | "defaultSender" | "senderNotAvailable" | "chooseSender" | "senderNotYours" | "accountPage" | "sendersNotRead", 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/mentions/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "couldNotSearch" | "peopleToMention" | "noOneFound", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "couldNotSearch" | "peopleToMention" | "noOneFound", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -4,7 +4,7 @@ export declare const customerAt: (index: number) => {
|
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
country: "GB" | "NL" | "DE";
|
|
7
|
-
city: NonNullable<"
|
|
7
|
+
city: NonNullable<"Rotterdam" | "Eindhoven" | "Utrecht" | "Zwolle" | "Breda" | "Groningen" | "Düsseldorf" | "Köln" | "Stuttgart" | "Hamburg" | "Münster" | "Nürnberg" | "Leeds" | "Bristol" | "Birmingham" | "Manchester" | "Sheffield">;
|
|
8
8
|
};
|
|
9
9
|
export type Customer = ReturnType<typeof customerAt>;
|
|
10
10
|
//#endregion
|
package/dist/mocks/invoices.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export declare const invoiceAt: (index: number) => {
|
|
|
19
19
|
id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
country: "GB" | "NL" | "DE";
|
|
22
|
-
city: NonNullable<"
|
|
22
|
+
city: NonNullable<"Rotterdam" | "Eindhoven" | "Utrecht" | "Zwolle" | "Breda" | "Groningen" | "Düsseldorf" | "Köln" | "Stuttgart" | "Hamburg" | "Münster" | "Nürnberg" | "Leeds" | "Bristol" | "Birmingham" | "Manchester" | "Sheffield">;
|
|
23
23
|
};
|
|
24
|
-
status: "
|
|
24
|
+
status: "draft" | "sent" | "paid" | "overdue";
|
|
25
25
|
issuedAt: number;
|
|
26
26
|
dueAt: number;
|
|
27
27
|
currency: string;
|
package/dist/mocks/orders.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ export declare const orderAt: (index: number) => {
|
|
|
10
10
|
name: string;
|
|
11
11
|
};
|
|
12
12
|
country: "GB" | "NL" | "DE";
|
|
13
|
-
status: "
|
|
13
|
+
status: "cancelled" | "draft" | "confirmed" | "picking" | "shipped" | "delivered";
|
|
14
14
|
totalCents: number;
|
|
15
|
-
discount: 0 |
|
|
15
|
+
discount: 0 | 15 | 10 | 5;
|
|
16
16
|
paid: boolean;
|
|
17
17
|
createdAt: number;
|
|
18
18
|
owner: "u2" | "u5" | "u8";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/notifications/bell/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "tryAgain" | "unread" | "empty" | "showMore" | "notifications" | "notificationsUnread" | "notificationsManyUnread" | "markAllRead" | "loadFailed" | "pushOff" | "turnOn" | "pushOn" | "turnOff" | "pushBlocked" | "pushRegistrationFailed" | "pushNoTokenApns" | "pushNoTokenFcm" | "pushRefused" | "pushFailed" | "pushOffNotStored", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "tryAgain" | "unread" | "empty" | "showMore" | "notifications" | "notificationsUnread" | "notificationsManyUnread" | "markAllRead" | "loadFailed" | "pushOff" | "turnOn" | "pushOn" | "turnOff" | "pushBlocked" | "pushRegistrationFailed" | "pushNoTokenApns" | "pushNoTokenFcm" | "pushRefused" | "pushFailed" | "pushOffNotStored", 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/organizations/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "owner" | "name" | "invalidLink" | "invitations" | "organizations" | "loading" | "tryAgain" | "password" | "passwordOptional" | "signOut" | "yourName" | "admin" | "member" | "cancel" | "accept" | "join" | "leave" | "remove" | "guestLinks" | "open" | "organization" | "create" | "members" | "joining" | "save" | "until" | "current" | "delete" | "manageOrganizations" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "otherAddress" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "details" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteTitle" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations" | "word" | "words" | "createTitle" | "createButton" | "creating" | "nameNeeded" | "signedInAs" | "invitedTitle" | "invitedSubtitle" | "createInstead" | "backToInvitations" | "notInAnyTitle" | "notInAny" | "invitedSubtitleJoinOnly" | "expires" | "invitationsNotLoaded" | "invitationsNotLoadedHelp", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "owner" | "name" | "invalidLink" | "invitations" | "organizations" | "loading" | "tryAgain" | "password" | "passwordOptional" | "signOut" | "yourName" | "admin" | "member" | "cancel" | "accept" | "join" | "leave" | "remove" | "guestLinks" | "open" | "organization" | "create" | "members" | "joining" | "save" | "until" | "current" | "delete" | "manageOrganizations" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "otherAddress" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "details" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteTitle" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations" | "word" | "words" | "createTitle" | "createButton" | "creating" | "nameNeeded" | "signedInAs" | "invitedTitle" | "invitedSubtitle" | "createInstead" | "backToInvitations" | "notInAnyTitle" | "notInAny" | "invitedSubtitleJoinOnly" | "expires" | "invitationsNotLoaded" | "invitationsNotLoadedHelp", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/primitives/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "next" | "loading" | "remove" | "close" | "previous" | "dragToClose", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "next" | "loading" | "remove" | "close" | "previous" | "dragToClose", 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/record-view/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "saving" | "actions" | "tabs" | "headingCount" | "headingCountRecords" | "savedDifferent" | "example" | "savedThis" | "keepMine" | "useTheirs" | "savedAgo" | "notSavedRetrying" | "lastEditedBy" | "lastUpdated" | "viewing", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "saving" | "actions" | "tabs" | "headingCount" | "headingCountRecords" | "savedDifferent" | "example" | "savedThis" | "keepMine" | "useTheirs" | "savedAgo" | "notSavedRetrying" | "lastEditedBy" | "lastUpdated" | "viewing", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../typing/typing.js";
|
|
2
|
+
import { createTypersStore } from "../typing/typers-store.js";
|
|
2
3
|
//#region src/relay/relay-store.ts
|
|
3
4
|
/** How many of the page's own sent messages the store remembers, so the unread count leaves them out. */
|
|
4
5
|
const ownKept = 50;
|
|
@@ -7,9 +8,7 @@ const ownKept = 50;
|
|
|
7
8
|
* runs out, and the notices and reconnects, handed to whoever listens. `handlers` follows the relay; `stop` ends it.
|
|
8
9
|
*/
|
|
9
10
|
const createRelayStore = () => {
|
|
10
|
-
|
|
11
|
-
let timer;
|
|
12
|
-
const listeners = /* @__PURE__ */ new Set();
|
|
11
|
+
const typers = createTypersStore();
|
|
13
12
|
const noticeListeners = /* @__PURE__ */ new Set();
|
|
14
13
|
const resyncListeners = /* @__PURE__ */ new Set();
|
|
15
14
|
const own = [];
|
|
@@ -19,17 +18,9 @@ const createRelayStore = () => {
|
|
|
19
18
|
set.add(listener);
|
|
20
19
|
return () => void set.delete(listener);
|
|
21
20
|
};
|
|
22
|
-
const set = (next) => {
|
|
23
|
-
if (next === typers) return;
|
|
24
|
-
typers = next;
|
|
25
|
-
for (const listener of [...listeners]) listener();
|
|
26
|
-
clearTimeout(timer);
|
|
27
|
-
const at = nextExpiry(typers);
|
|
28
|
-
if (at !== void 0) timer = setTimeout(() => set(withoutExpired(typers, Date.now())), Math.max(0, at - Date.now()));
|
|
29
|
-
};
|
|
30
21
|
return {
|
|
31
|
-
typers:
|
|
32
|
-
subscribe:
|
|
22
|
+
typers: typers.typers,
|
|
23
|
+
subscribe: typers.subscribe,
|
|
33
24
|
onNotice: (listener) => listen(noticeListeners, listener),
|
|
34
25
|
onResync: (listener) => listen(resyncListeners, listener),
|
|
35
26
|
/** Remembers a message the page itself sent, by key, which no unread count takes; only the latest few. */
|
|
@@ -58,19 +49,21 @@ const createRelayStore = () => {
|
|
|
58
49
|
*/
|
|
59
50
|
shows: (notice) => viewed.size === 0 || viewed.has(notice.channel) || notice.channel === `${notice.resource}/${notice.key}`,
|
|
60
51
|
handlers: {
|
|
61
|
-
onEvent: (event) =>
|
|
52
|
+
onEvent: (event) => {
|
|
53
|
+
if (event.event === "typing" && event.channel !== void 0) typers.heard(event.channel, event.from.user, event.payload);
|
|
54
|
+
},
|
|
62
55
|
onNotice: (notice) => {
|
|
63
56
|
for (const listener of [...noticeListeners]) listener(notice);
|
|
64
57
|
},
|
|
65
58
|
onStatus: (status) => {
|
|
66
|
-
if (status !== "open")
|
|
59
|
+
if (status !== "open") typers.clear();
|
|
67
60
|
},
|
|
68
61
|
onResync: () => {
|
|
69
|
-
|
|
62
|
+
typers.clear();
|
|
70
63
|
for (const listener of [...resyncListeners]) listener();
|
|
71
64
|
}
|
|
72
65
|
},
|
|
73
|
-
stop:
|
|
66
|
+
stop: typers.stop
|
|
74
67
|
};
|
|
75
68
|
};
|
|
76
69
|
//#endregion
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
//#region src/relay/typing-line.d.ts
|
|
2
|
-
/** The line
|
|
3
|
-
export declare const typingText: (names: readonly string[]) => string;
|
|
4
|
-
/**
|
|
5
|
-
* The line above a conversation's box saying who else types on its channel, by the names of the organization's members
|
|
6
|
-
* the page already has; it keeps its height while nobody does, so the box does not move.
|
|
7
|
-
*/
|
|
2
|
+
/** The line above a conversation's box saying who else types on its relay channel, outside threads (see `TypingNames`). */
|
|
8
3
|
export declare const TypingLine: ({ channel }: {
|
|
9
4
|
channel: string;
|
|
10
5
|
}) => import("react").JSX.Element;
|
|
@@ -1,30 +1,8 @@
|
|
|
1
1
|
import { useTypers } from "./relay-context.js";
|
|
2
|
-
import {
|
|
3
|
-
import { text } from "../app/conversation-page/messages.js";
|
|
2
|
+
import { TypingNames } from "../typing/typing-names.js";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
//#region src/relay/typing-line.tsx
|
|
6
|
-
/** The line
|
|
7
|
-
const
|
|
8
|
-
if (names.length === 0) return "";
|
|
9
|
-
if (names.length === 1) return text("typingOne", { name: names[0] });
|
|
10
|
-
if (names.length === 2) return text("typingTwo", {
|
|
11
|
-
first: names[0],
|
|
12
|
-
second: names[1]
|
|
13
|
-
});
|
|
14
|
-
return text("typingMany");
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* The line above a conversation's box saying who else types on its channel, by the names of the organization's members
|
|
18
|
-
* the page already has; it keeps its height while nobody does, so the box does not move.
|
|
19
|
-
*/
|
|
20
|
-
const TypingLine = ({ channel }) => {
|
|
21
|
-
const { member } = useMembers();
|
|
22
|
-
const names = useTypers(channel).map((id) => member(id)?.name ?? text("someone"));
|
|
23
|
-
return /* @__PURE__ */ jsx("p", {
|
|
24
|
-
className: "h-5 shrink-0 truncate px-4 text-xs text-muted-foreground",
|
|
25
|
-
"aria-live": "polite",
|
|
26
|
-
children: typingText(names)
|
|
27
|
-
});
|
|
28
|
-
};
|
|
5
|
+
/** The line above a conversation's box saying who else types on its relay channel, outside threads (see `TypingNames`). */
|
|
6
|
+
const TypingLine = ({ channel }) => /* @__PURE__ */ jsx(TypingNames, { users: useTypers(channel) });
|
|
29
7
|
//#endregion
|
|
30
|
-
export { TypingLine
|
|
8
|
+
export { TypingLine };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ConversationTyping } from "../typing/conversation-typing.js";
|
|
2
|
+
//#region src/relay/use-relay-typing.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* A conversation's typing over the record's channel `<resource>/<key>` of the realtime relay, which the page joins
|
|
5
|
+
* (`useViewChannel`); undefined without a channel, or without the relay, such as for a visitor.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useRelayTyping: (channel: string | undefined) => ConversationTyping | undefined;
|
|
8
|
+
//#endregion
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { typersOn, typingEvent, typingSpot } from "../typing/typing.js";
|
|
2
|
+
import { useRelay } from "./relay-context.js";
|
|
3
|
+
import { useCallback, useMemo, useSyncExternalStore } from "react";
|
|
4
|
+
import { RelayRefusal } from "@protobase/client";
|
|
5
|
+
//#region src/relay/use-relay-typing.ts
|
|
6
|
+
const dropRefusal = (error) => {
|
|
7
|
+
if (error instanceof RelayRefusal) return;
|
|
8
|
+
throw error;
|
|
9
|
+
};
|
|
10
|
+
const nobody = () => () => {};
|
|
11
|
+
const none = () => void 0;
|
|
12
|
+
/**
|
|
13
|
+
* A conversation's typing over the record's channel `<resource>/<key>` of the realtime relay, which the page joins
|
|
14
|
+
* (`useViewChannel`); undefined without a channel, or without the relay, such as for a visitor.
|
|
15
|
+
*/
|
|
16
|
+
const useRelayTyping = (channel) => {
|
|
17
|
+
const context = useRelay();
|
|
18
|
+
const typers = useSyncExternalStore(context?.store.subscribe ?? nobody, context?.store.typers ?? none, context?.store.typers ?? none);
|
|
19
|
+
const send = useCallback((payload) => {
|
|
20
|
+
if (!context || channel === void 0 || !context.relay.joined(channel)) return false;
|
|
21
|
+
context.relay.send(channel, typingEvent, payload).catch(dropRefusal);
|
|
22
|
+
return true;
|
|
23
|
+
}, [context, channel]);
|
|
24
|
+
return useMemo(() => {
|
|
25
|
+
if (!context || !typers || channel === void 0) return;
|
|
26
|
+
return {
|
|
27
|
+
typers: (thread) => typersOn(typers, typingSpot(channel, thread), context.me),
|
|
28
|
+
send
|
|
29
|
+
};
|
|
30
|
+
}, [
|
|
31
|
+
context,
|
|
32
|
+
typers,
|
|
33
|
+
channel,
|
|
34
|
+
send
|
|
35
|
+
]);
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { useRelayTyping };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
//#region src/relay/use-typing-sender.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* Tells the others on the channel while the reader types (see `typingSender`): `onText` with
|
|
4
|
-
* changes, `onSent` once a message went. Nothing without the relay, or before the channel is joined.
|
|
3
|
+
* Tells the others on the relay's channel while the reader types, outside threads (see `typingSender`): `onText` with
|
|
4
|
+
* the box's text as it changes, `onSent` once a message went. Nothing without the relay, or before the channel is joined.
|
|
5
5
|
*/
|
|
6
6
|
export declare const useTypingSender: (channel: string) => {
|
|
7
7
|
onText: (text: string) => void;
|
|
8
8
|
onSent: () => void;
|
|
9
9
|
dispose: () => void;
|
|
10
|
+
} | {
|
|
11
|
+
onText: () => void;
|
|
12
|
+
onSent: () => void;
|
|
10
13
|
};
|
|
11
14
|
//#endregion
|
|
@@ -1,32 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useEffect, useMemo } from "react";
|
|
4
|
-
import { RelayRefusal } from "@protobase/client";
|
|
1
|
+
import { useTypingBox } from "../typing/use-typing-box.js";
|
|
2
|
+
import { useRelayTyping } from "./use-relay-typing.js";
|
|
5
3
|
//#region src/relay/use-typing-sender.ts
|
|
6
|
-
const clock = {
|
|
7
|
-
now: () => Date.now(),
|
|
8
|
-
setTimer: (run, ms) => {
|
|
9
|
-
const timer = setTimeout(run, ms);
|
|
10
|
-
return () => clearTimeout(timer);
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
const dropRefusal = (error) => {
|
|
14
|
-
if (error instanceof RelayRefusal) return;
|
|
15
|
-
throw error;
|
|
16
|
-
};
|
|
17
4
|
/**
|
|
18
|
-
* Tells the others on the channel while the reader types (see `typingSender`): `onText` with
|
|
19
|
-
* changes, `onSent` once a message went. Nothing without the relay, or before the channel is joined.
|
|
5
|
+
* Tells the others on the relay's channel while the reader types, outside threads (see `typingSender`): `onText` with
|
|
6
|
+
* the box's text as it changes, `onSent` once a message went. Nothing without the relay, or before the channel is joined.
|
|
20
7
|
*/
|
|
21
|
-
const useTypingSender = (channel) =>
|
|
22
|
-
const context = useRelay();
|
|
23
|
-
const sender = useMemo(() => typingSender((typing) => {
|
|
24
|
-
if (!context?.relay.joined(channel)) return false;
|
|
25
|
-
context.relay.send(channel, typingEvent, { typing }).catch(dropRefusal);
|
|
26
|
-
return true;
|
|
27
|
-
}, clock), [context, channel]);
|
|
28
|
-
useEffect(() => () => sender.onSent(), [sender]);
|
|
29
|
-
return sender;
|
|
30
|
-
};
|
|
8
|
+
const useTypingSender = (channel) => useTypingBox(useRelayTyping(channel), null);
|
|
31
9
|
//#endregion
|
|
32
10
|
export { useTypingSender };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:protobase-app":!0})}catch{}})();import{o as e}from"./rolldown-runtime-DFwUHQ4A.js";import{t}from"./react-CuiNlnus.js";import{
|
|
2
|
-
//# debugId=
|
|
1
|
+
(function(){try{var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:protobase-app":!0})}catch{}})();import{o as e}from"./rolldown-runtime-DFwUHQ4A.js";import{t}from"./react-CuiNlnus.js";import{Aa as n,Bs as r,Vs as i,ds as a,ws as o}from"./app-1IZYQXW2.js";import{t as s}from"./render-node-qPc-4XAK.js";var c=e(t(),1),l=({tab:e})=>{let t=a();return t?(0,c.jsx)(n,{route:{...e&&{tab:e},pathOf:r},children:(0,c.jsx)(s,{node:t.tree})}):(0,c.jsx)(o,{title:i(`noAccount`),children:i(`noAccountDescription`)})};export{l as AccountPage};
|
|
2
|
+
//# debugId=d2da5655-0f58-4275-a3bc-0ec7288ef6c0
|