@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.
Files changed (38) hide show
  1. package/dist/bundled-declarations.d.ts +1 -0
  2. package/dist/cjs/{_IframeSDK.4a7ea89d.js → _IframeSDK.398c9caf.js} +5 -5
  3. package/dist/cjs/_IframeSDK.398c9caf.js.map +7 -0
  4. package/dist/cjs/_IframeSDK.b1090eff.min.js +1 -0
  5. package/dist/cjs/_MyopHelpers.71a8a09b.js.map +1 -1
  6. package/dist/cjs/{_WebComponentSDK.0579265f.js → _WebComponentSDK.c8c6ebc0.js} +5 -5
  7. package/dist/cjs/_WebComponentSDK.c8c6ebc0.js.map +7 -0
  8. package/dist/cjs/{_WebComponentSDK.11b0056f.min.js → _WebComponentSDK.fc58ea5a.min.js} +1 -1
  9. package/dist/cjs/_hostSDK.2c80162b.min.js +1 -0
  10. package/dist/cjs/{_hostSDK.279d5ccb.js → _hostSDK.6d5f8f31.js} +5 -5
  11. package/dist/cjs/_hostSDK.6d5f8f31.js.map +7 -0
  12. package/dist/cjs/myop_sdk.js +29 -16
  13. package/dist/cjs/myop_sdk.js.map +3 -3
  14. package/dist/cjs/myop_sdk.min.js +1 -1
  15. package/dist/cjs-bundled/myop_sdk.bundled.js +24 -11
  16. package/dist/cjs-bundled/myop_sdk.bundled.js.map +3 -3
  17. package/dist/cjs-bundled/myop_sdk.bundled.min.js +1 -1
  18. package/dist/module/Iframe/index.js +6 -6
  19. package/dist/module/Iframe/index.js.map +2 -2
  20. package/dist/module/SDK.js +24 -11
  21. package/dist/module/SDK.js.map +3 -3
  22. package/dist/module/common/index.d.ts +1 -0
  23. package/dist/module/common/index.js +1 -1
  24. package/dist/module/common/index.js.map +2 -2
  25. package/dist/module/embeddedSDK.js +1 -1
  26. package/dist/module/helpers/index.js +1 -1
  27. package/dist/module/helpers/index.js.map +1 -1
  28. package/dist/module/host/embeddedSDK.js +1 -1
  29. package/dist/module/host/index.js +6 -6
  30. package/dist/module/host/index.js.map +2 -2
  31. package/dist/module/webcomponent/index.js +6 -6
  32. package/dist/module/webcomponent/index.js.map +2 -2
  33. package/package.json +1 -1
  34. package/dist/cjs/_IframeSDK.4a7ea89d.js.map +0 -7
  35. package/dist/cjs/_IframeSDK.fe8716bb.min.js +0 -1
  36. package/dist/cjs/_WebComponentSDK.0579265f.js.map +0 -7
  37. package/dist/cjs/_hostSDK.279d5ccb.js.map +0 -7
  38. package/dist/cjs/_hostSDK.eb048156.min.js +0 -1
@@ -380,6 +380,7 @@ declare module "@myop/sdk/common" {
380
380
  variants_data: {
381
381
  name: string;
382
382
  id: string;
383
+ description?: string;
383
384
  updatedOn?: string;
384
385
  updatedBy?: string;
385
386
  has_releases?: boolean;
@@ -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.22";
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 {