react-sip-kit 0.7.0-beta → 0.7.1-beta

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/README.md CHANGED
@@ -109,14 +109,12 @@ const account = watch(); // contains lines, registration, media devices, etc.
109
109
  ### 4️⃣ Track Session State (`useWatchSessionData`)
110
110
 
111
111
  ```tsx
112
- import { useWatchSessionData } from 'react-sip-kit';
113
-
114
- const isRecording = useWatchSessionData({
112
+ const isRecording = SipConnection.useWatchSessionData({
115
113
  key: { lineKey: 1 },
116
114
  name: 'recordMedia.recording',
117
115
  });
118
116
 
119
- const [mediaStatus, isMuted] = useWatchSessionData({
117
+ const [mediaStatus, isMuted] = SipConnection.useWatchSessionData({
120
118
  key: { configKey: 'support-01', remoteNumber: '1002' },
121
119
  name: ['localMediaStreamStatus', 'localMediaStreamStatus.muted'],
122
120
  });
@@ -173,7 +171,7 @@ const configs = SipConnection.useWatchConfigs();
173
171
  Example (Rendering a phone UI for *every* config dynamically):
174
172
 
175
173
  ```tsx
176
- const AccountsUI = () => {
174
+ const App = () => {
177
175
  const configs = SipConnection.useWatchConfigs();
178
176
 
179
177
  return (