@q9labsai/chalk-react 5.2.5 → 5.3.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.
@@ -26,6 +26,7 @@ type SpaceIntegration = {
26
26
  };
27
27
  type SpaceEventCallbacks = {
28
28
  readonly onJoined?: () => void;
29
+ /** Local media has stopped; await client.leave() separately for durable confirmation. */
29
30
  readonly onLeft?: () => void;
30
31
  readonly onEpisodeEnded?: (event: ClientEventMap["episodeEnded"]) => void;
31
32
  readonly onParticipantJoined?: (event: ClientEventMap["participantJoined"]) => void;
@@ -24,12 +24,12 @@ export declare const MEDIA_FAILURE_POLICY: {
24
24
  "command.rejected": Rule;
25
25
  "connection.invalid_state": {
26
26
  copy: {
27
- test: (context: Context) => string;
28
- request: (context: Context) => string;
29
- start: (context: Context) => string;
30
- stop: (context: Context) => string;
31
- select: (context: Context) => string;
32
- change: (context: Context) => string;
27
+ start: Copy;
28
+ stop: Copy;
29
+ select: Copy;
30
+ test: Copy;
31
+ request: Copy;
32
+ change: Copy;
33
33
  };
34
34
  retry: true;
35
35
  };
@@ -5,7 +5,7 @@ import {
5
5
  RecordingHistoryPanel,
6
6
  RecordingSpaceView,
7
7
  RecordingWhiteboardView
8
- } from "../chunk-6AUMKXPU.js";
8
+ } from "../chunk-HJVAN33K.js";
9
9
  import {
10
10
  loadRecordingWhiteboardFiles,
11
11
  parseRecordingWhiteboardStateV1,
@@ -47,10 +47,10 @@ import {
47
47
  ReactionsOverlay,
48
48
  ScreenShareView,
49
49
  Stage
50
- } from "../chunk-WRKIKIXF.js";
50
+ } from "../chunk-RCHBFOCR.js";
51
51
  import {
52
52
  buildStageItems
53
- } from "../chunk-HWQLW4JR.js";
53
+ } from "../chunk-ES7AECAD.js";
54
54
  import "../chunk-4U7QZC72.js";
55
55
  export {
56
56
  AdmissionPanel,
@@ -2,7 +2,10 @@ import React from "react";
2
2
  export interface Participant {
3
3
  id: string;
4
4
  displayName: string;
5
+ deviceHint?: string;
5
6
  isLocal?: boolean;
7
+ /** A different seat belonging to the local person. */
8
+ isOwnDevice?: boolean;
6
9
  /** Voice activity for this participant, from sync presence. */
7
10
  isSpeaking?: boolean;
8
11
  /** Normalized voice level (0–1); omit when the integration only supplies speaking activity. */
@@ -4,6 +4,7 @@ export interface ParticipantTileProps {
4
4
  participant: {
5
5
  id: string;
6
6
  displayName: string;
7
+ deviceHint?: string;
7
8
  isLocal?: boolean;
8
9
  isSpeaking?: boolean;
9
10
  /** Normalized voice level (0–1). Activity-only integrations use a neutral speaking level. */
@@ -3,6 +3,7 @@ import { type ParticipantGradientPreference } from "../../utils/colorGenerator";
3
3
  export interface ParticipantListParticipant {
4
4
  id: string;
5
5
  displayName: string;
6
+ deviceHint?: string;
6
7
  role?: string;
7
8
  /** Whether the participant has the endEpisode capability. */
8
9
  isHost?: boolean;
@@ -43,6 +43,7 @@ export interface SpotlightFitOptions {
43
43
  readonly floatingPhonePeople?: boolean;
44
44
  readonly speakerId?: string | null;
45
45
  readonly localId?: string | null;
46
+ readonly ownDeviceIds?: readonly string[];
46
47
  }
47
48
  export declare const WIDESCREEN: number;
48
49
  export declare const MORE_TILE_ID = "stage:more";
package/dist/headless.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  fitSpotlight,
14
14
  gridOrder,
15
15
  screenShareItemId
16
- } from "./chunk-HWQLW4JR.js";
16
+ } from "./chunk-ES7AECAD.js";
17
17
  export {
18
18
  DEFAULT_GRID_OPTIONS,
19
19
  DEFAULT_SPOTLIGHT_OPTIONS,
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  RecordingHistoryPanel,
6
6
  RecordingSpaceView,
7
7
  RecordingWhiteboardView
8
- } from "./chunk-6AUMKXPU.js";
8
+ } from "./chunk-HJVAN33K.js";
9
9
  import {
10
10
  loadRecordingWhiteboardFiles,
11
11
  parseRecordingWhiteboardStateV1,
@@ -59,8 +59,8 @@ import {
59
59
  useSelf,
60
60
  useSpaceClient,
61
61
  useWhiteboard
62
- } from "./chunk-WRKIKIXF.js";
63
- import "./chunk-HWQLW4JR.js";
62
+ } from "./chunk-RCHBFOCR.js";
63
+ import "./chunk-ES7AECAD.js";
64
64
  import "./chunk-4U7QZC72.js";
65
65
 
66
66
  // src/index.ts
@@ -0,0 +1,2 @@
1
+ import type { Participant } from "@q9labsai/chalk-client";
2
+ export declare function deviceHint(participant: Participant | undefined, roster: readonly Participant[]): string | undefined;
@@ -6,8 +6,8 @@ import {
6
6
  SpaceView,
7
7
  ToastStack,
8
8
  WhiteboardView
9
- } from "../chunk-WRKIKIXF.js";
10
- import "../chunk-HWQLW4JR.js";
9
+ } from "../chunk-RCHBFOCR.js";
10
+ import "../chunk-ES7AECAD.js";
11
11
  import "../chunk-4U7QZC72.js";
12
12
 
13
13
  // src/test-support/preview-devices.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@q9labsai/chalk-react",
3
- "version": "5.2.5",
3
+ "version": "5.3.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -75,10 +75,10 @@
75
75
  "@base-ui/react": "^1.7.0",
76
76
  "@hugeicons/core-free-icons": "^4.2.3",
77
77
  "@hugeicons/react": "^1.1.9",
78
- "@q9labsai/chalk-client": "^5.2.5",
79
- "@q9labsai/chalk-ui": "^5.2.5",
80
- "@q9labsai/chalk-whiteboard": "^5.2.5",
81
- "@q9labsai/facehash": "^5.2.5",
78
+ "@q9labsai/chalk-client": "^5.3.0",
79
+ "@q9labsai/chalk-ui": "^5.3.0",
80
+ "@q9labsai/chalk-whiteboard": "^5.3.0",
81
+ "@q9labsai/facehash": "^5.3.0",
82
82
  "@q9labsai/recording-presentation": "^0.1.1",
83
83
  "class-variance-authority": "^0.7.1",
84
84
  "clsx": "^2.1.1",