@q9labsai/chalk-react 5.2.6 → 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.
@@ -99,15 +99,17 @@ var FLOAT_BOTTOM = 8 + 64 + 60;
99
99
  function floatPeople(box, primaryId, stripIds, options) {
100
100
  const content = stripIds.filter((id) => options.wideIds?.includes(id));
101
101
  const people = stripIds.filter((id) => !content.includes(id));
102
- const speaker = options.speakerId && options.speakerId !== options.localId && people.includes(options.speakerId) ? options.speakerId : null;
102
+ const ownDevices = people.filter((id) => options.ownDeviceIds?.includes(id));
103
+ const speaker = options.speakerId && options.speakerId !== options.localId && !ownDevices.includes(options.speakerId) && people.includes(options.speakerId) ? options.speakerId : null;
103
104
  const local = options.localId && people.includes(options.localId) ? options.localId : null;
104
- const others = people.filter((id) => id !== speaker && id !== local);
105
- const ordered = [...speaker ? [speaker] : [], ...others, ...local ? [local] : []];
105
+ const others = people.filter((id) => id !== speaker && id !== local && !ownDevices.includes(id));
106
+ const ordered = [...speaker ? [speaker] : [], ...others, ...local ? [local] : [], ...ownDevices];
106
107
  const fold = (max2) => {
107
108
  if (content.length + ordered.length <= max2) return [...content, ...ordered];
108
109
  const shares = content.slice(0, max2 - 1);
109
110
  const slots = max2 - 1 - shares.length;
110
- const faces = ordered.length <= slots ? ordered : slots > 0 ? [...ordered.slice(0, slots - 1), ...ordered.slice(-1)] : [];
111
+ const faces = ordered.slice(0, slots);
112
+ if (slots > 0 && local && !faces.includes(local)) faces[slots - 1] = local;
111
113
  return [...shares, ...faces, MORE_TILE_ID];
112
114
  };
113
115
  const sizeOf = (id) => id === speaker || content.includes(id) ? FLOAT_SPEAKER : FLOAT_PERSON;
@@ -181,6 +183,9 @@ function buildStageItems(participants, whiteboardOpen) {
181
183
  function isContentItem(item) {
182
184
  return item.kind !== "participant";
183
185
  }
186
+ function isOwnDeviceSeat(item) {
187
+ return item.kind === "participant" && item.participant.isOwnDevice === true;
188
+ }
184
189
  function stabilizeOrder(previousIds, items) {
185
190
  const byId = new Map(items.map((item) => [item.id, item]));
186
191
  const ordered = [];
@@ -196,7 +201,7 @@ function stabilizeOrder(previousIds, items) {
196
201
  ordered.push(item);
197
202
  placed.add(item.id);
198
203
  }
199
- return ordered;
204
+ return [...ordered.filter((item) => !isOwnDeviceSeat(item)), ...ordered.filter(isOwnDeviceSeat)];
200
205
  }
201
206
  function firstScreenShare(items, seenAt) {
202
207
  let first;
@@ -215,23 +220,25 @@ function participantWhere(items, predicate) {
215
220
  return items.find((item) => item.kind === "participant" && predicate(item.participant));
216
221
  }
217
222
  function choosePrimary(items, context) {
218
- if (items.length === 0) return null;
219
- const pinned = context.pinnedId ? items.find((item) => item.id === context.pinnedId) : void 0;
223
+ const eligible = items.filter((item) => !isOwnDeviceSeat(item));
224
+ if (eligible.length === 0) return null;
225
+ const pinned = context.pinnedId ? eligible.find((item) => item.id === context.pinnedId) : void 0;
220
226
  if (pinned) return pinned;
221
- const content = firstScreenShare(items, context.seenAt) ?? items.find((item) => item.kind === "whiteboard");
227
+ const content = firstScreenShare(eligible, context.seenAt) ?? eligible.find((item) => item.kind === "whiteboard");
222
228
  if (content) return content;
223
- return participantWhere(items, (participant) => participant.isActiveSpeaker === true) ?? participantWhere(items, (participant) => participant.isSpeaking === true) ?? (context.lastSpeakerId ? items.find((item) => item.kind === "participant" && item.id === context.lastSpeakerId) : void 0) ?? participantWhere(items, (participant) => !participant.isLocal) ?? participantWhere(items, () => true) ?? items[0] ?? null;
229
+ return participantWhere(eligible, (participant) => participant.isActiveSpeaker === true) ?? participantWhere(eligible, (participant) => participant.isSpeaking === true) ?? (context.lastSpeakerId ? eligible.find((item) => item.kind === "participant" && item.id === context.lastSpeakerId) : void 0) ?? participantWhere(eligible, (participant) => !participant.isLocal) ?? participantWhere(eligible, () => true) ?? eligible[0] ?? null;
224
230
  }
225
231
  function speakingParticipantId(items, accept = () => true) {
226
- return (participantWhere(items, (participant) => accept(participant) && participant.isActiveSpeaker === true) ?? participantWhere(items, (participant) => accept(participant) && participant.isSpeaking === true))?.id;
232
+ return (participantWhere(items, (participant) => !participant.isOwnDevice && accept(participant) && participant.isActiveSpeaker === true) ?? participantWhere(items, (participant) => !participant.isOwnDevice && accept(participant) && participant.isSpeaking === true))?.id;
227
233
  }
228
234
  function floatingSpeakerId(items, lastRemoteSpeakerId) {
229
- return speakingParticipantId(items, (participant) => !participant.isLocal) ?? lastRemoteSpeakerId;
235
+ const previous = items.some((item) => item.id === lastRemoteSpeakerId && isOwnDeviceSeat(item)) ? null : lastRemoteSpeakerId;
236
+ return speakingParticipantId(items, (participant) => !participant.isLocal) ?? previous;
230
237
  }
231
238
  function gridOrder(items, pinnedId) {
232
- if (!pinnedId) return [...items];
233
- const pinned = items.find((item) => item.id === pinnedId);
234
- return pinned ? [pinned, ...items.filter((item) => item.id !== pinnedId)] : [...items];
239
+ if (!pinnedId) return stabilizeOrder([], items);
240
+ const pinned = items.find((item) => item.id === pinnedId && !isOwnDeviceSeat(item));
241
+ return stabilizeOrder([], pinned ? [pinned, ...items.filter((item) => item.id !== pinnedId)] : items);
235
242
  }
236
243
 
237
244
  export {
@@ -36,11 +36,11 @@ import {
36
36
  useRecording,
37
37
  useSpaceClient,
38
38
  useWhiteboard
39
- } from "./chunk-JK4JXOGC.js";
39
+ } from "./chunk-RCHBFOCR.js";
40
40
  import {
41
41
  WHITEBOARD_ITEM_ID,
42
42
  screenShareItemId
43
- } from "./chunk-HWQLW4JR.js";
43
+ } from "./chunk-ES7AECAD.js";
44
44
  import {
45
45
  Download01Icon,
46
46
  FileTextIcon,
@@ -314,7 +314,7 @@ function SpaceExperience(props) {
314
314
  const previous = previousStatus.current;
315
315
  if (hasObservedStatus.current) {
316
316
  if (connection.status === "live" && previous !== "live" && previous !== "reconnecting") props.onJoined?.();
317
- if (connection.status === "left" && previous !== "left") props.onLeft?.();
317
+ if ((connection.status === "leaving" || connection.status === "left") && previous !== "leaving" && previous !== "left") props.onLeft?.();
318
318
  }
319
319
  previousStatus.current = connection.status;
320
320
  hasObservedStatus.current = true;
@@ -440,14 +440,17 @@ function SpaceSurface(props) {
440
440
  onLeft: () => runCommand(() => client.leave()),
441
441
  onEndEpisode: canEndEpisode ? () => runCommand(() => client.endEpisode()) : void 0,
442
442
  reconnecting: { isVisible: connection.status === "reconnecting", status: "reconnecting", showNotice: false },
443
- overlay: /* @__PURE__ */ jsx(Fragment, { children: media.incomingRequests[0] ? /* @__PURE__ */ jsx(
444
- MediaRequestDialog,
445
- {
446
- request: media.incomingRequests[0],
447
- onDecline: () => void runCommand(() => client.media.declineRequest(media.incomingRequests[0].requestId), media.incomingRequests[0].kind === "start_camera" ? "camera" : "microphone", "request"),
448
- onAllow: () => void runCommand(() => client.media.acceptRequest(media.incomingRequests[0].requestId), media.incomingRequests[0].kind === "start_camera" ? "camera" : "microphone", "request")
449
- }
450
- ) : null })
443
+ overlay: /* @__PURE__ */ jsxs(Fragment, { children: [
444
+ media.microphoneMutedByOtherDevice ? /* @__PURE__ */ jsx("div", { role: "status", className: "pointer-events-none absolute inset-x-3 top-16 z-40 flex justify-center", children: /* @__PURE__ */ jsx("p", { className: "chalk-toast text-center text-sm", children: "Mic off: your other device is using it." }) }) : null,
445
+ media.incomingRequests[0] ? /* @__PURE__ */ jsx(
446
+ MediaRequestDialog,
447
+ {
448
+ request: media.incomingRequests[0],
449
+ onDecline: () => void runCommand(() => client.media.declineRequest(media.incomingRequests[0].requestId), media.incomingRequests[0].kind === "start_camera" ? "camera" : "microphone", "request"),
450
+ onAllow: () => void runCommand(() => client.media.acceptRequest(media.incomingRequests[0].requestId), media.incomingRequests[0].kind === "start_camera" ? "camera" : "microphone", "request")
451
+ }
452
+ ) : null
453
+ ] })
451
454
  }
452
455
  );
453
456
  }
@@ -13,7 +13,7 @@ import {
13
13
  isContentItem,
14
14
  speakingParticipantId,
15
15
  stabilizeOrder
16
- } from "./chunk-HWQLW4JR.js";
16
+ } from "./chunk-ES7AECAD.js";
17
17
  import {
18
18
  ArrowLeft01Icon,
19
19
  ArrowRight01Icon,
@@ -874,6 +874,15 @@ import { IconButton, Spinner } from "@q9labsai/chalk-ui";
874
874
  // src/components/audio-output/AudioOutput.tsx
875
875
  import { useCallback as useCallback4, useEffect as useEffect5, useMemo as useMemo5, useRef as useRef4, useState as useState8 } from "react";
876
876
 
877
+ // src/selectors/device-hint.ts
878
+ function deviceHint(participant, roster) {
879
+ if (!participant?.identityId) return void 0;
880
+ const devices = roster.filter((item) => item.identityId === participant.identityId && item.presence.state === "connected");
881
+ if (devices.length < 2) return void 0;
882
+ const label = participant.deviceType === "phone" ? "Phone" : participant.deviceType === "tablet" ? "Tablet" : participant.deviceType === "computer" ? "Computer" : "Device";
883
+ return `${label} \xB7 ${devices.length} devices`;
884
+ }
885
+
877
886
  // src/selectors/space-selectors.ts
878
887
  function toVideoParticipants(participants, remoteMedia, localId, displayName, localMedia) {
879
888
  const remoteByParticipant = /* @__PURE__ */ new Map();
@@ -891,6 +900,7 @@ function toVideoParticipants(participants, remoteMedia, localId, displayName, lo
891
900
  {
892
901
  id: localId,
893
902
  displayName: localFromSync?.displayName || displayName,
903
+ deviceHint: deviceHint(localFromSync, participants),
894
904
  isLocal: true,
895
905
  isMuted: localMedia.microphone.state !== "enabled",
896
906
  isSpeaking: localFromSync?.presence.speaking ?? false,
@@ -908,6 +918,8 @@ function toVideoParticipants(participants, remoteMedia, localId, displayName, lo
908
918
  result.push({
909
919
  id: participant.participantId,
910
920
  displayName: participant.displayName,
921
+ deviceHint: deviceHint(participant, participants),
922
+ isOwnDevice: Boolean(localFromSync?.identityId && participant.identityId === localFromSync.identityId),
911
923
  isMuted: participant.media.microphone !== "active",
912
924
  isSpeaking: participant.presence.speaking,
913
925
  isActiveSpeaker: participant.presence.activeSpeaker,
@@ -962,12 +974,15 @@ function useParticipantVolumeContext() {
962
974
  import { jsx as jsx23 } from "react/jsx-runtime";
963
975
  function AudioOutput({ participants, volume = 1, audioOutputDeviceId, getParticipantVolume, resumeAudioLabel = "Resume audio" }) {
964
976
  const media = useMedia();
977
+ const self = useSelf();
965
978
  const participantState = useParticipants();
966
979
  const volumeContext = useParticipantVolumeContext();
967
980
  const contextParticipants = useMemo5(() => toAudioParticipants(media.remote), [media.remote]);
968
981
  const effectiveParticipants = useMemo5(() => {
969
982
  const stateById = new Map(participantState.roster.map((participant) => [participant.participantId, participant.media]));
970
- return (participants ?? contextParticipants).map((participant) => {
983
+ const identityId = self.identityId ?? participantState.roster.find((participant) => participant.participantId === self.participantId)?.identityId;
984
+ const ownDevices = new Set(participantState.roster.filter((participant) => identityId && participant.identityId === identityId).map((participant) => participant.participantId));
985
+ return (participants ?? contextParticipants).filter((participant) => !ownDevices.has(participant.id)).map((participant) => {
971
986
  const state = stateById.get(participant.id);
972
987
  return {
973
988
  ...participant,
@@ -975,7 +990,7 @@ function AudioOutput({ participants, volume = 1, audioOutputDeviceId, getPartici
975
990
  screenShareAudioTrack: state?.screenShare === "active" ? participant.screenShareAudioTrack : null
976
991
  };
977
992
  });
978
- }, [participants, contextParticipants, participantState.roster]);
993
+ }, [participants, contextParticipants, participantState.roster, self.participantId, self.identityId]);
979
994
  const effectiveAudioOutputDeviceId = audioOutputDeviceId ?? media.selection.speaker ?? void 0;
980
995
  const effectiveGetParticipantVolume = getParticipantVolume ?? ((participantId) => (volumeContext?.volumes.get(participantId) ?? 100) / 100);
981
996
  const audioElementsRef = useRef4(/* @__PURE__ */ new Map());
@@ -1493,6 +1508,7 @@ var ParticipantTileSurface = React5.memo(function ParticipantTileSurface2({
1493
1508
  const prefersReducedMotion = usePrefersReducedMotion();
1494
1509
  const phone = useMediaQuery("(max-width:640px)");
1495
1510
  const [localMirrored] = useMirrorSetting();
1511
+ const [deviceLabel, ...deviceDetails] = participant.deviceHint?.split(" \xB7 ") ?? [];
1496
1512
  const mirrored = mirror ?? (participant.isLocal === true && localMirrored);
1497
1513
  const colors = useMemo7(() => getParticipantColor(participant.displayName || participant.id, gradientPreference), [gradientPreference, participant.displayName, participant.id]);
1498
1514
  const recipe = useMemo7(() => getParticipantAvatarRecipe(participant.displayName || participant.id, gradientPreference), [participant.displayName, participant.id, gradientPreference]);
@@ -1538,12 +1554,21 @@ var ParticipantTileSurface = React5.memo(function ParticipantTileSurface2({
1538
1554
  ] }),
1539
1555
  chip: showName || showStatus ? /* @__PURE__ */ jsxs12(Fragment6, { children: [
1540
1556
  pinned && /* @__PURE__ */ jsx27(StageIcon, { name: "pin", size: 14, "aria-label": "Pinned" }),
1541
- showName && /* @__PURE__ */ jsxs12(Fragment6, { children: [
1542
- /* @__PURE__ */ jsxs12("span", { dir: "auto", "data-part": "tile-full-name", className: "min-w-0 truncate [unicode-bidi:plaintext]", title: participant.displayName, children: [
1543
- participant.displayName,
1544
- participant.isLocal && participant.displayName !== "You" && /* @__PURE__ */ jsx27("span", { className: "text-[var(--chalk-on-overlay)]", children: " (You)" })
1557
+ /* @__PURE__ */ jsxs12("span", { "data-part": "tile-label", className: "inline-flex h-[1lh] min-w-0 max-w-full flex-wrap content-start items-center gap-x-[5px] overflow-hidden", children: [
1558
+ showName && /* @__PURE__ */ jsxs12(Fragment6, { children: [
1559
+ /* @__PURE__ */ jsxs12("span", { dir: "auto", "data-part": "tile-full-name", className: "inline-flex h-full min-w-0 max-w-full shrink-0 items-center [unicode-bidi:plaintext]", title: participant.displayName, children: [
1560
+ /* @__PURE__ */ jsx27("span", { className: "min-w-0 truncate", children: participant.displayName }),
1561
+ participant.isLocal && participant.displayName !== "You" && /* @__PURE__ */ jsxs12("span", { "data-part": "tile-self-label", className: "shrink-0 whitespace-pre text-[var(--chalk-on-overlay)]", children: [
1562
+ " ",
1563
+ "(You)"
1564
+ ] })
1565
+ ] }),
1566
+ /* @__PURE__ */ jsx27("span", { dir: "auto", "data-part": "tile-short-name", className: "hidden h-full min-w-0 max-w-full shrink-0 truncate [unicode-bidi:plaintext]", children: participant.isLocal ? "You" : participant.displayName.split(" ")[0] })
1545
1567
  ] }),
1546
- /* @__PURE__ */ jsx27("span", { dir: "auto", "data-part": "tile-short-name", className: "hidden min-w-0 truncate [unicode-bidi:plaintext]", children: participant.isLocal ? "You" : participant.displayName.split(" ")[0] })
1568
+ participant.deviceHint ? /* @__PURE__ */ jsxs12("span", { "data-part": "tile-device", className: "contents text-[11px]", children: [
1569
+ /* @__PURE__ */ jsx27("span", { "data-part": "tile-device-type", className: "flex h-full shrink-0 items-center whitespace-nowrap opacity-80", children: deviceLabel }),
1570
+ deviceDetails.length > 0 && /* @__PURE__ */ jsx27("span", { "data-part": "tile-device-count", className: "flex h-full shrink-0 items-center whitespace-nowrap opacity-80", children: `\xB7 ${deviceDetails.join(" \xB7 ")}` })
1571
+ ] }) : null
1547
1572
  ] }),
1548
1573
  following ? /* @__PURE__ */ jsx27("span", { "data-part": "tile-following", className: "shrink-0 font-semibold opacity-80", children: "following" }) : null,
1549
1574
  showStatus && participant.isMuted && /* @__PURE__ */ jsx27(StageIcon, { name: "mute", size: 14, className: "shrink-0 text-[var(--chalk-overlay-danger)]", "aria-label": "Muted" }),
@@ -5220,7 +5245,7 @@ function ParticipantRow({
5220
5245
  onUpdateDisplayName && /* @__PURE__ */ jsx45("button", { type: "button", onClick: () => setIsEditing(true), "aria-label": "Edit your name", className: "call-edit-name", children: /* @__PURE__ */ jsx45(Edit02Icon, { className: "w-3 h-3" }) })
5221
5246
  ] })
5222
5247
  ] }),
5223
- /* @__PURE__ */ jsx45("div", { className: "flex items-center gap-1.5" })
5248
+ participant.deviceHint ? /* @__PURE__ */ jsx45("div", { className: "text-xs text-[var(--chalk-app-text-muted)]", children: participant.deviceHint }) : null
5224
5249
  ] })
5225
5250
  ] }),
5226
5251
  /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-1 shrink-0", children: [
@@ -5420,6 +5445,7 @@ var ParticipantsPanel = React13.memo((props) => {
5420
5445
  () => participantsSlice.roster.map((participant) => ({
5421
5446
  id: participant.participantId,
5422
5447
  displayName: participant.displayName,
5448
+ deviceHint: deviceHint(participant, participantsSlice.roster),
5423
5449
  role: participant.role,
5424
5450
  isHost: participant.capabilities.includes("endEpisode"),
5425
5451
  eligibleRoles: participant.eligibleRoles,
@@ -7079,7 +7105,7 @@ function Stage({
7079
7105
  if (!interactive) {
7080
7106
  seenAtRef.current = new Map(items.map((item, index) => [item.id, index]));
7081
7107
  nextSeenRef.current = items.length;
7082
- return [...items];
7108
+ return stabilizeOrder([], items);
7083
7109
  }
7084
7110
  const seenAt = seenAtRef.current;
7085
7111
  const present = new Set(items.map((item) => item.id));
@@ -7135,6 +7161,7 @@ function Stage({
7135
7161
  floatingPhonePeople: primary.kind === "whiteboard",
7136
7162
  speakerId,
7137
7163
  localId,
7164
+ ownDeviceIds: remaining.filter((item) => item.kind === "participant" && item.participant.isOwnDevice).map((item) => item.id),
7138
7165
  wideIds: primary.kind === "screen-share" ? ordered.filter((item) => item.kind === "whiteboard").map((item) => item.id) : wideIds,
7139
7166
  maxPerPage
7140
7167
  }
@@ -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;
@@ -5,7 +5,7 @@ import {
5
5
  RecordingHistoryPanel,
6
6
  RecordingSpaceView,
7
7
  RecordingWhiteboardView
8
- } from "../chunk-26BQBCEI.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-JK4JXOGC.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-26BQBCEI.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-JK4JXOGC.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-JK4JXOGC.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.6",
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.6",
79
- "@q9labsai/chalk-ui": "^5.2.6",
80
- "@q9labsai/chalk-whiteboard": "^5.2.6",
81
- "@q9labsai/facehash": "^5.2.6",
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",