@protobase/ui 0.117.4 → 0.117.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/messages.d.ts +2 -2
- package/dist/app/app.js +40 -34
- package/dist/app/charts/messages.d.ts +2 -2
- package/dist/app/confirm-sign-in-messages.d.ts +2 -2
- package/dist/app/conversation/thread-state.d.ts +1 -1
- 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/export/messages.d.ts +2 -2
- package/dist/app/field-messages.d.ts +2 -2
- package/dist/app/field-types/custom-step-container/messages.d.ts +2 -2
- package/dist/app/field-types/json/messages.d.ts +2 -2
- package/dist/app/field-types/runner-install/messages.d.ts +2 -2
- package/dist/app/field-types/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-messages.d.ts +2 -2
- package/dist/app/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/router.d.ts +2 -0
- package/dist/app/router.js +23 -10
- 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/use-app-address.d.ts +3 -1
- package/dist/app/use-app-address.js +5 -3
- package/dist/app-shell/app-shell.d.ts +3 -1
- package/dist/app-shell/app-shell.js +38 -5
- package/dist/app-shell/drawer.d.ts +10 -2
- package/dist/app-shell/drawer.js +16 -4
- package/dist/app-shell/edge-swipe.d.ts +49 -0
- package/dist/app-shell/edge-swipe.js +39 -0
- package/dist/app-shell/messages.d.ts +2 -2
- package/dist/app-shell/top-bar.js +1 -1
- package/dist/app-shell/use-edge-swipe.d.ts +25 -0
- package/dist/app-shell/use-edge-swipe.js +128 -0
- package/dist/assistant-dock/messages.d.ts +2 -2
- package/dist/auth/messages.d.ts +2 -2
- package/dist/calls/messages.d.ts +2 -2
- package/dist/chat/messages.d.ts +2 -2
- package/dist/data-grid/messages.d.ts +2 -2
- package/dist/filter-panel/messages.d.ts +2 -2
- package/dist/format/messages.d.ts +2 -2
- package/dist/forms/messages.d.ts +2 -2
- package/dist/invitations/messages.d.ts +2 -2
- package/dist/mailbox/messages.d.ts +2 -2
- package/dist/mocks/invoices.d.ts +1 -1
- package/dist/mocks/orders.d.ts +1 -1
- package/dist/mocks/stockMoves.d.ts +1 -1
- package/dist/notifications/bell/messages.d.ts +2 -2
- package/dist/organizations/messages.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/plugins/messages.d.ts +2 -2
- package/dist/primitives/messages.d.ts +2 -2
- package/dist/primitives/use-drawer-drag.d.ts +2 -0
- package/dist/primitives/use-drawer-drag.js +18 -6
- package/dist/record-view/messages.d.ts +2 -2
- package/dist/shell/assets/{account-page-BKgO5U-X.js → account-page-Bqb6zGSu.js} +2 -2
- package/dist/shell/assets/app-DzYUvsKN.js +34 -0
- package/dist/shell/assets/{assistant-shell-DuqVM626.js → assistant-shell-DOwiIEWE.js} +2 -2
- package/dist/shell/assets/{board-display-DddxG38M.js → board-display-BmqzVMBI.js} +2 -2
- package/dist/shell/assets/{calendar-display-zLyE7rhF.js → calendar-display-CigAD33q.js} +2 -2
- package/dist/shell/assets/{call-rings-uudxTLcY.js → call-rings-CTIiSB__.js} +2 -2
- package/dist/shell/assets/{calls-7JJIY2v0.js → calls-D7-msX2f.js} +2 -2
- package/dist/shell/assets/{circle-alert-CoX9nLsD.js → circle-alert-BBrhHhh-.js} +2 -2
- package/dist/shell/assets/{composed-page-DnCccgH0.js → composed-page-CnajGi9M.js} +2 -2
- package/dist/shell/assets/{composer-section-84NNbJ4X.js → composer-section-CEiUZctQ.js} +2 -2
- package/dist/shell/assets/{connect-route-DXEPuBjl.js → connect-route-B1pwUNo5.js} +2 -2
- package/dist/shell/assets/{copy-field-BlooSgn7.js → copy-field-DSicODbK.js} +2 -2
- package/dist/shell/assets/{create-route-BNcDypty.js → create-route-IrF4K8-E.js} +2 -2
- package/dist/shell/assets/{custom-step-container-field-CyvWLsF0.js → custom-step-container-field-DGBCh3aW.js} +2 -2
- package/dist/shell/assets/{embedded-list-B8K84K5b.js → embedded-list-y9Zllidc.js} +3 -3
- package/dist/shell/assets/{export-dialog-IWSkZoEf.js → export-dialog-C7aFNN_I.js} +2 -2
- package/dist/shell/assets/{graph-view-D6ueoFs9.js → graph-view-DIEwXkMm.js} +2 -2
- package/dist/shell/assets/{group-donut-BnDzQhIS.js → group-donut-No1GKRrh.js} +2 -2
- package/dist/shell/assets/{guest-call-page-IwcmjkTm.js → guest-call-page-C0GElAN6.js} +3 -3
- package/dist/shell/assets/{html-viewer-DjlpP883.js → html-viewer-C3HC5LlC.js} +2 -2
- package/dist/shell/assets/{import-dialog-DrDyc76O.js → import-dialog-e6K5QITR.js} +2 -2
- package/dist/shell/assets/{import-table-dialog-DYBhyBp7.js → import-table-dialog-BGu9aIO6.js} +2 -2
- package/dist/shell/assets/{index-fxThWO9s.js → index-B_wfA6Kh.js} +1 -1
- package/dist/shell/assets/{invitations-page-BmkBa0fB.js → invitations-page-Dc_YyiPd.js} +2 -2
- package/dist/shell/assets/{layout-grid-DGOCHAPH.js → layout-grid-hthVLoXp.js} +2 -2
- package/dist/shell/assets/{legend-item-DxdIZ1pf.js → legend-item-D545faKl.js} +2 -2
- package/dist/shell/assets/{list-page-BhWOEaP6.js → list-page-LW7JjE8M.js} +4 -4
- package/dist/shell/assets/{maplibre-k6sh-ts2.js → maplibre-BlAV3xhB.js} +2 -2
- package/dist/shell/assets/{markdown-content-vMCleJqq.js → markdown-content-D5FzgqvR.js} +2 -2
- package/dist/shell/assets/{members-page-NrAKIuOb.js → members-page-BacI69K5.js} +2 -2
- package/dist/shell/assets/{messages-Cjox3dPW.js → messages-xzaxaGR2.js} +2 -2
- package/dist/shell/assets/{organization-page-HRjNwewQ.js → organization-page-DdeKAkoY.js} +2 -2
- package/dist/shell/assets/{organizations-page-D-Is15Iq.js → organizations-page-CIm5yo6I.js} +2 -2
- package/dist/shell/assets/{pending-invitation-row-MATld1YG.js → pending-invitation-row-kfzdAW1e.js} +2 -2
- package/dist/shell/assets/{period-chart-xv3RhzW9.js → period-chart-CaH4lnzr.js} +2 -2
- package/dist/shell/assets/{person-row-DPsUV5XA.js → person-row-CR5zNgI0.js} +2 -2
- package/dist/shell/assets/{public-form-page-CK0NgO4L.js → public-form-page-DMT_-q3R.js} +2 -2
- package/dist/shell/assets/{record-lines-CDGK7ZyR.js → record-lines-BbEMwyZz.js} +2 -2
- package/dist/shell/assets/{record-map-C8QpQBwW.js → record-map-Bgjc6l6v.js} +2 -2
- package/dist/shell/assets/{record-opens-jhy0UcRX.js → record-opens-BDYrsPg7.js} +2 -2
- package/dist/shell/assets/{record-page-BQtAOfUN.js → record-page-CTlLVFMY.js} +3 -3
- package/dist/shell/assets/{record-preview-Cnz2q7jF.js → record-preview-D69nznsk.js} +2 -2
- package/dist/shell/assets/{records-map-Cpt0N4k2.js → records-map-Cjs4-0-T.js} +2 -2
- package/dist/shell/assets/{render-node-CQddajXn.js → render-node-p5OrHoJa.js} +3 -3
- package/dist/shell/assets/{reorder-button-2tg9wf42.js → reorder-button-D6e3M-BK.js} +2 -2
- package/dist/shell/assets/{run-trace-view-C8KR_auS.js → run-trace-view-CZkpU6FK.js} +2 -2
- package/dist/shell/assets/{runner-install-field-Dfnq3Rqy.js → runner-install-field-Bg2frYus.js} +2 -2
- package/dist/shell/assets/{runtime-update-BkP2MEsM.js → runtime-update-bb8Mych_.js} +2 -2
- package/dist/shell/assets/{shared-protobase-ui-CbwI3ULn.js → shared-protobase-ui-CDq17YBF.js} +1 -1
- package/dist/shell/assets/{sheet-source-Bsx98FTk.js → sheet-source-Cn2x0B7b.js} +2 -2
- package/dist/shell/assets/{sign-in-policy-page-hgTJtin9.js → sign-in-policy-page-B5opy3S1.js} +2 -2
- package/dist/shell/assets/{start-block-queries-Cmx56hgU.js → start-block-queries-DoDAw6-T.js} +2 -2
- package/dist/shell/assets/{step-catalog-BJyr7gmH.js → step-catalog-CtopLqDZ.js} +2 -2
- package/dist/shell/assets/{step-panel-D-jkWWLs.js → step-panel-BPHKL3JP.js} +2 -2
- package/dist/shell/assets/{timeline-display-FKWlqzyN.js → timeline-display-Df0FwDTq.js} +2 -2
- package/dist/shell/assets/{trash-BNguTSbA.js → trash-DvIkRk0v.js} +2 -2
- package/dist/shell/assets/{update-set-CaKid6Bl.js → update-set-C6scM9Py.js} +2 -2
- package/dist/shell/assets/{use-calendar-move-UCTCC4Mu.js → use-calendar-move-DcZxW6eO.js} +2 -2
- package/dist/shell/assets/{use-display-rows-BeUN0NEn.js → use-display-rows-9Pz57Zus.js} +2 -2
- package/dist/shell/assets/{use-paged-search-33KMMcrt.js → use-paged-search-CHxoPbgl.js} +2 -2
- package/dist/shell/assets/{use-run-trace-Bx9X8OOk.js → use-run-trace-DdUrSC__.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-BiyvMPJr.js → use-workflow-page-BqleruNg.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-Dv4j1fdw.js → use-workflow-types-DUEWsZgC.js} +2 -2
- package/dist/shell/assets/{workflow-canvas-CXQvv_wT.js → workflow-canvas-cQ7U4Mgc.js} +2 -2
- package/dist/shell/assets/{workflow-field-f3yIRcdj.js → workflow-field-c0IiPQaY.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-Dkn-LYZl.js → workflow-graph-editor-BAwGZFkg.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-Btst6LE9.js → workflow-run-field-Y49d5OnF.js} +3 -3
- package/dist/shell/assets/{workflow-status-field-DwvvkBQe.js → workflow-status-field-fYllRt7c.js} +2 -2
- package/dist/shell/assets/{workflow-workbench-KEqXjmsY.js → workflow-workbench-Bvx_2IBB.js} +2 -2
- package/dist/shell/index.html +3 -3
- package/dist/shell/protobase.shell.json +3 -3
- package/dist/shell/protobase.sw.js +2 -2
- package/dist/shell-source-maps/assets/{account-page-BKgO5U-X.js.map → account-page-Bqb6zGSu.js.map} +1 -1
- package/dist/shell-source-maps/assets/app-DzYUvsKN.js.map +1 -0
- package/dist/shell-source-maps/assets/{assistant-shell-DuqVM626.js.map → assistant-shell-DOwiIEWE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-DddxG38M.js.map → board-display-BmqzVMBI.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-zLyE7rhF.js.map → calendar-display-CigAD33q.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-uudxTLcY.js.map → call-rings-CTIiSB__.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-7JJIY2v0.js.map → calls-D7-msX2f.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-CoX9nLsD.js.map → circle-alert-BBrhHhh-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-DnCccgH0.js.map → composed-page-CnajGi9M.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-84NNbJ4X.js.map → composer-section-CEiUZctQ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-DXEPuBjl.js.map → connect-route-B1pwUNo5.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-BlooSgn7.js.map → copy-field-DSicODbK.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-BNcDypty.js.map → create-route-IrF4K8-E.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-CyvWLsF0.js.map → custom-step-container-field-DGBCh3aW.js.map} +1 -1
- package/dist/shell-source-maps/assets/{embedded-list-B8K84K5b.js.map → embedded-list-y9Zllidc.js.map} +1 -1
- package/dist/shell-source-maps/assets/{export-dialog-IWSkZoEf.js.map → export-dialog-C7aFNN_I.js.map} +1 -1
- package/dist/shell-source-maps/assets/{graph-view-D6ueoFs9.js.map → graph-view-DIEwXkMm.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-BnDzQhIS.js.map → group-donut-No1GKRrh.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-IwcmjkTm.js.map → guest-call-page-C0GElAN6.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-DjlpP883.js.map → html-viewer-C3HC5LlC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-DrDyc76O.js.map → import-dialog-e6K5QITR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-DYBhyBp7.js.map → import-table-dialog-BGu9aIO6.js.map} +1 -1
- package/dist/shell-source-maps/assets/{invitations-page-BmkBa0fB.js.map → invitations-page-Dc_YyiPd.js.map} +1 -1
- package/dist/shell-source-maps/assets/{layout-grid-DGOCHAPH.js.map → layout-grid-hthVLoXp.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item-DxdIZ1pf.js.map → legend-item-D545faKl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{list-page-BhWOEaP6.js.map → list-page-LW7JjE8M.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-k6sh-ts2.js.map → maplibre-BlAV3xhB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{markdown-content-vMCleJqq.js.map → markdown-content-D5FzgqvR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{members-page-NrAKIuOb.js.map → members-page-BacI69K5.js.map} +1 -1
- package/dist/shell-source-maps/assets/{messages-Cjox3dPW.js.map → messages-xzaxaGR2.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organization-page-HRjNwewQ.js.map → organization-page-DdeKAkoY.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organizations-page-D-Is15Iq.js.map → organizations-page-CIm5yo6I.js.map} +1 -1
- package/dist/shell-source-maps/assets/{pending-invitation-row-MATld1YG.js.map → pending-invitation-row-kfzdAW1e.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-xv3RhzW9.js.map → period-chart-CaH4lnzr.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-DPsUV5XA.js.map → person-row-CR5zNgI0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-CK0NgO4L.js.map → public-form-page-DMT_-q3R.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-CDGK7ZyR.js.map → record-lines-BbEMwyZz.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-C8QpQBwW.js.map → record-map-Bgjc6l6v.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-jhy0UcRX.js.map → record-opens-BDYrsPg7.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-page-BQtAOfUN.js.map → record-page-CTlLVFMY.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-preview-Cnz2q7jF.js.map → record-preview-D69nznsk.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-Cpt0N4k2.js.map → records-map-Cjs4-0-T.js.map} +1 -1
- package/dist/shell-source-maps/assets/{render-node-CQddajXn.js.map → render-node-p5OrHoJa.js.map} +1 -1
- package/dist/shell-source-maps/assets/{reorder-button-2tg9wf42.js.map → reorder-button-D6e3M-BK.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-C8KR_auS.js.map → run-trace-view-CZkpU6FK.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-Dfnq3Rqy.js.map → runner-install-field-Bg2frYus.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-BkP2MEsM.js.map → runtime-update-bb8Mych_.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sheet-source-Bsx98FTk.js.map → sheet-source-Cn2x0B7b.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-hgTJtin9.js.map → sign-in-policy-page-B5opy3S1.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-Cmx56hgU.js.map → start-block-queries-DoDAw6-T.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-BJyr7gmH.js.map → step-catalog-CtopLqDZ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-D-jkWWLs.js.map → step-panel-BPHKL3JP.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-FKWlqzyN.js.map → timeline-display-Df0FwDTq.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-BNguTSbA.js.map → trash-DvIkRk0v.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-CaKid6Bl.js.map → update-set-C6scM9Py.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-UCTCC4Mu.js.map → use-calendar-move-DcZxW6eO.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-BeUN0NEn.js.map → use-display-rows-9Pz57Zus.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-paged-search-33KMMcrt.js.map → use-paged-search-CHxoPbgl.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-Bx9X8OOk.js.map → use-run-trace-DdUrSC__.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-BiyvMPJr.js.map → use-workflow-page-BqleruNg.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-Dv4j1fdw.js.map → use-workflow-types-DUEWsZgC.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-CXQvv_wT.js.map → workflow-canvas-cQ7U4Mgc.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-f3yIRcdj.js.map → workflow-field-c0IiPQaY.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-Dkn-LYZl.js.map → workflow-graph-editor-BAwGZFkg.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-Btst6LE9.js.map → workflow-run-field-Y49d5OnF.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-status-field-DwvvkBQe.js.map → workflow-status-field-fYllRt7c.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-workbench-KEqXjmsY.js.map → workflow-workbench-Bvx_2IBB.js.map} +1 -1
- package/dist/status/messages.d.ts +2 -2
- package/dist/users/messages.d.ts +2 -2
- package/package.json +5 -5
- package/dist/shell/assets/app-D5KGkwJq.js +0 -34
- package/dist/shell-source-maps/assets/app-D5KGkwJq.js.map +0 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createContext, useContext, useEffect } from "react";
|
|
2
|
+
//#region src/app-shell/edge-swipe.ts
|
|
3
|
+
/**
|
|
4
|
+
* The one place the edge swipe is decided, on a phone: back where the trail has a step back, the sidebar where there is
|
|
5
|
+
* neither a step back nor a bottom bar and the drawer is closed, and nothing otherwise, as on a tab's page in More page
|
|
6
|
+
* mode or with the drawer open. A desktop has no edge swipe.
|
|
7
|
+
*/
|
|
8
|
+
const edgeSwipeAction = ({ desktop, back, bottomBar, drawerOpen }) => desktop ? "none" : back ? "back" : !bottomBar && !drawerOpen ? "sidebar" : "none";
|
|
9
|
+
/** The native plugin a host app offers to learn the page's edge swipe ahead of each gesture, as its own uses the edge. */
|
|
10
|
+
const edgeSwipePlugin = "ProtobaseEdgeSwipe";
|
|
11
|
+
/** The edge swipe the host app is told, where it does the back swipe itself (`nativeBack`) and what history has behind. */
|
|
12
|
+
const declaredEdgeSwipe = (action, { nativeBack, behindIsBack }) => action !== "back" ? action : nativeBack && behindIsBack ? "back" : "page";
|
|
13
|
+
/** The host app's edge swipe plugin, when its bridge offers one; `undefined` otherwise. */
|
|
14
|
+
const nativeEdgeSwipe = (bridge) => {
|
|
15
|
+
if (!bridge?.isPluginAvailable("ProtobaseEdgeSwipe")) return;
|
|
16
|
+
return { set: (action) => bridge.nativePromise(edgeSwipePlugin, "set", { action }) };
|
|
17
|
+
};
|
|
18
|
+
const NativeEdgeSwipeContext = createContext(void 0);
|
|
19
|
+
/**
|
|
20
|
+
* Whether a host app around the page can do the back swipe itself, such as with its web view's own back gesture, which
|
|
21
|
+
* shows the page behind; the shell then draws none where the entry behind is the trail's step back (`declaredEdgeSwipe`).
|
|
22
|
+
*/
|
|
23
|
+
const useNativeBackSwipe = () => Boolean(useContext(NativeEdgeSwipeContext));
|
|
24
|
+
/**
|
|
25
|
+
* Tells the host app the page's edge swipe as desired state, again on every navigation (`at`) and change, so the app
|
|
26
|
+
* knows at a gesture's start whether the edge is the page's, with no round trip.
|
|
27
|
+
*/
|
|
28
|
+
const useDeclaredEdgeSwipe = (action, at) => {
|
|
29
|
+
const native = useContext(NativeEdgeSwipeContext);
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
native?.set(action).catch(() => void 0);
|
|
32
|
+
}, [
|
|
33
|
+
native,
|
|
34
|
+
action,
|
|
35
|
+
at
|
|
36
|
+
]);
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { NativeEdgeSwipeContext, declaredEdgeSwipe, edgeSwipeAction, edgeSwipePlugin, nativeEdgeSwipe, useDeclaredEdgeSwipe, useNativeBackSwipe };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/app-shell/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "loading" | "signIn" | "resources" | "organizations" | "roles" | "signOut" | "system" | "theme" | "breadcrumb" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "light" | "dark" | "recent" | "couldNotLoad" | "viewAll" | "couldNotSearch", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "loading" | "signIn" | "resources" | "organizations" | "roles" | "signOut" | "system" | "theme" | "breadcrumb" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "light" | "dark" | "recent" | "couldNotLoad" | "viewAll" | "couldNotSearch", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
2
|
import { text } from "./messages.js";
|
|
3
3
|
import { Breadcrumb, inApp } from "./breadcrumb.js";
|
|
4
|
-
import "./leading-slot.js";
|
|
5
4
|
import { backTarget } from "./back-target.js";
|
|
5
|
+
import "./leading-slot.js";
|
|
6
6
|
import { brandBar } from "./brand-bar.js";
|
|
7
7
|
import { GlobalSearch } from "./global-search.js";
|
|
8
8
|
import { useLayoutEffect, useRef, useState } from "react";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DrawerControl } from "./drawer.js";
|
|
2
|
+
import { DeclaredEdgeSwipe } from "./edge-swipe.js";
|
|
3
|
+
import { RefObject } from "react";
|
|
4
|
+
//#region src/app-shell/use-edge-swipe.d.ts
|
|
5
|
+
/** How far from the screen's left edge a touch counts as a swipe from it, in CSS pixels, as iOS's own edge. */
|
|
6
|
+
export declare const edgeZone = 24;
|
|
7
|
+
type Parts = {
|
|
8
|
+
/** As the host app is told (`declaredEdgeSwipe`): this page does `sidebar` and `page`, its own way back. */
|
|
9
|
+
action: DeclaredEdgeSwipe;
|
|
10
|
+
/** Goes back a page, once the page has slid away. */
|
|
11
|
+
onBack: () => void;
|
|
12
|
+
/** Opens the drawer under the finger, which `drawer` then moves. */
|
|
13
|
+
openDrawer: () => void;
|
|
14
|
+
/** Closes the drawer at once, for a swipe let go or stopped before the drawer it opened is there to move. */
|
|
15
|
+
closeDrawer: () => void;
|
|
16
|
+
drawer: RefObject<DrawerControl | null>;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* A swipe from the left edge as `action` says (`edgeSwipeAction`), with the drawer engine's numbers: once past the slop
|
|
20
|
+
* and within its angle, `sidebar` opens the drawer under the finger and lets go as a drag on it does, and `back` brings
|
|
21
|
+
* a round back mark in from the edge beside the finger while the page stays where it is, and goes back when let go past
|
|
22
|
+
* half way or flicked, or the mark goes again. `none` leaves the edge alone, to whatever is around the page.
|
|
23
|
+
*/
|
|
24
|
+
export declare const useEdgeSwipe: ({ action, onBack, openDrawer, closeDrawer, drawer }: Parts) => void;
|
|
25
|
+
//#endregion
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { drawerSettleCurve, endsOpen, startsDrag } from "../primitives/drawer-math.js";
|
|
2
|
+
import { useEffect, useRef } from "react";
|
|
3
|
+
//#region src/app-shell/use-edge-swipe.ts
|
|
4
|
+
/** How far from the screen's left edge a touch counts as a swipe from it, in CSS pixels, as iOS's own edge. */
|
|
5
|
+
const edgeZone = 24;
|
|
6
|
+
/** How far the finger goes for a full way back, in CSS pixels: let go past half of it, or flicked, it goes back. */
|
|
7
|
+
const backReach = 120;
|
|
8
|
+
const backMark = (y) => {
|
|
9
|
+
const mark = document.createElement("div");
|
|
10
|
+
mark.setAttribute("aria-hidden", "true");
|
|
11
|
+
mark.style.cssText = `position:fixed;left:0;top:${y - 22}px;z-index:90;width:44px;height:44px;border-radius:9999px;display:flex;align-items:center;justify-content:center;background:var(--background);color:var(--foreground);box-shadow:var(--shadow-pop);pointer-events:none;transform:translateX(-48px);opacity:0`;
|
|
12
|
+
mark.innerHTML = "<svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m15 18-6-6 6-6\"/></svg>";
|
|
13
|
+
document.body.append(mark);
|
|
14
|
+
return mark;
|
|
15
|
+
};
|
|
16
|
+
const placeMark = (mark, progress, animate) => {
|
|
17
|
+
const shown = Math.min(progress, 1.15);
|
|
18
|
+
mark.style.transition = animate && !reducedMotion() ? `transform 350ms ${drawerSettleCurve}, opacity 350ms` : "none";
|
|
19
|
+
mark.style.transform = `translateX(${-48 + shown * 64}px) scale(${.8 + .2 * Math.min(progress, 1)})`;
|
|
20
|
+
mark.style.opacity = String(Math.min(progress * 1.5, 1));
|
|
21
|
+
};
|
|
22
|
+
const reducedMotion = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
23
|
+
const velocityOf = (samples, released) => {
|
|
24
|
+
const last = samples.at(-1);
|
|
25
|
+
if (!last) return 0;
|
|
26
|
+
const first = samples.find((sample) => released - sample.time <= 100) ?? last;
|
|
27
|
+
const elapsed = last.time - first.time;
|
|
28
|
+
return elapsed > 0 ? (last.dx - first.dx) / elapsed * 1e3 : 0;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* A swipe from the left edge as `action` says (`edgeSwipeAction`), with the drawer engine's numbers: once past the slop
|
|
32
|
+
* and within its angle, `sidebar` opens the drawer under the finger and lets go as a drag on it does, and `back` brings
|
|
33
|
+
* a round back mark in from the edge beside the finger while the page stays where it is, and goes back when let go past
|
|
34
|
+
* half way or flicked, or the mark goes again. `none` leaves the edge alone, to whatever is around the page.
|
|
35
|
+
*/
|
|
36
|
+
const useEdgeSwipe = ({ action, onBack, openDrawer, closeDrawer, drawer }) => {
|
|
37
|
+
const own = action === "sidebar" ? "sidebar" : action === "page" ? "back" : "none";
|
|
38
|
+
const latest = useRef({
|
|
39
|
+
action: own,
|
|
40
|
+
onBack,
|
|
41
|
+
openDrawer,
|
|
42
|
+
closeDrawer
|
|
43
|
+
});
|
|
44
|
+
latest.current = {
|
|
45
|
+
action: own,
|
|
46
|
+
onBack,
|
|
47
|
+
openDrawer,
|
|
48
|
+
closeDrawer
|
|
49
|
+
};
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
let swipe;
|
|
52
|
+
const width = () => window.innerWidth;
|
|
53
|
+
const settleDrawer = (progress, velocity) => drawer.current ? drawer.current.settle(progress, velocity) : latest.current.closeDrawer();
|
|
54
|
+
const dropMark = (mark) => {
|
|
55
|
+
placeMark(mark, 0, true);
|
|
56
|
+
setTimeout(() => mark.remove(), reducedMotion() ? 0 : 350);
|
|
57
|
+
};
|
|
58
|
+
const cancel = () => {
|
|
59
|
+
const done = swipe;
|
|
60
|
+
swipe = void 0;
|
|
61
|
+
if (!done?.dragging) return;
|
|
62
|
+
if (done.action === "sidebar") settleDrawer(0, 0);
|
|
63
|
+
else if (done.mark) dropMark(done.mark);
|
|
64
|
+
};
|
|
65
|
+
const onStart = (event) => {
|
|
66
|
+
const touch = event.touches[0];
|
|
67
|
+
const action = latest.current.action;
|
|
68
|
+
cancel();
|
|
69
|
+
swipe = action !== "none" && event.touches.length === 1 && touch && touch.clientX <= 24 ? {
|
|
70
|
+
action,
|
|
71
|
+
x: touch.clientX,
|
|
72
|
+
y: touch.clientY,
|
|
73
|
+
dragging: false,
|
|
74
|
+
dx: 0,
|
|
75
|
+
samples: []
|
|
76
|
+
} : void 0;
|
|
77
|
+
};
|
|
78
|
+
const onMove = (event) => {
|
|
79
|
+
const touch = event.touches[0];
|
|
80
|
+
if (!swipe || !touch) return;
|
|
81
|
+
const dx = touch.clientX - swipe.x;
|
|
82
|
+
const dy = touch.clientY - swipe.y;
|
|
83
|
+
if (!swipe.dragging) {
|
|
84
|
+
if (Math.hypot(dx, dy) < 10) return;
|
|
85
|
+
if (dx <= 0 || !startsDrag(dx, dy, .58)) {
|
|
86
|
+
swipe = void 0;
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
swipe.dragging = true;
|
|
90
|
+
swipe.x = touch.clientX;
|
|
91
|
+
if (swipe.action === "sidebar") latest.current.openDrawer();
|
|
92
|
+
else swipe.mark = backMark(touch.clientY);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
swipe.dx = Math.max(0, dx);
|
|
96
|
+
swipe.samples.push({
|
|
97
|
+
dx: swipe.dx,
|
|
98
|
+
time: event.timeStamp
|
|
99
|
+
});
|
|
100
|
+
if (swipe.action === "sidebar") drawer.current?.follow(swipe.dx / Math.min(width() * .88, 384));
|
|
101
|
+
else if (swipe.mark) placeMark(swipe.mark, swipe.dx / backReach, false);
|
|
102
|
+
};
|
|
103
|
+
const onEnd = (event) => {
|
|
104
|
+
const done = swipe;
|
|
105
|
+
swipe = void 0;
|
|
106
|
+
if (!done?.dragging) return;
|
|
107
|
+
const velocity = velocityOf(done.samples, event.timeStamp);
|
|
108
|
+
if (done.action === "sidebar") return settleDrawer(done.dx / Math.min(width() * .88, 384), velocity);
|
|
109
|
+
const mark = done.mark;
|
|
110
|
+
if (!mark) return;
|
|
111
|
+
if (endsOpen(done.dx / backReach, velocity)) latest.current.onBack();
|
|
112
|
+
dropMark(mark);
|
|
113
|
+
};
|
|
114
|
+
document.addEventListener("touchstart", onStart, { passive: true });
|
|
115
|
+
document.addEventListener("touchmove", onMove, { passive: true });
|
|
116
|
+
document.addEventListener("touchend", onEnd);
|
|
117
|
+
document.addEventListener("touchcancel", cancel);
|
|
118
|
+
return () => {
|
|
119
|
+
cancel();
|
|
120
|
+
document.removeEventListener("touchstart", onStart);
|
|
121
|
+
document.removeEventListener("touchmove", onMove);
|
|
122
|
+
document.removeEventListener("touchend", onEnd);
|
|
123
|
+
document.removeEventListener("touchcancel", cancel);
|
|
124
|
+
};
|
|
125
|
+
}, [drawer]);
|
|
126
|
+
};
|
|
127
|
+
//#endregion
|
|
128
|
+
export { edgeZone, useEdgeSwipe };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/assistant-dock/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "noAnswer" | "
|
|
5
|
-
rich(id: "noAnswer" | "
|
|
4
|
+
(id: "noAnswer" | "askQuestion" | "assistant" | "reconnecting" | "empty" | "backendNoAnswer" | "couldNotDraw" | "cannotShowLive", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "noAnswer" | "askQuestion" | "assistant" | "reconnecting" | "empty" | "backendNoAnswer" | "couldNotDraw" | "cannotShowLive", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/auth/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/auth/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "loading" | "email" | "signIn" | "or" | "cannotReach" | "tryAgain" | "passwordChanged" | "noAnswer" | "code" | "backupCode" | "password" | "passwordOptional" | "signOut" | "continue" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "reload" | "tooManyRequests" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "passwordsDiffer" | "choosePassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "newPassword" | "repeatPassword" | "setPassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "addPasskey" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "forgotPassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "yourName" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "emailCode" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reason" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "verify" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode" | "admin", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "loading" | "email" | "signIn" | "or" | "cannotReach" | "tryAgain" | "passwordChanged" | "noAnswer" | "code" | "backupCode" | "password" | "passwordOptional" | "signOut" | "continue" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "reload" | "tooManyRequests" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "passwordsDiffer" | "choosePassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "newPassword" | "repeatPassword" | "setPassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "addPasskey" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "forgotPassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "yourName" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "emailCode" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reason" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "verify" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode" | "admin", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/calls/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/calls/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "you" | "
|
|
5
|
-
rich(id: "you" | "
|
|
4
|
+
(id: "you" | "continue" | "yourName" | "accept" | "join" | "leave" | "reconnecting" | "waiting" | "revoke" | "full" | "camera" | "microphone" | "decline" | "startCall" | "inProgress" | "people" | "joinCall" | "shareScreen" | "stopSharing" | "muted" | "alone" | "connecting" | "removed" | "ended" | "refused" | "unavailable" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "denied" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "guestIntro" | "youLeft", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "you" | "continue" | "yourName" | "accept" | "join" | "leave" | "reconnecting" | "waiting" | "revoke" | "full" | "camera" | "microphone" | "decline" | "startCall" | "inProgress" | "people" | "joinCall" | "shareScreen" | "stopSharing" | "muted" | "alone" | "connecting" | "removed" | "ended" | "refused" | "unavailable" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "denied" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "guestIntro" | "youLeft", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/chat/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/chat/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "send" | "message" | "today" | "yesterday" | "newMessages" | "loadEarlier" | "working", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "send" | "message" | "today" | "yesterday" | "newMessages" | "loadEarlier" | "working", 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/data-grid/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "row" | "
|
|
5
|
-
rich(id: "row" | "
|
|
4
|
+
(id: "row" | "new" | "no" | "shownIn" | "unsortable" | "columnMenu" | "unpin" | "pinToLeft" | "resizeColumn" | "selected" | "clearSelection" | "noRowsSelected" | "selectRow" | "rowActions" | "move" | "reorderInstructions" | "pickedUp" | "isOver" | "droppedAt" | "putBack" | "cancelled", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "row" | "new" | "no" | "shownIn" | "unsortable" | "columnMenu" | "unpin" | "pinToLeft" | "resizeColumn" | "selected" | "clearSelection" | "noRowsSelected" | "selectRow" | "rowActions" | "move" | "reorderInstructions" | "pickedUp" | "isOver" | "droppedAt" | "putBack" | "cancelled", 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/filter-panel/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "date" | "
|
|
5
|
-
rich(id: "date" | "
|
|
4
|
+
(id: "date" | "noMatches" | "today" | "maximum" | "minimum" | "remove" | "year" | "month" | "yesterday" | "24h" | "7d" | "30d" | "90d" | "quarter" | "filters" | "unknownPreset" | "unsupported" | "clearAll" | "searchIn" | "moreFilters" | "showOnly", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "date" | "noMatches" | "today" | "maximum" | "minimum" | "remove" | "year" | "month" | "yesterday" | "24h" | "7d" | "30d" | "90d" | "quarter" | "filters" | "unknownPreset" | "unsupported" | "clearAll" | "searchIn" | "moreFilters" | "showOnly", 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/format/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "rows" | "aboutRows" | "secondsAgo" | "minutesAgo" | "hoursAgo" | "daysAgo"
|
|
5
|
-
rich(id: "rows" | "aboutRows" | "secondsAgo" | "minutesAgo" | "hoursAgo" | "daysAgo"
|
|
4
|
+
(id: "rows" | "justNow" | "aboutRows" | "secondsAgo" | "minutesAgo" | "hoursAgo" | "daysAgo", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "rows" | "justNow" | "aboutRows" | "secondsAgo" | "minutesAgo" | "hoursAgo" | "daysAgo", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/forms/messages.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/forms/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "loading" | "send" | "notFound" | "noForm" | "setByDatabase" | "notSent" | "checkTooLong", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "loading" | "send" | "notFound" | "noForm" | "setByDatabase" | "notSent" | "checkTooLong", 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/invitations/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "email" | "
|
|
5
|
-
rich(id: "email" | "
|
|
4
|
+
(id: "email" | "until" | "revoke" | "invite" | "expired" | "sendAgain" | "passLinkOn", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "email" | "until" | "revoke" | "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: "missing" | "
|
|
5
|
-
rich(id: "missing" | "
|
|
4
|
+
(id: "missing" | "connect" | "connectAgain" | "expired" | "missingTitle" | "expiredTitle" | "signInOnly", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "missing" | "connect" | "connectAgain" | "expired" | "missingTitle" | "expiredTitle" | "signInOnly", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/mocks/invoices.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const invoiceAt: (index: number) => {
|
|
|
21
21
|
country: "GB" | "NL" | "DE";
|
|
22
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: "paid" | "draft" | "sent" | "overdue";
|
|
25
25
|
issuedAt: number;
|
|
26
26
|
dueAt: number;
|
|
27
27
|
currency: string;
|
package/dist/mocks/orders.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const orderAt: (index: number) => {
|
|
|
10
10
|
name: string;
|
|
11
11
|
};
|
|
12
12
|
country: "GB" | "NL" | "DE";
|
|
13
|
-
status: "cancelled" | "
|
|
13
|
+
status: "cancelled" | "shipped" | "draft" | "confirmed" | "picking" | "delivered";
|
|
14
14
|
totalCents: number;
|
|
15
15
|
discount: 0 | 15 | 10 | 5;
|
|
16
16
|
paid: boolean;
|
|
@@ -6,7 +6,7 @@ export type MoveKind = (typeof moveKinds)[number];
|
|
|
6
6
|
export declare const stockMoveAt: (index: number) => {
|
|
7
7
|
id: string;
|
|
8
8
|
movedAt: number;
|
|
9
|
-
kind: "
|
|
9
|
+
kind: "issue" | "receipt" | "transfer" | "adjustment";
|
|
10
10
|
product: {
|
|
11
11
|
id: string;
|
|
12
12
|
name: "M8 hex bolt A2, 100 pcs" | "M10 hex nut A2, 100 pcs" | "Stainless washer 8 mm, 250 pcs" | "Cable tie 300 mm, 100 pcs" | "Cable gland M20, 25 pcs" | "Junction box IP65" | "Hydraulic hose 1/2 in, 5 m" | "Hydraulic coupling 3/8 in" | "Pallet wrap 500 mm" | "Corrugated box 400 x 300" | "Bubble wrap roll 50 m" | "Safety gloves, size L" | "Safety glasses, clear" | "Ear defenders SNR 31" | "Ball bearing 6204-2RS" | "Taper roller bearing 30205" | "Timing belt HTD 5M, 600 mm" | "V-belt SPA 1250" | "Grease cartridge, 400 g" | "Machine oil ISO 68, 5 l" | "Angle grinder disc 125 mm, 10 pcs" | "Drill bit set HSS, 19 pcs" | "Torque wrench 20-100 Nm" | "Pneumatic cylinder 40 x 100" | "Air hose PU 8 mm, 20 m" | "LED panel 600 x 600, 40 W" | "Pallet label roll 100 x 150" | "Thermal printer ribbon" | "Euro pallet EPAL, used" | "Roll container, galvanised";
|
|
@@ -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: "tryAgain" | "unread" | "empty" | "
|
|
5
|
-
rich(id: "tryAgain" | "unread" | "empty" | "
|
|
4
|
+
(id: "tryAgain" | "unread" | "empty" | "turnOn" | "turnOff" | "showMore" | "notifications" | "notificationsUnread" | "notificationsManyUnread" | "markAllRead" | "loadFailed" | "pushOff" | "pushOn" | "pushBlocked" | "pushRegistrationFailed" | "pushNoTokenApns" | "pushNoTokenFcm" | "pushRefused" | "pushFailed" | "pushOffNotStored", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "tryAgain" | "unread" | "empty" | "turnOn" | "turnOff" | "showMore" | "notifications" | "notificationsUnread" | "notificationsManyUnread" | "markAllRead" | "loadFailed" | "pushOff" | "pushOn" | "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: "loading" | "create" | "open" | "invitations" | "organizations" | "password" | "passwordOptional" | "signOut" | "yourName" | "admin" | "accept" | "join" | "name" | "invalidLink" | "leave" | "save" | "cancel" | "until" | "current" | "delete" | "owner" | "member" | "remove" | "guestLinks" | "members" | "organization" | "otherAddress" | "details" | "deleteTitle" | "manageOrganizations" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "loading" | "create" | "open" | "invitations" | "organizations" | "password" | "passwordOptional" | "signOut" | "yourName" | "admin" | "accept" | "join" | "name" | "invalidLink" | "leave" | "save" | "cancel" | "until" | "current" | "delete" | "owner" | "member" | "remove" | "guestLinks" | "members" | "organization" | "otherAddress" | "details" | "deleteTitle" | "manageOrganizations" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations", 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/plugins/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "loading" | "couldNotLoad" | "
|
|
5
|
-
rich(id: "loading" | "couldNotLoad" | "
|
|
4
|
+
(id: "loading" | "couldNotLoad" | "dismiss" | "pluginsOff" | "pluginOff" | "answered" | "notObject" | "noName" | "noApi" | "noVersions" | "noModule" | "badStylesheet" | "badVersion", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "loading" | "couldNotLoad" | "dismiss" | "pluginsOff" | "pluginOff" | "answered" | "notObject" | "noName" | "noApi" | "noVersions" | "noModule" | "badStylesheet" | "badVersion", 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/primitives/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "loading" | "
|
|
5
|
-
rich(id: "loading" | "
|
|
4
|
+
(id: "loading" | "next" | "remove" | "close" | "previous" | "dragToClose", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "loading" | "next" | "remove" | "close" | "previous" | "dragToClose", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -30,5 +30,7 @@ export declare const useDrawerDrag: ({ axis, panel, backdrop, onDraggedClosed }:
|
|
|
30
30
|
onPointerCancel: () => void;
|
|
31
31
|
};
|
|
32
32
|
dragged: () => boolean;
|
|
33
|
+
follow: (progress: number) => void;
|
|
34
|
+
settle: (progress: number, velocity: number) => void;
|
|
33
35
|
};
|
|
34
36
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { backdropAlpha, dragProgress, drawerDim, drawerSettleCurve, endsOpen, startsDrag } from "./drawer-math.js";
|
|
2
|
-
import { useRef } from "react";
|
|
2
|
+
import { useEffect, useRef } from "react";
|
|
3
3
|
//#region src/primitives/use-drawer-drag.ts
|
|
4
4
|
const reducedMotion = () => typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
5
5
|
const alongOf = (axis, dx, dy) => axis === "x" ? dx : -dy;
|
|
@@ -21,6 +21,9 @@ const velocityOf = (samples) => {
|
|
|
21
21
|
const useDrawerDrag = ({ axis, panel, backdrop, onDraggedClosed }) => {
|
|
22
22
|
const drag = useRef(void 0);
|
|
23
23
|
const wasDrag = useRef(false);
|
|
24
|
+
const closing = useRef(void 0);
|
|
25
|
+
const cancelClosing = () => clearTimeout(closing.current);
|
|
26
|
+
useEffect(() => () => clearTimeout(closing.current), []);
|
|
24
27
|
const size = () => {
|
|
25
28
|
const element = panel.current;
|
|
26
29
|
return element ? axis === "x" ? element.offsetWidth : element.offsetHeight : 1;
|
|
@@ -37,6 +40,12 @@ const useDrawerDrag = ({ axis, panel, backdrop, onDraggedClosed }) => {
|
|
|
37
40
|
shade.style.transition = transition === "none" ? "none" : `opacity ${transition}`;
|
|
38
41
|
shade.style.opacity = String(backdropAlpha(progress) / drawerDim);
|
|
39
42
|
};
|
|
43
|
+
const settle = (progress, velocity) => {
|
|
44
|
+
cancelClosing();
|
|
45
|
+
if (endsOpen(Math.min(progress, 1), velocity)) return place(1, true);
|
|
46
|
+
place(0, true);
|
|
47
|
+
closing.current = setTimeout(onDraggedClosed, reducedMotion() ? 0 : 350);
|
|
48
|
+
};
|
|
40
49
|
const handlers = (onBackdrop) => ({
|
|
41
50
|
onPointerDown: (event) => {
|
|
42
51
|
if (event.pointerType === "mouse") return;
|
|
@@ -66,6 +75,7 @@ const useDrawerDrag = ({ axis, panel, backdrop, onDraggedClosed }) => {
|
|
|
66
75
|
return;
|
|
67
76
|
}
|
|
68
77
|
current.dragging = true;
|
|
78
|
+
cancelClosing();
|
|
69
79
|
current.x = event.clientX;
|
|
70
80
|
current.y = event.clientY;
|
|
71
81
|
event.currentTarget.setPointerCapture?.(event.pointerId);
|
|
@@ -83,10 +93,7 @@ const useDrawerDrag = ({ axis, panel, backdrop, onDraggedClosed }) => {
|
|
|
83
93
|
drag.current = void 0;
|
|
84
94
|
if (!current?.dragging) return;
|
|
85
95
|
wasDrag.current = true;
|
|
86
|
-
|
|
87
|
-
if (endsOpen(Math.min(progress, 1), velocityOf(current.samples))) return place(1, true);
|
|
88
|
-
place(0, true);
|
|
89
|
-
setTimeout(onDraggedClosed, reducedMotion() ? 0 : 350);
|
|
96
|
+
settle(dragProgress(current.from, current.along, size()), velocityOf(current.samples));
|
|
90
97
|
},
|
|
91
98
|
onPointerCancel: () => {
|
|
92
99
|
if (drag.current?.dragging) place(1, true);
|
|
@@ -96,7 +103,12 @@ const useDrawerDrag = ({ axis, panel, backdrop, onDraggedClosed }) => {
|
|
|
96
103
|
return {
|
|
97
104
|
panelHandlers: handlers(false),
|
|
98
105
|
backdropHandlers: handlers(true),
|
|
99
|
-
dragged: () => wasDrag.current
|
|
106
|
+
dragged: () => wasDrag.current,
|
|
107
|
+
follow: (progress) => {
|
|
108
|
+
cancelClosing();
|
|
109
|
+
place(progress, false);
|
|
110
|
+
},
|
|
111
|
+
settle
|
|
100
112
|
};
|
|
101
113
|
};
|
|
102
114
|
//#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: "saving" | "actions" | "tabs" | "
|
|
5
|
-
rich(id: "saving" | "actions" | "tabs" | "
|
|
4
|
+
(id: "saving" | "actions" | "tabs" | "keepMine" | "useTheirs" | "headingCount" | "headingCountRecords" | "savedDifferent" | "example" | "savedThis" | "savedAgo" | "notSavedRetrying" | "lastEditedBy" | "lastUpdated" | "viewing", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "saving" | "actions" | "tabs" | "keepMine" | "useTheirs" | "headingCount" | "headingCountRecords" | "savedDifferent" | "example" | "savedThis" | "savedAgo" | "notSavedRetrying" | "lastEditedBy" | "lastUpdated" | "viewing", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -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{Io as n,Yo as r,cs as i,ga as a,ls as o}from"./app-
|
|
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{Io as n,Yo as r,cs as i,ga as a,ls as o}from"./app-DzYUvsKN.js";import{t as s}from"./render-node-p5OrHoJa.js";var c=e(t(),1),l=({tab:e})=>{let t=n();return t?(0,c.jsx)(a,{route:{...e&&{tab:e},pathOf:i},children:(0,c.jsx)(s,{node:t.tree})}):(0,c.jsx)(r,{title:o(`noAccount`),children:o(`noAccountDescription`)})};export{l as AccountPage};
|
|
2
|
+
//# debugId=6a6facc6-4aef-4aad-92a4-14d2a545c8c7
|