@vention/machine-ui 3.33.5 → 3.33.7

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/index.esm.js CHANGED
@@ -7790,7 +7790,7 @@ const VentionSelect = props => {
7790
7790
  const menuItem = menuItemsMap.get(value);
7791
7791
  return jsx(Box$1, {
7792
7792
  children: menuItem && "displayNode" in menuItem ? menuItem.displayNode : menuItem.displayText
7793
- }, value);
7793
+ }, toReactKey(value));
7794
7794
  })
7795
7795
  });
7796
7796
  }
@@ -7811,7 +7811,7 @@ const VentionSelect = props => {
7811
7811
  variant: typographyVariants.text,
7812
7812
  children: item.displayText
7813
7813
  }), "displayNode" in item && item.displayNode]
7814
- }, item.value))
7814
+ }, toReactKey(item.value)))
7815
7815
  })), errorText && jsxs(FormHelperText, {
7816
7816
  error: Boolean(errorText),
7817
7817
  classes: {
@@ -7979,6 +7979,12 @@ const getIconSize = size => {
7979
7979
  return 14;
7980
7980
  }
7981
7981
  };
7982
+ /**
7983
+ * `undefined` is not a valid React key, so we'll format it to the string `"undefined"`
7984
+ */
7985
+ function toReactKey(key) {
7986
+ return key !== null && key !== void 0 ? key : "undefined";
7987
+ }
7982
7988
 
7983
7989
  const VentionStepper = props => {
7984
7990
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-ui",
3
- "version": "3.33.5",
3
+ "version": "3.33.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"
@@ -12,7 +12,7 @@ export interface VentionSelectProps extends Omit<SelectProps, "placeholder" | "s
12
12
  variant: "outlined";
13
13
  value: string | number | string[] | number[] | undefined;
14
14
  onChange: (event: SelectChangeEvent<VentionSelectProps["value"]>, child: ReactNode) => void;
15
- menuItems: ReadonlyArray<VentionSelectMenuItem<string | number>>;
15
+ menuItems: ReadonlyArray<VentionSelectMenuItem<string | number | undefined>>;
16
16
  labelText?: string;
17
17
  isDisabled?: boolean;
18
18
  placeholder?: string;