@q9labsai/chalk-react 5.4.1 → 5.5.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.
- package/README.md +7 -30
- package/dist/Board-PPO62QTR.js +80 -0
- package/dist/CallCharts-7ZQLN47C.js +114 -0
- package/dist/CallDetails-IG57GXT2.js +200 -0
- package/dist/CallDialogContent-GST2I23W.js +177 -0
- package/dist/CameraBackgroundPicker-AZXKBGRF.js +72 -0
- package/dist/ConnectionNotice-NQUBBT46.js +55 -0
- package/dist/DeviceAccessCard-MLRBTPRP.js +238 -0
- package/dist/DeviceAccessWaiting-MQXXW45M.js +25 -0
- package/dist/DeviceSheet-GZTV44UW.js +118 -0
- package/dist/InviteQrCode-TNTZA3GS.js +54 -0
- package/dist/KnockNotice-CAW4CJ4S.js +181 -0
- package/dist/ReactionSheet-ZU6RWC66.js +132 -0
- package/dist/chunk-26PBFST5.js +25 -0
- package/dist/{chunk-K5DV2OTY.js → chunk-4RSCAIFK.js} +340 -165
- package/dist/chunk-ADIDI7AJ.js +10 -0
- package/dist/chunk-ALGD3RBI.js +10 -0
- package/dist/chunk-CQBYFA2W.js +73 -0
- package/dist/chunk-E6HPIMFO.js +44 -0
- package/dist/{chunk-LYZ7EBFF.js → chunk-F6QZY5SM.js} +4116 -4605
- package/dist/chunk-I6FSUWKG.js +51 -0
- package/dist/chunk-JDCFKSGV.js +95 -0
- package/dist/chunk-PH3RC6T6.js +476 -0
- package/dist/chunk-PMGIER77.js +92 -0
- package/dist/chunk-Q36UO2T2.js +363 -0
- package/dist/chunk-SBGC5DKV.js +114 -0
- package/dist/chunk-SZNV3J4B.js +9 -0
- package/dist/{chunk-4U7QZC72.js → chunk-TSBY6C5U.js} +1 -102
- package/dist/chunk-XY7WXXME.js +85 -0
- package/dist/chunk-YOWY22N7.js +148 -0
- package/dist/chunk-Z5AASN4L.js +34 -0
- package/dist/components/admission-panel/KnockNotice.d.ts +31 -0
- package/dist/components/admission-panel/answer-all.d.ts +2 -0
- package/dist/components/call-limbo/CallLimbo.d.ts +5 -1
- package/dist/components/chalk/Chalk.d.ts +2 -5
- package/dist/components/chalk/StatusSurface.d.ts +3 -3
- package/dist/components/chalk-ui/ChalkSheet.d.ts +6 -2
- package/dist/components/chalk-ui/InviteLinkButton.d.ts +5 -0
- package/dist/components/chalk-ui/InviteQR.d.ts +4 -0
- package/dist/components/chalk-ui/InviteQrCode.d.ts +3 -0
- package/dist/components/chalk-ui/MenuIcon.d.ts +17 -0
- package/dist/components/chalk-ui/invite-qr-path.d.ts +10 -0
- package/dist/components/chalk-ui/sheet-drag.d.ts +17 -0
- package/dist/components/chalk-ui/useCopyText.d.ts +6 -0
- package/dist/components/chalk-ui/useSheetDrag.d.ts +11 -0
- package/dist/components/composite/ReactionSheet.d.ts +5 -0
- package/dist/components/connection-notice/ConnectionBars.d.ts +4 -0
- package/dist/components/connection-notice/ConnectionNotice.d.ts +12 -0
- package/dist/components/connection-notice/shown-notice.d.ts +12 -0
- package/dist/components/connection-status/ConnectionRing.d.ts +2 -0
- package/dist/components/connection-status/ConnectionStatus.d.ts +24 -0
- package/dist/components/connection-status/LiveConnectionStatus.d.ts +9 -0
- package/dist/components/connection-status/use-connection-phase.d.ts +23 -0
- package/dist/components/control-bar/DockLayout.d.ts +2 -1
- package/dist/components/control-bar/ShareControl.d.ts +3 -1
- package/dist/components/control-bar/ShellIcon.d.ts +18 -6
- package/dist/components/control-bar/control-bar-behavior.d.ts +19 -8
- package/dist/components/control-bar/control-bar-devices.d.ts +8 -0
- package/dist/components/control-bar/useDeviceSheets.d.ts +7 -0
- package/dist/components/device-access/DeviceAccessCard.d.ts +17 -0
- package/dist/components/device-access/DeviceAccessStyles.d.ts +1 -0
- package/dist/components/device-access/DeviceAccessWaiting.d.ts +4 -0
- package/dist/components/device-access/LazyDeviceAccessCard.d.ts +7 -0
- package/dist/components/device-access/browser-marks.d.ts +5 -0
- package/dist/components/device-access/card-copy.d.ts +17 -0
- package/dist/components/device-access/load-card.d.ts +2 -0
- package/dist/components/device-access/model.d.ts +29 -0
- package/dist/components/device-access/ports.d.ts +21 -0
- package/dist/components/device-access/resolve.d.ts +31 -0
- package/dist/components/device-access/store.d.ts +32 -0
- package/dist/components/device-access/useDeviceAccess.d.ts +7 -0
- package/dist/components/device-popover/CameraBackgroundPicker.d.ts +23 -0
- package/dist/components/device-popover/DevicePopover.d.ts +7 -1
- package/dist/components/device-popover/DevicePreview.d.ts +12 -0
- package/dist/components/device-popover/DeviceSheet.d.ts +26 -0
- package/dist/components/index.js +30 -15
- package/dist/components/participant-grid/ParticipantGrid.d.ts +9 -0
- package/dist/components/participant-tile/ParticipantTile.d.ts +12 -1
- package/dist/components/participant-tile/TileConnection.d.ts +9 -0
- package/dist/components/participant-tile/TileShell.d.ts +2 -1
- package/dist/components/participant-tile/useFrozenFrame.d.ts +12 -0
- package/dist/components/participant-tile/useVideoTileVisibility.d.ts +6 -0
- package/dist/components/participants-panel/ParticipantsPanel.d.ts +5 -0
- package/dist/components/participants-panel/participant-options-menu.d.ts +4 -1
- package/dist/components/participants-panel/participant-order.d.ts +13 -0
- package/dist/components/participants-panel/participant-row.d.ts +5 -1
- package/dist/components/participants-panel/participant-search.d.ts +4 -0
- package/dist/components/space-header/CallCharts.d.ts +22 -0
- package/dist/components/space-header/CallDetails.d.ts +5 -13
- package/dist/components/space-header/CallDialog.d.ts +5 -0
- package/dist/components/space-header/CallDialogContent.d.ts +13 -0
- package/dist/components/space-header/CallMenuStyles.d.ts +2 -0
- package/dist/components/space-header/RowIcon.d.ts +12 -0
- package/dist/components/space-header/call-diagnostics.d.ts +2 -1
- package/dist/components/space-header/call-network.d.ts +18 -0
- package/dist/components/space-header/space-header-contract.d.ts +8 -1
- package/dist/components/space-view/SpacePresentation.d.ts +3 -1
- package/dist/components/space-view/SpaceView.d.ts +3 -5
- package/dist/components/space-view/useBoardNotices.d.ts +7 -0
- package/dist/components/space-view/useMicrophoneNotice.d.ts +11 -0
- package/dist/components/toast-stack/ToastStack.d.ts +3 -1
- package/dist/components/toast-stack/call-events.d.ts +4 -2
- package/dist/index.d.ts +4 -0
- package/dist/index.js +298 -28
- package/dist/internal/call-width.d.ts +9 -0
- package/dist/internal/media-devices.d.ts +11 -0
- package/dist/internal/speaker-test.d.ts +2 -0
- package/dist/internal/useHandOrder.d.ts +2 -0
- package/dist/internal/useHeldWhile.d.ts +2 -0
- package/dist/internal/useInputLevel.d.ts +4 -0
- package/dist/internal/useLongPress.d.ts +15 -0
- package/dist/internal/useSeenConnected.d.ts +9 -0
- package/dist/internal/useSilentMicrophone.d.ts +4 -0
- package/dist/internal/useTrueFor.d.ts +4 -0
- package/dist/participant-options-menu-S3EL6K3M.js +330 -0
- package/dist/pre-join/remembered-devices.d.ts +12 -0
- package/dist/pre-join/usePreJoinDevices.d.ts +47 -0
- package/dist/public-surface.contract.d.ts +1 -1
- package/dist/test-support/index.d.ts +1 -1
- package/dist/test-support/index.js +41 -10
- package/dist/theme.d.ts +32 -32
- package/dist/toast.d.ts +1 -0
- package/dist/toast.js +7 -0
- package/dist/utils/formatClockTime.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +20 -12
- package/package.json +24 -11
- package/dist/components/call-limbo/qr-code.d.ts +0 -4
- package/dist/components/offline-actions/OfflineActions.d.ts +0 -9
- package/dist/components/participants-panel/index.d.ts +0 -2
- package/dist/components/reconnecting-overlay/ReconnectingOverlay.d.ts +0 -12
- package/dist/components/space-header/share-qr.d.ts +0 -2
- package/dist/components/space-view/countdown.d.ts +0 -5
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
formatClockTime
|
|
4
|
+
} from "../chunk-SZNV3J4B.js";
|
|
5
|
+
import {
|
|
6
|
+
PARTICIPANT_GRADIENT_PRESETS,
|
|
7
|
+
getParticipantAvatarGradient,
|
|
8
|
+
getParticipantAvatarRecipe,
|
|
9
|
+
getParticipantBorder,
|
|
10
|
+
getParticipantColor,
|
|
11
|
+
getParticipantGradient,
|
|
12
|
+
getParticipantInitial,
|
|
13
|
+
getParticipantInitials,
|
|
14
|
+
getParticipantThemeVariables
|
|
15
|
+
} from "../chunk-JDCFKSGV.js";
|
|
2
16
|
import {
|
|
3
17
|
Alert02Icon,
|
|
4
18
|
ArrowDown01Icon,
|
|
@@ -33,7 +47,6 @@ import {
|
|
|
33
47
|
MonitorOffIcon,
|
|
34
48
|
Moon02Icon,
|
|
35
49
|
MoreVerticalIcon,
|
|
36
|
-
PARTICIPANT_GRADIENT_PRESETS,
|
|
37
50
|
PauseIcon,
|
|
38
51
|
Pin01Icon,
|
|
39
52
|
PlayIcon,
|
|
@@ -61,17 +74,11 @@ import {
|
|
|
61
74
|
VideoOffIcon,
|
|
62
75
|
VolumeHighIcon,
|
|
63
76
|
VolumeMute01Icon,
|
|
64
|
-
WifiOffIcon
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
getParticipantColor,
|
|
70
|
-
getParticipantGradient,
|
|
71
|
-
getParticipantInitial,
|
|
72
|
-
getParticipantInitials,
|
|
73
|
-
getParticipantThemeVariables
|
|
74
|
-
} from "../chunk-4U7QZC72.js";
|
|
77
|
+
WifiOffIcon
|
|
78
|
+
} from "../chunk-TSBY6C5U.js";
|
|
79
|
+
import {
|
|
80
|
+
cn
|
|
81
|
+
} from "../chunk-ADIDI7AJ.js";
|
|
75
82
|
|
|
76
83
|
// src/utils/theme.ts
|
|
77
84
|
var THEME_ATTRIBUTE_NAMES = ["data-chalk-theme", "data-theme"];
|
|
@@ -240,6 +247,7 @@ export {
|
|
|
240
247
|
WifiOffIcon,
|
|
241
248
|
applyThemeToDocument,
|
|
242
249
|
cn,
|
|
250
|
+
formatClockTime,
|
|
243
251
|
getParticipantAvatarGradient,
|
|
244
252
|
getParticipantAvatarRecipe,
|
|
245
253
|
getParticipantBorder,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@q9labsai/chalk-react",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,6 +28,12 @@
|
|
|
28
28
|
"utils": [
|
|
29
29
|
"./dist/utils/index.d.ts"
|
|
30
30
|
],
|
|
31
|
+
"toast": [
|
|
32
|
+
"./dist/toast.d.ts"
|
|
33
|
+
],
|
|
34
|
+
"headless": [
|
|
35
|
+
"./dist/headless.d.ts"
|
|
36
|
+
],
|
|
31
37
|
"*": [
|
|
32
38
|
"./dist/index.d.ts"
|
|
33
39
|
],
|
|
@@ -56,6 +62,11 @@
|
|
|
56
62
|
"types": "./dist/utils/index.d.ts",
|
|
57
63
|
"import": "./dist/utils/index.js"
|
|
58
64
|
},
|
|
65
|
+
"./toast": {
|
|
66
|
+
"types": "./dist/toast.d.ts",
|
|
67
|
+
"import": "./dist/toast.js",
|
|
68
|
+
"default": "./dist/toast.js"
|
|
69
|
+
},
|
|
59
70
|
"./headless": {
|
|
60
71
|
"types": "./dist/headless.d.ts",
|
|
61
72
|
"import": "./dist/headless.js",
|
|
@@ -75,19 +86,21 @@
|
|
|
75
86
|
"@base-ui/react": "^1.7.0",
|
|
76
87
|
"@hugeicons/core-free-icons": "^4.2.3",
|
|
77
88
|
"@hugeicons/react": "^1.1.9",
|
|
78
|
-
"@q9labsai/chalk-client": "^5.
|
|
79
|
-
"@q9labsai/chalk-ui": "^5.
|
|
80
|
-
"@q9labsai/chalk-whiteboard": "^5.
|
|
81
|
-
"@q9labsai/facehash": "^5.
|
|
89
|
+
"@q9labsai/chalk-client": "^5.5.0",
|
|
90
|
+
"@q9labsai/chalk-ui": "^5.5.0",
|
|
91
|
+
"@q9labsai/chalk-whiteboard": "^5.5.0",
|
|
92
|
+
"@q9labsai/facehash": "^5.5.0",
|
|
82
93
|
"@q9labsai/recording-presentation": "^0.1.1",
|
|
83
94
|
"class-variance-authority": "^0.7.1",
|
|
84
95
|
"clsx": "^2.1.1",
|
|
85
|
-
"tailwind-merge": "^3.6.0"
|
|
96
|
+
"tailwind-merge": "^3.6.0",
|
|
97
|
+
"uqr": "^0.1.3"
|
|
86
98
|
},
|
|
87
99
|
"devDependencies": {
|
|
88
100
|
"@types/node": "^26.2.0",
|
|
89
101
|
"@types/react": "^19.2.18",
|
|
90
102
|
"@types/react-dom": "^19.2.4",
|
|
103
|
+
"jsdom": "^29.1.1",
|
|
91
104
|
"react": "19.2.7",
|
|
92
105
|
"react-dom": "19.2.7",
|
|
93
106
|
"typescript": "^7.0.2"
|
|
@@ -100,13 +113,13 @@
|
|
|
100
113
|
"peerDependenciesMeta": {},
|
|
101
114
|
"scripts": {
|
|
102
115
|
"test": "node ../../../scripts/test/run.mjs pnpm exec vitest run",
|
|
103
|
-
"build": "rm
|
|
104
|
-
"build:fix-use-client": "node -e \"const fs=require('fs');const files=['./dist/index.js','./dist/components/index.js','./dist/components/ui/index.js','./dist/utils/index.js','./dist/test-support/index.js'];for(const f of files){if(!fs.existsSync(f))continue;let c=fs.readFileSync(f,'utf8');c=c.replace(/['\\\"]use client['\\\"];?\\n?/g,'');c='\\\"use client\\\";\\n'+c;fs.writeFileSync(f,c);}\"",
|
|
105
|
-
"build:types": "rm
|
|
106
|
-
"dev": "tsup ./src/index.ts ./src/components/index.ts ./src/components/ui/index.ts ./src/utils/index.ts ./src/headless.ts ./src/test-support/index.ts --format esm --out-dir ./dist --platform browser --external react --external react-dom --external @base-ui/react --external @hugeicons/core-free-icons --external @hugeicons/react --external @q9labsai/chalk-client --external @q9labsai/recording-presentation --external @q9labsai/chalk-ui --external @q9labsai/chalk-ui/reactions --external @q9labsai/chalk-ui/assets --external @q9labsai/chalk-whiteboard --external @q9labsai/facehash --external @q9labsai/facehash/react --external class-variance-authority --external clsx --external tailwind-merge --watch",
|
|
116
|
+
"build": "node ../../../scripts/fs.mjs rm ./dist && node ../../../scripts/with-env.mjs NODE_ENV=production -- tsup ./src/index.ts ./src/components/index.ts ./src/components/ui/index.ts ./src/utils/index.ts ./src/headless.ts ./src/toast.ts ./src/test-support/index.ts --format esm --out-dir ./dist --platform browser --external react --external react-dom --external @base-ui/react --external @hugeicons/core-free-icons --external @hugeicons/react --external @q9labsai/chalk-client --external @q9labsai/recording-presentation --external @q9labsai/chalk-ui --external @q9labsai/chalk-ui/reactions --external @q9labsai/chalk-ui/assets --external @q9labsai/chalk-whiteboard --external @q9labsai/facehash --external @q9labsai/facehash/react --external class-variance-authority --external clsx --external tailwind-merge && pnpm run build:fix-use-client && pnpm run build:types",
|
|
117
|
+
"build:fix-use-client": "node -e \"const fs=require('fs');const files=['./dist/index.js','./dist/components/index.js','./dist/components/ui/index.js','./dist/utils/index.js','./dist/toast.js','./dist/test-support/index.js'];for(const f of files){if(!fs.existsSync(f))continue;let c=fs.readFileSync(f,'utf8');c=c.replace(/['\\\"]use client['\\\"];?\\n?/g,'');c='\\\"use client\\\";\\n'+c;fs.writeFileSync(f,c);}\"",
|
|
118
|
+
"build:types": "node ../../../scripts/fs.mjs rm tsconfig.tsbuildinfo && tsc --build tsconfig.json",
|
|
119
|
+
"dev": "tsup ./src/index.ts ./src/components/index.ts ./src/components/ui/index.ts ./src/utils/index.ts ./src/headless.ts ./src/toast.ts ./src/test-support/index.ts --format esm --out-dir ./dist --platform browser --external react --external react-dom --external @base-ui/react --external @hugeicons/core-free-icons --external @hugeicons/react --external @q9labsai/chalk-client --external @q9labsai/recording-presentation --external @q9labsai/chalk-ui --external @q9labsai/chalk-ui/reactions --external @q9labsai/chalk-ui/assets --external @q9labsai/chalk-whiteboard --external @q9labsai/facehash --external @q9labsai/facehash/react --external class-variance-authority --external clsx --external tailwind-merge --watch",
|
|
107
120
|
"check-types": "tsc-rs --project tsconfig.check-types.json --noEmit",
|
|
108
121
|
"lint": "pnpm run check:tokens && pnpm exec oxfmt --check . && tsc --project tsconfig.check-types.json --noEmit",
|
|
109
122
|
"check:tokens": "node ./scripts/check-token-reach.mjs",
|
|
110
|
-
"clean": "rm
|
|
123
|
+
"clean": "node ../../../scripts/fs.mjs rm dist"
|
|
111
124
|
}
|
|
112
125
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
/** Most drops recover within a second or two, so the notice waits this long before it appears. */
|
|
3
|
-
export declare const RECONNECTING_GRACE_MS = 2000;
|
|
4
|
-
export declare function offlineNoticeText(pendingCount: number, online: boolean): string;
|
|
5
|
-
/** Keep queued actions automatic while preserving the reconnecting notice. */
|
|
6
|
-
export declare function OfflineActions({ reconnecting: requestedReconnecting, hasNotice }?: {
|
|
7
|
-
readonly reconnecting?: boolean;
|
|
8
|
-
readonly hasNotice?: boolean;
|
|
9
|
-
}): React.JSX.Element | null;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const RECONNECTING_NOTICE_MS = 2000;
|
|
2
|
-
export interface ReconnectingOverlayProps {
|
|
3
|
-
isVisible: boolean;
|
|
4
|
-
status: "connecting" | "reconnecting" | "failed";
|
|
5
|
-
onRetry?: () => void;
|
|
6
|
-
onLeft?: () => void;
|
|
7
|
-
message?: string;
|
|
8
|
-
supportCode?: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
showNotice?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const ReconnectingOverlay: import("react").MemoExoticComponent<({ isVisible, status, onRetry, onLeft, message, showNotice }: ReconnectingOverlayProps) => import("react").JSX.Element | null>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** The latest warning only: joining late or resuming a hidden tab never queues old warnings. */
|
|
2
|
-
export declare function callCountdown(deadline: string | null | undefined, now: number, previousSeconds?: number | null): {
|
|
3
|
-
seconds: number | null;
|
|
4
|
-
warning: 10 | 5 | 1 | null;
|
|
5
|
-
};
|