@descope/flow-components 2.0.96 → 2.0.98

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
@@ -151,7 +151,7 @@ Container.defaultProps = {
151
151
 
152
152
  const Divider = React__default.default.forwardRef(({ children, ...restProps }, ref) => (React__default.default.createElement("descope-divider", { ...restProps, ref: ref }, children)));
153
153
 
154
- const Image = React__default.default.forwardRef(({ width, height, ...restProps }, ref) => (React__default.default.createElement("descope-image", { ...restProps, ref: ref, "st-width": `${width}px`, "st-height": `${height}px` })));
154
+ const Image = React__default.default.forwardRef(({ width, height, ...restProps }, ref) => (React__default.default.createElement("descope-image", { ...restProps, ref: ref, "st-width": width, "st-height": height })));
155
155
 
156
156
  const NumberField = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-number-field", { ...props, ref: ref }));
157
157
  NumberField.defaultProps = {
package/dist/index.d.ts CHANGED
@@ -175,17 +175,19 @@ declare const _default: ({ noColor }: {
175
175
  }) => React.JSX.Element;
176
176
 
177
177
  type Props$b = {
178
- width?: number;
179
- height?: number;
178
+ width?: string;
179
+ height?: string;
180
+ alt?: string;
181
+ src: string;
180
182
  };
181
183
  declare global {
182
184
  namespace JSX {
183
185
  interface IntrinsicElements {
184
- 'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLImageElement>, HTMLImageElement> & Props$b;
186
+ 'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$b;
185
187
  }
186
188
  }
187
189
  }
188
- declare const Image: React.ForwardRefExoticComponent<Props$b & React.HTMLAttributes<HTMLImageElement> & React.RefAttributes<HTMLImageElement>>;
190
+ declare const Image: React.ForwardRefExoticComponent<Props$b & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
189
191
 
190
192
  declare const Input: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
191
193
 
package/dist/index.esm.js CHANGED
@@ -145,7 +145,7 @@ Container.defaultProps = {
145
145
 
146
146
  const Divider = React.forwardRef(({ children, ...restProps }, ref) => (React.createElement("descope-divider", { ...restProps, ref: ref }, children)));
147
147
 
148
- const Image = React.forwardRef(({ width, height, ...restProps }, ref) => (React.createElement("descope-image", { ...restProps, ref: ref, "st-width": `${width}px`, "st-height": `${height}px` })));
148
+ const Image = React.forwardRef(({ width, height, ...restProps }, ref) => (React.createElement("descope-image", { ...restProps, ref: ref, "st-width": width, "st-height": height })));
149
149
 
150
150
  const NumberField = React.forwardRef((props, ref) => React.createElement("descope-number-field", { ...props, ref: ref }));
151
151
  NumberField.defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.96",
3
+ "version": "2.0.98",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -100,7 +100,7 @@
100
100
  "typescript": "^4.5.3"
101
101
  },
102
102
  "dependencies": {
103
- "@descope/web-components-ui": "1.0.161",
103
+ "@descope/web-components-ui": "1.0.162",
104
104
  "rollup-plugin-dts": "^5.3.0"
105
105
  },
106
106
  "peerDependencies": {