@alepha/ui 0.26.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +127 -12
- package/dist/components/account/account-connections.d.ts.map +1 -1
- package/dist/components/account/account-connections.js +29 -18
- package/dist/components/account/account-connections.js.map +1 -1
- package/dist/components/account/account-delete-dialog.d.ts.map +1 -1
- package/dist/components/account/account-delete-dialog.js +16 -12
- package/dist/components/account/account-delete-dialog.js.map +1 -1
- package/dist/components/account/account-header.d.ts.map +1 -1
- package/dist/components/account/account-header.js +6 -2
- package/dist/components/account/account-header.js.map +1 -1
- package/dist/components/account/account-keys.d.ts.map +1 -1
- package/dist/components/account/account-keys.js +42 -28
- package/dist/components/account/account-keys.js.map +1 -1
- package/dist/components/account/account-layout.d.ts.map +1 -1
- package/dist/components/account/account-layout.js +7 -4
- package/dist/components/account/account-layout.js.map +1 -1
- package/dist/components/account/account-mfa-dialog.d.ts +20 -0
- package/dist/components/account/account-mfa-dialog.d.ts.map +1 -0
- package/dist/components/account/account-mfa-dialog.js +149 -0
- package/dist/components/account/account-mfa-dialog.js.map +1 -0
- package/dist/components/account/account-password-dialog.d.ts.map +1 -1
- package/dist/components/account/account-password-dialog.js +18 -13
- package/dist/components/account/account-password-dialog.js.map +1 -1
- package/dist/components/account/account-profile.d.ts.map +1 -1
- package/dist/components/account/account-profile.js +33 -33
- package/dist/components/account/account-profile.js.map +1 -1
- package/dist/components/account/account-router-options.d.ts.map +1 -1
- package/dist/components/account/account-router-options.js.map +1 -1
- package/dist/components/account/account-router-page.d.ts.map +1 -1
- package/dist/components/account/account-router-page.js.map +1 -1
- package/dist/components/account/account-router.d.ts +79 -4
- package/dist/components/account/account-router.d.ts.map +1 -1
- package/dist/components/account/account-router.js +48 -7
- package/dist/components/account/account-router.js.map +1 -1
- package/dist/components/account/account-security.d.ts +11 -1
- package/dist/components/account/account-security.d.ts.map +1 -1
- package/dist/components/account/account-security.js +124 -37
- package/dist/components/account/account-security.js.map +1 -1
- package/dist/components/account/account-sessions.d.ts.map +1 -1
- package/dist/components/account/account-sessions.js +63 -28
- package/dist/components/account/account-sessions.js.map +1 -1
- package/dist/components/admin/admin-analytics-query-panel.d.ts +1 -1
- package/dist/components/admin/admin-analytics-query-panel.d.ts.map +1 -1
- package/dist/components/admin/admin-analytics-query-panel.js +5 -5
- package/dist/components/admin/admin-analytics-query-panel.js.map +1 -1
- package/dist/components/admin/admin-analytics-results.d.ts +1 -1
- package/dist/components/admin/admin-analytics-results.d.ts.map +1 -1
- package/dist/components/admin/admin-analytics-results.js +2 -2
- package/dist/components/admin/admin-analytics-results.js.map +1 -1
- package/dist/components/admin/admin-analytics.d.ts +1 -1
- package/dist/components/admin/admin-analytics.d.ts.map +1 -1
- package/dist/components/admin/admin-analytics.js +3 -3
- package/dist/components/admin/admin-analytics.js.map +1 -1
- package/dist/components/admin/admin-audits.d.ts +1 -1
- package/dist/components/admin/admin-audits.d.ts.map +1 -1
- package/dist/components/admin/admin-audits.js +4 -4
- package/dist/components/admin/admin-audits.js.map +1 -1
- package/dist/components/admin/admin-dashboard-card.d.ts +42 -0
- package/dist/components/admin/admin-dashboard-card.d.ts.map +1 -0
- package/dist/components/admin/admin-dashboard-card.js +0 -0
- package/dist/components/admin/admin-dashboard-count-card.d.ts +34 -0
- package/dist/components/admin/admin-dashboard-count-card.d.ts.map +1 -0
- package/dist/components/admin/admin-dashboard-count-card.js +42 -0
- package/dist/components/admin/admin-dashboard-count-card.js.map +1 -0
- package/dist/components/admin/admin-dashboard.d.ts +20 -0
- package/dist/components/admin/admin-dashboard.d.ts.map +1 -0
- package/dist/components/admin/admin-dashboard.js +32 -0
- package/dist/components/admin/admin-dashboard.js.map +1 -0
- package/dist/components/admin/admin-files.d.ts +1 -1
- package/dist/components/admin/admin-files.d.ts.map +1 -1
- package/dist/components/admin/admin-files.js +3 -3
- package/dist/components/admin/admin-files.js.map +1 -1
- package/dist/components/admin/admin-jobs-executions-panel.d.ts +2 -2
- package/dist/components/admin/admin-jobs-executions-panel.d.ts.map +1 -1
- package/dist/components/admin/admin-jobs-executions-panel.js +12 -32
- package/dist/components/admin/admin-jobs-executions-panel.js.map +1 -1
- package/dist/components/admin/admin-jobs-status-badge.d.ts +2 -2
- package/dist/components/admin/admin-jobs-status-badge.d.ts.map +1 -1
- package/dist/components/admin/admin-jobs-status-badge.js +5 -5
- package/dist/components/admin/admin-jobs-status-badge.js.map +1 -1
- package/dist/components/admin/admin-jobs-status-labels.d.ts +26 -0
- package/dist/components/admin/admin-jobs-status-labels.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-status-labels.js +46 -0
- package/dist/components/admin/admin-jobs-status-labels.js.map +1 -0
- package/dist/components/admin/admin-jobs.d.ts +1 -1
- package/dist/components/admin/admin-jobs.d.ts.map +1 -1
- package/dist/components/admin/admin-jobs.js +5 -5
- package/dist/components/admin/admin-jobs.js.map +1 -1
- package/dist/components/admin/admin-keys-token-dialog.js +3 -3
- package/dist/components/admin/admin-keys-token-dialog.js.map +1 -1
- package/dist/components/admin/admin-keys.d.ts +1 -1
- package/dist/components/admin/admin-keys.d.ts.map +1 -1
- package/dist/components/admin/admin-keys.js +4 -4
- package/dist/components/admin/admin-keys.js.map +1 -1
- package/dist/components/admin/admin-layout.d.ts.map +1 -1
- package/dist/components/admin/admin-layout.js +6 -6
- package/dist/components/admin/admin-layout.js.map +1 -1
- package/dist/components/admin/admin-notifications-detail-tabs.d.ts +21 -0
- package/dist/components/admin/admin-notifications-detail-tabs.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-detail-tabs.js +122 -0
- package/dist/components/admin/admin-notifications-detail-tabs.js.map +1 -0
- package/dist/components/admin/admin-notifications-detail.d.ts +23 -0
- package/dist/components/admin/admin-notifications-detail.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-detail.js +48 -0
- package/dist/components/admin/admin-notifications-detail.js.map +1 -0
- package/dist/components/admin/admin-notifications-preview-body.d.ts +13 -0
- package/dist/components/admin/admin-notifications-preview-body.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-preview-body.js +64 -0
- package/dist/components/admin/admin-notifications-preview-body.js.map +1 -0
- package/dist/components/admin/admin-notifications-preview-tab.d.ts +24 -0
- package/dist/components/admin/admin-notifications-preview-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-preview-tab.js +35 -0
- package/dist/components/admin/admin-notifications-preview-tab.js.map +1 -0
- package/dist/components/admin/admin-notifications-raw-tab.d.ts +18 -0
- package/dist/components/admin/admin-notifications-raw-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-raw-tab.js +53 -0
- package/dist/components/admin/admin-notifications-raw-tab.js.map +1 -0
- package/dist/components/admin/admin-notifications-status-badge.d.ts +17 -0
- package/dist/components/admin/admin-notifications-status-badge.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-status-badge.js +32 -0
- package/dist/components/admin/admin-notifications-status-badge.js.map +1 -0
- package/dist/components/admin/admin-notifications-status-labels.d.ts +17 -0
- package/dist/components/admin/admin-notifications-status-labels.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-status-labels.js +33 -0
- package/dist/components/admin/admin-notifications-status-labels.js.map +1 -0
- package/dist/components/admin/admin-notifications-status-tones.d.ts +44 -0
- package/dist/components/admin/admin-notifications-status-tones.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-status-tones.js +64 -0
- package/dist/components/admin/admin-notifications-status-tones.js.map +1 -0
- package/dist/components/admin/admin-notifications-template-label.d.ts +16 -0
- package/dist/components/admin/admin-notifications-template-label.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications-template-label.js +24 -0
- package/dist/components/admin/admin-notifications-template-label.js.map +1 -0
- package/dist/components/admin/admin-notifications.d.ts +13 -2
- package/dist/components/admin/admin-notifications.d.ts.map +1 -1
- package/dist/components/admin/admin-notifications.js +266 -31
- package/dist/components/admin/admin-notifications.js.map +1 -1
- package/dist/components/admin/admin-parameters.d.ts +1 -1
- package/dist/components/admin/admin-parameters.d.ts.map +1 -1
- package/dist/components/admin/admin-parameters.js +10 -10
- package/dist/components/admin/admin-parameters.js.map +1 -1
- package/dist/components/admin/admin-payments.d.ts +1 -1
- package/dist/components/admin/admin-payments.d.ts.map +1 -1
- package/dist/components/admin/admin-payments.js +3 -3
- package/dist/components/admin/admin-payments.js.map +1 -1
- package/dist/components/admin/admin-router-options.d.ts +13 -10
- package/dist/components/admin/admin-router-options.d.ts.map +1 -1
- package/dist/components/admin/admin-router-options.js.map +1 -1
- package/dist/components/admin/admin-router-page.d.ts +7 -5
- package/dist/components/admin/admin-router-page.d.ts.map +1 -1
- package/dist/components/admin/admin-router-page.js +7 -5
- package/dist/components/admin/admin-router-page.js.map +1 -1
- package/dist/components/admin/admin-router.d.ts +101 -29
- package/dist/components/admin/admin-router.d.ts.map +1 -1
- package/dist/components/admin/admin-router.js +168 -45
- package/dist/components/admin/admin-router.js.map +1 -1
- package/dist/components/admin/admin-sessions.d.ts +1 -1
- package/dist/components/admin/admin-sessions.d.ts.map +1 -1
- package/dist/components/admin/admin-sessions.js +13 -5
- package/dist/components/admin/admin-sessions.js.map +1 -1
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts +2 -2
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-audits-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts +4 -3
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-identity-aside.js +13 -69
- package/dist/components/admin/admin-user-detail-identity-aside.js.map +1 -1
- package/dist/components/admin/admin-user-detail-overview-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-overview-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail-password-dialog.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-password-dialog.js.map +1 -1
- package/dist/components/admin/admin-user-detail-profile-policy.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-profile-policy.js.map +1 -1
- package/dist/components/admin/admin-user-detail-security-tab.d.ts +12 -2
- package/dist/components/admin/admin-user-detail-security-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-security-tab.js +65 -46
- package/dist/components/admin/admin-user-detail-security-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts +2 -2
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.js +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail.js +88 -126
- package/dist/components/admin/admin-user-detail.js.map +1 -1
- package/dist/components/admin/admin-users-roles-picker.d.ts +6 -1
- package/dist/components/admin/admin-users-roles-picker.d.ts.map +1 -1
- package/dist/components/admin/admin-users-roles-picker.js +11 -8
- package/dist/components/admin/admin-users-roles-picker.js.map +1 -1
- package/dist/components/admin/admin-users.d.ts.map +1 -1
- package/dist/components/admin/admin-users.js +10 -13
- package/dist/components/admin/admin-users.js.map +1 -1
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts +2 -2
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows-execution-sheet.js +10 -10
- package/dist/components/admin/admin-workflows-execution-sheet.js.map +1 -1
- package/dist/components/admin/admin-workflows-executions-panel.d.ts +2 -2
- package/dist/components/admin/admin-workflows-executions-panel.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows-executions-panel.js +13 -45
- package/dist/components/admin/admin-workflows-executions-panel.js.map +1 -1
- package/dist/components/admin/admin-workflows-status-badge.d.ts +2 -2
- package/dist/components/admin/admin-workflows-status-badge.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows-status-badge.js +5 -5
- package/dist/components/admin/admin-workflows-status-badge.js.map +1 -1
- package/dist/components/admin/admin-workflows-status-labels.d.ts +19 -0
- package/dist/components/admin/admin-workflows-status-labels.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-status-labels.js +48 -0
- package/dist/components/admin/admin-workflows-status-labels.js.map +1 -0
- package/dist/components/admin/admin-workflows.d.ts +1 -1
- package/dist/components/admin/admin-workflows.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows.js +5 -5
- package/dist/components/admin/admin-workflows.js.map +1 -1
- package/dist/components/admin/diff-lines.js +1 -1
- package/dist/components/admin/diff-lines.js.map +1 -1
- package/dist/components/admin/parameter-diff-dialog.d.ts.map +1 -1
- package/dist/components/admin/parameter-diff-dialog.js +1 -1
- package/dist/components/admin/parameter-diff-dialog.js.map +1 -1
- package/dist/components/admin/parameter-history-item.d.ts.map +1 -1
- package/dist/components/admin/parameter-history-item.js +4 -4
- package/dist/components/admin/parameter-history-item.js.map +1 -1
- package/dist/components/admin/parameter-json-dialog.js +1 -1
- package/dist/components/admin/parameter-save-dialog.js +2 -2
- package/dist/components/admin/use-confirmed-action.js +1 -1
- package/dist/components/alepha-table/alepha-table.d.ts +109 -8
- package/dist/components/alepha-table/alepha-table.d.ts.map +1 -1
- package/dist/components/alepha-table/alepha-table.js +161 -31
- package/dist/components/alepha-table/alepha-table.js.map +1 -1
- package/dist/components/alepha-table/paginate-local.d.ts +43 -0
- package/dist/components/alepha-table/paginate-local.d.ts.map +1 -0
- package/dist/components/alepha-table/paginate-local.js +84 -0
- package/dist/components/alepha-table/paginate-local.js.map +1 -0
- package/dist/components/app-actions/app-actions.js +1 -1
- package/dist/components/app-shell/app-shell.d.ts +10 -1
- package/dist/components/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/app-shell/app-shell.js +27 -20
- package/dist/components/app-shell/app-shell.js.map +1 -1
- package/dist/components/auth/auth-login.d.ts +1 -1
- package/dist/components/auth/auth-login.d.ts.map +1 -1
- package/dist/components/auth/auth-login.js +33 -34
- package/dist/components/auth/auth-login.js.map +1 -1
- package/dist/components/auth/auth-mfa-step.d.ts +25 -0
- package/dist/components/auth/auth-mfa-step.d.ts.map +1 -0
- package/dist/components/auth/auth-mfa-step.js +122 -0
- package/dist/components/auth/auth-mfa-step.js.map +1 -0
- package/dist/components/auth/auth-register.d.ts +1 -1
- package/dist/components/auth/auth-register.d.ts.map +1 -1
- package/dist/components/auth/auth-register.js +22 -23
- package/dist/components/auth/auth-register.js.map +1 -1
- package/dist/components/auth/auth-reset-password.d.ts +1 -1
- package/dist/components/auth/auth-reset-password.d.ts.map +1 -1
- package/dist/components/auth/auth-reset-password.js +18 -15
- package/dist/components/auth/auth-reset-password.js.map +1 -1
- package/dist/components/auth/auth-router.d.ts +23 -3
- package/dist/components/auth/auth-router.d.ts.map +1 -1
- package/dist/components/auth/auth-router.js +3 -3
- package/dist/components/auth/auth-router.js.map +1 -1
- package/dist/components/auth/auth-verify-email.d.ts +1 -1
- package/dist/components/auth/auth-verify-email.d.ts.map +1 -1
- package/dist/components/auth/auth-verify-email.js +8 -8
- package/dist/components/auth/auth-verify-email.js.map +1 -1
- package/dist/components/auth/provider-labels.d.ts.map +1 -1
- package/dist/components/auth/provider-labels.js +1 -0
- package/dist/components/auth/provider-labels.js.map +1 -1
- package/dist/components/auth/safe-redirect.d.ts +9 -0
- package/dist/components/auth/safe-redirect.d.ts.map +1 -0
- package/dist/components/auth/safe-redirect.js +19 -0
- package/dist/components/auth/safe-redirect.js.map +1 -0
- package/dist/components/auto-form/auto-form.d.ts.map +1 -1
- package/dist/components/auto-form/auto-form.js +32 -32
- package/dist/components/auto-form/auto-form.js.map +1 -1
- package/dist/components/brand-icon/brand-icon.d.ts +1 -1
- package/dist/components/brand-icon/brand-icon.d.ts.map +1 -1
- package/dist/components/brand-icon/brand-icon.js +2 -2
- package/dist/components/brand-icon/brand-icon.js.map +1 -1
- package/dist/components/button-dark/button-dark.d.ts +1 -1
- package/dist/components/button-dark/button-dark.d.ts.map +1 -1
- package/dist/components/button-dark/button-dark.js +2 -2
- package/dist/components/button-dark/button-dark.js.map +1 -1
- package/dist/components/button-language/button-language.d.ts +1 -1
- package/dist/components/button-language/button-language.d.ts.map +1 -1
- package/dist/components/button-language/button-language.js +2 -2
- package/dist/components/button-language/button-language.js.map +1 -1
- package/dist/components/button-theme/button-theme.d.ts +1 -1
- package/dist/components/button-theme/button-theme.d.ts.map +1 -1
- package/dist/components/button-theme/button-theme.js +3 -3
- package/dist/components/button-theme/button-theme.js.map +1 -1
- package/dist/components/button-user/button-user.d.ts +2 -20
- package/dist/components/button-user/button-user.d.ts.map +1 -1
- package/dist/components/button-user/button-user.js +3 -3
- package/dist/components/button-user/button-user.js.map +1 -1
- package/dist/components/captcha/turnstile-widget.d.ts +2 -2
- package/dist/components/captcha/turnstile-widget.d.ts.map +1 -1
- package/dist/components/captcha/turnstile-widget.js +5 -4
- package/dist/components/captcha/turnstile-widget.js.map +1 -1
- package/dist/components/control/control.d.ts +12 -3
- package/dist/components/control/control.d.ts.map +1 -1
- package/dist/components/control/control.js +12 -10
- package/dist/components/control/control.js.map +1 -1
- package/dist/components/control-array/control-array.d.ts +1 -1
- package/dist/components/control-array/control-array.d.ts.map +1 -1
- package/dist/components/control-array/control-array.js +78 -26
- package/dist/components/control-array/control-array.js.map +1 -1
- package/dist/components/control-base/field-i18n.d.ts +5 -3
- package/dist/components/control-base/field-i18n.d.ts.map +1 -1
- package/dist/components/control-base/field-i18n.js +4 -2
- package/dist/components/control-base/field-i18n.js.map +1 -1
- package/dist/components/control-base/form-field.d.ts +7 -7
- package/dist/components/control-base/form-field.d.ts.map +1 -1
- package/dist/components/control-base/form-field.js +10 -10
- package/dist/components/control-base/form-field.js.map +1 -1
- package/dist/components/control-base/icon-hint.d.ts +1 -1
- package/dist/components/control-base/icon-hint.d.ts.map +1 -1
- package/dist/components/control-base/icon-hint.js.map +1 -1
- package/dist/components/control-date/control-date.d.ts +1 -1
- package/dist/components/control-date/control-date.d.ts.map +1 -1
- package/dist/components/control-date/control-date.js +23 -7
- package/dist/components/control-date/control-date.js.map +1 -1
- package/dist/components/control-number/control-number.d.ts +7 -2
- package/dist/components/control-number/control-number.d.ts.map +1 -1
- package/dist/components/control-number/control-number.js +4 -3
- package/dist/components/control-number/control-number.js.map +1 -1
- package/dist/components/control-object/control-object.d.ts +16 -3
- package/dist/components/control-object/control-object.d.ts.map +1 -1
- package/dist/components/control-object/control-object.js +10 -9
- package/dist/components/control-object/control-object.js.map +1 -1
- package/dist/components/control-password/control-password.d.ts.map +1 -1
- package/dist/components/control-password/control-password.js +2 -2
- package/dist/components/control-password/control-password.js.map +1 -1
- package/dist/components/control-select/control-select.d.ts +2 -2
- package/dist/components/control-select/control-select.d.ts.map +1 -1
- package/dist/components/control-select/control-select.js +17 -17
- package/dist/components/control-select/control-select.js.map +1 -1
- package/dist/components/control-upload/control-upload.d.ts +1 -1
- package/dist/components/control-upload/control-upload.d.ts.map +1 -1
- package/dist/components/control-upload/control-upload.js +11 -11
- package/dist/components/control-upload/control-upload.js.map +1 -1
- package/dist/components/detail/detail-aside.d.ts +58 -0
- package/dist/components/detail/detail-aside.d.ts.map +1 -0
- package/dist/components/detail/detail-aside.js +95 -0
- package/dist/components/detail/detail-aside.js.map +1 -0
- package/dist/components/detail/detail-layout.d.ts +96 -0
- package/dist/components/detail/detail-layout.d.ts.map +1 -0
- package/dist/components/detail/detail-layout.js +103 -0
- package/dist/components/detail/detail-layout.js.map +1 -0
- package/dist/components/detail/use-detail-tab.d.ts +15 -0
- package/dist/components/detail/use-detail-tab.d.ts.map +1 -0
- package/dist/components/detail/use-detail-tab.js +37 -0
- package/dist/components/detail/use-detail-tab.js.map +1 -0
- package/dist/components/email-body-frame/email-body-frame.d.ts +37 -0
- package/dist/components/email-body-frame/email-body-frame.d.ts.map +1 -0
- package/dist/components/email-body-frame/email-body-frame.js +44 -0
- package/dist/components/email-body-frame/email-body-frame.js.map +1 -0
- package/dist/components/file-image/file-image.d.ts.map +1 -1
- package/dist/components/file-image/file-image.js.map +1 -1
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.d.ts +28 -0
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.js +25 -0
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.js.map +1 -0
- package/dist/components/markdown-view/diagram/DiagramLabel.d.ts +33 -0
- package/dist/components/markdown-view/diagram/DiagramLabel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/DiagramLabel.js +43 -0
- package/dist/components/markdown-view/diagram/DiagramLabel.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts +39 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.js +94 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.d.ts +14 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js +45 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.d.ts +19 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js +68 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.d.ts +17 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js +62 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js.map +1 -0
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts +39 -0
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/MermaidFence.js +65 -0
- package/dist/components/markdown-view/diagram/MermaidFence.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagram.d.ts +50 -0
- package/dist/components/markdown-view/diagram/SequenceDiagram.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagram.js +141 -0
- package/dist/components/markdown-view/diagram/SequenceDiagram.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.d.ts +23 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.js +101 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramFragment.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.d.ts +23 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.js +77 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramMessage.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.d.ts +16 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.js +39 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramNote.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.d.ts +20 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.js +61 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipant.js.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.d.ts +27 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.js +65 -0
- package/dist/components/markdown-view/diagram/SequenceDiagramParticipantActor.js.map +1 -0
- package/dist/components/markdown-view/diagram/flowchartParser.d.ts +18 -0
- package/dist/components/markdown-view/diagram/flowchartParser.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/flowchartParser.js +370 -0
- package/dist/components/markdown-view/diagram/flowchartParser.js.map +1 -0
- package/dist/components/markdown-view/diagram/graphModel.d.ts +67 -0
- package/dist/components/markdown-view/diagram/graphModel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/graphModel.js +0 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.d.ts +109 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.js +185 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.js.map +1 -0
- package/dist/components/markdown-view/diagram/layoutSequence.d.ts +155 -0
- package/dist/components/markdown-view/diagram/layoutSequence.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/layoutSequence.js +478 -0
- package/dist/components/markdown-view/diagram/layoutSequence.js.map +1 -0
- package/dist/components/markdown-view/diagram/sequenceModel.d.ts +132 -0
- package/dist/components/markdown-view/diagram/sequenceModel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/sequenceModel.js +0 -0
- package/dist/components/markdown-view/diagram/sequenceParser.d.ts +32 -0
- package/dist/components/markdown-view/diagram/sequenceParser.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/sequenceParser.js +312 -0
- package/dist/components/markdown-view/diagram/sequenceParser.js.map +1 -0
- package/dist/components/markdown-view/diagram/textMetrics.d.ts +63 -0
- package/dist/components/markdown-view/diagram/textMetrics.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/textMetrics.js +228 -0
- package/dist/components/markdown-view/diagram/textMetrics.js.map +1 -0
- package/dist/components/markdown-view/markdown-view.css +65 -0
- package/dist/components/markdown-view/markdown-view.d.ts +39 -0
- package/dist/components/markdown-view/markdown-view.d.ts.map +1 -1
- package/dist/components/markdown-view/markdown-view.js +99 -9
- package/dist/components/markdown-view/markdown-view.js.map +1 -1
- package/dist/components/nav-shell/nav-page.d.ts +7 -0
- package/dist/components/nav-shell/nav-page.d.ts.map +1 -1
- package/dist/components/nav-shell/nav-page.js.map +1 -1
- package/dist/components/nav-shell/nav-shell.d.ts +1 -1
- package/dist/components/nav-shell/nav-shell.d.ts.map +1 -1
- package/dist/components/nav-shell/nav-shell.js +1 -1
- package/dist/components/nav-shell/nav-shell.js.map +1 -1
- package/dist/components/nav-shell/nav-tree-util.d.ts +64 -2
- package/dist/components/nav-shell/nav-tree-util.d.ts.map +1 -1
- package/dist/components/nav-shell/nav-tree-util.js +29 -6
- package/dist/components/nav-shell/nav-tree-util.js.map +1 -1
- package/dist/components/nav-shell/spotlight.d.ts +3 -2
- package/dist/components/nav-shell/spotlight.d.ts.map +1 -1
- package/dist/components/nav-shell/spotlight.js +9 -6
- package/dist/components/nav-shell/spotlight.js.map +1 -1
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-breadcrumbs.js +9 -2
- package/dist/components/nav-shell/use-nav-breadcrumbs.js.map +1 -1
- package/dist/components/nav-shell/use-nav-entries.d.ts +21 -5
- package/dist/components/nav-shell/use-nav-entries.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-entries.js +9 -4
- package/dist/components/nav-shell/use-nav-entries.js.map +1 -1
- package/dist/components/nav-shell/use-nav-tree.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-tree.js +1 -1
- package/dist/components/nav-shell/use-nav-tree.js.map +1 -1
- package/dist/components/settings/settings-card-edge.d.ts +25 -0
- package/dist/components/settings/settings-card-edge.d.ts.map +1 -0
- package/dist/components/settings/settings-card-edge.js +29 -0
- package/dist/components/settings/settings-card-edge.js.map +1 -0
- package/dist/components/settings/settings-danger-section.d.ts.map +1 -1
- package/dist/components/settings/settings-danger-section.js +2 -1
- package/dist/components/settings/settings-danger-section.js.map +1 -1
- package/dist/components/settings/settings-layout.d.ts.map +1 -1
- package/dist/components/settings/settings-layout.js +1 -1
- package/dist/components/settings/settings-layout.js.map +1 -1
- package/dist/components/settings/settings-nav.d.ts.map +1 -1
- package/dist/components/settings/settings-nav.js +3 -3
- package/dist/components/settings/settings-nav.js.map +1 -1
- package/dist/components/settings/settings-row.js +2 -2
- package/dist/components/settings/settings-row.js.map +1 -1
- package/dist/components/settings/settings-section.d.ts.map +1 -1
- package/dist/components/settings/settings-section.js +3 -2
- package/dist/components/settings/settings-section.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +6 -5
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts +2 -2
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +3 -2
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/avatar.d.ts +2 -2
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +6 -5
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.d.ts +13 -2
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +51 -12
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +2 -2
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +4 -3
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/button-group.js +2 -2
- package/dist/components/ui/button-group.js.map +1 -1
- package/dist/components/ui/button.js +2 -2
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.js +8 -8
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.d.ts +2 -2
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +4 -3
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js +7 -6
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/combobox.d.ts +1 -1
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +8 -8
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/command.d.ts +2 -2
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +7 -6
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +2 -2
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +9 -8
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +5 -4
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.d.ts +1 -1
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js +4 -4
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +2 -2
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +10 -9
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/empty.d.ts +1 -1
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/components/ui/empty.js +2 -2
- package/dist/components/ui/empty.js.map +1 -1
- package/dist/components/ui/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-group.d.ts +2 -2
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group.js +4 -3
- package/dist/components/ui/input-group.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts +1 -1
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +3 -3
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts +1 -1
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +2 -1
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/kbd.js +1 -1
- package/dist/components/ui/kbd.js.map +1 -1
- package/dist/components/ui/label.d.ts +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js +1 -0
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.d.ts +2 -2
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +10 -9
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/pagination.d.ts +1 -1
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +1 -0
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +2 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +1 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +3 -3
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/resizable.js +2 -2
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/segmented.d.ts +11 -0
- package/dist/components/ui/segmented.d.ts.map +1 -1
- package/dist/components/ui/segmented.js +7 -3
- package/dist/components/ui/segmented.js.map +1 -1
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +9 -8
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.d.ts +2 -2
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +4 -3
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/sidebar.js +17 -17
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/slider.js +2 -2
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/sonner.js +1 -1
- package/dist/components/ui/switch.js +2 -2
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.d.ts +2 -2
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +6 -5
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +2 -2
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.d.ts +1 -1
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js +2 -1
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +3 -3
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/use-dialog/use-dialog.d.ts +2 -2
- package/dist/components/use-dialog/use-dialog.d.ts.map +1 -1
- package/dist/components/use-dialog/use-dialog.js +10 -6
- package/dist/components/use-dialog/use-dialog.js.map +1 -1
- package/dist/components/use-toast/use-toast.d.ts +9 -3
- package/dist/components/use-toast/use-toast.d.ts.map +1 -1
- package/dist/components/use-toast/use-toast.js +23 -22
- package/dist/components/use-toast/use-toast.js.map +1 -1
- package/dist/hooks/use-mobile.d.ts +10 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/hooks/use-mobile.js +19 -12
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/lib/i18n-fr.d.ts +3 -3
- package/dist/lib/i18n-fr.d.ts.map +1 -1
- package/dist/lib/i18n-fr.js +265 -10
- package/dist/lib/i18n-fr.js.map +1 -1
- package/dist/styles.css +5 -5
- package/package.json +48 -47
- package/src/components/account/__tests__/account-router.spec.ts +29 -2
- package/src/components/account/__tests__/account-security-mfa-gate.browser.spec.tsx +76 -0
- package/src/components/account/account-connections.tsx +51 -19
- package/src/components/account/account-delete-dialog.tsx +24 -9
- package/src/components/account/account-header.tsx +10 -2
- package/src/components/account/account-keys.tsx +74 -30
- package/src/components/account/account-layout.tsx +8 -1
- package/src/components/account/account-mfa-dialog.tsx +233 -0
- package/src/components/account/account-password-dialog.tsx +42 -12
- package/src/components/account/account-profile.tsx +69 -28
- package/src/components/account/account-router-options.tsx +1 -0
- package/src/components/account/account-router-page.tsx +1 -0
- package/src/components/account/account-router.tsx +51 -8
- package/src/components/account/account-security.tsx +210 -22
- package/src/components/account/account-sessions.tsx +105 -23
- package/src/components/action-error-toaster/__tests__/action-error-toaster.browser.spec.tsx +114 -0
- package/src/components/admin/__tests__/admin-keys-token-dialog.browser.spec.tsx +1 -0
- package/src/components/admin/__tests__/admin-layout.browser.spec.tsx +2 -1
- package/src/components/admin/__tests__/admin-nav-i18n.browser.spec.tsx +152 -0
- package/src/components/admin/__tests__/admin-notifications-preview-body.browser.spec.tsx +128 -0
- package/src/components/admin/__tests__/admin-notifications-raw-tab.browser.spec.tsx +76 -0
- package/src/components/admin/__tests__/admin-notifications-status-badge.browser.spec.tsx +121 -0
- package/src/components/admin/__tests__/admin-router-page.spec.ts +2 -1
- package/src/components/admin/__tests__/admin-router.spec.ts +84 -1
- package/src/components/admin/__tests__/admin-status-labels.browser.spec.tsx +152 -0
- package/src/components/admin/__tests__/admin-user-cell.browser.spec.tsx +1 -0
- package/src/components/admin/__tests__/admin-user-detail-security-tab.browser.spec.tsx +92 -0
- package/src/components/admin/__tests__/admin-user-detail.spec.ts +1 -0
- package/src/components/admin/admin-analytics-query-panel.tsx +4 -3
- package/src/components/admin/admin-analytics-results.tsx +2 -2
- package/src/components/admin/admin-analytics.tsx +3 -3
- package/src/components/admin/admin-audits.tsx +3 -3
- package/src/components/admin/admin-dashboard-card.tsx +45 -0
- package/src/components/admin/admin-dashboard-count-card.tsx +89 -0
- package/src/components/admin/admin-dashboard.tsx +60 -0
- package/src/components/admin/admin-files.tsx +2 -2
- package/src/components/admin/admin-jobs-executions-panel.tsx +17 -13
- package/src/components/admin/admin-jobs-status-badge.tsx +6 -7
- package/src/components/admin/admin-jobs-status-labels.ts +46 -0
- package/src/components/admin/admin-jobs.tsx +4 -4
- package/src/components/admin/admin-keys-token-dialog.tsx +2 -2
- package/src/components/admin/admin-keys.tsx +2 -2
- package/src/components/admin/admin-layout.tsx +10 -5
- package/src/components/admin/admin-notifications-detail-tabs.tsx +167 -0
- package/src/components/admin/admin-notifications-detail.tsx +100 -0
- package/src/components/admin/admin-notifications-preview-body.tsx +104 -0
- package/src/components/admin/admin-notifications-preview-tab.tsx +55 -0
- package/src/components/admin/admin-notifications-raw-tab.tsx +76 -0
- package/src/components/admin/admin-notifications-status-badge.tsx +44 -0
- package/src/components/admin/admin-notifications-status-labels.ts +42 -0
- package/src/components/admin/admin-notifications-status-tones.ts +85 -0
- package/src/components/admin/admin-notifications-template-label.ts +22 -0
- package/src/components/admin/admin-notifications.tsx +400 -33
- package/src/components/admin/admin-parameters.tsx +16 -9
- package/src/components/admin/admin-payments.tsx +2 -2
- package/src/components/admin/admin-router-options.tsx +14 -10
- package/src/components/admin/admin-router-page.tsx +8 -5
- package/src/components/admin/admin-router.tsx +175 -46
- package/src/components/admin/admin-sessions.tsx +23 -5
- package/src/components/admin/admin-user-detail-audits-tab.tsx +5 -2
- package/src/components/admin/admin-user-detail-identity-aside.tsx +16 -93
- package/src/components/admin/admin-user-detail-overview-tab.tsx +1 -0
- package/src/components/admin/admin-user-detail-password-dialog.tsx +1 -0
- package/src/components/admin/admin-user-detail-profile-policy.spec.ts +1 -0
- package/src/components/admin/admin-user-detail-profile-policy.ts +1 -0
- package/src/components/admin/admin-user-detail-security-tab.tsx +71 -5
- package/src/components/admin/admin-user-detail-sessions-tab.tsx +15 -5
- package/src/components/admin/admin-user-detail.tsx +141 -110
- package/src/components/admin/admin-users-roles-picker.tsx +22 -15
- package/src/components/admin/admin-users.tsx +9 -15
- package/src/components/admin/admin-workflows-execution-sheet.tsx +18 -10
- package/src/components/admin/admin-workflows-executions-panel.tsx +17 -18
- package/src/components/admin/admin-workflows-status-badge.tsx +8 -7
- package/src/components/admin/admin-workflows-status-labels.ts +51 -0
- package/src/components/admin/admin-workflows.tsx +6 -4
- package/src/components/admin/diff-lines.spec.ts +1 -0
- package/src/components/admin/diff-lines.ts +1 -1
- package/src/components/admin/parameter-diff-dialog.tsx +3 -2
- package/src/components/admin/parameter-history-item.tsx +6 -5
- package/src/components/alepha-table/__tests__/alepha-table-row-key.browser.spec.tsx +106 -0
- package/src/components/alepha-table/__tests__/alepha-table-static.browser.spec.tsx +190 -0
- package/src/components/alepha-table/__tests__/paginate-local.spec.ts +286 -0
- package/src/components/alepha-table/__tests__/use-table-selection.browser.spec.tsx +1 -0
- package/src/components/alepha-table/alepha-table.tsx +408 -85
- package/src/components/alepha-table/paginate-local.ts +174 -0
- package/src/components/app-actions/__tests__/app-actions.browser.spec.tsx +1 -0
- package/src/components/app-shell/app-shell.tsx +42 -19
- package/src/components/auth/__tests__/auth-router.spec.ts +2 -1
- package/src/components/auth/auth-login.tsx +42 -34
- package/src/components/auth/auth-mfa-step.tsx +177 -0
- package/src/components/auth/auth-register.tsx +27 -26
- package/src/components/auth/auth-reset-password.tsx +24 -17
- package/src/components/auth/auth-router.tsx +4 -3
- package/src/components/auth/auth-verify-email.tsx +7 -7
- package/src/components/auth/provider-labels.ts +4 -0
- package/src/components/auth/safe-redirect.ts +14 -0
- package/src/components/auto-form/__tests__/auto-form-settings-card.browser.spec.tsx +1 -0
- package/src/components/auto-form/auto-form.tsx +60 -39
- package/src/components/brand-icon/brand-icon.tsx +2 -2
- package/src/components/button-dark/button-dark.tsx +2 -2
- package/src/components/button-language/button-language.tsx +2 -2
- package/src/components/button-theme/button-theme.tsx +2 -2
- package/src/components/button-user/button-user.tsx +4 -4
- package/src/components/captcha/turnstile-widget.tsx +6 -5
- package/src/components/control/__tests__/control-autofocus.browser.spec.tsx +107 -0
- package/src/components/control/control.tsx +20 -5
- package/src/components/control-array/__tests__/control-array-child-change.browser.spec.tsx +90 -0
- package/src/components/control-array/control-array.tsx +113 -28
- package/src/components/control-base/__tests__/form-field-a11y.browser.spec.tsx +1 -0
- package/src/components/control-base/field-i18n.ts +5 -3
- package/src/components/control-base/form-field.tsx +13 -13
- package/src/components/control-base/icon-hint.tsx +1 -1
- package/src/components/control-date/control-date.tsx +29 -6
- package/src/components/control-number/control-number.tsx +10 -3
- package/src/components/control-object/__tests__/control-object-clear.browser.spec.tsx +100 -0
- package/src/components/control-object/control-object.tsx +32 -10
- package/src/components/control-password/control-password.tsx +2 -1
- package/src/components/control-select/__tests__/control-select-clear-label.browser.spec.tsx +1 -0
- package/src/components/control-select/__tests__/control-select-deselect.browser.spec.tsx +1 -0
- package/src/components/control-select/__tests__/control-select-searchable.browser.spec.tsx +1 -0
- package/src/components/control-select/control-select.tsx +32 -18
- package/src/components/control-upload/control-upload.tsx +16 -10
- package/src/components/detail/__tests__/detail-aside.browser.spec.tsx +135 -0
- package/src/components/detail/__tests__/detail-layout.browser.spec.tsx +187 -0
- package/src/components/detail/detail-aside.tsx +198 -0
- package/src/components/detail/detail-layout.tsx +200 -0
- package/src/components/detail/use-detail-tab.tsx +41 -0
- package/src/components/email-body-frame/__tests__/email-body-frame.browser.spec.tsx +52 -0
- package/src/components/email-body-frame/email-body-frame.tsx +81 -0
- package/src/components/file-image/file-image.tsx +4 -2
- package/src/components/markdown-view/__tests__/markdown-view-mermaid.browser.spec.tsx +211 -0
- package/src/components/markdown-view/__tests__/markdown-view-raw-html.browser.spec.tsx +1 -0
- package/src/components/markdown-view/diagram/DiagramErrorBoundary.tsx +42 -0
- package/src/components/markdown-view/diagram/DiagramLabel.tsx +68 -0
- package/src/components/markdown-view/diagram/FlowchartDiagram.tsx +131 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramCluster.tsx +59 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramEdge.tsx +94 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramNode.tsx +77 -0
- package/src/components/markdown-view/diagram/MermaidFence.tsx +96 -0
- package/src/components/markdown-view/diagram/SequenceDiagram.tsx +203 -0
- package/src/components/markdown-view/diagram/SequenceDiagramFragment.tsx +120 -0
- package/src/components/markdown-view/diagram/SequenceDiagramMessage.tsx +100 -0
- package/src/components/markdown-view/diagram/SequenceDiagramNote.tsx +46 -0
- package/src/components/markdown-view/diagram/SequenceDiagramParticipant.tsx +80 -0
- package/src/components/markdown-view/diagram/SequenceDiagramParticipantActor.tsx +74 -0
- package/src/components/markdown-view/diagram/__tests__/flowchart-diagram.browser.spec.tsx +210 -0
- package/src/components/markdown-view/diagram/__tests__/sequence-diagram.browser.spec.tsx +267 -0
- package/src/components/markdown-view/diagram/flowchartParser.spec.ts +379 -0
- package/src/components/markdown-view/diagram/flowchartParser.ts +475 -0
- package/src/components/markdown-view/diagram/graphModel.ts +72 -0
- package/src/components/markdown-view/diagram/layoutFlowchart.spec.ts +235 -0
- package/src/components/markdown-view/diagram/layoutFlowchart.ts +324 -0
- package/src/components/markdown-view/diagram/layoutSequence.spec.ts +535 -0
- package/src/components/markdown-view/diagram/layoutSequence.ts +764 -0
- package/src/components/markdown-view/diagram/sequenceModel.ts +141 -0
- package/src/components/markdown-view/diagram/sequenceParser.spec.ts +495 -0
- package/src/components/markdown-view/diagram/sequenceParser.ts +443 -0
- package/src/components/markdown-view/diagram/textMetrics.spec.ts +128 -0
- package/src/components/markdown-view/diagram/textMetrics.ts +296 -0
- package/src/components/markdown-view/markdown-view.css +65 -0
- package/src/components/markdown-view/markdown-view.tsx +146 -9
- package/src/components/nav-shell/__tests__/nav-tree-util.spec.ts +108 -1
- package/src/components/nav-shell/nav-page.tsx +8 -0
- package/src/components/nav-shell/nav-shell.tsx +6 -3
- package/src/components/nav-shell/nav-tree-util.ts +95 -2
- package/src/components/nav-shell/spotlight.tsx +24 -9
- package/src/components/nav-shell/use-nav-breadcrumbs.ts +10 -2
- package/src/components/nav-shell/use-nav-entries.ts +34 -7
- package/src/components/nav-shell/use-nav-tree.ts +5 -1
- package/src/components/settings/__tests__/settings-nav.browser.spec.tsx +1 -0
- package/src/components/settings/__tests__/settings-section.browser.spec.tsx +1 -0
- package/src/components/settings/settings-card-edge.ts +24 -0
- package/src/components/settings/settings-danger-section.tsx +7 -1
- package/src/components/settings/settings-layout.tsx +16 -1
- package/src/components/settings/settings-nav.tsx +12 -3
- package/src/components/settings/settings-row.tsx +2 -2
- package/src/components/settings/settings-section.tsx +2 -1
- package/src/components/ui/alert-dialog.tsx +6 -6
- package/src/components/ui/alert.tsx +4 -4
- package/src/components/ui/avatar.tsx +8 -8
- package/src/components/ui/badge.tsx +48 -2
- package/src/components/ui/breadcrumb.tsx +6 -6
- package/src/components/ui/button-group.tsx +2 -2
- package/src/components/ui/button.tsx +2 -2
- package/src/components/ui/calendar.tsx +8 -8
- package/src/components/ui/card.tsx +8 -8
- package/src/components/ui/chart.tsx +18 -6
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +16 -17
- package/src/components/ui/command.tsx +10 -11
- package/src/components/ui/context-menu.tsx +15 -15
- package/src/components/ui/dialog.tsx +5 -5
- package/src/components/ui/drawer.tsx +10 -10
- package/src/components/ui/dropdown-menu.tsx +17 -23
- package/src/components/ui/empty.tsx +5 -5
- package/src/components/ui/hover-card.tsx +2 -2
- package/src/components/ui/input-group.tsx +8 -5
- package/src/components/ui/input-otp.tsx +4 -4
- package/src/components/ui/input.tsx +2 -2
- package/src/components/ui/kbd.tsx +1 -1
- package/src/components/ui/label.tsx +4 -1
- package/src/components/ui/menubar.tsx +18 -18
- package/src/components/ui/pagination.tsx +1 -2
- package/src/components/ui/popover.tsx +2 -2
- package/src/components/ui/progress.tsx +4 -4
- package/src/components/ui/resizable.tsx +2 -2
- package/src/components/ui/segmented.tsx +36 -3
- package/src/components/ui/select.tsx +9 -9
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.tsx +7 -7
- package/src/components/ui/sidebar.tsx +20 -20
- package/src/components/ui/skeleton.tsx +1 -1
- package/src/components/ui/slider.tsx +2 -2
- package/src/components/ui/switch.tsx +2 -2
- package/src/components/ui/table.tsx +11 -9
- package/src/components/ui/tabs.tsx +4 -4
- package/src/components/ui/textarea.tsx +2 -2
- package/src/components/ui/tooltip.tsx +6 -4
- package/src/components/use-dialog/__tests__/use-dialog-providers.browser.spec.tsx +61 -0
- package/src/components/use-dialog/use-dialog.tsx +19 -6
- package/src/components/use-toast/__tests__/use-toast.browser.spec.tsx +19 -0
- package/src/components/use-toast/use-toast.tsx +38 -26
- package/src/hooks/use-mobile.ts +27 -14
- package/src/lib/__tests__/i18n-fr.spec.ts +31 -5
- package/src/lib/i18n-fr.ts +326 -11
- package/src/styles.css +5 -5
- package/dist/components/language-toggle/language-toggle.d.ts +0 -8
- package/dist/components/language-toggle/language-toggle.d.ts.map +0 -1
- package/dist/components/language-toggle/language-toggle.js +0 -49
- package/dist/components/language-toggle/language-toggle.js.map +0 -1
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/accordion.js +0 -55
- package/dist/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/aspect-ratio.d.ts +0 -5
- package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/components/ui/aspect-ratio.js +0 -15
- package/dist/components/ui/aspect-ratio.js.map +0 -1
- package/dist/components/ui/carousel.d.ts +0 -29
- package/dist/components/ui/carousel.d.ts.map +0 -1
- package/dist/components/ui/carousel.js +0 -134
- package/dist/components/ui/carousel.js.map +0 -1
- package/dist/components/ui/collapsible.d.ts +0 -6
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/collapsible.js +0 -26
- package/dist/components/ui/collapsible.js.map +0 -1
- package/dist/components/ui/direction.d.ts +0 -2
- package/dist/components/ui/direction.d.ts.map +0 -1
- package/dist/components/ui/direction.js +0 -3
- package/dist/components/ui/item.d.ts +0 -23
- package/dist/components/ui/item.d.ts.map +0 -1
- package/dist/components/ui/item.js +0 -122
- package/dist/components/ui/item.js.map +0 -1
- package/dist/components/ui/navigation-menu.d.ts +0 -12
- package/dist/components/ui/navigation-menu.d.ts.map +0 -1
- package/dist/components/ui/navigation-menu.js +0 -84
- package/dist/components/ui/navigation-menu.js.map +0 -1
- package/dist/components/ui/radio-group.d.ts +0 -6
- package/dist/components/ui/radio-group.d.ts.map +0 -1
- package/dist/components/ui/radio-group.js +0 -29
- package/dist/components/ui/radio-group.js.map +0 -1
- package/dist/components/ui/scroll-area.d.ts +0 -5
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.js +0 -38
- package/dist/components/ui/scroll-area.js.map +0 -1
- package/dist/components/ui/toggle-group.d.ts +0 -12
- package/dist/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/components/ui/toggle-group.js +0 -54
- package/dist/components/ui/toggle-group.js.map +0 -1
- package/dist/components/ui/toggle.d.ts +0 -9
- package/dist/components/ui/toggle.d.ts.map +0 -1
- package/dist/components/ui/toggle.js +0 -38
- package/dist/components/ui/toggle.js.map +0 -1
- package/src/components/language-toggle/language-toggle.tsx +0 -66
- package/src/components/ui/accordion.tsx +0 -77
- package/src/components/ui/aspect-ratio.tsx +0 -22
- package/src/components/ui/carousel.tsx +0 -241
- package/src/components/ui/collapsible.tsx +0 -21
- package/src/components/ui/direction.tsx +0 -6
- package/src/components/ui/item.tsx +0 -200
- package/src/components/ui/navigation-menu.tsx +0 -170
- package/src/components/ui/radio-group.tsx +0 -37
- package/src/components/ui/scroll-area.tsx +0 -53
- package/src/components/ui/toggle-group.tsx +0 -88
- package/src/components/ui/toggle.tsx +0 -44
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-detail.js","names":[],"sources":["../../../src/components/admin/admin-notifications-detail.tsx"],"sourcesContent":["import { AdminNotificationsDetailTabs } from \"@alepha/ui/components/admin/admin-notifications-detail-tabs\";\nimport {\n Sheet,\n SheetContent,\n SheetDescription,\n SheetHeader,\n SheetTitle,\n} from \"@alepha/ui/components/ui/sheet\";\nimport type { AdminNotificationController } from \"alepha/api/notifications\";\nimport { useClient, useQuery } from \"alepha/react\";\nimport { useI18n } from \"alepha/react/i18n\";\n\n// Relative: the package's `components/*` subpath export maps to `.tsx`, so a\n// plain `.ts` sibling only resolves this way.\nimport { notificationTemplateLabel } from \"./admin-notifications-template-label.ts\";\n\nexport interface AdminNotificationsDetailProps {\n notificationId: string | null;\n /**\n * Which tab to open on. The list's \"Raw data\" action opens straight onto\n * `raw` rather than making the reader find it.\n */\n initialTab?: string;\n onClose: () => void;\n}\n\n/**\n * Everything known about one message.\n *\n * ⚠️ **Renders with half the data missing, on purpose.** The receipt lives\n * 90 days and the outbox row it points at lives 7, so `variables` and `logs`\n * are simply absent on anything older than the shorter window. That is not\n * an error state and must not look like one. `outboxAvailable` says which\n * case this is.\n *\n * A `sensitive` template withholds subject, body and variables at the\n * backend; nothing here needs to re-filter them.\n */\nexport const AdminNotificationsDetail = (\n props: AdminNotificationsDetailProps,\n) => {\n const client = useClient<AdminNotificationController>();\n const { tr } = useI18n();\n\n const { data: detail } = useQuery(\n {\n handler: ({ signal }) =>\n props.notificationId\n ? client.getNotification(\n { params: { id: props.notificationId } },\n { request: { signal } },\n )\n : Promise.resolve(null),\n onError: () => {},\n },\n [client, props.notificationId],\n );\n\n return (\n <Sheet\n open={Boolean(props.notificationId)}\n onOpenChange={(open) => {\n if (!open) props.onClose();\n }}\n >\n {/* Wider than the rest of the admin's sheets: this one has to fit a\n rendered email, and an email is authored for a real column width. */}\n <SheetContent className=\"flex w-full flex-col overflow-hidden sm:max-w-3xl\">\n <SheetHeader>\n {/* Humanized through the same helper the list uses. Showing\n `invitationInvite` here while the row that opened it says\n \"Invitation invite\" makes one template look like two. The raw\n name stays reachable in the Raw tab. */}\n <SheetTitle title={detail?.template}>\n {detail?.template\n ? notificationTemplateLabel(detail.template)\n : tr(\"admin.notifications.detailTitle\", {\n default: \"Notification\",\n })}\n </SheetTitle>\n <SheetDescription>{detail?.contact ?? \"\"}</SheetDescription>\n </SheetHeader>\n\n {detail && props.notificationId ? (\n // Keyed on the row AND the requested tab: the sheet stays mounted\n // between rows, so without this a \"Raw data\" click on a second row\n // would land on whatever tab the previous one was left on. A key is\n // the remount, which is how the tab state re-initialises without an\n // effect that sets state.\n <AdminNotificationsDetailTabs\n key={`${props.notificationId}:${props.initialTab ?? \"details\"}`}\n notificationId={props.notificationId}\n detail={detail}\n initialTab={props.initialTab ?? \"details\"}\n />\n ) : null}\n </SheetContent>\n </Sheet>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAsCA,MAAa,4BACX,UACG;CACH,MAAM,SAAS,UAAuC;CACtD,MAAM,EAAE,OAAO,QAAQ;CAEvB,MAAM,EAAE,MAAM,WAAW,SACvB;EACE,UAAU,EAAE,aACV,MAAM,iBACF,OAAO,gBACL,EAAE,QAAQ,EAAE,IAAI,MAAM,eAAe,EAAE,GACvC,EAAE,SAAS,EAAE,OAAO,EAAE,CACxB,IACA,QAAQ,QAAQ,IAAI;EAC1B,eAAe,CAAC;CAClB,GACA,CAAC,QAAQ,MAAM,cAAc,CAC/B;CAEA,OACE,oBAAC,OAAD;EACE,MAAM,QAAQ,MAAM,cAAc;EAClC,eAAe,SAAS;GACtB,IAAI,CAAC,MAAM,MAAM,QAAQ;EAC3B;EAIA,UAAA,qBAAC,cAAD;GAAc,WAAU;GAAxB,UAAA,CACE,qBAAC,aAAD,EAAA,UAAA,CAKE,oBAAC,YAAD;IAAY,OAAO,QAAQ;IACxB,UAAA,QAAQ,WACL,0BAA0B,OAAO,QAAQ,IACzC,GAAG,mCAAmC,EACpC,SAAS,eACX,CAAC;GACK,CAAA,GACZ,oBAAC,kBAAD,EAAA,UAAmB,QAAQ,WAAW,GAAqB,CAAA,CAChD,EAAA,CAAA,GAEZ,UAAU,MAAM,iBAMf,oBAAC,8BAAD;IAEE,gBAAgB,MAAM;IACd;IACR,YAAY,MAAM,cAAc;GACjC,GAJM,GAAG,MAAM,eAAe,GAAG,MAAM,cAAc,WAIrD,IACC,IACQ;;CACT,CAAA;AAEX"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NotificationPreviewResource } from "alepha/api/notifications";
|
|
2
|
+
export interface AdminNotificationsPreviewBodyProps {
|
|
3
|
+
preview: NotificationPreviewResource;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* What a preview looks like, given one already fetched.
|
|
7
|
+
*
|
|
8
|
+
* Split from the tab that fetches it so the interesting half - three
|
|
9
|
+
* unavailable states that must not read alike - can be rendered in a test
|
|
10
|
+
* without a container or a client.
|
|
11
|
+
*/
|
|
12
|
+
export declare const AdminNotificationsPreviewBody: (props: AdminNotificationsPreviewBodyProps) => import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=admin-notifications-preview-body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-preview-body.d.ts","sourceRoot":"","sources":["../../../src/components/admin/admin-notifications-preview-body.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAG5E,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,2BAA2B,CAAC;CACtC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,UACjC,kCAAkC,gCAsF1C,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Badge } from "../ui/badge.js";
|
|
2
|
+
import { EmailBodyFrame } from "../email-body-frame/email-body-frame.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { useI18n } from "alepha/react/i18n";
|
|
5
|
+
//#region src/components/admin/admin-notifications-preview-body.tsx
|
|
6
|
+
/**
|
|
7
|
+
* What a preview looks like, given one already fetched.
|
|
8
|
+
*
|
|
9
|
+
* Split from the tab that fetches it so the interesting half - three
|
|
10
|
+
* unavailable states that must not read alike - can be rendered in a test
|
|
11
|
+
* without a container or a client.
|
|
12
|
+
*/
|
|
13
|
+
const AdminNotificationsPreviewBody = (props) => {
|
|
14
|
+
const { tr } = useI18n();
|
|
15
|
+
const preview = props.preview;
|
|
16
|
+
if (!preview.available) return /* @__PURE__ */ jsx("div", {
|
|
17
|
+
className: "px-4 pb-6",
|
|
18
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
19
|
+
className: "text-muted-foreground text-sm",
|
|
20
|
+
children: {
|
|
21
|
+
"outbox-purged": tr("admin.notifications.previewPurged", { default: "The job record holding this message's variables has passed its retention window, so it can no longer be rendered. The receipt is kept for longer." }),
|
|
22
|
+
sensitive: tr("admin.notifications.previewSensitive", { default: "This template is marked sensitive, so its rendered content is never shown in the admin." }),
|
|
23
|
+
"template-missing": tr("admin.notifications.previewTemplateMissing", { default: "The template that produced this message is no longer registered in the app, so there is nothing left to render it with." })
|
|
24
|
+
}[preview.reason ?? ""] ?? tr("admin.notifications.previewUnavailable", { default: "This message cannot be previewed." })
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
28
|
+
className: "flex min-h-0 flex-1 flex-col gap-4 px-4 pb-6",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ jsx("p", {
|
|
31
|
+
className: "text-muted-foreground text-xs",
|
|
32
|
+
children: tr("admin.notifications.previewLive", { default: "Re-rendered from the template as it exists now. If the template changed since the send, this differs from what was delivered." })
|
|
33
|
+
}),
|
|
34
|
+
preview.subject ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
35
|
+
className: "text-muted-foreground text-xs",
|
|
36
|
+
children: tr("admin.notifications.detailSubject", { default: "Subject" })
|
|
37
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: "text-sm",
|
|
39
|
+
children: preview.subject
|
|
40
|
+
})] }) : null,
|
|
41
|
+
preview.attachments.length > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
42
|
+
className: "flex flex-wrap items-center gap-2",
|
|
43
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
44
|
+
className: "text-muted-foreground text-xs",
|
|
45
|
+
children: tr("admin.notifications.previewAttachments", { default: "Attachments" })
|
|
46
|
+
}), preview.attachments.map((attachment) => /* @__PURE__ */ jsx(Badge, {
|
|
47
|
+
variant: "secondary",
|
|
48
|
+
children: attachment
|
|
49
|
+
}, attachment))]
|
|
50
|
+
}) : null,
|
|
51
|
+
preview.channel === "email" ? /* @__PURE__ */ jsx("div", {
|
|
52
|
+
className: "min-h-96 flex-1 overflow-hidden rounded border",
|
|
53
|
+
children: /* @__PURE__ */ jsx(EmailBodyFrame, { html: preview.html ?? "" })
|
|
54
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
55
|
+
className: "bg-muted rounded p-3 text-sm whitespace-pre-wrap",
|
|
56
|
+
children: preview.message
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
export { AdminNotificationsPreviewBody };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=admin-notifications-preview-body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-preview-body.js","names":[],"sources":["../../../src/components/admin/admin-notifications-preview-body.tsx"],"sourcesContent":["import { EmailBodyFrame } from \"@alepha/ui/components/email-body-frame/email-body-frame\";\nimport { Badge } from \"@alepha/ui/components/ui/badge\";\nimport type { NotificationPreviewResource } from \"alepha/api/notifications\";\nimport { useI18n } from \"alepha/react/i18n\";\n\nexport interface AdminNotificationsPreviewBodyProps {\n preview: NotificationPreviewResource;\n}\n\n/**\n * What a preview looks like, given one already fetched.\n *\n * Split from the tab that fetches it so the interesting half - three\n * unavailable states that must not read alike - can be rendered in a test\n * without a container or a client.\n */\nexport const AdminNotificationsPreviewBody = (\n props: AdminNotificationsPreviewBodyProps,\n) => {\n const { tr } = useI18n();\n const preview = props.preview;\n\n if (!preview.available) {\n /**\n * Three separate sentences, deliberately. All three are normal, and an\n * operator has to be able to tell retention (nothing to do) from a\n * sensitive template (nothing will ever be shown) from a deleted\n * template (someone changed the code). One shared \"unavailable\" would\n * make all three look like a bug.\n */\n const reasons: Record<string, string> = {\n \"outbox-purged\": tr(\"admin.notifications.previewPurged\", {\n default:\n \"The job record holding this message's variables has passed its retention window, so it can no longer be rendered. The receipt is kept for longer.\",\n }),\n sensitive: tr(\"admin.notifications.previewSensitive\", {\n default:\n \"This template is marked sensitive, so its rendered content is never shown in the admin.\",\n }),\n \"template-missing\": tr(\"admin.notifications.previewTemplateMissing\", {\n default:\n \"The template that produced this message is no longer registered in the app, so there is nothing left to render it with.\",\n }),\n };\n\n return (\n <div className=\"px-4 pb-6\">\n <p className=\"text-muted-foreground text-sm\">\n {reasons[preview.reason ?? \"\"] ??\n tr(\"admin.notifications.previewUnavailable\", {\n default: \"This message cannot be previewed.\",\n })}\n </p>\n </div>\n );\n }\n\n return (\n <div className=\"flex min-h-0 flex-1 flex-col gap-4 px-4 pb-6\">\n <p className=\"text-muted-foreground text-xs\">\n {tr(\"admin.notifications.previewLive\", {\n default:\n \"Re-rendered from the template as it exists now. If the template changed since the send, this differs from what was delivered.\",\n })}\n </p>\n\n {preview.subject ? (\n <div>\n <div className=\"text-muted-foreground text-xs\">\n {tr(\"admin.notifications.detailSubject\", { default: \"Subject\" })}\n </div>\n <div className=\"text-sm\">{preview.subject}</div>\n </div>\n ) : null}\n\n {preview.attachments.length > 0 ? (\n <div className=\"flex flex-wrap items-center gap-2\">\n <span className=\"text-muted-foreground text-xs\">\n {tr(\"admin.notifications.previewAttachments\", {\n default: \"Attachments\",\n })}\n </span>\n {/* Names only. The bytes are never resolved for a preview, so a\n purged file cannot break the render. */}\n {preview.attachments.map((attachment) => (\n <Badge key={attachment} variant=\"secondary\">\n {attachment}\n </Badge>\n ))}\n </div>\n ) : null}\n\n {preview.channel === \"email\" ? (\n <div className=\"min-h-96 flex-1 overflow-hidden rounded border\">\n <EmailBodyFrame html={preview.html ?? \"\"} />\n </div>\n ) : (\n <div className=\"bg-muted rounded p-3 text-sm whitespace-pre-wrap\">\n {preview.message}\n </div>\n )}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAgBA,MAAa,iCACX,UACG;CACH,MAAM,EAAE,OAAO,QAAQ;CACvB,MAAM,UAAU,MAAM;CAEtB,IAAI,CAAC,QAAQ,WAuBX,OACE,oBAAC,OAAD;EAAK,WAAU;EACb,UAAA,oBAAC,KAAD;GAAG,WAAU;GACV,UAAA;IAjBL,iBAAiB,GAAG,qCAAqC,EACvD,SACE,oJACJ,CAAC;IACD,WAAW,GAAG,wCAAwC,EACpD,SACE,0FACJ,CAAC;IACD,oBAAoB,GAAG,8CAA8C,EACnE,SACE,0HACJ,CAAC;GAMU,EAAE,QAAQ,UAAU,OACzB,GAAG,0CAA0C,EAC3C,SAAS,oCACX,CAAC;EACF,CAAA;CACA,CAAA;CAIT,OACE,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACE,oBAAC,KAAD;IAAG,WAAU;IACV,UAAA,GAAG,mCAAmC,EACrC,SACE,gIACJ,CAAC;GACA,CAAA;GAEF,QAAQ,UACP,qBAAC,OAAD,EAAA,UAAA,CACE,oBAAC,OAAD;IAAK,WAAU;IACZ,UAAA,GAAG,qCAAqC,EAAE,SAAS,UAAU,CAAC;GAC5D,CAAA,GACL,oBAAC,OAAD;IAAK,WAAU;IAAW,UAAA,QAAQ;GAAa,CAAA,CAC5C,EAAA,CAAA,IACH;GAEH,QAAQ,YAAY,SAAS,IAC5B,qBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,oBAAC,QAAD;KAAM,WAAU;KACb,UAAA,GAAG,0CAA0C,EAC5C,SAAS,cACX,CAAC;IACG,CAAA,GAGL,QAAQ,YAAY,KAAK,eACxB,oBAAC,OAAD;KAAwB,SAAQ;KAC7B,UAAA;IACI,GAFK,UAEL,CACR,CACE;GACH,CAAA,IAAA;GAEH,QAAQ,YAAY,UACnB,oBAAC,OAAD;IAAK,WAAU;IACb,UAAA,oBAAC,gBAAD,EAAgB,MAAM,QAAQ,QAAQ,GAAK,CAAA;GACxC,CAAA,IAEL,oBAAC,OAAD;IAAK,WAAU;IACZ,UAAA,QAAQ;GACN,CAAA;EAEJ;;AAET"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface AdminNotificationsPreviewTabProps {
|
|
2
|
+
notificationId: string | null;
|
|
3
|
+
/**
|
|
4
|
+
* Whether this tab is the one on screen. The fetch is skipped until it is,
|
|
5
|
+
* so opening a row never re-renders a template nobody asked to see.
|
|
6
|
+
*/
|
|
7
|
+
active: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The message itself, re-rendered from its template.
|
|
11
|
+
*
|
|
12
|
+
* ⚠️ **This is not what was delivered, it is what the template produces
|
|
13
|
+
* today.** `storeRenderedBody` is off by default, so most receipts carry no
|
|
14
|
+
* body and the only way to show anything is to run the template again. If it
|
|
15
|
+
* has changed since the send the preview changes with it, which the banner in
|
|
16
|
+
* {@link AdminNotificationsPreviewBody} says out loud rather than implying a
|
|
17
|
+
* fidelity it does not have.
|
|
18
|
+
*
|
|
19
|
+
* The endpoint answers 200 with a reason rather than throwing when there is
|
|
20
|
+
* nothing to show: retention and a sensitive template are expected states,
|
|
21
|
+
* not errors.
|
|
22
|
+
*/
|
|
23
|
+
export declare const AdminNotificationsPreviewTab: (props: AdminNotificationsPreviewTabProps) => import("react").JSX.Element | null;
|
|
24
|
+
//# sourceMappingURL=admin-notifications-preview-tab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-preview-tab.d.ts","sourceRoot":"","sources":["../../../src/components/admin/admin-notifications-preview-tab.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,iCAAiC;IAChD,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,4BAA4B,UAChC,iCAAiC,uCAuBzC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AdminNotificationsPreviewBody } from "./admin-notifications-preview-body.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useClient, useQuery } from "alepha/react";
|
|
4
|
+
//#region src/components/admin/admin-notifications-preview-tab.tsx
|
|
5
|
+
/**
|
|
6
|
+
* The message itself, re-rendered from its template.
|
|
7
|
+
*
|
|
8
|
+
* ⚠️ **This is not what was delivered, it is what the template produces
|
|
9
|
+
* today.** `storeRenderedBody` is off by default, so most receipts carry no
|
|
10
|
+
* body and the only way to show anything is to run the template again. If it
|
|
11
|
+
* has changed since the send the preview changes with it, which the banner in
|
|
12
|
+
* {@link AdminNotificationsPreviewBody} says out loud rather than implying a
|
|
13
|
+
* fidelity it does not have.
|
|
14
|
+
*
|
|
15
|
+
* The endpoint answers 200 with a reason rather than throwing when there is
|
|
16
|
+
* nothing to show: retention and a sensitive template are expected states,
|
|
17
|
+
* not errors.
|
|
18
|
+
*/
|
|
19
|
+
const AdminNotificationsPreviewTab = (props) => {
|
|
20
|
+
const client = useClient();
|
|
21
|
+
const { data: preview } = useQuery({
|
|
22
|
+
handler: ({ signal }) => props.active && props.notificationId ? client.previewNotification({ params: { id: props.notificationId } }, { request: { signal } }) : Promise.resolve(null),
|
|
23
|
+
onError: () => {}
|
|
24
|
+
}, [
|
|
25
|
+
client,
|
|
26
|
+
props.notificationId,
|
|
27
|
+
props.active
|
|
28
|
+
]);
|
|
29
|
+
if (!preview) return null;
|
|
30
|
+
return /* @__PURE__ */ jsx(AdminNotificationsPreviewBody, { preview });
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { AdminNotificationsPreviewTab };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=admin-notifications-preview-tab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-preview-tab.js","names":[],"sources":["../../../src/components/admin/admin-notifications-preview-tab.tsx"],"sourcesContent":["import { AdminNotificationsPreviewBody } from \"@alepha/ui/components/admin/admin-notifications-preview-body\";\nimport type {\n AdminNotificationController,\n NotificationPreviewResource,\n} from \"alepha/api/notifications\";\nimport { useClient, useQuery } from \"alepha/react\";\n\nexport interface AdminNotificationsPreviewTabProps {\n notificationId: string | null;\n /**\n * Whether this tab is the one on screen. The fetch is skipped until it is,\n * so opening a row never re-renders a template nobody asked to see.\n */\n active: boolean;\n}\n\n/**\n * The message itself, re-rendered from its template.\n *\n * ⚠️ **This is not what was delivered, it is what the template produces\n * today.** `storeRenderedBody` is off by default, so most receipts carry no\n * body and the only way to show anything is to run the template again. If it\n * has changed since the send the preview changes with it, which the banner in\n * {@link AdminNotificationsPreviewBody} says out loud rather than implying a\n * fidelity it does not have.\n *\n * The endpoint answers 200 with a reason rather than throwing when there is\n * nothing to show: retention and a sensitive template are expected states,\n * not errors.\n */\nexport const AdminNotificationsPreviewTab = (\n props: AdminNotificationsPreviewTabProps,\n) => {\n const client = useClient<AdminNotificationController>();\n\n const { data: preview } = useQuery<NotificationPreviewResource | null>(\n {\n handler: ({ signal }) =>\n props.active && props.notificationId\n ? (client.previewNotification(\n { params: { id: props.notificationId } },\n { request: { signal } },\n ) as any)\n : Promise.resolve(null),\n onError: () => {},\n },\n [client, props.notificationId, props.active],\n );\n\n if (!preview) {\n return null;\n }\n\n return <AdminNotificationsPreviewBody preview={preview} />;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AA8BA,MAAa,gCACX,UACG;CACH,MAAM,SAAS,UAAuC;CAEtD,MAAM,EAAE,MAAM,YAAY,SACxB;EACE,UAAU,EAAE,aACV,MAAM,UAAU,MAAM,iBACjB,OAAO,oBACN,EAAE,QAAQ,EAAE,IAAI,MAAM,eAAe,EAAE,GACvC,EAAE,SAAS,EAAE,OAAO,EAAE,CACxB,IACA,QAAQ,QAAQ,IAAI;EAC1B,eAAe,CAAC;CAClB,GACA;EAAC;EAAQ,MAAM;EAAgB,MAAM;CAAM,CAC7C;CAEA,IAAI,CAAC,SACH,OAAO;CAGT,OAAO,oBAAC,+BAAD,EAAwC,QAAU,CAAA;AAC3D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { NotificationDetailResource } from "alepha/api/notifications";
|
|
2
|
+
export interface AdminNotificationsRawTabProps {
|
|
3
|
+
detail: NotificationDetailResource;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Everything the endpoint returns that the summary does not show.
|
|
7
|
+
*
|
|
8
|
+
* ⚠️ **Renders with most of it missing, on purpose.** `variables` and `logs`
|
|
9
|
+
* come from the outbox row, which lives 7 days against the receipt's 90, so
|
|
10
|
+
* they are simply absent on anything older. A `sensitive` template withholds
|
|
11
|
+
* `variables` at the backend for good. Neither is an error state and neither
|
|
12
|
+
* must look like one.
|
|
13
|
+
*
|
|
14
|
+
* This tab exists because all three fields were already being fetched by
|
|
15
|
+
* `getNotification` and none of them was rendered anywhere.
|
|
16
|
+
*/
|
|
17
|
+
export declare const AdminNotificationsRawTab: (props: AdminNotificationsRawTabProps) => import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=admin-notifications-raw-tab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-raw-tab.d.ts","sourceRoot":"","sources":["../../../src/components/admin/admin-notifications-raw-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAG3E,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,0BAA0B,CAAC;CACpC;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,UAC5B,6BAA6B,gCAuDrC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useI18n } from "alepha/react/i18n";
|
|
3
|
+
//#region src/components/admin/admin-notifications-raw-tab.tsx
|
|
4
|
+
/**
|
|
5
|
+
* Everything the endpoint returns that the summary does not show.
|
|
6
|
+
*
|
|
7
|
+
* ⚠️ **Renders with most of it missing, on purpose.** `variables` and `logs`
|
|
8
|
+
* come from the outbox row, which lives 7 days against the receipt's 90, so
|
|
9
|
+
* they are simply absent on anything older. A `sensitive` template withholds
|
|
10
|
+
* `variables` at the backend for good. Neither is an error state and neither
|
|
11
|
+
* must look like one.
|
|
12
|
+
*
|
|
13
|
+
* This tab exists because all three fields were already being fetched by
|
|
14
|
+
* `getNotification` and none of them was rendered anywhere.
|
|
15
|
+
*/
|
|
16
|
+
const AdminNotificationsRawTab = (props) => {
|
|
17
|
+
const { tr } = useI18n();
|
|
18
|
+
const detail = props.detail;
|
|
19
|
+
const present = [
|
|
20
|
+
{
|
|
21
|
+
label: tr("admin.notifications.detailVariables", { default: "Variables" }),
|
|
22
|
+
value: detail.variables
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: tr("admin.notifications.rawRendered", { default: "Rendered" }),
|
|
26
|
+
value: detail.rendered && Object.keys(detail.rendered).length > 0 ? detail.rendered : void 0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: tr("admin.notifications.rawLogs", { default: "Logs" }),
|
|
30
|
+
value: detail.logs?.length ? detail.logs : void 0
|
|
31
|
+
}
|
|
32
|
+
].filter((block) => block.value !== void 0);
|
|
33
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
34
|
+
className: "space-y-6 px-4 pb-6 text-sm",
|
|
35
|
+
children: [present.map((block) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
36
|
+
className: "text-muted-foreground text-xs",
|
|
37
|
+
children: block.label
|
|
38
|
+
}), /* @__PURE__ */ jsx("pre", {
|
|
39
|
+
className: "bg-muted overflow-x-auto rounded p-2 text-xs",
|
|
40
|
+
children: JSON.stringify(block.value, null, 2)
|
|
41
|
+
})] }, block.label)), detail.outboxAvailable === false ? /* @__PURE__ */ jsx("p", {
|
|
42
|
+
className: "text-muted-foreground text-xs",
|
|
43
|
+
children: tr("admin.notifications.detailOutboxGone", { default: "The original job record has passed its retention window, so variables and logs are no longer available. The receipt is kept for longer." })
|
|
44
|
+
}) : present.length === 0 ? /* @__PURE__ */ jsx("p", {
|
|
45
|
+
className: "text-muted-foreground text-xs",
|
|
46
|
+
children: tr("admin.notifications.rawEmpty", { default: "Nothing more was recorded for this notification. A template marked sensitive withholds its variables from the admin." })
|
|
47
|
+
}) : null]
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
export { AdminNotificationsRawTab };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=admin-notifications-raw-tab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-raw-tab.js","names":[],"sources":["../../../src/components/admin/admin-notifications-raw-tab.tsx"],"sourcesContent":["import type { NotificationDetailResource } from \"alepha/api/notifications\";\nimport { useI18n } from \"alepha/react/i18n\";\n\nexport interface AdminNotificationsRawTabProps {\n detail: NotificationDetailResource;\n}\n\n/**\n * Everything the endpoint returns that the summary does not show.\n *\n * ⚠️ **Renders with most of it missing, on purpose.** `variables` and `logs`\n * come from the outbox row, which lives 7 days against the receipt's 90, so\n * they are simply absent on anything older. A `sensitive` template withholds\n * `variables` at the backend for good. Neither is an error state and neither\n * must look like one.\n *\n * This tab exists because all three fields were already being fetched by\n * `getNotification` and none of them was rendered anywhere.\n */\nexport const AdminNotificationsRawTab = (\n props: AdminNotificationsRawTabProps,\n) => {\n const { tr } = useI18n();\n const detail = props.detail;\n\n const blocks: Array<{ label: string; value: unknown }> = [\n {\n label: tr(\"admin.notifications.detailVariables\", {\n default: \"Variables\",\n }),\n value: detail.variables,\n },\n {\n label: tr(\"admin.notifications.rawRendered\", { default: \"Rendered\" }),\n value:\n detail.rendered && Object.keys(detail.rendered).length > 0\n ? detail.rendered\n : undefined,\n },\n {\n label: tr(\"admin.notifications.rawLogs\", { default: \"Logs\" }),\n value: detail.logs?.length ? detail.logs : undefined,\n },\n ];\n\n const present = blocks.filter((block) => block.value !== undefined);\n\n return (\n <div className=\"space-y-6 px-4 pb-6 text-sm\">\n {present.map((block) => (\n <div key={block.label}>\n <div className=\"text-muted-foreground text-xs\">{block.label}</div>\n <pre className=\"bg-muted overflow-x-auto rounded p-2 text-xs\">\n {JSON.stringify(block.value, null, 2)}\n </pre>\n </div>\n ))}\n\n {detail.outboxAvailable === false ? (\n <p className=\"text-muted-foreground text-xs\">\n {tr(\"admin.notifications.detailOutboxGone\", {\n default:\n \"The original job record has passed its retention window, so variables and logs are no longer available. The receipt is kept for longer.\",\n })}\n </p>\n ) : present.length === 0 ? (\n <p className=\"text-muted-foreground text-xs\">\n {tr(\"admin.notifications.rawEmpty\", {\n default:\n \"Nothing more was recorded for this notification. A template marked sensitive withholds its variables from the admin.\",\n })}\n </p>\n ) : null}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,MAAa,4BACX,UACG;CACH,MAAM,EAAE,OAAO,QAAQ;CACvB,MAAM,SAAS,MAAM;CAsBrB,MAAM,UAAU;EAnBd;GACE,OAAO,GAAG,uCAAuC,EAC/C,SAAS,YACX,CAAC;GACD,OAAO,OAAO;EAChB;EACA;GACE,OAAO,GAAG,mCAAmC,EAAE,SAAS,WAAW,CAAC;GACpE,OACE,OAAO,YAAY,OAAO,KAAK,OAAO,QAAQ,CAAC,CAAC,SAAS,IACrD,OAAO,WACP,KAAA;EACR;EACA;GACE,OAAO,GAAG,+BAA+B,EAAE,SAAS,OAAO,CAAC;GAC5D,OAAO,OAAO,MAAM,SAAS,OAAO,OAAO,KAAA;EAC7C;CAGmB,CAAC,CAAC,QAAQ,UAAU,MAAM,UAAU,KAAA,CAAS;CAElE,OACE,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACG,QAAQ,KAAK,UACZ,qBAAC,OAAD,EAAA,UAAA,CACE,oBAAC,OAAD;GAAK,WAAU;GAAiC,UAAA,MAAM;EAAW,CAAA,GACjE,oBAAC,OAAD;GAAK,WAAU;GACZ,UAAA,KAAK,UAAU,MAAM,OAAO,MAAM,CAAC;EACjC,CAAA,CACF,EAAA,GALK,MAAM,KAKX,CACN,GAEA,OAAO,oBAAoB,QAC1B,oBAAC,KAAD;GAAG,WAAU;GACV,UAAA,GAAG,wCAAwC,EAC1C,SACE,0IACJ,CAAC;EACA,CAAA,IACD,QAAQ,WAAW,IACrB,oBAAC,KAAD;GAAG,WAAU;GACV,UAAA,GAAG,gCAAgC,EAClC,SACE,uHACJ,CAAC;EACA,CAAA,IACD,IACD;;AAET"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface AdminNotificationsStatusBadgeProps {
|
|
2
|
+
status?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* A delivery status, coloured and glyphed by what it means to an operator.
|
|
6
|
+
*
|
|
7
|
+
* ⚠️ These are the **receipt** statuses, not the job's. The list used to
|
|
8
|
+
* render `job_executions.status`, which never wrote `sent` or `delivered`, so
|
|
9
|
+
* every badge fell through to the neutral outline and the column said
|
|
10
|
+
* nothing.
|
|
11
|
+
*
|
|
12
|
+
* The tone and the glyph both come from `admin-notifications-status-tones`,
|
|
13
|
+
* which is the single map: the list and the detail sheet cannot then show the
|
|
14
|
+
* same status two different ways.
|
|
15
|
+
*/
|
|
16
|
+
export declare const AdminNotificationsStatusBadge: (props: AdminNotificationsStatusBadgeProps) => import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=admin-notifications-status-badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-status-badge.d.ts","sourceRoot":"","sources":["../../../src/components/admin/admin-notifications-status-badge.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,kCAAkC;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,6BAA6B,UACjC,kCAAkC,gCAiB1C,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Badge } from "../ui/badge.js";
|
|
2
|
+
import { useNotificationStatusLabels } from "./admin-notifications-status-labels.js";
|
|
3
|
+
import { NOTIFICATION_STATUS_ICON, NOTIFICATION_STATUS_TONE } from "./admin-notifications-status-tones.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/admin/admin-notifications-status-badge.tsx
|
|
6
|
+
/**
|
|
7
|
+
* A delivery status, coloured and glyphed by what it means to an operator.
|
|
8
|
+
*
|
|
9
|
+
* ⚠️ These are the **receipt** statuses, not the job's. The list used to
|
|
10
|
+
* render `job_executions.status`, which never wrote `sent` or `delivered`, so
|
|
11
|
+
* every badge fell through to the neutral outline and the column said
|
|
12
|
+
* nothing.
|
|
13
|
+
*
|
|
14
|
+
* The tone and the glyph both come from `admin-notifications-status-tones`,
|
|
15
|
+
* which is the single map: the list and the detail sheet cannot then show the
|
|
16
|
+
* same status two different ways.
|
|
17
|
+
*/
|
|
18
|
+
const AdminNotificationsStatusBadge = (props) => {
|
|
19
|
+
const labels = useNotificationStatusLabels();
|
|
20
|
+
const status = props.status ?? "sent";
|
|
21
|
+
const tone = NOTIFICATION_STATUS_TONE[status];
|
|
22
|
+
const Icon = NOTIFICATION_STATUS_ICON[status];
|
|
23
|
+
return /* @__PURE__ */ jsxs(Badge, {
|
|
24
|
+
variant: "tint",
|
|
25
|
+
tone: tone ?? "neutral",
|
|
26
|
+
children: [Icon ? /* @__PURE__ */ jsx(Icon, { className: "size-3" }) : null, labels[status] ?? status]
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { AdminNotificationsStatusBadge };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=admin-notifications-status-badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-status-badge.js","names":[],"sources":["../../../src/components/admin/admin-notifications-status-badge.tsx"],"sourcesContent":["import { Badge } from \"@alepha/ui/components/ui/badge\";\n\nimport { useNotificationStatusLabels } from \"./admin-notifications-status-labels.ts\";\nimport {\n NOTIFICATION_STATUS_ICON,\n NOTIFICATION_STATUS_TONE,\n type NotificationStatus,\n} from \"./admin-notifications-status-tones.ts\";\n\nexport interface AdminNotificationsStatusBadgeProps {\n status?: string;\n}\n\n/**\n * A delivery status, coloured and glyphed by what it means to an operator.\n *\n * ⚠️ These are the **receipt** statuses, not the job's. The list used to\n * render `job_executions.status`, which never wrote `sent` or `delivered`, so\n * every badge fell through to the neutral outline and the column said\n * nothing.\n *\n * The tone and the glyph both come from `admin-notifications-status-tones`,\n * which is the single map: the list and the detail sheet cannot then show the\n * same status two different ways.\n */\nexport const AdminNotificationsStatusBadge = (\n props: AdminNotificationsStatusBadgeProps,\n) => {\n const labels = useNotificationStatusLabels();\n const status = (props.status ?? \"sent\") as NotificationStatus;\n const tone = NOTIFICATION_STATUS_TONE[status];\n const Icon = NOTIFICATION_STATUS_ICON[status];\n\n return (\n // A status this build does not know about still gets a chip: neutral, no\n // glyph, and its own raw value as the label. A transport can report\n // something newer than the deployed code, and an empty chip reads as a\n // rendering bug rather than as news.\n <Badge variant=\"tint\" tone={tone ?? \"neutral\"}>\n {Icon ? <Icon className=\"size-3\" /> : null}\n {labels[status] ?? status}\n </Badge>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAyBA,MAAa,iCACX,UACG;CACH,MAAM,SAAS,4BAA4B;CAC3C,MAAM,SAAU,MAAM,UAAU;CAChC,MAAM,OAAO,yBAAyB;CACtC,MAAM,OAAO,yBAAyB;CAEtC,OAKE,qBAAC,OAAD;EAAO,SAAQ;EAAO,MAAM,QAAQ;EAApC,UAAA,CACG,OAAO,oBAAC,MAAD,EAAM,WAAU,SAAU,CAAA,IAAI,MACrC,OAAO,WAAW,MACd;;AAEX"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { NotificationStatus } from "./admin-notifications-status-tones.ts";
|
|
2
|
+
/**
|
|
3
|
+
* Localised delivery status labels, keyed by status.
|
|
4
|
+
*
|
|
5
|
+
* ⚠️ One literal `tr()` per status, and never
|
|
6
|
+
* ``tr(`admin.notifications.status.${status}`)``. A computed key is invisible
|
|
7
|
+
* to `i18n-fr.spec.ts`, which finds keys by matching a literal after `tr(`,
|
|
8
|
+
* so the French entries could not be added at all: the spec would report
|
|
9
|
+
* every one of them as a translation nothing asks for, and the statuses would
|
|
10
|
+
* render in English inside a French UI. Same trap `admin-jobs-status-labels`
|
|
11
|
+
* documents.
|
|
12
|
+
*
|
|
13
|
+
* A record rather than a function, because both callers want the whole set:
|
|
14
|
+
* the filter lists it, the badge indexes it.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useNotificationStatusLabels: () => Record<NotificationStatus, string>;
|
|
17
|
+
//# sourceMappingURL=admin-notifications-status-labels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-status-labels.d.ts","sourceRoot":"","sources":["../../../src/components/admin/admin-notifications-status-labels.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAEhF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,2BAA2B,QAAO,MAAM,CACnD,kBAAkB,EAClB,MAAM,CAqBP,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useI18n } from "alepha/react/i18n";
|
|
2
|
+
//#region src/components/admin/admin-notifications-status-labels.ts
|
|
3
|
+
/**
|
|
4
|
+
* Localised delivery status labels, keyed by status.
|
|
5
|
+
*
|
|
6
|
+
* ⚠️ One literal `tr()` per status, and never
|
|
7
|
+
* ``tr(`admin.notifications.status.${status}`)``. A computed key is invisible
|
|
8
|
+
* to `i18n-fr.spec.ts`, which finds keys by matching a literal after `tr(`,
|
|
9
|
+
* so the French entries could not be added at all: the spec would report
|
|
10
|
+
* every one of them as a translation nothing asks for, and the statuses would
|
|
11
|
+
* render in English inside a French UI. Same trap `admin-jobs-status-labels`
|
|
12
|
+
* documents.
|
|
13
|
+
*
|
|
14
|
+
* A record rather than a function, because both callers want the whole set:
|
|
15
|
+
* the filter lists it, the badge indexes it.
|
|
16
|
+
*/
|
|
17
|
+
const useNotificationStatusLabels = () => {
|
|
18
|
+
const { tr } = useI18n();
|
|
19
|
+
return {
|
|
20
|
+
sent: tr("admin.notifications.status.sent", { default: "Sent" }),
|
|
21
|
+
delivered: tr("admin.notifications.status.delivered", { default: "Delivered" }),
|
|
22
|
+
deferred: tr("admin.notifications.status.deferred", { default: "Deferred" }),
|
|
23
|
+
bounced: tr("admin.notifications.status.bounced", { default: "Bounced" }),
|
|
24
|
+
complained: tr("admin.notifications.status.complained", { default: "Complained" }),
|
|
25
|
+
failed: tr("admin.notifications.status.failed", { default: "Failed" }),
|
|
26
|
+
rejected: tr("admin.notifications.status.rejected", { default: "Rejected" }),
|
|
27
|
+
skipped: tr("admin.notifications.status.skipped", { default: "Skipped" })
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { useNotificationStatusLabels };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=admin-notifications-status-labels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-status-labels.js","names":[],"sources":["../../../src/components/admin/admin-notifications-status-labels.ts"],"sourcesContent":["import { useI18n } from \"alepha/react/i18n\";\n\nimport type { NotificationStatus } from \"./admin-notifications-status-tones.ts\";\n\n/**\n * Localised delivery status labels, keyed by status.\n *\n * ⚠️ One literal `tr()` per status, and never\n * ``tr(`admin.notifications.status.${status}`)``. A computed key is invisible\n * to `i18n-fr.spec.ts`, which finds keys by matching a literal after `tr(`,\n * so the French entries could not be added at all: the spec would report\n * every one of them as a translation nothing asks for, and the statuses would\n * render in English inside a French UI. Same trap `admin-jobs-status-labels`\n * documents.\n *\n * A record rather than a function, because both callers want the whole set:\n * the filter lists it, the badge indexes it.\n */\nexport const useNotificationStatusLabels = (): Record<\n NotificationStatus,\n string\n> => {\n const { tr } = useI18n();\n return {\n sent: tr(\"admin.notifications.status.sent\", { default: \"Sent\" }),\n delivered: tr(\"admin.notifications.status.delivered\", {\n default: \"Delivered\",\n }),\n deferred: tr(\"admin.notifications.status.deferred\", {\n default: \"Deferred\",\n }),\n bounced: tr(\"admin.notifications.status.bounced\", { default: \"Bounced\" }),\n complained: tr(\"admin.notifications.status.complained\", {\n default: \"Complained\",\n }),\n failed: tr(\"admin.notifications.status.failed\", { default: \"Failed\" }),\n rejected: tr(\"admin.notifications.status.rejected\", {\n default: \"Rejected\",\n }),\n skipped: tr(\"admin.notifications.status.skipped\", { default: \"Skipped\" }),\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAkBA,MAAa,oCAGR;CACH,MAAM,EAAE,OAAO,QAAQ;CACvB,OAAO;EACL,MAAM,GAAG,mCAAmC,EAAE,SAAS,OAAO,CAAC;EAC/D,WAAW,GAAG,wCAAwC,EACpD,SAAS,YACX,CAAC;EACD,UAAU,GAAG,uCAAuC,EAClD,SAAS,WACX,CAAC;EACD,SAAS,GAAG,sCAAsC,EAAE,SAAS,UAAU,CAAC;EACxE,YAAY,GAAG,yCAAyC,EACtD,SAAS,aACX,CAAC;EACD,QAAQ,GAAG,qCAAqC,EAAE,SAAS,SAAS,CAAC;EACrE,UAAU,GAAG,uCAAuC,EAClD,SAAS,WACX,CAAC;EACD,SAAS,GAAG,sCAAsC,EAAE,SAAS,UAAU,CAAC;CAC1E;AACF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { BadgeTone } from "@alepha/ui/components/ui/badge";
|
|
2
|
+
import type { NotificationQuery } from "alepha/api/notifications";
|
|
3
|
+
import { type LucideIcon } from "lucide-react";
|
|
4
|
+
/**
|
|
5
|
+
* One delivery status.
|
|
6
|
+
*
|
|
7
|
+
* Taken from the query schema and NOT from `notificationDeliveryEntity`: the
|
|
8
|
+
* module's browser entry exports its schemas only, so importing the entity
|
|
9
|
+
* here would pull `alepha/orm` into the client bundle for a type. The two
|
|
10
|
+
* enums are held equal by `statusFilter.spec.ts`.
|
|
11
|
+
*/
|
|
12
|
+
export type NotificationStatus = NonNullable<NotificationQuery["status"]>;
|
|
13
|
+
/**
|
|
14
|
+
* The delivery vocabulary, in the order the filter offers it: the happy path
|
|
15
|
+
* first, then the states that need an operator, then the one that needs
|
|
16
|
+
* nobody.
|
|
17
|
+
*
|
|
18
|
+
* The list, the filter and the badge all need the set, and a hand-kept copy
|
|
19
|
+
* in each of them is how one ends up missing a status.
|
|
20
|
+
* `admin-status-labels.browser.spec.tsx` holds it equal to the query schema's.
|
|
21
|
+
*/
|
|
22
|
+
export declare const NOTIFICATION_STATUSES: NotificationStatus[];
|
|
23
|
+
/**
|
|
24
|
+
* The tone each delivery status wears.
|
|
25
|
+
*
|
|
26
|
+
* ⚠️ `skipped` is deliberately NOT a failure. The gate refusing to mail
|
|
27
|
+
* someone who unsubscribed is the system working, and tinting it like a
|
|
28
|
+
* bounce sends operators hunting for a problem that is not there.
|
|
29
|
+
*
|
|
30
|
+
* `sent` and `delivered` are deliberately different: "the provider accepted
|
|
31
|
+
* it" and "the transport confirmed it" are not the same claim, and the old
|
|
32
|
+
* badge collapsed them into one neutral outline.
|
|
33
|
+
*/
|
|
34
|
+
export declare const NOTIFICATION_STATUS_TONE: Record<NotificationStatus, BadgeTone>;
|
|
35
|
+
/**
|
|
36
|
+
* The glyph each status wears.
|
|
37
|
+
*
|
|
38
|
+
* Not decoration: four statuses share the `danger` tone, so colour alone
|
|
39
|
+
* cannot tell a bounce from a complaint. The glyph is what carries that, and
|
|
40
|
+
* it is also what keeps the column readable in monochrome and for a reader
|
|
41
|
+
* who cannot separate the hues.
|
|
42
|
+
*/
|
|
43
|
+
export declare const NOTIFICATION_STATUS_ICON: Record<NotificationStatus, LucideIcon>;
|
|
44
|
+
//# sourceMappingURL=admin-notifications-status-tones.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-status-tones.d.ts","sourceRoot":"","sources":["../../../src/components/admin/admin-notifications-status-tones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EASL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAEtB;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC;AAE1E;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,EAAE,kBAAkB,EASrD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,kBAAkB,EAAE,SAAS,CAS1E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,kBAAkB,EAAE,UAAU,CAUzE,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Ban, CheckCheck, CircleMinus, CircleX, Clock, MailX, Send, ShieldAlert } from "lucide-react";
|
|
2
|
+
//#region src/components/admin/admin-notifications-status-tones.ts
|
|
3
|
+
/**
|
|
4
|
+
* The delivery vocabulary, in the order the filter offers it: the happy path
|
|
5
|
+
* first, then the states that need an operator, then the one that needs
|
|
6
|
+
* nobody.
|
|
7
|
+
*
|
|
8
|
+
* The list, the filter and the badge all need the set, and a hand-kept copy
|
|
9
|
+
* in each of them is how one ends up missing a status.
|
|
10
|
+
* `admin-status-labels.browser.spec.tsx` holds it equal to the query schema's.
|
|
11
|
+
*/
|
|
12
|
+
const NOTIFICATION_STATUSES = [
|
|
13
|
+
"sent",
|
|
14
|
+
"delivered",
|
|
15
|
+
"deferred",
|
|
16
|
+
"bounced",
|
|
17
|
+
"complained",
|
|
18
|
+
"failed",
|
|
19
|
+
"rejected",
|
|
20
|
+
"skipped"
|
|
21
|
+
];
|
|
22
|
+
/**
|
|
23
|
+
* The tone each delivery status wears.
|
|
24
|
+
*
|
|
25
|
+
* ⚠️ `skipped` is deliberately NOT a failure. The gate refusing to mail
|
|
26
|
+
* someone who unsubscribed is the system working, and tinting it like a
|
|
27
|
+
* bounce sends operators hunting for a problem that is not there.
|
|
28
|
+
*
|
|
29
|
+
* `sent` and `delivered` are deliberately different: "the provider accepted
|
|
30
|
+
* it" and "the transport confirmed it" are not the same claim, and the old
|
|
31
|
+
* badge collapsed them into one neutral outline.
|
|
32
|
+
*/
|
|
33
|
+
const NOTIFICATION_STATUS_TONE = {
|
|
34
|
+
sent: "info",
|
|
35
|
+
delivered: "success",
|
|
36
|
+
deferred: "warning",
|
|
37
|
+
bounced: "danger",
|
|
38
|
+
complained: "danger",
|
|
39
|
+
failed: "danger",
|
|
40
|
+
rejected: "danger",
|
|
41
|
+
skipped: "neutral"
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The glyph each status wears.
|
|
45
|
+
*
|
|
46
|
+
* Not decoration: four statuses share the `danger` tone, so colour alone
|
|
47
|
+
* cannot tell a bounce from a complaint. The glyph is what carries that, and
|
|
48
|
+
* it is also what keeps the column readable in monochrome and for a reader
|
|
49
|
+
* who cannot separate the hues.
|
|
50
|
+
*/
|
|
51
|
+
const NOTIFICATION_STATUS_ICON = {
|
|
52
|
+
sent: Send,
|
|
53
|
+
delivered: CheckCheck,
|
|
54
|
+
deferred: Clock,
|
|
55
|
+
bounced: MailX,
|
|
56
|
+
complained: ShieldAlert,
|
|
57
|
+
failed: CircleX,
|
|
58
|
+
rejected: Ban,
|
|
59
|
+
skipped: CircleMinus
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
export { NOTIFICATION_STATUSES, NOTIFICATION_STATUS_ICON, NOTIFICATION_STATUS_TONE };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=admin-notifications-status-tones.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-status-tones.js","names":[],"sources":["../../../src/components/admin/admin-notifications-status-tones.ts"],"sourcesContent":["import type { BadgeTone } from \"@alepha/ui/components/ui/badge\";\nimport type { NotificationQuery } from \"alepha/api/notifications\";\nimport {\n Ban,\n CheckCheck,\n CircleMinus,\n CircleX,\n Clock,\n MailX,\n Send,\n ShieldAlert,\n type LucideIcon,\n} from \"lucide-react\";\n\n/**\n * One delivery status.\n *\n * Taken from the query schema and NOT from `notificationDeliveryEntity`: the\n * module's browser entry exports its schemas only, so importing the entity\n * here would pull `alepha/orm` into the client bundle for a type. The two\n * enums are held equal by `statusFilter.spec.ts`.\n */\nexport type NotificationStatus = NonNullable<NotificationQuery[\"status\"]>;\n\n/**\n * The delivery vocabulary, in the order the filter offers it: the happy path\n * first, then the states that need an operator, then the one that needs\n * nobody.\n *\n * The list, the filter and the badge all need the set, and a hand-kept copy\n * in each of them is how one ends up missing a status.\n * `admin-status-labels.browser.spec.tsx` holds it equal to the query schema's.\n */\nexport const NOTIFICATION_STATUSES: NotificationStatus[] = [\n \"sent\",\n \"delivered\",\n \"deferred\",\n \"bounced\",\n \"complained\",\n \"failed\",\n \"rejected\",\n \"skipped\",\n];\n\n/**\n * The tone each delivery status wears.\n *\n * ⚠️ `skipped` is deliberately NOT a failure. The gate refusing to mail\n * someone who unsubscribed is the system working, and tinting it like a\n * bounce sends operators hunting for a problem that is not there.\n *\n * `sent` and `delivered` are deliberately different: \"the provider accepted\n * it\" and \"the transport confirmed it\" are not the same claim, and the old\n * badge collapsed them into one neutral outline.\n */\nexport const NOTIFICATION_STATUS_TONE: Record<NotificationStatus, BadgeTone> = {\n sent: \"info\",\n delivered: \"success\",\n deferred: \"warning\",\n bounced: \"danger\",\n complained: \"danger\",\n failed: \"danger\",\n rejected: \"danger\",\n skipped: \"neutral\",\n};\n\n/**\n * The glyph each status wears.\n *\n * Not decoration: four statuses share the `danger` tone, so colour alone\n * cannot tell a bounce from a complaint. The glyph is what carries that, and\n * it is also what keeps the column readable in monochrome and for a reader\n * who cannot separate the hues.\n */\nexport const NOTIFICATION_STATUS_ICON: Record<NotificationStatus, LucideIcon> =\n {\n sent: Send,\n delivered: CheckCheck,\n deferred: Clock,\n bounced: MailX,\n complained: ShieldAlert,\n failed: CircleX,\n rejected: Ban,\n skipped: CircleMinus,\n };\n"],"mappings":";;;;;;;;;;;AAiCA,MAAa,wBAA8C;CACzD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;;;;;;;;;;;AAaA,MAAa,2BAAkE;CAC7E,MAAM;CACN,WAAW;CACX,UAAU;CACV,SAAS;CACT,YAAY;CACZ,QAAQ;CACR,UAAU;CACV,SAAS;AACX;;;;;;;;;AAUA,MAAa,2BACX;CACE,MAAM;CACN,WAAW;CACX,UAAU;CACV,SAAS;CACT,YAAY;CACZ,QAAQ;CACR,UAAU;CACV,SAAS;AACX"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A template name as a reader should see it: `questReminder` becomes "Quest
|
|
3
|
+
* reminder", `welcome-email` becomes "Welcome email".
|
|
4
|
+
*
|
|
5
|
+
* Display only. Everywhere the value is an identifier - the filter's option
|
|
6
|
+
* values, the query sent to the API - keeps the raw name, and every call site
|
|
7
|
+
* puts the raw name back within reach (a `title` on the cell, the sheet's own
|
|
8
|
+
* description).
|
|
9
|
+
*
|
|
10
|
+
* Shared rather than local to the list, for the same reason the status tone
|
|
11
|
+
* map is shared: the list and the detail sheet render the same field, and one
|
|
12
|
+
* humanizing while the other did not is how the same template ended up with
|
|
13
|
+
* two names on two adjacent surfaces.
|
|
14
|
+
*/
|
|
15
|
+
export declare const notificationTemplateLabel: (name: string) => string;
|
|
16
|
+
//# sourceMappingURL=admin-notifications-template-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-template-label.d.ts","sourceRoot":"","sources":["../../../src/components/admin/admin-notifications-template-label.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yBAAyB,SAAU,MAAM,KAAG,MAOxD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/components/admin/admin-notifications-template-label.ts
|
|
2
|
+
/**
|
|
3
|
+
* A template name as a reader should see it: `questReminder` becomes "Quest
|
|
4
|
+
* reminder", `welcome-email` becomes "Welcome email".
|
|
5
|
+
*
|
|
6
|
+
* Display only. Everywhere the value is an identifier - the filter's option
|
|
7
|
+
* values, the query sent to the API - keeps the raw name, and every call site
|
|
8
|
+
* puts the raw name back within reach (a `title` on the cell, the sheet's own
|
|
9
|
+
* description).
|
|
10
|
+
*
|
|
11
|
+
* Shared rather than local to the list, for the same reason the status tone
|
|
12
|
+
* map is shared: the list and the detail sheet render the same field, and one
|
|
13
|
+
* humanizing while the other did not is how the same template ended up with
|
|
14
|
+
* two names on two adjacent surfaces.
|
|
15
|
+
*/
|
|
16
|
+
const notificationTemplateLabel = (name) => {
|
|
17
|
+
const spaced = name.replace(/[-_.]+/g, " ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").trim();
|
|
18
|
+
if (!spaced) return name;
|
|
19
|
+
return spaced.charAt(0).toUpperCase() + spaced.slice(1).toLowerCase();
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { notificationTemplateLabel };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=admin-notifications-template-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-notifications-template-label.js","names":[],"sources":["../../../src/components/admin/admin-notifications-template-label.ts"],"sourcesContent":["/**\n * A template name as a reader should see it: `questReminder` becomes \"Quest\n * reminder\", `welcome-email` becomes \"Welcome email\".\n *\n * Display only. Everywhere the value is an identifier - the filter's option\n * values, the query sent to the API - keeps the raw name, and every call site\n * puts the raw name back within reach (a `title` on the cell, the sheet's own\n * description).\n *\n * Shared rather than local to the list, for the same reason the status tone\n * map is shared: the list and the detail sheet render the same field, and one\n * humanizing while the other did not is how the same template ended up with\n * two names on two adjacent surfaces.\n */\nexport const notificationTemplateLabel = (name: string): string => {\n const spaced = name\n .replace(/[-_.]+/g, \" \")\n .replace(/([a-z0-9])([A-Z])/g, \"$1 $2\")\n .trim();\n if (!spaced) return name;\n return spaced.charAt(0).toUpperCase() + spaced.slice(1).toLowerCase();\n};\n"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAa,6BAA6B,SAAyB;CACjE,MAAM,SAAS,KACZ,QAAQ,WAAW,GAAG,CAAC,CACvB,QAAQ,sBAAsB,OAAO,CAAC,CACtC,KAAK;CACR,IAAI,CAAC,QAAQ,OAAO;CACpB,OAAO,OAAO,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,OAAO,MAAM,CAAC,CAAC,CAAC,YAAY;AACtE"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* What the app sent, what happened to it, and who it may not send to.
|
|
3
|
+
*
|
|
4
|
+
* ⚠️ **The list is the delivery receipts, not the job outbox.** Two tables
|
|
5
|
+
* with two retention clocks cannot be paged as one. The consequence is that
|
|
6
|
+
* notifications pushed before receipts existed have none and do not appear,
|
|
7
|
+
* which the empty state says rather than hiding.
|
|
8
|
+
*
|
|
9
|
+
* No polling anywhere on this page: the table's own refresh is the way to
|
|
10
|
+
* get fresh data. A polling effect keyed on an unstable object is what
|
|
11
|
+
* burned 4k Worker invocations once already.
|
|
12
|
+
*/
|
|
13
|
+
export declare const AdminNotifications: () => import("react").JSX.Element;
|
|
3
14
|
export default AdminNotifications;
|
|
4
15
|
//# sourceMappingURL=admin-notifications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-notifications.d.ts","sourceRoot":"","sources":["../../../src/components/admin/admin-notifications.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"admin-notifications.d.ts","sourceRoot":"","sources":["../../../src/components/admin/admin-notifications.tsx"],"names":[],"mappings":"AAqCA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,mCA6b9B,CAAC;eAEa,kBAAkB"}
|