@streamlayer/feature-gamification
Advanced tools
Comparing version 1.10.1 to 1.11.0
@@ -31,2 +31,5 @@ import { createMapStore, eventBus } from '@streamlayer/sdk-web-interfaces'; | ||
// } | ||
const adHasBanner = (data) => (data?.promotion?.type === PromotionType.INGAME_IAB11_LBAR || | ||
data?.promotion?.type === PromotionType.INGAME_IAB21_LBAR) && | ||
!!data.promotion.additionalBanner?.imageUrl; | ||
/** | ||
@@ -62,2 +65,3 @@ * @name Advertisement | ||
type, | ||
hasBanner: adHasBanner(payload.data), | ||
}, | ||
@@ -81,2 +85,3 @@ }); | ||
type, | ||
hasBanner: adHasBanner(payload.data), | ||
}, | ||
@@ -139,2 +144,3 @@ }); | ||
hasNotification: !!active.hasNotification, | ||
hasBanner: adHasBanner(active.data), | ||
isViewed: !!storage.isViewed(active.data.question.id), | ||
@@ -152,2 +158,3 @@ }, | ||
hasNotification: !!prevActive.hasNotification, | ||
hasBanner: adHasBanner(prevActive.data), | ||
isViewed: !!storage.isViewed(prevActive.data.question.id), | ||
@@ -154,0 +161,0 @@ }, |
{ | ||
"name": "@streamlayer/feature-gamification", | ||
"version": "1.10.1", | ||
"version": "1.11.0", | ||
"peerDependencies": { | ||
@@ -9,9 +9,9 @@ "@bufbuild/protobuf": "^1.10.0", | ||
"nanostores": "^0.10.3", | ||
"@streamlayer/sdk-web-api": "^1.6.10", | ||
"@streamlayer/sdk-web-core": "^1.7.2", | ||
"@streamlayer/sdk-web-interfaces": "^1.2.10", | ||
"@streamlayer/sdk-web-logger": "^1.0.31", | ||
"@streamlayer/sdk-web-notifications": "^1.2.10", | ||
"@streamlayer/sdk-web-storage": "^1.0.31", | ||
"@streamlayer/sdk-web-types": "^1.8.4" | ||
"@streamlayer/sdk-web-api": "^1.6.11", | ||
"@streamlayer/sdk-web-core": "^1.8.0", | ||
"@streamlayer/sdk-web-interfaces": "^1.3.0", | ||
"@streamlayer/sdk-web-logger": "^1.0.32", | ||
"@streamlayer/sdk-web-notifications": "^1.2.11", | ||
"@streamlayer/sdk-web-storage": "^1.0.32", | ||
"@streamlayer/sdk-web-types": "^1.8.5" | ||
}, | ||
@@ -18,0 +18,0 @@ "devDependencies": { |
135890
2729