@measured/puck 0.17.0-canary.9991c07 → 0.17.0-canary.b51954a
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.js +6 -4
- package/dist/index.mjs +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3944,34 +3944,36 @@ var Fields = () => {
|
|
3944
3944
|
const { edit } = getPermissions({
|
3945
3945
|
item: selectedItem
|
3946
3946
|
});
|
3947
|
+
const id = `${selectedItem.props.id}_${field.type}_${fieldName}`;
|
3947
3948
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
3948
3949
|
AutoFieldPrivate,
|
3949
3950
|
{
|
3950
3951
|
field,
|
3951
3952
|
name: fieldName,
|
3952
|
-
id
|
3953
|
+
id,
|
3953
3954
|
readOnly: !edit || readOnly[fieldName],
|
3954
3955
|
value: selectedItem.props[fieldName],
|
3955
3956
|
onChange
|
3956
3957
|
},
|
3957
|
-
|
3958
|
+
id
|
3958
3959
|
);
|
3959
3960
|
} else {
|
3960
3961
|
const readOnly = data.root.readOnly || {};
|
3961
3962
|
const { edit } = getPermissions({
|
3962
3963
|
root: true
|
3963
3964
|
});
|
3965
|
+
const id = `root_${field.type}_${fieldName}`;
|
3964
3966
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
3965
3967
|
AutoFieldPrivate,
|
3966
3968
|
{
|
3967
3969
|
field,
|
3968
3970
|
name: fieldName,
|
3969
|
-
id
|
3971
|
+
id,
|
3970
3972
|
readOnly: !edit || readOnly[fieldName],
|
3971
3973
|
value: rootProps[fieldName],
|
3972
3974
|
onChange
|
3973
3975
|
},
|
3974
|
-
|
3976
|
+
id
|
3975
3977
|
);
|
3976
3978
|
}
|
3977
3979
|
}) }),
|
package/dist/index.mjs
CHANGED
@@ -3780,34 +3780,36 @@ var Fields = () => {
|
|
3780
3780
|
const { edit } = getPermissions({
|
3781
3781
|
item: selectedItem
|
3782
3782
|
});
|
3783
|
+
const id = `${selectedItem.props.id}_${field.type}_${fieldName}`;
|
3783
3784
|
return /* @__PURE__ */ jsx27(
|
3784
3785
|
AutoFieldPrivate,
|
3785
3786
|
{
|
3786
3787
|
field,
|
3787
3788
|
name: fieldName,
|
3788
|
-
id
|
3789
|
+
id,
|
3789
3790
|
readOnly: !edit || readOnly[fieldName],
|
3790
3791
|
value: selectedItem.props[fieldName],
|
3791
3792
|
onChange
|
3792
3793
|
},
|
3793
|
-
|
3794
|
+
id
|
3794
3795
|
);
|
3795
3796
|
} else {
|
3796
3797
|
const readOnly = data.root.readOnly || {};
|
3797
3798
|
const { edit } = getPermissions({
|
3798
3799
|
root: true
|
3799
3800
|
});
|
3801
|
+
const id = `root_${field.type}_${fieldName}`;
|
3800
3802
|
return /* @__PURE__ */ jsx27(
|
3801
3803
|
AutoFieldPrivate,
|
3802
3804
|
{
|
3803
3805
|
field,
|
3804
3806
|
name: fieldName,
|
3805
|
-
id
|
3807
|
+
id,
|
3806
3808
|
readOnly: !edit || readOnly[fieldName],
|
3807
3809
|
value: rootProps[fieldName],
|
3808
3810
|
onChange
|
3809
3811
|
},
|
3810
|
-
|
3812
|
+
id
|
3811
3813
|
);
|
3812
3814
|
}
|
3813
3815
|
}) }),
|
package/package.json
CHANGED