@one-commerce/sdk-core 1.19.0-alpha.0 → 1.19.3-alpha.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 +73 -13
- 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 +73 -12
- 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/backoffice/context.js +37 -15
- package/lib/cjs/backoffice/context.js.map +1 -1
- package/lib/cjs/index.js +8 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/backoffice/context.js +12 -3
- package/lib/esm/backoffice/context.js.map +1 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/types/backoffice/context.d.ts +6 -2
- package/lib/types/backoffice/context.d.ts.map +1 -1
- package/lib/types/index.d.ts +4 -4
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -213,18 +213,7 @@ exports.Errors = exports.Message = void 0;
|
|
|
213
213
|
|
|
214
214
|
var api = {};
|
|
215
215
|
|
|
216
|
-
(
|
|
217
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
218
|
-
exports.Backoffice = void 0;
|
|
219
|
-
(function (Backoffice) {
|
|
220
|
-
(function (Context) {
|
|
221
|
-
(function (AvailableContext) {
|
|
222
|
-
AvailableContext["ADD_TO_CART"] = "backofficeAddToCart";
|
|
223
|
-
})(Context.AvailableContext || (Context.AvailableContext = {}));
|
|
224
|
-
})(Backoffice.Context || (Backoffice.Context = {}));
|
|
225
|
-
})(exports.Backoffice || (exports.Backoffice = {}));
|
|
226
|
-
|
|
227
|
-
}(api));
|
|
216
|
+
Object.defineProperty(api, "__esModule", { value: true });
|
|
228
217
|
|
|
229
218
|
(function (exports) {
|
|
230
219
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -301,6 +290,77 @@ var BaseCallClass = /*#__PURE__*/function () {
|
|
|
301
290
|
return BaseCallClass;
|
|
302
291
|
}();
|
|
303
292
|
|
|
293
|
+
var ContextCallClass = /*#__PURE__*/function (_BaseCallClass) {
|
|
294
|
+
_inherits(ContextCallClass, _BaseCallClass);
|
|
295
|
+
|
|
296
|
+
var _super = _createSuper(ContextCallClass);
|
|
297
|
+
|
|
298
|
+
function ContextCallClass() {
|
|
299
|
+
var _this;
|
|
300
|
+
|
|
301
|
+
_classCallCheck(this, ContextCallClass);
|
|
302
|
+
|
|
303
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
304
|
+
args[_key] = arguments[_key];
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
308
|
+
|
|
309
|
+
_defineProperty(_assertThisInitialized(_this), "serviceName", 'context');
|
|
310
|
+
|
|
311
|
+
return _this;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
return _createClass(ContextCallClass);
|
|
315
|
+
}(BaseCallClass);
|
|
316
|
+
|
|
317
|
+
var AddToCartContext = /*#__PURE__*/function (_ContextCallClass) {
|
|
318
|
+
_inherits(AddToCartContext, _ContextCallClass);
|
|
319
|
+
|
|
320
|
+
var _super2 = _createSuper(AddToCartContext);
|
|
321
|
+
|
|
322
|
+
function AddToCartContext() {
|
|
323
|
+
var _this2;
|
|
324
|
+
|
|
325
|
+
_classCallCheck(this, AddToCartContext);
|
|
326
|
+
|
|
327
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
328
|
+
args[_key2] = arguments[_key2];
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
_this2 = _super2.call.apply(_super2, [this].concat(args));
|
|
332
|
+
|
|
333
|
+
_defineProperty(_assertThisInitialized(_this2), "productId", void 0);
|
|
334
|
+
|
|
335
|
+
_defineProperty(_assertThisInitialized(_this2), "cartId", void 0);
|
|
336
|
+
|
|
337
|
+
_defineProperty(_assertThisInitialized(_this2), "warehouses", void 0);
|
|
338
|
+
|
|
339
|
+
_defineProperty(_assertThisInitialized(_this2), "meta", void 0);
|
|
340
|
+
|
|
341
|
+
return _this2;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
_createClass(AddToCartContext, [{
|
|
345
|
+
key: "closePlugin",
|
|
346
|
+
value: function closePlugin() {
|
|
347
|
+
return this.call('closePlugin');
|
|
348
|
+
}
|
|
349
|
+
}, {
|
|
350
|
+
key: "closePluginAndAddToCart",
|
|
351
|
+
value: function closePluginAndAddToCart() {
|
|
352
|
+
return this.call('closePluginAndAddToCart');
|
|
353
|
+
}
|
|
354
|
+
}, {
|
|
355
|
+
key: "closePluginAndRefreshCart",
|
|
356
|
+
value: function closePluginAndRefreshCart() {
|
|
357
|
+
return this.call('closePluginAndRefreshCart');
|
|
358
|
+
}
|
|
359
|
+
}]);
|
|
360
|
+
|
|
361
|
+
return AddToCartContext;
|
|
362
|
+
}(ContextCallClass);
|
|
363
|
+
|
|
304
364
|
var BackofficeCatalog = /*#__PURE__*/function (_BaseCallClass) {
|
|
305
365
|
_inherits(BackofficeCatalog, _BaseCallClass);
|
|
306
366
|
|
|
@@ -1136,5 +1196,5 @@ var ShopSdk = /*#__PURE__*/function (_Sdk2) {
|
|
|
1136
1196
|
return _createClass(ShopSdk);
|
|
1137
1197
|
}(Sdk);
|
|
1138
1198
|
|
|
1139
|
-
export { BackofficeSdk, SdkEvents, ShopSdk };
|
|
1199
|
+
export { AddToCartContext, BackofficeSdk, SdkEvents, ShopSdk };
|
|
1140
1200
|
//# sourceMappingURL=bundle.esm.js.map
|