@streamlayer/feature-gamification
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -29,2 +29,14 @@ import { createMapStore, eventBus } from '@streamlayer/sdk-web-interfaces'; | ||
$store.setKey('hasNotification', false); | ||
const payload = $store.get(); | ||
const id = payload.data?.question.id; | ||
const type = payload.data?.promotion?.type; | ||
if (id) { | ||
eventBus.emit('advertisement', { | ||
action: 'notification-opened', | ||
payload: { | ||
id, | ||
type, | ||
}, | ||
}); | ||
} | ||
}; | ||
@@ -31,0 +43,0 @@ const markAsViewed = () => { |
{ | ||
"name": "@streamlayer/feature-gamification", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"peerDependencies": { | ||
@@ -9,9 +9,9 @@ "@bufbuild/protobuf": "^1.10.0", | ||
"nanostores": "^0.10.3", | ||
"@streamlayer/sdk-web-api": "^1.6.1", | ||
"@streamlayer/sdk-web-core": "^1.6.0", | ||
"@streamlayer/sdk-web-interfaces": "^1.2.1", | ||
"@streamlayer/sdk-web-logger": "^1.0.22", | ||
"@streamlayer/sdk-web-storage": "^1.0.22", | ||
"@streamlayer/sdk-web-notifications": "^1.2.1", | ||
"@streamlayer/sdk-web-types": "^1.7.1" | ||
"@streamlayer/sdk-web-api": "^1.6.2", | ||
"@streamlayer/sdk-web-core": "^1.6.1", | ||
"@streamlayer/sdk-web-interfaces": "^1.2.2", | ||
"@streamlayer/sdk-web-logger": "^1.0.23", | ||
"@streamlayer/sdk-web-notifications": "^1.2.2", | ||
"@streamlayer/sdk-web-storage": "^1.0.23", | ||
"@streamlayer/sdk-web-types": "^1.7.2" | ||
}, | ||
@@ -18,0 +18,0 @@ "devDependencies": { |
127557
2537