@plasmicpkgs/antd5 0.0.310 → 0.0.314

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.
@@ -6,4 +6,4 @@ export declare function registerForm(loader?: Registerable): void;
6
6
  export { FormGroup } from "./FormGroup";
7
7
  export { FormItemWrapper } from "./FormItem";
8
8
  export { FormListWrapper } from "./FormList";
9
- export { formHelpers, FormWrapper };
9
+ export { FormWrapper, formHelpers };
package/dist/index.js CHANGED
@@ -2667,13 +2667,14 @@ function registerForm(loader) {
2667
2667
  return ps.data ? contextData == null ? void 0 : contextData.minimalFullLengthFields : void 0;
2668
2668
  },
2669
2669
  unstable__canDelete: (item, ps, ctx) => {
2670
+ var _a;
2670
2671
  if (ps.mode !== "simplified") {
2671
2672
  return true;
2672
2673
  }
2673
- if (!(ctx == null ? void 0 : ctx.schema)) {
2674
+ if (!(ctx == null ? void 0 : ctx.schema) || Object.keys(ctx.schema).length === 0) {
2674
2675
  return false;
2675
2676
  }
2676
- if (item.fieldId && ctx.schema.fields.some((f) => f.id === item.fieldId)) {
2677
+ if (item.fieldId && ((_a = ctx.schema.fields) == null ? void 0 : _a.some((f) => f.id === item.fieldId))) {
2677
2678
  return false;
2678
2679
  }
2679
2680
  return true;