@searchspring/snap-store-mobx
Advanced tools
Comparing version 0.30.2 to 0.31.0
import type { StoreServices } from '../../types'; | ||
import type { SearchResponseModelMerchandising, SearchResponseModelMerchandisingContentInline } from '@searchspring/snapi-types'; | ||
import type { SearchResponseModelMerchandising, SearchResponseModelMerchandisingContentInline, SearchResponseModelMerchandisingCampaigns } from '@searchspring/snapi-types'; | ||
export declare enum ContentType { | ||
@@ -14,2 +14,3 @@ HEADER = "header", | ||
content: BannerContent; | ||
campaigns: SearchResponseModelMerchandisingCampaigns[]; | ||
constructor(services: StoreServices, merchData: SearchResponseModelMerchandising); | ||
@@ -16,0 +17,0 @@ } |
@@ -32,2 +32,3 @@ "use strict"; | ||
this.content = {}; | ||
this.campaigns = []; | ||
if (merchData) { | ||
@@ -42,2 +43,5 @@ this.redirect = merchData.redirect || ''; | ||
} | ||
if (merchData.campaigns) { | ||
this.campaigns = merchData.campaigns; | ||
} | ||
} | ||
@@ -44,0 +48,0 @@ } |
@@ -21,2 +21,3 @@ import type { UrlManager } from '@searchspring/snap-url-manager'; | ||
backfill?: number; | ||
restorePosition?: boolean; | ||
}; | ||
@@ -23,0 +24,0 @@ }; |
import type { StoreServices } from '../../types'; | ||
import type { SearchResponseModelMerchandising, SearchResponseModelMerchandisingContentInline } from '@searchspring/snapi-types'; | ||
import type { SearchResponseModelMerchandising, SearchResponseModelMerchandisingContentInline, SearchResponseModelMerchandisingCampaigns } from '@searchspring/snapi-types'; | ||
export declare enum ContentType { | ||
@@ -14,2 +14,3 @@ HEADER = "header", | ||
content: BannerContent; | ||
campaigns: SearchResponseModelMerchandisingCampaigns[]; | ||
constructor(services: StoreServices, merchData: SearchResponseModelMerchandising); | ||
@@ -16,0 +17,0 @@ } |
@@ -13,2 +13,3 @@ export var ContentType; | ||
this.content = {}; | ||
this.campaigns = []; | ||
if (merchData) { | ||
@@ -23,2 +24,5 @@ this.redirect = merchData.redirect || ''; | ||
} | ||
if (merchData.campaigns) { | ||
this.campaigns = merchData.campaigns; | ||
} | ||
} | ||
@@ -25,0 +29,0 @@ } |
@@ -21,2 +21,3 @@ import type { UrlManager } from '@searchspring/snap-url-manager'; | ||
backfill?: number; | ||
restorePosition?: boolean; | ||
}; | ||
@@ -23,0 +24,0 @@ }; |
{ | ||
"name": "@searchspring/snap-store-mobx", | ||
"version": "0.30.2", | ||
"version": "0.31.0", | ||
"description": "Snap MobX Store", | ||
@@ -23,8 +23,8 @@ "main": "dist/cjs/index.js", | ||
"dependencies": { | ||
"@searchspring/snap-toolbox": "^0.30.2", | ||
"@searchspring/snap-toolbox": "^0.31.0", | ||
"mobx": "6.6.0" | ||
}, | ||
"devDependencies": { | ||
"@searchspring/snap-client": "^0.30.2", | ||
"@searchspring/snap-url-manager": "^0.30.2" | ||
"@searchspring/snap-client": "^0.31.0", | ||
"@searchspring/snap-url-manager": "^0.31.0" | ||
}, | ||
@@ -35,3 +35,3 @@ "sideEffects": false, | ||
], | ||
"gitHead": "0d7dc2c374512e097827aa0f6f724d15a771fd5f" | ||
"gitHead": "b09e1f5eb179f8ef167d264fab4dc5234ac9f83b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
266785
4981
+ Added@searchspring/snap-toolbox@0.31.0(transitive)
- Removed@searchspring/snap-toolbox@0.30.2(transitive)