@tivio/sdk-react 3.4.0 → 3.5.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
@@ -2,7 +2,15 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
- * UNRELEASED
5
+ * 3.5.2
6
+ * patch: All types are available again.
7
+
8
+ * 3.5.1
9
+ * patch: remove incorrect dependency (@tivio/types)
10
+
11
+ * 3.5.0
12
+ * minor: Types change - Video.price and Video.detailedPrice can be null
13
+ * minor: Types change - Video.cover is marked as deprecated
6
14
 
7
15
  * v3.4.0
8
16
  * minor: more precise type for errors in usePurchaseRecovery and usePurchaseRecovery
@@ -539,8 +547,4 @@ useTaggedItems: (tagIds: string[], {limit?: number, noLimit?: boolean, fecthTags
539
547
  error: Error | null
540
548
  data: PaginationData<Video> | null
541
549
  }
542
-
543
-
544
- # Deprecations
545
- - Video.url will be removed in version 3.0.0, use Video.uri attribute instead
546
- - Video.cover will be removed in version 3.0.0, use Video.assets attribute instead
550
+ ```
package/README.md.bak CHANGED
@@ -2,7 +2,15 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
- * UNRELEASED
5
+ * 3.5.2
6
+ * patch: All types are available again.
7
+
8
+ * 3.5.1
9
+ * patch: remove incorrect dependency (@tivio/types)
10
+
11
+ * 3.5.0
12
+ * minor: Types change - Video.price and Video.detailedPrice can be null
13
+ * minor: Types change - Video.cover is marked as deprecated
6
14
 
7
15
  * v3.4.0
8
16
  * minor: more precise type for errors in usePurchaseRecovery and usePurchaseRecovery
@@ -539,8 +547,4 @@ useTaggedItems: (tagIds: string[], {limit?: number, noLimit?: boolean, fecthTags
539
547
  error: Error | null
540
548
  data: PaginationData<Video> | null
541
549
  }
542
-
543
-
544
- # Deprecations
545
- - Video.url will be removed in version 3.0.0, use Video.uri attribute instead
546
- - Video.cover will be removed in version 3.0.0, use Video.assets attribute instead
550
+ ```
@@ -49,7 +49,7 @@ declare const useVideosInSection: (sectionId?: string | undefined, limit?: numbe
49
49
  */
50
50
  declare const useSectionsInChannel: (channelId: string, limit?: number) => {
51
51
  error: Error | null;
52
- data: import("../context/types").PaginationData<import("@tivio/common/dist/types/externalTypes/section").Section> | null;
52
+ data: import("../context/types").PaginationData<import("@tivio/common").Section> | null;
53
53
  isLoading: boolean;
54
54
  };
55
55
  /**
@@ -59,7 +59,7 @@ declare const useSectionsInChannel: (channelId: string, limit?: number) => {
59
59
  */
60
60
  declare const useChannelsInWidget: (widgetId: string, limit?: number) => {
61
61
  error: Error | null;
62
- data: import("../context/types").PaginationData<import("@tivio/common/dist/types/externalTypes/channel").Channel> | null;
62
+ data: import("../context/types").PaginationData<import("@tivio/common").Channel> | null;
63
63
  isLoading: boolean;
64
64
  };
65
65
  declare const useIsLoaded: () => {
@@ -2,6 +2,6 @@
2
2
  * Return purchases with initialized video (purchases[i].video not null)
3
3
  */
4
4
  declare const usePurchasesWithVideos: () => {
5
- purchases: import("@tivio/common/dist/types/externalTypes/user").Purchase[];
5
+ purchases: import("@tivio/common").Purchase[];
6
6
  };
7
7
  export { usePurchasesWithVideos, };
@@ -1,5 +1,5 @@
1
1
  export declare const useUser: () => {
2
- user: import("@tivio/common/dist/types/externalTypes/user").User | null;
2
+ user: import("@tivio/common").User | null;
3
3
  error: string | null;
4
4
  isInitialized: boolean;
5
5
  };