@elevenlabs/react-native 1.0.0-rc.0 → 1.0.0
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-check-types.log +1 -1
- package/.turbo/turbo-generate-version.log +1 -1
- package/.turbo/turbo-lint$colon$es.log +1 -3
- package/.turbo/turbo-lint$colon$prettier.log +1 -1
- package/CHANGELOG.md +125 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/eslint.config.mjs +1 -0
- package/package.json +3 -3
- package/src/version.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/eslint.config.cjs +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @elevenlabs/react-native@1.0.0
|
|
2
|
+
> @elevenlabs/react-native@1.0.0 generate-version /home/runner/work/packages/packages/packages/react-native
|
|
3
3
|
> printf "// This file is auto-generated during build\nexport const PACKAGE_VERSION = \"%s\";\n" "$npm_package_version" > src/version.ts
|
|
4
4
|
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @elevenlabs/react-native@1.0.0
|
|
2
|
+
> @elevenlabs/react-native@1.0.0 lint:es /home/runner/work/packages/packages/packages/react-native
|
|
3
3
|
> pnpm exec eslint .
|
|
4
4
|
|
|
5
|
-
(node:3129) ESLintEmptyConfigWarning: Running ESLint with an empty config (from /home/runner/work/packages/packages/packages/react-native/eslint.config.cjs). Please double-check that this is what you want. If you want to run ESLint with an empty config, export [{}] to remove this warning.
|
|
6
|
-
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @elevenlabs/react-native@1.0.0
|
|
2
|
+
> @elevenlabs/react-native@1.0.0 lint:prettier /home/runner/work/packages/packages/packages/react-native
|
|
3
3
|
> prettier 'src/**/*.ts' --check
|
|
4
4
|
|
|
5
5
|
Checking formatting...
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,122 @@
|
|
|
1
1
|
# @elevenlabs/react-native
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- a72ca40: **Breaking:** Complete API rewrite. The custom LiveKit-based implementation (`ElevenLabsProvider`, `useConversation`) has been removed and replaced with re-exports from `@elevenlabs/react`.
|
|
8
|
+
|
|
9
|
+
The package now provides `ConversationProvider` and granular hooks (`useConversationControls`, `useConversationStatus`, `useConversationInput`, `useConversationMode`, `useConversationFeedback`) instead of the previous monolithic `useConversation` hook.
|
|
10
|
+
|
|
11
|
+
On React Native, the package performs side-effects on import: polyfilling WebRTC globals, configuring native AudioSession, and registering a platform-specific voice session strategy. On web, it re-exports without side-effects.
|
|
12
|
+
|
|
13
|
+
## Migration
|
|
14
|
+
|
|
15
|
+
**Before:**
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import {
|
|
19
|
+
ElevenLabsProvider,
|
|
20
|
+
useConversation,
|
|
21
|
+
} from "@elevenlabs/react-native";
|
|
22
|
+
|
|
23
|
+
function App() {
|
|
24
|
+
return (
|
|
25
|
+
<ElevenLabsProvider>
|
|
26
|
+
<Conversation />
|
|
27
|
+
</ElevenLabsProvider>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function Conversation() {
|
|
32
|
+
const conversation = useConversation({
|
|
33
|
+
onConnect: ({ conversationId }) =>
|
|
34
|
+
console.log("Connected", conversationId),
|
|
35
|
+
onError: message => console.error(message),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<Button
|
|
40
|
+
onPress={() => conversation.startSession({ agentId: "your-agent-id" })}
|
|
41
|
+
/>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**After:**
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
import {
|
|
50
|
+
ConversationProvider,
|
|
51
|
+
useConversationControls,
|
|
52
|
+
useConversationStatus,
|
|
53
|
+
} from "@elevenlabs/react-native";
|
|
54
|
+
|
|
55
|
+
function App() {
|
|
56
|
+
return (
|
|
57
|
+
<ConversationProvider
|
|
58
|
+
onConnect={({ conversationId }) =>
|
|
59
|
+
console.log("Connected", conversationId)
|
|
60
|
+
}
|
|
61
|
+
onError={message => console.error(message)}
|
|
62
|
+
>
|
|
63
|
+
<Conversation />
|
|
64
|
+
</ConversationProvider>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function Conversation() {
|
|
69
|
+
const { startSession } = useConversationControls();
|
|
70
|
+
const { status } = useConversationStatus();
|
|
71
|
+
|
|
72
|
+
return (
|
|
73
|
+
<Button onPress={() => startSession({ agentId: "your-agent-id" })} />
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- a8883a1: Replace microbundle with rolldown for IIFE builds (client, react) and tsc-only builds (react-native). No public API changes — the CDN bundle format changes from UMD to IIFE.
|
|
81
|
+
- Updated dependencies [f174972]
|
|
82
|
+
- Updated dependencies [f174972]
|
|
83
|
+
- Updated dependencies [f174972]
|
|
84
|
+
- Updated dependencies [1dbda93]
|
|
85
|
+
- Updated dependencies [1dc66aa]
|
|
86
|
+
- Updated dependencies [f174972]
|
|
87
|
+
- Updated dependencies [1fd59f9]
|
|
88
|
+
- Updated dependencies [93a247e]
|
|
89
|
+
- Updated dependencies [f174972]
|
|
90
|
+
- Updated dependencies [a72ca40]
|
|
91
|
+
- Updated dependencies [93a247e]
|
|
92
|
+
- Updated dependencies [245ce5c]
|
|
93
|
+
- Updated dependencies [a8883a1]
|
|
94
|
+
- Updated dependencies [f174972]
|
|
95
|
+
- @elevenlabs/client@1.0.0
|
|
96
|
+
- @elevenlabs/react@1.0.0
|
|
97
|
+
|
|
98
|
+
## 0.6.0
|
|
99
|
+
|
|
100
|
+
### Minor Changes
|
|
101
|
+
|
|
102
|
+
- 1b84231: Add `guardrail_triggered` server-to-client WebSocket event, emitted when a guardrail is triggered during the conversation.
|
|
103
|
+
|
|
104
|
+
**New callback:** `onGuardrailTriggered` on `Callbacks` — fires when the server detects a guardrail violation.
|
|
105
|
+
|
|
106
|
+
```js
|
|
107
|
+
const conversation = await Conversation.startSession({
|
|
108
|
+
agentId: "your-agent-id",
|
|
109
|
+
onGuardrailTriggered: () => {
|
|
110
|
+
console.log("A guardrail was triggered");
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Patch Changes
|
|
116
|
+
|
|
117
|
+
- Updated dependencies [1b84231]
|
|
118
|
+
- @elevenlabs/types@0.7.0
|
|
119
|
+
|
|
3
120
|
## 1.0.0-rc.0
|
|
4
121
|
|
|
5
122
|
### Major Changes
|
|
@@ -92,6 +209,14 @@
|
|
|
92
209
|
- @elevenlabs/client@1.0.0-rc.0
|
|
93
210
|
- @elevenlabs/react@1.0.0-rc.0
|
|
94
211
|
|
|
212
|
+
## 0.5.12
|
|
213
|
+
|
|
214
|
+
### Patch Changes
|
|
215
|
+
|
|
216
|
+
- a85e24d: add multimodal_message WebSocket event
|
|
217
|
+
- Updated dependencies [a85e24d]
|
|
218
|
+
- @elevenlabs/types@0.6.1
|
|
219
|
+
|
|
95
220
|
## 0.5.11
|
|
96
221
|
|
|
97
222
|
### Patch Changes
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "1.0.0
|
|
1
|
+
export declare const PACKAGE_VERSION = "1.0.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,UAAU,CAAC"}
|
package/dist/version.js
CHANGED
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,MAAM,CAAC,MAAM,eAAe,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default [{ ignores: ["dist/**"] }];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevenlabs/react-native",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "ElevenLabs React Native SDK for the Agents Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"react-native": ">=0.70.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@elevenlabs/
|
|
31
|
-
"@elevenlabs/
|
|
30
|
+
"@elevenlabs/client": "1.0.0",
|
|
31
|
+
"@elevenlabs/react": "1.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/react": "^19.1.1",
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated during build
|
|
2
|
-
export const PACKAGE_VERSION = "1.0.0
|
|
2
|
+
export const PACKAGE_VERSION = "1.0.0";
|