@sutech_jp/raas-react-client 0.0.43 → 0.0.45

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.
@@ -56,7 +56,7 @@ var ReportPaperForm = function (_a) {
56
56
  downloadable: downloadable,
57
57
  customStyles: customStyles,
58
58
  }, (0, targetOrigin_1.getTargetOrigin)(session === null || session === void 0 ? void 0 : session.newUrl));
59
- }, [formState, layoutId, editability, layout, layoutEditable, version, customStyles, downloadable, session]);
59
+ }, [formState, layoutId, editability, layout, layoutEditable, version, customStyles, downloadable, session === null || session === void 0 ? void 0 : session.newUrl]);
60
60
  (0, react_1.useEffect)(function () {
61
61
  var _a;
62
62
  if (formState === 'unauthorized')
@@ -75,7 +75,7 @@ var ReportPaperForm = function (_a) {
75
75
  customData: customData,
76
76
  options: reportOptions,
77
77
  }, (0, targetOrigin_1.getTargetOrigin)(session === null || session === void 0 ? void 0 : session.newUrl));
78
- }, [formState, layoutInitialized, data, customData, reportOptions, session]);
78
+ }, [formState, layoutInitialized, data, customData, reportOptions, session === null || session === void 0 ? void 0 : session.newUrl]);
79
79
  var handleMessage = (0, react_1.useCallback)(function (e) {
80
80
  if ((0, targetOrigin_1.getTargetOrigin)(session === null || session === void 0 ? void 0 : session.newUrl) !== '*' && e.origin !== (0, targetOrigin_1.getTargetOrigin)(session === null || session === void 0 ? void 0 : session.newUrl)) {
81
81
  return;
@@ -115,7 +115,7 @@ var ReportPaperForm = function (_a) {
115
115
  else if (action === 'onChangeContentHeight') {
116
116
  setContentHeight(message === null || message === void 0 ? void 0 : message.contentHeight);
117
117
  }
118
- }, [session, onRender, onDataUpdate, data, onCustomDataUpdate, onLayoutUpdate]);
118
+ }, [session === null || session === void 0 ? void 0 : session.newUrl, onRender, onDataUpdate, data, onCustomDataUpdate, onLayoutUpdate]);
119
119
  (0, react_1.useEffect)(function () {
120
120
  window.addEventListener('message', handleMessage);
121
121
  return function () { return window.removeEventListener('message', handleMessage); };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sutech_jp/raas-react-client",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
4
4
  "description": "react client for raas produced by SuTech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",