@measured/puck 0.17.0-canary.9991c07 → 0.17.0-canary.b51954a

Sign up to get free protection for your applications and to get access to all the features.
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: `${selectedItem.props.id}_${fieldName}`,
3953
+ id,
3953
3954
  readOnly: !edit || readOnly[fieldName],
3954
3955
  value: selectedItem.props[fieldName],
3955
3956
  onChange
3956
3957
  },
3957
- `${selectedItem.props.id}_${fieldName}`
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: `root_${fieldName}`,
3971
+ id,
3970
3972
  readOnly: !edit || readOnly[fieldName],
3971
3973
  value: rootProps[fieldName],
3972
3974
  onChange
3973
3975
  },
3974
- `page_${fieldName}`
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: `${selectedItem.props.id}_${fieldName}`,
3789
+ id,
3789
3790
  readOnly: !edit || readOnly[fieldName],
3790
3791
  value: selectedItem.props[fieldName],
3791
3792
  onChange
3792
3793
  },
3793
- `${selectedItem.props.id}_${fieldName}`
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: `root_${fieldName}`,
3807
+ id,
3806
3808
  readOnly: !edit || readOnly[fieldName],
3807
3809
  value: rootProps[fieldName],
3808
3810
  onChange
3809
3811
  },
3810
- `page_${fieldName}`
3812
+ id
3811
3813
  );
3812
3814
  }
3813
3815
  }) }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck",
3
- "version": "0.17.0-canary.9991c07",
3
+ "version": "0.17.0-canary.b51954a",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",