@tivio/sdk-react 5.0.0 → 5.0.2

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/README.md CHANGED
@@ -4,6 +4,237 @@
4
4
  above Tivio Studio. You can comfortably manage all you videos, settings such as application's screens and rows and also monetization
5
5
  settings in the administration of Tivio Studio while having the freedom to build your own application.
6
6
 
7
+ ## Changelog
8
+
9
+ * 5.0.2
10
+ * patch: export hook useChannelSource
11
+
12
+ * 5.0.1
13
+ * patch: move changelog
14
+
15
+ * 5.0.0
16
+ * major: upgrade to React 18, change react and react-dom peer dependencies to 17.x || 18.x
17
+ * major: fix typing for useReferralInfo, now correctly showing that `null` can be returned
18
+ * major: fix typing for `WebRowProps.onTileClick`, now correctly showing that `null` can be accepted
19
+ * minor: add analytics
20
+ * minor: add getSourceUrl function to video and tv channel types
21
+ * minor: add uri property to tv channel type
22
+ * minor: add useChannelSource to hooks
23
+
24
+ * 4.5.0
25
+ * minor: extend PurchaseEndpointPayload type with purchase previousStatus and newStatus fields
26
+
27
+ * 4.4.1
28
+ * patch: added waitForTags param in useSearch hook for videos
29
+
30
+ * 4.4.0
31
+ * minor: PrimaryButton component props type set to any for now
32
+ * patch: isPurchasableAsVoucher added to PurchasableMonetization
33
+ * patch: voucherPurchase flag added to purchase overlays
34
+ * patch: item added to MonetizationsSelectOverlayData
35
+ * minor: added hungarian language to `LangCode` enum
36
+
37
+ * 4.3.0:
38
+ * minor: add GetPurchaseInfoResponse and PurchaseEndpointPayload to exported types
39
+ * minor: support for disabling purchase of specified subscriptions (new param in useOrganizationSubscriptions hook)
40
+ * minor: more specific PurchasableMonetization type usage instead of Monetization
41
+ * minor: monetization property deleted from Video type
42
+ * minor: monetization now has originalPrice and promotion properties available
43
+ * patch: remove not used OrganizationSubscriptionsContext, **this change requires bundle 3.20.0 or newer**
44
+
45
+ * 4.2.0:
46
+ * minor: fix useSearch loading type
47
+ * patch: added italian language to `LangCode` enum
48
+
49
+ * 4.1.0
50
+ * patch: added italian language to `LangCode` enum
51
+ * minor: fixed spanish language code in `LangCode` enum (`sp` -> `es`)
52
+ * minor: other misc type changes
53
+
54
+ * 4.0.1
55
+ * patch: added setBundleVersion setter to bundle type
56
+ * patch: added setStorageManager setter to bundle type
57
+ * patch: `Purchase.isPurchased` is deprecated
58
+ * patch: fill `useSearch` field `hasNextPage` with proper value
59
+
60
+ * 4.0.0
61
+ * minor: Types cleanup
62
+ * MAJOR: Remove deprecated and unused stuff
63
+ * auth
64
+ * changePassword
65
+ * changeUserPhoto
66
+ * removeUserPhoto
67
+ * getPurchasedVodsWithInitializedVideos
68
+ * initializeUser
69
+ * createFreePurchase
70
+ * components
71
+ * videoAdBanner
72
+ * getters
73
+ * getExportedConfig
74
+ * getChannelById
75
+ * getSectionById
76
+ * getWidgetById
77
+ * hooks
78
+ * useLastVideoByWidgetId
79
+ * useScreen
80
+ * useFreePurchase
81
+ * useWidget
82
+ * useChannel
83
+ * useSection
84
+ * useVideosInSection
85
+ * useSectionsInChannel
86
+ * useChannelsInWidget
87
+ * subscriptions
88
+ * subscribeToWidget
89
+ * subscribeToChannel
90
+ * subscribeToSection
91
+ * subscribeToVideosInSection
92
+ * subscribeToSectionsInChannel
93
+ * subscribeToChannelsInWidget
94
+ * subscribeToScreen
95
+ ---
96
+ _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)_
97
+
98
+ * 3.7.0
99
+ * minor: purchase contains created and updated
100
+
101
+ * 3.6.3
102
+ * patch: improve README.md
103
+
104
+ * 3.6.2
105
+ * patch: Fix types
106
+
107
+ * 3.6.1
108
+ * patch: Fix README
109
+
110
+ * 3.6.0
111
+ * minor: Update types
112
+
113
+ * 3.5.2
114
+ * patch: All types are available again.
115
+
116
+ * 3.5.1
117
+ * patch: remove incorrect dependency (@tivio/types)
118
+
119
+ * 3.5.0
120
+ * minor: Types change - Video.price and Video.detailedPrice can be null
121
+ * minor: Types change - Video.cover is marked as deprecated
122
+
123
+ * 3.4.0
124
+ * minor: more precise type for errors in usePurchaseRecovery and usePurchaseRecovery
125
+ * patch: jsdocs for usePurchaseRecovery and usePurchaseRecovery
126
+ * minor: inviteCodeReset in useApplyInviteCode
127
+ * minor: Reset forgotten password
128
+ * minor: Consolidating monetization logic
129
+ * 3.3.2
130
+ * patch: Adding new optional parameters (where, orderBy) to useTaggedVideos hook
131
+ * 3.3.1
132
+ * patch: Fixed types of `setUser`
133
+ * 3.3.0
134
+ * minor: Add getPlayerCapabilities to getters.
135
+ * patch: Added option to log out via `setUser(null)`, requires @tivio/core-react-dom@2.17.9
136
+ * 3.2.5
137
+ * patch: added recovery flag to QerkoPaymentInfo type
138
+ * patch: bundle.types changes - internal.components.WebVideoScreen
139
+ * patch: types changes - add new onBack prop to WebPlayerProps
140
+ * patch: Refactor useVideo hook, now uses hook from core-react
141
+ * 3.2.4
142
+ * minor: added useApplyInviteCode
143
+ * minor: better errors from useVoucher
144
+ * 3.2.3
145
+ * minor: added usePurchaseRecovery hook
146
+ * patch: deprecated `useLastVideoByWidgetId`
147
+ * 3.2.2
148
+ * minor: useRowsInScreen, useItemsInRow, useTaggedVideos - hasNextPage and loading added to pagination
149
+ * minor: useRowsInScreen, useItemsInRow, useTaggedVideos - implementation moved to remote bundle
150
+ * patch: Fixed Tivio startup on Tizen 6
151
+ * minor: Added `forceCloudFnResolver` option
152
+ * 3.2.1
153
+ * patch: fix of @tivio/common version
154
+ * 3.2.0
155
+ * minor: Added `capabilitiesOptions` for finer configuration of device capabilities
156
+ * minor: tag names are returned in correct language (the one from tivio config); language value should be one from enum "LangCode"
157
+ * 3.1.3
158
+ * patch: Hotfix made sure disabled Tivio does not break React Native
159
+ * 3.1.2
160
+ * patch: Allow `conf` prop of `TivioProvider` to be `null` or `undefined` in order to turn off Tivio
161
+ * 3.1.1
162
+ * patch: fixed `setUser()` crash when bundle fails to load
163
+ * 3.1.0
164
+ * patch: `useAdSegment()` now returns null if no monetization is configured, ad segments are not managed in that situation
165
+ * minor: enriched `AdSegment` type from `useAdSegment()`
166
+ * minor: Added `setUser()` function for login and logout
167
+ * 3.0.0
168
+ * minor: Added hook `useWatchWithoutAdsOffer` to trigger purchase dialog to "watch without ads", if available
169
+ * patch: fix peerDependency declaration for react, react-dom
170
+ * major: TivioProvider requires deviceCapabilities
171
+ * major: TivioProvider requires currency
172
+ * minor: add voucher support (see usePurchaseSubscription and useTransactionPayment hooks)
173
+ * minor: device limit support
174
+ * minor: drm (Widevine, PlayReady) support
175
+ * minor: watermarking support
176
+ * minor: add useSearch hook
177
+ * patch: price on video is 0 when purchased
178
+ * 2.4.2
179
+ * patch: added back changelog
180
+ * 2.4.1
181
+ * patch: improved doc about player wrapper
182
+ * 2.4.0
183
+ * patch: improved Player wrapper types
184
+ * minor: added Tivio DOM events `tivio_key_input_handling_change`, `tivio_context_switch` and `tivio_request_goto`
185
+ * 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)
186
+ * patch: added support for browsers that do not implement [indexedDB API](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)
187
+ * 2.3.4
188
+ * patch: fix of usePurchaseSubscription not reactive
189
+ * 2.3.3
190
+ * patch: fix of useUser not updating
191
+ * 2.3.2
192
+ * patch: next app doesn't fail anymore due to "self is not defined"
193
+ * 2.3.1
194
+ * patch: fix of @tivio/common dependency
195
+ * 2.3.0
196
+ * minor: add useTaggedVideos that allows to fetch videos with given tags
197
+ * minor: add option to fetch tags (on hook useItemsInRow), useVideo always fetching videos tags
198
+ * 2.2.1
199
+ * patch: disable Sentry when no config is supplied to `TivioProvider`
200
+ * 2.2.0
201
+ * patch: reduced bundle size
202
+ * 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 }`
203
+ * 2.1.5
204
+ * patch fix of `useVideosInSection` hook (fetching video's monetizations)
205
+ * 2.1.4
206
+ * patch: fix re-rendering of `useAd` during non-skippable ads (requires core-react-dom@2.1.9)
207
+ * 2.1.3
208
+ * patch: fix changelog
209
+ * 2.1.2
210
+ * patch: Fixed exported types
211
+ * 2.1.1
212
+ * patch: TivioWidget now correctly reports `false` via `onEnabled` callback when in invalid internal state
213
+ * 2.1.0
214
+ * patch: fix of useItemsInRow hook
215
+ * patch: fix of useScreen hook
216
+ * add: useRowsInScreen hook
217
+ * 2.0.3
218
+ * patch: fix of useItemsInRow hook
219
+ * 2.0.2
220
+ * patch: screen and row IDs fixed
221
+ * `TivioBundle.subscriptions.subscribeToItemsInRow` now accepts user-defined ID via studio.tiv.io
222
+ * `TivioBundle.subscriptions.subscribeToScreen` now accepts user-defined ID via studio.tiv.io
223
+ * `Screen` and `Row` types returned by `useScreen()` return their user-defined IDs (`.id`) correctly
224
+ * 2.0.1
225
+ * no changes
226
+ * 2.0.0
227
+ * major: video.channelId can now be `string | null` used to be `string`
228
+ * minor: added data API and hooks for screens (screens, rows of screen and row items)
229
+ * hooks: `useScreen()`, `useItemsInRow()`
230
+ * api: `TivioBundle.subscriptions.subscribeToScreen`, `TivioBundle.subscriptions.subscribeToItemsInRow`
231
+ * 1.3.6
232
+ * ?
233
+ * 1.3.5
234
+ * minor: added WebPlayer props (canReplay, showMarkers, customShortcuts, enableKeyboardShortcuts, source.poster)
235
+ * 1.3.4
236
+ * ...
237
+
7
238
  ## Installation
8
239
 
9
240
  Install @tivio/sdk-react along with its peer dependencies