@myop/sdk 0.3.22 → 0.3.24
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.
- package/dist/bundled-declarations.d.ts +1 -0
- package/dist/cjs/{_IframeSDK.4a7ea89d.js → _IframeSDK.398c9caf.js} +5 -5
- package/dist/cjs/_IframeSDK.398c9caf.js.map +7 -0
- package/dist/cjs/_IframeSDK.b1090eff.min.js +1 -0
- package/dist/cjs/_MyopHelpers.71a8a09b.js.map +1 -1
- package/dist/cjs/{_WebComponentSDK.0579265f.js → _WebComponentSDK.c8c6ebc0.js} +5 -5
- package/dist/cjs/_WebComponentSDK.c8c6ebc0.js.map +7 -0
- package/dist/cjs/{_WebComponentSDK.11b0056f.min.js → _WebComponentSDK.fc58ea5a.min.js} +1 -1
- package/dist/cjs/_hostSDK.2c80162b.min.js +1 -0
- package/dist/cjs/{_hostSDK.279d5ccb.js → _hostSDK.6d5f8f31.js} +5 -5
- package/dist/cjs/_hostSDK.6d5f8f31.js.map +7 -0
- package/dist/cjs/myop_sdk.js +29 -16
- package/dist/cjs/myop_sdk.js.map +3 -3
- package/dist/cjs/myop_sdk.min.js +1 -1
- package/dist/cjs-bundled/myop_sdk.bundled.js +24 -11
- package/dist/cjs-bundled/myop_sdk.bundled.js.map +3 -3
- package/dist/cjs-bundled/myop_sdk.bundled.min.js +1 -1
- package/dist/module/Iframe/index.js +6 -6
- package/dist/module/Iframe/index.js.map +2 -2
- package/dist/module/SDK.js +24 -11
- package/dist/module/SDK.js.map +3 -3
- package/dist/module/common/index.d.ts +1 -0
- package/dist/module/common/index.js +1 -1
- package/dist/module/common/index.js.map +2 -2
- package/dist/module/embeddedSDK.js +1 -1
- package/dist/module/helpers/index.js +1 -1
- package/dist/module/helpers/index.js.map +1 -1
- package/dist/module/host/embeddedSDK.js +1 -1
- package/dist/module/host/index.js +6 -6
- package/dist/module/host/index.js.map +2 -2
- package/dist/module/webcomponent/index.js +6 -6
- package/dist/module/webcomponent/index.js.map +2 -2
- package/package.json +1 -1
- package/dist/cjs/_IframeSDK.4a7ea89d.js.map +0 -7
- package/dist/cjs/_IframeSDK.fe8716bb.min.js +0 -1
- package/dist/cjs/_WebComponentSDK.0579265f.js.map +0 -7
- package/dist/cjs/_hostSDK.279d5ccb.js.map +0 -7
- package/dist/cjs/_hostSDK.eb048156.min.js +0 -1
|
@@ -1692,8 +1692,8 @@ var MyopIframeComponent = class extends BaseMyopComponent {
|
|
|
1692
1692
|
container.style.transition = "none";
|
|
1693
1693
|
const currentIframeHeight = iframe.getBoundingClientRect().height;
|
|
1694
1694
|
const currentIframeWidth = iframe.getBoundingClientRect().width;
|
|
1695
|
-
const preScrollHeight = Math.ceil(Math.max(contentDoc.documentElement.scrollHeight, contentDoc.body.scrollHeight));
|
|
1696
|
-
const preScrollWidth = Math.ceil(Math.max(contentDoc.documentElement.scrollWidth, contentDoc.body.scrollWidth));
|
|
1695
|
+
const preScrollHeight = Math.ceil(Math.max(contentDoc.documentElement.scrollHeight, contentDoc.body.scrollHeight, contentDoc.body.getBoundingClientRect().height));
|
|
1696
|
+
const preScrollWidth = Math.ceil(Math.max(contentDoc.documentElement.scrollWidth, contentDoc.body.scrollWidth, contentDoc.body.getBoundingClientRect().width));
|
|
1697
1697
|
let contentWidth = preScrollWidth;
|
|
1698
1698
|
let contentHeight = preScrollHeight;
|
|
1699
1699
|
const heightGrew = shouldAutoHeight && preScrollHeight > currentIframeHeight + 1;
|
|
@@ -1707,8 +1707,8 @@ var MyopIframeComponent = class extends BaseMyopComponent {
|
|
|
1707
1707
|
if (needsWidthCollapse) container.style.minWidth = "".concat(currentIframeWidth, "px");
|
|
1708
1708
|
if (needsHeightCollapse) iframe.style.height = "0px";
|
|
1709
1709
|
if (needsWidthCollapse) iframe.style.width = "0px";
|
|
1710
|
-
contentWidth = Math.ceil(Math.max(contentDoc.documentElement.scrollWidth, contentDoc.body.scrollWidth));
|
|
1711
|
-
contentHeight = Math.ceil(Math.max(contentDoc.documentElement.scrollHeight, contentDoc.body.scrollHeight));
|
|
1710
|
+
contentWidth = Math.ceil(Math.max(contentDoc.documentElement.scrollWidth, contentDoc.body.scrollWidth, contentDoc.body.getBoundingClientRect().width));
|
|
1711
|
+
contentHeight = Math.ceil(Math.max(contentDoc.documentElement.scrollHeight, contentDoc.body.scrollHeight, contentDoc.body.getBoundingClientRect().height));
|
|
1712
1712
|
container.style.minHeight = prevMinHeight;
|
|
1713
1713
|
container.style.minWidth = prevMinWidth;
|
|
1714
1714
|
}
|
|
@@ -2029,7 +2029,7 @@ var WebcomponentLoader = class extends BaseMyopLoader {
|
|
|
2029
2029
|
};
|
|
2030
2030
|
|
|
2031
2031
|
// version:myop-sdk-version
|
|
2032
|
-
var myop_sdk_version_default = "0.3.
|
|
2032
|
+
var myop_sdk_version_default = "0.3.24";
|
|
2033
2033
|
|
|
2034
2034
|
// src/webcomponent/messageHandlers/BaseWebComponentMessageHandler.ts
|
|
2035
2035
|
var BaseWebComponentMessageHandler = class extends BaseContextMessageHandler {
|