@telnyx/react-voice-commons-sdk 0.1.2 → 0.1.4
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/CHANGELOG.md +60 -0
- package/README.md +469 -483
- package/ios/CallKitBridge.swift +2 -7
- package/lib/callkit/callkit-coordinator.d.ts +110 -117
- package/lib/callkit/callkit-coordinator.js +664 -727
- package/lib/callkit/callkit.d.ts +41 -41
- package/lib/callkit/callkit.js +252 -242
- package/lib/callkit/index.js +15 -47
- package/lib/callkit/use-callkit.d.ts +19 -19
- package/lib/callkit/use-callkit.js +270 -310
- package/lib/context/TelnyxVoiceContext.d.ts +9 -9
- package/lib/context/TelnyxVoiceContext.js +10 -13
- package/lib/hooks/use-callkit-coordinator.d.ts +9 -17
- package/lib/hooks/use-callkit-coordinator.js +45 -50
- package/lib/hooks/useAppReadyNotifier.js +13 -15
- package/lib/hooks/useAppStateHandler.d.ts +6 -11
- package/lib/hooks/useAppStateHandler.js +95 -110
- package/lib/hooks/useNetworkStateHandler.d.ts +0 -0
- package/lib/hooks/useNetworkStateHandler.js +0 -0
- package/lib/index.d.ts +3 -21
- package/lib/index.js +50 -201
- package/lib/internal/CallKitHandler.d.ts +6 -6
- package/lib/internal/CallKitHandler.js +96 -104
- package/lib/internal/callkit-manager.d.ts +57 -57
- package/lib/internal/callkit-manager.js +299 -316
- package/lib/internal/calls/call-state-controller.d.ts +73 -86
- package/lib/internal/calls/call-state-controller.js +263 -307
- package/lib/internal/session/session-manager.d.ts +71 -75
- package/lib/internal/session/session-manager.js +360 -424
- package/lib/internal/user-defaults-helpers.js +49 -39
- package/lib/internal/voice-pn-bridge.d.ts +114 -12
- package/lib/internal/voice-pn-bridge.js +212 -5
- package/lib/models/call-state.d.ts +46 -44
- package/lib/models/call-state.js +70 -68
- package/lib/models/call.d.ts +161 -133
- package/lib/models/call.js +454 -382
- package/lib/models/config.d.ts +11 -18
- package/lib/models/config.js +37 -35
- package/lib/models/connection-state.d.ts +10 -10
- package/lib/models/connection-state.js +16 -16
- package/lib/telnyx-voice-app.d.ts +28 -28
- package/lib/telnyx-voice-app.js +513 -480
- package/lib/telnyx-voip-client.d.ts +167 -167
- package/lib/telnyx-voip-client.js +385 -390
- package/package.json +115 -104
- package/src/callkit/callkit-coordinator.ts +830 -846
- package/src/hooks/useNetworkStateHandler.ts +0 -0
- package/src/internal/calls/call-state-controller.ts +407 -384
- package/src/internal/session/session-manager.ts +483 -467
- package/src/internal/voice-pn-bridge.ts +266 -18
- package/src/models/call-state.ts +105 -98
- package/src/models/call.ts +502 -388
- package/src/telnyx-voice-app.tsx +788 -690
- package/src/telnyx-voip-client.ts +551 -539
- package/src/types/telnyx-sdk.d.ts +93 -79
package/package.json
CHANGED
|
@@ -1,104 +1,115 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@telnyx/react-voice-commons-sdk",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "A high-level, state-agnostic, drop-in module for the Telnyx React Native SDK that simplifies WebRTC voice calling integration",
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"module": "lib/index.js",
|
|
7
|
-
"types": "lib/index.d.ts",
|
|
8
|
-
"react-native": "lib/index.js",
|
|
9
|
-
"source": "src/index.ts",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"import": "./lib/index.js",
|
|
13
|
-
"require": "./lib/index.js",
|
|
14
|
-
"types": "./lib/index.d.ts"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"lib",
|
|
19
|
-
"src",
|
|
20
|
-
"ios",
|
|
21
|
-
"TelnyxVoiceCommons.podspec",
|
|
22
|
-
"README.md"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"test
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"voice",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"expo-router":
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"react":
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"react-native": {
|
|
73
|
-
"optional": false
|
|
74
|
-
},
|
|
75
|
-
"
|
|
76
|
-
"optional": false
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"react-native-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@telnyx/react-voice-commons-sdk",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "A high-level, state-agnostic, drop-in module for the Telnyx React Native SDK that simplifies WebRTC voice calling integration",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"react-native": "lib/index.js",
|
|
9
|
+
"source": "src/index.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./lib/index.js",
|
|
13
|
+
"require": "./lib/index.js",
|
|
14
|
+
"types": "./lib/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"lib",
|
|
19
|
+
"src",
|
|
20
|
+
"ios",
|
|
21
|
+
"TelnyxVoiceCommons.podspec",
|
|
22
|
+
"README.md",
|
|
23
|
+
"CHANGELOG.md"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc",
|
|
27
|
+
"dev": "tsc --watch",
|
|
28
|
+
"test": "jest",
|
|
29
|
+
"test:watch": "jest --watch",
|
|
30
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
31
|
+
"clean": "rm -rf lib",
|
|
32
|
+
"docs": "typedoc",
|
|
33
|
+
"docs:watch": "typedoc --watch",
|
|
34
|
+
"docs:markdown": "typedoc --options typedoc.markdown.json",
|
|
35
|
+
"docs:all": "npm run docs && npm run docs:markdown",
|
|
36
|
+
"android": "expo run:android",
|
|
37
|
+
"ios": "expo run:ios",
|
|
38
|
+
"dev:local": "npm pkg set dependencies.@telnyx/react-native-voice-sdk=file:../package",
|
|
39
|
+
"dev:published": "npm pkg set dependencies.@telnyx/react-native-voice-sdk=^0.2.0",
|
|
40
|
+
"prepublishOnly": "npm run dev:published && npm install",
|
|
41
|
+
"postpublish": "npm run dev:local && npm install"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"react-native",
|
|
45
|
+
"telnyx",
|
|
46
|
+
"webrtc",
|
|
47
|
+
"voice",
|
|
48
|
+
"calling",
|
|
49
|
+
"sip",
|
|
50
|
+
"voip",
|
|
51
|
+
"commons",
|
|
52
|
+
"headless"
|
|
53
|
+
],
|
|
54
|
+
"author": "Telnyx",
|
|
55
|
+
"license": "MIT",
|
|
56
|
+
"homepage": "https://github.com/team-telnyx/react-native-voice-commons",
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "git+https://github.com/team-telnyx/react-native-voice-commons.git"
|
|
60
|
+
},
|
|
61
|
+
"bugs": {
|
|
62
|
+
"url": "https://github.com/team-telnyx/react-native-voice-commons/issues"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"@react-native-async-storage/async-storage": "^2.1.0",
|
|
66
|
+
"expo-router": "^5.1.0",
|
|
67
|
+
"react": "19.0.0",
|
|
68
|
+
"react-native": "^0.79.0",
|
|
69
|
+
"react-native-webrtc": "^124.0.5"
|
|
70
|
+
},
|
|
71
|
+
"peerDependenciesMeta": {
|
|
72
|
+
"@react-native-async-storage/async-storage": {
|
|
73
|
+
"optional": false
|
|
74
|
+
},
|
|
75
|
+
"expo-router": {
|
|
76
|
+
"optional": false
|
|
77
|
+
},
|
|
78
|
+
"react": {
|
|
79
|
+
"optional": false
|
|
80
|
+
},
|
|
81
|
+
"react-native": {
|
|
82
|
+
"optional": false
|
|
83
|
+
},
|
|
84
|
+
"react-native-webrtc": {
|
|
85
|
+
"optional": false
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"dependencies": {
|
|
89
|
+
"@react-native-community/eslint-config": "^3.2.0",
|
|
90
|
+
"@telnyx/react-native-voice-sdk": "0.2.0",
|
|
91
|
+
"eventemitter3": "^5.0.1",
|
|
92
|
+
"expo": "~53.0.22",
|
|
93
|
+
"react-native-voip-push-notification": "^3.3.3",
|
|
94
|
+
"rxjs": "^7.8.2"
|
|
95
|
+
},
|
|
96
|
+
"devDependencies": {
|
|
97
|
+
"@types/jest": "^29.5.0",
|
|
98
|
+
"@types/react": "~19.0.14",
|
|
99
|
+
"@types/react-native": "^0.72.8",
|
|
100
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
101
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
102
|
+
"eslint": "^8.0.0",
|
|
103
|
+
"jest": "^29.5.0",
|
|
104
|
+
"ts-jest": "^29.1.0",
|
|
105
|
+
"typedoc": "^0.28.14",
|
|
106
|
+
"typedoc-plugin-markdown": "^4.9.0",
|
|
107
|
+
"typescript": "^5.0.0"
|
|
108
|
+
},
|
|
109
|
+
"engines": {
|
|
110
|
+
"node": ">=16"
|
|
111
|
+
},
|
|
112
|
+
"publishConfig": {
|
|
113
|
+
"access": "public"
|
|
114
|
+
}
|
|
115
|
+
}
|