@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.
Files changed (55) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +469 -483
  3. package/ios/CallKitBridge.swift +2 -7
  4. package/lib/callkit/callkit-coordinator.d.ts +110 -117
  5. package/lib/callkit/callkit-coordinator.js +664 -727
  6. package/lib/callkit/callkit.d.ts +41 -41
  7. package/lib/callkit/callkit.js +252 -242
  8. package/lib/callkit/index.js +15 -47
  9. package/lib/callkit/use-callkit.d.ts +19 -19
  10. package/lib/callkit/use-callkit.js +270 -310
  11. package/lib/context/TelnyxVoiceContext.d.ts +9 -9
  12. package/lib/context/TelnyxVoiceContext.js +10 -13
  13. package/lib/hooks/use-callkit-coordinator.d.ts +9 -17
  14. package/lib/hooks/use-callkit-coordinator.js +45 -50
  15. package/lib/hooks/useAppReadyNotifier.js +13 -15
  16. package/lib/hooks/useAppStateHandler.d.ts +6 -11
  17. package/lib/hooks/useAppStateHandler.js +95 -110
  18. package/lib/hooks/useNetworkStateHandler.d.ts +0 -0
  19. package/lib/hooks/useNetworkStateHandler.js +0 -0
  20. package/lib/index.d.ts +3 -21
  21. package/lib/index.js +50 -201
  22. package/lib/internal/CallKitHandler.d.ts +6 -6
  23. package/lib/internal/CallKitHandler.js +96 -104
  24. package/lib/internal/callkit-manager.d.ts +57 -57
  25. package/lib/internal/callkit-manager.js +299 -316
  26. package/lib/internal/calls/call-state-controller.d.ts +73 -86
  27. package/lib/internal/calls/call-state-controller.js +263 -307
  28. package/lib/internal/session/session-manager.d.ts +71 -75
  29. package/lib/internal/session/session-manager.js +360 -424
  30. package/lib/internal/user-defaults-helpers.js +49 -39
  31. package/lib/internal/voice-pn-bridge.d.ts +114 -12
  32. package/lib/internal/voice-pn-bridge.js +212 -5
  33. package/lib/models/call-state.d.ts +46 -44
  34. package/lib/models/call-state.js +70 -68
  35. package/lib/models/call.d.ts +161 -133
  36. package/lib/models/call.js +454 -382
  37. package/lib/models/config.d.ts +11 -18
  38. package/lib/models/config.js +37 -35
  39. package/lib/models/connection-state.d.ts +10 -10
  40. package/lib/models/connection-state.js +16 -16
  41. package/lib/telnyx-voice-app.d.ts +28 -28
  42. package/lib/telnyx-voice-app.js +513 -480
  43. package/lib/telnyx-voip-client.d.ts +167 -167
  44. package/lib/telnyx-voip-client.js +385 -390
  45. package/package.json +115 -104
  46. package/src/callkit/callkit-coordinator.ts +830 -846
  47. package/src/hooks/useNetworkStateHandler.ts +0 -0
  48. package/src/internal/calls/call-state-controller.ts +407 -384
  49. package/src/internal/session/session-manager.ts +483 -467
  50. package/src/internal/voice-pn-bridge.ts +266 -18
  51. package/src/models/call-state.ts +105 -98
  52. package/src/models/call.ts +502 -388
  53. package/src/telnyx-voice-app.tsx +788 -690
  54. package/src/telnyx-voip-client.ts +551 -539
  55. package/src/types/telnyx-sdk.d.ts +93 -79
package/CHANGELOG.md ADDED
@@ -0,0 +1,60 @@
1
+ # CHANGELOG.md
2
+
3
+ ## [0.1.4](https://www.npmjs.com/package/@telnyx/react-voice-commons-sdk/v/0.1.4) (2025-11-27)
4
+
5
+ ### Documentation
6
+
7
+ • Comprehensive push notification documentation (setup guides for Android FCM and iOS APNs)
8
+ • Quick Start Guide with step-by-step integration examples
9
+ • Portal setup guide for Firebase and Apple certificate configuration
10
+ • App setup guide for native Android and iOS implementation
11
+ • Cleaned up documentation formatting (removed emoji characters)
12
+ • Fixed documentation links to point to actual API references
13
+ • Updated CHANGELOG links to use npm package URLs
14
+
15
+ ### Enhancements
16
+
17
+ • Added `.gitignore` entries for `react-voice-commons-sdk/android/build` artifacts
18
+ • Improved documentation structure with dedicated quickstart section
19
+ • Enhanced TypeDoc markdown output configuration
20
+
21
+ ## [0.1.2](https://www.npmjs.com/package/@telnyx/react-voice-commons-sdk/v/0.1.2) (2025-11-04)
22
+
23
+ ### Enhancement
24
+
25
+ • Comprehensive package README with integration examples
26
+ • Documentation for credential-based and token-based authentication
27
+ • Native integration guides for Android (MainActivity) and iOS (AppDelegate)
28
+ • Examples for push notification setup
29
+ • Troubleshooting section
30
+
31
+ ### Bug Fixing
32
+
33
+ • Package metadata and npm publishing configuration
34
+
35
+ ## [0.1.1](https://www.npmjs.com/package/@telnyx/react-voice-commons-sdk/v/0.1.1) (2025-11-02)
36
+
37
+ ### Enhancement
38
+
39
+ • Initial npm package release
40
+ • Core VoIP client (`TelnyxVoipClient`)
41
+ • TelnyxVoiceApp component for React Native lifecycle management
42
+ • CallKit integration for iOS native call UI
43
+ • Android ConnectionService support
44
+ • Push notification handling (FCM for Android, APNs for iOS)
45
+ • Reactive state streams with RxJS
46
+ • Call management APIs (make, answer, hold, mute, transfer, hangup)
47
+ • Connection state management
48
+ • Call state machine
49
+ • Automatic reconnection logic
50
+ • Session management
51
+ • TypeScript type definitions
52
+
53
+ ## [0.1.0](https://www.npmjs.com/package/@telnyx/react-voice-commons-sdk/v/0.1.0) (2025-11-01)
54
+
55
+ ### Enhancement
56
+
57
+ • Initial development version
58
+ • Basic VoIP functionality
59
+ • Call management
60
+ • State management interfaces