@startsimpli/integrations 0.2.177 → 0.2.178
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startsimpli/integrations",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.178",
|
|
4
4
|
"description": "Provider-agnostic types, API clients, hooks, and UI primitives for email + calendar integrations across StartSimpli apps, plus foundry customer email (subpath ./comms).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://startsimpli.com",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"react-native": ">=0.74.0",
|
|
51
51
|
"@startsimpli/ui-native": ">=0.1.12",
|
|
52
52
|
"react-native-safe-area-context": ">=4.0.0",
|
|
53
|
-
"@startsimpli/
|
|
53
|
+
"@startsimpli/utils": "^0.4.20",
|
|
54
54
|
"@startsimpli/auth": "^0.4.53",
|
|
55
|
-
"@startsimpli/
|
|
55
|
+
"@startsimpli/ui": "^0.4.186"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"react": {
|
|
@@ -44,6 +44,14 @@ function setup(over: { turn?: ConverseClient['turn']; openError?: Error; utteran
|
|
|
44
44
|
const status = () => screen.getByTestId('converse-status').textContent ?? '';
|
|
45
45
|
|
|
46
46
|
describe('ConversePage (meeting)', () => {
|
|
47
|
+
it('after Start the big start button is gone: a slim status row with a small End button replaces it', async () => {
|
|
48
|
+
setup();
|
|
49
|
+
fireEvent.click(screen.getByTestId('converse-start'));
|
|
50
|
+
await waitFor(() => expect(screen.getByTestId('converse-live-row')).toBeTruthy());
|
|
51
|
+
expect(screen.queryByTestId('converse-start')).toBeNull();
|
|
52
|
+
expect(screen.getByTestId('converse-live-row').contains(screen.getByTestId('converse-end'))).toBe(true);
|
|
53
|
+
});
|
|
54
|
+
|
|
47
55
|
it('speech speed defaults to 1.25x, is remembered, and applies to the open conversation', async () => {
|
|
48
56
|
const store = new Map<string, string>();
|
|
49
57
|
vi.stubGlobal('localStorage', { getItem: (k: string) => store.get(k) ?? null, setItem: (k: string, v: string) => { store.set(k, v); } });
|
|
@@ -109,13 +109,18 @@ export function ConversePage({ client, classNames, meeting, createIO, savedLink
|
|
|
109
109
|
return (
|
|
110
110
|
<div className={cx('root')}>
|
|
111
111
|
{live ? (
|
|
112
|
-
<
|
|
113
|
-
{
|
|
114
|
-
|
|
112
|
+
<div className="flex items-center justify-between gap-3" data-testid="converse-live-row">
|
|
113
|
+
<p className={cx('muted')} role="status" aria-live="polite" data-testid="converse-status">{status}</p>
|
|
114
|
+
<button type="button" onClick={() => void onEnd()} disabled={state.phase === 'ending'} className={cx('secondary')} data-testid="converse-end">
|
|
115
|
+
{state.phase === 'ending' ? 'Saving…' : 'End and save'}
|
|
116
|
+
</button>
|
|
117
|
+
</div>
|
|
115
118
|
) : (
|
|
116
|
-
|
|
119
|
+
<>
|
|
120
|
+
<button type="button" onClick={() => void onStart()} className={cx('talk')} data-testid="converse-start">Start talking</button>
|
|
121
|
+
<p className={cx('muted')} role="status" aria-live="polite" data-testid="converse-status">{status}</p>
|
|
122
|
+
</>
|
|
117
123
|
)}
|
|
118
|
-
<p className={cx('muted')} role="status" aria-live="polite" data-testid="converse-status">{status}</p>
|
|
119
124
|
{startError || state.error ? <div className={cx('error')} role="alert">{startError ?? state.error}</div> : null}
|
|
120
125
|
{state.relayNotice ? (
|
|
121
126
|
<div className={cx('muted')} role="status" data-testid="converse-relay-notice">
|