@descope/flow-components 2.0.213 → 2.0.215

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.cjs.js CHANGED
@@ -227,7 +227,9 @@ const Phone = React__default.default.forwardRef(({ variant, ...props }, ref) =>
227
227
  return React__default.default.createElement(PhoneCountrySelection, { ...props, ref: ref });
228
228
  });
229
229
 
230
- const Select = React__default.default.forwardRef(({ children, ...restProps }, ref) => (React__default.default.createElement("descope-combo-box", { ...restProps, ref: ref }, children)));
230
+ const Select = React__default.default.forwardRef(({ children, data, ...restProps }, ref) => (React__default.default.createElement("descope-combo-box", { ...restProps, ref: ref, data:
231
+ // eslint-disable-next-line no-nested-ternary
232
+ data ? (typeof data !== 'string' ? JSON.stringify(data) : data) : '' }, children)));
231
233
  Select.defaultProps = {
232
234
  // eslint-disable-next-line react/default-props-match-prop-types
233
235
  size: 'md'
package/dist/index.d.ts CHANGED
@@ -289,11 +289,14 @@ declare const Phone: React.ForwardRefExoticComponent<Omit<Props$g, "ref"> & Reac
289
289
 
290
290
  type Props$f = {
291
291
  children?: JSX.Element[];
292
+ data?: string | Record<string, string>[];
292
293
  };
293
294
  declare global {
294
295
  namespace JSX {
295
296
  interface IntrinsicElements {
296
- 'descope-combo-box': DescopeInputProps;
297
+ 'descope-combo-box': DescopeInputProps & {
298
+ data?: string;
299
+ };
297
300
  }
298
301
  }
299
302
  }
package/dist/index.esm.js CHANGED
@@ -221,7 +221,9 @@ const Phone = React.forwardRef(({ variant, ...props }, ref) => {
221
221
  return React.createElement(PhoneCountrySelection, { ...props, ref: ref });
222
222
  });
223
223
 
224
- const Select = React.forwardRef(({ children, ...restProps }, ref) => (React.createElement("descope-combo-box", { ...restProps, ref: ref }, children)));
224
+ const Select = React.forwardRef(({ children, data, ...restProps }, ref) => (React.createElement("descope-combo-box", { ...restProps, ref: ref, data:
225
+ // eslint-disable-next-line no-nested-ternary
226
+ data ? (typeof data !== 'string' ? JSON.stringify(data) : data) : '' }, children)));
225
227
  Select.defaultProps = {
226
228
  // eslint-disable-next-line react/default-props-match-prop-types
227
229
  size: 'md'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.213",
3
+ "version": "2.0.215",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -100,7 +100,7 @@
100
100
  "rollup-plugin-dts": "^6.0.0"
101
101
  },
102
102
  "dependencies": {
103
- "@descope/web-components-ui": "1.0.261"
103
+ "@descope/web-components-ui": "1.0.268"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "react": ">=17"