@one-commerce/sdk-core 2.0.0 → 2.1.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 +51 -2
- 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 +52 -2
- 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 +6 -0
- 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 +2 -2
- 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);
|
|
@@ -1481,9 +1530,10 @@
|
|
|
1481
1530
|
}(Sdk);
|
|
1482
1531
|
|
|
1483
1532
|
exports.BackofficeAddToCartContext = AddToCartContext$1;
|
|
1484
|
-
exports.BackofficeEditProductLinesOnCartContext = EditProductLinesOnCartContext;
|
|
1533
|
+
exports.BackofficeEditProductLinesOnCartContext = EditProductLinesOnCartContext$1;
|
|
1485
1534
|
exports.BackofficeSdk = BackofficeSdk;
|
|
1486
1535
|
exports.ShopAddToCartContext = AddToCartContext;
|
|
1536
|
+
exports.ShopEditProductLinesOnCartContext = EditProductLinesOnCartContext;
|
|
1487
1537
|
exports.ShopSdk = ShopSdk;
|
|
1488
1538
|
|
|
1489
1539
|
Object.defineProperty(exports, '__esModule', { value: true });
|