@ikas/storefront 0.0.3 → 0.0.5
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/build/index.es.js +20 -17
- package/build/index.js +19 -16
- package/build/store/cart.d.ts +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeAutoObservable, toJS, runInAction, reaction, action, computed,
|
|
1
|
+
import { makeAutoObservable, toJS, runInAction, reaction, action, computed, configure } from 'mobx';
|
|
2
2
|
import queryString$1 from 'querystring';
|
|
3
3
|
import React, { createElement, useState, useEffect, Fragment, useCallback, useRef } from 'react';
|
|
4
4
|
import { observer } from 'mobx-react-lite';
|
|
@@ -22006,6 +22006,8 @@ var CHECKOUT_LS_KEY = "checkoutId";
|
|
|
22006
22006
|
var IkasCartStore = /** @class */ (function () {
|
|
22007
22007
|
function IkasCartStore(baseStore) {
|
|
22008
22008
|
var _this = this;
|
|
22009
|
+
this.cart = null;
|
|
22010
|
+
this._checkoutId = null;
|
|
22009
22011
|
this._isLoadingCart = false;
|
|
22010
22012
|
this._cartLoadFinished = false;
|
|
22011
22013
|
this.getCart = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -22185,22 +22187,23 @@ var IkasCartStore = /** @class */ (function () {
|
|
|
22185
22187
|
_this._checkoutId = undefined;
|
|
22186
22188
|
};
|
|
22187
22189
|
this.baseStore = baseStore;
|
|
22188
|
-
|
|
22189
|
-
|
|
22190
|
-
|
|
22191
|
-
|
|
22192
|
-
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
|
|
22196
|
-
|
|
22197
|
-
|
|
22198
|
-
|
|
22199
|
-
|
|
22200
|
-
|
|
22201
|
-
|
|
22202
|
-
|
|
22203
|
-
|
|
22190
|
+
makeAutoObservable(this);
|
|
22191
|
+
// makeObservable(this, {
|
|
22192
|
+
// cart: observable,
|
|
22193
|
+
// //@ts-ignore
|
|
22194
|
+
// baseStore: observable,
|
|
22195
|
+
// //@ts-ignore
|
|
22196
|
+
// _checkoutId: observable,
|
|
22197
|
+
// //@ts-ignore
|
|
22198
|
+
// _isLoadingCart: observable,
|
|
22199
|
+
// //@ts-ignore
|
|
22200
|
+
// _cartLoadFinished: observable,
|
|
22201
|
+
// isBrowser: computed,
|
|
22202
|
+
// isLoadingCart: computed,
|
|
22203
|
+
// cartLoadFinished: computed,
|
|
22204
|
+
// checkoutId: computed,
|
|
22205
|
+
// checkoutUrl: computed,
|
|
22206
|
+
// });
|
|
22204
22207
|
this.getCart();
|
|
22205
22208
|
}
|
|
22206
22209
|
Object.defineProperty(IkasCartStore.prototype, "isBrowser", {
|
package/build/index.js
CHANGED
|
@@ -21992,6 +21992,8 @@ var CHECKOUT_LS_KEY = "checkoutId";
|
|
|
21992
21992
|
var IkasCartStore = /** @class */ (function () {
|
|
21993
21993
|
function IkasCartStore(baseStore) {
|
|
21994
21994
|
var _this = this;
|
|
21995
|
+
this.cart = null;
|
|
21996
|
+
this._checkoutId = null;
|
|
21995
21997
|
this._isLoadingCart = false;
|
|
21996
21998
|
this._cartLoadFinished = false;
|
|
21997
21999
|
this.getCart = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
@@ -22171,22 +22173,23 @@ var IkasCartStore = /** @class */ (function () {
|
|
|
22171
22173
|
_this._checkoutId = undefined;
|
|
22172
22174
|
};
|
|
22173
22175
|
this.baseStore = baseStore;
|
|
22174
|
-
mobx.
|
|
22175
|
-
|
|
22176
|
-
|
|
22177
|
-
|
|
22178
|
-
|
|
22179
|
-
|
|
22180
|
-
|
|
22181
|
-
|
|
22182
|
-
|
|
22183
|
-
|
|
22184
|
-
|
|
22185
|
-
|
|
22186
|
-
|
|
22187
|
-
|
|
22188
|
-
|
|
22189
|
-
|
|
22176
|
+
mobx.makeAutoObservable(this);
|
|
22177
|
+
// makeObservable(this, {
|
|
22178
|
+
// cart: observable,
|
|
22179
|
+
// //@ts-ignore
|
|
22180
|
+
// baseStore: observable,
|
|
22181
|
+
// //@ts-ignore
|
|
22182
|
+
// _checkoutId: observable,
|
|
22183
|
+
// //@ts-ignore
|
|
22184
|
+
// _isLoadingCart: observable,
|
|
22185
|
+
// //@ts-ignore
|
|
22186
|
+
// _cartLoadFinished: observable,
|
|
22187
|
+
// isBrowser: computed,
|
|
22188
|
+
// isLoadingCart: computed,
|
|
22189
|
+
// cartLoadFinished: computed,
|
|
22190
|
+
// checkoutId: computed,
|
|
22191
|
+
// checkoutUrl: computed,
|
|
22192
|
+
// });
|
|
22190
22193
|
this.getCart();
|
|
22191
22194
|
}
|
|
22192
22195
|
Object.defineProperty(IkasCartStore.prototype, "isBrowser", {
|
package/build/store/cart.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { IkasBaseStore } from "./base";
|
|
|
4
4
|
export declare const CART_LS_KEY = "cartId";
|
|
5
5
|
export declare const CHECKOUT_LS_KEY = "checkoutId";
|
|
6
6
|
export declare class IkasCartStore {
|
|
7
|
-
cart?: IkasCart;
|
|
7
|
+
cart?: IkasCart | null;
|
|
8
8
|
private baseStore;
|
|
9
9
|
private _checkoutId?;
|
|
10
10
|
private _isLoadingCart;
|