@fishjam-cloud/react-native-client 0.18.0 → 0.18.1

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.
@@ -1,6 +1,19 @@
1
1
  import { StyleProp, ViewStyle } from 'react-native';
2
+ /**
3
+ * Props of the LivestreamView component
4
+ */
2
5
  export type LivestreamViewProps = {
6
+ /**
7
+ * Styles of the LivestreamView component
8
+ */
3
9
  style?: StyleProp<ViewStyle>;
4
10
  };
11
+ /**
12
+ * Renders a video player playing the livestream set up with {@link useLivestream} hook.
13
+ *
14
+ * @category Components
15
+ * @param {object} props
16
+ * @param {object} props.style
17
+ */
5
18
  export declare const LivestreamView: ({ style }: LivestreamViewProps) => import("react").JSX.Element;
6
19
  //# sourceMappingURL=LivestreamView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LivestreamView.d.ts","sourceRoot":"","sources":["../../src/components/LivestreamView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,WAAW,mBAAmB,gCAE5D,CAAC"}
1
+ {"version":3,"file":"LivestreamView.d.ts","sourceRoot":"","sources":["../../src/components/LivestreamView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGpD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,mBAAmB,gCAE5D,CAAC"}
@@ -1,3 +1,10 @@
1
1
  import { WhepClientView } from 'react-native-whip-whep';
2
+ /**
3
+ * Renders a video player playing the livestream set up with {@link useLivestream} hook.
4
+ *
5
+ * @category Components
6
+ * @param {object} props
7
+ * @param {object} props.style
8
+ */
2
9
  export const LivestreamView = ({ style }) => (<WhepClientView style={style}/>);
3
10
  //# sourceMappingURL=LivestreamView.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LivestreamView.js","sourceRoot":"","sources":["../../src/components/LivestreamView.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAMxD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAuB,EAAE,EAAE,CAAC,CAChE,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,KAAsB,CAAC,EAAG,CAClD,CAAC","sourcesContent":["import { CSSProperties } from 'react';\nimport { StyleProp, ViewStyle } from 'react-native';\nimport { WhepClientView } from 'react-native-whip-whep';\n\nexport type LivestreamViewProps = {\n style?: StyleProp<ViewStyle>;\n};\n\nexport const LivestreamView = ({ style }: LivestreamViewProps) => (\n <WhepClientView style={style as CSSProperties} />\n);\n"]}
1
+ {"version":3,"file":"LivestreamView.js","sourceRoot":"","sources":["../../src/components/LivestreamView.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAYxD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAuB,EAAE,EAAE,CAAC,CAChE,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,KAAsB,CAAC,EAAG,CAClD,CAAC","sourcesContent":["import { CSSProperties } from 'react';\nimport { StyleProp, ViewStyle } from 'react-native';\nimport { WhepClientView } from 'react-native-whip-whep';\n\n/**\n * Props of the LivestreamView component\n */\nexport type LivestreamViewProps = {\n /**\n * Styles of the LivestreamView component\n */\n style?: StyleProp<ViewStyle>;\n};\n\n/**\n * Renders a video player playing the livestream set up with {@link useLivestream} hook.\n *\n * @category Components\n * @param {object} props\n * @param {object} props.style\n */\nexport const LivestreamView = ({ style }: LivestreamViewProps) => (\n <WhepClientView style={style as CSSProperties} />\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"errorListener.d.ts","sourceRoot":"","sources":["../../src/utils/errorListener.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,YAWrC,CAAC"}
1
+ {"version":3,"file":"errorListener.d.ts","sourceRoot":"","sources":["../../src/utils/errorListener.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,YAarC,CAAC"}
@@ -9,7 +9,7 @@ export const initializeWarningListener = () => {
9
9
  });
10
10
  }
11
11
  catch (error) {
12
- console.error(`Failed to start warning listener: ${error?.message ?? ''}`);
12
+ console.error(`Failed to start warning listener: ${error instanceof Error ? error.message : ''}`);
13
13
  }
14
14
  };
15
15
  //# sourceMappingURL=errorListener.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errorListener.js","sourceRoot":"","sources":["../../src/utils/errorListener.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC5C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO;IACT,CAAC;IACD,IAAI,CAAC;QACH,YAAY,CAAC,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAC3D,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,qCAAqC,KAAK,EAAE,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC;IAC7E,CAAC;AACH,CAAC,CAAC","sourcesContent":["import nativeModule, { ReceivableEvents } from '../RNFishjamClientModule';\n\nexport const initializeWarningListener = () => {\n if (!__DEV__) {\n return;\n }\n try {\n nativeModule.addListener(ReceivableEvents.Warning, (event) => {\n console.warn(event[ReceivableEvents.Warning]);\n });\n } catch (error) {\n console.error(`Failed to start warning listener: ${error?.message ?? ''}`);\n }\n};\n"]}
1
+ {"version":3,"file":"errorListener.js","sourceRoot":"","sources":["../../src/utils/errorListener.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE1E,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC5C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO;IACT,CAAC;IACD,IAAI,CAAC;QACH,YAAY,CAAC,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAC3D,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACxB,OAAO,CAAC,KAAK,CACX,qCAAqC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CACnF,CAAC;IACJ,CAAC;AACH,CAAC,CAAC","sourcesContent":["import nativeModule, { ReceivableEvents } from '../RNFishjamClientModule';\n\nexport const initializeWarningListener = () => {\n if (!__DEV__) {\n return;\n }\n try {\n nativeModule.addListener(ReceivableEvents.Warning, (event) => {\n console.warn(event[ReceivableEvents.Warning]);\n });\n } catch (error: unknown) {\n console.error(\n `Failed to start warning listener: ${error instanceof Error ? error.message : ''}`,\n );\n }\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishjam-cloud/react-native-client",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "A React Native client for Fishjam",
5
5
  "author": "Fishjam Team",
6
6
  "license": "Apache-2.0",
@@ -47,22 +47,23 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@testing-library/dom": "^10.4.0",
50
- "@testing-library/react": "^16.0.1",
50
+ "@testing-library/react": "^16.3.0",
51
51
  "@types/lodash": "^4.17.16",
52
52
  "@types/promise-fs": "^2.1.2",
53
- "@types/react": "^18.3.12",
54
- "expo-module-scripts": "^4.0.4",
53
+ "@types/react": "~19.0.10",
54
+ "@types/react-dom": "^19",
55
+ "expo-module-scripts": "^4.1.7",
55
56
  "husky": "^9.1.7",
56
57
  "jest": "^29.6.1",
57
58
  "jest-environment-jsdom": "^29.6.1",
58
- "jest-expo": "~52.0.2",
59
+ "jest-expo": "~53.0.5",
59
60
  "jest-websocket-mock": "^2.4.0",
60
61
  "pod-install": "^0.3.4",
61
- "react-dom": "^18.3.1",
62
+ "react-dom": "19.0.0",
62
63
  "ts-proto": "^2.7.0",
63
64
  "typedoc": "^0.28.1",
64
65
  "typedoc-plugin-mark-react-functional-components": "^0.2.2",
65
- "typescript": "^5.8.2"
66
+ "typescript": "~5.8.3"
66
67
  },
67
68
  "peerDependencies": {
68
69
  "expo": "*",