awing-library 2.1.160-dev → 2.1.161-dev

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.
@@ -43,17 +43,15 @@ var Preview = function (props) {
43
43
  var _a;
44
44
  var classes = useStyles();
45
45
  var t = (0, react_i18next_1.useTranslation)().t;
46
- var validStatus = props.validStatus, pagePath = props.pagePath, templateDatas = props.templateDatas,
47
- // domainId,
48
- configs = props.configs;
46
+ var validStatus = props.validStatus, pagePath = props.pagePath, templateDatas = props.templateDatas, domainId = props.domainId, configs = props.configs;
49
47
  var viewIndex = ((_a = templateDatas[0]) === null || _a === void 0 ? void 0 : _a.viewNumber) || -1;
50
48
  var formRef = react_1.default.useRef(null);
51
49
  var iframeSrc = (0, react_1.useMemo)(function () {
52
- var result = "".concat(configs.CAPTIVE_DOMAIN, "/").concat(configs.TEMPLATE_PREVIEW);
50
+ var result = "".concat(configs.CAPTIVE_DOMAIN, "/").concat(configs.TEMPLATE_PREVIEW, "?domainId=").concat(domainId);
53
51
  if (result.startsWith("http://"))
54
52
  result = result.replace("http://", "https://");
55
53
  return result;
56
- }, [configs.CAPTIVE_DOMAIN, configs.TEMPLATE_PREVIEW]);
54
+ }, [configs.CAPTIVE_DOMAIN, configs.TEMPLATE_PREVIEW, domainId]);
57
55
  (0, react_1.useEffect)(function () {
58
56
  var handleFormdata = function (_a) {
59
57
  var formData = _a.formData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.160-dev",
3
+ "version": "2.1.161-dev",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",