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.
package/lib/module/index.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { NativeModules } from 'react-native';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
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
|
|
13
|
+
export const TPStreamsDownloads = NativeTPStreamsDownloads;
|
|
15
14
|
const TPStreamsModule = NativeModules.TPStreams;
|
|
16
15
|
export const TPStreams = {
|
|
17
16
|
initialize: organizationId => {
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","
|
|
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
|
-
|
|
2
|
-
|
|
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
|
|
7
|
-
export type {
|
|
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":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":";AAGA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACZ,MAAM,4CAA4C,CAAC;AAEpD,OAAO,KAAK,EAAE,YAAY,IAAI,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE/F,eAAO,MAAM,qBAAqB,oGAAqC,CAAC;AACxE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;AAGxC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACnE,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAG5D,OAAO,EACL,aAAa,EACb,cAAc,EACd,cAAc,EACd,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,2BAA2B,EAC3B,8BAA8B,EAC9B,yBAAyB,EACzB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B,MAAM,qBAAqB,CAAC;AAG7B,eAAO,MAAM,kBAAkB,iDAA2B,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAIvC,eAAO,MAAM,SAAS;iCACS,MAAM,KAAG,IAAI;CAG3C,CAAC"}
|
package/package.json
CHANGED
package/src/index.tsx
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { NativeModules } from 'react-native';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
30
|
-
export type {
|
|
37
|
+
export const TPStreamsDownloads = NativeTPStreamsDownloads;
|
|
38
|
+
export type { TPStreamsDownloadsItem };
|
|
31
39
|
|
|
32
40
|
const TPStreamsModule = NativeModules.TPStreams;
|
|
33
41
|
|