@protobase/ui 0.119.3 → 0.119.5
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/charts/messages.d.ts +2 -2
- package/dist/app/confirm-sign-in-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-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/definition.d.ts +1 -1
- package/dist/app/field-types/workflow/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-page/messages.d.ts +2 -2
- package/dist/app/field-types/workflow-run/messages.d.ts +2 -2
- package/dist/app/focus/messages.d.ts +2 -2
- package/dist/app/gallery/gallery-layout.d.ts +2 -2
- package/dist/app/hand-order/messages.d.ts +2 -2
- package/dist/app/import/messages.d.ts +2 -2
- package/dist/app/list-messages.d.ts +2 -2
- package/dist/app/messages.d.ts +2 -2
- package/dist/app/meta-gate-messages.d.ts +2 -2
- package/dist/app/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-row/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-shell/messages.d.ts +2 -2
- package/dist/assistant-dock/messages.d.ts +2 -2
- package/dist/auth/messages.d.ts +2 -2
- package/dist/calls/messages.d.ts +2 -2
- package/dist/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 +38 -0
- package/dist/notifications/bell/messages.d.ts +2 -2
- package/dist/organizations/messages.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/primitives/messages.d.ts +2 -2
- package/dist/shell/assets/{account-page-d4bA-Rnh.js → account-page-ve4BUXRh.js} +2 -2
- package/dist/shell/assets/{app-xwgcmboV.css → app-DLkpxjgP.css} +1 -1
- package/dist/shell/assets/{app-B94YfKGx.js → app-DU-Bny4k.js} +7 -7
- package/dist/shell/assets/{assistant-shell-DTNOfaAZ.js → assistant-shell-KyMQvcsn.js} +2 -2
- package/dist/shell/assets/board-display-BaMLmYUJ.js +2 -0
- package/dist/shell/assets/calendar-display-CzQPcItV.js +2 -0
- package/dist/shell/assets/{call-rings-D8cGALi4.js → call-rings-DUzC7UYz.js} +2 -2
- package/dist/shell/assets/{calls-DLSo4hNS.js → calls-drZLv0wW.js} +2 -2
- package/dist/shell/assets/{circle-alert-C8YjGdRx.js → circle-alert-COV0WNyG.js} +2 -2
- package/dist/shell/assets/composed-page-CBJLOXNJ.js +2 -0
- package/dist/shell/assets/{composer-section-6TvE0L2w.js → composer-section-05sGMnpR.js} +2 -2
- package/dist/shell/assets/{connect-route-C8Km-e8S.js → connect-route-KBsPFlW4.js} +2 -2
- package/dist/shell/assets/{copy-field-DXp0fGDR.js → copy-field-14Vmg95D.js} +2 -2
- package/dist/shell/assets/create-route-DAprAV2h.js +2 -0
- package/dist/shell/assets/{custom-step-container-field-B8ut5WnP.js → custom-step-container-field-D0cmhURR.js} +4 -4
- package/dist/shell/assets/embedded-list-Ra3OLUh6.js +3 -0
- package/dist/shell/assets/{export-dialog-gSUSlzOy.js → export-dialog-Cz26bxgN.js} +2 -2
- package/dist/shell/assets/{first-organization-page-C7YZ32Kt.js → first-organization-page-C9ejBI4S.js} +2 -2
- package/dist/shell/assets/{graph-view-_7poAZsr.js → graph-view-B3TE-xbG.js} +2 -2
- package/dist/shell/assets/{group-donut-XjNEBVUq.js → group-donut-BAyTgqYv.js} +2 -2
- package/dist/shell/assets/{guest-call-page-Cj6F3D3u.js → guest-call-page-CEcPrLXS.js} +3 -3
- package/dist/shell/assets/{html-viewer-CmYTAzWa.js → html-viewer-DaeVR6PB.js} +2 -2
- package/dist/shell/assets/{import-dialog-bNG6qX6Q.js → import-dialog-6I25EI49.js} +2 -2
- package/dist/shell/assets/import-table-dialog-COsPNket.js +2 -0
- package/dist/shell/assets/{index-CYraq2Hi.js → index-CLyiQa16.js} +1 -1
- package/dist/shell/assets/{invitations-page-XV6kL2Mk.js → invitations-page-TBz_-ekD.js} +2 -2
- package/dist/shell/assets/{layout-grid-dpoR6hFU.js → layout-grid-BTGS8Vdw.js} +2 -2
- package/dist/shell/assets/{legend-item-WwKh2W6n.js → legend-item-DkIaBiD0.js} +2 -2
- package/dist/shell/assets/list-page-Dpq9M7YO.js +4 -0
- package/dist/shell/assets/{maplibre-Bm0OQH9k.js → maplibre-JTZsxvhv.js} +2 -2
- package/dist/shell/assets/{markdown-content-BZLiLira.js → markdown-content-DBVa63k_.js} +2 -2
- package/dist/shell/assets/members-page-CHRY9H9W.js +2 -0
- package/dist/shell/assets/message-content-DzyGCvgQ.js +3 -0
- package/dist/shell/assets/messages-BwcGcxFR.js +2 -0
- package/dist/shell/assets/organization-page-BE182e_K.js +2 -0
- package/dist/shell/assets/organizations-page-DaN6zQZj.js +2 -0
- package/dist/shell/assets/{pending-invitation-row-BZVOux9W.js → pending-invitation-row-DvqK-Lh5.js} +2 -2
- package/dist/shell/assets/{period-chart-GDqLnl9l.js → period-chart-Cn9bgVfB.js} +2 -2
- package/dist/shell/assets/{person-row-DgXLW9D8.js → person-row-CSBZnBQc.js} +2 -2
- package/dist/shell/assets/public-form-page-CaNVr6BS.js +2 -0
- package/dist/shell/assets/{record-lines-CDTPiIdF.js → record-lines-3DhkRSpH.js} +2 -2
- package/dist/shell/assets/{record-map-Dcmuv9J8.js → record-map-D4rgUOwb.js} +2 -2
- package/dist/shell/assets/{record-opens-D7SV04zf.js → record-opens-BSFQWqio.js} +2 -2
- package/dist/shell/assets/record-page-Cbx9gqMY.js +3 -0
- package/dist/shell/assets/{record-preview-DsIrTWKZ.js → record-preview-Bdzkrw0H.js} +2 -2
- package/dist/shell/assets/{records-map-G0QXqaUR.js → records-map-BfkBfva4.js} +2 -2
- package/dist/shell/assets/render-node-ChsAMZVA.js +3 -0
- package/dist/shell/assets/reorder-button-pGaEX5DI.js +2 -0
- package/dist/shell/assets/{run-trace-view-DLY3Mt5m.js → run-trace-view-Cd3DppYM.js} +2 -2
- package/dist/shell/assets/{runner-install-field-Iwp4UP6o.js → runner-install-field-CK3olYt5.js} +2 -2
- package/dist/shell/assets/{runtime-update-DKcAQek2.js → runtime-update-BNTp15Vo.js} +2 -2
- package/dist/shell/assets/safe-html-CmkqDcA6.js +2 -0
- package/dist/shell/assets/shared-protobase-ui-gnK6D3Al.js +1 -0
- package/dist/shell/assets/sheet-source-DONoSDqu.js +3 -0
- package/dist/shell/assets/sign-in-policy-page-C4MEEpwM.js +2 -0
- package/dist/shell/assets/start-block-queries-B7qJvkWD.js +2 -0
- package/dist/shell/assets/step-catalog-CgPcuEu_.js +2 -0
- package/dist/shell/assets/{step-panel-BXHWAw8x.js → step-panel-CoFQOZfZ.js} +2 -2
- package/dist/shell/assets/timeline-display-F8qMrey9.js +2 -0
- package/dist/shell/assets/{trash-MHAT5Hf3.js → trash-BFH8OA7M.js} +2 -2
- package/dist/shell/assets/{update-set-B0D_tNDz.js → update-set-CivHicWr.js} +2 -2
- package/dist/shell/assets/use-calendar-move-CezBW0KE.js +2 -0
- package/dist/shell/assets/{use-display-rows-vjthlkqo.js → use-display-rows-7iLrRpz6.js} +2 -2
- package/dist/shell/assets/use-my-invitations-B7w0Q5kk.js +2 -0
- package/dist/shell/assets/{use-paged-search-DRj8498k.js → use-paged-search-CblCRsCd.js} +2 -2
- package/dist/shell/assets/{use-run-trace-CWGAibgF.js → use-run-trace-vMzYYuXG.js} +2 -2
- package/dist/shell/assets/{use-workflow-page-C9ZEXX5R.js → use-workflow-page-Dac4wyOA.js} +2 -2
- package/dist/shell/assets/{use-workflow-types-DDh28X2_.js → use-workflow-types-Bi8u42jQ.js} +2 -2
- package/dist/shell/assets/{workflow-canvas-n_YJtaOh.js → workflow-canvas-2owtFZNz.js} +4 -4
- package/dist/shell/assets/{workflow-field-CpkY17Cc.js → workflow-field-Ct0HoH5Z.js} +3 -3
- package/dist/shell/assets/{workflow-graph-editor-V-ZGHSrC.js → workflow-graph-editor-oAKVQAgf.js} +2 -2
- package/dist/shell/assets/{workflow-run-field-CoUJGVdX.js → workflow-run-field-C7ff1D9_.js} +3 -3
- package/dist/shell/assets/workflow-status-field-iHUr4FZM.js +2 -0
- package/dist/shell/assets/workflow-workbench-BCsEjQVw.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-d4bA-Rnh.js.map → account-page-ve4BUXRh.js.map} +1 -1
- package/dist/shell-source-maps/assets/app-DU-Bny4k.js.map +1 -0
- package/dist/shell-source-maps/assets/{assistant-shell-DTNOfaAZ.js.map → assistant-shell-KyMQvcsn.js.map} +1 -1
- package/dist/shell-source-maps/assets/{board-display-ClTe26F0.js.map → board-display-BaMLmYUJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calendar-display-CwBcu_JO.js.map → calendar-display-CzQPcItV.js.map} +1 -1
- package/dist/shell-source-maps/assets/{call-rings-D8cGALi4.js.map → call-rings-DUzC7UYz.js.map} +1 -1
- package/dist/shell-source-maps/assets/{calls-DLSo4hNS.js.map → calls-drZLv0wW.js.map} +1 -1
- package/dist/shell-source-maps/assets/{circle-alert-C8YjGdRx.js.map → circle-alert-COV0WNyG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composed-page-DBHl-wl_.js.map → composed-page-CBJLOXNJ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{composer-section-6TvE0L2w.js.map → composer-section-05sGMnpR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{connect-route-C8Km-e8S.js.map → connect-route-KBsPFlW4.js.map} +1 -1
- package/dist/shell-source-maps/assets/{copy-field-DXp0fGDR.js.map → copy-field-14Vmg95D.js.map} +1 -1
- package/dist/shell-source-maps/assets/{create-route-s8RsjtyM.js.map → create-route-DAprAV2h.js.map} +1 -1
- package/dist/shell-source-maps/assets/{custom-step-container-field-B8ut5WnP.js.map → custom-step-container-field-D0cmhURR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{embedded-list-OJQKeuBN.js.map → embedded-list-Ra3OLUh6.js.map} +1 -1
- package/dist/shell-source-maps/assets/{export-dialog-gSUSlzOy.js.map → export-dialog-Cz26bxgN.js.map} +1 -1
- package/dist/shell-source-maps/assets/{first-organization-page-C7YZ32Kt.js.map → first-organization-page-C9ejBI4S.js.map} +1 -1
- package/dist/shell-source-maps/assets/{graph-view-_7poAZsr.js.map → graph-view-B3TE-xbG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{group-donut-XjNEBVUq.js.map → group-donut-BAyTgqYv.js.map} +1 -1
- package/dist/shell-source-maps/assets/{guest-call-page-Cj6F3D3u.js.map → guest-call-page-CEcPrLXS.js.map} +1 -1
- package/dist/shell-source-maps/assets/{html-viewer-CmYTAzWa.js.map → html-viewer-DaeVR6PB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-dialog-bNG6qX6Q.js.map → import-dialog-6I25EI49.js.map} +1 -1
- package/dist/shell-source-maps/assets/{import-table-dialog-BbI7GJ8R.js.map → import-table-dialog-COsPNket.js.map} +1 -1
- package/dist/shell-source-maps/assets/{invitations-page-XV6kL2Mk.js.map → invitations-page-TBz_-ekD.js.map} +1 -1
- package/dist/shell-source-maps/assets/{layout-grid-dpoR6hFU.js.map → layout-grid-BTGS8Vdw.js.map} +1 -1
- package/dist/shell-source-maps/assets/{legend-item-WwKh2W6n.js.map → legend-item-DkIaBiD0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{list-page-DImD2FRO.js.map → list-page-Dpq9M7YO.js.map} +1 -1
- package/dist/shell-source-maps/assets/{maplibre-Bm0OQH9k.js.map → maplibre-JTZsxvhv.js.map} +1 -1
- package/dist/shell-source-maps/assets/markdown-content-DBVa63k_.js.map +1 -0
- package/dist/shell-source-maps/assets/{members-page-ZcqzlQu6.js.map → members-page-CHRY9H9W.js.map} +1 -1
- package/dist/shell-source-maps/assets/message-content-DzyGCvgQ.js.map +1 -0
- package/dist/shell-source-maps/assets/{messages-vzi5T1Xo.js.map → messages-BwcGcxFR.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organization-page-CjrQmpot.js.map → organization-page-BE182e_K.js.map} +1 -1
- package/dist/shell-source-maps/assets/{organizations-page-C7gJsoCx.js.map → organizations-page-DaN6zQZj.js.map} +1 -1
- package/dist/shell-source-maps/assets/{pending-invitation-row-BZVOux9W.js.map → pending-invitation-row-DvqK-Lh5.js.map} +1 -1
- package/dist/shell-source-maps/assets/{period-chart-GDqLnl9l.js.map → period-chart-Cn9bgVfB.js.map} +1 -1
- package/dist/shell-source-maps/assets/{person-row-DgXLW9D8.js.map → person-row-CSBZnBQc.js.map} +1 -1
- package/dist/shell-source-maps/assets/{public-form-page-DjLnqHPx.js.map → public-form-page-CaNVr6BS.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-lines-CDTPiIdF.js.map → record-lines-3DhkRSpH.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-map-Dcmuv9J8.js.map → record-map-D4rgUOwb.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-opens-D7SV04zf.js.map → record-opens-BSFQWqio.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-page-DGWHTUdD.js.map → record-page-Cbx9gqMY.js.map} +1 -1
- package/dist/shell-source-maps/assets/{record-preview-DsIrTWKZ.js.map → record-preview-Bdzkrw0H.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-G0QXqaUR.js.map → records-map-BfkBfva4.js.map} +1 -1
- package/dist/shell-source-maps/assets/{render-node-0_Pb8ixy.js.map → render-node-ChsAMZVA.js.map} +1 -1
- package/dist/shell-source-maps/assets/{reorder-button-BhhzhhTO.js.map → reorder-button-pGaEX5DI.js.map} +1 -1
- package/dist/shell-source-maps/assets/{run-trace-view-DLY3Mt5m.js.map → run-trace-view-Cd3DppYM.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runner-install-field-Iwp4UP6o.js.map → runner-install-field-CK3olYt5.js.map} +1 -1
- package/dist/shell-source-maps/assets/{runtime-update-DKcAQek2.js.map → runtime-update-BNTp15Vo.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-DxVQhlKF.js.map → sheet-source-DONoSDqu.js.map} +1 -1
- package/dist/shell-source-maps/assets/{sign-in-policy-page-E1eBhmUM.js.map → sign-in-policy-page-C4MEEpwM.js.map} +1 -1
- package/dist/shell-source-maps/assets/{start-block-queries-Bu7xMabd.js.map → start-block-queries-B7qJvkWD.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-catalog-BPk6WuYH.js.map → step-catalog-CgPcuEu_.js.map} +1 -1
- package/dist/shell-source-maps/assets/{step-panel-BXHWAw8x.js.map → step-panel-CoFQOZfZ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{timeline-display-CJHQiDm9.js.map → timeline-display-F8qMrey9.js.map} +1 -1
- package/dist/shell-source-maps/assets/{trash-MHAT5Hf3.js.map → trash-BFH8OA7M.js.map} +1 -1
- package/dist/shell-source-maps/assets/{update-set-B0D_tNDz.js.map → update-set-CivHicWr.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-calendar-move-O_48Gqvs.js.map → use-calendar-move-CezBW0KE.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-display-rows-vjthlkqo.js.map → use-display-rows-7iLrRpz6.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-my-invitations-DDPuugTE.js.map → use-my-invitations-B7w0Q5kk.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-paged-search-DRj8498k.js.map → use-paged-search-CblCRsCd.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-run-trace-CWGAibgF.js.map → use-run-trace-vMzYYuXG.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-page-C9ZEXX5R.js.map → use-workflow-page-Dac4wyOA.js.map} +1 -1
- package/dist/shell-source-maps/assets/{use-workflow-types-DDh28X2_.js.map → use-workflow-types-Bi8u42jQ.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-canvas-n_YJtaOh.js.map → workflow-canvas-2owtFZNz.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-field-CpkY17Cc.js.map → workflow-field-Ct0HoH5Z.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-graph-editor-V-ZGHSrC.js.map → workflow-graph-editor-oAKVQAgf.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-run-field-CoUJGVdX.js.map → workflow-run-field-C7ff1D9_.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-status-field-nmrhtSls.js.map → workflow-status-field-iHUr4FZM.js.map} +1 -1
- package/dist/shell-source-maps/assets/{workflow-workbench-DvzNEdn3.js.map → workflow-workbench-BCsEjQVw.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-ClTe26F0.js +0 -2
- package/dist/shell/assets/calendar-display-CwBcu_JO.js +0 -2
- package/dist/shell/assets/composed-page-DBHl-wl_.js +0 -2
- package/dist/shell/assets/create-route-s8RsjtyM.js +0 -2
- package/dist/shell/assets/embedded-list-OJQKeuBN.js +0 -3
- package/dist/shell/assets/import-table-dialog-BbI7GJ8R.js +0 -2
- package/dist/shell/assets/list-page-DImD2FRO.js +0 -4
- package/dist/shell/assets/members-page-ZcqzlQu6.js +0 -2
- package/dist/shell/assets/messages-vzi5T1Xo.js +0 -2
- package/dist/shell/assets/organization-page-CjrQmpot.js +0 -2
- package/dist/shell/assets/organizations-page-C7gJsoCx.js +0 -2
- package/dist/shell/assets/public-form-page-DjLnqHPx.js +0 -2
- package/dist/shell/assets/record-page-DGWHTUdD.js +0 -3
- package/dist/shell/assets/render-node-0_Pb8ixy.js +0 -3
- package/dist/shell/assets/reorder-button-BhhzhhTO.js +0 -2
- package/dist/shell/assets/shared-protobase-ui-XTZSVgEm.js +0 -1
- package/dist/shell/assets/sheet-source-DxVQhlKF.js +0 -3
- package/dist/shell/assets/sign-in-policy-page-E1eBhmUM.js +0 -2
- package/dist/shell/assets/start-block-queries-Bu7xMabd.js +0 -2
- package/dist/shell/assets/step-catalog-BPk6WuYH.js +0 -2
- package/dist/shell/assets/timeline-display-CJHQiDm9.js +0 -2
- package/dist/shell/assets/use-calendar-move-O_48Gqvs.js +0 -2
- package/dist/shell/assets/use-my-invitations-DDPuugTE.js +0 -2
- package/dist/shell/assets/workflow-status-field-nmrhtSls.js +0 -2
- package/dist/shell/assets/workflow-workbench-DvzNEdn3.js +0 -4
- package/dist/shell-source-maps/assets/app-B94YfKGx.js.map +0 -1
- package/dist/shell-source-maps/assets/markdown-content-BZLiLira.js.map +0 -1
|
@@ -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: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "cancel" | "changed" | "removed" | "saved" | "more" | "viewAll" | "save" | "couldNotSave" | "optional" | "update" | "filters" | "notFound" | "deleteTitle" | "off" | "on" | "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" | "deleteTitle" | "off" | "on" | "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: "save" | "sign-in" | 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. */
|
|
@@ -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" | "
|
|
5
|
-
rich(id: "organizations" | "roles" | "
|
|
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" | "loading" | "couldNotLoad" | "viewAll" | "couldNotSearch", values?: Record<string, MessageValue>): string;
|
|
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" | "loading" | "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: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "reconnecting" | "askQuestion" | "assistant" | "empty" | "noAnswer" | "backendNoAnswer" | "couldNotDraw" | "cannotShowLive", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "reconnecting" | "askQuestion" | "assistant" | "empty" | "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" | "
|
|
5
|
-
rich(id: "admin" | "or" | "
|
|
4
|
+
(id: "admin" | "or" | "yourName" | "continue" | "signIn" | "reason" | "reload" | "signOut" | "loading" | "noAnswer" | "tooManyRequests" | "code" | "setPassword" | "email" | "password" | "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" | "forgotPassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "emailCode" | "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: "admin" | "or" | "yourName" | "continue" | "signIn" | "reason" | "reload" | "signOut" | "loading" | "noAnswer" | "tooManyRequests" | "code" | "setPassword" | "email" | "password" | "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" | "forgotPassword" | "newHere" | "haveAccount" | "createAnAccount" | "browse" | "notNow" | "detailsTitle" | "detailsDescription" | "codeWasRight" | "withoutPassword" | "createAccount" | "codeToConfirm" | "emailCode" | "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
|
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: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "camera" | "microphone" | "you" | "accept" | "decline" | "startCall" | "join" | "inProgress" | "people" | "joinCall" | "leave" | "shareScreen" | "stopSharing" | "muted" | "alone" | "connecting" | "reconnecting" | "full" | "removed" | "ended" | "refused" | "unavailable" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "denied" | "waiting" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "revoke" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "yourName" | "guestIntro" | "continue" | "youLeft", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "camera" | "microphone" | "you" | "accept" | "decline" | "startCall" | "join" | "inProgress" | "people" | "joinCall" | "leave" | "shareScreen" | "stopSharing" | "muted" | "alone" | "connecting" | "reconnecting" | "full" | "removed" | "ended" | "refused" | "unavailable" | "callAgain" | "noMicrophone" | "noCamera" | "noDevices" | "cannotConnect" | "poorConnection" | "goodConnection" | "sharing" | "youAreSharing" | "speaking" | "preview" | "guestName" | "denied" | "waiting" | "askToJoin" | "someone" | "guests" | "waitingGuest" | "admit" | "deny" | "remove" | "revoke" | "newLink" | "copyLink" | "copied" | "guestLinks" | "noLinks" | "inLobby" | "guestsInCall" | "guestsMaySend" | "sendAll" | "sendCamera" | "sendMicrophone" | "linkUntil" | "linkUntilEnd" | "linkLasts" | "forAnHour" | "addressesVisible" | "guestRefused" | "close" | "yourName" | "guestIntro" | "continue" | "youLeft", 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: "send" | "loading" | "notFound" | "noForm" | "setByDatabase" | "notSent" | "checkTooLong", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "send" | "loading" | "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: "revoke" | "until" | "email" | "invite" | "expired" | "sendAgain" | "passLinkOn", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "revoke" | "until" | "email" | "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 };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/mentions/message-content.d.ts
|
|
2
|
+
export type MessageContentProps = {
|
|
3
|
+
text: string;
|
|
4
|
+
mentions: readonly {
|
|
5
|
+
name?: string;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
/** A message's text with its markdown and mentions rendered, sanitised before it reaches the page. */
|
|
9
|
+
export declare const MessageContent: ({ text, mentions }: MessageContentProps) => import("react").JSX.Element;
|
|
10
|
+
//#endregion
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { cn } from "../lib/cn.js";
|
|
2
|
+
import { messageHtml } from "./message-html.js";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import DOMPurify from "dompurify";
|
|
6
|
+
//#region src/mentions/message-content.tsx
|
|
7
|
+
const message = cn("break-words [&>*:first-child]:mt-0 [&>*:last-child]:mb-0", "[&_p]:my-2 [&_ul]:my-1 [&_ol]:my-1 [&_pre]:my-1 [&_blockquote]:my-1", "[&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_li:has(>input)]:list-none [&_li>input]:mr-1.5 [&_li>input]:-ml-5 [&_li>input]:align-middle", "[&_a]:text-primary-text [&_a]:underline [&_a]:underline-offset-2 hover:[&_a]:text-primary-hover", "[&_code]:rounded [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.9em]", "[&_pre]:whitespace-pre-wrap [&_pre]:rounded-md [&_pre]:bg-muted [&_pre]:p-3 [&_pre_code]:bg-transparent [&_pre_code]:p-0", "[&_blockquote]:border-l-2 [&_blockquote]:border-border-strong [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground [&_del]:text-muted-foreground");
|
|
8
|
+
/** A message's text with its markdown and mentions rendered, sanitised before it reaches the page. */
|
|
9
|
+
const MessageContent = ({ text, mentions }) => {
|
|
10
|
+
const html = useMemo(() => DOMPurify.sanitize(messageHtml(text, mentions), { ADD_ATTR: ["target"] }), [text, mentions]);
|
|
11
|
+
return /* @__PURE__ */ jsx("div", {
|
|
12
|
+
className: message,
|
|
13
|
+
dangerouslySetInnerHTML: { __html: html }
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { MessageContent };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/mentions/message-html.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* A message's text as HTML: bold, italic, strikethrough, code, code blocks, lists and quotes, by chat's line rules
|
|
4
|
+
* (`chatLines`), web addresses as links opening in a new tab, and each `@{name}` of someone it mentions picked out,
|
|
5
|
+
* outside code. Raw HTML shows as text and
|
|
6
|
+
* links go only to http(s), mailto and tel addresses or relative ones; the page sanitises the result again.
|
|
7
|
+
*/
|
|
8
|
+
export declare const messageHtml: (text: string, mentions: readonly {
|
|
9
|
+
name?: string;
|
|
10
|
+
}[]) => string;
|
|
11
|
+
//#endregion
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { bodyParts, mentionClass } from "./mention-text.js";
|
|
2
|
+
import { escapeHtml, linkSchemes, newTabLink, safeAddress } from "../markdown/safe-html.js";
|
|
3
|
+
import { misleadingLinkText } from "./link-text.js";
|
|
4
|
+
import { chatLines } from "./message-lines.js";
|
|
5
|
+
import { Marked } from "marked";
|
|
6
|
+
//#region src/mentions/message-html.ts
|
|
7
|
+
const asTyped = () => void 0;
|
|
8
|
+
const plainText = (tokens) => tokens.map((token) => "tokens" in token && token.tokens ? plainText(token.tokens) : "text" in token ? token.text : "").join("");
|
|
9
|
+
const marked = new Marked({
|
|
10
|
+
gfm: true,
|
|
11
|
+
breaks: true,
|
|
12
|
+
tokenizer: {
|
|
13
|
+
heading: asTyped,
|
|
14
|
+
lheading: asTyped,
|
|
15
|
+
hr: asTyped,
|
|
16
|
+
table: asTyped,
|
|
17
|
+
def: asTyped,
|
|
18
|
+
code: asTyped
|
|
19
|
+
},
|
|
20
|
+
renderer: {
|
|
21
|
+
html: ({ text, block }) => block ? `<p>${escapeHtml(text)}</p>` : escapeHtml(text),
|
|
22
|
+
link({ href, title, tokens, misleading }) {
|
|
23
|
+
const text = this.parser.parseInline(tokens);
|
|
24
|
+
const address = safeAddress(href, linkSchemes);
|
|
25
|
+
if (address === null) return text;
|
|
26
|
+
if (misleading) return newTabLink(address, title, escapeHtml(href));
|
|
27
|
+
return newTabLink(address, title, text);
|
|
28
|
+
},
|
|
29
|
+
image: ({ raw }) => escapeHtml(raw)
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const withMentions = (text, mentions) => bodyParts(text, mentions).map((part) => "mention" in part ? `<span class="${escapeHtml(mentionClass)}">@${escapeHtml(part.mention)}</span>` : escapeHtml(part.text)).join("");
|
|
33
|
+
/**
|
|
34
|
+
* A message's text as HTML: bold, italic, strikethrough, code, code blocks, lists and quotes, by chat's line rules
|
|
35
|
+
* (`chatLines`), web addresses as links opening in a new tab, and each `@{name}` of someone it mentions picked out,
|
|
36
|
+
* outside code. Raw HTML shows as text and
|
|
37
|
+
* links go only to http(s), mailto and tel addresses or relative ones; the page sanitises the result again.
|
|
38
|
+
*/
|
|
39
|
+
const messageHtml = (text, mentions) => {
|
|
40
|
+
const tokens = marked.lexer(chatLines(text));
|
|
41
|
+
marked.walkTokens(tokens, (token) => {
|
|
42
|
+
if (token.type === "link") token.misleading = misleadingLinkText(plainText(token.tokens ?? []), token.href);
|
|
43
|
+
if (token.type === "strong" && token.raw.startsWith("__")) Object.assign(token, {
|
|
44
|
+
type: "text",
|
|
45
|
+
text: token.raw,
|
|
46
|
+
tokens: void 0
|
|
47
|
+
});
|
|
48
|
+
if (token.type !== "text" || token.tokens) return;
|
|
49
|
+
token.text = withMentions(token.text, mentions);
|
|
50
|
+
token.escaped = true;
|
|
51
|
+
});
|
|
52
|
+
return marked.parser(tokens);
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
export { messageHtml };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/mentions/message-lines.ts
|
|
2
|
+
const fence = /^ {0,3}(`{3,}(?=[^`]*$)|~{3,})/;
|
|
3
|
+
const closesFence = (line, open) => new RegExp(`^ {0,3}${open}[~\`]* *$`).test(line);
|
|
4
|
+
const quote = /^ {0,3}>/;
|
|
5
|
+
const quoteAsTyped = /^( {0,3})>(?=[^ \t>])/;
|
|
6
|
+
const listItem = /^ {0,3}([-*+]|\d{1,9}[.)])([ \t]|$)/;
|
|
7
|
+
const rule = /^ {0,3}([-_])[ \t]*(\1[ \t]*){2,}$/;
|
|
8
|
+
const indented = /^[ \t]/;
|
|
9
|
+
const lineBreak = /\r\n?|\n/;
|
|
10
|
+
/** A message's text with the chat line rules above made explicit for the markdown parser. */
|
|
11
|
+
const chatLines = (text) => {
|
|
12
|
+
const lines = [];
|
|
13
|
+
let inFence;
|
|
14
|
+
let inBlock = false;
|
|
15
|
+
for (const line of text.split(lineBreak)) {
|
|
16
|
+
if (inFence) {
|
|
17
|
+
if (closesFence(line, inFence)) inFence = void 0;
|
|
18
|
+
lines.push(line);
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
const marker = fence.exec(line)?.[1];
|
|
22
|
+
if (marker) {
|
|
23
|
+
inFence = marker;
|
|
24
|
+
inBlock = false;
|
|
25
|
+
lines.push(line);
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
const typed = line.replace(quoteAsTyped, "$1\\>").replace(rule, (match) => match.replace(/^ */, "$&\\"));
|
|
29
|
+
const blank = typed.trim() === "";
|
|
30
|
+
const opensBlock = quote.test(typed) || listItem.test(typed);
|
|
31
|
+
if (inBlock && !blank && !opensBlock && !indented.test(typed)) lines.push("");
|
|
32
|
+
inBlock = opensBlock || inBlock && !blank && indented.test(typed);
|
|
33
|
+
lines.push(typed);
|
|
34
|
+
}
|
|
35
|
+
return lines.join("\n");
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { chatLines };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../../locale/messages.js";
|
|
2
2
|
//#region src/notifications/bell/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "unread" | "empty" | "tryAgain" | "showMore" | "turnOff" | "turnOn" | "notifications" | "notificationsUnread" | "notificationsManyUnread" | "markAllRead" | "loadFailed" | "pushOff" | "pushOn" | "pushBlocked" | "pushRegistrationFailed" | "pushNoTokenApns" | "pushNoTokenFcm" | "pushRefused" | "pushFailed" | "pushOffNotStored", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "unread" | "empty" | "tryAgain" | "showMore" | "turnOff" | "turnOn" | "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: "admin" | "
|
|
5
|
-
rich(id: "admin" | "
|
|
4
|
+
(id: "admin" | "name" | "member" | "cancel" | "invitations" | "organizations" | "accept" | "join" | "leave" | "remove" | "guestLinks" | "yourName" | "open" | "members" | "organization" | "joining" | "create" | "signOut" | "loading" | "save" | "until" | "current" | "password" | "delete" | "owner" | "tryAgain" | "passwordOptional" | "invalidLink" | "manageOrganizations" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "otherAddress" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "details" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteTitle" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations" | "word" | "words" | "createTitle" | "createButton" | "creating" | "nameNeeded" | "signedInAs" | "invitedTitle" | "invitedSubtitle" | "createInstead" | "backToInvitations" | "notInAnyTitle" | "notInAny" | "invitedSubtitleJoinOnly" | "expires" | "invitationsNotLoaded" | "invitationsNotLoadedHelp", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "admin" | "name" | "member" | "cancel" | "invitations" | "organizations" | "accept" | "join" | "leave" | "remove" | "guestLinks" | "yourName" | "open" | "members" | "organization" | "joining" | "create" | "signOut" | "loading" | "save" | "until" | "current" | "password" | "delete" | "owner" | "tryAgain" | "passwordOptional" | "invalidLink" | "manageOrganizations" | "slug" | "allOrganizations" | "allOrganizationsDescription" | "findOrganization" | "nameOrSlug" | "cannotChangeRole" | "makeAccountToJoin" | "makeAccount" | "passwordRequired" | "createAndJoin" | "createYourAccount" | "invitation" | "goToApp" | "invitesToApp" | "invitesTo" | "invitesToWith" | "hasAccount" | "signInAs" | "signInAsToJoin" | "otherAddress" | "signOutToAccept" | "inviteSomeone" | "inviteDescription" | "organizationRole" | "peopleInvited" | "notAcceptedYet" | "sendingAgain" | "nobodyWaiting" | "roleOf" | "couldNotReadMembers" | "whoWorks" | "membersDescription" | "details" | "detailsEditable" | "detailsReadOnly" | "guestLinksDescription" | "guestLinksAllowed" | "handOver" | "handOverDescription" | "newOwner" | "chooseMember" | "deleteOrganization" | "deleteDescription" | "deleteTitle" | "deleteConfirm" | "organizationName" | "leaveOwner" | "leaveMember" | "leaveName" | "noOrganization" | "youAre" | "throughGlobalRoles" | "newOrganization" | "newOrganizationDescription" | "invitationsForYou" | "invitationsForYouDescription" | "anOrganization" | "noAppRoles" | "organizationsSubtitle" | "yourOrganizations" | "memberOf" | "notMember" | "couldNotReadOrganizations" | "word" | "words" | "createTitle" | "createButton" | "creating" | "nameNeeded" | "signedInAs" | "invitedTitle" | "invitedSubtitle" | "createInstead" | "backToInvitations" | "notInAnyTitle" | "notInAny" | "invitedSubtitleJoinOnly" | "expires" | "invitationsNotLoaded" | "invitationsNotLoadedHelp", values: Record<string, MessageValue | import("react").ReactNode>): import("react").ReactNode;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
package/dist/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageValue } from "../locale/messages.js";
|
|
2
2
|
//#region src/primitives/messages.d.ts
|
|
3
3
|
export declare const text: {
|
|
4
|
-
(id: "
|
|
5
|
-
rich(id: "
|
|
4
|
+
(id: "remove" | "close" | "loading" | "next" | "previous" | "dragToClose", values?: Record<string, MessageValue>): string;
|
|
5
|
+
rich(id: "remove" | "close" | "loading" | "next" | "previous" | "dragToClose", 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{
|
|
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{Wo as n,bs as r,ha as i,rs as a,ys as o}from"./app-DU-Bny4k.js";import{t as s}from"./render-node-ChsAMZVA.js";var c=e(t(),1),l=({tab:e})=>{let t=n();return t?(0,c.jsx)(i,{route:{...e&&{tab:e},pathOf:o},children:(0,c.jsx)(s,{node:t.tree})}):(0,c.jsx)(a,{title:r(`noAccount`),children:r(`noAccountDescription`)})};export{l as AccountPage};
|
|
2
|
+
//# debugId=2f7b8054-5d18-47e9-b19a-f828102d7f47
|