@ikas/storefront 0.0.2 → 0.0.3
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 +17 -2
- package/build/index.js +16 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeAutoObservable, toJS, runInAction, reaction, action, computed, configure } from 'mobx';
|
|
1
|
+
import { makeAutoObservable, toJS, runInAction, reaction, action, computed, makeObservable, observable, 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';
|
|
@@ -22185,8 +22185,23 @@ var IkasCartStore = /** @class */ (function () {
|
|
|
22185
22185
|
_this._checkoutId = undefined;
|
|
22186
22186
|
};
|
|
22187
22187
|
this.baseStore = baseStore;
|
|
22188
|
+
makeObservable(this, {
|
|
22189
|
+
cart: observable,
|
|
22190
|
+
//@ts-ignore
|
|
22191
|
+
baseStore: observable,
|
|
22192
|
+
//@ts-ignore
|
|
22193
|
+
_checkoutId: observable,
|
|
22194
|
+
//@ts-ignore
|
|
22195
|
+
_isLoadingCart: observable,
|
|
22196
|
+
//@ts-ignore
|
|
22197
|
+
_cartLoadFinished: observable,
|
|
22198
|
+
isBrowser: computed,
|
|
22199
|
+
isLoadingCart: computed,
|
|
22200
|
+
cartLoadFinished: computed,
|
|
22201
|
+
checkoutId: computed,
|
|
22202
|
+
checkoutUrl: computed,
|
|
22203
|
+
});
|
|
22188
22204
|
this.getCart();
|
|
22189
|
-
makeAutoObservable(this);
|
|
22190
22205
|
}
|
|
22191
22206
|
Object.defineProperty(IkasCartStore.prototype, "isBrowser", {
|
|
22192
22207
|
get: function () {
|
package/build/index.js
CHANGED
|
@@ -22171,8 +22171,23 @@ var IkasCartStore = /** @class */ (function () {
|
|
|
22171
22171
|
_this._checkoutId = undefined;
|
|
22172
22172
|
};
|
|
22173
22173
|
this.baseStore = baseStore;
|
|
22174
|
+
mobx.makeObservable(this, {
|
|
22175
|
+
cart: mobx.observable,
|
|
22176
|
+
//@ts-ignore
|
|
22177
|
+
baseStore: mobx.observable,
|
|
22178
|
+
//@ts-ignore
|
|
22179
|
+
_checkoutId: mobx.observable,
|
|
22180
|
+
//@ts-ignore
|
|
22181
|
+
_isLoadingCart: mobx.observable,
|
|
22182
|
+
//@ts-ignore
|
|
22183
|
+
_cartLoadFinished: mobx.observable,
|
|
22184
|
+
isBrowser: mobx.computed,
|
|
22185
|
+
isLoadingCart: mobx.computed,
|
|
22186
|
+
cartLoadFinished: mobx.computed,
|
|
22187
|
+
checkoutId: mobx.computed,
|
|
22188
|
+
checkoutUrl: mobx.computed,
|
|
22189
|
+
});
|
|
22174
22190
|
this.getCart();
|
|
22175
|
-
mobx.makeAutoObservable(this);
|
|
22176
22191
|
}
|
|
22177
22192
|
Object.defineProperty(IkasCartStore.prototype, "isBrowser", {
|
|
22178
22193
|
get: function () {
|