@protobase/ui 0.119.2 → 0.119.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/messages.d.ts +2 -2
- package/dist/activity-chart/messages.d.ts +2 -2
- package/dist/app/change-confirm/messages.d.ts +2 -2
- package/dist/app/charts/messages.d.ts +2 -2
- package/dist/app/confirm-sign-in-messages.d.ts +2 -2
- package/dist/app/conversation/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/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/runtime/messages.d.ts +2 -2
- package/dist/app/saved/messages.d.ts +2 -2
- package/dist/app/saved/use-favorite.d.ts +1 -1
- package/dist/app/searches/messages.d.ts +2 -2
- package/dist/app/searches/use-save-search.d.ts +1 -1
- package/dist/app/start-target.d.ts +38 -0
- package/dist/app/start-target.js +38 -0
- package/dist/app/use-start-address.d.ts +6 -9
- package/dist/app/use-start-address.js +23 -21
- 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/data-grid/messages.d.ts +2 -2
- package/dist/filter-panel/messages.d.ts +2 -2
- package/dist/forms/messages.d.ts +2 -2
- package/dist/invitations/messages.d.ts +2 -2
- package/dist/markdown/markdown-html.js +2 -29
- package/dist/markdown/safe-html.d.ts +11 -0
- package/dist/markdown/safe-html.js +35 -0
- package/dist/mentions/link-text.d.ts +7 -0
- package/dist/mentions/link-text.js +19 -0
- package/dist/mentions/mention-text.d.ts +2 -0
- package/dist/mentions/mention-text.js +3 -1
- package/dist/mentions/mentioned-text.d.ts +7 -7
- package/dist/mentions/mentioned-text.js +14 -4
- package/dist/mentions/message-content.d.ts +10 -0
- package/dist/mentions/message-content.js +17 -0
- package/dist/mentions/message-html.d.ts +11 -0
- package/dist/mentions/message-html.js +55 -0
- package/dist/mentions/message-lines.d.ts +4 -0
- package/dist/mentions/message-lines.js +37 -0
- package/dist/mocks/orders.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/shell/assets/{account-page-CAJ1kqbM.js → account-page-VNXi8xPA.js} +2 -2
- package/dist/shell/assets/{app-CJRcPkz6.js → app-C8DagobC.js} +11 -11
- package/dist/shell/assets/{app-xwgcmboV.css → app-DLkpxjgP.css} +1 -1
- package/dist/shell/assets/{assistant-shell-BfbbDVaC.js → assistant-shell-D5n0XNfa.js} +2 -2
- package/dist/shell/assets/board-display-CQgqWhwM.js +2 -0
- package/dist/shell/assets/calendar-display-y2jKjZ3t.js +2 -0
- package/dist/shell/assets/{call-rings-B8E1WcyM.js → call-rings-CEQMuagL.js} +2 -2
- package/dist/shell/assets/{calls-CdQzy7k0.js → calls-Bjc3rL9w.js} +2 -2
- package/dist/shell/assets/{circle-alert-d8QhxvKR.js → circle-alert-BF0JSDU0.js} +2 -2
- package/dist/shell/assets/composed-page-Cubk1Kxi.js +2 -0
- package/dist/shell/assets/{composer-section-DnZcEvIv.js → composer-section-CL8-3eMa.js} +2 -2
- package/dist/shell/assets/{connect-route-4mPmCyC4.js → connect-route-DuZcKU2Q.js} +2 -2
- package/dist/shell/assets/{copy-field-BERLdksL.js → copy-field-VB6bqHXP.js} +2 -2
- package/dist/shell/assets/create-route-6pdThgfU.js +2 -0
- package/dist/shell/assets/{custom-step-container-field-CdOcEE3E.js → custom-step-container-field-dJXo45Ua.js} +4 -4
- package/dist/shell/assets/embedded-list-ZGVUzTqi.js +3 -0
- package/dist/shell/assets/{export-dialog-D4o9o8bz.js → export-dialog-C7Cni_3-.js} +2 -2
- package/dist/shell/assets/{first-organization-page-B3iq4sHy.js → first-organization-page-ClNXbA0s.js} +2 -2
- package/dist/shell/assets/{graph-view-Df89qpKC.js → graph-view-B2cTru_6.js} +2 -2
- package/dist/shell/assets/{group-donut-CrztmwCW.js → group-donut-2NlpCtbk.js} +2 -2
- package/dist/shell/assets/{guest-call-page-BBIOrY9i.js → guest-call-page-CdbZZnV0.js} +3 -3
- package/dist/shell/assets/{html-viewer--TQtevzN.js → html-viewer-Cz0M2lKY.js} +2 -2
- package/dist/shell/assets/{import-dialog-BWTCBbXg.js → import-dialog-BMRDGiwG.js} +2 -2
- package/dist/shell/assets/import-table-dialog-B4he_TFm.js +2 -0
- package/dist/shell/assets/{index-Bh5wY9w1.js → index-CeFBvCC7.js} +1 -1
- package/dist/shell/assets/{invitations-page-B9lumTnF.js → invitations-page-CZhwWV6M.js} +2 -2
- package/dist/shell/assets/{layout-grid-9bzmoNfC.js → layout-grid-C-WFa9Or.js} +2 -2
- package/dist/shell/assets/{legend-item-CMOXfVzG.js → legend-item-BTHYT8br.js} +2 -2
- package/dist/shell/assets/list-page-DQUxt0LO.js +4 -0
- package/dist/shell/assets/{maplibre-BSd2GULM.js → maplibre-BvSTqxne.js} +2 -2
- package/dist/shell/assets/{markdown-content-CJbhy8aC.js → markdown-content-BBjT7Pxr.js} +2 -2
- package/dist/shell/assets/members-page-MX1KjLNR.js +2 -0
- package/dist/shell/assets/message-content-FBGpTZQI.js +4 -0
- package/dist/shell/assets/messages-CExXpz12.js +2 -0
- package/dist/shell/assets/organization-page-D1hcJCrd.js +2 -0
- package/dist/shell/assets/organizations-page-B0jLZ_UO.js +2 -0
- package/dist/shell/assets/{pending-invitation-row-Ce5VDMYl.js → pending-invitation-row-CsJF7-Gu.js} +2 -2
- package/dist/shell/assets/{period-chart-D3lbH2Ni.js → period-chart-D1WwYBS1.js} +2 -2
- package/dist/shell/assets/{person-row-D5tS8OTp.js → person-row-BV7Z1hNf.js} +2 -2
- package/dist/shell/assets/public-form-page-CIAmgild.js +2 -0
- package/dist/shell/assets/{record-lines-BVk1yL7T.js → record-lines-Dxi3FXH8.js} +2 -2
- package/dist/shell/assets/{record-map-CQG_MBk2.js → record-map-rpuvoibV.js} +2 -2
- package/dist/shell/assets/{record-opens-583Ej1N1.js → record-opens-CMd-dGRX.js} +2 -2
- package/dist/shell/assets/record-page-CThUCc__.js +3 -0
- package/dist/shell/assets/{record-preview-DA3ekFy9.js → record-preview-DyOOyKCI.js} +2 -2
- package/dist/shell/assets/{records-map-eORDbX4I.js → records-map-DKcj8eKK.js} +2 -2
- package/dist/shell/assets/render-node-CAsq_tXP.js +3 -0
- package/dist/shell/assets/reorder-button-CDxSwa9c.js +2 -0
- package/dist/shell/assets/{run-trace-view-Bc39GS76.js → run-trace-view-IcuY4WBI.js} +2 -2
- package/dist/shell/assets/{runner-install-field-1DavXWJz.js → runner-install-field-CpYdr4D1.js} +2 -2
- package/dist/shell/assets/{runtime-update-BmJNn1bb.js → runtime-update-Di07z3fd.js} +2 -2
- package/dist/shell/assets/safe-html-CmkqDcA6.js +2 -0
- package/dist/shell/assets/shared-protobase-ui-52YGsYuh.js +1 -0
- package/dist/shell/assets/sheet-source-BxJ1WzuT.js +3 -0
- package/dist/shell/assets/sign-in-policy-page-CGqj3xpG.js +2 -0
- package/dist/shell/assets/start-block-queries-DycG996P.js +2 -0
- package/dist/shell/assets/step-catalog-kxOqLVIH.js +2 -0
- package/dist/shell/assets/{step-panel-CollAT6S.js → step-panel-P0bT6b4o.js} +2 -2
- package/dist/shell/assets/timeline-display-Crfj_0QO.js +2 -0
- package/dist/shell/assets/{trash-BgljKjXT.js → trash-BBz7IXo9.js} +2 -2
- package/dist/shell/assets/{update-set-SMllxKkh.js → update-set-BuU033OJ.js} +2 -2
- package/dist/shell/assets/use-calendar-move-BTlYPun1.js +2 -0
- package/dist/shell/assets/{use-display-rows-DT7QTMsG.js → use-display-rows-DM1gg_CJ.js} +2 -2
- package/dist/shell/assets/use-my-invitations-BRnhkt1K.js +2 -0
- package/dist/shell/assets/{use-paged-search-BlDRyMbE.js → use-paged-search-BUaMlWgI.js} +2 -2
- package/dist/shell/assets/{use-run-trace-D_6T2CH7.js → use-run-trace-DYU4WZ6w.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-CBp2KwrR.js → use-workflow-page-BUd3Xe6x.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-ygVBJ9Yg.js → use-workflow-types-BfCyY_Vr.js} +2 -2
- package/dist/shell/assets/{workflow-canvas-BC2ifgGd.js → workflow-canvas-DgWBX54L.js} +4 -4
- package/dist/shell/assets/{workflow-field-D_yT-vSa.js → workflow-field-BjXm60Uu.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-BSTyuKLQ.js → workflow-graph-editor-BehmE3Dg.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-CKXk25MP.js → workflow-run-field-BujjrQM4.js} +3 -3
- package/dist/shell/assets/workflow-status-field-Cb6cPhdf.js +2 -0
- package/dist/shell/assets/workflow-workbench-Dokupdxe.js +4 -0
- package/dist/shell/index.html +4 -4
- package/dist/shell/protobase.shell.json +2 -2
- package/dist/shell/protobase.sw.js +2 -2
- package/dist/shell-source-maps/assets/{account-page-CAJ1kqbM.js.map → account-page-VNXi8xPA.js.map} +1 -1
- package/dist/shell-source-maps/assets/app-C8DagobC.js.map +1 -0
- package/dist/shell-source-maps/assets/{assistant-shell-BfbbDVaC.js.map → assistant-shell-D5n0XNfa.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-NQNgdfOF.js.map → board-display-CQgqWhwM.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-CFPrjZFk.js.map → calendar-display-y2jKjZ3t.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-B8E1WcyM.js.map → call-rings-CEQMuagL.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-CdQzy7k0.js.map → calls-Bjc3rL9w.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-d8QhxvKR.js.map → circle-alert-BF0JSDU0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-DMVnOjIP.js.map → composed-page-Cubk1Kxi.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-DnZcEvIv.js.map → composer-section-CL8-3eMa.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-4mPmCyC4.js.map → connect-route-DuZcKU2Q.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-BERLdksL.js.map → copy-field-VB6bqHXP.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-GDRDDl56.js.map → create-route-6pdThgfU.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-CdOcEE3E.js.map → custom-step-container-field-dJXo45Ua.js.map} +1 -1
- package/dist/shell-source-maps/assets/{embedded-list-BfLZckNm.js.map → embedded-list-ZGVUzTqi.js.map} +1 -1
- package/dist/shell-source-maps/assets/{export-dialog-D4o9o8bz.js.map → export-dialog-C7Cni_3-.js.map} +1 -1
- package/dist/shell-source-maps/assets/{first-organization-page-B3iq4sHy.js.map → first-organization-page-ClNXbA0s.js.map} +1 -1
- package/dist/shell-source-maps/assets/{graph-view-Df89qpKC.js.map → graph-view-B2cTru_6.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-CrztmwCW.js.map → group-donut-2NlpCtbk.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-BBIOrY9i.js.map → guest-call-page-CdbZZnV0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer--TQtevzN.js.map → html-viewer-Cz0M2lKY.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-BWTCBbXg.js.map → import-dialog-BMRDGiwG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-DPkK6vH5.js.map → import-table-dialog-B4he_TFm.js.map} +1 -1
- package/dist/shell-source-maps/assets/{invitations-page-B9lumTnF.js.map → invitations-page-CZhwWV6M.js.map} +1 -1
- package/dist/shell-source-maps/assets/{layout-grid-9bzmoNfC.js.map → layout-grid-C-WFa9Or.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item-CMOXfVzG.js.map → legend-item-BTHYT8br.js.map} +1 -1
- package/dist/shell-source-maps/assets/{list-page-DKvupZUF.js.map → list-page-DQUxt0LO.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-BSd2GULM.js.map → maplibre-BvSTqxne.js.map} +1 -1
- package/dist/shell-source-maps/assets/markdown-content-BBjT7Pxr.js.map +1 -0
- package/dist/shell-source-maps/assets/{members-page-q2id0vrY.js.map → members-page-MX1KjLNR.js.map} +1 -1
- package/dist/shell-source-maps/assets/message-content-FBGpTZQI.js.map +1 -0
- package/dist/shell-source-maps/assets/{messages-ZPG4Y__r.js.map → messages-CExXpz12.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organization-page-DqYnaJRl.js.map → organization-page-D1hcJCrd.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organizations-page-Dm5Y0fGB.js.map → organizations-page-B0jLZ_UO.js.map} +1 -1
- package/dist/shell-source-maps/assets/{pending-invitation-row-Ce5VDMYl.js.map → pending-invitation-row-CsJF7-Gu.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-D3lbH2Ni.js.map → period-chart-D1WwYBS1.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-D5tS8OTp.js.map → person-row-BV7Z1hNf.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-aK2MyEzM.js.map → public-form-page-CIAmgild.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-BVk1yL7T.js.map → record-lines-Dxi3FXH8.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-CQG_MBk2.js.map → record-map-rpuvoibV.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-583Ej1N1.js.map → record-opens-CMd-dGRX.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-page-CCop2gY_.js.map → record-page-CThUCc__.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-preview-DA3ekFy9.js.map → record-preview-DyOOyKCI.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-eORDbX4I.js.map → records-map-DKcj8eKK.js.map} +1 -1
- package/dist/shell-source-maps/assets/{render-node-DYlEB-c6.js.map → render-node-CAsq_tXP.js.map} +1 -1
- package/dist/shell-source-maps/assets/{reorder-button-CBM6uNGv.js.map → reorder-button-CDxSwa9c.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-Bc39GS76.js.map → run-trace-view-IcuY4WBI.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-1DavXWJz.js.map → runner-install-field-CpYdr4D1.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-BmJNn1bb.js.map → runtime-update-Di07z3fd.js.map} +1 -1
- package/dist/shell-source-maps/assets/safe-html-CmkqDcA6.js.map +1 -0
- package/dist/shell-source-maps/assets/{sheet-source-DRkb3sPj.js.map → sheet-source-BxJ1WzuT.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-J-Gl8EDX.js.map → sign-in-policy-page-CGqj3xpG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-Db9-BBtv.js.map → start-block-queries-DycG996P.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-Dx8trv3T.js.map → step-catalog-kxOqLVIH.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-CollAT6S.js.map → step-panel-P0bT6b4o.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-Db0NWucC.js.map → timeline-display-Crfj_0QO.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-BgljKjXT.js.map → trash-BBz7IXo9.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-SMllxKkh.js.map → update-set-BuU033OJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-BcrMLvrG.js.map → use-calendar-move-BTlYPun1.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-DT7QTMsG.js.map → use-display-rows-DM1gg_CJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-my-invitations-oCZ6ZQ-U.js.map → use-my-invitations-BRnhkt1K.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-paged-search-BlDRyMbE.js.map → use-paged-search-BUaMlWgI.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-D_6T2CH7.js.map → use-run-trace-DYU4WZ6w.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-CBp2KwrR.js.map → use-workflow-page-BUd3Xe6x.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-ygVBJ9Yg.js.map → use-workflow-types-BfCyY_Vr.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-BC2ifgGd.js.map → workflow-canvas-DgWBX54L.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-D_yT-vSa.js.map → workflow-field-BjXm60Uu.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-BSTyuKLQ.js.map → workflow-graph-editor-BehmE3Dg.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-CKXk25MP.js.map → workflow-run-field-BujjrQM4.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-status-field-BQDIaBJw.js.map → workflow-status-field-Cb6cPhdf.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-workbench-CHPH8qPu.js.map → workflow-workbench-Dokupdxe.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/board-display-NQNgdfOF.js +0 -2
- package/dist/shell/assets/calendar-display-CFPrjZFk.js +0 -2
- package/dist/shell/assets/composed-page-DMVnOjIP.js +0 -2
- package/dist/shell/assets/create-route-GDRDDl56.js +0 -2
- package/dist/shell/assets/embedded-list-BfLZckNm.js +0 -3
- package/dist/shell/assets/import-table-dialog-DPkK6vH5.js +0 -2
- package/dist/shell/assets/list-page-DKvupZUF.js +0 -4
- package/dist/shell/assets/members-page-q2id0vrY.js +0 -2
- package/dist/shell/assets/messages-ZPG4Y__r.js +0 -2
- package/dist/shell/assets/organization-page-DqYnaJRl.js +0 -2
- package/dist/shell/assets/organizations-page-Dm5Y0fGB.js +0 -2
- package/dist/shell/assets/public-form-page-aK2MyEzM.js +0 -2
- package/dist/shell/assets/record-page-CCop2gY_.js +0 -3
- package/dist/shell/assets/render-node-DYlEB-c6.js +0 -3
- package/dist/shell/assets/reorder-button-CBM6uNGv.js +0 -2
- package/dist/shell/assets/shared-protobase-ui-CYjgvFkX.js +0 -1
- package/dist/shell/assets/sheet-source-DRkb3sPj.js +0 -3
- package/dist/shell/assets/sign-in-policy-page-J-Gl8EDX.js +0 -2
- package/dist/shell/assets/start-block-queries-Db9-BBtv.js +0 -2
- package/dist/shell/assets/step-catalog-Dx8trv3T.js +0 -2
- package/dist/shell/assets/timeline-display-Db0NWucC.js +0 -2
- package/dist/shell/assets/use-calendar-move-BcrMLvrG.js +0 -2
- package/dist/shell/assets/use-my-invitations-oCZ6ZQ-U.js +0 -2
- package/dist/shell/assets/workflow-status-field-BQDIaBJw.js +0 -2
- package/dist/shell/assets/workflow-workbench-CHPH8qPu.js +0 -4
- package/dist/shell-source-maps/assets/app-CJRcPkz6.js.map +0 -1
- package/dist/shell-source-maps/assets/markdown-content-CJbhy8aC.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/app/record-messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "cancel" | "
|
|
5
|
-
rich(id: "cancel" | "
|
|
4
|
+
(id: "cancel" | "loading" | "fetching" | "edit" | "saved" | "history" | "comments" | "couldNotLoad" | "save" | "couldNotSave" | "delete" | "justNow" | "details" | "summary" | "notSaved" | "keep" | "discard" | "nothingYet" | "changedBySomeoneElse" | "lineNumber" | "noRecord" | "openingElsewhere" | "someoneElse" | "unsavedChanges" | "linesChanged" | "linesReloaded" | "unsavedKept" | "continueEditing" | "unsavedRestored" | "savingSubject" | "subjectSaved" | "recordActions" | "relatedRecords" | "lineField" | "tooManyLines", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "cancel" | "loading" | "fetching" | "edit" | "saved" | "history" | "comments" | "couldNotLoad" | "save" | "couldNotSave" | "delete" | "justNow" | "details" | "summary" | "notSaved" | "keep" | "discard" | "nothingYet" | "changedBySomeoneElse" | "lineNumber" | "noRecord" | "openingElsewhere" | "someoneElse" | "unsavedChanges" | "linesChanged" | "linesReloaded" | "unsavedKept" | "continueEditing" | "unsavedRestored" | "savingSubject" | "subjectSaved" | "recordActions" | "relatedRecords" | "lineField" | "tooManyLines", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomSectionModel, LayoutItemModel } from "@protobase/schema";
|
|
2
2
|
//#region src/app/record-mode/shown-layout.d.ts
|
|
3
|
-
export declare const whenOf: (item: LayoutItemModel) => "always" |
|
|
3
|
+
export declare const whenOf: (item: LayoutItemModel) => "always" | (string & {}) | "editing" | "reading" | undefined;
|
|
4
4
|
/** The items with a record condition in `when`, those inside tabs, groups and fallbacks too, whose conditions the page evaluates: a group before its items. */
|
|
5
5
|
export declare const conditionalItems: (items: LayoutItemModel[]) => LayoutItemModel[];
|
|
6
6
|
/** A shown custom section: `fallbackAt` holds each shown fallback item's place in the whole fallback. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/record-row/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "new" | "couldNotLoad" | "viewAll" | "noneMatch" | "
|
|
5
|
-
rich(id: "new" | "couldNotLoad" | "viewAll" | "noneMatch" | "
|
|
4
|
+
(id: "new" | "couldNotLoad" | "viewAll" | "noneMatch" | "couldNotLoadYour" | "noneYet", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "new" | "couldNotLoad" | "viewAll" | "noneMatch" | "couldNotLoadYour" | "noneYet", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/related-cards/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "open" | "
|
|
5
|
-
rich(id: "open" | "
|
|
4
|
+
(id: "open" | "left" | "couldNotLoad" | "add" | "showMore" | "nothingYet" | "showLess", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "open" | "left" | "couldNotLoad" | "add" | "showMore" | "nothingYet" | "showLess", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/runtime/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "close" | "failed" | "update" | "
|
|
5
|
-
rich(id: "close" | "failed" | "update" | "
|
|
4
|
+
(id: "close" | "failed" | "update" | "immediate" | "weekly" | "scheduled" | "manual" | "job" | "build" | "updatingNow" | "started" | "nextOn" | "succeeded" | "unchanged" | "alreadyLatest" | "onlyAdmin" | "couldNotStart" | "runtimeUpdate" | "updating" | "updateNow" | "currentVersion" | "latestVersion" | "checkFailed" | "updateAvailable", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "close" | "failed" | "update" | "immediate" | "weekly" | "scheduled" | "manual" | "job" | "build" | "updatingNow" | "started" | "nextOn" | "succeeded" | "unchanged" | "alreadyLatest" | "onlyAdmin" | "couldNotStart" | "runtimeUpdate" | "updating" | "updateNow" | "currentVersion" | "latestVersion" | "checkFailed" | "updateAvailable", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/saved/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "couldNotSave" | "somethingWrong" | "
|
|
5
|
-
rich(id: "couldNotSave" | "somethingWrong" | "
|
|
4
|
+
(id: "couldNotSave" | "somethingWrong" | "couldNotLoadYour" | "noneYet" | "favorite" | "couldNotTakeOff", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "couldNotSave" | "somethingWrong" | "couldNotLoadYour" | "noneYet" | "favorite" | "couldNotTakeOff", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -6,7 +6,7 @@ import { CardFavoriteModel, KeyValue } from "@protobase/schema";
|
|
|
6
6
|
* or takes it off, at once on screen; a refused write puts it back and says why.
|
|
7
7
|
*/
|
|
8
8
|
export declare const useFavorite: (favorite: CardFavoriteModel, key: string, target: KeyValue) => {
|
|
9
|
-
mode: "
|
|
9
|
+
mode: "sign-in" | "save" | undefined;
|
|
10
10
|
prompt: import("@protobase/schema").SignInPromptModel | undefined;
|
|
11
11
|
saved: boolean;
|
|
12
12
|
ready: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/app/searches/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "cancel" | "changed" | "removed" | "saved" | "more" | "viewAll" | "save" | "couldNotSave" | "
|
|
5
|
-
rich(id: "cancel" | "changed" | "removed" | "saved" | "more" | "viewAll" | "save" | "couldNotSave" | "
|
|
4
|
+
(id: "cancel" | "changed" | "removed" | "saved" | "more" | "viewAll" | "save" | "couldNotSave" | "optional" | "update" | "filters" | "notFound" | "off" | "on" | "deleteTitle" | "couldNotChange" | "noPlural" | "somethingWrong" | "noneMatch" | "couldNotLoadYour" | "noneYet" | "couldNotTakeOff" | "saveSearch" | "saveAsNew" | "updateName" | "updateNameQuestion" | "updateNounQuestion" | "couldNotRename" | "renameTitle" | "unreadableFilter" | "noResource" | "noSavedYet" | "asMany" | "fewer" | "added" | "filterChanges" | "firstOf" | "addedRemoved" | "noRecordsDiff" | "searchSaved" | "openPlural" | "searchUpdated" | "couldNotUpdate" | "noNew", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "cancel" | "changed" | "removed" | "saved" | "more" | "viewAll" | "save" | "couldNotSave" | "optional" | "update" | "filters" | "notFound" | "off" | "on" | "deleteTitle" | "couldNotChange" | "noPlural" | "somethingWrong" | "noneMatch" | "couldNotLoadYour" | "noneYet" | "couldNotTakeOff" | "saveSearch" | "saveAsNew" | "updateName" | "updateNameQuestion" | "updateNounQuestion" | "couldNotRename" | "renameTitle" | "unreadableFilter" | "noResource" | "noSavedYet" | "asMany" | "fewer" | "added" | "filterChanges" | "firstOf" | "addedRemoved" | "noRecordsDiff" | "searchSaved" | "openPlural" | "searchUpdated" | "couldNotUpdate" | "noNew", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -8,7 +8,7 @@ import { SaveSearchModel } from "@protobase/schema";
|
|
|
8
8
|
* filter differs, `update` gives that search the list's filter.
|
|
9
9
|
*/
|
|
10
10
|
export declare const useSaveSearch: (search: SaveSearchModel, filter: string) => {
|
|
11
|
-
mode: "
|
|
11
|
+
mode: "sign-in" | "save" | undefined;
|
|
12
12
|
prompt: import("@protobase/schema").SignInPromptModel | undefined;
|
|
13
13
|
saved: boolean;
|
|
14
14
|
/** The search the list was opened from and differs from: its filter, and its name when it has one. */
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MetaData } from "../data/meta-data.js";
|
|
2
|
+
import { StartEntry } from "./start-record.js";
|
|
3
|
+
import { QueryState } from "@tanstack/react-query";
|
|
4
|
+
import { AppAddress } from "@protobase/schema";
|
|
5
|
+
//#region src/app/start-target.d.ts
|
|
6
|
+
export type StartTarget = {
|
|
7
|
+
state: 'resolving';
|
|
8
|
+
} | {
|
|
9
|
+
state: 'ready';
|
|
10
|
+
address?: AppAddress;
|
|
11
|
+
};
|
|
12
|
+
/** Where the start record's lookup stands: still running, its last fetch failed, or the rows it found. */
|
|
13
|
+
export type StartLookup = {
|
|
14
|
+
pending: boolean;
|
|
15
|
+
failed: boolean;
|
|
16
|
+
rows?: Record<string, unknown>[];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* What `/` opens, from the start entry and first sidebar entry of `/meta` (`startEntry`, `startAddress`) and the start
|
|
20
|
+
* record's lookup; see `useStartAddress`. In an app with organizations (`organization` other than `''`) it waits for a
|
|
21
|
+
* `/meta` answered in this page load (`metaSettled`), as a cached one may be from another organization or from none,
|
|
22
|
+
* such as the one cached on the first-organization screen, which names no start.
|
|
23
|
+
*/
|
|
24
|
+
export declare const startTarget: ({ entry, fallback, enabled, organization, metaSettled, lookup }: {
|
|
25
|
+
entry: StartEntry | undefined;
|
|
26
|
+
fallback: AppAddress | undefined;
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
organization: string | null | undefined;
|
|
29
|
+
metaSettled: boolean;
|
|
30
|
+
lookup: StartLookup;
|
|
31
|
+
}) => StartTarget;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the `/meta` drawn is one read in this page load, or the start cache's once reading it again failed: the one
|
|
34
|
+
* the `/meta` query holds (`state`), compared by ETag, as what is drawn may still be the query's previous answer for a
|
|
35
|
+
* render.
|
|
36
|
+
*/
|
|
37
|
+
export declare const metaSettled: (drawn: MetaData, state: Pick<QueryState<MetaData>, "data" | "dataUpdatedAt"> | undefined, startedAt: number, lastFailed: boolean) => boolean;
|
|
38
|
+
//#endregion
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { isAnsweredNow } from "../data/start-cache/restored-state.js";
|
|
2
|
+
import { startKey } from "./start-record.js";
|
|
3
|
+
//#region src/app/start-target.ts
|
|
4
|
+
/**
|
|
5
|
+
* What `/` opens, from the start entry and first sidebar entry of `/meta` (`startEntry`, `startAddress`) and the start
|
|
6
|
+
* record's lookup; see `useStartAddress`. In an app with organizations (`organization` other than `''`) it waits for a
|
|
7
|
+
* `/meta` answered in this page load (`metaSettled`), as a cached one may be from another organization or from none,
|
|
8
|
+
* such as the one cached on the first-organization screen, which names no start.
|
|
9
|
+
*/
|
|
10
|
+
const startTarget = ({ entry, fallback, enabled, organization, metaSettled, lookup }) => {
|
|
11
|
+
const opensFallback = {
|
|
12
|
+
state: "ready",
|
|
13
|
+
...fallback && { address: fallback }
|
|
14
|
+
};
|
|
15
|
+
if (organization === null) return opensFallback;
|
|
16
|
+
if (organization !== "" && !metaSettled) return enabled ? { state: "resolving" } : opensFallback;
|
|
17
|
+
if (!entry) return opensFallback;
|
|
18
|
+
if (organization === void 0 || lookup.pending) return enabled ? { state: "resolving" } : opensFallback;
|
|
19
|
+
if (lookup.failed) return opensFallback;
|
|
20
|
+
const key = lookup.rows && startKey(entry.model, lookup.rows);
|
|
21
|
+
if (key !== void 0) return {
|
|
22
|
+
state: "ready",
|
|
23
|
+
address: {
|
|
24
|
+
kind: "record",
|
|
25
|
+
resource: entry.model.name,
|
|
26
|
+
key
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
return opensFallback;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Whether the `/meta` drawn is one read in this page load, or the start cache's once reading it again failed: the one
|
|
33
|
+
* the `/meta` query holds (`state`), compared by ETag, as what is drawn may still be the query's previous answer for a
|
|
34
|
+
* render.
|
|
35
|
+
*/
|
|
36
|
+
const metaSettled = (drawn, state, startedAt, lastFailed) => state?.data?.etag === drawn.etag && (isAnsweredNow(state, startedAt) || lastFailed);
|
|
37
|
+
//#endregion
|
|
38
|
+
export { metaSettled, startTarget };
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { MetaData } from "../data/meta-data.js";
|
|
2
|
-
import {
|
|
2
|
+
import { StartTarget } from "./start-target.js";
|
|
3
3
|
//#region src/app/use-start-address.d.ts
|
|
4
|
-
export type StartTarget = {
|
|
5
|
-
state: 'resolving';
|
|
6
|
-
} | {
|
|
7
|
-
state: 'ready';
|
|
8
|
-
address?: AppAddress;
|
|
9
|
-
};
|
|
10
4
|
/**
|
|
11
5
|
* What `/` opens: the record the first sidebar entry with `nav.start` finds, read with the caller's access, else the
|
|
12
6
|
* first sidebar entry (`startAddress`). `resolving` while the lookup runs, so `/` draws nothing rather than a list it
|
|
@@ -15,7 +9,10 @@ export type StartTarget = {
|
|
|
15
9
|
* found before. The answer is a query, so the start cache has it on the next start.
|
|
16
10
|
*
|
|
17
11
|
* `organization` is the one the record is looked up in, `''` in an app without organizations: `undefined` while it is
|
|
18
|
-
* not yet known for certain, which resolves, and `null` once it cannot be, which opens the first entry.
|
|
12
|
+
* not yet known for certain, which resolves, and `null` once it cannot be, which opens the first entry. With
|
|
13
|
+
* organizations, `/` also waits for `/meta` to be read in this page load, or to fail, rather than settle on the start
|
|
14
|
+
* cache's (see `startTarget`).
|
|
19
15
|
*/
|
|
20
16
|
export declare const useStartAddress: (meta: MetaData, enabled: boolean, organization: string | null | undefined) => StartTarget;
|
|
21
|
-
//#endregion
|
|
17
|
+
//#endregion
|
|
18
|
+
export type { StartTarget };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { keys } from "../data/query-keys.js";
|
|
2
|
-
import { lastFetchFailed } from "../data/start-cache/restored-state.js";
|
|
2
|
+
import { ClientStartContext, lastFetchFailed } from "../data/start-cache/restored-state.js";
|
|
3
3
|
import { useClient } from "../data/api-provider.js";
|
|
4
|
+
import { useMeta } from "../data/use-meta.js";
|
|
4
5
|
import { startAddress } from "./start-address.js";
|
|
5
|
-
import { startEntry,
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { startEntry, startRequest } from "./start-record.js";
|
|
7
|
+
import { metaSettled, startTarget } from "./start-target.js";
|
|
8
|
+
import { useContext, useMemo } from "react";
|
|
9
|
+
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
8
10
|
//#region src/app/use-start-address.ts
|
|
9
11
|
/**
|
|
10
12
|
* What `/` opens: the record the first sidebar entry with `nav.start` finds, read with the caller's access, else the
|
|
@@ -14,10 +16,15 @@ import { useQuery } from "@tanstack/react-query";
|
|
|
14
16
|
* found before. The answer is a query, so the start cache has it on the next start.
|
|
15
17
|
*
|
|
16
18
|
* `organization` is the one the record is looked up in, `''` in an app without organizations: `undefined` while it is
|
|
17
|
-
* not yet known for certain, which resolves, and `null` once it cannot be, which opens the first entry.
|
|
19
|
+
* not yet known for certain, which resolves, and `null` once it cannot be, which opens the first entry. With
|
|
20
|
+
* organizations, `/` also waits for `/meta` to be read in this page load, or to fail, rather than settle on the start
|
|
21
|
+
* cache's (see `startTarget`).
|
|
18
22
|
*/
|
|
19
23
|
const useStartAddress = (meta, enabled, organization) => {
|
|
20
24
|
const client = useClient();
|
|
25
|
+
const startedAt = useContext(ClientStartContext);
|
|
26
|
+
const metaQuery = useMeta();
|
|
27
|
+
const metaState = useQueryClient().getQueryState(keys.meta);
|
|
21
28
|
const entry = useMemo(() => startEntry(meta), [meta]);
|
|
22
29
|
const fallback = useMemo(() => startAddress(meta), [meta]);
|
|
23
30
|
const request = entry && startRequest(entry, meta);
|
|
@@ -27,23 +34,18 @@ const useStartAddress = (meta, enabled, organization) => {
|
|
|
27
34
|
enabled: enabled && Boolean(entry) && typeof organization === "string",
|
|
28
35
|
retry: false
|
|
29
36
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
address: {
|
|
41
|
-
kind: "record",
|
|
42
|
-
resource: entry.model.name,
|
|
43
|
-
key
|
|
37
|
+
return startTarget({
|
|
38
|
+
entry,
|
|
39
|
+
fallback,
|
|
40
|
+
enabled,
|
|
41
|
+
organization,
|
|
42
|
+
metaSettled: metaSettled(meta, metaState, startedAt, lastFetchFailed(metaQuery)),
|
|
43
|
+
lookup: {
|
|
44
|
+
pending: query.isPending,
|
|
45
|
+
failed: lastFetchFailed(query),
|
|
46
|
+
...query.data && { rows: query.data.items }
|
|
44
47
|
}
|
|
45
|
-
};
|
|
46
|
-
return opensFallback;
|
|
48
|
+
});
|
|
47
49
|
};
|
|
48
50
|
//#endregion
|
|
49
51
|
export { useStartAddress };
|
|
@@ -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: "organizations" | "roles" | "signIn" | "resources" | "system" | "theme" | "breadcrumb" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "signOut" | "light" | "dark" | "recent" | "
|
|
5
|
-
rich(id: "organizations" | "roles" | "signIn" | "resources" | "system" | "theme" | "breadcrumb" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "signOut" | "light" | "dark" | "recent" | "
|
|
4
|
+
(id: "organizations" | "roles" | "signIn" | "loading" | "resources" | "system" | "theme" | "breadcrumb" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "signOut" | "light" | "dark" | "recent" | "couldNotLoad" | "viewAll" | "couldNotSearch", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "organizations" | "roles" | "signIn" | "loading" | "resources" | "system" | "theme" | "breadcrumb" | "search" | "tabs" | "navigation" | "more" | "openNavigation" | "backTo" | "closeSearch" | "clearSearch" | "globalSearch" | "searchResults" | "searching" | "noMatches" | "accountOf" | "profileMenu" | "signOut" | "light" | "dark" | "recent" | "couldNotLoad" | "viewAll" | "couldNotSearch", 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/assistant-dock/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "reconnecting" | "
|
|
5
|
-
rich(id: "reconnecting" | "
|
|
4
|
+
(id: "reconnecting" | "empty" | "askQuestion" | "assistant" | "noAnswer" | "backendNoAnswer" | "couldNotDraw" | "cannotShowLive", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "reconnecting" | "empty" | "askQuestion" | "assistant" | "noAnswer" | "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: "admin" | "or" | "yourName" | "continue" | "signIn" | "reason" | "
|
|
5
|
-
rich(id: "admin" | "or" | "yourName" | "continue" | "signIn" | "reason" | "
|
|
4
|
+
(id: "password" | "emailCode" | "forgotPassword" | "admin" | "email" | "or" | "yourName" | "continue" | "signIn" | "reason" | "loading" | "reload" | "signOut" | "noAnswer" | "tooManyRequests" | "code" | "setPassword" | "newPassword" | "verify" | "cannotReach" | "tryAgain" | "passwordChanged" | "backupCode" | "passwordOptional" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "passwordsDiffer" | "choosePassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "repeatPassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "addPasskey" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "password" | "emailCode" | "forgotPassword" | "admin" | "email" | "or" | "yourName" | "continue" | "signIn" | "reason" | "loading" | "reload" | "signOut" | "noAnswer" | "tooManyRequests" | "code" | "setPassword" | "newPassword" | "verify" | "cannotReach" | "tryAgain" | "passwordChanged" | "backupCode" | "passwordOptional" | "backToSignIn" | "useAnotherAddress" | "checkEmail" | "newCodeSent" | "sendNewCode" | "sendNewCodeIn" | "signInCodeDescription" | "signInCodeSent" | "signUpCodeDescription" | "signUpCodeSent" | "noAdminTitle" | "noAdminDescription" | "noAdminExplanation" | "copyCommand" | "firstAdminExplanation" | "firstAdminLink" | "tooManyAttempts" | "resetTitle" | "resetDescription" | "sendResetLink" | "resetSent" | "linkExpiredTitle" | "linkExpiredExplanation" | "sendNewLink" | "passwordsDiffer" | "choosePassword" | "atLeast" | "useAtLeast" | "passwordTooLong" | "repeatPassword" | "signingInWith" | "takingYouTo" | "providerNotOffered" | "turnOnTwoFactor" | "addPasskey" | "requiredForEveryAccount" | "passkeyExplanation" | "couldNotReadAccount" | "signInTitle" | "runsOnProtobase" | "continueWith" | "signInWithPasskey" | "passkeyFor" | "emailSignInCode" | "usePassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "browseWithoutAccount" | "staffTitle" | "staffUnavailable" | "signInAsPerson" | "forStaffOf" | "theirEmail" | "reasonExample" | "staffExplanation" | "totpInstruction" | "otpInstruction" | "backupInstruction" | "twoFactorTitle" | "twoFactorDescription" | "codeToFinish" | "trustBrowser" | "trustBrowserFor" | "useAuthenticator" | "emailCodeInstead" | "useBackupCode", 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" | "new" | "
|
|
5
|
-
rich(id: "row" | "new" | "
|
|
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: "remove" | "date" | "
|
|
5
|
-
rich(id: "remove" | "date" | "
|
|
4
|
+
(id: "remove" | "date" | "year" | "month" | "today" | "yesterday" | "noMatches" | "maximum" | "minimum" | "24h" | "7d" | "30d" | "90d" | "quarter" | "unknownPreset" | "unsupported" | "clearAll" | "searchIn" | "moreFilters" | "filters" | "showOnly" | "couldNotLoadCounts", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "remove" | "date" | "year" | "month" | "today" | "yesterday" | "noMatches" | "maximum" | "minimum" | "24h" | "7d" | "30d" | "90d" | "quarter" | "unknownPreset" | "unsupported" | "clearAll" | "searchIn" | "moreFilters" | "filters" | "showOnly" | "couldNotLoadCounts", 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: "
|
|
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,34 +1,7 @@
|
|
|
1
1
|
import { nestedHeadingLevel } from "./nested-heading-level.js";
|
|
2
|
+
import { escapeHtml, imageSchemes, linkSchemes, newTabLink, safeAddress, titled } from "./safe-html.js";
|
|
2
3
|
import { Marked } from "marked";
|
|
3
4
|
//#region src/markdown/markdown-html.ts
|
|
4
|
-
const escapes = {
|
|
5
|
-
"&": "&",
|
|
6
|
-
"<": "<",
|
|
7
|
-
">": ">",
|
|
8
|
-
"\"": """,
|
|
9
|
-
"'": "'"
|
|
10
|
-
};
|
|
11
|
-
const escapeHtml = (text) => text.replace(/[&<>"']/g, (char) => escapes[char]);
|
|
12
|
-
const scheme = /^([a-z][a-z0-9+.-]*):/i;
|
|
13
|
-
const linkSchemes = /* @__PURE__ */ new Set([
|
|
14
|
-
"http",
|
|
15
|
-
"https",
|
|
16
|
-
"mailto",
|
|
17
|
-
"tel"
|
|
18
|
-
]);
|
|
19
|
-
const imageSchemes = /* @__PURE__ */ new Set(["http", "https"]);
|
|
20
|
-
const ignoredByBrowsers = /[\u0000-\u0020\u007f]/g;
|
|
21
|
-
const safeAddress = (href, schemes) => {
|
|
22
|
-
const named = scheme.exec(href.replace(ignoredByBrowsers, ""))?.[1]?.toLowerCase();
|
|
23
|
-
if (named !== void 0 && !schemes.has(named)) return null;
|
|
24
|
-
try {
|
|
25
|
-
return encodeURI(href).replace(/%25/g, "%");
|
|
26
|
-
} catch (error) {
|
|
27
|
-
if (error instanceof URIError) return null;
|
|
28
|
-
throw error;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
const titled = (title) => title ? ` title="${escapeHtml(title)}"` : "";
|
|
32
5
|
const parser = ({ inLink = false }) => new Marked({
|
|
33
6
|
gfm: true,
|
|
34
7
|
breaks: true,
|
|
@@ -38,7 +11,7 @@ const parser = ({ inLink = false }) => new Marked({
|
|
|
38
11
|
const text = this.parser.parseInline(tokens);
|
|
39
12
|
const address = inLink ? null : safeAddress(href, linkSchemes);
|
|
40
13
|
if (address === null) return text;
|
|
41
|
-
return
|
|
14
|
+
return newTabLink(address, title, text);
|
|
42
15
|
},
|
|
43
16
|
image({ href, title, text }) {
|
|
44
17
|
const address = inLink ? null : safeAddress(href, imageSchemes);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/markdown/safe-html.d.ts
|
|
2
|
+
/** Text as HTML that shows it as written. */
|
|
3
|
+
export declare const escapeHtml: (text: string) => string;
|
|
4
|
+
export declare const linkSchemes: ReadonlySet<string>;
|
|
5
|
+
export declare const imageSchemes: ReadonlySet<string>;
|
|
6
|
+
/** An address percent-encoded as marked does, or null when it leaves the allowed schemes, such as `javascript:`. */
|
|
7
|
+
export declare const safeAddress: (href: string, schemes: ReadonlySet<string>) => string | null;
|
|
8
|
+
export declare const titled: (title: string | null | undefined) => string;
|
|
9
|
+
/** A link that opens in a new tab without handing it the page. */
|
|
10
|
+
export declare const newTabLink: (address: string, title: string | null | undefined, html: string) => string;
|
|
11
|
+
//#endregion
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region src/markdown/safe-html.ts
|
|
2
|
+
const escapes = {
|
|
3
|
+
"&": "&",
|
|
4
|
+
"<": "<",
|
|
5
|
+
">": ">",
|
|
6
|
+
"\"": """,
|
|
7
|
+
"'": "'"
|
|
8
|
+
};
|
|
9
|
+
/** Text as HTML that shows it as written. */
|
|
10
|
+
const escapeHtml = (text) => text.replace(/[&<>"']/g, (char) => escapes[char]);
|
|
11
|
+
const scheme = /^([a-z][a-z0-9+.-]*):/i;
|
|
12
|
+
const linkSchemes = /* @__PURE__ */ new Set([
|
|
13
|
+
"http",
|
|
14
|
+
"https",
|
|
15
|
+
"mailto",
|
|
16
|
+
"tel"
|
|
17
|
+
]);
|
|
18
|
+
const imageSchemes = /* @__PURE__ */ new Set(["http", "https"]);
|
|
19
|
+
const ignoredByBrowsers = /[\u0000- \u007f]/g;
|
|
20
|
+
/** An address percent-encoded as marked does, or null when it leaves the allowed schemes, such as `javascript:`. */
|
|
21
|
+
const safeAddress = (href, schemes) => {
|
|
22
|
+
const named = scheme.exec(href.replace(ignoredByBrowsers, ""))?.[1]?.toLowerCase();
|
|
23
|
+
if (named !== void 0 && !schemes.has(named)) return null;
|
|
24
|
+
try {
|
|
25
|
+
return encodeURI(href).replace(/%25/g, "%");
|
|
26
|
+
} catch (error) {
|
|
27
|
+
if (error instanceof URIError) return null;
|
|
28
|
+
throw error;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const titled = (title) => title ? ` title="${escapeHtml(title)}"` : "";
|
|
32
|
+
/** A link that opens in a new tab without handing it the page. */
|
|
33
|
+
const newTabLink = (address, title, html) => `<a href="${escapeHtml(address)}"${titled(title)} target="_blank" rel="noopener noreferrer nofollow">${html}</a>`;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { escapeHtml, imageSchemes, linkSchemes, newTabLink, safeAddress, titled };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/mentions/link-text.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Whether a link's text names a web address on another host than the link opens, such as
|
|
4
|
+
* `[https://example.com](https://elsewhere.example)`, so the reader would be misled about where it goes.
|
|
5
|
+
*/
|
|
6
|
+
export declare const misleadingLinkText: (text: string, href: string) => boolean;
|
|
7
|
+
//#endregion
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/mentions/link-text.ts
|
|
2
|
+
const addressLike = /^(?:[a-z][a-z0-9+.-]*:\/\/)?((?:[\p{L}\p{N}-]+\.)+[\p{L}]{2,})(?::\d+)?(?:[/?#]\S*)?$/iu;
|
|
3
|
+
const hostOf = (address) => {
|
|
4
|
+
if (!URL.canParse(address)) return;
|
|
5
|
+
return new URL(address).hostname.toLowerCase();
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Whether a link's text names a web address on another host than the link opens, such as
|
|
9
|
+
* `[https://example.com](https://elsewhere.example)`, so the reader would be misled about where it goes.
|
|
10
|
+
*/
|
|
11
|
+
const misleadingLinkText = (text, href) => {
|
|
12
|
+
const named = addressLike.exec(text.trim())?.[1];
|
|
13
|
+
if (!named) return false;
|
|
14
|
+
const namedHost = hostOf(`http://${named}`);
|
|
15
|
+
if (!namedHost) return true;
|
|
16
|
+
return hostOf(href) !== namedHost;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { misleadingLinkText };
|
|
@@ -18,6 +18,8 @@ export declare const insertMention: (text: string, active: ActiveMention, name:
|
|
|
18
18
|
};
|
|
19
19
|
/** The ids of the picked users whose `@{name}` is still in the text, each once. */
|
|
20
20
|
export declare const mentionedIds: (text: string, picked: readonly PickedUser[]) => string[];
|
|
21
|
+
/** The class of a mention's `@{name}`, as it shows in message text: tinted, so it stands out inside bold text too, where it stays bold. */
|
|
22
|
+
export declare const mentionClass = "rounded-sm bg-primary/10 px-0.5 font-medium text-primary [strong_&]:font-bold";
|
|
21
23
|
export type BodyPart = {
|
|
22
24
|
text: string;
|
|
23
25
|
} | {
|
|
@@ -27,6 +27,8 @@ const mentionedIds = (text, picked) => {
|
|
|
27
27
|
const written = new Set(pattern ? [...text.matchAll(pattern)].map((match) => match[1]) : []);
|
|
28
28
|
return [...new Set(picked.filter((user) => written.has(user.name)).map((user) => user.id))];
|
|
29
29
|
};
|
|
30
|
+
/** The class of a mention's `@{name}`, as it shows in message text: tinted, so it stands out inside bold text too, where it stays bold. */
|
|
31
|
+
const mentionClass = "rounded-sm bg-primary/10 px-0.5 font-medium text-primary [strong_&]:font-bold";
|
|
30
32
|
/** A comment's text split into plain text and the `@{name}` of each person it mentions whose name is known. */
|
|
31
33
|
const bodyParts = (body, mentions) => {
|
|
32
34
|
const pattern = mentionPattern(mentions.flatMap((user) => user.name ? [user.name] : []));
|
|
@@ -42,4 +44,4 @@ const bodyParts = (body, mentions) => {
|
|
|
42
44
|
return parts;
|
|
43
45
|
};
|
|
44
46
|
//#endregion
|
|
45
|
-
export { activeMention, bodyParts, insertMention, mentionedIds };
|
|
47
|
+
export { activeMention, bodyParts, insertMention, mentionClass, mentionedIds };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { MessageContentProps } from "./message-content.js";
|
|
1
2
|
//#region src/mentions/mentioned-text.d.ts
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}) => import("react").JSX.Element;
|
|
3
|
+
/**
|
|
4
|
+
* A message's text, such as a comment's: bold, italic, strikethrough, code, code blocks, lists and quotes rendered, web
|
|
5
|
+
* addresses as links opening in a new tab, and each `@{name}` of someone it mentions picked out; a name not in `mentions`
|
|
6
|
+
* stays plain.
|
|
7
|
+
*/
|
|
8
|
+
export declare const MentionedText: (props: MessageContentProps) => import("react").JSX.Element;
|
|
9
9
|
//#endregion
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import { bodyParts } from "./mention-text.js";
|
|
1
|
+
import { bodyParts, mentionClass } from "./mention-text.js";
|
|
2
|
+
import { Suspense, lazy } from "react";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
//#region src/mentions/mentioned-text.tsx
|
|
4
|
-
|
|
5
|
-
const
|
|
5
|
+
const MessageContent = lazy(() => import("./message-content.js").then((module) => ({ default: module.MessageContent })));
|
|
6
|
+
const AsWritten = ({ text, mentions }) => /* @__PURE__ */ jsx("div", {
|
|
6
7
|
className: "whitespace-pre-wrap break-words",
|
|
7
8
|
children: bodyParts(text, mentions).map((part, index) => "mention" in part ? /* @__PURE__ */ jsxs("span", {
|
|
8
|
-
className:
|
|
9
|
+
className: mentionClass,
|
|
9
10
|
children: ["@", part.mention]
|
|
10
11
|
}, index) : part.text)
|
|
11
12
|
});
|
|
13
|
+
/**
|
|
14
|
+
* A message's text, such as a comment's: bold, italic, strikethrough, code, code blocks, lists and quotes rendered, web
|
|
15
|
+
* addresses as links opening in a new tab, and each `@{name}` of someone it mentions picked out; a name not in `mentions`
|
|
16
|
+
* stays plain.
|
|
17
|
+
*/
|
|
18
|
+
const MentionedText = (props) => /* @__PURE__ */ jsx(Suspense, {
|
|
19
|
+
fallback: /* @__PURE__ */ jsx(AsWritten, { ...props }),
|
|
20
|
+
children: /* @__PURE__ */ jsx(MessageContent, { ...props })
|
|
21
|
+
});
|
|
12
22
|
//#endregion
|
|
13
23
|
export { MentionedText };
|