@robono/calling-react-native 0.10.0 → 0.11.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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # Changelog
2
+
3
+ ## 0.11.0 — 2026-11-10
4
+
5
+ Add shared phrase-analysis request, participant consent and active notices on iPhone, Android and web.
6
+
1
7
  ## 0.9.2
2
8
 
3
9
  Older saved appearances default optional video-background labels without blocking ordinary calling. iPhone incoming-call cleanup leaves the system-owned audio session alone, including hangup cues and a following incoming call.
package/SBOM.spdx.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "spdxVersion": "SPDX-2.3",
3
3
  "dataLicense": "CC0-1.0",
4
4
  "SPDXID": "SPDXRef-DOCUMENT",
5
- "name": "@robono/calling-react-native@0.10.0",
6
- "documentNamespace": "https://robono.com/sbom/calling-react-native/0.10.0/b6d3cebe85ceea06d48694c5ed669a1f73d4ad7c",
5
+ "name": "@robono/calling-react-native@0.11.0",
6
+ "documentNamespace": "https://robono.com/sbom/calling-react-native/0.11.0/b5f98ab3da628f618fe82cd5b31ea6b442145952",
7
7
  "creationInfo": {
8
- "created": "2026-11-10T08:50:25.619Z",
8
+ "created": "2026-11-10T12:10:19.103Z",
9
9
  "creators": [
10
10
  "Organization: Robono (support@robono.com)"
11
11
  ]
@@ -14,11 +14,11 @@
14
14
  {
15
15
  "name": "@robono/calling-react-native",
16
16
  "SPDXID": "SPDXRef-Package",
17
- "versionInfo": "0.10.0",
17
+ "versionInfo": "0.11.0",
18
18
  "downloadLocation": "NOASSERTION",
19
19
  "filesAnalyzed": true,
20
20
  "packageVerificationCode": {
21
- "packageVerificationCodeValue": "b6d3cebe85ceea06d48694c5ed669a1f73d4ad7c"
21
+ "packageVerificationCodeValue": "b5f98ab3da628f618fe82cd5b31ea6b442145952"
22
22
  },
23
23
  "licenseConcluded": "LicenseRef-RobonoSDK",
24
24
  "licenseDeclared": "LicenseRef-RobonoSDK",
@@ -26,7 +26,7 @@
26
26
  "LicenseRef-RobonoSDK"
27
27
  ],
28
28
  "copyrightText": "Copyright (c) 2026 Add to Loop LLC.",
29
- "comment": "Host-supplied peers (not bundled): {\"@robono/calling\":\"^0.6.2\",\"react\":\">=18.2 <20\",\"react-native\":\">=0.76 <1\",\"react-native-svg\":\">=15 <16\",\"react-native-safe-area-context\":\">=5 <6\",\"react-native-webrtc\":\">=124 <125\",\"react-native-incall-manager\":\">=4.2 <5\",\"expo-audio\":\">=1.1.1 <2 || >=55 <57\",\"expo-crypto\":\">=15.0.9 <16 || >=55 <57\",\"expo-notifications\":\">=0.32.17 <0.33 || >=55 <57\",\"expo-asset\":\">=12 <13 || >=55 <57\"}"
29
+ "comment": "Host-supplied peers (not bundled): {\"@robono/calling\":\"^0.7.0\",\"react\":\">=18.2 <20\",\"react-native\":\">=0.76 <1\",\"react-native-svg\":\">=15 <16\",\"react-native-safe-area-context\":\">=5 <6\",\"react-native-webrtc\":\">=124 <125\",\"react-native-incall-manager\":\">=4.2 <5\",\"expo-audio\":\">=1.1.1 <2 || >=55 <57\",\"expo-crypto\":\">=15.0.9 <16 || >=55 <57\",\"expo-notifications\":\">=0.32.17 <0.33 || >=55 <57\",\"expo-asset\":\">=12 <13 || >=55 <57\"}"
30
30
  }
31
31
  ],
32
32
  "files": [
@@ -36,11 +36,11 @@
36
36
  "checksums": [
37
37
  {
38
38
  "algorithm": "SHA256",
39
- "checksumValue": "d7ef80202def5a1bc19217ec5acf853f9694f426811635213da0521b7f3a2407"
39
+ "checksumValue": "60f7eafb47abdcae4a13bfc3859a4ed6fab92e9b1c481dd9940706c8603f78d4"
40
40
  },
41
41
  {
42
42
  "algorithm": "SHA1",
43
- "checksumValue": "21ccad285fa013fa743fcd174a8047ced2cf72c0"
43
+ "checksumValue": "86db9172ed8da50a8d691676bbfa9843e6d37137"
44
44
  }
45
45
  ],
46
46
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -6021,11 +6021,11 @@
6021
6021
  "checksums": [
6022
6022
  {
6023
6023
  "algorithm": "SHA256",
6024
- "checksumValue": "e44e0d5d9de28f2080f20530fdb97f94da5c5ae3049a89f6c84eb4f7688ed3be"
6024
+ "checksumValue": "3cdc8d8f16015b5f870868e4e47745cc35b1abbe4ed4f6855ecf53476f36ce39"
6025
6025
  },
6026
6026
  {
6027
6027
  "algorithm": "SHA1",
6028
- "checksumValue": "8a302c0af5fadd75e31eeb724f42d13a75aef12c"
6028
+ "checksumValue": "21f09679d3f0a7a7f2f1c90d049ed354cfa5eec0"
6029
6029
  }
6030
6030
  ],
6031
6031
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -6040,11 +6040,11 @@
6040
6040
  "checksums": [
6041
6041
  {
6042
6042
  "algorithm": "SHA256",
6043
- "checksumValue": "1af5f7c9a610852e994d2052f5dc99719e2e138c7f80730e5c87df38cbedf18f"
6043
+ "checksumValue": "3147809ee6ae3b85e9cac13d0db945e93f6a9e15056e49d96cbfa71039cf49c4"
6044
6044
  },
6045
6045
  {
6046
6046
  "algorithm": "SHA1",
6047
- "checksumValue": "f64e3f5a205170b854db72c032d63f843f075693"
6047
+ "checksumValue": "16a1728d8f567b2ebd26711c9fad49bdb31fad77"
6048
6048
  }
6049
6049
  ],
6050
6050
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -6211,11 +6211,11 @@
6211
6211
  "checksums": [
6212
6212
  {
6213
6213
  "algorithm": "SHA256",
6214
- "checksumValue": "b804bcb068b37a743f81696f00c2c4df37f8eb741992bb1ce45a868559201b86"
6214
+ "checksumValue": "3803d3886d42b1b837085c84e489bed3507c231f1ca76f76ea52ea91e63b44fc"
6215
6215
  },
6216
6216
  {
6217
6217
  "algorithm": "SHA1",
6218
- "checksumValue": "bd9b5a4b7127373352243d8f4bd2b04a33a0805e"
6218
+ "checksumValue": "a3e8045cb0708ec094deb2a30e7c155fc9cc5b98"
6219
6219
  }
6220
6220
  ],
6221
6221
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -6230,11 +6230,11 @@
6230
6230
  "checksums": [
6231
6231
  {
6232
6232
  "algorithm": "SHA256",
6233
- "checksumValue": "a451c4c23c241eff445fc19d0ea7cedb42439a7584519247afafd36d8b8a02db"
6233
+ "checksumValue": "937bcb89a225c13c68f79b5de799cdad976a3ba992f6d7e87aa51f3ade077f49"
6234
6234
  },
6235
6235
  {
6236
6236
  "algorithm": "SHA1",
6237
- "checksumValue": "2fac37dfa3cd3f631abbc0256f1b7a9b1e2512fe"
6237
+ "checksumValue": "564c4b1fbffb180bbfa00cd3cc1deee18b29bf42"
6238
6238
  }
6239
6239
  ],
6240
6240
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -6591,11 +6591,11 @@
6591
6591
  "checksums": [
6592
6592
  {
6593
6593
  "algorithm": "SHA256",
6594
- "checksumValue": "3b1e2c61b3dbc9ac0a6627e8bf090e0442d7e4e082958886600888655904dfe2"
6594
+ "checksumValue": "af364a58369910059a1d5c73be224f5479b6fb85101b3e14428f883934a2511c"
6595
6595
  },
6596
6596
  {
6597
6597
  "algorithm": "SHA1",
6598
- "checksumValue": "2ca63a8877dcef5b508d93b47adbc0518589d100"
6598
+ "checksumValue": "3f40d3b47543c77be5766ae3a1a635d21de6c179"
6599
6599
  }
6600
6600
  ],
6601
6601
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -2,6 +2,9 @@ import React from 'react';
2
2
  export declare const callRecordingText: {
3
3
  you: string;
4
4
  caller: string;
5
+ analysis: string;
6
+ analysisNotice: string;
7
+ analysisActive: string;
5
8
  captions: string;
6
9
  captionNotice: string;
7
10
  captionUnavailable: string;
package/dist/recording.js CHANGED
@@ -3,16 +3,16 @@ import { useEffect, useRef, useState } from 'react';
3
3
  import { Pressable, Text, View } from 'react-native';
4
4
  import { useCallingUI } from './components.js';
5
5
  import { RobonoIcon } from './visual/RobonoIcon.js';
6
- export const callRecordingText = { you: 'You', caller: 'Caller', captions: 'Include automatic captions and a saved transcript', captionNotice: 'This includes automatic captions and a saved transcript.', captionUnavailable: 'Captions are unavailable. The call recording continues.', record: 'Record call', audio: 'Record audio', video: 'Record video', request: 'Allow this call to be recorded?', notice: 'The company requesting the recording can save this call. Everyone must agree.', allow: 'Allow', decline: 'Decline', waiting: 'Waiting for everyone to agree', preparing: 'Preparing recording', active: 'Recording', stop: 'Stop recording', saved: 'Recording saved', failed: 'Recording could not be saved', declined: 'Recording declined', cancelled: 'Recording cancelled', error: 'Recording is unavailable. Try again.', close: 'Close recording options' };
6
+ export const callRecordingText = { you: 'You', caller: 'Caller', analysis: 'Check configured words and phrases', analysisNotice: 'Automatic word and phrase detection is included for the requesting network.', analysisActive: 'Recording and phrase analysis', captions: 'Include automatic captions and a saved transcript', captionNotice: 'This includes automatic captions and a saved transcript.', captionUnavailable: 'Captions are unavailable. The call recording continues.', record: 'Record call', audio: 'Record audio', video: 'Record video', request: 'Allow this call to be recorded?', notice: 'The company requesting the recording can save this call. Everyone must agree.', allow: 'Allow', decline: 'Decline', waiting: 'Waiting for everyone to agree', preparing: 'Preparing recording', active: 'Recording', stop: 'Stop recording', saved: 'Recording saved', failed: 'Recording could not be saved', declined: 'Recording declined', cancelled: 'Recording cancelled', error: 'Recording is unavailable. Try again.', close: 'Close recording options' };
7
7
  /** Shared web/phone controls. A persistent notice is shown throughout capture. */
8
8
  export function CallingRecordingControls() {
9
9
  const { state, recordingController: controller, recordingLabels, theme, typography } = useCallingUI();
10
10
  const text = { ...callRecordingText, ...recordingLabels }, snapshot = state.recording, r = snapshot?.recording;
11
- const [includeCaptions, setIncludeCaptions] = useState(false);
11
+ const [includeCaptions, setIncludeCaptions] = useState(false), [includeAnalysis, setIncludeAnalysis] = useState(false);
12
12
  const [choose, setChoose] = useState(false), [busy, setBusy] = useState(false), [failure, setFailure] = useState(false);
13
13
  const mounted = useRef(true), operation = useRef(0);
14
14
  useEffect(() => { mounted.current = true; return () => { mounted.current = false; operation.current++; }; }, []);
15
- useEffect(() => { operation.current++; setChoose(false); setIncludeCaptions(false); setFailure(false); setBusy(false); }, [state.call?.id, state.phase === 'idle']);
15
+ useEffect(() => { operation.current++; setChoose(false); setIncludeCaptions(false); setIncludeAnalysis(false); setFailure(false); setBusy(false); }, [state.call?.id, state.phase === 'idle']);
16
16
  if (!controller || !snapshot?.available || !['connected', 'held'].includes(state.phase))
17
17
  return null;
18
18
  const own = state.call?.self ?? state.groupMembers?.find(p => p.local)?.id;
@@ -23,7 +23,7 @@ export function CallingRecordingControls() {
23
23
  setFailure(true); }).finally(() => { if (mounted.current && current === operation.current)
24
24
  setBusy(false); }); };
25
25
  const button = (label, action, primary = false, interrupt = false) => _jsx(Pressable, { accessibilityRole: "button", accessibilityLabel: label, accessibilityState: { disabled: busy && !interrupt }, disabled: busy && !interrupt, onPress: action, style: { minHeight: 44, paddingHorizontal: 14, justifyContent: 'center', borderRadius: 12, backgroundColor: primary ? theme.accent : theme.control }, children: _jsx(Text, { style: [typography(15), { color: primary ? theme.background : theme.foreground, fontWeight: '600' }], children: label }) }, label);
26
- return _jsxs(View, { testID: "calling-recording", style: { width: '100%', maxWidth: 480, alignSelf: 'center', paddingHorizontal: 12, paddingVertical: 6, gap: 6 }, children: [consent ? _jsxs(View, { style: { backgroundColor: theme.control, borderRadius: 16, padding: 14, gap: 8 }, children: [_jsx(Text, { style: [typography(17), { color: theme.foreground, fontWeight: '600' }], children: text.request }), _jsxs(Text, { style: [typography(14), { color: theme.secondary }], children: [text.notice, r?.transcribe ? ' ' + text.captionNotice : ''] }), _jsxs(View, { style: { flexDirection: 'row', gap: 8, justifyContent: 'flex-end' }, children: [button(text.decline, () => run(() => controller.consent(false), true), false, true), button(text.allow, () => run(() => controller.consent(true)), true)] })] }) : active ? _jsxs(View, { style: { flexDirection: 'row', alignItems: 'center', justifyContent: 'center', gap: 10 }, children: [_jsx(View, { style: { width: 9, height: 9, borderRadius: 5, backgroundColor: r.state === 'recording' ? '#EE4848' : theme.accent } }), _jsx(Text, { accessibilityLiveRegion: "polite", style: [typography(15), { color: theme.foreground, flex: 1 }], children: r.state === 'recording' ? text.active : r.state === 'awaiting_consent' ? text.waiting : text.preparing }), button(text.stop, () => run(() => controller.stop(), true), false, true)] }) : _jsxs(_Fragment, { children: [r && ['complete', 'failed', 'declined', 'cancelled'].includes(r.state) && _jsx(Text, { accessibilityLiveRegion: "polite", style: [typography(14), { color: r.state === 'failed' ? theme.accent : theme.secondary, textAlign: 'center' }], children: r.state === 'complete' ? text.saved : r.state === 'failed' ? text.failed : r.state === 'declined' ? text.declined : text.cancelled }), choose ? _jsxs(View, { style: { backgroundColor: theme.control, borderRadius: 14, padding: 10, gap: 6 }, children: [_jsx(Pressable, { accessibilityRole: "button", accessibilityLabel: text.close, onPress: () => setChoose(false), style: { alignSelf: 'flex-end', width: 44, height: 44, alignItems: 'center', justifyContent: 'center' }, children: _jsx(RobonoIcon, { name: "close", size: 22, color: theme.foreground }) }), _jsx(Text, { style: [typography(14), { color: theme.secondary }], children: text.notice }), snapshot.capabilities?.captions && _jsxs(Pressable, { accessibilityRole: "checkbox", "aria-checked": includeCaptions, accessibilityState: { checked: includeCaptions }, accessibilityLabel: text.captions, onPress: () => setIncludeCaptions(v => !v), style: { minHeight: 44, flexDirection: 'row', gap: 10, alignItems: 'center' }, children: [_jsx(View, { style: { width: 20, height: 20, borderWidth: 1, borderRadius: 4, borderColor: theme.accent, backgroundColor: includeCaptions ? theme.accent : 'transparent' } }), _jsx(Text, { style: [typography(14), { color: theme.foreground, flex: 1 }], children: text.captions })] }), _jsxs(View, { style: { flexDirection: 'row', gap: 8, justifyContent: 'center' }, children: [snapshot.capabilities?.audio !== false && button(text.audio, () => run(async () => { await controller.start({ mode: 'audio', transcribe: includeCaptions }); if (mounted.current)
27
- setChoose(false); }), true), state.kind === 'video' && snapshot.capabilities?.video !== false && button(text.video, () => run(async () => { await controller.start({ mode: 'video', transcribe: includeCaptions }); if (mounted.current)
26
+ return _jsxs(View, { testID: "calling-recording", style: { width: '100%', maxWidth: 480, alignSelf: 'center', paddingHorizontal: 12, paddingVertical: 6, gap: 6 }, children: [consent ? _jsxs(View, { style: { backgroundColor: theme.control, borderRadius: 16, padding: 14, gap: 8 }, children: [_jsx(Text, { style: [typography(17), { color: theme.foreground, fontWeight: '600' }], children: text.request }), _jsxs(Text, { style: [typography(14), { color: theme.secondary }], children: [text.notice, r?.transcribe ? ' ' + text.captionNotice : '', r?.phraseAnalysis ? ' ' + text.analysisNotice : ''] }), _jsxs(View, { style: { flexDirection: 'row', gap: 8, justifyContent: 'flex-end' }, children: [button(text.decline, () => run(() => controller.consent(false), true), false, true), button(text.allow, () => run(() => controller.consent(true)), true)] })] }) : active ? _jsxs(View, { style: { flexDirection: 'row', alignItems: 'center', justifyContent: 'center', gap: 10 }, children: [_jsx(View, { style: { width: 9, height: 9, borderRadius: 5, backgroundColor: r.state === 'recording' ? '#EE4848' : theme.accent } }), _jsx(Text, { accessibilityLiveRegion: "polite", style: [typography(15), { color: theme.foreground, flex: 1 }], children: r.state === 'recording' ? (r.phraseAnalysis ? text.analysisActive : text.active) : r.state === 'awaiting_consent' ? text.waiting : text.preparing }), button(text.stop, () => run(() => controller.stop(), true), false, true)] }) : _jsxs(_Fragment, { children: [r && ['complete', 'failed', 'declined', 'cancelled'].includes(r.state) && _jsx(Text, { accessibilityLiveRegion: "polite", style: [typography(14), { color: r.state === 'failed' ? theme.accent : theme.secondary, textAlign: 'center' }], children: r.state === 'complete' ? text.saved : r.state === 'failed' ? text.failed : r.state === 'declined' ? text.declined : text.cancelled }), choose ? _jsxs(View, { style: { backgroundColor: theme.control, borderRadius: 14, padding: 10, gap: 6 }, children: [_jsx(Pressable, { accessibilityRole: "button", accessibilityLabel: text.close, onPress: () => setChoose(false), style: { alignSelf: 'flex-end', width: 44, height: 44, alignItems: 'center', justifyContent: 'center' }, children: _jsx(RobonoIcon, { name: "close", size: 22, color: theme.foreground }) }), _jsx(Text, { style: [typography(14), { color: theme.secondary }], children: text.notice }), snapshot.capabilities?.captions && _jsxs(Pressable, { accessibilityRole: "checkbox", "aria-checked": includeCaptions, accessibilityState: { checked: includeCaptions }, accessibilityLabel: text.captions, onPress: () => setIncludeCaptions(v => !v), style: { minHeight: 44, flexDirection: 'row', gap: 10, alignItems: 'center' }, children: [_jsx(View, { style: { width: 20, height: 20, borderWidth: 1, borderRadius: 4, borderColor: theme.accent, backgroundColor: includeCaptions ? theme.accent : 'transparent' } }), _jsx(Text, { style: [typography(14), { color: theme.foreground, flex: 1 }], children: text.captions })] }), snapshot.capabilities?.analysisRevision && _jsx(Pressable, { accessibilityRole: "checkbox", accessibilityLabel: text.analysis, accessibilityState: { checked: includeAnalysis }, onPress: () => { setIncludeAnalysis(v => !v); setIncludeCaptions(true); }, style: { minHeight: 44, justifyContent: 'center' }, children: _jsxs(Text, { style: [typography(14), { color: theme.foreground }], children: [includeAnalysis ? '☑ ' : '☐ ', text.analysis] }) }), _jsxs(View, { style: { flexDirection: 'row', gap: 8, justifyContent: 'center' }, children: [snapshot.capabilities?.audio !== false && button(text.audio, () => run(async () => { await controller.start({ mode: 'audio', transcribe: includeCaptions || includeAnalysis, analyzePhrases: includeAnalysis }); if (mounted.current)
27
+ setChoose(false); }), true), state.kind === 'video' && snapshot.capabilities?.video !== false && button(text.video, () => run(async () => { await controller.start({ mode: 'video', transcribe: includeCaptions || includeAnalysis, analyzePhrases: includeAnalysis }); if (mounted.current)
28
28
  setChoose(false); }), true)] })] }) : state.phase === 'connected' && snapshot.capabilities?.available === true && _jsxs(Pressable, { accessibilityRole: "button", accessibilityLabel: text.record, onPress: () => setChoose(true), style: { minHeight: 44, alignItems: 'center', justifyContent: 'center', flexDirection: 'row', gap: 8 }, children: [_jsx(RobonoIcon, { name: "circle-dot", size: 20, color: theme.foreground }), _jsx(Text, { style: [typography(14), { color: theme.foreground }], children: text.record })] })] }), r?.transcript?.captions.length ? _jsx(View, { accessibilityLiveRegion: "polite", style: { backgroundColor: '#111111dd', borderRadius: 12, padding: 10, gap: 4 }, children: r.transcript.captions.slice(-2).map(caption => _jsxs(Text, { numberOfLines: 3, style: [typography(16), { color: '#ffffff' }], children: [state.groupMembers?.find(m => m.id === caption.participant)?.name ?? (caption.participant === own ? text.you : state.contact?.name ?? text.caller), ": ", caption.text] }, caption.participant + ':' + caption.sequence)) }) : null, r?.transcript?.state === 'unavailable' && _jsx(Text, { accessibilityRole: "alert", style: [typography(14), { color: theme.secondary }], children: text.captionUnavailable }), (failure || snapshot.error) && _jsx(Text, { accessibilityRole: "alert", style: [typography(14), { color: theme.accent, textAlign: 'center' }], children: text.error })] });
29
29
  }
@@ -1,2 +1,2 @@
1
- export declare const mobileVersion = "0.10.0";
2
- export declare const engineVersion = "0.6.3";
1
+ export declare const mobileVersion = "0.11.0";
2
+ export declare const engineVersion = "0.7.0";
package/dist/versions.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Generated from the package manifests by build.mjs.
2
- export const mobileVersion = "0.10.0";
3
- export const engineVersion = "0.6.3";
2
+ export const mobileVersion = "0.11.0";
3
+ export const engineVersion = "0.7.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robono/calling-react-native",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Optional branded calling screens, sounds and native audio adapters for Robono calling.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -81,7 +81,7 @@
81
81
  "@types/react": "~19.2.2"
82
82
  },
83
83
  "peerDependencies": {
84
- "@robono/calling": "^0.6.2",
84
+ "@robono/calling": "^0.7.0",
85
85
  "react": ">=18.2 <20",
86
86
  "react-native": ">=0.76 <1",
87
87
  "react-native-svg": ">=15 <16",