farvex 0.2.0 → 1.0.1
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 +18 -1
- package/README.md +292 -175
- package/dist/index.cjs +1045 -2471
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +1043 -2464
- package/dist/index.js.map +1 -1
- package/dist/livekit/index.cjs +4 -24
- package/dist/livekit/index.d.cts +2 -2
- package/dist/livekit/index.d.ts +2 -2
- package/dist/livekit/index.js +1 -1
- package/dist/react/index.cjs +89 -3287
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +18 -84
- package/dist/react/index.d.ts +18 -84
- package/dist/react/index.js +88 -3276
- package/dist/react/index.js.map +1 -1
- package/dist/types-Dgwrb3rf.d.cts +206 -0
- package/dist/types-Dgwrb3rf.d.ts +206 -0
- package/package.json +52 -71
- package/dist/core/index.cjs +0 -2917
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.d.cts +0 -1417
- package/dist/core/index.d.ts +0 -1417
- package/dist/core/index.js +0 -2902
- package/dist/core/index.js.map +0 -1
- package/dist/mock/index.cjs +0 -3267
- package/dist/mock/index.cjs.map +0 -1
- package/dist/mock/index.d.cts +0 -31
- package/dist/mock/index.d.ts +0 -31
- package/dist/mock/index.js +0 -3263
- package/dist/mock/index.js.map +0 -1
package/dist/mock/index.d.cts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SessionPage, SessionInviteView, PulseConnectGrant, CallpadConfig, CallpadClient } from '../core/index.cjs';
|
|
2
|
-
import 'livekit-client';
|
|
3
|
-
|
|
4
|
-
interface MockFetch {
|
|
5
|
-
(request: Request): Promise<Response>;
|
|
6
|
-
stub(method: string, path: string, body: unknown, status?: number): void;
|
|
7
|
-
reset(): void;
|
|
8
|
-
}
|
|
9
|
-
declare function makeMockFetch(): MockFetch;
|
|
10
|
-
|
|
11
|
-
type MockScenarioName = "idle" | "incomingInvite" | "outboundDialing" | "activeAudioCall" | "activeWithRecording" | "ringGroupDispatch" | "dispatchResolved" | "sipLegConnected" | "held" | "ended";
|
|
12
|
-
interface MockScenario {
|
|
13
|
-
name: MockScenarioName;
|
|
14
|
-
sessions: SessionPage;
|
|
15
|
-
invites: readonly SessionInviteView[];
|
|
16
|
-
pulseGrant: PulseConnectGrant;
|
|
17
|
-
}
|
|
18
|
-
declare const SCENARIOS: Record<MockScenarioName, MockScenario>;
|
|
19
|
-
|
|
20
|
-
interface MockClientOptions {
|
|
21
|
-
scenario?: MockScenarioName;
|
|
22
|
-
config?: Partial<CallpadConfig>;
|
|
23
|
-
}
|
|
24
|
-
interface MockClientHandle {
|
|
25
|
-
client: CallpadClient;
|
|
26
|
-
fetch: MockFetch;
|
|
27
|
-
scenario: MockScenarioName;
|
|
28
|
-
}
|
|
29
|
-
declare function createMockCallpadClient(opts?: MockClientOptions): MockClientHandle;
|
|
30
|
-
|
|
31
|
-
export { type MockClientHandle, type MockClientOptions, type MockFetch, type MockScenario, type MockScenarioName, SCENARIOS, createMockCallpadClient, makeMockFetch };
|
package/dist/mock/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SessionPage, SessionInviteView, PulseConnectGrant, CallpadConfig, CallpadClient } from '../core/index.js';
|
|
2
|
-
import 'livekit-client';
|
|
3
|
-
|
|
4
|
-
interface MockFetch {
|
|
5
|
-
(request: Request): Promise<Response>;
|
|
6
|
-
stub(method: string, path: string, body: unknown, status?: number): void;
|
|
7
|
-
reset(): void;
|
|
8
|
-
}
|
|
9
|
-
declare function makeMockFetch(): MockFetch;
|
|
10
|
-
|
|
11
|
-
type MockScenarioName = "idle" | "incomingInvite" | "outboundDialing" | "activeAudioCall" | "activeWithRecording" | "ringGroupDispatch" | "dispatchResolved" | "sipLegConnected" | "held" | "ended";
|
|
12
|
-
interface MockScenario {
|
|
13
|
-
name: MockScenarioName;
|
|
14
|
-
sessions: SessionPage;
|
|
15
|
-
invites: readonly SessionInviteView[];
|
|
16
|
-
pulseGrant: PulseConnectGrant;
|
|
17
|
-
}
|
|
18
|
-
declare const SCENARIOS: Record<MockScenarioName, MockScenario>;
|
|
19
|
-
|
|
20
|
-
interface MockClientOptions {
|
|
21
|
-
scenario?: MockScenarioName;
|
|
22
|
-
config?: Partial<CallpadConfig>;
|
|
23
|
-
}
|
|
24
|
-
interface MockClientHandle {
|
|
25
|
-
client: CallpadClient;
|
|
26
|
-
fetch: MockFetch;
|
|
27
|
-
scenario: MockScenarioName;
|
|
28
|
-
}
|
|
29
|
-
declare function createMockCallpadClient(opts?: MockClientOptions): MockClientHandle;
|
|
30
|
-
|
|
31
|
-
export { type MockClientHandle, type MockClientOptions, type MockFetch, type MockScenario, type MockScenarioName, SCENARIOS, createMockCallpadClient, makeMockFetch };
|