@sutech_jp/datatraveler-react-client 0.1.24 → 0.1.26

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.
@@ -10,6 +10,7 @@ declare type Props = {
10
10
  application: string;
11
11
  schema: string;
12
12
  dataIds: string[];
13
+ layoutId: number;
13
14
  onChange?: (property: string, rowIndex: number | undefined, value: ItemValue, values: BusinessData) => void;
14
15
  };
15
16
  export declare const DataTravelerBulkWebForm: VFC<Props>;
@@ -41,7 +41,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
41
41
  var react_1 = require("react");
42
42
  var targetOrigin_1 = require("./util/targetOrigin");
43
43
  var DataTravelerBulkWebForm = function (_a) {
44
- var session = _a.session, _b = _a.width, width = _b === void 0 ? '100%' : _b, _c = _a.height, height = _c === void 0 ? '100%' : _c, customStyles = _a.customStyles, application = _a.application, schema = _a.schema, dataIds = _a.dataIds, onChange = _a.onChange;
44
+ var session = _a.session, _b = _a.width, width = _b === void 0 ? '100%' : _b, _c = _a.height, height = _c === void 0 ? '100%' : _c, customStyles = _a.customStyles, application = _a.application, schema = _a.schema, dataIds = _a.dataIds, layoutId = _a.layoutId, onChange = _a.onChange;
45
45
  var iframe = (0, react_1.useRef)(null);
46
46
  var sendMessage = (0, react_1.useCallback)(function (action, props, requestId) {
47
47
  var _a;
@@ -75,6 +75,7 @@ var DataTravelerBulkWebForm = function (_a) {
75
75
  application: application,
76
76
  schema: schema,
77
77
  dataIds: dataIds,
78
+ layoutId: layoutId,
78
79
  });
79
80
  }
80
81
  else if (action === 'onChange') {
@@ -86,7 +87,7 @@ var DataTravelerBulkWebForm = function (_a) {
86
87
  }
87
88
  return [2 /*return*/];
88
89
  });
89
- }); }, [customStyles, onChange, sendMessage, session === null || session === void 0 ? void 0 : session.newUrl, width, height, application, schema, dataIds]);
90
+ }); }, [customStyles, onChange, sendMessage, session === null || session === void 0 ? void 0 : session.newUrl, width, height, application, schema, dataIds, layoutId]);
90
91
  (0, react_1.useEffect)(function () {
91
92
  window.addEventListener('message', handleMessage);
92
93
  return function () { return window.removeEventListener('message', handleMessage); };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sutech_jp/datatraveler-react-client",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "react client for data traveler produced by SuTech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",