@kyro-cms/admin 0.12.19 → 0.12.21

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.
Files changed (60) hide show
  1. package/dist/index.cjs +24 -24
  2. package/dist/index.d.cts +2 -1
  3. package/dist/index.d.ts +2 -1
  4. package/dist/index.js +19 -19
  5. package/package.json +6 -6
  6. package/src/components/ApiKeysManager.tsx +177 -227
  7. package/src/components/AuditLogsPage.tsx +7 -7
  8. package/src/components/AuthorDashboard.tsx +235 -0
  9. package/src/components/AutoForm.tsx +15 -4
  10. package/src/components/CustomerDashboard.tsx +213 -0
  11. package/src/components/Dashboard.tsx +1 -1
  12. package/src/components/DashboardMetrics.tsx +74 -9
  13. package/src/components/DashboardQuickSections.tsx +237 -0
  14. package/src/components/ListView.tsx +3 -3
  15. package/src/components/MediaGallery.tsx +2 -2
  16. package/src/components/PluginsManager.tsx +1 -1
  17. package/src/components/SessionsManager.tsx +15 -15
  18. package/src/components/Sidebar.astro +564 -116
  19. package/src/components/UserManagement.tsx +43 -9
  20. package/src/components/UserMenu.tsx +123 -61
  21. package/src/components/autoform/AutoFormEditView.tsx +4 -4
  22. package/src/components/autoform/AutoFormHeader.tsx +2 -2
  23. package/src/components/fields/ArrayLayout.tsx +8 -8
  24. package/src/components/fields/CodeField.tsx +0 -1
  25. package/src/components/fields/TabsLayout.tsx +5 -2
  26. package/src/components/ui/CommandPalette.tsx +1 -1
  27. package/src/components/ui/Dropdown.tsx +71 -16
  28. package/src/components/ui/PageHeader.tsx +1 -1
  29. package/src/components/ui/Pagination.tsx +1 -1
  30. package/src/components/ui/SeoPreview.tsx +25 -21
  31. package/src/components/ui/Toast.tsx +3 -2
  32. package/src/components/ui/Toaster.tsx +1 -1
  33. package/src/components/users/UserDetail.tsx +74 -29
  34. package/src/components/users/UserForm.tsx +1 -1
  35. package/src/components/users/UsersList.tsx +2 -2
  36. package/src/integration.ts +4 -0
  37. package/src/layouts/AdminLayout.astro +26 -34
  38. package/src/layouts/AuthLayout.astro +18 -9
  39. package/src/lib/auth-server.ts +99 -0
  40. package/src/pages/403.astro +54 -35
  41. package/src/pages/[collection]/[id].astro +8 -0
  42. package/src/pages/[collection]/index.astro +7 -0
  43. package/src/pages/audit/index.astro +4 -1
  44. package/src/pages/auth/check-email.astro +146 -0
  45. package/src/pages/auth/forgot-password.astro +95 -0
  46. package/src/pages/auth/login.astro +29 -12
  47. package/src/pages/auth/register.astro +38 -12
  48. package/src/pages/auth/reset-password.astro +125 -0
  49. package/src/pages/auth/verify-email.astro +87 -0
  50. package/src/pages/index.astro +220 -121
  51. package/src/pages/keys.astro +3 -1
  52. package/src/pages/media.astro +3 -1
  53. package/src/pages/preview/[collection]/[id].astro +23 -73
  54. package/src/pages/roles/index.astro +134 -101
  55. package/src/pages/settings/[slug].astro +43 -3
  56. package/src/pages/users/[id].astro +5 -1
  57. package/src/pages/users/index.astro +4 -0
  58. package/src/pages/users/new.astro +4 -0
  59. package/src/pages/webhooks.astro +3 -1
  60. package/src/routes.ts +16 -0
package/dist/index.d.cts CHANGED
@@ -351,9 +351,10 @@ type ToastType = "success" | "error" | "warning" | "info";
351
351
  interface ToastProps {
352
352
  type: ToastType;
353
353
  message: string;
354
+ duration?: number;
354
355
  onClose: () => void;
355
356
  }
356
- declare function Toast({ type, message, onClose }: ToastProps): React__default.JSX.Element;
357
+ declare function Toast({ type, message, duration, onClose }: ToastProps): React__default.JSX.Element;
357
358
  interface ToastProviderProps {
358
359
  children: ReactNode;
359
360
  }
package/dist/index.d.ts CHANGED
@@ -351,9 +351,10 @@ type ToastType = "success" | "error" | "warning" | "info";
351
351
  interface ToastProps {
352
352
  type: ToastType;
353
353
  message: string;
354
+ duration?: number;
354
355
  onClose: () => void;
355
356
  }
356
- declare function Toast({ type, message, onClose }: ToastProps): React__default.JSX.Element;
357
+ declare function Toast({ type, message, duration, onClose }: ToastProps): React__default.JSX.Element;
357
358
  interface ToastProviderProps {
358
359
  children: ReactNode;
359
360
  }