@one-commerce/sdk-backoffice-vue3 1.16.0 → 1.18.0-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 +29 -1
- 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 +29 -1
- 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 +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -241,6 +241,32 @@ class BackofficePlugin extends BaseCallClass {
|
|
|
241
241
|
_defineProperty$2(this, "name", void 0);
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
+
}
|
|
245
|
+
class BackofficeAddToCartContext extends BaseCallClass {
|
|
246
|
+
constructor(...args) {
|
|
247
|
+
super(...args);
|
|
248
|
+
|
|
249
|
+
_defineProperty$2(this, "serviceName", 'addToCartContext');
|
|
250
|
+
|
|
251
|
+
_defineProperty$2(this, "productId", void 0);
|
|
252
|
+
|
|
253
|
+
_defineProperty$2(this, "cartId", void 0);
|
|
254
|
+
|
|
255
|
+
_defineProperty$2(this, "warehouses", void 0);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
closePlugin() {
|
|
259
|
+
this.call('closePlugin');
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
closePluginAndAddToCart() {
|
|
263
|
+
this.call('closePluginAndAddToCart');
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
closePluginAndRefreshCart() {
|
|
267
|
+
this.call('closePluginAndRefreshCart');
|
|
268
|
+
}
|
|
269
|
+
|
|
244
270
|
}
|
|
245
271
|
|
|
246
272
|
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -465,7 +491,8 @@ class BackofficeSdk extends Sdk {
|
|
|
465
491
|
layout: new BackofficeLayout(this.callFunction.bind(this)),
|
|
466
492
|
authorization: new BackofficeAuthorization(this.callFunction.bind(this)),
|
|
467
493
|
customer: new BackofficeCustomer(this.callFunction.bind(this)),
|
|
468
|
-
plugin: new BackofficePlugin(this.callFunction.bind(this))
|
|
494
|
+
plugin: new BackofficePlugin(this.callFunction.bind(this)),
|
|
495
|
+
addToCartContext: new BackofficeAddToCartContext(this.callFunction.bind(this))
|
|
469
496
|
});
|
|
470
497
|
}
|
|
471
498
|
|
|
@@ -506,6 +533,7 @@ var index = {
|
|
|
506
533
|
obj.authorization.update(payload);
|
|
507
534
|
obj.customer.update(payload);
|
|
508
535
|
obj.plugin.update(payload);
|
|
536
|
+
obj.addToCartContext.update(payload);
|
|
509
537
|
};
|
|
510
538
|
|
|
511
539
|
sdk.on(SdkEvents.INIT, function (payload) {
|