@tivio/sdk-react 3.3.1 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/.madgerc +7 -0
  2. package/README.md +14 -6
  3. package/README.md.bak +14 -10
  4. package/dist/index.d.ts +1279 -20
  5. package/dist/index.js +1 -2
  6. package/package.json +13 -12
  7. package/dist/components/ContextProvider.d.ts +0 -7
  8. package/dist/components/PlayerProvider.d.ts +0 -19
  9. package/dist/components/TivioProvider.d.ts +0 -16
  10. package/dist/components/TivioWidget.d.ts +0 -7
  11. package/dist/components/TivioWidgetError.d.ts +0 -10
  12. package/dist/components/TivioWidgetLoader.d.ts +0 -6
  13. package/dist/components/TvTivioProvider.d.ts +0 -7
  14. package/dist/components/context/ChannelsContext.d.ts +0 -6
  15. package/dist/components/context/RowItemsContext.d.ts +0 -7
  16. package/dist/components/context/ScreensContext.d.ts +0 -6
  17. package/dist/components/context/SectionsContext.d.ts +0 -6
  18. package/dist/components/context/VideosContext.d.ts +0 -6
  19. package/dist/components/context/index.d.ts +0 -5
  20. package/dist/components/context/types.d.ts +0 -27
  21. package/dist/components/hooks/contentHooks.d.ts +0 -68
  22. package/dist/components/hooks/index.d.ts +0 -21
  23. package/dist/components/hooks/playerHooks.d.ts +0 -28
  24. package/dist/components/hooks/useApplyInviteCode.d.ts +0 -6
  25. package/dist/components/hooks/useCancelSubscription.d.ts +0 -2
  26. package/dist/components/hooks/useError.d.ts +0 -9
  27. package/dist/components/hooks/useFreePurchase.d.ts +0 -4
  28. package/dist/components/hooks/useItemsInRow.d.ts +0 -11
  29. package/dist/components/hooks/useLastVideoByWidgetId.d.ts +0 -5
  30. package/dist/components/hooks/useOrganizationSubscriptions.d.ts +0 -3
  31. package/dist/components/hooks/usePurchaseRecovery.d.ts +0 -6
  32. package/dist/components/hooks/usePurchaseSubscription.d.ts +0 -4
  33. package/dist/components/hooks/usePurchasesWithVideos.d.ts +0 -7
  34. package/dist/components/hooks/useRowsInScreen.d.ts +0 -6
  35. package/dist/components/hooks/useScreen.d.ts +0 -10
  36. package/dist/components/hooks/useScreens.d.ts +0 -5
  37. package/dist/components/hooks/useSearch.d.ts +0 -8
  38. package/dist/components/hooks/useTaggedVideos.d.ts +0 -11
  39. package/dist/components/hooks/useTivio.d.ts +0 -3
  40. package/dist/components/hooks/useTransactionPayment.d.ts +0 -5
  41. package/dist/components/hooks/useUser.d.ts +0 -4
  42. package/dist/components/hooks/useVoucher.d.ts +0 -25
  43. package/dist/components/hooks/useWatchWithoutAdsOffer.d.ts +0 -4
  44. package/dist/config.d.ts +0 -20
  45. package/dist/index.js.LICENSE.txt +0 -3
  46. package/dist/info.d.ts +0 -2
  47. package/dist/services/bundleLoader.d.ts +0 -15
  48. package/dist/services/bundlePromise.d.ts +0 -7
  49. package/dist/services/dependencyResolver.d.ts +0 -24
  50. package/dist/services/localFetch/coreReactDomDist.d.ts +0 -1
  51. package/dist/services/localFetch/none.d.ts +0 -1
  52. package/dist/services/logger.d.ts +0 -26
  53. package/dist/services/login.d.ts +0 -9
  54. package/dist/services/packageLoader.d.ts +0 -6
  55. package/dist/services/pubSub.d.ts +0 -13
  56. package/dist/services/sentry.d.ts +0 -4
  57. package/dist/services/settings.d.ts +0 -13
  58. package/dist/types/bundle.types.d.ts +0 -423
  59. package/dist/types/common.d.ts +0 -6
  60. package/dist/types/config.types.d.ts +0 -0
  61. package/dist/types/customPlayer.types.d.ts +0 -171
  62. package/dist/types/types.d.ts +0 -175
package/.madgerc ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "detectiveOptions": {
3
+ "ts": {
4
+ "skipTypeImports": true
5
+ }
6
+ }
7
+ }
package/README.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ * 3.5.0
6
+ * minor: Types change - Video.price and Video.detailedPrice can be null
7
+ * minor: Types change - Video.cover is marked as deprecated
8
+
9
+ * v3.4.0
10
+ * minor: more precise type for errors in usePurchaseRecovery and usePurchaseRecovery
11
+ * patch: jsdocs for usePurchaseRecovery and usePurchaseRecovery
12
+ * minor: inviteCodeReset in useApplyInviteCode
13
+ * minor: Reset forgotten password
14
+ * minor: Consolidating monetization logic
15
+ * v3.3.2
16
+ * patch: Adding new optional parameters (where, orderBy) to useTaggedVideos hook
5
17
  * v3.3.1
6
18
  * patch: Fixed types of `setUser`
7
19
  * v3.3.0
@@ -27,7 +39,7 @@
27
39
  * patch: fix of @tivio/common version
28
40
  * v3.2.0
29
41
  * minor: Added `capabilitiesOptions` for finer configuration of device capabilities
30
- * minor: tag names are returned in correct language (the one from tivio config); language value should be one from enum "Language"
42
+ * minor: tag names are returned in correct language (the one from tivio config); language value should be one from enum "LangCode"
31
43
  * v3.1.3
32
44
  * patch: Hotfix made sure disabled Tivio does not break React Native
33
45
  * v3.1.2
@@ -529,8 +541,4 @@ useTaggedItems: (tagIds: string[], {limit?: number, noLimit?: boolean, fecthTags
529
541
  error: Error | null
530
542
  data: PaginationData<Video> | null
531
543
  }
532
-
533
-
534
- # Deprecations
535
- - Video.url will be removed in version 3.0.0, use Video.uri attribute instead
536
- - Video.cover will be removed in version 3.0.0, use Video.assets attribute instead
544
+ ```
package/README.md.bak CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ * 3.5.0
6
+ * minor: Types change - Video.price and Video.detailedPrice can be null
7
+ * minor: Types change - Video.cover is marked as deprecated
8
+
9
+ * v3.4.0
10
+ * minor: more precise type for errors in usePurchaseRecovery and usePurchaseRecovery
11
+ * patch: jsdocs for usePurchaseRecovery and usePurchaseRecovery
12
+ * minor: inviteCodeReset in useApplyInviteCode
13
+ * minor: Reset forgotten password
14
+ * minor: Consolidating monetization logic
15
+ * v3.3.2
16
+ * patch: Adding new optional parameters (where, orderBy) to useTaggedVideos hook
5
17
  * v3.3.1
6
18
  * patch: Fixed types of `setUser`
7
19
  * v3.3.0
@@ -27,19 +39,15 @@
27
39
  * patch: fix of @tivio/common version
28
40
  * v3.2.0
29
41
  * minor: Added `capabilitiesOptions` for finer configuration of device capabilities
30
- * minor: tag names are returned in correct language (the one from tivio config); language value should be one from enum "Language"
42
+ * minor: tag names are returned in correct language (the one from tivio config); language value should be one from enum "LangCode"
31
43
  * v3.1.3
32
44
  * patch: Hotfix made sure disabled Tivio does not break React Native
33
- * internal: Fixed conf.bundleUrlOverride error handling
34
45
  * v3.1.2
35
46
  * patch: Allow `conf` prop of `TivioProvider` to be `null` or `undefined` in order to turn off Tivio
36
- * internal: Added `runFeatureSupportCheck` to `TivioProvider`
37
47
  * v3.1.1
38
48
  * patch: fixed `setUser()` crash when bundle fails to load
39
49
  * v3.1.0
40
- * internal: refactored `useAd`, `useAdSegment`
41
50
  * patch: `useAdSegment()` now returns null if no monetization is configured, ad segments are not managed in that situation
42
- * internal: fixed refactored `setUser()`
43
51
  * minor: enriched `AdSegment` type from `useAdSegment()`
44
52
  * minor: Added `setUser()` function for login and logout
45
53
  * v3.0.0
@@ -533,8 +541,4 @@ useTaggedItems: (tagIds: string[], {limit?: number, noLimit?: boolean, fecthTags
533
541
  error: Error | null
534
542
  data: PaginationData<Video> | null
535
543
  }
536
-
537
-
538
- # Deprecations
539
- - Video.url will be removed in version 3.0.0, use Video.uri attribute instead
540
- - Video.cover will be removed in version 3.0.0, use Video.assets attribute instead
544
+ ```