@kyro-cms/admin 0.11.6 → 0.12.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.
Files changed (32) hide show
  1. package/dist/index.cjs +25 -25
  2. package/dist/index.d.cts +4 -2
  3. package/dist/index.d.ts +4 -2
  4. package/dist/index.js +20 -20
  5. package/package.json +1 -1
  6. package/src/components/ActionBar.tsx +35 -5
  7. package/src/components/AutoForm.tsx +97 -40
  8. package/src/components/DetailView.tsx +41 -0
  9. package/src/components/FieldRenderer.tsx +11 -0
  10. package/src/components/GraphQLPlayground.tsx +259 -12
  11. package/src/components/MediaGallery.tsx +65 -51
  12. package/src/components/WebhookManager.tsx +338 -188
  13. package/src/components/autoform/AutoFormHeader.tsx +19 -9
  14. package/src/components/autoform/ErrorBoundary.tsx +93 -0
  15. package/src/components/blocks/HeadingSubheadingBlock.tsx +2 -2
  16. package/src/components/blocks/HeroBlock.tsx +2 -2
  17. package/src/components/fields/BlocksField.tsx +69 -17
  18. package/src/components/fields/HeadingSubheadingField.tsx +2 -2
  19. package/src/components/fields/HeroField.tsx +4 -4
  20. package/src/components/fields/IconField.tsx +79 -0
  21. package/src/components/fields/RelationshipField.tsx +2 -2
  22. package/src/components/fields/UploadField.tsx +7 -5
  23. package/src/components/fields/extensions/blocksStore.ts +1 -1
  24. package/src/components/fields/index.ts +1 -0
  25. package/src/components/ui/BlockDrawer.tsx +39 -0
  26. package/src/components/ui/IconPickerModal.tsx +80 -0
  27. package/src/components/ui/ImageFocalEditor.tsx +112 -71
  28. package/src/components/ui/Modal.tsx +4 -2
  29. package/src/components/ui/icons.tsx +1 -1
  30. package/src/hooks/useAutoFormState.ts +51 -1
  31. package/src/integration.ts +4 -4
  32. package/src/pages/settings/[slug].astro +1 -1
package/dist/index.d.cts CHANGED
@@ -231,8 +231,10 @@ interface ActionBarProps {
231
231
  onToggleSidebar?: () => void;
232
232
  publishedAt?: string | null;
233
233
  updatedAt?: string | null;
234
+ onCopyData?: () => void;
235
+ onPasteData?: () => void;
234
236
  }
235
- declare function ActionBar({ status, saveStatus, hasChanges, onSave, onPublish, onUnpublish, onDuplicate, onViewHistory, onPreview, onDelete, onBack, onToggleSidebar, publishedAt, updatedAt, }: ActionBarProps): react_jsx_runtime.JSX.Element;
237
+ declare function ActionBar({ status, saveStatus, hasChanges, onSave, onPublish, onUnpublish, onDuplicate, onViewHistory, onPreview, onDelete, onBack, onToggleSidebar, publishedAt, updatedAt, onCopyData, onPasteData, }: ActionBarProps): react_jsx_runtime.JSX.Element;
236
238
 
237
239
  interface BulkAction {
238
240
  label: string;
@@ -385,7 +387,7 @@ interface ModalProps {
385
387
  title: string;
386
388
  children: ReactNode;
387
389
  footer?: ReactNode;
388
- size?: "sm" | "md" | "lg" | "full";
390
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | "full";
389
391
  variant?: "default" | "danger" | "lightbox";
390
392
  }
391
393
  declare function Modal({ open, onClose, title, children, footer, size, variant, }: ModalProps): React__default.ReactPortal | null;
package/dist/index.d.ts CHANGED
@@ -231,8 +231,10 @@ interface ActionBarProps {
231
231
  onToggleSidebar?: () => void;
232
232
  publishedAt?: string | null;
233
233
  updatedAt?: string | null;
234
+ onCopyData?: () => void;
235
+ onPasteData?: () => void;
234
236
  }
235
- declare function ActionBar({ status, saveStatus, hasChanges, onSave, onPublish, onUnpublish, onDuplicate, onViewHistory, onPreview, onDelete, onBack, onToggleSidebar, publishedAt, updatedAt, }: ActionBarProps): react_jsx_runtime.JSX.Element;
237
+ declare function ActionBar({ status, saveStatus, hasChanges, onSave, onPublish, onUnpublish, onDuplicate, onViewHistory, onPreview, onDelete, onBack, onToggleSidebar, publishedAt, updatedAt, onCopyData, onPasteData, }: ActionBarProps): react_jsx_runtime.JSX.Element;
236
238
 
237
239
  interface BulkAction {
238
240
  label: string;
@@ -385,7 +387,7 @@ interface ModalProps {
385
387
  title: string;
386
388
  children: ReactNode;
387
389
  footer?: ReactNode;
388
- size?: "sm" | "md" | "lg" | "full";
390
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | "full";
389
391
  variant?: "default" | "danger" | "lightbox";
390
392
  }
391
393
  declare function Modal({ open, onClose, title, children, footer, size, variant, }: ModalProps): React__default.ReactPortal | null;