@tivio/sdk-react 10.1.0 → 10.2.1

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.
@@ -1,8 +1,7 @@
1
1
  import type { ComponentType } from 'react';
2
2
  import { DocumentReference } from '@firebase/firestore-types';
3
3
  import type duration from 'dayjs/plugin/duration';
4
- import type { default as firebase_2 } from '@firebase/app-types';
5
- import type { default as firebase_3 } from 'firebase';
4
+ import type firebase from '@firebase/app-types';
6
5
  import { FunctionComponentElement } from 'react';
7
6
  import type { GeoPoint } from '@firebase/firestore-types';
8
7
  import { OperatingSystem } from 'detect-browser';
@@ -26,7 +25,22 @@ export declare interface ActivatedPromotionsWithIdsResponse {
26
25
  activatedPromotionsIds: string[];
27
26
  }
28
27
 
29
- export declare type ActivateVoucherResponse = string | ActivatedPromotionsResponse | ActivatedPromotionsWithIdsResponse;
28
+ /**
29
+ * Response returned when `activateVoucher` is called with `responseFormat: 'extended'`.
30
+ *
31
+ * It always carries `voucherInfo` (safe server-side metadata) and, depending on the
32
+ * voucher type, either a `purchaseId` (transaction / subscription) or the list of
33
+ * `activatedPromotions` (promotion voucher).
34
+ */
35
+ export declare interface ActivateVoucherExtendedResponse {
36
+ voucherInfo: VoucherInfoPublic;
37
+ purchaseId?: string;
38
+ activatedPromotions?: ActivatedPromotion[];
39
+ }
40
+
41
+ export declare type ActivateVoucherResponse = string | ActivatedPromotionsResponse | ActivatedPromotionsWithIdsResponse | ActivateVoucherExtendedResponse;
42
+
43
+ export declare type ActivateVoucherResponseFormat = 'legacy' | 'extended';
30
44
 
31
45
  declare interface actualPriceDetails {
32
46
  amountCents: number;
@@ -599,7 +613,7 @@ export declare interface AvatarProps {
599
613
  */
600
614
  export declare type BadRequestError = Error & {
601
615
  details?: {
602
- reason?: 'DOES_NOT_EXIST' | 'EXPIRED' | 'ALREADY_USED' | 'ALREADY_USED_BY_CURRENT_USER';
616
+ reason?: 'DOES_NOT_EXIST' | 'EXPIRED' | 'ALREADY_USED' | 'ALREADY_USED_BY_CURRENT_USER' | 'LIMIT_REACHED' | 'FULFILLED' | 'INVALID_VOUCHER_TYPE';
603
617
  };
604
618
  };
605
619
 
@@ -1498,7 +1512,10 @@ export declare enum CustomerId {
1498
1512
  THE_JOHNY = "THE_JOHNY",
1499
1513
  GOOD_MOVE = "GOOD_MOVE",
1500
1514
  JANA_HANZ = "JANA_HANZ",
1501
- MYSTICO = "MYSTICO"
1515
+ MYSTICO = "MYSTICO",
1516
+ MORAVEC = "MORAVEC",
1517
+ JAN_TUNA = "JAN_TUNA",
1518
+ PODNIKATELSKY_MINDSET = "PODNIKATELSKY_MINDSET"
1502
1519
  }
1503
1520
 
1504
1521
  /**
@@ -3621,6 +3638,16 @@ export declare interface MonetizationCardProps {
3621
3638
  focused?: boolean;
3622
3639
  }
3623
3640
 
3641
+ /**
3642
+ * @public
3643
+ */
3644
+ export declare type MonetizationCta = {
3645
+ type: 'email';
3646
+ payload: {
3647
+ email: string;
3648
+ };
3649
+ };
3650
+
3624
3651
  export declare interface MonetizationsCountsSummaryItem {
3625
3652
  /**
3626
3653
  * Unix timestamp at which the data is aggregated
@@ -5021,6 +5048,11 @@ export declare interface PubSub {
5021
5048
  * @public
5022
5049
  */
5023
5050
  export declare interface PurchasableMonetization extends Monetization {
5051
+ /**
5052
+ * If CTA is configured, the monetization should not be directly purchasable in clients.
5053
+ * Client apps should render CTA action instead of purchase button.
5054
+ */
5055
+ cta?: MonetizationCta;
5024
5056
  /**
5025
5057
  * Price before any discounts (e.g. promotions).
5026
5058
  */
@@ -7007,14 +7039,6 @@ export declare type SubscribeToTaggedVideosOptions = Omit<SubscribeToItemsInRowO
7007
7039
  orderBy?: OrderBy<TaggedVideosOrderByField>[];
7008
7040
  };
7009
7041
 
7010
- declare interface SubscriptionInfo {
7011
- id: string;
7012
- type: 'subscription';
7013
- name: string;
7014
- benefits: string[];
7015
- frequency: string;
7016
- }
7017
-
7018
7042
  /**
7019
7043
  * Extended language codes for subtitle tracks.
7020
7044
  * Includes all LangCode values plus additional languages only needed for subtitles.
@@ -7483,7 +7507,7 @@ export declare interface TivioConfig {
7483
7507
  debug?: boolean;
7484
7508
  verbose?: boolean;
7485
7509
  firebaseApp?: any | null;
7486
- firebaseFactory?: (config: object, appName?: string) => firebase_2.FirebaseApp;
7510
+ firebaseFactory?: (config: object, appName?: string) => firebase.FirebaseApp;
7487
7511
  authDomainOverride?: string;
7488
7512
  /**
7489
7513
  * @deprecated this field is no longer in use and has no impact when set.
@@ -7612,7 +7636,7 @@ export declare type TivioHooks = {
7612
7636
  data: Video | null;
7613
7637
  error: string | null;
7614
7638
  };
7615
- useVoucher: (voucherId: string) => any;
7639
+ useVoucher: (voucherId: string) => UseVoucherReturn;
7616
7640
  useApplyInviteCode: () => {
7617
7641
  applyInviteCodeResult?: boolean;
7618
7642
  loading: boolean;
@@ -7863,7 +7887,7 @@ export declare type TivioReactBundle = {
7863
7887
  }, email?: string) => Promise<QerkoPaymentInfo>;
7864
7888
  purchaseSubscriptionWithQerko: (monetizationId: string, voucher?: {
7865
7889
  expirationDate: Date;
7866
- }) => Promise<QerkoPaymentInfo>;
7890
+ }, email?: string, quantity?: number) => Promise<QerkoPaymentInfo>;
7867
7891
  cancelSubscriptionWithQerko: (subscriptionId: string) => Promise<QerkoCancellationInfo>;
7868
7892
  showConsentPreferences: () => void;
7869
7893
  /**
@@ -7972,17 +7996,6 @@ export declare interface Track {
7972
7996
  language: LangCode;
7973
7997
  }
7974
7998
 
7975
- declare interface TransactionInfo {
7976
- id: string;
7977
- type: 'transaction';
7978
- name: string;
7979
- videoId: string;
7980
- cover: string;
7981
- description: string;
7982
- promotions?: firebase_3.firestore.DocumentReference<Promotion>[];
7983
- fullDiscount?: boolean;
7984
- }
7985
-
7986
7999
  /**
7987
8000
  * Represents one string in every supported language mutation.
7988
8001
  * @public
@@ -8831,19 +8844,28 @@ export declare const useVideo: (videoIdOrUrlName?: string) => {
8831
8844
  /**
8832
8845
  * @public
8833
8846
  */
8834
- export declare const useVoucher: (voucherId: string) => {
8835
- activate: (() => Promise<void>) | null;
8836
- voucher: Voucher | null;
8837
- /**
8838
- * You can check error.details if you need to know error type when you want your own error messages
8839
- * (can be one of "DOES_NOT_EXIST", "EXPIRED", "ALREADY_USED_BY_CURRENT_USER" and "ALREADY_USED").
8840
- */
8841
- error: Error | BadRequestError | null;
8842
- /**
8843
- * True if voucher has been successfully activated in current session.
8844
- */
8847
+ export declare const useVoucher: (voucherId: string) => UseVoucherReturn;
8848
+
8849
+ /**
8850
+ * Return type of `useVoucher` hook (core-react / sdk-react).
8851
+ *
8852
+ * Activation is triggered via the top-level `activate`. After a successful activation
8853
+ * `voucher` carries the server-provided metadata (`voucherInfo`, `videoId`,
8854
+ * `subscriptionsToShow`) as flat attributes. While the voucher is still initializing,
8855
+ * `voucher` is `null`.
8856
+ */
8857
+ export declare interface UseVoucherReturn {
8858
+ activate: () => Promise<void>;
8859
+ voucher: {
8860
+ organizationId: string | null;
8861
+ isInitialized: boolean;
8862
+ voucherInfo: VoucherInfoPublic | null;
8863
+ videoId?: string;
8864
+ subscriptionsToShow: PurchasableMonetization[];
8865
+ } | null;
8866
+ error: Error | null;
8845
8867
  activationSuccess: boolean;
8846
- };
8868
+ }
8847
8869
 
8848
8870
  /**
8849
8871
  * @public
@@ -9477,15 +9499,35 @@ export declare interface VodTivioSourceParams extends PlayerSourceParams<SourceT
9477
9499
  sessionId?: string;
9478
9500
  }
9479
9501
 
9480
- /**
9481
- * TODO: Should be in core-js, we can't import types from it, though.
9482
- */
9483
- declare interface Voucher {
9484
- activate: () => void;
9485
- isUsed: boolean;
9502
+ export declare interface VoucherInfoBasePublic {
9503
+ id: string;
9486
9504
  isExpired: boolean;
9487
- status: 'NEW' | 'USED';
9488
- voucherInfo: SubscriptionInfo | TransactionInfo;
9505
+ status: VoucherInfoPublicStatus;
9506
+ fullDiscount?: boolean;
9507
+ /**
9508
+ * Video the voucher relates to, when the voucher document references one
9509
+ * (`videoRef`). Present for both subscription and transaction vouchers.
9510
+ */
9511
+ videoId?: string;
9512
+ }
9513
+
9514
+ export declare type VoucherInfoPublic = VoucherInfoSubscriptionPublic | VoucherInfoTransactionPublic;
9515
+
9516
+ export declare type VoucherInfoPublicStatus = 'NEW' | 'USED' | 'FULFILLED';
9517
+
9518
+ export declare interface VoucherInfoSubscriptionPublic extends VoucherInfoBasePublic {
9519
+ type: 'subscription';
9520
+ name: string;
9521
+ benefits: string[];
9522
+ frequency?: MONETIZATION_FREQUENCY;
9523
+ }
9524
+
9525
+ export declare interface VoucherInfoTransactionPublic extends VoucherInfoBasePublic {
9526
+ type: 'transaction';
9527
+ name: string;
9528
+ videoId: string;
9529
+ cover: string;
9530
+ description: string;
9489
9531
  }
9490
9532
 
9491
9533
  declare interface VoucherPageConfiguration {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tivio/sdk-react",
3
- "version": "10.1.0",
3
+ "version": "10.2.1",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "source": "src/index.ts",
@@ -15,6 +15,8 @@
15
15
  "turbo:build:libs:dev": "yarn build:dev",
16
16
  "turbo:build:libs:prod": "yarn build:prod",
17
17
  "build:ci": "yarn build:prod",
18
+ "typecheck": "yarn tsc --noEmit",
19
+ "typecheck:tests": "yarn tsc --noEmit -P src/__tests__/tsconfig.test.json",
18
20
  "build:local": "bash ./scripts/build_with_local_bundle.sh && yarn typesRollup",
19
21
  "release": "ts-node ./scripts/release.ts -p=sdk-react -c=CHANGELOG.md",
20
22
  "release:patch": "yarn release -r=patch",
@@ -39,7 +41,7 @@
39
41
  "@material-ui/core": "^4.11.2",
40
42
  "@material-ui/icons": "^4.11.2",
41
43
  "@sentry/browser": "^6.1.0",
42
- "@tivio/common": "1.1.135",
44
+ "@tivio/common": "1.1.138",
43
45
  "dayjs": "^1.11.0",
44
46
  "es7-object-polyfill": "^1.0.1",
45
47
  "firebase": "8.10.1",
package/CHANGELOG.md DELETED
@@ -1,333 +0,0 @@
1
- ## Changelog
2
- * 10.1.0
3
- * minor: expose useInteractiveWidget, usePollWidget, useQuizWidget, useRemoteController
4
- * minor: expose useRemoteController hook
5
-
6
- * 10.0.0
7
- * major: **BREAKING** new purchase flow — `PurchasableMonetization.frequency` is now a structured object (`{ unit, value, title }`) instead of a plain `MONETIZATION_FREQUENCY` enum value. Replace `frequency === MONETIZATION_FREQUENCY.X` checks with `frequency?.unit === MONETIZATION_FREQUENCY.X`. The new `value` and `title` fields make it easier to render recurring prices (e.g. "9.99 € / 3 months") without hand-rolling the period label.
8
- * major: **BREAKING** `TileProps` renamed to `TileComponentProps` to avoid a naming collision with the `TileProps` exported from row types
9
- * minor: support Single Sign-On (SSO) across all subdomains under the same parent domain
10
- * minor: add `getTagsByIds` method for batch tag lookup
11
-
12
- * 9.2.0
13
- * minor: remove deprecated TivioWidget component
14
- * minor: remove deprecated TivioWidgetError component
15
- * minor: remove deprecated TivioWidgetLoader component
16
- * patch: deprecate PurchasesWithVideosContextProvider
17
- * minor: remove unused WebProfileScreen component
18
- * minor: remove unused ChannelContext context
19
- * minor: added video controller return from renderWebPlayer
20
- * minor: update docs usage of renderWebPlayer and video controller
21
-
22
- * 9.2.0-alpha.4
23
- * patch: expose getUser, resetPassword and signOut methods in RemoteBundleState type
24
- * patch: more precise types for user profile fields and methods
25
- * patch: add missing jsdocs for some User type fields
26
-
27
- * 9.2.0-alpha.0
28
- * minor: add renderWebPlayer method for rendering outside of React
29
- * minor: "expose createTivio"
30
-
31
- * 9.1.7
32
- * patch: update remote controller component API
33
-
34
- * 9.1.6
35
- * minor: add remote controller
36
-
37
- * 9.1.5
38
- * patch: expose purchase loyalty points through types
39
- * patch: enable setUser check
40
-
41
- * 9.1.4
42
- * patch: disable setUser check
43
- * patch: rollback "add renderWebPlayer method for rendering outside of React"
44
- * patch: rollback "expose createTivio"
45
-
46
- * 9.1.3
47
- * patch: add renderWebPlayer method for rendering outside of React
48
- * patch: expose createTivio
49
-
50
- * 9.1.4
51
- * patch: disable setUser check
52
-
53
- * 9.1.3
54
- * minor: add renderWebPlayer method for rendering outside of React
55
- * minor: expose createTivio
56
-
57
- * 9.1.2
58
- * patch: update PurchaseEndpointPayload type (cityName, externalId, geoPoint)
59
-
60
- * 9.1.1
61
- * patch: fix changelog
62
-
63
- * 9.1.0
64
- * patch: add gateway to Purchase type
65
- * minor: add QerkoPaymentWebhookByApiKeyRequest to exported types
66
-
67
- * 9.0.0
68
- * patch: remove i18next and react-i18next from externals and dependencies
69
- * patch: do not send react-spring to core-react-dom bundle, remove react-spring from dependencies
70
- * patch: clean-up externals in webpack config
71
- * patch: send only required dependencies to the bundle
72
- * major: change purchase statuses lifecycle
73
- * minor: add originalPurchaseId to PurchaseEndpointPayload
74
-
75
- * 8.0.0
76
- * major: deprecated usePurchasesWithVideos hook removed
77
- * patch: add id to user type
78
- * patch: add @types/react to peerDependencies
79
-
80
- * 7.1.0
81
- * minor: export useTvChannelHook
82
- * patch: bump "react-i18next", "i18next" versions.
83
-
84
- * 7.0.1
85
- * patch: fix dependency to @tivio/common
86
-
87
- * 7.0.0
88
- * major: delete deprecated useWatchWithoutAdsOffer hook
89
- * major: consolidate duplicated source types
90
- * patch: add new properties to PlayerInterface
91
- * patch: expose getSeekingMatrixPreviewByTime in Video interface
92
- * major: delete deprecated useBetOffer hook
93
- * major: rework of source types
94
- * major: make useChannelSource deprecated
95
-
96
- * 6.0.1
97
- * patch: fix dependency to @tivio/common
98
-
99
- * 6.0.0
100
- * major: delete usePlayerEvent hook
101
- * major: replace uri attributes in types with url
102
- * major: delete uri attributes from types
103
- * minor: add purchase expiration to PurchaseEndpointPayload
104
- * minor: add optional videoId parameter to useOrganizationSubscription hook
105
-
106
- * 5.0.2
107
- * patch: export hook useChannelSource
108
-
109
- * 5.0.1
110
- * patch: move changelog
111
-
112
- * 5.0.0
113
- * major: upgrade to React 18, change react and react-dom peer dependencies to 17.x || 18.x
114
- * major: fix typing for useReferralInfo, now correctly showing that `null` can be returned
115
- * major: fix typing for `WebRowProps.onTileClick`, now correctly showing that `null` can be accepted
116
- * minor: add analytics
117
- * minor: add getSourceUrl function to video and tv channel types
118
- * minor: add uri property to tv channel type
119
- * minor: add useChannelSource to hooks
120
-
121
- * 4.5.0
122
- * minor: extend PurchaseEndpointPayload type with purchase previousStatus and newStatus fields
123
-
124
- * 4.4.1
125
- * patch: added waitForTags param in useSearch hook for videos
126
-
127
- * 4.4.0
128
- * minor: PrimaryButton component props type set to any for now
129
- * patch: isPurchasableAsVoucher added to PurchasableMonetization
130
- * patch: voucherPurchase flag added to purchase overlays
131
- * patch: item added to MonetizationsSelectOverlayData
132
- * minor: added hungarian language to `LangCode` enum
133
-
134
- * 4.3.0:
135
- * minor: add GetPurchaseInfoResponse and PurchaseEndpointPayload to exported types
136
- * minor: support for disabling purchase of specified subscriptions (new param in useOrganizationSubscriptions hook)
137
- * minor: more specific PurchasableMonetization type usage instead of Monetization
138
- * minor: monetization property deleted from Video type
139
- * minor: monetization now has originalPrice and promotion properties available
140
- * patch: remove not used OrganizationSubscriptionsContext, **this change requires bundle 3.20.0 or newer**
141
-
142
- * 4.2.0:
143
- * minor: fix useSearch loading type
144
- * patch: added italian language to `LangCode` enum
145
-
146
- * 4.1.0
147
- * patch: added italian language to `LangCode` enum
148
- * minor: fixed spanish language code in `LangCode` enum (`sp` -> `es`)
149
- * minor: other misc type changes
150
-
151
- * 4.0.1
152
- * patch: added setBundleVersion setter to bundle type
153
- * patch: added setStorageManager setter to bundle type
154
- * patch: `Purchase.isPurchased` is deprecated
155
- * patch: fill `useSearch` field `hasNextPage` with proper value
156
-
157
- * 4.0.0
158
- * minor: Types cleanup
159
- * MAJOR: Remove deprecated and unused stuff
160
- * auth
161
- * changePassword
162
- * changeUserPhoto
163
- * removeUserPhoto
164
- * getPurchasedVodsWithInitializedVideos
165
- * initializeUser
166
- * createFreePurchase
167
- * components
168
- * videoAdBanner
169
- * getters
170
- * getExportedConfig
171
- * getChannelById
172
- * getSectionById
173
- * getWidgetById
174
- * hooks
175
- * useLastVideoByWidgetId
176
- * useScreen
177
- * useFreePurchase
178
- * useWidget
179
- * useChannel
180
- * useSection
181
- * useVideosInSection
182
- * useSectionsInChannel
183
- * useChannelsInWidget
184
- * subscriptions
185
- * subscribeToWidget
186
- * subscribeToChannel
187
- * subscribeToSection
188
- * subscribeToVideosInSection
189
- * subscribeToSectionsInChannel
190
- * subscribeToChannelsInWidget
191
- * subscribeToScreen
192
- ---
193
- _Versions <= v3.7.0 requires core-react-dom bundle < v3.0.0 (because sdk-react used some sdk API deleted in core-react-dom@4.0.0)_
194
-
195
- * 3.7.0
196
- * minor: purchase contains created and updated
197
-
198
- * 3.6.3
199
- * patch: improve README.md
200
-
201
- * 3.6.2
202
- * patch: Fix types
203
-
204
- * 3.6.1
205
- * patch: Fix README
206
-
207
- * 3.6.0
208
- * minor: Update types
209
-
210
- * 3.5.2
211
- * patch: All types are available again.
212
-
213
- * 3.5.1
214
- * patch: remove incorrect dependency (@tivio/types)
215
-
216
- * 3.5.0
217
- * minor: Types change - Video.price and Video.detailedPrice can be null
218
- * minor: Types change - Video.cover is marked as deprecated
219
-
220
- * 3.4.0
221
- * minor: more precise type for errors in usePurchaseRecovery and usePurchaseRecovery
222
- * patch: jsdocs for usePurchaseRecovery and usePurchaseRecovery
223
- * minor: inviteCodeReset in useApplyInviteCode
224
- * minor: Reset forgotten password
225
- * minor: Consolidating monetization logic
226
- * 3.3.2
227
- * patch: Adding new optional parameters (where, orderBy) to useTaggedVideos hook
228
- * 3.3.1
229
- * patch: Fixed types of `setUser`
230
- * 3.3.0
231
- * minor: Add getPlayerCapabilities to getters.
232
- * patch: Added option to log out via `setUser(null)`, requires @tivio/core-react-dom@2.17.9
233
- * 3.2.5
234
- * patch: added recovery flag to QerkoPaymentInfo type
235
- * patch: bundle.types changes - internal.components.WebVideoScreen
236
- * patch: types changes - add new onBack prop to WebPlayerProps
237
- * patch: Refactor useVideo hook, now uses hook from core-react
238
- * 3.2.4
239
- * minor: added useApplyInviteCode
240
- * minor: better errors from useVoucher
241
- * 3.2.3
242
- * minor: added usePurchaseRecovery hook
243
- * patch: deprecated `useLastVideoByWidgetId`
244
- * 3.2.2
245
- * minor: useRowsInScreen, useItemsInRow, useTaggedVideos - hasNextPage and loading added to pagination
246
- * minor: useRowsInScreen, useItemsInRow, useTaggedVideos - implementation moved to remote bundle
247
- * patch: Fixed Tivio startup on Tizen 6
248
- * minor: Added `forceCloudFnResolver` option
249
- * 3.2.1
250
- * patch: fix of @tivio/common version
251
- * 3.2.0
252
- * minor: Added `capabilitiesOptions` for finer configuration of device capabilities
253
- * minor: tag names are returned in correct language (the one from tivio config); language value should be one from enum "LangCode"
254
- * 3.1.3
255
- * patch: Hotfix made sure disabled Tivio does not break React Native
256
- * 3.1.2
257
- * patch: Allow `conf` prop of `TivioProvider` to be `null` or `undefined` in order to turn off Tivio
258
- * 3.1.1
259
- * patch: fixed `setUser()` crash when bundle fails to load
260
- * 3.1.0
261
- * patch: `useAdSegment()` now returns null if no monetization is configured, ad segments are not managed in that situation
262
- * minor: enriched `AdSegment` type from `useAdSegment()`
263
- * minor: Added `setUser()` function for login and logout
264
- * 3.0.0
265
- * minor: Added hook `useWatchWithoutAdsOffer` to trigger purchase dialog to "watch without ads", if available
266
- * patch: fix peerDependency declaration for react, react-dom
267
- * major: TivioProvider requires deviceCapabilities
268
- * major: TivioProvider requires currency
269
- * minor: add voucher support (see usePurchaseSubscription and useTransactionPayment hooks)
270
- * minor: device limit support
271
- * minor: drm (Widevine, PlayReady) support
272
- * minor: watermarking support
273
- * minor: add useSearch hook
274
- * patch: price on video is 0 when purchased
275
- * 2.4.2
276
- * patch: added back changelog
277
- * 2.4.1
278
- * patch: improved doc about player wrapper
279
- * 2.4.0
280
- * patch: improved Player wrapper types
281
- * minor: added Tivio DOM events `tivio_key_input_handling_change`, `tivio_context_switch` and `tivio_request_goto`
282
- * patch: added support for remote code on browsers that do not implement [indexedDB API](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)
283
- * patch: added support for browsers that do not implement [indexedDB API](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)
284
- * 2.3.4
285
- * patch: fix of usePurchaseSubscription not reactive
286
- * 2.3.3
287
- * patch: fix of useUser not updating
288
- * 2.3.2
289
- * patch: next app doesn't fail anymore due to "self is not defined"
290
- * 2.3.1
291
- * patch: fix of @tivio/common dependency
292
- * 2.3.0
293
- * minor: add useTaggedVideos that allows to fetch videos with given tags
294
- * minor: add option to fetch tags (on hook useItemsInRow), useVideo always fetching videos tags
295
- * 2.2.1
296
- * patch: disable Sentry when no config is supplied to `TivioProvider`
297
- * 2.2.0
298
- * patch: reduced bundle size
299
- * minor: disable Sentry when no config is supplied to `TivioProvider` or when Tivio is disabled `{ enable: false }`, or when Sentry is disabled via config `{ enableSentry: false }`
300
- * 2.1.5
301
- * patch fix of `useVideosInSection` hook (fetching video's monetizations)
302
- * 2.1.4
303
- * patch: fix re-rendering of `useAd` during non-skippable ads (requires core-react-dom@2.1.9)
304
- * 2.1.3
305
- * patch: fix changelog
306
- * 2.1.2
307
- * patch: Fixed exported types
308
- * 2.1.1
309
- * patch: TivioWidget now correctly reports `false` via `onEnabled` callback when in invalid internal state
310
- * 2.1.0
311
- * patch: fix of useItemsInRow hook
312
- * patch: fix of useScreen hook
313
- * add: useRowsInScreen hook
314
- * 2.0.3
315
- * patch: fix of useItemsInRow hook
316
- * 2.0.2
317
- * patch: screen and row IDs fixed
318
- * `TivioBundle.subscriptions.subscribeToItemsInRow` now accepts user-defined ID via studio.tiv.io
319
- * `TivioBundle.subscriptions.subscribeToScreen` now accepts user-defined ID via studio.tiv.io
320
- * `Screen` and `Row` types returned by `useScreen()` return their user-defined IDs (`.id`) correctly
321
- * 2.0.1
322
- * no changes
323
- * 2.0.0
324
- * major: video.channelId can now be `string | null` used to be `string`
325
- * minor: added data API and hooks for screens (screens, rows of screen and row items)
326
- * hooks: `useScreen()`, `useItemsInRow()`
327
- * api: `TivioBundle.subscriptions.subscribeToScreen`, `TivioBundle.subscriptions.subscribeToItemsInRow`
328
- * 1.3.6
329
- * ?
330
- * 1.3.5
331
- * minor: added WebPlayer props (canReplay, showMarkers, customShortcuts, enableKeyboardShortcuts, source.poster)
332
- * 1.3.4
333
- * ...