@robono/calling-react-native 0.9.0 → 0.9.2

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,9 +1,17 @@
1
- ## 0.8.0 — release candidate
1
+ ## 0.9.2
2
+
3
+ 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.
4
+
5
+ ## 0.9.1
6
+
7
+ - Expose the caption checkbox state to browser assistive tools when the shared call controls render on the web. Native checked-state behavior is preserved.
2
8
 
3
9
  ## 0.9.0
4
10
 
5
11
  Adds supplied recording/caption controls, local camera/microphone/speaker checks and on-device background blur for iPhone and Android. Native rebuild required for blur. Presentation-only installations keep WebRTC optional.
6
12
 
13
+ ## 0.8.0
14
+
7
15
  Add an optional on-demand connection-details panel for direct and group calls, with foreground-only sampling and cleanup.
8
16
 
9
17
  ## 0.7.0 — release candidate
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.9.0",
6
- "documentNamespace": "https://robono.com/sbom/calling-react-native/0.9.0/d40dd14455b305b86a0ee9647925a1a90930ee27",
5
+ "name": "@robono/calling-react-native@0.9.2",
6
+ "documentNamespace": "https://robono.com/sbom/calling-react-native/0.9.2/9cd3feebd8f092f1a29c7be45ee6dae225bba1e7",
7
7
  "creationInfo": {
8
- "created": "2026-11-05T15:08:51.897Z",
8
+ "created": "2026-11-06T08:38:17.048Z",
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.9.0",
17
+ "versionInfo": "0.9.2",
18
18
  "downloadLocation": "NOASSERTION",
19
19
  "filesAnalyzed": true,
20
20
  "packageVerificationCode": {
21
- "packageVerificationCodeValue": "d40dd14455b305b86a0ee9647925a1a90930ee27"
21
+ "packageVerificationCodeValue": "9cd3feebd8f092f1a29c7be45ee6dae225bba1e7"
22
22
  },
23
23
  "licenseConcluded": "LicenseRef-RobonoSDK",
24
24
  "licenseDeclared": "LicenseRef-RobonoSDK",
@@ -36,11 +36,11 @@
36
36
  "checksums": [
37
37
  {
38
38
  "algorithm": "SHA256",
39
- "checksumValue": "5341dd386ce584b453d581b3f3e36a658614a77a46161406c03913727170ff5f"
39
+ "checksumValue": "d7ef80202def5a1bc19217ec5acf853f9694f426811635213da0521b7f3a2407"
40
40
  },
41
41
  {
42
42
  "algorithm": "SHA1",
43
- "checksumValue": "69504dc4a29773205dc24cb5b32e1d27d001ab6e"
43
+ "checksumValue": "21ccad285fa013fa743fcd174a8047ced2cf72c0"
44
44
  }
45
45
  ],
46
46
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -5204,11 +5204,11 @@
5204
5204
  "checksums": [
5205
5205
  {
5206
5206
  "algorithm": "SHA256",
5207
- "checksumValue": "f3909240c0fa389033aebd49be4fd58293279e56f659bda97e83e16ed4f719ac"
5207
+ "checksumValue": "c03e6d74591492d164f83ae9b7c462b4fae85e9388af886a7f3abdea3bf9cdbe"
5208
5208
  },
5209
5209
  {
5210
5210
  "algorithm": "SHA1",
5211
- "checksumValue": "3110c2abda8d5787c81a8f09df32f9996eb917cf"
5211
+ "checksumValue": "9f08890910a7d2e8dee0fe40dd866b03e65f1cf4"
5212
5212
  }
5213
5213
  ],
5214
5214
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -5907,11 +5907,11 @@
5907
5907
  "checksums": [
5908
5908
  {
5909
5909
  "algorithm": "SHA256",
5910
- "checksumValue": "331548e9c695b0c457dcd0b8394ced56107750cad8dd4d65f04a7224cf3989fa"
5910
+ "checksumValue": "e3b23b04e51556737be79fe8bbd6e22ffd39afcf2ae2d19422a130d9b65854e1"
5911
5911
  },
5912
5912
  {
5913
5913
  "algorithm": "SHA1",
5914
- "checksumValue": "bd863ab29350a7d4d3190deaa1a2e249e16f5064"
5914
+ "checksumValue": "304d430fdc8b3a76031a9a0cf80b3dea8d5311f1"
5915
5915
  }
5916
5916
  ],
5917
5917
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -5926,11 +5926,11 @@
5926
5926
  "checksums": [
5927
5927
  {
5928
5928
  "algorithm": "SHA256",
5929
- "checksumValue": "050463faabf8aeff078f8c1a09aa2d547656ee2a3a41922e14c4d985aa8fb7b2"
5929
+ "checksumValue": "8e08bbb6c9f06823326e5b7cefa06e3e983a48492e6d8a6bbbf788ad6c72e7a6"
5930
5930
  },
5931
5931
  {
5932
5932
  "algorithm": "SHA1",
5933
- "checksumValue": "2162ea435a39eca5a82625c996a7d65c1837fbb6"
5933
+ "checksumValue": "9cf661292dfa5641872e2916f7724ff889cab342"
5934
5934
  }
5935
5935
  ],
5936
5936
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -6040,11 +6040,11 @@
6040
6040
  "checksums": [
6041
6041
  {
6042
6042
  "algorithm": "SHA256",
6043
- "checksumValue": "8a75b20fc26c58c482413dc1551c68665f70e5c19b1bf40cc36d78f076ba0267"
6043
+ "checksumValue": "1af5f7c9a610852e994d2052f5dc99719e2e138c7f80730e5c87df38cbedf18f"
6044
6044
  },
6045
6045
  {
6046
6046
  "algorithm": "SHA1",
6047
- "checksumValue": "9d6266fec3454a90c4423dbe1d5362a9b5a806b2"
6047
+ "checksumValue": "f64e3f5a205170b854db72c032d63f843f075693"
6048
6048
  }
6049
6049
  ],
6050
6050
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -6211,11 +6211,11 @@
6211
6211
  "checksums": [
6212
6212
  {
6213
6213
  "algorithm": "SHA256",
6214
- "checksumValue": "e94554c4b03cfde89ec641ad2f149de428e262cf5296bc8b772d5d865156804a"
6214
+ "checksumValue": "b486e725b3b7ab9062741d25d6f39fb05e6e24b87c16393dac301d3d22818b0a"
6215
6215
  },
6216
6216
  {
6217
6217
  "algorithm": "SHA1",
6218
- "checksumValue": "a798b56c2126a823a5f4ef93084bff211b60019e"
6218
+ "checksumValue": "cfe3bb69805b4ebd26f015c4fa1448f856a54912"
6219
6219
  }
6220
6220
  ],
6221
6221
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -6230,11 +6230,11 @@
6230
6230
  "checksums": [
6231
6231
  {
6232
6232
  "algorithm": "SHA256",
6233
- "checksumValue": "5d62db6257ae4dcbbcf03ddd2d71f4eb94d5b5ceeb97c8e9d874f875a2652eb8"
6233
+ "checksumValue": "497fd07d4064be995ee0569283f80ae1b11cf529abe9c847b273de03906c5a6b"
6234
6234
  },
6235
6235
  {
6236
6236
  "algorithm": "SHA1",
6237
- "checksumValue": "b10541d365b320b2cb6974d19df921d3fe55ea57"
6237
+ "checksumValue": "5a29d1a4242cc482da1bb4bdae716d3951b47690"
6238
6238
  }
6239
6239
  ],
6240
6240
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -6591,11 +6591,11 @@
6591
6591
  "checksums": [
6592
6592
  {
6593
6593
  "algorithm": "SHA256",
6594
- "checksumValue": "b7870c8d6b7685ddc129a771422527b0a032ae009dc9155c804687419862f3b4"
6594
+ "checksumValue": "9bb228049fcdc5b8829428f70afdb7130008384e80424061de407afaa4cedd94"
6595
6595
  },
6596
6596
  {
6597
6597
  "algorithm": "SHA1",
6598
- "checksumValue": "2723ef01cfe2ab7a1810911138dcdfa518e349bf"
6598
+ "checksumValue": "6d93232a28ab3acde5e1addabb0c0cf7e99790d8"
6599
6599
  }
6600
6600
  ],
6601
6601
  "licenseConcluded": "LicenseRef-RobonoSDK",
@@ -132,7 +132,7 @@ export function validateCallingAppearance(input) {
132
132
  }
133
133
  }
134
134
  for (const key of Object.keys(callingText)) {
135
- const x = v.labels?.[key] ?? (['more', 'videoCall', 'incomingVideo', 'cameraOn', 'cameraOff', 'switchCamera', 'shareScreen', 'stopSharing', 'sharingScreen'].includes(key) ? callingText[key] : undefined);
135
+ const x = v.labels?.[key] ?? (['backgroundBlur', 'backgroundUnavailable', 'more', 'videoCall', 'incomingVideo', 'cameraOn', 'cameraOff', 'switchCamera', 'shareScreen', 'stopSharing', 'sharingScreen'].includes(key) ? callingText[key] : undefined);
136
136
  if (typeof x !== "string" || !x.trim() ||
137
137
  x.length >
138
138
  ([
package/dist/native.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { CallRuntime } from './runtime.js';
4
4
  export interface NativeAdapterOptions {
5
5
  systemCalling?: NativeSystemCallAudio;
6
6
  appearance?: CallingAppearance;
7
- /** Restore your app's ordinary playback/recording policy after each call. */
7
+ /** Restore app-owned audio after a call. CallKit-owned iOS sessions are released by the system; the next playback/recording operation acquires its normal mode. */
8
8
  restoreAudio(): Promise<void>;
9
9
  onError(error: Error): void;
10
10
  /** Default uses the person's system ringtone. Set 'robono' for the supplied chime. */
package/dist/native.js CHANGED
@@ -102,7 +102,11 @@ export function createNativeCallAdapters(options) {
102
102
  async play(kind, playback = {}) {
103
103
  pause();
104
104
  current = kind;
105
- if (options.systemCalling?.active() && (playback.event === 'incoming' || Platform.OS === 'ios' && playback.event === 'connecting'))
105
+ // CallKit owns incoming-call cues and its asynchronous end transition too.
106
+ // Playing/seeking an Expo end cue during that transition can fail with !pri.
107
+ if (Platform.OS === 'ios' && (systemSession || options.systemCalling?.active()))
108
+ return;
109
+ if (options.systemCalling?.active() && playback.event === 'incoming')
106
110
  return;
107
111
  if (playback.event === 'incoming' && !options.appearance && kind === 'ringing' && options.ringtone !== 'robono') {
108
112
  InCallManager.startRingtone('_DEFAULT_', [0, 350, 900], 'ambient', 0);
@@ -125,7 +129,8 @@ export function createNativeCallAdapters(options) {
125
129
  if (audioOwner !== owner)
126
130
  return;
127
131
  try {
128
- if (!systemSession)
132
+ const borrowedSystemSession = systemSession || (Platform.OS === 'ios' && options.systemCalling?.active());
133
+ if (!borrowedSystemSession)
129
134
  InCallManager.stop();
130
135
  systemSession = false;
131
136
  session = '';
@@ -140,7 +145,12 @@ export function createNativeCallAdapters(options) {
140
145
  await options.runtime?.end();
141
146
  }
142
147
  finally {
143
- await options.restoreAudio();
148
+ // We never changed Expo's mode for a CallKit-owned session. Restoring
149
+ // it here would replace the system session before didDeactivate, or
150
+ // while a following incoming call is already ringing. The next app
151
+ // playback/recording operation acquires its own normal audio mode.
152
+ if (!borrowedSystemSession)
153
+ await options.restoreAudio();
144
154
  }
145
155
  }
146
156
  }
package/dist/recording.js CHANGED
@@ -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", 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)
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
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)
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.9.0";
2
- export declare const engineVersion = "0.6.0";
1
+ export declare const mobileVersion = "0.9.2";
2
+ export declare const engineVersion = "0.6.1";
package/dist/versions.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Generated from the package manifests by build.mjs.
2
- export const mobileVersion = "0.9.0";
3
- export const engineVersion = "0.6.0";
2
+ export const mobileVersion = "0.9.2";
3
+ export const engineVersion = "0.6.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robono/calling-react-native",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Optional branded calling screens, sounds and native audio adapters for Robono calling.",
5
5
  "type": "module",
6
6
  "sideEffects": false,