@q9labsai/chalk-react 5.1.0 → 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.
Files changed (38) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/dist/bindings/hooks.d.ts +2 -0
  3. package/dist/{chunk-QDEKMRH2.js → chunk-CYC2G42K.js} +66 -58
  4. package/dist/{chunk-XOHNIYSR.js → chunk-G62BKRNX.js} +1534 -948
  5. package/dist/{chunk-ZFWIMKUC.js → chunk-HWQLW4JR.js} +55 -7
  6. package/dist/components/board/BoardMenu.d.ts +4 -1
  7. package/dist/components/board/board-draw-policy.d.ts +15 -0
  8. package/dist/components/board/board-model.d.ts +5 -1
  9. package/dist/components/board/board-view-versions.d.ts +1 -7
  10. package/dist/components/chalk/Chalk.d.ts +4 -0
  11. package/dist/components/chalk/ReportProblemDialog.d.ts +12 -0
  12. package/dist/components/chalk/StatusSurface.d.ts +3 -2
  13. package/dist/components/chalk-ui/ChalkSheet.d.ts +1 -1
  14. package/dist/components/chalk-ui/ChalkToast.d.ts +7 -1
  15. package/dist/components/control-bar/command-failure.d.ts +105 -1
  16. package/dist/components/control-bar/control-bar-behavior.d.ts +5 -1
  17. package/dist/components/index.js +3 -3
  18. package/dist/components/offline-actions/OfflineActions.d.ts +2 -1
  19. package/dist/components/space-header/CallDetails.d.ts +4 -2
  20. package/dist/components/space-header/space-header-contract.d.ts +5 -0
  21. package/dist/components/space-view/SpaceView.d.ts +8 -3
  22. package/dist/components/stage/Stage.d.ts +1 -1
  23. package/dist/components/stage/stage-items.d.ts +4 -0
  24. package/dist/components/stage/stage-layout.d.ts +6 -2
  25. package/dist/components/toast-stack/CallEventIcon.d.ts +1 -1
  26. package/dist/components/toast-stack/NoticeButton.d.ts +7 -0
  27. package/dist/components/toast-stack/ToastStack.d.ts +13 -2
  28. package/dist/components/toast-stack/call-events.d.ts +2 -1
  29. package/dist/components/toast-stack/notice-announcement.d.ts +4 -0
  30. package/dist/components/toast-stack/toast-layout-snapshot.d.ts +4 -0
  31. package/dist/components/toast-stack/useToastCapacity.d.ts +7 -0
  32. package/dist/headless.js +1 -1
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +24 -3
  35. package/dist/internal/whiteboard-view-limits.d.ts +1 -0
  36. package/dist/public-surface.contract.d.ts +1 -1
  37. package/dist/test-support/index.js +3 -3
  38. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -31,3 +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
+ 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-QDEKMRH2.js";
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-XOHNIYSR.js";
60
- import "./chunk-ZFWIMKUC.js";
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,
@@ -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>>;
@@ -6,8 +6,8 @@ import {
6
6
  SpaceView,
7
7
  ToastStack,
8
8
  WhiteboardView
9
- } from "../chunk-XOHNIYSR.js";
10
- import "../chunk-ZFWIMKUC.js";
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
@@ -172,7 +172,7 @@ function createSnapshot(capabilities = ["sendChat"]) {
172
172
  reactions: { active: [] },
173
173
  recording: { current: null },
174
174
  offline: { pending: [], decisionNeeded: false, policy: "ask" },
175
- 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: [] } }
176
176
  };
177
177
  }
178
178
  function applyPreviewCommand(snapshot, command) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@q9labsai/chalk-react",
3
- "version": "5.1.0",
3
+ "version": "5.2.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.1.0",
79
- "@q9labsai/chalk-ui": "^5.1.0",
80
- "@q9labsai/chalk-whiteboard": "^5.1.0",
81
- "@q9labsai/facehash": "^5.1.0",
78
+ "@q9labsai/chalk-client": "^5.2.0",
79
+ "@q9labsai/chalk-ui": "^5.2.0",
80
+ "@q9labsai/chalk-whiteboard": "^5.2.0",
81
+ "@q9labsai/facehash": "^5.2.0",
82
82
  "@q9labsai/recording-presentation": "^0.1.1",
83
83
  "class-variance-authority": "^0.7.1",
84
84
  "clsx": "^2.1.1",