@plasmicpkgs/antd5 0.0.132 → 0.0.136

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.
@@ -135,7 +135,7 @@ export interface FormGroupProps {
135
135
  export declare function FormGroup(props: FormGroupProps): React.JSX.Element;
136
136
  export declare const formGroupComponentName = "plasmic-antd5-form-group";
137
137
  export declare function registerFormGroup(loader?: Registerable): void;
138
- export declare const FormListWrapper: React.ForwardRefExoticComponent<FormListProps & {
138
+ export declare const FormListWrapper: React.ForwardRefExoticComponent<Omit<FormListProps, "children"> & {
139
139
  children: React.ReactNode;
140
140
  } & React.RefAttributes<FormListOperation>>;
141
141
  export declare const formListComponentName = "plasmic-antd5-form-list";
@@ -3,7 +3,7 @@ import { Menu as AntdMenu } from "antd";
3
3
  import { Registerable } from "./utils";
4
4
  export { AntdMenu };
5
5
  export declare const AntdMenuDivider: import("react").FC<import("antd/es/menu").MenuDividerProps>;
6
- export declare const AntdMenuItem: Omit<import("react").FunctionComponent<import("antd").MenuItemProps>, ""> & (<T extends import("antd").MenuItemProps>(props: T extends infer U extends import("antd").MenuItemProps ? unknown extends U ? import("antd").MenuItemProps : U : import("antd").MenuItemProps, context?: any) => import("react").ReactElement<any, any> | null);
6
+ export declare const AntdMenuItem: Omit<import("react").FunctionComponent<import("antd").MenuItemProps>, ""> & (<T extends import("antd").MenuItemProps>(props: T extends infer U extends import("antd").MenuItemProps ? unknown extends U ? import("antd").MenuItemProps : U : import("antd").MenuItemProps, context?: any) => import("react").ReactNode);
7
7
  export declare const AntdMenuItemGroup: typeof import("rc-menu").MenuItemGroup;
8
8
  export declare const AntdSubMenu: import("react").FC<import("antd").SubMenuProps>;
9
9
  export declare const MENU_ITEM_TYPE: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/antd5",
3
- "version": "0.0.132",
3
+ "version": "0.0.136",
4
4
  "description": "Plasmic registration calls for antd components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -62,10 +62,10 @@
62
62
  "@babel/preset-env": "^7.22.15",
63
63
  "@babel/preset-react": "^7.22.15",
64
64
  "@babel/preset-typescript": "^7.22.15",
65
- "@plasmicapp/data-sources": "0.1.115",
66
- "@plasmicapp/host": "1.0.165",
65
+ "@plasmicapp/data-sources": "0.1.117",
66
+ "@plasmicapp/host": "1.0.166",
67
67
  "@plasmicapp/query": "0.1.68",
68
- "@plasmicapp/react-web": "0.2.258",
68
+ "@plasmicapp/react-web": "0.2.261",
69
69
  "@storybook/addon-actions": "^7.4.0",
70
70
  "@storybook/addon-essentials": "^7.4.0",
71
71
  "@storybook/addon-info": "^5.3.21",
@@ -99,5 +99,5 @@
99
99
  "publishConfig": {
100
100
  "access": "public"
101
101
  },
102
- "gitHead": "7fcbeeb029e7a41aaa58fa554034e21886517bbe"
102
+ "gitHead": "dbe6519e32e754c106a17535505bd1ae7cff082d"
103
103
  }
@@ -904,7 +904,7 @@ function FormItemWrapper(props) {
904
904
  if (prevPropValues.current.name !== props.name) {
905
905
  forceRemount == null ? void 0 : forceRemount();
906
906
  }
907
- if (!fullFormItemName || utils.get(initialValues, fullFormItemName) != null) {
907
+ if (!fullFormItemName || utils.get(initialValues, fullFormItemName) != null || props.initialValue == null) {
908
908
  return;
909
909
  }
910
910
  form == null ? void 0 : form.setFieldValue(fullFormItemName, props.initialValue);
@@ -913,7 +913,7 @@ function FormItemWrapper(props) {
913
913
  }, [
914
914
  form,
915
915
  props.initialValue,
916
- pathCtx.fullPath,
916
+ JSON.stringify(pathCtx.fullPath),
917
917
  props.name,
918
918
  props.preserve
919
919
  ]);
@@ -1546,7 +1546,7 @@ const FormListWrapper = React__default.default.forwardRef(function FormListWrapp
1546
1546
  prevPropValues.current.initialValue = props.initialValue;
1547
1547
  fireOnValuesChange == null ? void 0 : fireOnValuesChange();
1548
1548
  }
1549
- }, [props.initialValue, fullFormItemName]);
1549
+ }, [JSON.stringify(props.initialValue), JSON.stringify(fullFormItemName)]);
1550
1550
  }
1551
1551
  return /* @__PURE__ */ React__default.default.createElement(FormList, __spreadProps(__spreadValues({}, props), { name: relativeFormItemName != null ? relativeFormItemName : [] }), (...args) => {
1552
1552
  operationsRef.current = args;
@@ -1569,6 +1569,7 @@ function registerFormList(loader) {
1569
1569
  parentComponentName: formComponentName,
1570
1570
  displayName: "Form List",
1571
1571
  actions: COMMON_ACTIONS,
1572
+ providesData: true,
1572
1573
  props: {
1573
1574
  children: {
1574
1575
  type: "slot",