@plasmicpkgs/antd5 0.0.178 → 0.0.180
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/.tsbuildinfo +1 -1
- package/dist/antd.esm.js +15 -11
- package/dist/antd.esm.js.map +1 -1
- package/dist/index.js +15 -11
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/skinny/registerForm.cjs.js +15 -11
- package/skinny/registerForm.cjs.js.map +1 -1
- package/skinny/registerForm.esm.js +15 -11
- package/skinny/registerForm.esm.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/antd5",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.180",
|
|
4
4
|
"description": "Plasmic registration calls for antd components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"@babel/preset-env": "^7.22.15",
|
|
66
66
|
"@babel/preset-react": "^7.22.15",
|
|
67
67
|
"@babel/preset-typescript": "^7.22.15",
|
|
68
|
-
"@plasmicapp/data-sources": "0.1.
|
|
69
|
-
"@plasmicapp/host": "1.0.
|
|
70
|
-
"@plasmicapp/query": "0.1.
|
|
71
|
-
"@plasmicapp/react-web": "0.2.
|
|
68
|
+
"@plasmicapp/data-sources": "0.1.137",
|
|
69
|
+
"@plasmicapp/host": "1.0.179",
|
|
70
|
+
"@plasmicapp/query": "0.1.76",
|
|
71
|
+
"@plasmicapp/react-web": "0.2.296",
|
|
72
72
|
"@rollup/plugin-commonjs": "^11.0.0",
|
|
73
73
|
"@rollup/plugin-json": "^4.0.0",
|
|
74
74
|
"@rollup/plugin-node-resolve": "^9.0.0",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"publishConfig": {
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "48a2877c3dc093d101508fcdde2fd213055fdab9"
|
|
112
112
|
}
|
|
@@ -1012,18 +1012,22 @@ function FormItemForwarder(_a) {
|
|
|
1012
1012
|
});
|
|
1013
1013
|
return React__default.default.Children.map(formItemProps.children, (child, i) => {
|
|
1014
1014
|
var _a3;
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
newProps
|
|
1023
|
-
|
|
1024
|
-
|
|
1015
|
+
if (i === 0 && React.isValidElement(child)) {
|
|
1016
|
+
let newProps = __spreadProps(__spreadValues(__spreadValues({
|
|
1017
|
+
name: formItemProps.name
|
|
1018
|
+
}, (_a3 = child.props) != null ? _a3 : {}), props), {
|
|
1019
|
+
__plasmicFormField: true
|
|
1020
|
+
});
|
|
1021
|
+
if (formItemProps.customizeProps) {
|
|
1022
|
+
newProps = reactUtils.mergeProps(
|
|
1023
|
+
newProps,
|
|
1024
|
+
formItemProps.customizeProps(data, newProps)
|
|
1025
|
+
);
|
|
1026
|
+
}
|
|
1027
|
+
return React.cloneElement(child, newProps);
|
|
1028
|
+
} else {
|
|
1029
|
+
return child;
|
|
1025
1030
|
}
|
|
1026
|
-
return i === 0 && React.isValidElement(child) ? React.cloneElement(child, newProps) : child;
|
|
1027
1031
|
});
|
|
1028
1032
|
}
|
|
1029
1033
|
function getDefaultValueHint(field) {
|