@tap-payments/os-micro-frontend-shared 0.1.48-test.5 → 0.1.48-test.6
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.
|
@@ -3,6 +3,5 @@ import { BoxProps } from '@mui/material/Box';
|
|
|
3
3
|
interface WidgetI extends BoxProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
declare
|
|
7
|
-
declare const _default: import("react").MemoExoticComponent<typeof Widget>;
|
|
6
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<WidgetI, "ref"> & import("react").RefAttributes<HTMLElement>>>;
|
|
8
7
|
export default _default;
|
|
@@ -10,10 +10,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { memo } from 'react';
|
|
13
|
+
import { memo, forwardRef } from 'react';
|
|
14
14
|
import { WidgetStyled } from './style';
|
|
15
|
-
function Widget(_a) {
|
|
15
|
+
const Widget = forwardRef(function Widget(_a, ref) {
|
|
16
16
|
var { children } = _a, props = __rest(_a, ["children"]);
|
|
17
|
-
return (_jsx(WidgetStyled, Object.assign({ component: "article", "data-testid": "Widget" }, props, { children: children })));
|
|
18
|
-
}
|
|
17
|
+
return (_jsx(WidgetStyled, Object.assign({ ref: ref, component: "article", "data-testid": "Widget" }, props, { children: children })));
|
|
18
|
+
});
|
|
19
19
|
export default memo(Widget);
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.48-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.48-test.6",
|
|
5
|
+
"testVersion": 6,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|