@alepha/ui 0.25.2 → 0.27.0
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/LICENSE +21 -0
- package/README.md +210 -2
- package/dist/components/account/account-connections.d.ts +16 -0
- package/dist/components/account/account-connections.d.ts.map +1 -0
- package/dist/components/account/account-connections.js +76 -0
- package/dist/components/account/account-connections.js.map +1 -0
- package/dist/components/account/account-delete-dialog.d.ts +44 -0
- package/dist/components/account/account-delete-dialog.d.ts.map +1 -0
- package/dist/components/account/account-delete-dialog.js +126 -0
- package/dist/components/account/account-delete-dialog.js.map +1 -0
- package/dist/components/account/account-header.d.ts +33 -0
- package/dist/components/account/account-header.d.ts.map +1 -0
- package/dist/components/account/account-header.js +43 -0
- package/dist/components/account/account-header.js.map +1 -0
- package/dist/components/account/account-keys.d.ts +23 -0
- package/dist/components/account/account-keys.d.ts.map +1 -0
- package/dist/components/account/account-keys.js +168 -0
- package/dist/components/account/account-keys.js.map +1 -0
- package/dist/components/account/account-layout.d.ts +32 -0
- package/dist/components/account/account-layout.d.ts.map +1 -0
- package/dist/components/account/account-layout.js +56 -0
- package/dist/components/account/account-layout.js.map +1 -0
- package/dist/components/account/account-password-dialog.d.ts +31 -0
- package/dist/components/account/account-password-dialog.d.ts.map +1 -0
- package/dist/components/account/account-password-dialog.js +120 -0
- package/dist/components/account/account-password-dialog.js.map +1 -0
- package/dist/components/account/account-profile.d.ts +27 -0
- package/dist/components/account/account-profile.d.ts.map +1 -0
- package/dist/components/account/account-profile.js +217 -0
- package/dist/components/account/account-profile.js.map +1 -0
- package/dist/components/account/account-router-options.d.ts +77 -0
- package/dist/components/account/account-router-options.d.ts.map +1 -0
- package/dist/components/account/account-router-options.js +22 -0
- package/dist/components/account/account-router-options.js.map +1 -0
- package/dist/components/account/account-router-page.d.ts +49 -0
- package/dist/components/account/account-router-page.d.ts.map +1 -0
- package/dist/components/account/account-router-page.js +61 -0
- package/dist/components/account/account-router-page.js.map +1 -0
- package/dist/components/account/account-router.d.ts +215 -0
- package/dist/components/account/account-router.d.ts.map +1 -0
- package/dist/components/account/account-router.js +217 -0
- package/dist/components/account/account-router.js.map +1 -0
- package/dist/components/account/account-security.d.ts +22 -0
- package/dist/components/account/account-security.d.ts.map +1 -0
- package/dist/components/account/account-security.js +107 -0
- package/dist/components/account/account-security.js.map +1 -0
- package/dist/components/account/account-sessions.d.ts +17 -0
- package/dist/components/account/account-sessions.d.ts.map +1 -0
- package/dist/components/account/account-sessions.js +121 -0
- package/dist/components/account/account-sessions.js.map +1 -0
- package/dist/components/action-error-toaster/action-error-toaster.d.ts +39 -0
- package/dist/components/action-error-toaster/action-error-toaster.d.ts.map +1 -0
- package/dist/components/action-error-toaster/action-error-toaster.js +40 -0
- package/dist/components/action-error-toaster/action-error-toaster.js.map +1 -0
- package/dist/components/admin/admin-analytics-query-panel.d.ts +16 -0
- package/dist/components/admin/admin-analytics-query-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics-query-panel.js +117 -0
- package/dist/components/admin/admin-analytics-query-panel.js.map +1 -0
- package/dist/components/admin/admin-analytics-results.d.ts +15 -0
- package/dist/components/admin/admin-analytics-results.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics-results.js +56 -0
- package/dist/components/admin/admin-analytics-results.js.map +1 -0
- package/dist/components/admin/admin-analytics.d.ts +9 -0
- package/dist/components/admin/admin-analytics.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics.js +66 -0
- package/dist/components/admin/admin-analytics.js.map +1 -0
- package/dist/components/admin/admin-audits.d.ts +4 -0
- package/dist/components/admin/admin-audits.d.ts.map +1 -0
- package/dist/components/admin/admin-audits.js +173 -0
- package/dist/components/admin/admin-audits.js.map +1 -0
- 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 +4 -0
- package/dist/components/admin/admin-files.d.ts.map +1 -0
- package/dist/components/admin/admin-files.js +237 -0
- package/dist/components/admin/admin-files.js.map +1 -0
- package/dist/components/admin/admin-jobs-executions-panel.d.ts +11 -0
- package/dist/components/admin/admin-jobs-executions-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-executions-panel.js +185 -0
- package/dist/components/admin/admin-jobs-executions-panel.js.map +1 -0
- package/dist/components/admin/admin-jobs-status-badge.d.ts +9 -0
- package/dist/components/admin/admin-jobs-status-badge.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-status-badge.js +26 -0
- package/dist/components/admin/admin-jobs-status-badge.js.map +1 -0
- package/dist/components/admin/admin-jobs.d.ts +4 -0
- package/dist/components/admin/admin-jobs.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs.js +248 -0
- package/dist/components/admin/admin-jobs.js.map +1 -0
- package/dist/components/admin/admin-keys-token-dialog.d.ts +15 -0
- package/dist/components/admin/admin-keys-token-dialog.d.ts.map +1 -0
- package/dist/components/admin/admin-keys-token-dialog.js +66 -0
- package/dist/components/admin/admin-keys-token-dialog.js.map +1 -0
- package/dist/components/admin/admin-keys.d.ts +4 -0
- package/dist/components/admin/admin-keys.d.ts.map +1 -0
- package/dist/components/admin/admin-keys.js +161 -0
- package/dist/components/admin/admin-keys.js.map +1 -0
- package/dist/components/admin/admin-layout.d.ts +33 -0
- package/dist/components/admin/admin-layout.d.ts.map +1 -0
- package/dist/components/admin/admin-layout.js +99 -0
- package/dist/components/admin/admin-layout.js.map +1 -0
- package/dist/components/admin/admin-notifications.d.ts +4 -0
- package/dist/components/admin/admin-notifications.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications.js +99 -0
- package/dist/components/admin/admin-notifications.js.map +1 -0
- package/dist/components/admin/admin-page.d.ts +16 -0
- package/dist/components/admin/admin-page.d.ts.map +1 -0
- package/dist/components/admin/admin-page.js +15 -0
- package/dist/components/admin/admin-page.js.map +1 -0
- package/dist/components/admin/admin-parameters.d.ts +26 -0
- package/dist/components/admin/admin-parameters.d.ts.map +1 -0
- package/dist/components/admin/admin-parameters.js +560 -0
- package/dist/components/admin/admin-parameters.js.map +1 -0
- package/dist/components/admin/admin-payments.d.ts +4 -0
- package/dist/components/admin/admin-payments.d.ts.map +1 -0
- package/dist/components/admin/admin-payments.js +72 -0
- package/dist/components/admin/admin-payments.js.map +1 -0
- package/dist/components/admin/admin-router-options.d.ts +138 -0
- package/dist/components/admin/admin-router-options.d.ts.map +1 -0
- package/dist/components/admin/admin-router-options.js +29 -0
- package/dist/components/admin/admin-router-options.js.map +1 -0
- package/dist/components/admin/admin-router-page.d.ts +56 -0
- package/dist/components/admin/admin-router-page.d.ts.map +1 -0
- package/dist/components/admin/admin-router-page.js +68 -0
- package/dist/components/admin/admin-router-page.js.map +1 -0
- package/dist/components/admin/admin-router.d.ts +214 -0
- package/dist/components/admin/admin-router.d.ts.map +1 -0
- package/dist/components/admin/admin-router.js +409 -0
- package/dist/components/admin/admin-router.js.map +1 -0
- package/dist/components/admin/admin-sessions.d.ts +4 -0
- package/dist/components/admin/admin-sessions.d.ts.map +1 -0
- package/dist/components/admin/admin-sessions.js +132 -0
- package/dist/components/admin/admin-sessions.js.map +1 -0
- package/dist/components/admin/admin-user-cell.d.ts +37 -0
- package/dist/components/admin/admin-user-cell.d.ts.map +1 -0
- package/dist/components/admin/admin-user-cell.js +35 -0
- package/dist/components/admin/admin-user-cell.js.map +1 -0
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts +15 -0
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-audits-tab.js +55 -0
- package/dist/components/admin/admin-user-detail-audits-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts +15 -0
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-identity-aside.js +106 -0
- package/dist/components/admin/admin-user-detail-identity-aside.js.map +1 -0
- package/dist/components/admin/admin-user-detail-overview-tab.d.ts +26 -0
- package/dist/components/admin/admin-user-detail-overview-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-overview-tab.js +60 -0
- package/dist/components/admin/admin-user-detail-overview-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-password-dialog.d.ts +15 -0
- package/dist/components/admin/admin-user-detail-password-dialog.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-password-dialog.js +47 -0
- package/dist/components/admin/admin-user-detail-password-dialog.js.map +1 -0
- package/dist/components/admin/admin-user-detail-password-schema.d.ts +10 -0
- package/dist/components/admin/admin-user-detail-password-schema.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-password-schema.js +13 -0
- package/dist/components/admin/admin-user-detail-password-schema.js.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-policy.d.ts +56 -0
- package/dist/components/admin/admin-user-detail-profile-policy.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-policy.js +73 -0
- package/dist/components/admin/admin-user-detail-profile-policy.js.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-schema.d.ts +18 -0
- package/dist/components/admin/admin-user-detail-profile-schema.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-schema.js +21 -0
- package/dist/components/admin/admin-user-detail-profile-schema.js.map +1 -0
- package/dist/components/admin/admin-user-detail-security-tab.d.ts +20 -0
- package/dist/components/admin/admin-user-detail-security-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-security-tab.js +70 -0
- package/dist/components/admin/admin-user-detail-security-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts +25 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.js +64 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail.d.ts +39 -0
- package/dist/components/admin/admin-user-detail.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail.js +343 -0
- package/dist/components/admin/admin-user-detail.js.map +1 -0
- package/dist/components/admin/admin-users-roles-picker.d.ts +28 -0
- package/dist/components/admin/admin-users-roles-picker.d.ts.map +1 -0
- package/dist/components/admin/admin-users-roles-picker.js +80 -0
- package/dist/components/admin/admin-users-roles-picker.js.map +1 -0
- package/dist/components/admin/admin-users-status-filter.d.ts +13 -0
- package/dist/components/admin/admin-users-status-filter.d.ts.map +1 -0
- package/dist/components/admin/admin-users-status-filter.js +41 -0
- package/dist/components/admin/admin-users-status-filter.js.map +1 -0
- package/dist/components/admin/admin-users.d.ts +16 -0
- package/dist/components/admin/admin-users.d.ts.map +1 -0
- package/dist/components/admin/admin-users.js +322 -0
- package/dist/components/admin/admin-users.js.map +1 -0
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts +11 -0
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-execution-sheet.js +190 -0
- package/dist/components/admin/admin-workflows-execution-sheet.js.map +1 -0
- package/dist/components/admin/admin-workflows-executions-panel.d.ts +9 -0
- package/dist/components/admin/admin-workflows-executions-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-executions-panel.js +129 -0
- package/dist/components/admin/admin-workflows-executions-panel.js.map +1 -0
- package/dist/components/admin/admin-workflows-status-badge.d.ts +12 -0
- package/dist/components/admin/admin-workflows-status-badge.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-status-badge.js +30 -0
- package/dist/components/admin/admin-workflows-status-badge.js.map +1 -0
- package/dist/components/admin/admin-workflows.d.ts +4 -0
- package/dist/components/admin/admin-workflows.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows.js +145 -0
- package/dist/components/admin/admin-workflows.js.map +1 -0
- package/dist/components/admin/diff-lines.d.ts +13 -0
- package/dist/components/admin/diff-lines.d.ts.map +1 -0
- package/dist/components/admin/diff-lines.js +57 -0
- package/dist/components/admin/diff-lines.js.map +1 -0
- package/dist/components/admin/parameter-diff-dialog.d.ts +36 -0
- package/dist/components/admin/parameter-diff-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-diff-dialog.js +58 -0
- package/dist/components/admin/parameter-diff-dialog.js.map +1 -0
- package/dist/components/admin/parameter-history-item.d.ts +17 -0
- package/dist/components/admin/parameter-history-item.d.ts.map +1 -0
- package/dist/components/admin/parameter-history-item.js +177 -0
- package/dist/components/admin/parameter-history-item.js.map +1 -0
- package/dist/components/admin/parameter-json-dialog.d.ts +13 -0
- package/dist/components/admin/parameter-json-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-json-dialog.js +63 -0
- package/dist/components/admin/parameter-json-dialog.js.map +1 -0
- package/dist/components/admin/parameter-save-dialog.d.ts +26 -0
- package/dist/components/admin/parameter-save-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-save-dialog.js +74 -0
- package/dist/components/admin/parameter-save-dialog.js.map +1 -0
- package/dist/components/admin/use-confirmed-action.d.ts +53 -0
- package/dist/components/admin/use-confirmed-action.d.ts.map +1 -0
- package/dist/components/admin/use-confirmed-action.js +50 -0
- package/dist/components/admin/use-confirmed-action.js.map +1 -0
- package/dist/components/alepha-table/alepha-table.d.ts +313 -0
- package/dist/components/alepha-table/alepha-table.d.ts.map +1 -0
- package/dist/components/alepha-table/alepha-table.js +667 -0
- package/dist/components/alepha-table/alepha-table.js.map +1 -0
- 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/alepha-table/use-table-selection.d.ts +34 -0
- package/dist/components/alepha-table/use-table-selection.d.ts.map +1 -0
- package/dist/components/alepha-table/use-table-selection.js +45 -0
- package/dist/components/alepha-table/use-table-selection.js.map +1 -0
- package/dist/components/app-actions/app-actions.d.ts +74 -0
- package/dist/components/app-actions/app-actions.d.ts.map +1 -0
- package/dist/components/app-actions/app-actions.js +77 -0
- package/dist/components/app-actions/app-actions.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +144 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/app-shell.js +283 -0
- package/dist/components/app-shell/app-shell.js.map +1 -0
- package/dist/components/auth/auth-login.d.ts +40 -0
- package/dist/components/auth/auth-login.d.ts.map +1 -0
- package/dist/components/auth/auth-login.js +226 -0
- package/dist/components/auth/auth-login.js.map +1 -0
- package/dist/components/auth/auth-register.d.ts +35 -0
- package/dist/components/auth/auth-register.d.ts.map +1 -0
- package/dist/components/auth/auth-register.js +477 -0
- package/dist/components/auth/auth-register.js.map +1 -0
- package/dist/components/auth/auth-reset-password.d.ts +21 -0
- package/dist/components/auth/auth-reset-password.d.ts.map +1 -0
- package/dist/components/auth/auth-reset-password.js +286 -0
- package/dist/components/auth/auth-reset-password.js.map +1 -0
- package/dist/components/auth/auth-router.d.ts +245 -0
- package/dist/components/auth/auth-router.d.ts.map +1 -0
- package/dist/components/auth/auth-router.js +117 -0
- package/dist/components/auth/auth-router.js.map +1 -0
- package/dist/components/auth/auth-verify-email.d.ts +19 -0
- package/dist/components/auth/auth-verify-email.d.ts.map +1 -0
- package/dist/components/auth/auth-verify-email.js +124 -0
- package/dist/components/auth/auth-verify-email.js.map +1 -0
- package/dist/components/auth/provider-labels.d.ts +9 -0
- package/dist/components/auth/provider-labels.d.ts.map +1 -0
- package/dist/components/auth/provider-labels.js +20 -0
- package/dist/components/auth/provider-labels.js.map +1 -0
- 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 +219 -0
- package/dist/components/auto-form/auto-form.d.ts.map +1 -0
- package/dist/components/auto-form/auto-form.js +412 -0
- package/dist/components/auto-form/auto-form.js.map +1 -0
- package/dist/components/brand-icon/brand-icon.d.ts +18 -0
- package/dist/components/brand-icon/brand-icon.d.ts.map +1 -0
- package/dist/components/brand-icon/brand-icon.js +84 -0
- package/dist/components/brand-icon/brand-icon.js.map +1 -0
- package/dist/components/button-dark/button-dark.d.ts +25 -0
- package/dist/components/button-dark/button-dark.d.ts.map +1 -0
- package/dist/components/button-dark/button-dark.js +44 -0
- package/dist/components/button-dark/button-dark.js.map +1 -0
- package/dist/components/button-language/button-language.d.ts +24 -0
- package/dist/components/button-language/button-language.d.ts.map +1 -0
- package/dist/components/button-language/button-language.js +50 -0
- package/dist/components/button-language/button-language.js.map +1 -0
- package/dist/components/button-theme/button-theme.d.ts +33 -0
- package/dist/components/button-theme/button-theme.d.ts.map +1 -0
- package/dist/components/button-theme/button-theme.js +90 -0
- package/dist/components/button-theme/button-theme.js.map +1 -0
- package/dist/components/button-user/button-user.d.ts +129 -0
- package/dist/components/button-user/button-user.d.ts.map +1 -0
- package/dist/components/button-user/button-user.js +147 -0
- package/dist/components/button-user/button-user.js.map +1 -0
- package/dist/components/captcha/turnstile-widget.d.ts +59 -0
- package/dist/components/captcha/turnstile-widget.d.ts.map +1 -0
- package/dist/components/captcha/turnstile-widget.js +98 -0
- package/dist/components/captcha/turnstile-widget.js.map +1 -0
- package/dist/components/control/control.d.ts +200 -0
- package/dist/components/control/control.d.ts.map +1 -0
- package/dist/components/control/control.js +297 -0
- package/dist/components/control/control.js.map +1 -0
- package/dist/components/control-array/control-array.d.ts +77 -0
- package/dist/components/control-array/control-array.d.ts.map +1 -0
- package/dist/components/control-array/control-array.js +451 -0
- package/dist/components/control-array/control-array.js.map +1 -0
- package/dist/components/control-base/field-i18n.d.ts +32 -0
- package/dist/components/control-base/field-i18n.d.ts.map +1 -0
- package/dist/components/control-base/field-i18n.js +29 -0
- package/dist/components/control-base/field-i18n.js.map +1 -0
- package/dist/components/control-base/form-field.d.ts +128 -0
- package/dist/components/control-base/form-field.d.ts.map +1 -0
- package/dist/components/control-base/form-field.js +208 -0
- package/dist/components/control-base/form-field.js.map +1 -0
- package/dist/components/control-base/grid.d.ts +18 -0
- package/dist/components/control-base/grid.d.ts.map +1 -0
- package/dist/components/control-base/grid.js +46 -0
- package/dist/components/control-base/grid.js.map +1 -0
- package/dist/components/control-base/icon-hint.d.ts +9 -0
- package/dist/components/control-base/icon-hint.d.ts.map +1 -0
- package/dist/components/control-base/icon-hint.js +35 -0
- package/dist/components/control-base/icon-hint.js.map +1 -0
- package/dist/components/control-date/control-date.d.ts +34 -0
- package/dist/components/control-date/control-date.d.ts.map +1 -0
- package/dist/components/control-date/control-date.js +127 -0
- package/dist/components/control-date/control-date.js.map +1 -0
- package/dist/components/control-number/control-number.d.ts +38 -0
- package/dist/components/control-number/control-number.d.ts.map +1 -0
- package/dist/components/control-number/control-number.js +77 -0
- package/dist/components/control-number/control-number.js.map +1 -0
- package/dist/components/control-object/control-object.d.ts +47 -0
- package/dist/components/control-object/control-object.d.ts.map +1 -0
- package/dist/components/control-object/control-object.js +110 -0
- package/dist/components/control-object/control-object.js.map +1 -0
- package/dist/components/control-password/control-password.d.ts +28 -0
- package/dist/components/control-password/control-password.d.ts.map +1 -0
- package/dist/components/control-password/control-password.js +64 -0
- package/dist/components/control-password/control-password.js.map +1 -0
- package/dist/components/control-select/control-select.d.ts +128 -0
- package/dist/components/control-select/control-select.d.ts.map +1 -0
- package/dist/components/control-select/control-select.js +363 -0
- package/dist/components/control-select/control-select.js.map +1 -0
- package/dist/components/control-upload/control-upload.d.ts +67 -0
- package/dist/components/control-upload/control-upload.d.ts.map +1 -0
- package/dist/components/control-upload/control-upload.js +294 -0
- package/dist/components/control-upload/control-upload.js.map +1 -0
- 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 +90 -0
- package/dist/components/detail/detail-layout.d.ts.map +1 -0
- package/dist/components/detail/detail-layout.js +102 -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/file-image/file-image.d.ts +31 -0
- package/dist/components/file-image/file-image.d.ts.map +1 -0
- package/dist/components/file-image/file-image.js +27 -0
- package/dist/components/file-image/file-image.js.map +1 -0
- package/dist/components/language-toggle/language-toggle.d.ts +8 -0
- package/dist/components/language-toggle/language-toggle.d.ts.map +1 -0
- package/dist/components/language-toggle/language-toggle.js +49 -0
- package/dist/components/language-toggle/language-toggle.js.map +1 -0
- 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/FlowchartDiagram.d.ts +44 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.js +98 -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 +69 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts +23 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.js +34 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.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 +63 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js.map +1 -0
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts +30 -0
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/MermaidFence.js +30 -0
- package/dist/components/markdown-view/diagram/MermaidFence.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/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 +114 -0
- package/dist/components/markdown-view/markdown-view.d.ts +53 -0
- package/dist/components/markdown-view/markdown-view.d.ts.map +1 -0
- package/dist/components/markdown-view/markdown-view.js +180 -0
- package/dist/components/markdown-view/markdown-view.js.map +1 -0
- package/dist/components/nav-shell/nav-page.d.ts +24 -0
- package/dist/components/nav-shell/nav-page.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-page.js +28 -0
- package/dist/components/nav-shell/nav-page.js.map +1 -0
- package/dist/components/nav-shell/nav-shell.d.ts +26 -0
- package/dist/components/nav-shell/nav-shell.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-shell.js +53 -0
- package/dist/components/nav-shell/nav-shell.js.map +1 -0
- package/dist/components/nav-shell/nav-tree-util.d.ts +65 -0
- package/dist/components/nav-shell/nav-tree-util.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-tree-util.js +87 -0
- package/dist/components/nav-shell/nav-tree-util.js.map +1 -0
- package/dist/components/nav-shell/spotlight.d.ts +37 -0
- package/dist/components/nav-shell/spotlight.d.ts.map +1 -0
- package/dist/components/nav-shell/spotlight.js +102 -0
- package/dist/components/nav-shell/spotlight.js.map +1 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts +24 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.js +36 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.js.map +1 -0
- package/dist/components/nav-shell/use-nav-entries.d.ts +55 -0
- package/dist/components/nav-shell/use-nav-entries.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-entries.js +60 -0
- package/dist/components/nav-shell/use-nav-entries.js.map +1 -0
- package/dist/components/nav-shell/use-nav-tree.d.ts +21 -0
- package/dist/components/nav-shell/use-nav-tree.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-tree.js +48 -0
- package/dist/components/nav-shell/use-nav-tree.js.map +1 -0
- 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 +35 -0
- package/dist/components/settings/settings-danger-section.d.ts.map +1 -0
- package/dist/components/settings/settings-danger-section.js +43 -0
- package/dist/components/settings/settings-danger-section.js.map +1 -0
- package/dist/components/settings/settings-heading.d.ts +36 -0
- package/dist/components/settings/settings-heading.d.ts.map +1 -0
- package/dist/components/settings/settings-heading.js +39 -0
- package/dist/components/settings/settings-heading.js.map +1 -0
- package/dist/components/settings/settings-layout.d.ts +81 -0
- package/dist/components/settings/settings-layout.d.ts.map +1 -0
- package/dist/components/settings/settings-layout.js +56 -0
- package/dist/components/settings/settings-layout.js.map +1 -0
- package/dist/components/settings/settings-nav.d.ts +85 -0
- package/dist/components/settings/settings-nav.d.ts.map +1 -0
- package/dist/components/settings/settings-nav.js +91 -0
- package/dist/components/settings/settings-nav.js.map +1 -0
- package/dist/components/settings/settings-row.d.ts +45 -0
- package/dist/components/settings/settings-row.d.ts.map +1 -0
- package/dist/components/settings/settings-row.js +44 -0
- package/dist/components/settings/settings-row.js.map +1 -0
- package/dist/components/settings/settings-section.d.ts +36 -0
- package/dist/components/settings/settings-section.d.ts.map +1 -0
- package/dist/components/settings/settings-section.js +37 -0
- package/dist/components/settings/settings-section.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +55 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +19 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +96 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +11 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +44 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +5 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +15 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +12 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +52 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +19 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +70 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +73 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button-group.js +43 -0
- package/dist/components/ui/button-group.js.map +1 -0
- package/dist/components/ui/button.d.ts +18 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +60 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +11 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +119 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +12 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +57 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/carousel.d.ts +29 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +144 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/chart.d.ts +45 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +152 -0
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +22 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +26 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +25 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +164 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command.d.ts +20 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +89 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +30 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +134 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +93 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/direction.d.ts +2 -0
- package/dist/components/ui/direction.d.ts.map +1 -0
- package/dist/components/ui/direction.js +3 -0
- package/dist/components/ui/drawer.d.ts +17 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +125 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +30 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +138 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty.d.ts +12 -0
- package/dist/components/ui/empty.d.ts.map +1 -0
- package/dist/components/ui/empty.js +61 -0
- package/dist/components/ui/empty.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +38 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/input-group.d.ts +19 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-group.js +80 -0
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +12 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp.js +49 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +16 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/item.d.ts +23 -0
- package/dist/components/ui/item.d.ts.map +1 -0
- package/dist/components/ui/item.js +122 -0
- package/dist/components/ui/item.js.map +1 -0
- package/dist/components/ui/kbd.d.ts +4 -0
- package/dist/components/ui/kbd.d.ts.map +1 -0
- package/dist/components/ui/kbd.js +21 -0
- package/dist/components/ui/kbd.js.map +1 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +15 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/menubar.d.ts +30 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +137 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +84 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +18 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +87 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +56 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +8 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +46 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +29 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +30 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +38 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/segmented.d.ts +46 -0
- package/dist/components/ui/segmented.d.ts.map +1 -0
- package/dist/components/ui/segmented.js +119 -0
- package/dist/components/ui/segmented.js.map +1 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +99 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +17 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +15 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +90 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +64 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +388 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +14 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +35 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/sonner.js +33 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +17 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +21 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +68 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +47 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +14 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +60 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +38 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +17 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +53 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/use-dialog/use-dialog.d.ts +61 -0
- package/dist/components/use-dialog/use-dialog.d.ts.map +1 -0
- package/dist/components/use-dialog/use-dialog.js +143 -0
- package/dist/components/use-dialog/use-dialog.js.map +1 -0
- package/dist/components/use-toast/use-toast.d.ts +43 -0
- package/dist/components/use-toast/use-toast.d.ts.map +1 -0
- package/dist/components/use-toast/use-toast.js +33 -0
- package/dist/components/use-toast/use-toast.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +12 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +27 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/lib/i18n-fr.d.ts +46 -0
- package/dist/lib/i18n-fr.d.ts.map +1 -0
- package/dist/lib/i18n-fr.js +510 -0
- package/dist/lib/i18n-fr.js.map +1 -0
- package/dist/lib/resize-image.d.ts +50 -0
- package/dist/lib/resize-image.d.ts.map +1 -0
- package/dist/lib/resize-image.js +68 -0
- package/dist/lib/resize-image.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +10 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles.css +254 -0
- package/package.json +65 -33
- package/src/components/account/__tests__/account-router.spec.ts +4 -2
- package/src/components/account/account-connections.tsx +10 -2
- package/src/components/account/account-header.tsx +6 -1
- package/src/components/account/account-keys.tsx +2 -2
- package/src/components/account/account-layout.tsx +14 -4
- package/src/components/account/account-profile.tsx +238 -125
- package/src/components/account/account-router-options.tsx +15 -0
- package/src/components/account/account-router-page.tsx +1 -0
- package/src/components/account/account-router.tsx +24 -3
- package/src/components/account/account-security.tsx +2 -1
- package/src/components/account/account-sessions.tsx +21 -4
- 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-router-page.spec.ts +2 -1
- package/src/components/admin/__tests__/admin-router.spec.ts +57 -1
- package/src/components/admin/__tests__/admin-user-cell.browser.spec.tsx +1 -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 +19 -12
- package/src/components/admin/admin-jobs-status-badge.tsx +2 -2
- 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 +1 -2
- package/src/components/admin/admin-notifications.tsx +2 -2
- 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 +34 -10
- package/src/components/admin/admin-router-page.tsx +8 -5
- package/src/components/admin/admin-router.tsx +112 -40
- package/src/components/admin/admin-sessions.tsx +13 -2
- 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 +1 -0
- package/src/components/admin/admin-user-detail-sessions-tab.tsx +5 -2
- package/src/components/admin/admin-user-detail.tsx +49 -87
- package/src/components/admin/admin-users-roles-picker.tsx +22 -15
- package/src/components/admin/admin-users.tsx +8 -14
- package/src/components/admin/admin-workflows-execution-sheet.tsx +18 -10
- package/src/components/admin/admin-workflows-executions-panel.tsx +24 -17
- package/src/components/admin/admin-workflows-status-badge.tsx +4 -2
- 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-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 +385 -86
- 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-actions/app-actions.tsx +7 -2
- 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 +5 -16
- package/src/components/auth/auth-register.tsx +81 -42
- 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/safe-redirect.ts +14 -0
- package/src/components/auto-form/__tests__/auto-form-settings-card.browser.spec.tsx +238 -0
- package/src/components/auto-form/auto-form.tsx +173 -66
- 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 +80 -21
- package/src/components/captcha/turnstile-widget.tsx +6 -5
- package/src/components/control/control.tsx +39 -14
- package/src/components/control-array/control-array.tsx +28 -15
- 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 +69 -12
- 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 +3 -3
- package/src/components/control-object/control-object.tsx +11 -8
- package/src/components/control-password/control-password.tsx +2 -2
- 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 +151 -0
- package/src/components/detail/detail-aside.tsx +198 -0
- package/src/components/detail/detail-layout.tsx +181 -0
- package/src/components/detail/use-detail-tab.tsx +41 -0
- package/src/components/file-image/file-image.tsx +4 -2
- package/src/components/language-toggle/language-toggle.tsx +2 -2
- package/src/components/markdown-view/__tests__/markdown-view-mermaid.browser.spec.tsx +148 -0
- package/src/components/markdown-view/__tests__/markdown-view-raw-html.browser.spec.tsx +49 -0
- package/src/components/markdown-view/diagram/DiagramErrorBoundary.tsx +42 -0
- package/src/components/markdown-view/diagram/FlowchartDiagram.tsx +136 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramCluster.tsx +59 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramEdge.tsx +95 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramLabel.tsx +58 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramNode.tsx +78 -0
- package/src/components/markdown-view/diagram/MermaidFence.tsx +46 -0
- package/src/components/markdown-view/diagram/__tests__/flowchart-diagram.browser.spec.tsx +210 -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/textMetrics.spec.ts +128 -0
- package/src/components/markdown-view/diagram/textMetrics.ts +296 -0
- package/src/components/markdown-view/markdown-view.tsx +142 -15
- package/src/components/nav-shell/__tests__/nav-tree-util.spec.ts +89 -0
- package/src/components/nav-shell/nav-shell.tsx +6 -3
- package/src/components/nav-shell/nav-tree-util.ts +48 -0
- package/src/components/nav-shell/spotlight.tsx +2 -1
- package/src/components/nav-shell/use-nav-breadcrumbs.ts +1 -0
- package/src/components/nav-shell/use-nav-entries.ts +27 -7
- package/src/components/nav-shell/use-nav-tree.ts +1 -0
- 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-heading.tsx +55 -0
- package/src/components/settings/settings-layout.tsx +81 -7
- package/src/components/settings/settings-nav.tsx +58 -5
- package/src/components/settings/settings-row.tsx +2 -2
- package/src/components/settings/settings-section.tsx +4 -15
- package/src/components/ui/accordion.tsx +3 -3
- package/src/components/ui/alert-dialog.tsx +5 -5
- package/src/components/ui/alert.tsx +2 -2
- package/src/components/ui/avatar.tsx +5 -5
- package/src/components/ui/badge.tsx +48 -2
- package/src/components/ui/breadcrumb.tsx +3 -3
- 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 +3 -3
- package/src/components/ui/carousel.tsx +30 -13
- package/src/components/ui/chart.tsx +18 -6
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +8 -9
- package/src/components/ui/command.tsx +6 -7
- package/src/components/ui/context-menu.tsx +8 -8
- package/src/components/ui/dialog.tsx +4 -4
- package/src/components/ui/drawer.tsx +4 -4
- package/src/components/ui/dropdown-menu.tsx +9 -9
- package/src/components/ui/empty.tsx +2 -2
- package/src/components/ui/hover-card.tsx +1 -1
- package/src/components/ui/input-group.tsx +6 -3
- package/src/components/ui/input-otp.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/item.tsx +3 -3
- package/src/components/ui/kbd.tsx +1 -1
- package/src/components/ui/label.tsx +3 -0
- package/src/components/ui/menubar.tsx +9 -9
- package/src/components/ui/navigation-menu.tsx +7 -7
- package/src/components/ui/pagination.tsx +0 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +3 -3
- package/src/components/ui/radio-group.tsx +2 -2
- package/src/components/ui/resizable.tsx +2 -2
- package/src/components/ui/scroll-area.tsx +2 -2
- package/src/components/ui/segmented.tsx +27 -5
- package/src/components/ui/select.tsx +8 -8
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.tsx +3 -3
- 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 +10 -5
- package/src/components/ui/tabs.tsx +3 -3
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toggle-group.tsx +9 -4
- package/src/components/ui/toggle.tsx +2 -2
- package/src/components/ui/tooltip.tsx +13 -3
- 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 +5 -1
- package/src/lib/i18n-fr.ts +18 -10
- package/src/styles.css +5 -5
- package/src/lib/__tests__/rehype-safe-img.spec.ts +0 -121
- package/src/lib/rehype-safe-img.ts +0 -150
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
TurnstileWidget,
|
|
8
8
|
type TurnstileWidgetHandle,
|
|
9
9
|
} from "@alepha/ui/components/captcha/turnstile-widget";
|
|
10
|
-
import { Control } from "@alepha/ui/components/control/control";
|
|
11
10
|
import { iconFor } from "@alepha/ui/components/control-base/icon-hint";
|
|
11
|
+
import { Control } from "@alepha/ui/components/control/control";
|
|
12
12
|
import { Alert, AlertDescription } from "@alepha/ui/components/ui/alert";
|
|
13
13
|
import { Button } from "@alepha/ui/components/ui/button";
|
|
14
14
|
import { Card, CardContent } from "@alepha/ui/components/ui/card";
|
|
@@ -41,6 +41,8 @@ import {
|
|
|
41
41
|
useState,
|
|
42
42
|
} from "react";
|
|
43
43
|
|
|
44
|
+
import { safeRedirect } from "./safe-redirect.ts";
|
|
45
|
+
|
|
44
46
|
export interface AuthRegisterProps {
|
|
45
47
|
/**
|
|
46
48
|
* Realm configuration (drives required fields, verification step, OAuth buttons).
|
|
@@ -80,12 +82,12 @@ interface State {
|
|
|
80
82
|
credentials?: { identifier: string; password: string };
|
|
81
83
|
}
|
|
82
84
|
|
|
83
|
-
export
|
|
85
|
+
export const AuthRegister = (props: AuthRegisterProps) => {
|
|
84
86
|
const auth = useAuth();
|
|
85
87
|
const userCtrl = useClient<UserController>();
|
|
86
88
|
const router = useRouter();
|
|
87
89
|
const { tr } = useI18n();
|
|
88
|
-
const redirect = router.query.redirect
|
|
90
|
+
const redirect = safeRedirect(router.query.redirect);
|
|
89
91
|
// Surface upstream auth errors (e.g. failed OAuth callback redirects with
|
|
90
92
|
// `?error=...`) — same pattern as AuthLogin. Without this the user lands on
|
|
91
93
|
// a fresh-looking registration page with no clue why.
|
|
@@ -101,9 +103,8 @@ export function AuthRegister(props: AuthRegisterProps) {
|
|
|
101
103
|
const captchaSiteKey = props.realmConfig.captchaSiteKey;
|
|
102
104
|
const [captchaToken, setCaptchaToken] = useState<string | undefined>();
|
|
103
105
|
const captchaRef = useRef<TurnstileWidgetHandle | null>(null);
|
|
104
|
-
// The
|
|
105
|
-
//
|
|
106
|
-
// ref the handler can read at submission time.
|
|
106
|
+
// The handler reads the token the widget issued last through a ref, so a
|
|
107
|
+
// submit never posts a token captured by an earlier render.
|
|
107
108
|
const captchaTokenRef = useRef<string | undefined>(undefined);
|
|
108
109
|
useEffect(() => {
|
|
109
110
|
captchaTokenRef.current = captchaToken;
|
|
@@ -116,24 +117,41 @@ export function AuthRegister(props: AuthRegisterProps) {
|
|
|
116
117
|
const allowed = settings.registrationAllowed !== false;
|
|
117
118
|
|
|
118
119
|
const schema = useMemo(() => {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
// Optionality is decided as each field is built, because that is the only
|
|
121
|
+
// thing the form reads: `FormModel` derives both the required marker and
|
|
122
|
+
// the pre-submit check from `z.schema.requiredKeys(schema)`, which asks
|
|
123
|
+
// whether the field is a `ZodOptional`.
|
|
124
|
+
//
|
|
125
|
+
// This used to declare every field optional and then push the configured
|
|
126
|
+
// names onto the array returned by `z.schema.requiredKeys(s)` — a TypeBox
|
|
127
|
+
// habit, where a JSON Schema's `required` was a live array hanging off the
|
|
128
|
+
// schema. The zod implementation computes a fresh array from the shape, so
|
|
129
|
+
// the pushes mutated a detached value and vanished: a realm with
|
|
130
|
+
// `email: "required"` still rendered Email with no asterisk and let an
|
|
131
|
+
// empty one through to the server.
|
|
132
|
+
const names = settings.firstNameLastName === "required";
|
|
133
|
+
const shape = {
|
|
134
|
+
firstName: names
|
|
135
|
+
? z.text({ trim: true, maxLength: 100 })
|
|
136
|
+
: z.text({ trim: true, maxLength: 100 }).optional(),
|
|
137
|
+
lastName: names
|
|
138
|
+
? z.text({ trim: true, maxLength: 100 })
|
|
139
|
+
: z.text({ trim: true, maxLength: 100 }).optional(),
|
|
140
|
+
username:
|
|
141
|
+
settings.username === "required"
|
|
142
|
+
? z.text({ trim: true, pattern: settings.usernameRegExp })
|
|
143
|
+
: z.text({ trim: true, pattern: settings.usernameRegExp }).optional(),
|
|
144
|
+
email: settings.email === "required" ? z.email() : z.email().optional(),
|
|
145
|
+
phoneNumber:
|
|
146
|
+
settings.phoneNumber === "required" ? z.e164() : z.e164().optional(),
|
|
127
147
|
password: z.string().min(settings.passwordPolicy?.minLength ?? 8),
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (settings.phoneNumber === "required") required.push("phoneNumber");
|
|
136
|
-
return s;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// The runtime shape varies with the realm, but the *type* must not: every
|
|
151
|
+
// consumer below reads `data.email`, `data.username` and the rest as
|
|
152
|
+
// possibly-absent. Widening to the all-optional shape keeps one stable
|
|
153
|
+
// type instead of a union of eight.
|
|
154
|
+
return z.object(shape) as unknown as ReturnType<typeof registerFormSchema>;
|
|
137
155
|
}, [settings]);
|
|
138
156
|
|
|
139
157
|
const form = useForm({
|
|
@@ -308,7 +326,7 @@ export function AuthRegister(props: AuthRegisterProps) {
|
|
|
308
326
|
<div ref={contentRef}>
|
|
309
327
|
<div
|
|
310
328
|
key={state.phase}
|
|
311
|
-
className="animate-in fade-in
|
|
329
|
+
className="animate-in fade-in flex flex-col gap-4 px-6 duration-300"
|
|
312
330
|
>
|
|
313
331
|
{isVerifying ? (
|
|
314
332
|
<>
|
|
@@ -340,7 +358,7 @@ export function AuthRegister(props: AuthRegisterProps) {
|
|
|
340
358
|
id="emailCode"
|
|
341
359
|
maxLength={6}
|
|
342
360
|
autoComplete="one-time-code"
|
|
343
|
-
|
|
361
|
+
|
|
344
362
|
value={emailCode}
|
|
345
363
|
onChange={setEmailCode}
|
|
346
364
|
>
|
|
@@ -369,7 +387,7 @@ export function AuthRegister(props: AuthRegisterProps) {
|
|
|
369
387
|
id="phoneCode"
|
|
370
388
|
maxLength={6}
|
|
371
389
|
autoComplete="one-time-code"
|
|
372
|
-
|
|
390
|
+
|
|
373
391
|
value={phoneCode}
|
|
374
392
|
onChange={setPhoneCode}
|
|
375
393
|
>
|
|
@@ -443,9 +461,9 @@ export function AuthRegister(props: AuthRegisterProps) {
|
|
|
443
461
|
)}
|
|
444
462
|
</Centered>
|
|
445
463
|
);
|
|
446
|
-
}
|
|
464
|
+
};
|
|
447
465
|
|
|
448
|
-
|
|
466
|
+
const FormPhase = (props: {
|
|
449
467
|
allowed: boolean;
|
|
450
468
|
form: ReturnType<typeof useForm>;
|
|
451
469
|
formError: string | undefined;
|
|
@@ -465,7 +483,7 @@ function FormPhase(props: {
|
|
|
465
483
|
captchaRef: React.RefObject<TurnstileWidgetHandle | null>;
|
|
466
484
|
onCaptchaToken: (token: string | undefined) => void;
|
|
467
485
|
message?: ReactNode;
|
|
468
|
-
}) {
|
|
486
|
+
}) => {
|
|
469
487
|
const { tr } = useI18n();
|
|
470
488
|
const [passwordFieldFocused, setPasswordFieldFocused] = useState(false);
|
|
471
489
|
const {
|
|
@@ -666,9 +684,9 @@ function FormPhase(props: {
|
|
|
666
684
|
)}
|
|
667
685
|
</>
|
|
668
686
|
);
|
|
669
|
-
}
|
|
687
|
+
};
|
|
670
688
|
|
|
671
|
-
|
|
689
|
+
const Centered = (props: { children: React.ReactNode }) => {
|
|
672
690
|
return (
|
|
673
691
|
<div className="flex min-h-svh flex-1 items-center justify-center p-6">
|
|
674
692
|
<div className="flex w-full max-w-sm flex-col items-center gap-4">
|
|
@@ -676,12 +694,12 @@ function Centered(props: { children: React.ReactNode }) {
|
|
|
676
694
|
</div>
|
|
677
695
|
</div>
|
|
678
696
|
);
|
|
679
|
-
}
|
|
697
|
+
};
|
|
680
698
|
|
|
681
|
-
|
|
699
|
+
const RealmHeader = (props: {
|
|
682
700
|
settings: RealmConfig["settings"];
|
|
683
701
|
realmName: string;
|
|
684
|
-
}) {
|
|
702
|
+
}) => {
|
|
685
703
|
const s = props.settings;
|
|
686
704
|
if (!s.displayName && !s.description) return null;
|
|
687
705
|
return (
|
|
@@ -696,12 +714,12 @@ function RealmHeader(props: {
|
|
|
696
714
|
)}
|
|
697
715
|
</div>
|
|
698
716
|
);
|
|
699
|
-
}
|
|
717
|
+
};
|
|
700
718
|
|
|
701
|
-
|
|
719
|
+
const PasswordRules = (props: {
|
|
702
720
|
policy: RealmConfig["settings"]["passwordPolicy"];
|
|
703
721
|
value: string;
|
|
704
|
-
}) {
|
|
722
|
+
}) => {
|
|
705
723
|
const { tr } = useI18n();
|
|
706
724
|
const policy = props.policy;
|
|
707
725
|
const value = props.value;
|
|
@@ -769,18 +787,39 @@ function PasswordRules(props: {
|
|
|
769
787
|
))}
|
|
770
788
|
</ul>
|
|
771
789
|
);
|
|
772
|
-
}
|
|
790
|
+
};
|
|
773
791
|
|
|
774
|
-
|
|
792
|
+
const RealmLogo = (props: {
|
|
775
793
|
settings: RealmConfig["settings"];
|
|
776
794
|
realmName: string;
|
|
777
|
-
}) {
|
|
795
|
+
}) => {
|
|
778
796
|
if (!props.settings.logoUrl) return null;
|
|
779
797
|
return (
|
|
780
798
|
<img
|
|
781
799
|
src={props.settings.logoUrl}
|
|
782
800
|
alt={props.settings.displayName || props.realmName}
|
|
783
|
-
className="size-16 rounded-xl border
|
|
801
|
+
className="bg-muted size-16 rounded-xl border object-cover shadow-sm"
|
|
784
802
|
/>
|
|
785
803
|
);
|
|
786
|
-
}
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* The reference shape of the registration form, with every configurable field
|
|
808
|
+
* optional.
|
|
809
|
+
*
|
|
810
|
+
* `AuthRegister` builds its real schema from the realm settings, so which
|
|
811
|
+
* fields are optional changes per realm. This exists purely to give that
|
|
812
|
+
* schema one stable TypeScript type: the handler reads `data.email`,
|
|
813
|
+
* `data.username` and `data.phoneNumber` as possibly-absent regardless of what
|
|
814
|
+
* a given realm requires, which is the correct type for code that has to
|
|
815
|
+
* compile against all of them.
|
|
816
|
+
*/
|
|
817
|
+
const registerFormSchema = () =>
|
|
818
|
+
z.object({
|
|
819
|
+
firstName: z.text({ trim: true, maxLength: 100 }).optional(),
|
|
820
|
+
lastName: z.text({ trim: true, maxLength: 100 }).optional(),
|
|
821
|
+
username: z.text({ trim: true }).optional(),
|
|
822
|
+
email: z.email().optional(),
|
|
823
|
+
phoneNumber: z.e164().optional(),
|
|
824
|
+
password: z.string(),
|
|
825
|
+
});
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
TurnstileWidget,
|
|
7
7
|
type TurnstileWidgetHandle,
|
|
8
8
|
} from "@alepha/ui/components/captcha/turnstile-widget";
|
|
9
|
-
import { Control } from "@alepha/ui/components/control/control";
|
|
10
9
|
import { iconFor } from "@alepha/ui/components/control-base/icon-hint";
|
|
10
|
+
import { Control } from "@alepha/ui/components/control/control";
|
|
11
11
|
import { Alert, AlertDescription } from "@alepha/ui/components/ui/alert";
|
|
12
12
|
import { Button } from "@alepha/ui/components/ui/button";
|
|
13
13
|
import { Card, CardContent } from "@alepha/ui/components/ui/card";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
InputOTPSlot,
|
|
18
18
|
} from "@alepha/ui/components/ui/input-otp";
|
|
19
19
|
import { Label } from "@alepha/ui/components/ui/label";
|
|
20
|
-
import { AlephaError, z } from "alepha";
|
|
20
|
+
import { AlephaError, SchemaValidationError, z } from "alepha";
|
|
21
21
|
import type {
|
|
22
22
|
PasswordResetIntentResponse,
|
|
23
23
|
RealmConfig,
|
|
@@ -31,6 +31,8 @@ import { useRouter } from "alepha/react/router";
|
|
|
31
31
|
import { AlertCircle, CheckCircle2, Info } from "lucide-react";
|
|
32
32
|
import { type ReactNode, useEffect, useRef, useState } from "react";
|
|
33
33
|
|
|
34
|
+
import { safeRedirect } from "./safe-redirect.ts";
|
|
35
|
+
|
|
34
36
|
export interface AuthResetPasswordProps {
|
|
35
37
|
/**
|
|
36
38
|
* Realm configuration (controls verification channel and password rules).
|
|
@@ -57,7 +59,7 @@ interface State {
|
|
|
57
59
|
code?: string;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
export
|
|
62
|
+
export const AuthResetPassword = (props: AuthResetPasswordProps) => {
|
|
61
63
|
const router = useRouter();
|
|
62
64
|
const { tr } = useI18n();
|
|
63
65
|
const userCtrl = useClient<UserController>();
|
|
@@ -65,7 +67,7 @@ export function AuthResetPassword(props: AuthResetPasswordProps) {
|
|
|
65
67
|
const [error, setError] = useState<string | null>(null);
|
|
66
68
|
const [submitting, setSubmitting] = useState(false);
|
|
67
69
|
const [code, setCode] = useState("");
|
|
68
|
-
const redirect = router.query.redirect
|
|
70
|
+
const redirect = safeRedirect(router.query.redirect);
|
|
69
71
|
|
|
70
72
|
const settings = props.realmConfig.settings;
|
|
71
73
|
const allowed = settings?.resetPasswordAllowed !== false;
|
|
@@ -94,10 +96,9 @@ export function AuthResetPassword(props: AuthResetPasswordProps) {
|
|
|
94
96
|
const [captchaToken, setCaptchaToken] = useState<string | undefined>();
|
|
95
97
|
const captchaRef = useRef<TurnstileWidgetHandle | null>(null);
|
|
96
98
|
/*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* time. Same reason, same fix as `auth-register.tsx`.
|
|
99
|
+
* The handler reads the token the widget issued last through a ref, so a
|
|
100
|
+
* submit never posts a token captured by an earlier render. Same shape as
|
|
101
|
+
* `auth-register.tsx`.
|
|
101
102
|
*/
|
|
102
103
|
const captchaTokenRef = useRef<string | undefined>(undefined);
|
|
103
104
|
useEffect(() => {
|
|
@@ -167,10 +168,16 @@ export function AuthResetPassword(props: AuthResetPasswordProps) {
|
|
|
167
168
|
[state.intent, state.code],
|
|
168
169
|
);
|
|
169
170
|
|
|
170
|
-
const
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
const emailState = useFormState(emailForm, ["loading", "error"]);
|
|
172
|
+
const passwordState = useFormState(passwordForm, ["loading", "error"]);
|
|
173
|
+
const emailSubmitting = emailState.loading;
|
|
174
|
+
const passwordSubmitting = passwordState.loading;
|
|
175
|
+
// A handler that throws (mismatched passwords, a wrong code, a refused
|
|
176
|
+
// captcha) lands in the form's error state, not in `error`; reading only
|
|
177
|
+
// `loading` showed nothing at all after a failed submit.
|
|
178
|
+
const submitError = [passwordState.error, emailState.error].find(
|
|
179
|
+
(err) => err && !(err instanceof SchemaValidationError),
|
|
180
|
+
)?.message;
|
|
174
181
|
|
|
175
182
|
const handleCodeSubmit = () => {
|
|
176
183
|
if (code.length === 6) {
|
|
@@ -213,15 +220,15 @@ export function AuthResetPassword(props: AuthResetPasswordProps) {
|
|
|
213
220
|
<img
|
|
214
221
|
src={settings.logoUrl}
|
|
215
222
|
alt={settings.displayName || props.realmConfig.realmName}
|
|
216
|
-
className="size-16 rounded-xl border
|
|
223
|
+
className="bg-muted size-16 rounded-xl border object-cover shadow-sm"
|
|
217
224
|
/>
|
|
218
225
|
) : null)}
|
|
219
226
|
<Card className="w-full">
|
|
220
227
|
<CardContent className="flex flex-col gap-4">
|
|
221
|
-
{error && (
|
|
228
|
+
{(error ?? submitError) && (
|
|
222
229
|
<Alert variant="destructive">
|
|
223
230
|
<AlertCircle className="size-4" />
|
|
224
|
-
<AlertDescription>{error}</AlertDescription>
|
|
231
|
+
<AlertDescription>{error ?? submitError}</AlertDescription>
|
|
225
232
|
</Alert>
|
|
226
233
|
)}
|
|
227
234
|
{!allowed ? (
|
|
@@ -302,7 +309,7 @@ export function AuthResetPassword(props: AuthResetPasswordProps) {
|
|
|
302
309
|
<InputOTP
|
|
303
310
|
id="code"
|
|
304
311
|
maxLength={6}
|
|
305
|
-
|
|
312
|
+
|
|
306
313
|
value={code}
|
|
307
314
|
onChange={(value) => setCode(value.replace(/\D/g, ""))}
|
|
308
315
|
>
|
|
@@ -419,4 +426,4 @@ export function AuthResetPassword(props: AuthResetPasswordProps) {
|
|
|
419
426
|
</div>
|
|
420
427
|
</div>
|
|
421
428
|
);
|
|
422
|
-
}
|
|
429
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { RealmController } from "alepha/api/users";
|
|
2
2
|
import { $page } from "alepha/react/router";
|
|
3
3
|
import { $client } from "alepha/server/links";
|
|
4
|
+
|
|
4
5
|
import { AuthLogin } from "./auth-login.tsx";
|
|
5
6
|
import { AuthRegister } from "./auth-register.tsx";
|
|
6
7
|
import { AuthResetPassword } from "./auth-reset-password.tsx";
|
|
@@ -28,8 +29,8 @@ import { AuthVerifyEmail } from "./auth-verify-email.tsx";
|
|
|
28
29
|
* `@alepha/mantine/auth/AuthRouter` used to do exactly this, and was deleted with
|
|
29
30
|
* Mantine without being ported. What survived were the components — the bricks
|
|
30
31
|
* without the thing that assembled them — so every application rebuilt the same
|
|
31
|
-
* four pages by hand: `apps/lore` in 414 lines across two files, `apps/shop` in
|
|
32
|
-
* three more. `apps/shop` has since been moved onto this router and deleted its
|
|
32
|
+
* four pages by hand: `apps/lore` in 414 lines across two files, `apps/examples/shop` in
|
|
33
|
+
* three more. `apps/examples/shop` has since been moved onto this router and deleted its
|
|
33
34
|
* three; `apps/lore` still has its own.
|
|
34
35
|
*
|
|
35
36
|
* Worse, the components kept the old router's paths as their fallbacks
|
|
@@ -45,7 +46,7 @@ import { AuthVerifyEmail } from "./auth-verify-email.tsx";
|
|
|
45
46
|
* `/compte/connexion` for a French storefront — writes its own router and passes
|
|
46
47
|
* the components' path props itself; that stays entirely supported, and this
|
|
47
48
|
* class is a readable reference for what wiring it by hand involves. It is a real
|
|
48
|
-
* trade rather than a free one: `apps/shop` made exactly that choice, then gave
|
|
49
|
+
* trade rather than a free one: `apps/examples/shop` made exactly that choice, then gave
|
|
49
50
|
* it up for this router, because the French URLs also cost it a bespoke auth
|
|
50
51
|
* layout, four hand-kept cross-links and the `verify-email` page it never got
|
|
51
52
|
* round to writing.
|
|
@@ -29,16 +29,16 @@ export interface AuthVerifyEmailProps {
|
|
|
29
29
|
logo?: ReactNode;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export
|
|
32
|
+
export const AuthVerifyEmail = (props: AuthVerifyEmailProps) => {
|
|
33
33
|
if (props.step) {
|
|
34
34
|
return (
|
|
35
35
|
<View step={props.step} loginPath={props.loginPath} logo={props.logo} />
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
return <Stateful loginPath={props.loginPath} logo={props.logo} />;
|
|
39
|
-
}
|
|
39
|
+
};
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
const Stateful = (props: { loginPath?: string; logo?: ReactNode }) => {
|
|
42
42
|
const state = useRouterState();
|
|
43
43
|
const { tr } = useI18n();
|
|
44
44
|
const userCtrl = useClient<UserController>();
|
|
@@ -85,14 +85,14 @@ function Stateful(props: { loginPath?: string; logo?: ReactNode }) {
|
|
|
85
85
|
logo={props.logo}
|
|
86
86
|
/>
|
|
87
87
|
);
|
|
88
|
-
}
|
|
88
|
+
};
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
const View = (props: {
|
|
91
91
|
step: VerifyEmailStep;
|
|
92
92
|
error?: string | null;
|
|
93
93
|
loginPath?: string;
|
|
94
94
|
logo?: ReactNode;
|
|
95
|
-
}) {
|
|
95
|
+
}) => {
|
|
96
96
|
const { tr } = useI18n();
|
|
97
97
|
return (
|
|
98
98
|
<div className="flex min-h-svh flex-1 items-center justify-center p-6">
|
|
@@ -176,4 +176,4 @@ function View(props: {
|
|
|
176
176
|
</div>
|
|
177
177
|
</div>
|
|
178
178
|
);
|
|
179
|
-
}
|
|
179
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filter a `?redirect=` query value to a safe in-app destination:
|
|
3
|
+
* - only a same-origin absolute path (a single leading `/`);
|
|
4
|
+
* - never `//evil.example`, a full URL, or a backslash a browser would
|
|
5
|
+
* normalise into one (the open-redirect surface);
|
|
6
|
+
* - never `/auth/*`, which would bounce the user back into the auth flow.
|
|
7
|
+
*/
|
|
8
|
+
export const safeRedirect = (raw: string | string[] | undefined): string => {
|
|
9
|
+
if (typeof raw !== "string" || raw.length === 0) return "/";
|
|
10
|
+
if (!raw.startsWith("/") || raw.startsWith("//")) return "/";
|
|
11
|
+
if (raw.includes("\\")) return "/";
|
|
12
|
+
if (raw.startsWith("/auth/")) return "/";
|
|
13
|
+
return raw;
|
|
14
|
+
};
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { render, screen } from "@testing-library/react";
|
|
2
|
+
import { Alepha, z } from "alepha";
|
|
3
|
+
import { AlephaLogger } from "alepha/logger";
|
|
4
|
+
import { AlephaContext } from "alepha/react";
|
|
5
|
+
import { useForm } from "alepha/react/form";
|
|
6
|
+
import { AlephaReactI18n } from "alepha/react/i18n";
|
|
7
|
+
import type { ReactNode } from "react";
|
|
8
|
+
import { describe, expect, it } from "vitest";
|
|
9
|
+
|
|
10
|
+
import { AutoForm, type AutoFormProps } from "../auto-form.tsx";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* `layout="row"` is not a near-miss of the settings-card shape, it is that
|
|
14
|
+
* shape — so these pin the three things that make it one and are invisible in
|
|
15
|
+
* a screenshot review: the action bar belongs to the card rather than to a
|
|
16
|
+
* second bordered box under it, the heading comes from `SettingsHeading`, and
|
|
17
|
+
* a text control takes the settings column width.
|
|
18
|
+
*
|
|
19
|
+
* The regression these guard against is the reverse direction too: the grid
|
|
20
|
+
* layout and `autoSave` must keep the chrome they had, since every existing
|
|
21
|
+
* caller is one of those.
|
|
22
|
+
*/
|
|
23
|
+
describe("AutoForm settings-card layout", () => {
|
|
24
|
+
const start = async () => {
|
|
25
|
+
const alepha = Alepha.create().with(AlephaLogger).with(AlephaReactI18n);
|
|
26
|
+
await alepha.start();
|
|
27
|
+
return alepha;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const mount = (alepha: Alepha, ui: ReactNode) =>
|
|
31
|
+
render(
|
|
32
|
+
<AlephaContext.Provider value={alepha}>{ui}</AlephaContext.Provider>,
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
const Probe = (props: Partial<AutoFormProps<any>>) => {
|
|
36
|
+
const form = useForm({
|
|
37
|
+
initialValues: { username: "" },
|
|
38
|
+
schema: z.object({ username: z.string() }),
|
|
39
|
+
handler: () => {},
|
|
40
|
+
});
|
|
41
|
+
return (
|
|
42
|
+
<AutoForm
|
|
43
|
+
form={form}
|
|
44
|
+
fields={{ username: { label: "Username" } }}
|
|
45
|
+
{...props}
|
|
46
|
+
/>
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
it("renders the action bar as the card's own last row", async () => {
|
|
51
|
+
const alepha = await start();
|
|
52
|
+
const { container } = mount(
|
|
53
|
+
alepha,
|
|
54
|
+
<Probe layout="row" groups={[{ fields: ["username"] }]} />,
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
const card = container.querySelector(".divide-y");
|
|
58
|
+
expect(card).toBeTruthy();
|
|
59
|
+
// Inside the card, so `divide-y` draws the rule above it. A standalone bar
|
|
60
|
+
// would sit outside and read as a second card.
|
|
61
|
+
expect(card?.contains(screen.getByRole("button", { name: "Save" }))).toBe(
|
|
62
|
+
true,
|
|
63
|
+
);
|
|
64
|
+
expect(card?.contains(screen.getByRole("button", { name: "Reset" }))).toBe(
|
|
65
|
+
true,
|
|
66
|
+
);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it("gives the action row the same padding as a field row", async () => {
|
|
70
|
+
const alepha = await start();
|
|
71
|
+
const { container } = mount(
|
|
72
|
+
alepha,
|
|
73
|
+
<Probe layout="row" groups={[{ fields: ["username"] }]} />,
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
const card = container.querySelector(".divide-y");
|
|
77
|
+
const rows = Array.from(card?.children ?? []);
|
|
78
|
+
// Field row, then action row — and both on the card's `px-4 py-3` rhythm,
|
|
79
|
+
// or the rule above the buttons lands at a different inset than the ones
|
|
80
|
+
// between fields.
|
|
81
|
+
expect(rows).toHaveLength(2);
|
|
82
|
+
for (const row of rows) {
|
|
83
|
+
expect(row.className).toContain("px-4");
|
|
84
|
+
expect(row.className).toContain("py-3");
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it("matches the card chrome SettingsSection renders", async () => {
|
|
89
|
+
const alepha = await start();
|
|
90
|
+
const { container } = mount(
|
|
91
|
+
alepha,
|
|
92
|
+
<Probe layout="row" groups={[{ fields: ["username"] }]} />,
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
const card = container.querySelector(".divide-y");
|
|
96
|
+
for (const cls of ["rounded-lg", "border", "bg-card", "shadow-sm"]) {
|
|
97
|
+
expect(card?.className).toContain(cls);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
it("renders a group description above the card", async () => {
|
|
102
|
+
const alepha = await start();
|
|
103
|
+
mount(
|
|
104
|
+
alepha,
|
|
105
|
+
<Probe
|
|
106
|
+
layout="row"
|
|
107
|
+
groups={[
|
|
108
|
+
{
|
|
109
|
+
title: "Name",
|
|
110
|
+
description: "How you are identified to other people.",
|
|
111
|
+
fields: ["username"],
|
|
112
|
+
},
|
|
113
|
+
]}
|
|
114
|
+
/>,
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
expect(screen.getByText("Name")).toBeTruthy();
|
|
118
|
+
expect(
|
|
119
|
+
screen.getByText("How you are identified to other people."),
|
|
120
|
+
).toBeTruthy();
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
it("gives a text control the settings column width", async () => {
|
|
124
|
+
const alepha = await start();
|
|
125
|
+
mount(alepha, <Probe layout="row" groups={[{ fields: ["username"] }]} />);
|
|
126
|
+
|
|
127
|
+
// The right-hand cell is an `auto` grid column, so `w-full` alone leaves
|
|
128
|
+
// the input at its ~172px intrinsic size and every card gets a different
|
|
129
|
+
// control column.
|
|
130
|
+
expect(
|
|
131
|
+
screen.getByRole("textbox", { name: "Username" }).className,
|
|
132
|
+
).toContain("sm:w-64");
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
it("lets a caller override the settings column width", async () => {
|
|
136
|
+
const alepha = await start();
|
|
137
|
+
mount(
|
|
138
|
+
alepha,
|
|
139
|
+
<Probe
|
|
140
|
+
layout="row"
|
|
141
|
+
groups={[{ fields: ["username"] }]}
|
|
142
|
+
fields={{
|
|
143
|
+
username: {
|
|
144
|
+
label: "Username",
|
|
145
|
+
inputProps: { className: "sm:w-96" },
|
|
146
|
+
},
|
|
147
|
+
}}
|
|
148
|
+
/>,
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
// tailwind-merge, not both classes landing on the element: at `sm` the
|
|
152
|
+
// caller's width has to be the only one that applies.
|
|
153
|
+
// `getByRole`, not `getByLabelText`: `username` is required here, and the
|
|
154
|
+
// marker `FormField` renders for that puts a literal "*" in the label's
|
|
155
|
+
// text content even though it is `aria-hidden`.
|
|
156
|
+
const className = screen.getByRole("textbox", {
|
|
157
|
+
name: "Username",
|
|
158
|
+
}).className;
|
|
159
|
+
expect(className).toContain("sm:w-96");
|
|
160
|
+
expect(className).not.toContain("sm:w-64");
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
it("marks a required field with an asterisk by default", async () => {
|
|
164
|
+
const alepha = await start();
|
|
165
|
+
mount(alepha, <Probe layout="row" groups={[{ fields: ["username"] }]} />);
|
|
166
|
+
|
|
167
|
+
expect(screen.getByText("*")).toBeTruthy();
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
it("hides the asterisk under requiredMarker={false}", async () => {
|
|
171
|
+
const alepha = await start();
|
|
172
|
+
mount(
|
|
173
|
+
alepha,
|
|
174
|
+
<Probe
|
|
175
|
+
layout="row"
|
|
176
|
+
requiredMarker={false}
|
|
177
|
+
groups={[{ fields: ["username"] }]}
|
|
178
|
+
/>,
|
|
179
|
+
);
|
|
180
|
+
|
|
181
|
+
expect(screen.queryByText("*")).toBeNull();
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
it("still announces the field as required with the marker hidden", async () => {
|
|
185
|
+
const alepha = await start();
|
|
186
|
+
mount(
|
|
187
|
+
alepha,
|
|
188
|
+
<Probe
|
|
189
|
+
layout="row"
|
|
190
|
+
requiredMarker={false}
|
|
191
|
+
groups={[{ fields: ["username"] }]}
|
|
192
|
+
/>,
|
|
193
|
+
);
|
|
194
|
+
|
|
195
|
+
// The asterisk is `aria-hidden`, so it never carried this to a screen
|
|
196
|
+
// reader — `aria-required` does, and it comes from the schema. If hiding
|
|
197
|
+
// the marker ever took this with it, the prop would have quietly turned a
|
|
198
|
+
// cosmetic choice into an accessibility regression.
|
|
199
|
+
expect(
|
|
200
|
+
screen
|
|
201
|
+
.getByRole("textbox", { name: "Username" })
|
|
202
|
+
.getAttribute("aria-required"),
|
|
203
|
+
).toBe("true");
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
it("still hides the action bar under autoSave", async () => {
|
|
207
|
+
const alepha = await start();
|
|
208
|
+
mount(
|
|
209
|
+
alepha,
|
|
210
|
+
<Probe layout="row" autoSave groups={[{ fields: ["username"] }]} />,
|
|
211
|
+
);
|
|
212
|
+
|
|
213
|
+
expect(screen.queryByRole("button", { name: "Save" })).toBeNull();
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
it("leaves the grid layout's standalone bar alone", async () => {
|
|
217
|
+
const alepha = await start();
|
|
218
|
+
const { container } = mount(
|
|
219
|
+
alepha,
|
|
220
|
+
<Probe groups={[{ fields: ["username"] }]} />,
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
// No settings card at all in the grid layout, so the bar has nowhere to
|
|
224
|
+
// move into and must still render as its own bordered box.
|
|
225
|
+
expect(container.querySelector(".divide-y")).toBeNull();
|
|
226
|
+
const save = screen.getByRole("button", { name: "Save" });
|
|
227
|
+
expect(save.closest(".rounded-md")?.className).toContain("border");
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
it("keeps the submit button when the schema resolves to no fields", async () => {
|
|
231
|
+
const alepha = await start();
|
|
232
|
+
// A group whose fields do not exist on the form used to render nothing at
|
|
233
|
+
// all, which in row layout would have taken the action bar down with it.
|
|
234
|
+
mount(alepha, <Probe layout="row" groups={[{ fields: ["nope"] }]} />);
|
|
235
|
+
|
|
236
|
+
expect(screen.getByRole("button", { name: "Save" })).toBeTruthy();
|
|
237
|
+
});
|
|
238
|
+
});
|