@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
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
|
|
378
378
|
return AddToCartContext;
|
|
379
379
|
}(ContextCallClass);
|
|
380
|
-
var EditProductLinesOnCartContext = /*#__PURE__*/function (_ContextCallClass2) {
|
|
380
|
+
var EditProductLinesOnCartContext$1 = /*#__PURE__*/function (_ContextCallClass2) {
|
|
381
381
|
_inherits(EditProductLinesOnCartContext, _ContextCallClass2);
|
|
382
382
|
|
|
383
383
|
var _super2 = _createSuper(EditProductLinesOnCartContext);
|
|
@@ -780,6 +780,55 @@
|
|
|
780
780
|
|
|
781
781
|
return AddToCartContext;
|
|
782
782
|
}(ContextCallClass);
|
|
783
|
+
var EditProductLinesOnCartContext = /*#__PURE__*/function (_ContextCallClass2) {
|
|
784
|
+
_inherits(EditProductLinesOnCartContext, _ContextCallClass2);
|
|
785
|
+
|
|
786
|
+
var _super2 = _createSuper(EditProductLinesOnCartContext);
|
|
787
|
+
|
|
788
|
+
function EditProductLinesOnCartContext() {
|
|
789
|
+
var _this2;
|
|
790
|
+
|
|
791
|
+
_classCallCheck(this, EditProductLinesOnCartContext);
|
|
792
|
+
|
|
793
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
794
|
+
args[_key2] = arguments[_key2];
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
798
|
+
|
|
799
|
+
_defineProperty(_assertThisInitialized(_this2), "productId", void 0);
|
|
800
|
+
|
|
801
|
+
_defineProperty(_assertThisInitialized(_this2), "cartId", void 0);
|
|
802
|
+
|
|
803
|
+
_defineProperty(_assertThisInitialized(_this2), "warehouses", void 0);
|
|
804
|
+
|
|
805
|
+
_defineProperty(_assertThisInitialized(_this2), "warehouseId", void 0);
|
|
806
|
+
|
|
807
|
+
_defineProperty(_assertThisInitialized(_this2), "meta", void 0);
|
|
808
|
+
|
|
809
|
+
_defineProperty(_assertThisInitialized(_this2), "productLineId", void 0);
|
|
810
|
+
|
|
811
|
+
_defineProperty(_assertThisInitialized(_this2), "productLines", void 0);
|
|
812
|
+
|
|
813
|
+
_defineProperty(_assertThisInitialized(_this2), "pluginProductLines", void 0);
|
|
814
|
+
|
|
815
|
+
return _this2;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
_createClass(EditProductLinesOnCartContext, [{
|
|
819
|
+
key: "closePlugin",
|
|
820
|
+
value: function closePlugin() {
|
|
821
|
+
return this.call('closePlugin');
|
|
822
|
+
}
|
|
823
|
+
}, {
|
|
824
|
+
key: "closePluginAndRefreshCart",
|
|
825
|
+
value: function closePluginAndRefreshCart() {
|
|
826
|
+
return this.call('closePluginAndRefreshCart');
|
|
827
|
+
}
|
|
828
|
+
}]);
|
|
829
|
+
|
|
830
|
+
return EditProductLinesOnCartContext;
|
|
831
|
+
}(ContextCallClass);
|
|
783
832
|
|
|
784
833
|
var ShopCatalog = /*#__PURE__*/function (_BaseCallClass) {
|
|
785
834
|
_inherits(ShopCatalog, _BaseCallClass);
|
|
@@ -1285,10 +1334,9 @@
|
|
|
1285
1334
|
}, {
|
|
1286
1335
|
key: "sendFrameHeight",
|
|
1287
1336
|
value: function sendFrameHeight() {
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
this.channel.postMessage(main.Message.FRAME_HEIGHT_CHANGE, height);
|
|
1337
|
+
// html element has scrollHeight same as height set on iframe so we cant use it
|
|
1338
|
+
var body = document.body;
|
|
1339
|
+
this.channel.postMessage(main.Message.FRAME_HEIGHT_CHANGE, body.scrollHeight);
|
|
1292
1340
|
}
|
|
1293
1341
|
}, {
|
|
1294
1342
|
key: "initializeHeightObserver",
|
|
@@ -1481,9 +1529,10 @@
|
|
|
1481
1529
|
}(Sdk);
|
|
1482
1530
|
|
|
1483
1531
|
exports.BackofficeAddToCartContext = AddToCartContext$1;
|
|
1484
|
-
exports.BackofficeEditProductLinesOnCartContext = EditProductLinesOnCartContext;
|
|
1532
|
+
exports.BackofficeEditProductLinesOnCartContext = EditProductLinesOnCartContext$1;
|
|
1485
1533
|
exports.BackofficeSdk = BackofficeSdk;
|
|
1486
1534
|
exports.ShopAddToCartContext = AddToCartContext;
|
|
1535
|
+
exports.ShopEditProductLinesOnCartContext = EditProductLinesOnCartContext;
|
|
1487
1536
|
exports.ShopSdk = ShopSdk;
|
|
1488
1537
|
|
|
1489
1538
|
Object.defineProperty(exports, '__esModule', { value: true });
|