@tivio/sdk-react 9.7.1 → 10.0.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,329 @@
1
+ ## Changelog
2
+ * 10.0.0
3
+ * 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.
4
+ * major: **BREAKING** `TileProps` renamed to `TileComponentProps` to avoid a naming collision with the `TileProps` exported from row types
5
+ * minor: support Single Sign-On (SSO) across all subdomains under the same parent domain
6
+ * minor: add `getTagsByIds` method for batch tag lookup
7
+
8
+ * 9.2.0
9
+ * minor: remove deprecated TivioWidget component
10
+ * minor: remove deprecated TivioWidgetError component
11
+ * minor: remove deprecated TivioWidgetLoader component
12
+ * patch: deprecate PurchasesWithVideosContextProvider
13
+ * minor: remove unused WebProfileScreen component
14
+ * minor: remove unused ChannelContext context
15
+ * minor: added video controller return from renderWebPlayer
16
+ * minor: update docs usage of renderWebPlayer and video controller
17
+
18
+ * 9.2.0-alpha.4
19
+ * patch: expose getUser, resetPassword and signOut methods in RemoteBundleState type
20
+ * patch: more precise types for user profile fields and methods
21
+ * patch: add missing jsdocs for some User type fields
22
+
23
+ * 9.2.0-alpha.0
24
+ * minor: add renderWebPlayer method for rendering outside of React
25
+ * minor: "expose createTivio"
26
+
27
+ * 9.1.7
28
+ * patch: update remote controller component API
29
+
30
+ * 9.1.6
31
+ * minor: add remote controller
32
+
33
+ * 9.1.5
34
+ * patch: expose purchase loyalty points through types
35
+ * patch: enable setUser check
36
+
37
+ * 9.1.4
38
+ * patch: disable setUser check
39
+ * patch: rollback "add renderWebPlayer method for rendering outside of React"
40
+ * patch: rollback "expose createTivio"
41
+
42
+ * 9.1.3
43
+ * patch: add renderWebPlayer method for rendering outside of React
44
+ * patch: expose createTivio
45
+
46
+ * 9.1.4
47
+ * patch: disable setUser check
48
+
49
+ * 9.1.3
50
+ * minor: add renderWebPlayer method for rendering outside of React
51
+ * minor: expose createTivio
52
+
53
+ * 9.1.2
54
+ * patch: update PurchaseEndpointPayload type (cityName, externalId, geoPoint)
55
+
56
+ * 9.1.1
57
+ * patch: fix changelog
58
+
59
+ * 9.1.0
60
+ * patch: add gateway to Purchase type
61
+ * minor: add QerkoPaymentWebhookByApiKeyRequest to exported types
62
+
63
+ * 9.0.0
64
+ * patch: remove i18next and react-i18next from externals and dependencies
65
+ * patch: do not send react-spring to core-react-dom bundle, remove react-spring from dependencies
66
+ * patch: clean-up externals in webpack config
67
+ * patch: send only required dependencies to the bundle
68
+ * major: change purchase statuses lifecycle
69
+ * minor: add originalPurchaseId to PurchaseEndpointPayload
70
+
71
+ * 8.0.0
72
+ * major: deprecated usePurchasesWithVideos hook removed
73
+ * patch: add id to user type
74
+ * patch: add @types/react to peerDependencies
75
+
76
+ * 7.1.0
77
+ * minor: export useTvChannelHook
78
+ * patch: bump "react-i18next", "i18next" versions.
79
+
80
+ * 7.0.1
81
+ * patch: fix dependency to @tivio/common
82
+
83
+ * 7.0.0
84
+ * major: delete deprecated useWatchWithoutAdsOffer hook
85
+ * major: consolidate duplicated source types
86
+ * patch: add new properties to PlayerInterface
87
+ * patch: expose getSeekingMatrixPreviewByTime in Video interface
88
+ * major: delete deprecated useBetOffer hook
89
+ * major: rework of source types
90
+ * major: make useChannelSource deprecated
91
+
92
+ * 6.0.1
93
+ * patch: fix dependency to @tivio/common
94
+
95
+ * 6.0.0
96
+ * major: delete usePlayerEvent hook
97
+ * major: replace uri attributes in types with url
98
+ * major: delete uri attributes from types
99
+ * minor: add purchase expiration to PurchaseEndpointPayload
100
+ * minor: add optional videoId parameter to useOrganizationSubscription hook
101
+
102
+ * 5.0.2
103
+ * patch: export hook useChannelSource
104
+
105
+ * 5.0.1
106
+ * patch: move changelog
107
+
108
+ * 5.0.0
109
+ * major: upgrade to React 18, change react and react-dom peer dependencies to 17.x || 18.x
110
+ * major: fix typing for useReferralInfo, now correctly showing that `null` can be returned
111
+ * major: fix typing for `WebRowProps.onTileClick`, now correctly showing that `null` can be accepted
112
+ * minor: add analytics
113
+ * minor: add getSourceUrl function to video and tv channel types
114
+ * minor: add uri property to tv channel type
115
+ * minor: add useChannelSource to hooks
116
+
117
+ * 4.5.0
118
+ * minor: extend PurchaseEndpointPayload type with purchase previousStatus and newStatus fields
119
+
120
+ * 4.4.1
121
+ * patch: added waitForTags param in useSearch hook for videos
122
+
123
+ * 4.4.0
124
+ * minor: PrimaryButton component props type set to any for now
125
+ * patch: isPurchasableAsVoucher added to PurchasableMonetization
126
+ * patch: voucherPurchase flag added to purchase overlays
127
+ * patch: item added to MonetizationsSelectOverlayData
128
+ * minor: added hungarian language to `LangCode` enum
129
+
130
+ * 4.3.0:
131
+ * minor: add GetPurchaseInfoResponse and PurchaseEndpointPayload to exported types
132
+ * minor: support for disabling purchase of specified subscriptions (new param in useOrganizationSubscriptions hook)
133
+ * minor: more specific PurchasableMonetization type usage instead of Monetization
134
+ * minor: monetization property deleted from Video type
135
+ * minor: monetization now has originalPrice and promotion properties available
136
+ * patch: remove not used OrganizationSubscriptionsContext, **this change requires bundle 3.20.0 or newer**
137
+
138
+ * 4.2.0:
139
+ * minor: fix useSearch loading type
140
+ * patch: added italian language to `LangCode` enum
141
+
142
+ * 4.1.0
143
+ * patch: added italian language to `LangCode` enum
144
+ * minor: fixed spanish language code in `LangCode` enum (`sp` -> `es`)
145
+ * minor: other misc type changes
146
+
147
+ * 4.0.1
148
+ * patch: added setBundleVersion setter to bundle type
149
+ * patch: added setStorageManager setter to bundle type
150
+ * patch: `Purchase.isPurchased` is deprecated
151
+ * patch: fill `useSearch` field `hasNextPage` with proper value
152
+
153
+ * 4.0.0
154
+ * minor: Types cleanup
155
+ * MAJOR: Remove deprecated and unused stuff
156
+ * auth
157
+ * changePassword
158
+ * changeUserPhoto
159
+ * removeUserPhoto
160
+ * getPurchasedVodsWithInitializedVideos
161
+ * initializeUser
162
+ * createFreePurchase
163
+ * components
164
+ * videoAdBanner
165
+ * getters
166
+ * getExportedConfig
167
+ * getChannelById
168
+ * getSectionById
169
+ * getWidgetById
170
+ * hooks
171
+ * useLastVideoByWidgetId
172
+ * useScreen
173
+ * useFreePurchase
174
+ * useWidget
175
+ * useChannel
176
+ * useSection
177
+ * useVideosInSection
178
+ * useSectionsInChannel
179
+ * useChannelsInWidget
180
+ * subscriptions
181
+ * subscribeToWidget
182
+ * subscribeToChannel
183
+ * subscribeToSection
184
+ * subscribeToVideosInSection
185
+ * subscribeToSectionsInChannel
186
+ * subscribeToChannelsInWidget
187
+ * subscribeToScreen
188
+ ---
189
+ _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)_
190
+
191
+ * 3.7.0
192
+ * minor: purchase contains created and updated
193
+
194
+ * 3.6.3
195
+ * patch: improve README.md
196
+
197
+ * 3.6.2
198
+ * patch: Fix types
199
+
200
+ * 3.6.1
201
+ * patch: Fix README
202
+
203
+ * 3.6.0
204
+ * minor: Update types
205
+
206
+ * 3.5.2
207
+ * patch: All types are available again.
208
+
209
+ * 3.5.1
210
+ * patch: remove incorrect dependency (@tivio/types)
211
+
212
+ * 3.5.0
213
+ * minor: Types change - Video.price and Video.detailedPrice can be null
214
+ * minor: Types change - Video.cover is marked as deprecated
215
+
216
+ * 3.4.0
217
+ * minor: more precise type for errors in usePurchaseRecovery and usePurchaseRecovery
218
+ * patch: jsdocs for usePurchaseRecovery and usePurchaseRecovery
219
+ * minor: inviteCodeReset in useApplyInviteCode
220
+ * minor: Reset forgotten password
221
+ * minor: Consolidating monetization logic
222
+ * 3.3.2
223
+ * patch: Adding new optional parameters (where, orderBy) to useTaggedVideos hook
224
+ * 3.3.1
225
+ * patch: Fixed types of `setUser`
226
+ * 3.3.0
227
+ * minor: Add getPlayerCapabilities to getters.
228
+ * patch: Added option to log out via `setUser(null)`, requires @tivio/core-react-dom@2.17.9
229
+ * 3.2.5
230
+ * patch: added recovery flag to QerkoPaymentInfo type
231
+ * patch: bundle.types changes - internal.components.WebVideoScreen
232
+ * patch: types changes - add new onBack prop to WebPlayerProps
233
+ * patch: Refactor useVideo hook, now uses hook from core-react
234
+ * 3.2.4
235
+ * minor: added useApplyInviteCode
236
+ * minor: better errors from useVoucher
237
+ * 3.2.3
238
+ * minor: added usePurchaseRecovery hook
239
+ * patch: deprecated `useLastVideoByWidgetId`
240
+ * 3.2.2
241
+ * minor: useRowsInScreen, useItemsInRow, useTaggedVideos - hasNextPage and loading added to pagination
242
+ * minor: useRowsInScreen, useItemsInRow, useTaggedVideos - implementation moved to remote bundle
243
+ * patch: Fixed Tivio startup on Tizen 6
244
+ * minor: Added `forceCloudFnResolver` option
245
+ * 3.2.1
246
+ * patch: fix of @tivio/common version
247
+ * 3.2.0
248
+ * minor: Added `capabilitiesOptions` for finer configuration of device capabilities
249
+ * minor: tag names are returned in correct language (the one from tivio config); language value should be one from enum "LangCode"
250
+ * 3.1.3
251
+ * patch: Hotfix made sure disabled Tivio does not break React Native
252
+ * 3.1.2
253
+ * patch: Allow `conf` prop of `TivioProvider` to be `null` or `undefined` in order to turn off Tivio
254
+ * 3.1.1
255
+ * patch: fixed `setUser()` crash when bundle fails to load
256
+ * 3.1.0
257
+ * patch: `useAdSegment()` now returns null if no monetization is configured, ad segments are not managed in that situation
258
+ * minor: enriched `AdSegment` type from `useAdSegment()`
259
+ * minor: Added `setUser()` function for login and logout
260
+ * 3.0.0
261
+ * minor: Added hook `useWatchWithoutAdsOffer` to trigger purchase dialog to "watch without ads", if available
262
+ * patch: fix peerDependency declaration for react, react-dom
263
+ * major: TivioProvider requires deviceCapabilities
264
+ * major: TivioProvider requires currency
265
+ * minor: add voucher support (see usePurchaseSubscription and useTransactionPayment hooks)
266
+ * minor: device limit support
267
+ * minor: drm (Widevine, PlayReady) support
268
+ * minor: watermarking support
269
+ * minor: add useSearch hook
270
+ * patch: price on video is 0 when purchased
271
+ * 2.4.2
272
+ * patch: added back changelog
273
+ * 2.4.1
274
+ * patch: improved doc about player wrapper
275
+ * 2.4.0
276
+ * patch: improved Player wrapper types
277
+ * minor: added Tivio DOM events `tivio_key_input_handling_change`, `tivio_context_switch` and `tivio_request_goto`
278
+ * 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)
279
+ * patch: added support for browsers that do not implement [indexedDB API](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)
280
+ * 2.3.4
281
+ * patch: fix of usePurchaseSubscription not reactive
282
+ * 2.3.3
283
+ * patch: fix of useUser not updating
284
+ * 2.3.2
285
+ * patch: next app doesn't fail anymore due to "self is not defined"
286
+ * 2.3.1
287
+ * patch: fix of @tivio/common dependency
288
+ * 2.3.0
289
+ * minor: add useTaggedVideos that allows to fetch videos with given tags
290
+ * minor: add option to fetch tags (on hook useItemsInRow), useVideo always fetching videos tags
291
+ * 2.2.1
292
+ * patch: disable Sentry when no config is supplied to `TivioProvider`
293
+ * 2.2.0
294
+ * patch: reduced bundle size
295
+ * 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 }`
296
+ * 2.1.5
297
+ * patch fix of `useVideosInSection` hook (fetching video's monetizations)
298
+ * 2.1.4
299
+ * patch: fix re-rendering of `useAd` during non-skippable ads (requires core-react-dom@2.1.9)
300
+ * 2.1.3
301
+ * patch: fix changelog
302
+ * 2.1.2
303
+ * patch: Fixed exported types
304
+ * 2.1.1
305
+ * patch: TivioWidget now correctly reports `false` via `onEnabled` callback when in invalid internal state
306
+ * 2.1.0
307
+ * patch: fix of useItemsInRow hook
308
+ * patch: fix of useScreen hook
309
+ * add: useRowsInScreen hook
310
+ * 2.0.3
311
+ * patch: fix of useItemsInRow hook
312
+ * 2.0.2
313
+ * patch: screen and row IDs fixed
314
+ * `TivioBundle.subscriptions.subscribeToItemsInRow` now accepts user-defined ID via studio.tiv.io
315
+ * `TivioBundle.subscriptions.subscribeToScreen` now accepts user-defined ID via studio.tiv.io
316
+ * `Screen` and `Row` types returned by `useScreen()` return their user-defined IDs (`.id`) correctly
317
+ * 2.0.1
318
+ * no changes
319
+ * 2.0.0
320
+ * major: video.channelId can now be `string | null` used to be `string`
321
+ * minor: added data API and hooks for screens (screens, rows of screen and row items)
322
+ * hooks: `useScreen()`, `useItemsInRow()`
323
+ * api: `TivioBundle.subscriptions.subscribeToScreen`, `TivioBundle.subscriptions.subscribeToItemsInRow`
324
+ * 1.3.6
325
+ * ?
326
+ * 1.3.5
327
+ * minor: added WebPlayer props (canReplay, showMarkers, customShortcuts, enableKeyboardShortcuts, source.poster)
328
+ * 1.3.4
329
+ * ...