@one-commerce/sdk-core 2.0.0 → 2.1.1-KALET-149-autoheight-fix.0
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/lib/bundles/bundle.esm.js +54 -6
- package/lib/bundles/bundle.esm.js.map +1 -1
- package/lib/bundles/bundle.esm.min.js +1 -1
- package/lib/bundles/bundle.esm.min.js.map +1 -1
- package/lib/bundles/bundle.umd.js +55 -6
- package/lib/bundles/bundle.umd.js.map +1 -1
- package/lib/bundles/bundle.umd.min.js +1 -1
- package/lib/bundles/bundle.umd.min.js.map +1 -1
- package/lib/cjs/index.js +9 -4
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/shop/context.js +53 -1
- package/lib/cjs/shop/context.js.map +1 -1
- package/lib/esm/index.js +5 -6
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/shop/context.js +30 -0
- package/lib/esm/shop/context.js.map +1 -1
- package/lib/types/index.d.ts +3 -3
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shop/context.d.ts +13 -1
- package/lib/types/shop/context.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -371,7 +371,7 @@ var AddToCartContext$1 = /*#__PURE__*/function (_ContextCallClass) {
|
|
|
371
371
|
|
|
372
372
|
return AddToCartContext;
|
|
373
373
|
}(ContextCallClass);
|
|
374
|
-
var EditProductLinesOnCartContext = /*#__PURE__*/function (_ContextCallClass2) {
|
|
374
|
+
var EditProductLinesOnCartContext$1 = /*#__PURE__*/function (_ContextCallClass2) {
|
|
375
375
|
_inherits(EditProductLinesOnCartContext, _ContextCallClass2);
|
|
376
376
|
|
|
377
377
|
var _super2 = _createSuper(EditProductLinesOnCartContext);
|
|
@@ -774,6 +774,55 @@ var AddToCartContext = /*#__PURE__*/function (_ContextCallClass) {
|
|
|
774
774
|
|
|
775
775
|
return AddToCartContext;
|
|
776
776
|
}(ContextCallClass);
|
|
777
|
+
var EditProductLinesOnCartContext = /*#__PURE__*/function (_ContextCallClass2) {
|
|
778
|
+
_inherits(EditProductLinesOnCartContext, _ContextCallClass2);
|
|
779
|
+
|
|
780
|
+
var _super2 = _createSuper(EditProductLinesOnCartContext);
|
|
781
|
+
|
|
782
|
+
function EditProductLinesOnCartContext() {
|
|
783
|
+
var _this2;
|
|
784
|
+
|
|
785
|
+
_classCallCheck(this, EditProductLinesOnCartContext);
|
|
786
|
+
|
|
787
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
788
|
+
args[_key2] = arguments[_key2];
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
792
|
+
|
|
793
|
+
_defineProperty(_assertThisInitialized(_this2), "productId", void 0);
|
|
794
|
+
|
|
795
|
+
_defineProperty(_assertThisInitialized(_this2), "cartId", void 0);
|
|
796
|
+
|
|
797
|
+
_defineProperty(_assertThisInitialized(_this2), "warehouses", void 0);
|
|
798
|
+
|
|
799
|
+
_defineProperty(_assertThisInitialized(_this2), "warehouseId", void 0);
|
|
800
|
+
|
|
801
|
+
_defineProperty(_assertThisInitialized(_this2), "meta", void 0);
|
|
802
|
+
|
|
803
|
+
_defineProperty(_assertThisInitialized(_this2), "productLineId", void 0);
|
|
804
|
+
|
|
805
|
+
_defineProperty(_assertThisInitialized(_this2), "productLines", void 0);
|
|
806
|
+
|
|
807
|
+
_defineProperty(_assertThisInitialized(_this2), "pluginProductLines", void 0);
|
|
808
|
+
|
|
809
|
+
return _this2;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
_createClass(EditProductLinesOnCartContext, [{
|
|
813
|
+
key: "closePlugin",
|
|
814
|
+
value: function closePlugin() {
|
|
815
|
+
return this.call('closePlugin');
|
|
816
|
+
}
|
|
817
|
+
}, {
|
|
818
|
+
key: "closePluginAndRefreshCart",
|
|
819
|
+
value: function closePluginAndRefreshCart() {
|
|
820
|
+
return this.call('closePluginAndRefreshCart');
|
|
821
|
+
}
|
|
822
|
+
}]);
|
|
823
|
+
|
|
824
|
+
return EditProductLinesOnCartContext;
|
|
825
|
+
}(ContextCallClass);
|
|
777
826
|
|
|
778
827
|
var ShopCatalog = /*#__PURE__*/function (_BaseCallClass) {
|
|
779
828
|
_inherits(ShopCatalog, _BaseCallClass);
|
|
@@ -1279,10 +1328,9 @@ var Sdk = /*#__PURE__*/function (_Events) {
|
|
|
1279
1328
|
}, {
|
|
1280
1329
|
key: "sendFrameHeight",
|
|
1281
1330
|
value: function sendFrameHeight() {
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
this.channel.postMessage(main.Message.FRAME_HEIGHT_CHANGE, height);
|
|
1331
|
+
// html element has scrollHeight same as height set on iframe so we cant use it
|
|
1332
|
+
var body = document.body;
|
|
1333
|
+
this.channel.postMessage(main.Message.FRAME_HEIGHT_CHANGE, body.scrollHeight);
|
|
1286
1334
|
}
|
|
1287
1335
|
}, {
|
|
1288
1336
|
key: "initializeHeightObserver",
|
|
@@ -1474,5 +1522,5 @@ var ShopSdk = /*#__PURE__*/function (_Sdk2) {
|
|
|
1474
1522
|
return _createClass(ShopSdk);
|
|
1475
1523
|
}(Sdk);
|
|
1476
1524
|
|
|
1477
|
-
export { AddToCartContext$1 as BackofficeAddToCartContext, EditProductLinesOnCartContext as BackofficeEditProductLinesOnCartContext, BackofficeSdk, SdkEvents, AddToCartContext as ShopAddToCartContext, ShopSdk };
|
|
1525
|
+
export { AddToCartContext$1 as BackofficeAddToCartContext, EditProductLinesOnCartContext$1 as BackofficeEditProductLinesOnCartContext, BackofficeSdk, SdkEvents, AddToCartContext as ShopAddToCartContext, EditProductLinesOnCartContext as ShopEditProductLinesOnCartContext, ShopSdk };
|
|
1478
1526
|
//# sourceMappingURL=bundle.esm.js.map
|