@panneau/form-resource 4.0.8 → 4.0.14
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.d.ts +19 -0
- package/package.json +22 -20
- /package/{es → dist}/index.js +0 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { Resource } from '@panneau/core';
|
|
4
|
+
|
|
5
|
+
interface ResourceFormProps {
|
|
6
|
+
resource: Resource;
|
|
7
|
+
item?: Record<string, unknown> | null;
|
|
8
|
+
type?: string | null;
|
|
9
|
+
component?: string | null;
|
|
10
|
+
header?: ReactNode | null;
|
|
11
|
+
onSuccess?: ((result: unknown) => void) | null;
|
|
12
|
+
isDelete?: boolean;
|
|
13
|
+
isDuplicate?: boolean;
|
|
14
|
+
isModal?: boolean;
|
|
15
|
+
withContainer?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare function ResourceForm({ component, header, resource, onSuccess, item, type, isDelete, isDuplicate, isModal, withContainer, ...props }: ResourceFormProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { ResourceForm as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/form-resource",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.14",
|
|
4
4
|
"description": "Default resource forms",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -26,43 +26,45 @@
|
|
|
26
26
|
],
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"type": "module",
|
|
29
|
-
"module": "
|
|
29
|
+
"module": "dist/index.js",
|
|
30
|
+
"types": "dist/index.d.ts",
|
|
30
31
|
"exports": {
|
|
31
|
-
".":
|
|
32
|
+
".": {
|
|
33
|
+
"default": "./dist/index.js",
|
|
34
|
+
"types": "./dist/index.d.ts"
|
|
35
|
+
}
|
|
32
36
|
},
|
|
33
37
|
"files": [
|
|
34
|
-
"
|
|
35
|
-
"es",
|
|
38
|
+
"dist",
|
|
36
39
|
"assets"
|
|
37
40
|
],
|
|
38
41
|
"scripts": {
|
|
39
42
|
"prepublishOnly": "npm run build",
|
|
40
|
-
"build": "../../scripts/prepare-package.sh"
|
|
43
|
+
"build": "../../scripts/prepare-package.sh --types"
|
|
41
44
|
},
|
|
42
45
|
"devDependencies": {
|
|
43
|
-
"react": "^
|
|
44
|
-
"react-dom": "^
|
|
46
|
+
"react": "^19.0.0",
|
|
47
|
+
"react-dom": "^19.0.0"
|
|
45
48
|
},
|
|
46
49
|
"peerDependencies": {
|
|
47
|
-
"react": "^
|
|
48
|
-
"react-dom": "^
|
|
50
|
+
"react": "^19.0.0",
|
|
51
|
+
"react-dom": "^19.0.0"
|
|
49
52
|
},
|
|
50
53
|
"dependencies": {
|
|
51
54
|
"@babel/runtime": "^7.12.5",
|
|
52
|
-
"@panneau/core": "^4.0.
|
|
53
|
-
"@panneau/data": "^4.0.
|
|
54
|
-
"@panneau/element-button": "^4.0.
|
|
55
|
-
"@panneau/element-form": "^4.0.
|
|
56
|
-
"@panneau/field-fields": "^4.0.
|
|
57
|
-
"@panneau/intl": "^4.0.
|
|
58
|
-
"@panneau/themes": "^4.0.
|
|
55
|
+
"@panneau/core": "^4.0.14",
|
|
56
|
+
"@panneau/data": "^4.0.14",
|
|
57
|
+
"@panneau/element-button": "^4.0.14",
|
|
58
|
+
"@panneau/element-form": "^4.0.14",
|
|
59
|
+
"@panneau/field-fields": "^4.0.14",
|
|
60
|
+
"@panneau/intl": "^4.0.14",
|
|
61
|
+
"@panneau/themes": "^4.0.14",
|
|
59
62
|
"classnames": "^2.5.1",
|
|
60
|
-
"lodash
|
|
61
|
-
"prop-types": "^15.7.2",
|
|
63
|
+
"lodash": "^4.17.21",
|
|
62
64
|
"react-intl": "^5.15.8 || ^6.0.0 || ^7.0.0"
|
|
63
65
|
},
|
|
64
66
|
"publishConfig": {
|
|
65
67
|
"access": "public"
|
|
66
68
|
},
|
|
67
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "ce35c2ddb30a7be2efe951882d9826dca577f5d4"
|
|
68
70
|
}
|
/package/{es → dist}/index.js
RENAMED
|
File without changes
|