@sutech_jp/raas-react-client 0.0.37 → 0.0.38
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { VFC } from 'react';
|
|
2
|
+
import { Session } from '../types';
|
|
2
3
|
import { ThemeOptions } from '../types/theme';
|
|
3
4
|
declare type Props = {
|
|
4
|
-
|
|
5
|
+
session: Session | undefined;
|
|
5
6
|
data?: Record<string, any>;
|
|
6
7
|
width?: string | number;
|
|
7
8
|
height?: string | number;
|
|
@@ -4,7 +4,7 @@ exports.ReportDesigner = void 0;
|
|
|
4
4
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
var react_1 = require("react");
|
|
6
6
|
var ReportDesigner = function (_a) {
|
|
7
|
-
var
|
|
7
|
+
var session = _a.session, data = _a.data, _b = _a.width, width = _b === void 0 ? '100%' : _b, _c = _a.height, height = _c === void 0 ? '100%' : _c, customStyles = _a.customStyles, onBack = _a.onBack;
|
|
8
8
|
var iframe = (0, react_1.useRef)(null);
|
|
9
9
|
var handleMessage = (0, react_1.useCallback)(function (e) {
|
|
10
10
|
var _a;
|
|
@@ -33,6 +33,6 @@ var ReportDesigner = function (_a) {
|
|
|
33
33
|
window.addEventListener('message', handleMessage);
|
|
34
34
|
return function () { return window.removeEventListener('message', handleMessage); };
|
|
35
35
|
}, [handleMessage]);
|
|
36
|
-
return (0, jsx_runtime_1.jsx)("iframe", { ref: iframe, id: "designer", src:
|
|
36
|
+
return (0, jsx_runtime_1.jsx)("iframe", { ref: iframe, id: "designer", src: session === null || session === void 0 ? void 0 : session.newUrl, style: { width: width, height: height, border: 0 } });
|
|
37
37
|
};
|
|
38
38
|
exports.ReportDesigner = ReportDesigner;
|