@q9labsai/chalk-react 5.0.1 → 5.2.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/CHANGELOG.md +186 -0
- package/dist/bindings/context.d.ts +0 -1
- package/dist/bindings/hooks.d.ts +2 -1
- package/dist/{chunk-NPOO7BOX.js → chunk-CYC2G42K.js} +68 -59
- package/dist/{chunk-XN2E352E.js → chunk-G62BKRNX.js} +2999 -774
- package/dist/{chunk-WRAEH24P.js → chunk-HWQLW4JR.js} +56 -6
- package/dist/components/admission-panel/AdmissionPanel.d.ts +0 -1
- package/dist/components/atomic/AudioIndicator.d.ts +0 -1
- package/dist/components/atomic/Avatar.d.ts +0 -1
- package/dist/components/atomic/HandRaiseIndicator.d.ts +0 -1
- package/dist/components/atomic/NameTag.d.ts +0 -1
- package/dist/components/atomic/ReactionBubble.d.ts +0 -1
- package/dist/components/atomic/StatusBadge.d.ts +0 -1
- package/dist/components/atomic/VolumeSlider.d.ts +0 -1
- package/dist/components/atomic/Waveform.d.ts +0 -1
- package/dist/components/atomic/index.d.ts +0 -1
- package/dist/components/audio-output/AudioOutput.d.ts +0 -1
- package/dist/components/board/Board.d.ts +22 -0
- package/dist/components/board/BoardCursors.d.ts +21 -0
- package/dist/components/board/BoardIcon.d.ts +46 -0
- package/dist/components/board/BoardIsland.d.ts +21 -0
- package/dist/components/board/BoardMenu.d.ts +18 -0
- package/dist/components/board/BoardStyles.d.ts +2 -0
- package/dist/components/board/board-draw-policy.d.ts +15 -0
- package/dist/components/board/board-engine.d.ts +31 -0
- package/dist/components/board/board-history.d.ts +7 -0
- package/dist/components/board/board-model.d.ts +90 -0
- package/dist/components/board/board-toasts.d.ts +6 -0
- package/dist/components/board/board-view-versions.d.ts +1 -0
- package/dist/components/call-card/CallCard.d.ts +0 -1
- package/dist/components/call-card/CallCardStyles.d.ts +0 -1
- package/dist/components/call-limbo/CallLimbo.d.ts +3 -2
- package/dist/components/call-limbo/CallReady.d.ts +0 -1
- package/dist/components/call-limbo/qr-code.d.ts +0 -1
- package/dist/components/call-limbo/useCallLink.d.ts +0 -1
- package/dist/components/chalk/Chalk.d.ts +4 -1
- package/dist/components/chalk/ReportProblemDialog.d.ts +12 -0
- package/dist/components/chalk/StatusSurface.d.ts +4 -2
- package/dist/components/chalk-ui/ChalkAlert.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkBackdrop.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkBadge.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkButton.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkCopyButton.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkDialogPanel.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkDivider.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkEmptyState.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkIconButton.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkInput.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkMenu.d.ts +2 -2
- package/dist/components/chalk-ui/ChalkPanel.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkPopover.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkSegmentedControl.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkSheet.d.ts +1 -2
- package/dist/components/chalk-ui/ChalkSpinner.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkTextarea.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkToast.d.ts +7 -2
- package/dist/components/chalk-ui/ChalkToggle.d.ts +0 -1
- package/dist/components/chalk-ui/ChalkTooltip.d.ts +0 -1
- package/dist/components/chalk-ui/common.d.ts +0 -1
- package/dist/components/chalk-ui/index.d.ts +0 -1
- package/dist/components/composite/ChatPanel.d.ts +0 -1
- package/dist/components/composite/CommandErrorAlert.d.ts +0 -1
- package/dist/components/composite/MessageBubble.d.ts +0 -1
- package/dist/components/composite/ReactionPicker.d.ts +0 -1
- package/dist/components/composite/ReactionTray.d.ts +0 -1
- package/dist/components/composite/ReactionsOverlay.d.ts +0 -1
- package/dist/components/composite/ScreenShareView.d.ts +0 -1
- package/dist/components/composite/chat-file-upload.d.ts +0 -1
- package/dist/components/composite/chat-panel-model.d.ts +0 -1
- package/dist/components/composite/chat-types.d.ts +0 -1
- package/dist/components/composite/chat-upload-file.d.ts +0 -1
- package/dist/components/composite/reaction-float.d.ts +0 -1
- package/dist/components/composite/use-chat-attachment-previews.d.ts +0 -1
- package/dist/components/control-bar/CallLinkIcon.d.ts +0 -1
- package/dist/components/control-bar/ControlBar.d.ts +0 -1
- package/dist/components/control-bar/DockLayout.d.ts +0 -1
- package/dist/components/control-bar/LeaveMenu.d.ts +0 -1
- package/dist/components/control-bar/ShareControl.d.ts +3 -2
- package/dist/components/control-bar/ShellIcon.d.ts +0 -1
- package/dist/components/control-bar/ShellStyles.d.ts +0 -1
- package/dist/components/control-bar/command-failure.d.ts +105 -2
- package/dist/components/control-bar/control-bar-behavior.d.ts +9 -3
- package/dist/components/control-bar/control-bar-button.d.ts +0 -1
- package/dist/components/control-bar/next-camera.d.ts +0 -1
- package/dist/components/device-popover/DevicePopover.d.ts +4 -2
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +3 -3
- package/dist/components/lazy.d.ts +0 -1
- package/dist/components/logo/Logo.d.ts +0 -1
- package/dist/components/media-request-dialog/MediaRequestDialog.d.ts +0 -1
- package/dist/components/media-request-dialog/media-request-dialog-state.d.ts +0 -1
- package/dist/components/offline-actions/OfflineActions.d.ts +2 -2
- package/dist/components/participant-grid/ParticipantGrid.d.ts +0 -1
- package/dist/components/participant-tile/ParticipantTile.d.ts +4 -2
- package/dist/components/participant-tile/TileShell.d.ts +3 -2
- package/dist/components/participant-tile/useVideoTrack.d.ts +0 -1
- package/dist/components/participants-panel/ParticipantsPanel.d.ts +0 -1
- package/dist/components/participants-panel/index.d.ts +0 -1
- package/dist/components/participants-panel/participant-options-menu-contract.d.ts +0 -1
- package/dist/components/participants-panel/participant-options-menu.d.ts +0 -1
- package/dist/components/participants-panel/participant-row.d.ts +0 -1
- package/dist/components/participants-panel/participant-volume-context.d.ts +0 -1
- package/dist/components/reconnecting-overlay/ReconnectingOverlay.d.ts +0 -1
- package/dist/components/recording-history/RecordingHistoryPanel.d.ts +0 -1
- package/dist/components/space-header/CallDetails.d.ts +6 -4
- package/dist/components/space-header/LayoutMenu.d.ts +0 -1
- package/dist/components/space-header/SpaceHeader.d.ts +0 -1
- package/dist/components/space-header/call-diagnostics.d.ts +0 -1
- package/dist/components/space-header/share-qr.d.ts +0 -1
- package/dist/components/space-header/space-header-contract.d.ts +5 -1
- package/dist/components/space-header/useCallShortcuts.d.ts +0 -1
- package/dist/components/space-view/RecordingSpaceView.d.ts +0 -1
- package/dist/components/space-view/SpacePresentation.d.ts +0 -1
- package/dist/components/space-view/SpaceView.d.ts +10 -3
- package/dist/components/space-view/useDrawerPresence.d.ts +0 -1
- package/dist/components/stage/SpaceStage.d.ts +3 -2
- package/dist/components/stage/Stage.d.ts +6 -3
- package/dist/components/stage/StageContentTile.d.ts +0 -1
- package/dist/components/stage/StageIcon.d.ts +0 -1
- package/dist/components/stage/StageMotion.d.ts +0 -1
- package/dist/components/stage/stage-items.d.ts +4 -1
- package/dist/components/stage/stage-layout.d.ts +7 -2
- package/dist/components/stage/useStageDimensions.d.ts +0 -1
- package/dist/components/toast-stack/CallEventIcon.d.ts +1 -2
- package/dist/components/toast-stack/NoticeButton.d.ts +7 -0
- package/dist/components/toast-stack/ToastStack.d.ts +13 -3
- package/dist/components/toast-stack/call-events.d.ts +2 -2
- package/dist/components/toast-stack/notice-announcement.d.ts +4 -0
- package/dist/components/toast-stack/toast-layout-snapshot.d.ts +4 -0
- package/dist/components/toast-stack/useCallToasts.d.ts +0 -1
- package/dist/components/toast-stack/useToastCapacity.d.ts +7 -0
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/whiteboard-view/RecordingWhiteboardView.d.ts +0 -1
- package/dist/components/whiteboard-view/WhiteboardView.d.ts +0 -1
- package/dist/components/whiteboard-view/recording-whiteboard-state.d.ts +0 -1
- package/dist/headless.d.ts +0 -1
- package/dist/headless.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -3
- package/dist/internal/call-motion.d.ts +0 -1
- package/dist/internal/sound-cues.d.ts +0 -1
- package/dist/internal/useEpisodeDuration.d.ts +0 -1
- package/dist/internal/useHaptics.d.ts +0 -1
- package/dist/internal/useMediaQuery.d.ts +0 -1
- package/dist/internal/useMirrorSetting.d.ts +0 -1
- package/dist/internal/useSoundCues.d.ts +0 -1
- package/dist/internal/useSoundsSetting.d.ts +0 -1
- package/dist/internal/useWhiteboardSceneSubscription.d.ts +0 -1
- package/dist/internal/whiteboard-view-limits.d.ts +1 -0
- package/dist/public-surface.contract.d.ts +1 -2
- package/dist/selectors/space-selectors.d.ts +0 -1
- package/dist/test-support/index.d.ts +0 -1
- package/dist/test-support/index.js +26 -4
- package/dist/test-support/preview-client.d.ts +0 -1
- package/dist/test-support/preview-devices.d.ts +0 -1
- package/dist/test-support/preview-fixtures.d.ts +0 -1
- package/dist/theme.d.ts +0 -1
- package/dist/utils/cn.d.ts +0 -1
- package/dist/utils/colorGenerator.d.ts +0 -1
- package/dist/utils/icons.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/theme.d.ts +0 -1
- package/dist/whiteboard/wire-adapters.d.ts +0 -1
- package/package.json +6 -5
- package/dist/bindings/context.d.ts.map +0 -1
- package/dist/bindings/hooks.d.ts.map +0 -1
- package/dist/components/admission-panel/AdmissionPanel.d.ts.map +0 -1
- package/dist/components/atomic/AudioIndicator.d.ts.map +0 -1
- package/dist/components/atomic/Avatar.d.ts.map +0 -1
- package/dist/components/atomic/HandRaiseIndicator.d.ts.map +0 -1
- package/dist/components/atomic/NameTag.d.ts.map +0 -1
- package/dist/components/atomic/ReactionBubble.d.ts.map +0 -1
- package/dist/components/atomic/StatusBadge.d.ts.map +0 -1
- package/dist/components/atomic/VolumeSlider.d.ts.map +0 -1
- package/dist/components/atomic/Waveform.d.ts.map +0 -1
- package/dist/components/atomic/index.d.ts.map +0 -1
- package/dist/components/audio-output/AudioOutput.d.ts.map +0 -1
- package/dist/components/call-card/CallCard.d.ts.map +0 -1
- package/dist/components/call-card/CallCardStyles.d.ts.map +0 -1
- package/dist/components/call-limbo/CallLimbo.d.ts.map +0 -1
- package/dist/components/call-limbo/CallReady.d.ts.map +0 -1
- package/dist/components/call-limbo/qr-code.d.ts.map +0 -1
- package/dist/components/call-limbo/useCallLink.d.ts.map +0 -1
- package/dist/components/chalk/Chalk.d.ts.map +0 -1
- package/dist/components/chalk/StatusSurface.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkAlert.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkBackdrop.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkBadge.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkButton.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkCopyButton.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkDialogPanel.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkDivider.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkEmptyState.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkIconButton.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkInput.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkMenu.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkPanel.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkPopover.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkSegmentedControl.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkSheet.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkSpinner.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkTextarea.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkToast.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkToggle.d.ts.map +0 -1
- package/dist/components/chalk-ui/ChalkTooltip.d.ts.map +0 -1
- package/dist/components/chalk-ui/common.d.ts.map +0 -1
- package/dist/components/chalk-ui/index.d.ts.map +0 -1
- package/dist/components/composite/ChatPanel.d.ts.map +0 -1
- package/dist/components/composite/CommandErrorAlert.d.ts.map +0 -1
- package/dist/components/composite/MessageBubble.d.ts.map +0 -1
- package/dist/components/composite/ReactionPicker.d.ts.map +0 -1
- package/dist/components/composite/ReactionTray.d.ts.map +0 -1
- package/dist/components/composite/ReactionsOverlay.d.ts.map +0 -1
- package/dist/components/composite/ScreenShareView.d.ts.map +0 -1
- package/dist/components/composite/chat-file-upload.d.ts.map +0 -1
- package/dist/components/composite/chat-panel-model.d.ts.map +0 -1
- package/dist/components/composite/chat-types.d.ts.map +0 -1
- package/dist/components/composite/chat-upload-file.d.ts.map +0 -1
- package/dist/components/composite/reaction-float.d.ts.map +0 -1
- package/dist/components/composite/use-chat-attachment-previews.d.ts.map +0 -1
- package/dist/components/control-bar/CallLinkIcon.d.ts.map +0 -1
- package/dist/components/control-bar/ControlBar.d.ts.map +0 -1
- package/dist/components/control-bar/DockLayout.d.ts.map +0 -1
- package/dist/components/control-bar/LeaveMenu.d.ts.map +0 -1
- package/dist/components/control-bar/ShareControl.d.ts.map +0 -1
- package/dist/components/control-bar/ShellIcon.d.ts.map +0 -1
- package/dist/components/control-bar/ShellStyles.d.ts.map +0 -1
- package/dist/components/control-bar/command-failure.d.ts.map +0 -1
- package/dist/components/control-bar/control-bar-behavior.d.ts.map +0 -1
- package/dist/components/control-bar/control-bar-button.d.ts.map +0 -1
- package/dist/components/control-bar/next-camera.d.ts.map +0 -1
- package/dist/components/device-popover/DevicePopover.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/lazy.d.ts.map +0 -1
- package/dist/components/logo/Logo.d.ts.map +0 -1
- package/dist/components/media-request-dialog/MediaRequestDialog.d.ts.map +0 -1
- package/dist/components/media-request-dialog/media-request-dialog-state.d.ts.map +0 -1
- package/dist/components/offline-actions/OfflineActions.d.ts.map +0 -1
- package/dist/components/participant-grid/ParticipantGrid.d.ts.map +0 -1
- package/dist/components/participant-tile/ParticipantTile.d.ts.map +0 -1
- package/dist/components/participant-tile/TileShell.d.ts.map +0 -1
- package/dist/components/participant-tile/useVideoTrack.d.ts.map +0 -1
- package/dist/components/participants-panel/ParticipantsPanel.d.ts.map +0 -1
- package/dist/components/participants-panel/index.d.ts.map +0 -1
- package/dist/components/participants-panel/participant-options-menu-contract.d.ts.map +0 -1
- package/dist/components/participants-panel/participant-options-menu.d.ts.map +0 -1
- package/dist/components/participants-panel/participant-row.d.ts.map +0 -1
- package/dist/components/participants-panel/participant-volume-context.d.ts.map +0 -1
- package/dist/components/reconnecting-overlay/ReconnectingOverlay.d.ts.map +0 -1
- package/dist/components/recording-history/RecordingHistoryPanel.d.ts.map +0 -1
- package/dist/components/space-header/CallDetails.d.ts.map +0 -1
- package/dist/components/space-header/LayoutMenu.d.ts.map +0 -1
- package/dist/components/space-header/SpaceHeader.d.ts.map +0 -1
- package/dist/components/space-header/call-diagnostics.d.ts.map +0 -1
- package/dist/components/space-header/share-qr.d.ts.map +0 -1
- package/dist/components/space-header/space-header-contract.d.ts.map +0 -1
- package/dist/components/space-header/useCallShortcuts.d.ts.map +0 -1
- package/dist/components/space-view/RecordingSpaceView.d.ts.map +0 -1
- package/dist/components/space-view/SpacePresentation.d.ts.map +0 -1
- package/dist/components/space-view/SpaceView.d.ts.map +0 -1
- package/dist/components/space-view/useDrawerPresence.d.ts.map +0 -1
- package/dist/components/stage/SpaceStage.d.ts.map +0 -1
- package/dist/components/stage/Stage.d.ts.map +0 -1
- package/dist/components/stage/StageContentTile.d.ts.map +0 -1
- package/dist/components/stage/StageIcon.d.ts.map +0 -1
- package/dist/components/stage/StageMotion.d.ts.map +0 -1
- package/dist/components/stage/stage-items.d.ts.map +0 -1
- package/dist/components/stage/stage-layout.d.ts.map +0 -1
- package/dist/components/stage/useStageDimensions.d.ts.map +0 -1
- package/dist/components/toast-stack/CallEventIcon.d.ts.map +0 -1
- package/dist/components/toast-stack/ToastStack.d.ts.map +0 -1
- package/dist/components/toast-stack/call-events.d.ts.map +0 -1
- package/dist/components/toast-stack/useCallToasts.d.ts.map +0 -1
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/components/whiteboard-view/RecordingWhiteboardView.d.ts.map +0 -1
- package/dist/components/whiteboard-view/WhiteboardView.d.ts.map +0 -1
- package/dist/components/whiteboard-view/recording-whiteboard-state.d.ts.map +0 -1
- package/dist/headless.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/internal/call-motion.d.ts.map +0 -1
- package/dist/internal/sound-cues.d.ts.map +0 -1
- package/dist/internal/useEpisodeDuration.d.ts.map +0 -1
- package/dist/internal/useHaptics.d.ts.map +0 -1
- package/dist/internal/useMediaQuery.d.ts.map +0 -1
- package/dist/internal/useMirrorSetting.d.ts.map +0 -1
- package/dist/internal/useSoundCues.d.ts.map +0 -1
- package/dist/internal/useSoundsSetting.d.ts.map +0 -1
- package/dist/internal/useWhiteboardSceneSubscription.d.ts.map +0 -1
- package/dist/public-surface.contract.d.ts.map +0 -1
- package/dist/selectors/space-selectors.d.ts.map +0 -1
- package/dist/test-support/index.d.ts.map +0 -1
- package/dist/test-support/preview-client.d.ts.map +0 -1
- package/dist/test-support/preview-devices.d.ts.map +0 -1
- package/dist/test-support/preview-fixtures.d.ts.map +0 -1
- package/dist/theme.d.ts.map +0 -1
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/colorGenerator.d.ts.map +0 -1
- package/dist/utils/icons.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/theme.d.ts.map +0 -1
- package/dist/whiteboard/wire-adapters.d.ts.map +0 -1
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
2
|
import type { SpaceHeaderProps } from "./space-header-contract";
|
|
3
3
|
export declare const CALL_SHORTCUTS: readonly [readonly ["Mute or unmute", "⌘ D"], readonly ["Turn camera on or off", "⌘ E"], readonly ["Raise or lower hand", "⌃ ⌘ H"], readonly ["Open or close chat", "⌃ ⌘ C"], readonly ["Open or close people", "⌃ ⌘ P"], readonly ["Switch layout", "⌃ ⌘ L"], readonly ["Talk while muted", "Hold Space"], readonly ["Show shortcuts", "?"], readonly ["Close a menu or panel", "Esc"]];
|
|
4
|
-
export declare function CallDialog({ kind, onClose, onReportProblem, diagnostics, returnFocus, }: {
|
|
5
|
-
readonly kind: "shortcuts" | "report"
|
|
4
|
+
export declare function CallDialog({ kind, open, onClose, onReportProblem, diagnostics, returnFocus, focusScope, unavailableReason, }: {
|
|
5
|
+
readonly kind: "shortcuts" | "report";
|
|
6
|
+
readonly open: boolean;
|
|
6
7
|
readonly onClose: () => void;
|
|
7
8
|
readonly onReportProblem?: SpaceHeaderProps["onReportProblem"];
|
|
8
9
|
readonly diagnostics: string;
|
|
9
|
-
readonly returnFocus
|
|
10
|
+
readonly returnFocus?: RefObject<HTMLButtonElement | null>;
|
|
11
|
+
readonly focusScope: RefObject<HTMLElement | null>;
|
|
12
|
+
readonly unavailableReason?: string;
|
|
10
13
|
}): import("react").JSX.Element;
|
|
11
14
|
export declare function CallDetails({ shareUrl, spaceName, onClose, diagnostics, colorScheme, onColorSchemeChange, sounds, onSoundsChange, onDialog, onReportProblem, }: Pick<SpaceHeaderProps, "spaceName" | "shareUrl" | "diagnostics" | "colorScheme" | "onColorSchemeChange" | "onReportProblem"> & {
|
|
12
15
|
readonly onClose: () => void;
|
|
@@ -14,4 +17,3 @@ export declare function CallDetails({ shareUrl, spaceName, onClose, diagnostics,
|
|
|
14
17
|
readonly onSoundsChange: (enabled: boolean) => void;
|
|
15
18
|
readonly onDialog: (kind: "shortcuts" | "report") => void;
|
|
16
19
|
}): import("react").JSX.Element;
|
|
17
|
-
//# sourceMappingURL=CallDetails.d.ts.map
|
|
@@ -2,4 +2,3 @@ import React from "react";
|
|
|
2
2
|
import { type SpaceHeaderProps } from "./space-header-contract";
|
|
3
3
|
export { formatDuration, type SpaceHeaderProps } from "./space-header-contract";
|
|
4
4
|
export declare const SpaceHeader: React.NamedExoticComponent<SpaceHeaderProps>;
|
|
5
|
-
//# sourceMappingURL=SpaceHeader.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
1
2
|
export interface SpaceHeaderProps {
|
|
2
3
|
spaceName: string;
|
|
3
4
|
people?: readonly {
|
|
@@ -18,6 +19,8 @@ export interface SpaceHeaderProps {
|
|
|
18
19
|
readonly description: string;
|
|
19
20
|
readonly diagnostics?: string;
|
|
20
21
|
}) => void | Promise<void>;
|
|
22
|
+
reportUnavailableReason?: string;
|
|
23
|
+
onOpenReportProblem?: () => void;
|
|
21
24
|
shortcuts?: {
|
|
22
25
|
readonly isMuted?: boolean;
|
|
23
26
|
readonly onToggleMute?: () => void;
|
|
@@ -36,7 +39,8 @@ export interface SpaceHeaderProps {
|
|
|
36
39
|
isTranscribing?: boolean;
|
|
37
40
|
layout?: "grid" | "focus";
|
|
38
41
|
onLayoutChange?: (layout: "grid" | "focus") => void;
|
|
42
|
+
/** A control for notices that have no room on the stage, placed at the header's end, before the people button. */
|
|
43
|
+
notices?: ReactNode;
|
|
39
44
|
className?: string;
|
|
40
45
|
}
|
|
41
46
|
export declare function formatDuration(seconds: number): string;
|
|
42
|
-
//# sourceMappingURL=space-header-contract.d.ts.map
|
|
@@ -22,4 +22,3 @@ export interface SpacePresentationProps {
|
|
|
22
22
|
* Recording projection. Networking, device effects and commands stay in callers.
|
|
23
23
|
*/
|
|
24
24
|
export declare function SpacePresentation({ colorScheme, stageBackground, header, stage, controls, compactControls, stageOverlay, sidebar, mediaOutput, toasts, overlays, dialogs, renderToken, interactive, className }: SpacePresentationProps): React.JSX.Element;
|
|
25
|
-
//# sourceMappingURL=SpacePresentation.d.ts.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { type MediaCommandSource, type MediaCommandAction } from "../control-bar/command-failure";
|
|
2
|
+
import { type ChalkWhiteboardView, type ClientFailure } from "@q9labsai/chalk-client";
|
|
1
3
|
import React from "react";
|
|
2
4
|
import type { ChatUploadFile } from "@q9labsai/chalk-client";
|
|
3
5
|
import { type ReconnectingOverlayProps } from "../reconnecting-overlay/ReconnectingOverlay";
|
|
@@ -18,6 +20,8 @@ export interface SpaceViewFeatures {
|
|
|
18
20
|
export interface SpaceViewWhiteboard {
|
|
19
21
|
readonly isOpen: boolean;
|
|
20
22
|
readonly props: WhiteboardViewProps;
|
|
23
|
+
/** Shares this person's board view so others can follow it; answers false when the board service can't. */
|
|
24
|
+
readonly sendView?: (view: ChalkWhiteboardView) => boolean;
|
|
21
25
|
}
|
|
22
26
|
export interface SpaceViewProps {
|
|
23
27
|
readonly colorScheme?: "light" | "dark";
|
|
@@ -27,6 +31,8 @@ export interface SpaceViewProps {
|
|
|
27
31
|
readonly callLinkOpen?: boolean;
|
|
28
32
|
readonly onCallLinkToggle?: () => void;
|
|
29
33
|
readonly onReportProblem?: import("../space-header/SpaceHeader").SpaceHeaderProps["onReportProblem"];
|
|
34
|
+
readonly reportUnavailableReason?: string;
|
|
35
|
+
readonly onOpenReportProblem?: () => void;
|
|
30
36
|
readonly inviteLink?: string;
|
|
31
37
|
readonly pickChatFiles?: () => Promise<readonly ChatUploadFile[]>;
|
|
32
38
|
readonly stageBackground?: boolean;
|
|
@@ -36,7 +42,9 @@ export interface SpaceViewProps {
|
|
|
36
42
|
readonly initialPanel?: SpacePanel | null;
|
|
37
43
|
readonly features?: SpaceViewFeatures;
|
|
38
44
|
readonly generatedAvatars?: boolean;
|
|
39
|
-
readonly commandError?: string;
|
|
45
|
+
readonly commandError?: string | ClientFailure;
|
|
46
|
+
readonly commandSource?: MediaCommandSource;
|
|
47
|
+
readonly commandAction?: MediaCommandAction;
|
|
40
48
|
readonly onDismissCommandError?: () => void;
|
|
41
49
|
readonly onToggleWhiteboard?: () => void;
|
|
42
50
|
readonly whiteboard?: SpaceViewWhiteboard;
|
|
@@ -48,5 +56,4 @@ export interface SpaceViewProps {
|
|
|
48
56
|
readonly onEndEpisode?: () => void | Promise<void>;
|
|
49
57
|
readonly className?: string;
|
|
50
58
|
}
|
|
51
|
-
export declare function SpaceView({ colorScheme, onColorSchemeChange, spaceName, shareUrl, callLinkOpen, onCallLinkToggle, onReportProblem, inviteLink, pickChatFiles, stageBackground, layout: controlledLayout, onLayoutChange, initialPanel, features, generatedAvatars, commandError: externalCommandError, onDismissCommandError, onToggleWhiteboard, whiteboard, reconnecting, overlay, onLeft, onEndEpisode, className, }: SpaceViewProps): React.JSX.Element;
|
|
52
|
-
//# sourceMappingURL=SpaceView.d.ts.map
|
|
59
|
+
export declare function SpaceView({ colorScheme, onColorSchemeChange, spaceName, shareUrl, callLinkOpen, onCallLinkToggle, onReportProblem, reportUnavailableReason, onOpenReportProblem, inviteLink, pickChatFiles, stageBackground, layout: controlledLayout, onLayoutChange, initialPanel, features, generatedAvatars, commandError: externalCommandError, commandSource: externalCommandSource, commandAction: externalCommandAction, onDismissCommandError, onToggleWhiteboard, whiteboard, reconnecting, overlay, onLeft, onEndEpisode, className, }: SpaceViewProps): React.JSX.Element;
|
|
@@ -8,4 +8,3 @@ export interface DrawerPresence<T> {
|
|
|
8
8
|
}
|
|
9
9
|
/** Keeps the last panel mounted for `exitMs` after it is cleared so the drawer can animate out. */
|
|
10
10
|
export declare function useDrawerPresence<T>(panel: T | null, exitMs: number): DrawerPresence<T>;
|
|
11
|
-
//# sourceMappingURL=useDrawerPresence.d.ts.map
|
|
@@ -13,11 +13,12 @@ export interface SpaceStageProps {
|
|
|
13
13
|
readonly shareCapture?: ScreenShareCapture;
|
|
14
14
|
readonly onStopSharing?: () => Promise<void>;
|
|
15
15
|
readonly onChangeShare?: (options: ScreenShareOptions) => Promise<void>;
|
|
16
|
+
readonly colorScheme?: "light" | "dark";
|
|
17
|
+
readonly onCloseBoard?: () => void;
|
|
16
18
|
readonly className?: string;
|
|
17
19
|
}
|
|
18
20
|
/** One keyed renderer for people, the live board and each screen, in both layouts. */
|
|
19
|
-
export declare function SpaceStage({ tiles, layout, onLayoutChange, generatedAvatars, whiteboard, onOverflowClick, shareCapture, onStopSharing, onChangeShare, className }: SpaceStageProps): React.JSX.Element;
|
|
21
|
+
export declare function SpaceStage({ tiles, layout, onLayoutChange, generatedAvatars, whiteboard, onOverflowClick, shareCapture, onStopSharing, onChangeShare, colorScheme, onCloseBoard, className }: SpaceStageProps): React.JSX.Element;
|
|
20
22
|
export declare namespace SpaceStage {
|
|
21
23
|
var displayName: string;
|
|
22
24
|
}
|
|
23
|
-
//# sourceMappingURL=SpaceStage.d.ts.map
|
|
@@ -20,7 +20,11 @@ export interface StageProps {
|
|
|
20
20
|
readonly onPinnedChange?: (id: string | null) => void;
|
|
21
21
|
readonly onItemClick?: (item: StageItem) => void;
|
|
22
22
|
readonly onItemDoubleClick?: (item: StageItem) => void;
|
|
23
|
-
/**
|
|
23
|
+
/** While the board is open, clicking a person follows their board view. */
|
|
24
|
+
readonly followingId?: string | null;
|
|
25
|
+
readonly onFollowChange?: (id: string) => void;
|
|
26
|
+
readonly clickAction?: "pin" | "follow";
|
|
27
|
+
/** Upper bound of grid tiles, or secondary tiles in spotlight; overflow includes shared content. */
|
|
24
28
|
readonly maxPerPage?: number;
|
|
25
29
|
/** Tiles narrower than this fold the rest into overflow. */
|
|
26
30
|
readonly minTileWidth?: number;
|
|
@@ -51,9 +55,8 @@ export { buildStageItems };
|
|
|
51
55
|
* Single renderer for every layout: a flat list of tiles positioned by the pure fitter, so
|
|
52
56
|
* switching between grid and focus never remounts a video element.
|
|
53
57
|
*/
|
|
54
|
-
export declare function Stage({ items, layout, pinnedId, onPinnedChange, onOverflowClick, onItemClick, onItemDoubleClick, maxPerPage, minTileWidth, renderPrimaryContent, renderParticipant, renderContentTile, interactive, animate: animateOverride, generatedAvatars, gradientPreference, emptyState, className, }: StageProps): React.JSX.Element;
|
|
58
|
+
export declare function Stage({ items, layout, pinnedId, followingId, onFollowChange, clickAction, onPinnedChange, onOverflowClick, onItemClick, onItemDoubleClick, maxPerPage, minTileWidth, renderPrimaryContent, renderParticipant, renderContentTile, interactive, animate: animateOverride, generatedAvatars, gradientPreference, emptyState, className, }: StageProps): React.JSX.Element;
|
|
55
59
|
export declare namespace Stage {
|
|
56
60
|
var displayName: string;
|
|
57
61
|
}
|
|
58
62
|
export declare function stageHasContent(items: readonly StageItem[]): boolean;
|
|
59
|
-
//# sourceMappingURL=Stage.d.ts.map
|
|
@@ -27,4 +27,3 @@ export declare function contentTileName(item: ContentItem): string;
|
|
|
27
27
|
export declare const StageContentTile: React.MemoExoticComponent<({ item, active, ...props }: StageContentTileProps) => React.JSX.Element>;
|
|
28
28
|
export declare const StageContentTileSurface: React.MemoExoticComponent<({ item, pinned, onClick, onDoubleClick, className, style, hidden, media, mediaVisible, primary, state, onStopSharing, onChangeShare, capture, switcher }: StageContentTileSurfaceProps) => React.JSX.Element>;
|
|
29
29
|
export {};
|
|
30
|
-
//# sourceMappingURL=StageContentTile.d.ts.map
|
|
@@ -28,6 +28,9 @@ export interface PrimaryContext {
|
|
|
28
28
|
}
|
|
29
29
|
/** A pin wins; otherwise the first live share, board, then active speaker leads Spotlight. */
|
|
30
30
|
export declare function choosePrimary(items: readonly StageItem[], context: PrimaryContext): StageItem | null;
|
|
31
|
+
/** Who is speaking now: the active speaker before anyone else speaking. */
|
|
32
|
+
export declare function speakingParticipantId(items: readonly StageItem[], accept?: (participant: Participant) => boolean): string | undefined;
|
|
33
|
+
/** The remote person whose face leads the floating column: whoever is speaking now, else the last remote speaker. */
|
|
34
|
+
export declare function floatingSpeakerId(items: readonly StageItem[], lastRemoteSpeakerId: string | null): string | null;
|
|
31
35
|
/** Grid order: pinned item first, everything else in stable order. */
|
|
32
36
|
export declare function gridOrder(items: readonly StageItem[], pinnedId: string | null): StageItem[];
|
|
33
|
-
//# sourceMappingURL=stage-items.d.ts.map
|
|
@@ -3,7 +3,7 @@ export interface StageBox {
|
|
|
3
3
|
readonly width: number;
|
|
4
4
|
readonly height: number;
|
|
5
5
|
}
|
|
6
|
-
export type StageRole = "primary" | "strip" | "grid";
|
|
6
|
+
export type StageRole = "primary" | "strip" | "grid" | "float";
|
|
7
7
|
export interface StageFrame {
|
|
8
8
|
readonly id: string;
|
|
9
9
|
readonly role: StageRole;
|
|
@@ -37,6 +37,12 @@ export interface SpotlightFitOptions {
|
|
|
37
37
|
readonly content?: boolean;
|
|
38
38
|
readonly wideIds?: readonly string[];
|
|
39
39
|
readonly maxPerPage?: number;
|
|
40
|
+
/** @deprecated Prefer floatingPhonePeople for boards. Preserves the 52px phone strip. */
|
|
41
|
+
readonly slimPhoneStrip?: boolean;
|
|
42
|
+
/** On a phone the board keeps the whole stage, and people float in a short column at its right edge. */
|
|
43
|
+
readonly floatingPhonePeople?: boolean;
|
|
44
|
+
readonly speakerId?: string | null;
|
|
45
|
+
readonly localId?: string | null;
|
|
40
46
|
}
|
|
41
47
|
export declare const WIDESCREEN: number;
|
|
42
48
|
export declare const MORE_TILE_ID = "stage:more";
|
|
@@ -47,4 +53,3 @@ export declare const EMPTY_GEOMETRY: StageGeometry;
|
|
|
47
53
|
export declare function fitGrid(box: StageBox, ids: readonly string[], options: GridFitOptions, wideIds?: readonly string[]): StageGeometry;
|
|
48
54
|
/** Content takes whichever placement gives it more visible area; people justify into the remainder. */
|
|
49
55
|
export declare function fitSpotlight(box: StageBox, primaryId: string, stripIds: readonly string[], options: SpotlightFitOptions): StageGeometry;
|
|
50
|
-
//# sourceMappingURL=stage-layout.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare function CallEventIcon({ kind, error }: {
|
|
2
|
-
readonly kind: "microphone" | "microphone-on" | "camera" | "screen" | "recording" | "hand" | "host";
|
|
2
|
+
readonly kind: "speaker" | "microphone" | "microphone-on" | "camera" | "screen" | "recording" | "hand" | "host";
|
|
3
3
|
readonly error?: boolean;
|
|
4
4
|
}): import("react").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=CallEventIcon.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Toast } from "./ToastStack";
|
|
2
|
+
export interface NoticeButtonProps {
|
|
3
|
+
readonly toasts: readonly Toast[];
|
|
4
|
+
readonly onDismiss: (id: string) => void;
|
|
5
|
+
}
|
|
6
|
+
/** The header's way into notices that have no room on the stage, such as on a short screen with the board's tools open. */
|
|
7
|
+
export declare function NoticeButton({ toasts, onDismiss }: NoticeButtonProps): import("react").JSX.Element | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ChalkToastProps } from "../chalk-ui/ChalkToast";
|
|
2
|
-
export interface Toast extends Omit<ChalkToastProps, "onDismiss"> {
|
|
2
|
+
export interface Toast extends Omit<ChalkToastProps, "onDismiss" | "announce"> {
|
|
3
3
|
readonly id: string;
|
|
4
4
|
}
|
|
5
5
|
export interface ToastStackProps {
|
|
@@ -7,6 +7,16 @@ export interface ToastStackProps {
|
|
|
7
7
|
readonly onDismiss: (id: string) => void;
|
|
8
8
|
readonly maxVisible?: number;
|
|
9
9
|
readonly className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Called with the ids of the notices the stage has no room for, so the host can offer them elsewhere, such as from the header.
|
|
12
|
+
* With it, a call shorter than `FOLD_BELOW_PX` folds every notice. Taller calls fold notices past `maxVisible` or outside the available band, announcing each folded message once.
|
|
13
|
+
*/
|
|
14
|
+
readonly onFold?: (folded: readonly string[]) => void;
|
|
10
15
|
}
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Calls shorter than this fold every notice. It is the height the mockup's three-notice stack needs at its tallest, on a phone with
|
|
18
|
+
* the board open: 108px for the header and the board's menu, an 8px gap, three camera errors wrapped to three lines (79px each, with
|
|
19
|
+
* 8px gaps), and the 242px the open drawing tools lift notices by, 611px in all.
|
|
20
|
+
*/
|
|
21
|
+
export declare const FOLD_BELOW_PX = 620;
|
|
22
|
+
export declare const ToastStack: import("react").MemoExoticComponent<({ toasts, onDismiss, maxVisible, className, onFold }: ToastStackProps) => import("react").JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { type MediaCommandSource, type MediaCommandAction } from "../control-bar/command-failure";
|
|
1
2
|
import type { ClientFailure, SpaceSnapshot } from "@q9labsai/chalk-client";
|
|
2
3
|
import type { Toast } from "./ToastStack";
|
|
3
|
-
export declare function mediaFailureToast(failure: ClientFailure | null, source?:
|
|
4
|
+
export declare function mediaFailureToast(failure: ClientFailure | null, source?: MediaCommandSource, action?: MediaCommandAction, onRetry?: () => void): Omit<Toast, "id"> | null;
|
|
4
5
|
/** Snapshot changes, not initial history, are events for the person already in the call. */
|
|
5
6
|
export declare function callEventToasts(previous: SpaceSnapshot, next: SpaceSnapshot): Omit<Toast, "id">[];
|
|
6
|
-
//# sourceMappingURL=call-events.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChalkToastProps } from "../chalk-ui/ChalkToast";
|
|
2
|
+
export declare function noticeAnnouncement(toast: Pick<ChalkToastProps, "message" | "announcementText">): string;
|
|
3
|
+
/** Semantic speech/lifetime revision, independent of JSX and layout chrome. */
|
|
4
|
+
export declare function noticeIdentity(toast: Pick<ChalkToastProps, "message" | "announcementText" | "announcementKey" | "type">): string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** A layout-only DOM snapshot: never instantiate React callers, custom elements, or media resources. */
|
|
2
|
+
export declare function captureToastLayout(toast: HTMLElement): HTMLDivElement;
|
|
3
|
+
/** Reflow cached markup at the current band's width without mounting the folded caller tree. */
|
|
4
|
+
export declare function measureToastLayout(stack: HTMLElement, snapshot: HTMLDivElement): number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
import type { Toast } from "./ToastStack";
|
|
3
|
+
/** Remember measured sizes when notices fold: resizing must not remount them to measure again. */
|
|
4
|
+
export declare function useToastCapacity(stack: RefObject<HTMLDivElement | null>, candidates: readonly Toast[], enabled: boolean, ownedIds: readonly string[]): {
|
|
5
|
+
readonly count: number;
|
|
6
|
+
readonly ready: boolean;
|
|
7
|
+
};
|
|
@@ -4,4 +4,3 @@ export type WhiteboardViewProps = Omit<WhiteboardCanvasProps, "classNames" | "ic
|
|
|
4
4
|
declare function WhiteboardViewBase(props: WhiteboardViewProps): React.JSX.Element;
|
|
5
5
|
export declare const WhiteboardView: import("react").MemoExoticComponent<typeof WhiteboardViewBase>;
|
|
6
6
|
export {};
|
|
7
|
-
//# sourceMappingURL=WhiteboardView.d.ts.map
|
|
@@ -33,4 +33,3 @@ export declare function recordingWhiteboardSceneAppState(state: RecordingWhitebo
|
|
|
33
33
|
/** Centralizes validation and branding so renderer callers never cast file data. */
|
|
34
34
|
export declare function recordingWhiteboardBinaryFile({ fileId, mimeType, dataURL, createdAtMs }: RecordingWhiteboardBinaryFileInput): BinaryFileData;
|
|
35
35
|
export declare function loadRecordingWhiteboardFiles(state: RecordingWhiteboardStateV1, resolve: RecordingWhiteboardFileResolver): Promise<BinaryFiles>;
|
|
36
|
-
//# sourceMappingURL=recording-whiteboard-state.d.ts.map
|
package/dist/headless.d.ts
CHANGED
|
@@ -6,4 +6,3 @@ export type { Participant } from "./components/participant-grid/ParticipantGrid"
|
|
|
6
6
|
export { createRecordingWhiteboardCursor, loadRecordingWhiteboardFiles, parseRecordingWhiteboardStateV1, recordingWhiteboardSceneAppState } from "./components/whiteboard-view/recording-whiteboard-state";
|
|
7
7
|
export type { RecordingWhiteboardCursor } from "./components/whiteboard-view/recording-whiteboard-state";
|
|
8
8
|
export type { RecordingWhiteboardStateV1 } from "./components/whiteboard-view/recording-whiteboard-state";
|
|
9
|
-
//# sourceMappingURL=headless.d.ts.map
|
package/dist/headless.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -31,4 +31,4 @@ export { SpaceHeader } from "./components/space-header/SpaceHeader";
|
|
|
31
31
|
export type { SpaceHeaderProps } from "./components/space-header/SpaceHeader";
|
|
32
32
|
export { CallReady, type CallReadyProps } from "./components/call-limbo/CallReady";
|
|
33
33
|
export { StatusSurface, type StatusSurfaceProps, type StatusSurfacePhase } from "./components/chalk/StatusSurface";
|
|
34
|
-
|
|
34
|
+
export { ReportProblemDialog } from "./components/chalk/ReportProblemDialog";
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
RecordingHistoryPanel,
|
|
6
6
|
RecordingSpaceView,
|
|
7
7
|
RecordingWhiteboardView
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CYC2G42K.js";
|
|
9
9
|
import {
|
|
10
10
|
loadRecordingWhiteboardFiles,
|
|
11
11
|
parseRecordingWhiteboardStateV1,
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
recordingWhiteboardFileIds
|
|
15
15
|
} from "./chunk-VHM3SYMY.js";
|
|
16
16
|
import {
|
|
17
|
+
CallDialog,
|
|
17
18
|
CallLimbo,
|
|
18
19
|
CallReady,
|
|
19
20
|
ChalkAlert,
|
|
@@ -40,10 +41,12 @@ import {
|
|
|
40
41
|
ChalkToggle,
|
|
41
42
|
ChalkTooltip,
|
|
42
43
|
ControlBar,
|
|
44
|
+
ShellStyles,
|
|
43
45
|
SpaceHeader,
|
|
44
46
|
StatusSurface,
|
|
45
47
|
ToastStack,
|
|
46
48
|
captureFlip,
|
|
49
|
+
chalkThemeStyle,
|
|
47
50
|
useCan,
|
|
48
51
|
useChat,
|
|
49
52
|
useConnection,
|
|
@@ -56,12 +59,29 @@ import {
|
|
|
56
59
|
useSelf,
|
|
57
60
|
useSpaceClient,
|
|
58
61
|
useWhiteboard
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-G62BKRNX.js";
|
|
63
|
+
import "./chunk-HWQLW4JR.js";
|
|
61
64
|
import "./chunk-4U7QZC72.js";
|
|
62
65
|
|
|
63
66
|
// src/index.ts
|
|
64
67
|
import { CHALK_REACTIONS } from "@q9labsai/chalk-client";
|
|
68
|
+
|
|
69
|
+
// src/components/chalk/ReportProblemDialog.tsx
|
|
70
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
71
|
+
function ReportProblemDialog({
|
|
72
|
+
open,
|
|
73
|
+
onClose,
|
|
74
|
+
onReportProblem,
|
|
75
|
+
colorScheme,
|
|
76
|
+
focusScope,
|
|
77
|
+
diagnostics = "",
|
|
78
|
+
unavailableReason
|
|
79
|
+
}) {
|
|
80
|
+
return /* @__PURE__ */ jsxs("div", { "data-chalk": true, "data-chalk-theme": colorScheme, className: "chalk-root", style: chalkThemeStyle({ colorScheme }, colorScheme), children: [
|
|
81
|
+
/* @__PURE__ */ jsx(ShellStyles, {}),
|
|
82
|
+
/* @__PURE__ */ jsx(CallDialog, { kind: "report", open, onClose, onReportProblem, diagnostics, focusScope, unavailableReason })
|
|
83
|
+
] });
|
|
84
|
+
}
|
|
65
85
|
export {
|
|
66
86
|
CHALK_REACTIONS,
|
|
67
87
|
CallLimbo,
|
|
@@ -95,6 +115,7 @@ export {
|
|
|
95
115
|
RecordingHistoryPanel,
|
|
96
116
|
RecordingSpaceView,
|
|
97
117
|
RecordingWhiteboardView,
|
|
118
|
+
ReportProblemDialog,
|
|
98
119
|
SpaceHeader,
|
|
99
120
|
StatusSurface,
|
|
100
121
|
ToastStack,
|
|
@@ -5,4 +5,3 @@ export declare function captureFlip(elements: Iterable<HTMLElement>): () => void
|
|
|
5
5
|
export declare function useStageRefit(root: RefObject<HTMLElement | null>): void;
|
|
6
6
|
/** Chrome stays visible while a layer is open, on touch, and for keyboard focus. */
|
|
7
7
|
export declare function useIdleChrome(root: RefObject<HTMLElement | null>, enabled: boolean): boolean;
|
|
8
|
-
//# sourceMappingURL=call-motion.d.ts.map
|
|
@@ -7,4 +7,3 @@ import { type SoundCue, type SoundPlayer } from "./sound-cues";
|
|
|
7
7
|
export declare function useSoundCues(enabled: boolean, createPlayer?: (options: {
|
|
8
8
|
readonly outputDeviceId?: string;
|
|
9
9
|
}) => SoundPlayer): (cue: SoundCue, failure?: ClientFailure) => void;
|
|
10
|
-
//# sourceMappingURL=useSoundCues.d.ts.map
|
|
@@ -10,4 +10,3 @@ type WhiteboardSceneSubscription = {
|
|
|
10
10
|
};
|
|
11
11
|
export declare function useWhiteboardSceneSubscription(transport: ChalkWhiteboardV1Transport | null, active: boolean): WhiteboardSceneSubscription;
|
|
12
12
|
export {};
|
|
13
|
-
//# sourceMappingURL=useWhiteboardSceneSubscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WHITEBOARD_VIEW_PEOPLE_MAX = 500;
|
|
@@ -8,7 +8,7 @@ type PublicHooks = Extract<keyof typeof bindings, `use${string}`>;
|
|
|
8
8
|
type ExpectedHooks = "useSpaceClient" | "useConnection" | "useSelf" | "useParticipants" | "useMedia" | "useScreenShare" | "useOffline" | "useChat" | "useReactions" | "useRecording" | "useWhiteboard" | "useCan";
|
|
9
9
|
type ExpectedLayout = "focus" | "grid";
|
|
10
10
|
type ExpectedTokenKeys = "canvas" | "surface" | "raised" | "hover" | "pressed" | "tile" | "popover" | "line" | "lineStrong" | "text" | "textStrong" | "mutedText" | "softText" | "danger" | "dangerHover" | "dangerPressed" | "dangerText" | "positive" | "warning" | "accent" | "wash" | "washStrong" | "chrome" | "stage" | "accentText" | "dangerSurface" | "focus" | "shadow" | "overlay" | "overlayStrong" | "overlayHover" | "onOverlay" | "overlayWarning" | "overlayDanger" | "scrim";
|
|
11
|
-
type ExpectedChalkProps = "shareUrl" | "onReportProblem" | "client" | "space" | "getAccess" | "defaults" | "displayName" | "features" | "theme" | "onColorSchemeChange" | "pickChatFiles" | "spaceName" | "layout" | "onLayoutChange" | "onRejoin" | "onHome" | "terminalState" | "inviteLink" | "onJoined" | "onLeft" | "onEpisodeEnded" | "onParticipantJoined" | "onParticipantLeft" | "onScreenShareStarted" | "onScreenShareStopped" | "onError";
|
|
11
|
+
type ExpectedChalkProps = "shareUrl" | "onReportProblem" | "onOpenReportProblem" | "reportUnavailableReason" | "client" | "space" | "getAccess" | "defaults" | "displayName" | "features" | "theme" | "onColorSchemeChange" | "pickChatFiles" | "spaceName" | "layout" | "onLayoutChange" | "onRejoin" | "onHome" | "terminalState" | "inviteLink" | "onJoined" | "onLeft" | "onEpisodeEnded" | "onParticipantJoined" | "onParticipantLeft" | "onScreenShareStarted" | "onScreenShareStopped" | "onError";
|
|
12
12
|
type HooksAreClosed = Assert<Equal<PublicHooks, ExpectedHooks>>;
|
|
13
13
|
type LayoutIsCanonical = Assert<Equal<SpaceLayout, ExpectedLayout>>;
|
|
14
14
|
type TokensAreClosed = Assert<Equal<keyof ChalkThemeTokens, ExpectedTokenKeys>>;
|
|
@@ -18,4 +18,3 @@ type NoLegacyStylingProp = Assert<Equal<Extract<keyof ChalkProps, "className" |
|
|
|
18
18
|
type ChalkPropsAreClosed = Assert<Equal<keyof ChalkProps, ExpectedChalkProps>>;
|
|
19
19
|
export type PublicSurfaceContract = [HooksAreClosed, LayoutIsCanonical, TokensAreClosed, ErrorMirrorsClientEvent, ChatFilePickerMirrorsClientType, NoLegacyStylingProp, ChalkPropsAreClosed];
|
|
20
20
|
export {};
|
|
21
|
-
//# sourceMappingURL=public-surface.contract.d.ts.map
|
|
@@ -8,4 +8,3 @@ export declare function toVideoParticipants(participants: readonly SpaceParticip
|
|
|
8
8
|
export declare function toAudioParticipants(remoteMedia: readonly RemoteMedia[]): AudioParticipant[];
|
|
9
9
|
export declare function toParticipantNames(participants: readonly SpaceParticipant[], localId: string, displayName: string): Readonly<Record<string, string>>;
|
|
10
10
|
export declare function toListParticipants(tiles: readonly Participant[], participantMedia: Readonly<Record<string, SpaceParticipant["media"]>>): ParticipantListParticipant[];
|
|
11
|
-
//# sourceMappingURL=space-selectors.d.ts.map
|
|
@@ -12,4 +12,3 @@ export type { WhiteboardViewProps } from "../components/whiteboard-view/Whiteboa
|
|
|
12
12
|
export type { PreviewClientCommand } from "./preview-client";
|
|
13
13
|
export type { PreviewMediaDevices } from "./preview-devices";
|
|
14
14
|
export type { SpaceLayout, SpacePanel } from "./preview-fixtures";
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
SpaceView,
|
|
7
7
|
ToastStack,
|
|
8
8
|
WhiteboardView
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-G62BKRNX.js";
|
|
10
|
+
import "../chunk-HWQLW4JR.js";
|
|
11
11
|
import "../chunk-4U7QZC72.js";
|
|
12
12
|
|
|
13
13
|
// src/test-support/preview-devices.ts
|
|
@@ -25,12 +25,14 @@ function createPreviewMediaDevices() {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
// src/test-support/preview-client.ts
|
|
28
|
+
import { createSpaceClient } from "@q9labsai/chalk-client";
|
|
28
29
|
function createPreviewClient(initialSnapshot = createSnapshot(), options = {}) {
|
|
29
30
|
let snapshot = initialSnapshot;
|
|
30
31
|
let requestSequence = 0;
|
|
31
32
|
let attachmentSequence = 0;
|
|
32
33
|
let recordingSequence = 0;
|
|
33
34
|
const listeners = /* @__PURE__ */ new Set();
|
|
35
|
+
let cameraPreviewClient;
|
|
34
36
|
const setSnapshot = (nextSnapshot) => {
|
|
35
37
|
snapshot = nextSnapshot;
|
|
36
38
|
for (const listener of listeners) listener();
|
|
@@ -43,6 +45,23 @@ function createPreviewClient(initialSnapshot = createSnapshot(), options = {}) {
|
|
|
43
45
|
};
|
|
44
46
|
const client = {
|
|
45
47
|
media: {
|
|
48
|
+
captureCameraPreview: async () => {
|
|
49
|
+
const current = snapshot.media.local.camera.track;
|
|
50
|
+
if (snapshot.media.local.camera.state === "enabled" && current?.enabled && current.readyState === "live") return { track: current, release: () => {
|
|
51
|
+
} };
|
|
52
|
+
cameraPreviewClient ??= createSpaceClient({
|
|
53
|
+
space: "camera-preview",
|
|
54
|
+
getAccess: async () => {
|
|
55
|
+
throw new Error("Preview capture must not join a call");
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
const selected = snapshot.media.selection.camera;
|
|
59
|
+
if (selected) await cameraPreviewClient.media.selectCamera(selected);
|
|
60
|
+
const track = await cameraPreviewClient.media.captureCameraPreview();
|
|
61
|
+
const devices = cameraPreviewClient.getSnapshot().media.devices;
|
|
62
|
+
updateSnapshot((current2) => ({ ...current2, media: { ...current2.media, devices } }));
|
|
63
|
+
return track;
|
|
64
|
+
},
|
|
46
65
|
setMicrophoneEnabled: (enabled) => dispatch({ type: "setMicrophoneEnabled", enabled }),
|
|
47
66
|
setCameraEnabled: (enabled) => dispatch({ type: "setCameraEnabled", enabled }),
|
|
48
67
|
setScreenShareEnabled: (enabled) => dispatch({ type: "setScreenShareEnabled", enabled }),
|
|
@@ -119,7 +138,10 @@ function createPreviewClient(initialSnapshot = createSnapshot(), options = {}) {
|
|
|
119
138
|
whiteboard: { transport: () => null },
|
|
120
139
|
join: () => dispatch({ type: "join" }),
|
|
121
140
|
leave: () => dispatch({ type: "leave" }),
|
|
122
|
-
dispose: () =>
|
|
141
|
+
dispose: () => {
|
|
142
|
+
cameraPreviewClient?.dispose();
|
|
143
|
+
listeners.clear();
|
|
144
|
+
},
|
|
123
145
|
subscribe: (listener) => {
|
|
124
146
|
listeners.add(listener);
|
|
125
147
|
return () => listeners.delete(listener);
|
|
@@ -150,7 +172,7 @@ function createSnapshot(capabilities = ["sendChat"]) {
|
|
|
150
172
|
reactions: { active: [] },
|
|
151
173
|
recording: { current: null },
|
|
152
174
|
offline: { pending: [], decisionNeeded: false, policy: "ask" },
|
|
153
|
-
whiteboard: { open: false, engine: { status: "unsubscribed", sceneId: null, revision: null, presenting: false, error: null } }
|
|
175
|
+
whiteboard: { open: false, engine: { status: "unsubscribed", sceneId: null, revision: null, presenting: false, error: null }, access: { canDraw: false, policy: null, permissions: [] } }
|
|
154
176
|
};
|
|
155
177
|
}
|
|
156
178
|
function applyPreviewCommand(snapshot, command) {
|
|
@@ -104,4 +104,3 @@ export type PreviewClient = SpaceClient & {
|
|
|
104
104
|
*/
|
|
105
105
|
export declare function createPreviewClient(initialSnapshot?: SpaceSnapshot, options?: PreviewClientOptions): PreviewClient;
|
|
106
106
|
export declare function createSnapshot(capabilities?: readonly Capability[]): SpaceSnapshot;
|
|
107
|
-
//# sourceMappingURL=preview-client.d.ts.map
|
|
@@ -7,4 +7,3 @@ export type PreviewMediaDevices = Readonly<{
|
|
|
7
7
|
/** One immutable fixture set shared by the preview client and web media adapter. */
|
|
8
8
|
export declare const PREVIEW_DEVICE_FIXTURES: PreviewMediaDevices;
|
|
9
9
|
export declare function createPreviewMediaDevices(): PreviewMediaDevices;
|
|
10
|
-
//# sourceMappingURL=preview-devices.d.ts.map
|