@searchspring/snap-store-mobx 0.64.0 → 0.65.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/dist/cjs/Search/Stores/SearchMerchandisingStore.d.ts +2 -1
- package/dist/cjs/Search/Stores/SearchMerchandisingStore.d.ts.map +1 -1
- package/dist/cjs/Search/Stores/SearchMerchandisingStore.js +6 -2
- package/dist/esm/Search/Stores/SearchMerchandisingStore.d.ts +2 -1
- package/dist/esm/Search/Stores/SearchMerchandisingStore.d.ts.map +1 -1
- package/dist/esm/Search/Stores/SearchMerchandisingStore.js +6 -2
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StoreServices } from '../../types';
|
|
2
|
-
import type { SearchResponseModelMerchandising, SearchResponseModelMerchandisingContentInline, SearchResponseModelMerchandisingCampaigns } from '@searchspring/snapi-types';
|
|
2
|
+
import type { SearchResponseModelMerchandising, SearchResponseModelMerchandisingContentInline, SearchResponseModelMerchandisingCampaigns, SearchResponseModelMerchandisingExperiments } from '@searchspring/snapi-types';
|
|
3
3
|
export declare enum ContentType {
|
|
4
4
|
HEADER = "header",
|
|
5
5
|
BANNER = "banner",
|
|
@@ -14,6 +14,7 @@ export declare class SearchMerchandisingStore {
|
|
|
14
14
|
campaigns: SearchResponseModelMerchandisingCampaigns[];
|
|
15
15
|
landingPage?: SearchResponseModelMerchandisingCampaigns;
|
|
16
16
|
personalized?: boolean;
|
|
17
|
+
experiments: SearchResponseModelMerchandisingExperiments[];
|
|
17
18
|
constructor(services: StoreServices, merchData: SearchResponseModelMerchandising);
|
|
18
19
|
}
|
|
19
20
|
declare class Content extends Array<string | SearchResponseModelMerchandisingContentInline> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchMerchandisingStore.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/SearchMerchandisingStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EACX,gCAAgC,EAChC,6CAA6C,EAC7C,yCAAyC,EACzC,MAAM,2BAA2B,CAAC;AAEnC,oBAAY,WAAW;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;AAElE,qBAAa,wBAAwB;IAC7B,QAAQ,SAAM;IACd,OAAO,EAAE,aAAa,CAAM;IAC5B,SAAS,EAAE,yCAAyC,EAAE,CAAM;IAC5D,WAAW,CAAC,EAAE,yCAAyC,CAAC;IACxD,YAAY,CAAC,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"SearchMerchandisingStore.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/SearchMerchandisingStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EACX,gCAAgC,EAChC,6CAA6C,EAC7C,yCAAyC,EACzC,2CAA2C,EAC3C,MAAM,2BAA2B,CAAC;AAEnC,oBAAY,WAAW;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;AAElE,qBAAa,wBAAwB;IAC7B,QAAQ,SAAM;IACd,OAAO,EAAE,aAAa,CAAM;IAC5B,SAAS,EAAE,yCAAyC,EAAE,CAAM;IAC5D,WAAW,CAAC,EAAE,yCAAyC,CAAC;IACxD,YAAY,CAAC,EAAE,OAAO,CAAS;IAC/B,WAAW,EAAE,2CAA2C,EAAE,CAAM;gBAE3D,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,gCAAgC;CA4BhF;AAED,cAAM,OAAQ,SAAQ,KAAK,CAAC,MAAM,GAAG,6CAA6C,CAAC;IAClF,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,gBAAgB,CAE9C;gBAEW,OAAO,EAAE,MAAM,EAAE,GAAG,6CAA6C,EAAE;CAG/E"}
|
|
@@ -30,6 +30,8 @@ var SearchMerchandisingStore = /** @class */ (function () {
|
|
|
30
30
|
this.redirect = '';
|
|
31
31
|
this.content = {};
|
|
32
32
|
this.campaigns = [];
|
|
33
|
+
this.personalized = false;
|
|
34
|
+
this.experiments = [];
|
|
33
35
|
if (merchData) {
|
|
34
36
|
this.redirect = merchData.redirect || '';
|
|
35
37
|
if (merchData.content) {
|
|
@@ -48,8 +50,10 @@ var SearchMerchandisingStore = /** @class */ (function () {
|
|
|
48
50
|
}
|
|
49
51
|
});
|
|
50
52
|
}
|
|
51
|
-
if (merchData.
|
|
52
|
-
this.
|
|
53
|
+
if (merchData.experiments) {
|
|
54
|
+
this.experiments = merchData.experiments;
|
|
55
|
+
}
|
|
56
|
+
this.personalized = !!merchData.personalized;
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
return SearchMerchandisingStore;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StoreServices } from '../../types';
|
|
2
|
-
import type { SearchResponseModelMerchandising, SearchResponseModelMerchandisingContentInline, SearchResponseModelMerchandisingCampaigns } from '@searchspring/snapi-types';
|
|
2
|
+
import type { SearchResponseModelMerchandising, SearchResponseModelMerchandisingContentInline, SearchResponseModelMerchandisingCampaigns, SearchResponseModelMerchandisingExperiments } from '@searchspring/snapi-types';
|
|
3
3
|
export declare enum ContentType {
|
|
4
4
|
HEADER = "header",
|
|
5
5
|
BANNER = "banner",
|
|
@@ -14,6 +14,7 @@ export declare class SearchMerchandisingStore {
|
|
|
14
14
|
campaigns: SearchResponseModelMerchandisingCampaigns[];
|
|
15
15
|
landingPage?: SearchResponseModelMerchandisingCampaigns;
|
|
16
16
|
personalized?: boolean;
|
|
17
|
+
experiments: SearchResponseModelMerchandisingExperiments[];
|
|
17
18
|
constructor(services: StoreServices, merchData: SearchResponseModelMerchandising);
|
|
18
19
|
}
|
|
19
20
|
declare class Content extends Array<string | SearchResponseModelMerchandisingContentInline> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchMerchandisingStore.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/SearchMerchandisingStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EACX,gCAAgC,EAChC,6CAA6C,EAC7C,yCAAyC,EACzC,MAAM,2BAA2B,CAAC;AAEnC,oBAAY,WAAW;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;AAElE,qBAAa,wBAAwB;IAC7B,QAAQ,SAAM;IACd,OAAO,EAAE,aAAa,CAAM;IAC5B,SAAS,EAAE,yCAAyC,EAAE,CAAM;IAC5D,WAAW,CAAC,EAAE,yCAAyC,CAAC;IACxD,YAAY,CAAC,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"SearchMerchandisingStore.d.ts","sourceRoot":"","sources":["../../../../src/Search/Stores/SearchMerchandisingStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EACX,gCAAgC,EAChC,6CAA6C,EAC7C,yCAAyC,EACzC,2CAA2C,EAC3C,MAAM,2BAA2B,CAAC;AAEnC,oBAAY,WAAW;IACtB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;AAElE,qBAAa,wBAAwB;IAC7B,QAAQ,SAAM;IACd,OAAO,EAAE,aAAa,CAAM;IAC5B,SAAS,EAAE,yCAAyC,EAAE,CAAM;IAC5D,WAAW,CAAC,EAAE,yCAAyC,CAAC;IACxD,YAAY,CAAC,EAAE,OAAO,CAAS;IAC/B,WAAW,EAAE,2CAA2C,EAAE,CAAM;gBAE3D,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,gCAAgC;CA4BhF;AAED,cAAM,OAAQ,SAAQ,KAAK,CAAC,MAAM,GAAG,6CAA6C,CAAC;IAClF,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,gBAAgB,CAE9C;gBAEW,OAAO,EAAE,MAAM,EAAE,GAAG,6CAA6C,EAAE;CAG/E"}
|
|
@@ -11,6 +11,8 @@ export class SearchMerchandisingStore {
|
|
|
11
11
|
this.redirect = '';
|
|
12
12
|
this.content = {};
|
|
13
13
|
this.campaigns = [];
|
|
14
|
+
this.personalized = false;
|
|
15
|
+
this.experiments = [];
|
|
14
16
|
if (merchData) {
|
|
15
17
|
this.redirect = merchData.redirect || '';
|
|
16
18
|
if (merchData.content) {
|
|
@@ -29,8 +31,10 @@ export class SearchMerchandisingStore {
|
|
|
29
31
|
}
|
|
30
32
|
});
|
|
31
33
|
}
|
|
32
|
-
if (merchData.
|
|
33
|
-
this.
|
|
34
|
+
if (merchData.experiments) {
|
|
35
|
+
this.experiments = merchData.experiments;
|
|
36
|
+
}
|
|
37
|
+
this.personalized = !!merchData.personalized;
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-store-mobx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
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.
|
|
23
|
+
"@searchspring/snap-toolbox": "^0.65.0",
|
|
24
24
|
"mobx": "6.9.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@searchspring/snap-client": "^0.
|
|
28
|
-
"@searchspring/snap-url-manager": "^0.
|
|
27
|
+
"@searchspring/snap-client": "^0.65.0",
|
|
28
|
+
"@searchspring/snap-url-manager": "^0.65.0"
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"files": [
|
|
32
32
|
"dist/**/*"
|
|
33
33
|
],
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "e96fc4426a64178a94a8ca603ec834bdca020fdb"
|
|
35
35
|
}
|