@streamlayer/sdk-web-interfaces 1.6.4 → 1.7.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.
@@ -10,6 +10,10 @@ declare const EventBusActions: {
10
10
  close: string;
11
11
  open: string;
12
12
  };
13
+ exposedPauseAd: {
14
+ enabled: string;
15
+ disabled: string;
16
+ };
13
17
  invitation: {
14
18
  accepted: string;
15
19
  sent: string;
@@ -26,14 +30,24 @@ declare const EventBusActions: {
26
30
  viewed: string;
27
31
  closed: string;
28
32
  videoPlay: string;
33
+ videoEnd: string;
34
+ videoRendered: string;
35
+ videoMuted: string;
36
+ videoUnmuted: string;
37
+ videoReplayed: string;
38
+ quartileCompleted: string;
29
39
  buttonSelect: string;
30
40
  bannerSelect: string;
41
+ bannerShown: string;
31
42
  };
32
43
  poll: {
33
44
  voted: string;
34
45
  navigated: string;
35
46
  opened: string;
47
+ viewed: string;
48
+ closed: string;
36
49
  received: string;
50
+ onboardingOpen: string;
37
51
  onboardingPassed: string;
38
52
  };
39
53
  };
@@ -45,6 +59,7 @@ export type EventBusActionPayload = {
45
59
  questionType?: QuestionType;
46
60
  };
47
61
  app: unknown;
62
+ exposedPauseAd: unknown;
48
63
  invitation: {
49
64
  from?: InvitationFrom;
50
65
  };
@@ -56,11 +71,14 @@ export type EventBusActionPayload = {
56
71
  openedFrom?: 'auto' | 'notification';
57
72
  hasNotification?: boolean;
58
73
  hasBanner?: boolean;
74
+ quartile?: 25 | 50 | 75;
59
75
  };
60
76
  poll: {
61
77
  questionId?: string;
62
78
  questionType?: QuestionType;
63
79
  questionOpenedFrom?: 'list' | 'notification';
80
+ hasBanner?: boolean;
81
+ isAd?: boolean;
64
82
  };
65
83
  };
66
84
  type EventBusActionsKeys = keyof typeof EventBusActions;
@@ -79,7 +97,7 @@ export declare class EventBus {
79
97
  private name;
80
98
  private listeners;
81
99
  constructor(name?: string);
82
- emit: <K extends EventBusActionsKeys = "notification" | "app" | "invitation" | "interactions" | "advertisement" | "poll">(type: K, payload: Omit<EventBusData<K>, "type">) => void;
100
+ emit: <K extends EventBusActionsKeys = "notification" | "app" | "exposedPauseAd" | "invitation" | "interactions" | "advertisement" | "poll">(type: K, payload: Omit<EventBusData<K>, "type">) => void;
83
101
  listen<T extends EventBusActionsKeys>(listener: (event: EventBusEvent<T>) => void): () => void;
84
102
  off<T extends EventBusActionsKeys>(listener: (event: EventBusEvent<T>) => void): void;
85
103
  destroy: () => void;
@@ -10,6 +10,10 @@ const EventBusActions = {
10
10
  close: 'close',
11
11
  open: 'open',
12
12
  },
13
+ exposedPauseAd: {
14
+ enabled: 'enabled',
15
+ disabled: 'disabled',
16
+ },
13
17
  invitation: {
14
18
  accepted: 'accepted',
15
19
  sent: 'sent',
@@ -26,14 +30,24 @@ const EventBusActions = {
26
30
  viewed: 'viewed',
27
31
  closed: 'closed',
28
32
  videoPlay: 'videoPlay',
33
+ videoEnd: 'videoEnd',
34
+ videoRendered: 'videoRendered',
35
+ videoMuted: 'videoMuted',
36
+ videoUnmuted: 'videoUnmuted',
37
+ videoReplayed: 'videoReplayed',
38
+ quartileCompleted: 'quartileCompleted',
29
39
  buttonSelect: 'buttonSelect',
30
40
  bannerSelect: 'bannerSelect',
41
+ bannerShown: 'bannerShown',
31
42
  },
32
43
  poll: {
33
44
  voted: 'voted',
34
45
  navigated: 'navigated',
35
46
  opened: 'opened',
47
+ viewed: 'viewed',
48
+ closed: 'closed',
36
49
  received: 'received',
50
+ onboardingOpen: 'onboardingOpen',
37
51
  onboardingPassed: 'onboardingPassed',
38
52
  },
39
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/sdk-web-interfaces",
3
- "version": "1.6.4",
3
+ "version": "1.7.0",
4
4
  "type": "module",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
@@ -19,8 +19,8 @@
19
19
  "@bufbuild/protobuf": "^2.2.2",
20
20
  "@nanostores/query": "^0.2.10",
21
21
  "nanostores": "^0.11.4",
22
- "@streamlayer/sdk-web-logger": "^1.0.66",
23
- "@streamlayer/sdk-web-types": "^1.13.1"
22
+ "@streamlayer/sdk-web-logger": "^1.0.67",
23
+ "@streamlayer/sdk-web-types": "^1.14.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "tslib": "^2.7.0"