react-admin-crud-manager 1.2.8 → 1.2.10

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.
@@ -0,0 +1,14 @@
1
+ interface FreeEditorProps {
2
+ value: string;
3
+ name: string;
4
+ onChange: (content: string) => void;
5
+ label?: string;
6
+ required?: boolean;
7
+ placeholder?: string;
8
+ parentClass?: string;
9
+ height?: number;
10
+ disabled?: boolean;
11
+ errorMessage?: string;
12
+ }
13
+ declare const FreeEditor: ({ value, name, onChange, label, required, placeholder, parentClass, height, disabled, errorMessage, }: FreeEditorProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default FreeEditor;
@@ -31,6 +31,7 @@ interface FieldConfig {
31
31
  mask?: string;
32
32
  maskApplyOnValue?: boolean;
33
33
  maxSize?: number;
34
+ editorVariant?: "tiny" | "free";
34
35
  [key: string]: any;
35
36
  }
36
37
  interface RenderFieldsProps {
@@ -26,6 +26,7 @@ export interface TableHead {
26
26
  key: string;
27
27
  title?: string;
28
28
  type?: string;
29
+ render?: (row: Record<string, any>, index: number) => ReactNode;
29
30
  imageKey?: string;
30
31
  titleKey?: string;
31
32
  subtitleKey?: string;
@@ -77,6 +78,7 @@ export interface ViewField {
77
78
  key?: string;
78
79
  label?: string;
79
80
  type?: string;
81
+ render?: (data: Record<string, any>) => ReactNode;
80
82
  imageKey?: string;
81
83
  titleKey?: string;
82
84
  subtitleKey?: string;
@@ -213,9 +215,6 @@ export interface ModalConfig {
213
215
  confirmText?: string;
214
216
  referenceKey?: string;
215
217
  actionButtons?: ActionButton[];
216
- action: (item: any) => Promise<{
217
- targetObject: any;
218
- } | null>;
219
218
  icon?: ReactNode;
220
219
  };
221
220
  viewModal?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-admin-crud-manager",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "description": "A reusable React CRUD admin template with modular components.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -53,6 +53,7 @@
53
53
  "prop-types": "^15.8.1",
54
54
  "react-easy-crop": "^5.5.6",
55
55
  "react-router-dom": "^7.9.1",
56
+ "react-text-editor-kit": "3.0.0",
56
57
  "tinymce": "^8.3.2"
57
58
  },
58
59
  "devDependencies": {