react-native-tpstreams 0.2.21 → 0.2.22

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,17 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  import { NativeModules } from 'react-native';
4
- // Export the native component with a different name to avoid conflicts
5
- export { default as TPStreamsPlayerNative } from '../spec/TPStreamsPlayerViewNativeComponent';
6
- export * from '../spec/TPStreamsPlayerViewNativeComponent';
7
-
4
+ import TPStreamsPlayerViewNativeComponent from '../spec/TPStreamsPlayerViewNativeComponent';
5
+ import NativeTPStreamsDownloads from "../spec/NativeTPStreamsDownloads.js";
6
+ export const TPStreamsPlayerNative = TPStreamsPlayerViewNativeComponent;
8
7
  // Export the wrapper component as TPStreamsPlayerView
9
8
  export { default as TPStreamsPlayerView } from "./TPStreamsPlayer.js";
10
9
  // Export the original download module
11
10
  export { pauseDownload, resumeDownload, removeDownload, isDownloaded, isDownloading, isPaused, getDownloadStatus, getAllDownloads, addDownloadProgressListener, removeDownloadProgressListener, onDownloadProgressChanged } from "./TPStreamsDownload.js";
12
11
 
13
12
  // Export the TPStreamsDownloads TurboModule directly
14
- export { default as TPStreamsDownloads } from "../spec/NativeTPStreamsDownloads.js";
13
+ export const TPStreamsDownloads = NativeTPStreamsDownloads;
15
14
  const TPStreamsModule = NativeModules.TPStreams;
16
15
  export const TPStreams = {
17
16
  initialize: organizationId => {
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","default","TPStreamsPlayerNative","TPStreamsPlayerView","pauseDownload","resumeDownload","removeDownload","isDownloaded","isDownloading","isPaused","getDownloadStatus","getAllDownloads","addDownloadProgressListener","removeDownloadProgressListener","onDownloadProgressChanged","TPStreamsDownloads","TPStreamsModule","TPStreams","initialize","organizationId"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,cAAc;AAC5C;AACA,SAASC,OAAO,IAAIC,qBAAqB,QAAQ,4CAA4C;AAC7F,cAAc,4CAA4C;;AAE1D;AACA,SAASD,OAAO,IAAIE,mBAAmB,QAAQ,sBAAmB;AAGlE;AACA,SACEC,aAAa,EACbC,cAAc,EACdC,cAAc,EACdC,YAAY,EACZC,aAAa,EACbC,QAAQ,EACRC,iBAAiB,EACjBC,eAAe,EACfC,2BAA2B,EAC3BC,8BAA8B,EAC9BC,yBAAyB,QAIpB,wBAAqB;;AAE5B;AACA,SAASb,OAAO,IAAIc,kBAAkB,QAAQ,qCAAkC;AAGhF,MAAMC,eAAe,GAAGhB,aAAa,CAACiB,SAAS;AAE/C,OAAO,MAAMA,SAAS,GAAG;EACvBC,UAAU,EAAGC,cAAsB,IAAW;IAC5CH,eAAe,CAACE,UAAU,CAACC,cAAc,CAAC;EAC5C;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["NativeModules","TPStreamsPlayerViewNativeComponent","NativeTPStreamsDownloads","TPStreamsPlayerNative","default","TPStreamsPlayerView","pauseDownload","resumeDownload","removeDownload","isDownloaded","isDownloading","isPaused","getDownloadStatus","getAllDownloads","addDownloadProgressListener","removeDownloadProgressListener","onDownloadProgressChanged","TPStreamsDownloads","TPStreamsModule","TPStreams","initialize","organizationId"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,cAAc;AAE5C,OAAOC,kCAAkC,MAAM,4CAA4C;AAK3F,OAAOC,wBAAwB,MAAM,qCAAkC;AAGvE,OAAO,MAAMC,qBAAqB,GAAGF,kCAAkC;AAGvE;AACA,SAASG,OAAO,IAAIC,mBAAmB,QAAQ,sBAAmB;AAGlE;AACA,SACEC,aAAa,EACbC,cAAc,EACdC,cAAc,EACdC,YAAY,EACZC,aAAa,EACbC,QAAQ,EACRC,iBAAiB,EACjBC,eAAe,EACfC,2BAA2B,EAC3BC,8BAA8B,EAC9BC,yBAAyB,QAIpB,wBAAqB;;AAE5B;AACA,OAAO,MAAMC,kBAAkB,GAAGf,wBAAwB;AAG1D,MAAMgB,eAAe,GAAGlB,aAAa,CAACmB,SAAS;AAE/C,OAAO,MAAMA,SAAS,GAAG;EACvBC,UAAU,EAAGC,cAAsB,IAAW;IAC5CH,eAAe,CAACE,UAAU,CAACC,cAAc,CAAC;EAC5C;AACF,CAAC","ignoreList":[]}
@@ -1,10 +1,13 @@
1
- export { default as TPStreamsPlayerNative } from '../spec/TPStreamsPlayerViewNativeComponent';
2
- export * from '../spec/TPStreamsPlayerViewNativeComponent';
1
+ /// <reference types="react-native/types/modules/Codegen" />
2
+ import type { ErrorEvent, NativeProps } from '../spec/TPStreamsPlayerViewNativeComponent';
3
+ import type { DownloadItem as TPStreamsDownloadsItem } from '../spec/NativeTPStreamsDownloads';
4
+ export declare const TPStreamsPlayerNative: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
5
+ export type { ErrorEvent, NativeProps };
3
6
  export { default as TPStreamsPlayerView } from './TPStreamsPlayer';
4
7
  export type { TPStreamsPlayerRef } from './TPStreamsPlayer';
5
8
  export { pauseDownload, resumeDownload, removeDownload, isDownloaded, isDownloading, isPaused, getDownloadStatus, getAllDownloads, addDownloadProgressListener, removeDownloadProgressListener, onDownloadProgressChanged, type DownloadItem, type DownloadProgressChange, type DownloadProgressListener, } from './TPStreamsDownload';
6
- export { default as TPStreamsDownloads } from '../spec/NativeTPStreamsDownloads';
7
- export type { DownloadItem as TPStreamsDownloadsItem } from '../spec/NativeTPStreamsDownloads';
9
+ export declare const TPStreamsDownloads: import("../spec/NativeTPStreamsDownloads").Spec;
10
+ export type { TPStreamsDownloadsItem };
8
11
  export declare const TPStreams: {
9
12
  initialize: (organizationId: string) => void;
10
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAC9F,cAAc,4CAA4C,CAAC;AAG3D,OAAO,EAAE,OAAO,IAA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Y,EAAE,sBAAsB,EAAE,CAAC;AAIvC,eAAO,MAAM,SAAS;iCACS,MAAM,KAAG,IAAI;CAG3C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-tpstreams",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "Video component for TPStreams",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
package/src/index.tsx CHANGED
@@ -1,7 +1,15 @@
1
1
  import { NativeModules } from 'react-native';
2
- // Export the native component with a different name to avoid conflicts
3
- export { default as TPStreamsPlayerNative } from '../spec/TPStreamsPlayerViewNativeComponent';
4
- export * from '../spec/TPStreamsPlayerViewNativeComponent';
2
+
3
+ import TPStreamsPlayerViewNativeComponent from '../spec/TPStreamsPlayerViewNativeComponent';
4
+ import type {
5
+ ErrorEvent,
6
+ NativeProps,
7
+ } from '../spec/TPStreamsPlayerViewNativeComponent';
8
+ import NativeTPStreamsDownloads from '../spec/NativeTPStreamsDownloads';
9
+ import type { DownloadItem as TPStreamsDownloadsItem } from '../spec/NativeTPStreamsDownloads';
10
+
11
+ export const TPStreamsPlayerNative = TPStreamsPlayerViewNativeComponent;
12
+ export type { ErrorEvent, NativeProps };
5
13
 
6
14
  // Export the wrapper component as TPStreamsPlayerView
7
15
  export { default as TPStreamsPlayerView } from './TPStreamsPlayer';
@@ -26,8 +34,8 @@ export {
26
34
  } from './TPStreamsDownload';
27
35
 
28
36
  // Export the TPStreamsDownloads TurboModule directly
29
- export { default as TPStreamsDownloads } from '../spec/NativeTPStreamsDownloads';
30
- export type { DownloadItem as TPStreamsDownloadsItem } from '../spec/NativeTPStreamsDownloads';
37
+ export const TPStreamsDownloads = NativeTPStreamsDownloads;
38
+ export type { TPStreamsDownloadsItem };
31
39
 
32
40
  const TPStreamsModule = NativeModules.TPStreams;
33
41