@searchspring/snap-store-mobx 0.20.2 → 0.20.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/dist/cjs/Finder/FinderStore.d.ts +0 -1
- package/dist/cjs/Finder/FinderStore.d.ts.map +1 -1
- package/dist/cjs/Finder/FinderStore.js +1 -1
- package/dist/cjs/Search/Stores/FacetStore.js +2 -0
- package/dist/esm/Finder/FinderStore.d.ts +0 -1
- package/dist/esm/Finder/FinderStore.d.ts.map +1 -1
- package/dist/esm/Finder/FinderStore.js +1 -1
- package/dist/esm/Search/Stores/FacetStore.js +2 -0
- package/package.json +4 -4
|
@@ -15,7 +15,6 @@ export declare class FinderStore extends AbstractStore {
|
|
|
15
15
|
setService(name: any, service: any): void;
|
|
16
16
|
update(data: SearchResponseModel & {
|
|
17
17
|
meta: MetaResponseModel;
|
|
18
|
-
selections: SelectionStore[];
|
|
19
18
|
}): void;
|
|
20
19
|
}
|
|
21
20
|
//# sourceMappingURL=FinderStore.d.ts.map
|
|
@@ -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,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEjE,qBAAa,WAAY,SAAQ,aAAa;IAC7C,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,IAAI,EAAE,iBAAiB,CAA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|
33
33
|
_this.services = services;
|
|
34
34
|
_this.storage = new StorageStore_1.StorageStore();
|
|
35
|
-
_this.update({ meta: {}
|
|
35
|
+
_this.update({ meta: {} });
|
|
36
36
|
(0, mobx_1.makeObservable)(_this, {
|
|
37
37
|
selections: mobx_1.observable,
|
|
38
38
|
pagination: mobx_1.observable,
|
|
@@ -210,6 +210,8 @@ var ValueFacet = /** @class */ (function (_super) {
|
|
|
210
210
|
return new HierarchyValue(services, _this, value, filteredValues);
|
|
211
211
|
}
|
|
212
212
|
else {
|
|
213
|
+
// converting values to strings to ensure UrlManager state matches state created from URL
|
|
214
|
+
value.value = value.value.toString();
|
|
213
215
|
return new Value(services, _this, value);
|
|
214
216
|
}
|
|
215
217
|
case 'range-buckets':
|
|
@@ -15,7 +15,6 @@ export declare class FinderStore extends AbstractStore {
|
|
|
15
15
|
setService(name: any, service: any): void;
|
|
16
16
|
update(data: SearchResponseModel & {
|
|
17
17
|
meta: MetaResponseModel;
|
|
18
|
-
selections: SelectionStore[];
|
|
19
18
|
}): void;
|
|
20
19
|
}
|
|
21
20
|
//# sourceMappingURL=FinderStore.d.ts.map
|
|
@@ -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,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEjE,qBAAa,WAAY,SAAQ,aAAa;IAC7C,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM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12,7 @@ export class FinderStore extends AbstractStore {
|
|
|
12
12
|
}
|
|
13
13
|
this.services = services;
|
|
14
14
|
this.storage = new StorageStore();
|
|
15
|
-
this.update({ meta: {}
|
|
15
|
+
this.update({ meta: {} });
|
|
16
16
|
makeObservable(this, {
|
|
17
17
|
selections: observable,
|
|
18
18
|
pagination: observable,
|
|
@@ -170,6 +170,8 @@ class ValueFacet extends Facet {
|
|
|
170
170
|
return new HierarchyValue(services, this, value, filteredValues);
|
|
171
171
|
}
|
|
172
172
|
else {
|
|
173
|
+
// converting values to strings to ensure UrlManager state matches state created from URL
|
|
174
|
+
value.value = value.value.toString();
|
|
173
175
|
return new Value(services, this, value);
|
|
174
176
|
}
|
|
175
177
|
case 'range-buckets':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-store-mobx",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.5",
|
|
4
4
|
"description": "Snap MobX Store",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"test:watch": "jest --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@searchspring/snap-toolbox": "^0.20.
|
|
23
|
+
"@searchspring/snap-toolbox": "^0.20.5",
|
|
24
24
|
"mobx": "^6.3.12"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@searchspring/snap-url-manager": "^0.20.
|
|
27
|
+
"@searchspring/snap-url-manager": "^0.20.5"
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"files": [
|
|
31
31
|
"dist/**/*"
|
|
32
32
|
],
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "37807cdbe3906c03227d32023a119d0bf8892f84"
|
|
34
34
|
}
|