@searchspring/snap-store-mobx 0.30.1 → 0.30.2
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/dist/cjs/Finder/FinderStore.d.ts +1 -4
- package/dist/cjs/Finder/FinderStore.d.ts.map +1 -1
- package/dist/cjs/Finder/FinderStore.js +18 -16
- package/dist/cjs/Search/SearchStore.d.ts +0 -3
- package/dist/cjs/Search/SearchStore.d.ts.map +1 -1
- package/dist/cjs/Search/SearchStore.js +0 -1
- package/dist/esm/Finder/FinderStore.d.ts +1 -4
- package/dist/esm/Finder/FinderStore.d.ts.map +1 -1
- package/dist/esm/Finder/FinderStore.js +16 -15
- package/dist/esm/Search/SearchStore.d.ts +0 -3
- package/dist/esm/Search/SearchStore.d.ts.map +1 -1
- package/dist/esm/Search/SearchStore.js +0 -1
- package/package.json +5 -5
|
@@ -8,9 +8,6 @@ import { UrlManager } from '@searchspring/snap-url-manager';
|
|
|
8
8
|
export declare class FinderStore extends AbstractStore {
|
|
9
9
|
services: StoreServices;
|
|
10
10
|
config: FinderStoreConfig;
|
|
11
|
-
data: SearchResponseModel & {
|
|
12
|
-
meta: MetaResponseModel;
|
|
13
|
-
};
|
|
14
11
|
meta: MetaResponseModel;
|
|
15
12
|
storage: StorageStore;
|
|
16
13
|
persistedStorage: StorageStore;
|
|
@@ -19,7 +16,7 @@ export declare class FinderStore extends AbstractStore {
|
|
|
19
16
|
state: FinderStoreState;
|
|
20
17
|
constructor(config: FinderStoreConfig, services: StoreServices);
|
|
21
18
|
setService(name: keyof StoreServices, service: UrlManager): void;
|
|
22
|
-
save()
|
|
19
|
+
save: () => void;
|
|
23
20
|
reset: () => void;
|
|
24
21
|
loadPersisted(): void;
|
|
25
22
|
update(data: SearchResponseModel & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FinderStore.d.ts","sourceRoot":"","sources":["../../../src/Finder/FinderStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAe,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACtG,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,qBAAa,WAAY,SAAQ,aAAa;IACtC,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAG,iBAAiB,CAAC;IAC3B,IAAI,
|
|
1
|
+
{"version":3,"file":"FinderStore.d.ts","sourceRoot":"","sources":["../../../src/Finder/FinderStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAe,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACtG,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,qBAAa,WAAY,SAAQ,aAAa;IACtC,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAG,iBAAiB,CAAC;IAC3B,IAAI,EAAE,iBAAiB,CAAM;IAC7B,OAAO,EAAE,YAAY,CAAC;IACtB,gBAAgB,EAAG,YAAY,CAAC;IAChC,UAAU,EAAG,qBAAqB,CAAC;IACnC,UAAU,EAAG,oBAAoB,CAAC;IAClC,KAAK,EAAE,gBAAgB,CAE5B;gBAEU,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,aAAa;IA0BvD,UAAU,CAAC,IAAI,EAAE,MAAM,aAAa,EAAE,OAAO,EAAE,UAAU,GAAG,IAAI;IAMhE,IAAI,EAAE,MAAM,IAAI,CAAY;IAE5B,KAAK,QAAO,IAAI,CAWrB;IAEK,aAAa,IAAI,IAAI;IAoBrB,MAAM,CAAC,IAAI,EAAE,mBAAmB,GAAG;QAAE,IAAI,EAAE,iBAAiB,CAAA;KAAE,EAAE,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,GAAG,IAAI;CAiCtH"}
|
|
@@ -31,6 +31,7 @@ var FinderStore = /** @class */ (function (_super) {
|
|
|
31
31
|
_this.state = {
|
|
32
32
|
persisted: false,
|
|
33
33
|
};
|
|
34
|
+
_this.save = function () { };
|
|
34
35
|
_this.reset = function () {
|
|
35
36
|
var _a, _b;
|
|
36
37
|
if ((_a = _this.config.persist) === null || _a === void 0 ? void 0 : _a.enabled) {
|
|
@@ -66,21 +67,6 @@ var FinderStore = /** @class */ (function (_super) {
|
|
|
66
67
|
this.services[name] = service;
|
|
67
68
|
}
|
|
68
69
|
};
|
|
69
|
-
FinderStore.prototype.save = function () {
|
|
70
|
-
var _a, _b;
|
|
71
|
-
if (((_a = this.config.persist) === null || _a === void 0 ? void 0 : _a.enabled) && this.persistedStorage && ((_b = this === null || this === void 0 ? void 0 : this.selections) === null || _b === void 0 ? void 0 : _b.filter(function (selection) { return selection.selected; }).length)) {
|
|
72
|
-
this.persistedStorage.set('config', this.config);
|
|
73
|
-
this.persistedStorage.set('data', this.data);
|
|
74
|
-
this.persistedStorage.set('date', Date.now());
|
|
75
|
-
this.persistedStorage.set('selections', this.selections.map(function (selection) {
|
|
76
|
-
return {
|
|
77
|
-
selected: selection.selected,
|
|
78
|
-
data: selection.data,
|
|
79
|
-
facet: selection.facet,
|
|
80
|
-
};
|
|
81
|
-
}));
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
70
|
FinderStore.prototype.loadPersisted = function () {
|
|
85
71
|
var _a;
|
|
86
72
|
if (((_a = this.config.persist) === null || _a === void 0 ? void 0 : _a.enabled) && this.persistedStorage && !this.loaded) {
|
|
@@ -102,8 +88,8 @@ var FinderStore = /** @class */ (function (_super) {
|
|
|
102
88
|
}
|
|
103
89
|
};
|
|
104
90
|
FinderStore.prototype.update = function (data, selectedSelections) {
|
|
91
|
+
var _this = this;
|
|
105
92
|
this.error = undefined;
|
|
106
|
-
this.data = JSON.parse(JSON.stringify(data));
|
|
107
93
|
this.loaded = !!data.pagination;
|
|
108
94
|
this.meta = data.meta;
|
|
109
95
|
this.pagination = new Stores_1.SearchPaginationStore(this.config, this.services, data.pagination);
|
|
@@ -115,6 +101,22 @@ var FinderStore = /** @class */ (function (_super) {
|
|
|
115
101
|
storage: this.storage,
|
|
116
102
|
selections: selectedSelections || [],
|
|
117
103
|
});
|
|
104
|
+
// providing access to response data without exposing it
|
|
105
|
+
this.save = function () {
|
|
106
|
+
var _a, _b;
|
|
107
|
+
if (((_a = _this.config.persist) === null || _a === void 0 ? void 0 : _a.enabled) && _this.persistedStorage && ((_b = _this === null || _this === void 0 ? void 0 : _this.selections) === null || _b === void 0 ? void 0 : _b.filter(function (selection) { return selection.selected; }).length)) {
|
|
108
|
+
_this.persistedStorage.set('config', _this.config);
|
|
109
|
+
_this.persistedStorage.set('data', data);
|
|
110
|
+
_this.persistedStorage.set('date', Date.now());
|
|
111
|
+
_this.persistedStorage.set('selections', _this.selections.map(function (selection) {
|
|
112
|
+
return {
|
|
113
|
+
selected: selection.selected,
|
|
114
|
+
data: selection.data,
|
|
115
|
+
facet: selection.facet,
|
|
116
|
+
};
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
};
|
|
118
120
|
};
|
|
119
121
|
return FinderStore;
|
|
120
122
|
}(AbstractStore_1.AbstractStore));
|
|
@@ -5,9 +5,6 @@ import { AbstractStore } from '../Abstract/AbstractStore';
|
|
|
5
5
|
import { StorageStore } from '../Storage/StorageStore';
|
|
6
6
|
export declare class SearchStore extends AbstractStore {
|
|
7
7
|
services: StoreServices;
|
|
8
|
-
data: SearchResponseModel & {
|
|
9
|
-
meta: MetaResponseModel;
|
|
10
|
-
};
|
|
11
8
|
meta: MetaResponseModel;
|
|
12
9
|
merchandising: SearchMerchandisingStore;
|
|
13
10
|
search: SearchQueryStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchStore.d.ts","sourceRoot":"","sources":["../../../src/Search/SearchStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EACN,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,qBAAa,WAAY,SAAQ,aAAa;IACtC,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,EAAG,
|
|
1
|
+
{"version":3,"file":"SearchStore.d.ts","sourceRoot":"","sources":["../../../src/Search/SearchStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EACN,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,qBAAa,WAAY,SAAQ,aAAa;IACtC,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,EAAG,iBAAiB,CAAC;IACzB,aAAa,EAAG,wBAAwB,CAAC;IACzC,MAAM,EAAG,gBAAgB,CAAC;IAC1B,MAAM,EAAG,gBAAgB,CAAC;IAC1B,OAAO,EAAG,iBAAiB,CAAC;IAC5B,OAAO,EAAG,iBAAiB,CAAC;IAC5B,UAAU,EAAG,qBAAqB,CAAC;IACnC,OAAO,EAAG,kBAAkB,CAAC;IAC7B,OAAO,EAAE,YAAY,CAAC;gBAEjB,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,aAAa;IAqCvD,KAAK,IAAI,IAAI;IAIb,MAAM,CAAC,IAAI,GAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,iBAAiB,CAAA;KAAO,GAAG,IAAI;CAYlF"}
|
|
@@ -62,7 +62,6 @@ var SearchStore = /** @class */ (function (_super) {
|
|
|
62
62
|
SearchStore.prototype.update = function (data) {
|
|
63
63
|
if (data === void 0) { data = {}; }
|
|
64
64
|
this.error = undefined;
|
|
65
|
-
this.data = JSON.parse(JSON.stringify(data));
|
|
66
65
|
this.loaded = !!data.pagination;
|
|
67
66
|
this.meta = data.meta || {};
|
|
68
67
|
this.merchandising = new Stores_1.SearchMerchandisingStore(this.services, (data === null || data === void 0 ? void 0 : data.merchandising) || {});
|
|
@@ -8,9 +8,6 @@ import { UrlManager } from '@searchspring/snap-url-manager';
|
|
|
8
8
|
export declare class FinderStore extends AbstractStore {
|
|
9
9
|
services: StoreServices;
|
|
10
10
|
config: FinderStoreConfig;
|
|
11
|
-
data: SearchResponseModel & {
|
|
12
|
-
meta: MetaResponseModel;
|
|
13
|
-
};
|
|
14
11
|
meta: MetaResponseModel;
|
|
15
12
|
storage: StorageStore;
|
|
16
13
|
persistedStorage: StorageStore;
|
|
@@ -19,7 +16,7 @@ export declare class FinderStore extends AbstractStore {
|
|
|
19
16
|
state: FinderStoreState;
|
|
20
17
|
constructor(config: FinderStoreConfig, services: StoreServices);
|
|
21
18
|
setService(name: keyof StoreServices, service: UrlManager): void;
|
|
22
|
-
save()
|
|
19
|
+
save: () => void;
|
|
23
20
|
reset: () => void;
|
|
24
21
|
loadPersisted(): void;
|
|
25
22
|
update(data: SearchResponseModel & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FinderStore.d.ts","sourceRoot":"","sources":["../../../src/Finder/FinderStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAe,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACtG,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,qBAAa,WAAY,SAAQ,aAAa;IACtC,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAG,iBAAiB,CAAC;IAC3B,IAAI,
|
|
1
|
+
{"version":3,"file":"FinderStore.d.ts","sourceRoot":"","sources":["../../../src/Finder/FinderStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAe,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACtG,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,qBAAa,WAAY,SAAQ,aAAa;IACtC,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAG,iBAAiB,CAAC;IAC3B,IAAI,EAAE,iBAAiB,CAAM;IAC7B,OAAO,EAAE,YAAY,CAAC;IACtB,gBAAgB,EAAG,YAAY,CAAC;IAChC,UAAU,EAAG,qBAAqB,CAAC;IACnC,UAAU,EAAG,oBAAoB,CAAC;IAClC,KAAK,EAAE,gBAAgB,CAE5B;gBAEU,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,aAAa;IA0BvD,UAAU,CAAC,IAAI,EAAE,MAAM,aAAa,EAAE,OAAO,EAAE,UAAU,GAAG,IAAI;IAMhE,IAAI,EAAE,MAAM,IAAI,CAAY;IAE5B,KAAK,QAAO,IAAI,CAWrB;IAEK,aAAa,IAAI,IAAI;IAoBrB,MAAM,CAAC,IAAI,EAAE,mBAAmB,GAAG;QAAE,IAAI,EAAE,iBAAiB,CAAA;KAAE,EAAE,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,GAAG,IAAI;CAiCtH"}
|
|
@@ -10,6 +10,7 @@ export class FinderStore extends AbstractStore {
|
|
|
10
10
|
this.state = {
|
|
11
11
|
persisted: false,
|
|
12
12
|
};
|
|
13
|
+
this.save = () => { };
|
|
13
14
|
this.reset = () => {
|
|
14
15
|
if (this.config.persist?.enabled) {
|
|
15
16
|
this.persistedStorage?.clear();
|
|
@@ -43,20 +44,6 @@ export class FinderStore extends AbstractStore {
|
|
|
43
44
|
this.services[name] = service;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
|
-
save() {
|
|
47
|
-
if (this.config.persist?.enabled && this.persistedStorage && this?.selections?.filter((selection) => selection.selected).length) {
|
|
48
|
-
this.persistedStorage.set('config', this.config);
|
|
49
|
-
this.persistedStorage.set('data', this.data);
|
|
50
|
-
this.persistedStorage.set('date', Date.now());
|
|
51
|
-
this.persistedStorage.set('selections', this.selections.map((selection) => {
|
|
52
|
-
return {
|
|
53
|
-
selected: selection.selected,
|
|
54
|
-
data: selection.data,
|
|
55
|
-
facet: selection.facet,
|
|
56
|
-
};
|
|
57
|
-
}));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
47
|
loadPersisted() {
|
|
61
48
|
if (this.config.persist?.enabled && this.persistedStorage && !this.loaded) {
|
|
62
49
|
const date = this.persistedStorage.get('date');
|
|
@@ -78,7 +65,6 @@ export class FinderStore extends AbstractStore {
|
|
|
78
65
|
}
|
|
79
66
|
update(data, selectedSelections) {
|
|
80
67
|
this.error = undefined;
|
|
81
|
-
this.data = JSON.parse(JSON.stringify(data));
|
|
82
68
|
this.loaded = !!data.pagination;
|
|
83
69
|
this.meta = data.meta;
|
|
84
70
|
this.pagination = new SearchPaginationStore(this.config, this.services, data.pagination);
|
|
@@ -90,5 +76,20 @@ export class FinderStore extends AbstractStore {
|
|
|
90
76
|
storage: this.storage,
|
|
91
77
|
selections: selectedSelections || [],
|
|
92
78
|
});
|
|
79
|
+
// providing access to response data without exposing it
|
|
80
|
+
this.save = () => {
|
|
81
|
+
if (this.config.persist?.enabled && this.persistedStorage && this?.selections?.filter((selection) => selection.selected).length) {
|
|
82
|
+
this.persistedStorage.set('config', this.config);
|
|
83
|
+
this.persistedStorage.set('data', data);
|
|
84
|
+
this.persistedStorage.set('date', Date.now());
|
|
85
|
+
this.persistedStorage.set('selections', this.selections.map((selection) => {
|
|
86
|
+
return {
|
|
87
|
+
selected: selection.selected,
|
|
88
|
+
data: selection.data,
|
|
89
|
+
facet: selection.facet,
|
|
90
|
+
};
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
};
|
|
93
94
|
}
|
|
94
95
|
}
|
|
@@ -5,9 +5,6 @@ import { AbstractStore } from '../Abstract/AbstractStore';
|
|
|
5
5
|
import { StorageStore } from '../Storage/StorageStore';
|
|
6
6
|
export declare class SearchStore extends AbstractStore {
|
|
7
7
|
services: StoreServices;
|
|
8
|
-
data: SearchResponseModel & {
|
|
9
|
-
meta: MetaResponseModel;
|
|
10
|
-
};
|
|
11
8
|
meta: MetaResponseModel;
|
|
12
9
|
merchandising: SearchMerchandisingStore;
|
|
13
10
|
search: SearchQueryStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchStore.d.ts","sourceRoot":"","sources":["../../../src/Search/SearchStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EACN,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,qBAAa,WAAY,SAAQ,aAAa;IACtC,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,EAAG,
|
|
1
|
+
{"version":3,"file":"SearchStore.d.ts","sourceRoot":"","sources":["../../../src/Search/SearchStore.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EACN,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,qBAAa,WAAY,SAAQ,aAAa;IACtC,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,EAAG,iBAAiB,CAAC;IACzB,aAAa,EAAG,wBAAwB,CAAC;IACzC,MAAM,EAAG,gBAAgB,CAAC;IAC1B,MAAM,EAAG,gBAAgB,CAAC;IAC1B,OAAO,EAAG,iBAAiB,CAAC;IAC5B,OAAO,EAAG,iBAAiB,CAAC;IAC5B,UAAU,EAAG,qBAAqB,CAAC;IACnC,OAAO,EAAG,kBAAkB,CAAC;IAC7B,OAAO,EAAE,YAAY,CAAC;gBAEjB,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,aAAa;IAqCvD,KAAK,IAAI,IAAI;IAIb,MAAM,CAAC,IAAI,GAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,iBAAiB,CAAA;KAAO,GAAG,IAAI;CAYlF"}
|
|
@@ -39,7 +39,6 @@ export class SearchStore extends AbstractStore {
|
|
|
39
39
|
}
|
|
40
40
|
update(data = {}) {
|
|
41
41
|
this.error = undefined;
|
|
42
|
-
this.data = JSON.parse(JSON.stringify(data));
|
|
43
42
|
this.loaded = !!data.pagination;
|
|
44
43
|
this.meta = data.meta || {};
|
|
45
44
|
this.merchandising = new SearchMerchandisingStore(this.services, data?.merchandising || {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-store-mobx",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.2",
|
|
4
4
|
"description": "Snap MobX Store",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
"test:watch": "jest --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@searchspring/snap-toolbox": "^0.30.
|
|
23
|
+
"@searchspring/snap-toolbox": "^0.30.2",
|
|
24
24
|
"mobx": "6.6.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@searchspring/snap-client": "^0.30.
|
|
28
|
-
"@searchspring/snap-url-manager": "^0.30.
|
|
27
|
+
"@searchspring/snap-client": "^0.30.2",
|
|
28
|
+
"@searchspring/snap-url-manager": "^0.30.2"
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"files": [
|
|
32
32
|
"dist/**/*"
|
|
33
33
|
],
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "0d7dc2c374512e097827aa0f6f724d15a771fd5f"
|
|
35
35
|
}
|