react-admin-crud-manager 1.2.9 → 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.
- package/dist/index.cjs.js +1000 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +10380 -3218
- package/dist/index.es.js.map +1 -1
- package/dist/types/components/Form/components/FreeEditor.d.ts +14 -0
- package/dist/types/components/Form/components/RenderFields.d.ts +1 -0
- package/dist/types/types/crudtypes.d.ts +2 -0
- package/package.json +2 -1
|
@@ -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;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-admin-crud-manager",
|
|
3
|
-
"version": "1.2.
|
|
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": {
|