@applicaster/zapp-react-native-utils 14.0.0-rc.30 → 14.0.0-rc.31

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.
@@ -18,13 +18,6 @@ export const { log_verbose, log_debug, log_info, log_error } = createLogger({
18
18
  parent: utilsLogger,
19
19
  });
20
20
 
21
- type ActionChapter = {
22
- type: string;
23
- options?: {
24
- title: string;
25
- };
26
- };
27
-
28
21
  type ChapterMarkerOriginal = {
29
22
  id: string;
30
23
  title: string;
@@ -33,14 +26,6 @@ type ChapterMarkerOriginal = {
33
26
  actions: ActionChapter[];
34
27
  };
35
28
 
36
- export type ChapterMarkerEvent = {
37
- id: string;
38
- title: string;
39
- start_time: number;
40
- end_time: number;
41
- actions: ActionChapter[];
42
- };
43
-
44
29
  export type TitleSummaryEvent = {
45
30
  title: string | number;
46
31
  summary: string | number;
@@ -1,4 +1,3 @@
1
- import { ChapterMarkerEvent } from "./OverlayObserver/OverlaysObserver";
2
1
  import { usePlayer } from "./usePlayer";
3
2
  import * as React from "react";
4
3
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "14.0.0-rc.30",
3
+ "version": "14.0.0-rc.31",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/applicaster/quickbrick#readme",
29
29
  "dependencies": {
30
- "@applicaster/applicaster-types": "14.0.0-rc.30",
30
+ "@applicaster/applicaster-types": "14.0.0-rc.31",
31
31
  "buffer": "^5.2.1",
32
32
  "camelize": "^1.0.0",
33
33
  "dayjs": "^1.11.10",
@@ -6,7 +6,10 @@ import { NativeModules, Platform } from "react-native";
6
6
  * @param {String} orientation - Orientation enum passed to the function
7
7
  * @returns {Boolean} isTablet - returns whether the given device is a tablet
8
8
  */
9
- export const isTablet = (dimensions, orientation) => {
9
+ export const isTablet = (
10
+ dimensions?: { width: number; height: number },
11
+ orientation?: string
12
+ ) => {
10
13
  if (Platform?.OS === "ios") {
11
14
  return Platform?.isPad;
12
15
  } else if (Platform?.OS === "android") {
@@ -15,7 +18,7 @@ export const isTablet = (dimensions, orientation) => {
15
18
  return initialProps?.is_tablet;
16
19
  }
17
20
 
18
- const { width } = dimensions;
21
+ const { width } = dimensions || {};
19
22
 
20
23
  if (width < 600) return false;
21
24
  if (width >= 600 && width < 840) return orientation === "portrait";