@kyro-cms/admin 0.12.0 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +24 -24
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +19 -19
- package/package.json +1 -1
- package/src/components/ActionBar.tsx +35 -5
- package/src/components/AutoForm.tsx +54 -20
- package/src/components/DetailView.tsx +41 -0
- package/src/components/FieldRenderer.tsx +11 -0
- package/src/components/MediaGallery.tsx +65 -51
- package/src/components/WebhookManager.tsx +3 -3
- package/src/components/autoform/AutoFormHeader.tsx +1 -2
- package/src/components/fields/AccordionField.tsx +54 -3
- package/src/components/fields/BlocksField.tsx +105 -19
- package/src/components/fields/GroupLayout.tsx +54 -4
- package/src/components/fields/IconField.tsx +79 -0
- package/src/components/fields/TabsLayout.tsx +62 -11
- package/src/components/fields/UploadField.tsx +24 -26
- package/src/components/fields/index.ts +1 -0
- package/src/components/ui/BlockDrawer.tsx +39 -0
- package/src/components/ui/IconPickerModal.tsx +80 -0
- package/src/components/ui/ImageFocalEditor.tsx +112 -71
- package/src/components/ui/Modal.tsx +4 -2
- package/src/components/ui/SplitButton.tsx +5 -5
- package/src/components/ui/icons.tsx +1 -1
- package/src/lib/autoform-store.ts +9 -3
- package/src/lib/deep-equal.ts +73 -0
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;
|