@streamlayer/feature-gamification 0.23.0 → 0.24.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.
@@ -89,14 +89,15 @@ export class Gamification extends AbstractFeature {
89
89
  });
90
90
  }
91
91
  else if (question.data.question.type === QuestionType.FACTOID) {
92
+ const optionsValue = question.data.question.options?.options.value;
92
93
  const instantView = {
93
- heading: '',
94
- body: '',
95
- image: '',
94
+ heading: question.data.question.notification.title,
95
+ body: question.data.question.notification.body,
96
+ image: question.data.question.notification.image,
96
97
  video: {
97
- id: '',
98
- url: '',
99
- thumbnailUrl: '',
98
+ id: optionsValue?.video?.id || '',
99
+ url: optionsValue?.video?.url || '',
100
+ thumbnailUrl: optionsValue?.video?.thumbnailUrl || '',
100
101
  },
101
102
  webLink: {
102
103
  label: '',
package/lib/onboarding.js CHANGED
@@ -21,7 +21,7 @@ export var OnboardingStatus;
21
21
  })(OnboardingStatus || (OnboardingStatus = {}));
22
22
  export const onboarding = (service, background, transport, notifications) => {
23
23
  const storage = new GamificationStorage();
24
- const $store = createSingleStore(OnboardingStatus.Unset);
24
+ const $store = createSingleStore(OnboardingStatus.Completed);
25
25
  const showOnboardingInApp = () => {
26
26
  const { inplayGame = {} } = service.featureSettings.get();
27
27
  const notificationId = background.getCurrentSessionId({ prefix: 'onboarding' });
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@streamlayer/feature-gamification",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "peerDependencies": {
5
5
  "@bufbuild/protobuf": "^1.4.2",
6
6
  "@streamlayer/sl-eslib": "^5.53.6",
7
7
  "@fastify/deepmerge": "*",
8
8
  "nanostores": "^0.9.5",
9
9
  "@streamlayer/sdk-web-api": "^0.0.1",
10
- "@streamlayer/sdk-web-interfaces": "^0.18.14",
11
- "@streamlayer/sdk-web-logger": "^0.0.3",
12
- "@streamlayer/sdk-web-core": "^0.17.7",
13
- "@streamlayer/sdk-web-notifications": "^0.12.0",
14
- "@streamlayer/sdk-web-storage": "^0.0.3",
15
- "@streamlayer/sdk-web-types": "^0.20.0"
10
+ "@streamlayer/sdk-web-core": "^0.17.8",
11
+ "@streamlayer/sdk-web-interfaces": "^0.18.15",
12
+ "@streamlayer/sdk-web-logger": "^0.0.4",
13
+ "@streamlayer/sdk-web-notifications": "^0.12.1",
14
+ "@streamlayer/sdk-web-storage": "^0.0.4",
15
+ "@streamlayer/sdk-web-types": "^0.20.1"
16
16
  },
17
17
  "devDependencies": {
18
18
  "tslib": "^2.6.2"