@q9labsai/chalk-react 4.0.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/LICENSE +21 -0
- package/README.md +99 -0
- package/dist/__tests__/setup.d.ts +2 -0
- package/dist/__tests__/setup.d.ts.map +1 -0
- package/dist/bindings/context.d.ts +9 -0
- package/dist/bindings/context.d.ts.map +1 -0
- package/dist/bindings/hooks.d.ts +11 -0
- package/dist/bindings/hooks.d.ts.map +1 -0
- package/dist/chunk-HCTXF323.js +6207 -0
- package/dist/chunk-ZEZLA34O.js +210 -0
- package/dist/components/admission-panel/AdmissionPanel.d.ts +16 -0
- package/dist/components/admission-panel/AdmissionPanel.d.ts.map +1 -0
- package/dist/components/atomic/AudioIndicator.d.ts +11 -0
- package/dist/components/atomic/AudioIndicator.d.ts.map +1 -0
- package/dist/components/atomic/Avatar.d.ts +14 -0
- package/dist/components/atomic/Avatar.d.ts.map +1 -0
- package/dist/components/atomic/CaptionLine.d.ts +10 -0
- package/dist/components/atomic/CaptionLine.d.ts.map +1 -0
- package/dist/components/atomic/ConnectionQuality.d.ts +9 -0
- package/dist/components/atomic/ConnectionQuality.d.ts.map +1 -0
- package/dist/components/atomic/HandRaiseIndicator.d.ts +11 -0
- package/dist/components/atomic/HandRaiseIndicator.d.ts.map +1 -0
- package/dist/components/atomic/NameTag.d.ts +9 -0
- package/dist/components/atomic/NameTag.d.ts.map +1 -0
- package/dist/components/atomic/ReactionBubble.d.ts +11 -0
- package/dist/components/atomic/ReactionBubble.d.ts.map +1 -0
- package/dist/components/atomic/ReleaseBadge.d.ts +7 -0
- package/dist/components/atomic/ReleaseBadge.d.ts.map +1 -0
- package/dist/components/atomic/StatusBadge.d.ts +9 -0
- package/dist/components/atomic/StatusBadge.d.ts.map +1 -0
- package/dist/components/atomic/TourHighlight.d.ts +10 -0
- package/dist/components/atomic/TourHighlight.d.ts.map +1 -0
- package/dist/components/atomic/TourTooltip.d.ts +16 -0
- package/dist/components/atomic/TourTooltip.d.ts.map +1 -0
- package/dist/components/atomic/TranscriptLine.d.ts +20 -0
- package/dist/components/atomic/TranscriptLine.d.ts.map +1 -0
- package/dist/components/atomic/VolumeSlider.d.ts +13 -0
- package/dist/components/atomic/VolumeSlider.d.ts.map +1 -0
- package/dist/components/atomic/Waveform.d.ts +10 -0
- package/dist/components/atomic/Waveform.d.ts.map +1 -0
- package/dist/components/atomic/WhatsNewTrigger.d.ts +22 -0
- package/dist/components/atomic/WhatsNewTrigger.d.ts.map +1 -0
- package/dist/components/atomic/index.d.ts +19 -0
- package/dist/components/atomic/index.d.ts.map +1 -0
- package/dist/components/audio-output/AudioOutput.d.ts +29 -0
- package/dist/components/audio-output/AudioOutput.d.ts.map +1 -0
- package/dist/components/chalk/Chalk.d.ts +53 -0
- package/dist/components/chalk/Chalk.d.ts.map +1 -0
- package/dist/components/composite/BackgroundEffectsPicker.d.ts +21 -0
- package/dist/components/composite/BackgroundEffectsPicker.d.ts.map +1 -0
- package/dist/components/composite/ChatPanel.d.ts +15 -0
- package/dist/components/composite/ChatPanel.d.ts.map +1 -0
- package/dist/components/composite/CommandErrorAlert.d.ts +6 -0
- package/dist/components/composite/CommandErrorAlert.d.ts.map +1 -0
- package/dist/components/composite/DeviceSelector.d.ts +19 -0
- package/dist/components/composite/DeviceSelector.d.ts.map +1 -0
- package/dist/components/composite/MessageBubble.d.ts +23 -0
- package/dist/components/composite/MessageBubble.d.ts.map +1 -0
- package/dist/components/composite/NoiseSuppressionToggle.d.ts +11 -0
- package/dist/components/composite/NoiseSuppressionToggle.d.ts.map +1 -0
- package/dist/components/composite/ReactionPicker.d.ts +16 -0
- package/dist/components/composite/ReactionPicker.d.ts.map +1 -0
- package/dist/components/composite/ReactionsOverlay.d.ts +7 -0
- package/dist/components/composite/ReactionsOverlay.d.ts.map +1 -0
- package/dist/components/composite/ScreenShareView.d.ts +13 -0
- package/dist/components/composite/ScreenShareView.d.ts.map +1 -0
- package/dist/components/composite/SettingsDialog.d.ts +82 -0
- package/dist/components/composite/SettingsDialog.d.ts.map +1 -0
- package/dist/components/composite/SettingsPanel.d.ts +17 -0
- package/dist/components/composite/SettingsPanel.d.ts.map +1 -0
- package/dist/components/composite/chat-file-upload.d.ts +7 -0
- package/dist/components/composite/chat-file-upload.d.ts.map +1 -0
- package/dist/components/composite/chat-panel-model.d.ts +13 -0
- package/dist/components/composite/chat-panel-model.d.ts.map +1 -0
- package/dist/components/composite/chat-types.d.ts +3 -0
- package/dist/components/composite/chat-types.d.ts.map +1 -0
- package/dist/components/control-bar/ControlBar.d.ts +30 -0
- package/dist/components/control-bar/ControlBar.d.ts.map +1 -0
- package/dist/components/control-bar/control-bar-button.d.ts +24 -0
- package/dist/components/control-bar/control-bar-button.d.ts.map +1 -0
- package/dist/components/device-popover/DevicePopover.d.ts +27 -0
- package/dist/components/device-popover/DevicePopover.d.ts.map +1 -0
- package/dist/components/entrance/Entrance.d.ts +21 -0
- package/dist/components/entrance/Entrance.d.ts.map +1 -0
- package/dist/components/entrance/EntranceSurface.d.ts +23 -0
- package/dist/components/entrance/EntranceSurface.d.ts.map +1 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +26 -0
- package/dist/components/invite-dialog/InviteDialog.d.ts +13 -0
- package/dist/components/invite-dialog/InviteDialog.d.ts.map +1 -0
- package/dist/components/join-failed-screen/JoinFailedScreen.d.ts +15 -0
- package/dist/components/join-failed-screen/JoinFailedScreen.d.ts.map +1 -0
- package/dist/components/lazy.d.ts +11 -0
- package/dist/components/lazy.d.ts.map +1 -0
- package/dist/components/leave-dialog/LeaveDialog.d.ts +13 -0
- package/dist/components/leave-dialog/LeaveDialog.d.ts.map +1 -0
- package/dist/components/media-request-dialog/MediaRequestDialog.d.ts +9 -0
- package/dist/components/media-request-dialog/MediaRequestDialog.d.ts.map +1 -0
- package/dist/components/participant-grid/ParticipantGrid.d.ts +34 -0
- package/dist/components/participant-grid/ParticipantGrid.d.ts.map +1 -0
- package/dist/components/participant-tile/ParticipantTile.d.ts +31 -0
- package/dist/components/participant-tile/ParticipantTile.d.ts.map +1 -0
- package/dist/components/participants-panel/ParticipantsPanel.d.ts +28 -0
- package/dist/components/participants-panel/ParticipantsPanel.d.ts.map +1 -0
- package/dist/components/participants-panel/index.d.ts +3 -0
- package/dist/components/participants-panel/index.d.ts.map +1 -0
- package/dist/components/participants-panel/participant-options-menu.d.ts +17 -0
- package/dist/components/participants-panel/participant-options-menu.d.ts.map +1 -0
- package/dist/components/participants-panel/participant-row.d.ts +21 -0
- package/dist/components/participants-panel/participant-row.d.ts.map +1 -0
- package/dist/components/participants-panel/participant-volume-context.d.ts +9 -0
- package/dist/components/participants-panel/participant-volume-context.d.ts.map +1 -0
- package/dist/components/reconnecting-overlay/ReconnectingOverlay.d.ts +12 -0
- package/dist/components/reconnecting-overlay/ReconnectingOverlay.d.ts.map +1 -0
- package/dist/components/space-header/SpaceHeader.d.ts +16 -0
- package/dist/components/space-header/SpaceHeader.d.ts.map +1 -0
- package/dist/components/space-info-dialog/SpaceInfoDialog.d.ts +23 -0
- package/dist/components/space-info-dialog/SpaceInfoDialog.d.ts.map +1 -0
- package/dist/components/space-view/SpaceView.d.ts +59 -0
- package/dist/components/space-view/SpaceView.d.ts.map +1 -0
- package/dist/components/theme.d.ts +114 -0
- package/dist/components/theme.d.ts.map +1 -0
- package/dist/components/toast-stack/ToastStack.d.ts +28 -0
- package/dist/components/toast-stack/ToastStack.d.ts.map +1 -0
- package/dist/components/transcript-panel/TranscriptPanel.d.ts +28 -0
- package/dist/components/transcript-panel/TranscriptPanel.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +3 -0
- package/dist/components/whiteboard-view/WhiteboardView.d.ts +7 -0
- package/dist/components/whiteboard-view/WhiteboardView.d.ts.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/internal/episode-diagnostic-render-observer.d.ts +2 -0
- package/dist/internal/episode-diagnostic-render-observer.d.ts.map +1 -0
- package/dist/internal/thumbnail.d.ts +11 -0
- package/dist/internal/thumbnail.d.ts.map +1 -0
- package/dist/internal/useHaptics.d.ts +9 -0
- package/dist/internal/useHaptics.d.ts.map +1 -0
- package/dist/internal/useMediaQuery.d.ts +7 -0
- package/dist/internal/useMediaQuery.d.ts.map +1 -0
- package/dist/public-surface.contract.d.ts +21 -0
- package/dist/public-surface.contract.d.ts.map +1 -0
- package/dist/selectors/space-selectors.d.ts +11 -0
- package/dist/selectors/space-selectors.d.ts.map +1 -0
- package/dist/test-support/preview-client.d.ts +11 -0
- package/dist/test-support/preview-client.d.ts.map +1 -0
- package/dist/test-support/preview-fixtures.d.ts +43 -0
- package/dist/test-support/preview-fixtures.d.ts.map +1 -0
- package/dist/test-support/test-client.d.ts +8 -0
- package/dist/test-support/test-client.d.ts.map +1 -0
- package/dist/theme.d.ts +66 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/colorGenerator.d.ts +60 -0
- package/dist/utils/colorGenerator.d.ts.map +1 -0
- package/dist/utils/icons.d.ts +73 -0
- package/dist/utils/icons.d.ts.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +33 -0
- package/dist/utils/theme.d.ts +14 -0
- package/dist/utils/theme.d.ts.map +1 -0
- package/dist/whiteboard/wire-adapters.d.ts +6 -0
- package/dist/whiteboard/wire-adapters.d.ts.map +1 -0
- package/package.json +107 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type HapticPattern = "light" | "medium" | "heavy" | "soft" | "selection" | "success" | "warning" | "error";
|
|
2
|
+
export type HapticInput = HapticPattern;
|
|
3
|
+
export declare function useHaptics({ enabled }?: {
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
}): {
|
|
6
|
+
isSupported: boolean;
|
|
7
|
+
trigger: (pattern?: HapticPattern) => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=useHaptics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHaptics.d.ts","sourceRoot":"","sources":["../../src/internal/useHaptics.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAClH,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;AAaxC,wBAAgB,UAAU,CAAC,EAAE,OAAc,EAAE,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO;;wBAK5C,aAAa;EAQzC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function useMediaQuery(query: string): boolean;
|
|
2
|
+
export declare function useIsMobile(): boolean;
|
|
3
|
+
export declare function useIsTablet(): boolean;
|
|
4
|
+
export declare function useIsDesktop(): boolean;
|
|
5
|
+
export declare function usePrefersReducedMotion(): boolean;
|
|
6
|
+
export declare function usePrefersDarkMode(): boolean;
|
|
7
|
+
//# sourceMappingURL=useMediaQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../src/internal/useMediaQuery.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAiBpD;AAED,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED,wBAAgB,YAAY,IAAI,OAAO,CAEtC;AAED,wBAAgB,uBAAuB,IAAI,OAAO,CAEjD;AAED,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ChatUploadFile, ClientEventMap } from "@q9labsai/chalk-client";
|
|
2
|
+
import type { ChalkProps, SpaceLayout } from "./components/chalk/Chalk";
|
|
3
|
+
import type { ChalkThemeTokens } from "./theme";
|
|
4
|
+
import * as bindings from "./index";
|
|
5
|
+
type Assert<TCondition extends true> = TCondition;
|
|
6
|
+
type Equal<TLeft, TRight> = (<T>() => T extends TLeft ? 1 : 2) extends <T>() => T extends TRight ? 1 : 2 ? true : false;
|
|
7
|
+
type PublicHooks = Extract<keyof typeof bindings, `use${string}`>;
|
|
8
|
+
type ExpectedHooks = "useSpaceClient" | "useConnection" | "useSelf" | "useParticipants" | "useMedia" | "useChat" | "useReactions" | "useWhiteboard" | "useCan";
|
|
9
|
+
type ExpectedLayout = "focus" | "grid" | "presentation";
|
|
10
|
+
type ExpectedTokenKeys = "canvas" | "chrome" | "surface" | "stage" | "text" | "mutedText" | "line" | "accent" | "accentText" | "positive" | "danger" | "dangerSurface" | "focus" | "shadow";
|
|
11
|
+
type ExpectedChalkProps = "client" | "space" | "getAccess" | "entrance" | "defaults" | "displayName" | "features" | "theme" | "pickChatFiles" | "logoUrl" | "spaceName" | "inviteLink" | "layout" | "onLayoutChange" | "onJoined" | "onLeft" | "onEpisodeEnded" | "onParticipantJoined" | "onParticipantLeft" | "onScreenShareStarted" | "onScreenShareStopped" | "onError";
|
|
12
|
+
type HooksAreClosed = Assert<Equal<PublicHooks, ExpectedHooks>>;
|
|
13
|
+
type LayoutIsCanonical = Assert<Equal<SpaceLayout, ExpectedLayout>>;
|
|
14
|
+
type TokensAreClosed = Assert<Equal<keyof ChalkThemeTokens, ExpectedTokenKeys>>;
|
|
15
|
+
type ErrorMirrorsClientEvent = Assert<Equal<NonNullable<ChalkProps["onError"]>, (event: ClientEventMap["error"]) => void>>;
|
|
16
|
+
type ChatFilePickerMirrorsClientType = Assert<Equal<NonNullable<ChalkProps["pickChatFiles"]>, () => Promise<readonly ChatUploadFile[]>>>;
|
|
17
|
+
type NoLegacyStylingProp = Assert<Equal<Extract<keyof ChalkProps, "className" | "containerClassName">, never>>;
|
|
18
|
+
type ChalkPropsAreClosed = Assert<Equal<keyof ChalkProps, ExpectedChalkProps>>;
|
|
19
|
+
export type PublicSurfaceContract = [HooksAreClosed, LayoutIsCanonical, TokensAreClosed, ErrorMirrorsClientEvent, ChatFilePickerMirrorsClientType, NoLegacyStylingProp, ChalkPropsAreClosed];
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=public-surface.contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-surface.contract.d.ts","sourceRoot":"","sources":["../src/public-surface.contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AAEpC,KAAK,MAAM,CAAC,UAAU,SAAS,IAAI,IAAI,UAAU,CAAC;AAClD,KAAK,KAAK,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC;AAExH,KAAK,WAAW,GAAG,OAAO,CAAC,MAAM,OAAO,QAAQ,EAAE,MAAM,MAAM,EAAE,CAAC,CAAC;AAClE,KAAK,aAAa,GAAG,gBAAgB,GAAG,eAAe,GAAG,SAAS,GAAG,iBAAiB,GAAG,UAAU,GAAG,SAAS,GAAG,cAAc,GAAG,eAAe,GAAG,QAAQ,CAAC;AAC/J,KAAK,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,cAAc,CAAC;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/G,KAAK,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,UAAU,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAE/E,MAAM,MAAM,qBAAqB,GAAG,CAAC,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,uBAAuB,EAAE,+BAA+B,EAAE,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;AAE7L,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LocalMedia, MediaSource, Participant as SpaceParticipant, RemoteMedia } from "@q9labsai/chalk-client";
|
|
2
|
+
import type { AudioParticipant } from "../components/audio-output/AudioOutput";
|
|
3
|
+
import type { Participant } from "../components/participant-grid/ParticipantGrid";
|
|
4
|
+
import type { ParticipantListParticipant } from "../components/participants-panel/ParticipantsPanel";
|
|
5
|
+
/** Returns the first participant with a live screen-share track for presentation mode. */
|
|
6
|
+
export declare function toActiveScreenShare(participants: readonly Participant[]): Participant | undefined;
|
|
7
|
+
export declare function toVideoParticipants(participants: readonly SpaceParticipant[], remoteMedia: readonly RemoteMedia[], localId: string, displayName: string, localMedia: Readonly<Record<MediaSource, LocalMedia>>): Participant[];
|
|
8
|
+
export declare function toAudioParticipants(remoteMedia: readonly RemoteMedia[]): AudioParticipant[];
|
|
9
|
+
export declare function toParticipantNames(participants: readonly SpaceParticipant[], localId: string, displayName: string): Readonly<Record<string, string>>;
|
|
10
|
+
export declare function toListParticipants(tiles: readonly Participant[], participantMedia: Readonly<Record<string, SpaceParticipant["media"]>>): ParticipantListParticipant[];
|
|
11
|
+
//# sourceMappingURL=space-selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"space-selectors.d.ts","sourceRoot":"","sources":["../../src/selectors/space-selectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,IAAI,gBAAgB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAEpH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAErG,0FAA0F;AAC1F,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE,GAAG,WAAW,GAAG,SAAS,CAEjG;AAED,wBAAgB,mBAAmB,CAAC,YAAY,EAAE,SAAS,gBAAgB,EAAE,EAAE,WAAW,EAAE,SAAS,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,GAAG,WAAW,EAAE,CAqC9N;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,SAAS,WAAW,EAAE,GAAG,gBAAgB,EAAE,CAU3F;AAED,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,SAAS,gBAAgB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAEpJ;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,EAAE,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,0BAA0B,EAAE,CAYrK"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Capability, SpaceClient, SpaceSnapshot } from "@q9labsai/chalk-client";
|
|
2
|
+
export type PreviewClient = SpaceClient & {
|
|
3
|
+
readonly setSnapshot: (snapshot: SpaceSnapshot) => void;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Vitest-free stand-in client for URL-addressable previews and fixtures. Every
|
|
7
|
+
* command resolves to undefined; state changes only through setSnapshot.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createPreviewClient(initialSnapshot?: SpaceSnapshot): PreviewClient;
|
|
10
|
+
export declare function createSnapshot(capabilities?: readonly Capability[]): SpaceSnapshot;
|
|
11
|
+
//# sourceMappingURL=preview-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-client.d.ts","sourceRoot":"","sources":["../../src/test-support/preview-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAErF,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAA;CAAE,CAAC;AAEtG;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,eAAe,gBAAmB,GAAG,aAAa,CAyCrF;AAED,wBAAgB,cAAc,CAAC,YAAY,GAAE,SAAS,UAAU,EAAiB,GAAG,aAAa,CAiBhG"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { SpaceClient } from "@q9labsai/chalk-client";
|
|
3
|
+
import { CommandErrorAlert } from "../components/composite/CommandErrorAlert";
|
|
4
|
+
import type { SpaceLayout } from "../components/chalk/Chalk";
|
|
5
|
+
import type { EntranceProps, EntranceSettings } from "../components/entrance/Entrance";
|
|
6
|
+
import { JoinFailedScreen } from "../components/join-failed-screen/JoinFailedScreen";
|
|
7
|
+
import { LeaveDialog } from "../components/leave-dialog/LeaveDialog";
|
|
8
|
+
import { type SpacePanel, type SpaceViewProps } from "../components/space-view/SpaceView";
|
|
9
|
+
import { getThemeMode, THEME_PALETTES, THEME_TEXTURES, type ThemeAppearance, type ThemeMode, type ThemePalette, type ThemeTexture } from "../components/theme";
|
|
10
|
+
/**
|
|
11
|
+
* DEV-only adapter for the URL-addressable SDK gallery. It deliberately lives
|
|
12
|
+
* outside every package entrypoint so preview state cannot become product API.
|
|
13
|
+
*/
|
|
14
|
+
export type PreviewEntranceProps = Omit<EntranceProps, "defaults"> & {
|
|
15
|
+
readonly microphone?: boolean;
|
|
16
|
+
readonly camera?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Permission-free fixture adapter. It uses the canonical Entrance surface but
|
|
20
|
+
* never mounts production media acquisition effects, so URL-driven gallery
|
|
21
|
+
* states remain deterministic in browsers, tests, and documentation embeds.
|
|
22
|
+
*/
|
|
23
|
+
export declare function PreviewEntrance({ microphone, camera, defaultDisplayName, joining, error, onJoin, onCancel, spaceName, logoUrl }: PreviewEntranceProps): React.JSX.Element;
|
|
24
|
+
/** The gallery supplies all state and commands; the production Chalk wrapper is never involved. */
|
|
25
|
+
export type PreviewSpaceViewProps = SpaceViewProps & {
|
|
26
|
+
readonly client?: SpaceClient;
|
|
27
|
+
};
|
|
28
|
+
export declare function PreviewSpaceView({ client, ...props }: PreviewSpaceViewProps): React.JSX.Element;
|
|
29
|
+
export declare function PreviewJoiningScreen({ displayName, message, supportingMessages }: {
|
|
30
|
+
readonly displayName?: string;
|
|
31
|
+
readonly message: string;
|
|
32
|
+
readonly supportingMessages?: readonly string[];
|
|
33
|
+
}): React.JSX.Element;
|
|
34
|
+
export declare function PreviewEpisodeEnded({ spaceName, duration, participantCount, onRejoin, onGoHome }: {
|
|
35
|
+
readonly spaceName: string;
|
|
36
|
+
readonly duration: number;
|
|
37
|
+
readonly participantCount: number;
|
|
38
|
+
readonly onRejoin?: () => void;
|
|
39
|
+
readonly onGoHome?: () => void;
|
|
40
|
+
}): React.JSX.Element;
|
|
41
|
+
export { CommandErrorAlert, JoinFailedScreen, LeaveDialog, getThemeMode, THEME_PALETTES, THEME_TEXTURES };
|
|
42
|
+
export type { EntranceSettings, SpaceLayout, SpacePanel, SpaceViewProps, ThemeAppearance, ThemeMode, ThemePalette, ThemeTexture };
|
|
43
|
+
//# sourceMappingURL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
|
|
4
|
+
export type TestClient = SpaceClient & {
|
|
5
|
+
readonly setSnapshot: (snapshot: SpaceSnapshot) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function createTestClient(initialSnapshot?: SpaceSnapshot): TestClient;
|
|
8
|
+
//# sourceMappingURL=test-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-client.d.ts","sourceRoot":"","sources":["../../src/test-support/test-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAA;CAAE,CAAC;AAEnG,wBAAgB,gBAAgB,CAAC,eAAe,gBAAmB,GAAG,UAAU,CAyC/E"}
|
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ThemePalette, ThemeTexture } from "./components/theme";
|
|
3
|
+
/** The default light palette used when no color scheme is requested. */
|
|
4
|
+
export declare const LIGHT_CHALK_THEME_TOKENS: {
|
|
5
|
+
readonly canvas: "#f7f6f2";
|
|
6
|
+
readonly chrome: "#fbfaf7";
|
|
7
|
+
readonly surface: "#ffffff";
|
|
8
|
+
readonly stage: "#eeede8";
|
|
9
|
+
readonly text: "#0c0e12";
|
|
10
|
+
readonly mutedText: "#555b65";
|
|
11
|
+
readonly line: "#deddd7";
|
|
12
|
+
readonly accent: "#315f72";
|
|
13
|
+
readonly accentText: "#ffffff";
|
|
14
|
+
readonly positive: "#4f8c4a";
|
|
15
|
+
readonly danger: "#b94c4c";
|
|
16
|
+
readonly dangerSurface: "#fdf0f0";
|
|
17
|
+
readonly focus: "#74b7cf";
|
|
18
|
+
readonly shadow: "0 22px 54px rgba(12, 14, 18, 0.08)";
|
|
19
|
+
};
|
|
20
|
+
/** The dark palette must be explicit because token values are scoped inline. */
|
|
21
|
+
export declare const DARK_CHALK_THEME_TOKENS: {
|
|
22
|
+
readonly canvas: "#0a0a0b";
|
|
23
|
+
readonly chrome: "#141418";
|
|
24
|
+
readonly surface: "#141418";
|
|
25
|
+
readonly stage: "#101314";
|
|
26
|
+
readonly text: "#fbffff";
|
|
27
|
+
readonly mutedText: "#71717a";
|
|
28
|
+
readonly line: "#1c1c1f";
|
|
29
|
+
readonly accent: "#1bb6a6";
|
|
30
|
+
readonly accentText: "#ffffff";
|
|
31
|
+
readonly positive: "#22c55e";
|
|
32
|
+
readonly danger: "#ef4444";
|
|
33
|
+
readonly dangerSurface: "#7f1d1d";
|
|
34
|
+
readonly focus: "#1bb6a6";
|
|
35
|
+
readonly shadow: "#000000";
|
|
36
|
+
};
|
|
37
|
+
/** Backwards-compatible internal name for the light defaults. */
|
|
38
|
+
export declare const CHALK_THEME_TOKENS: {
|
|
39
|
+
readonly canvas: "#f7f6f2";
|
|
40
|
+
readonly chrome: "#fbfaf7";
|
|
41
|
+
readonly surface: "#ffffff";
|
|
42
|
+
readonly stage: "#eeede8";
|
|
43
|
+
readonly text: "#0c0e12";
|
|
44
|
+
readonly mutedText: "#555b65";
|
|
45
|
+
readonly line: "#deddd7";
|
|
46
|
+
readonly accent: "#315f72";
|
|
47
|
+
readonly accentText: "#ffffff";
|
|
48
|
+
readonly positive: "#4f8c4a";
|
|
49
|
+
readonly danger: "#b94c4c";
|
|
50
|
+
readonly dangerSurface: "#fdf0f0";
|
|
51
|
+
readonly focus: "#74b7cf";
|
|
52
|
+
readonly shadow: "0 22px 54px rgba(12, 14, 18, 0.08)";
|
|
53
|
+
};
|
|
54
|
+
export type ChalkThemeTokens = {
|
|
55
|
+
readonly [Token in keyof typeof CHALK_THEME_TOKENS]: string;
|
|
56
|
+
};
|
|
57
|
+
export type ChalkColorScheme = "light" | "dark" | "system";
|
|
58
|
+
export type ChalkTheme = {
|
|
59
|
+
readonly colorScheme?: ChalkColorScheme;
|
|
60
|
+
readonly palette?: ThemePalette;
|
|
61
|
+
readonly texture?: ThemeTexture;
|
|
62
|
+
readonly accent?: string;
|
|
63
|
+
readonly tokens?: Partial<ChalkThemeTokens>;
|
|
64
|
+
};
|
|
65
|
+
export declare function chalkThemeStyle(theme?: ChalkTheme, colorScheme?: Exclude<ChalkColorScheme, "system">): React.CSSProperties;
|
|
66
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAErE,wEAAwE;AACxE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;CAe3B,CAAC;AAEX,gFAAgF;AAChF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;CAe1B,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAA2B,CAAC;AAE3D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,KAAK,IAAI,MAAM,OAAO,kBAAkB,GAAG,MAAM;CAC5D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE3D,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,gBAAgB,CAAC;IACxC,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC7C,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,aAAa,CAM1H"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAElD"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
export interface ParticipantGradientPreference {
|
|
3
|
+
mode?: "auto" | "custom";
|
|
4
|
+
from?: string;
|
|
5
|
+
to?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ParticipantColorRecipe {
|
|
8
|
+
primary: string;
|
|
9
|
+
secondary: string;
|
|
10
|
+
text: string;
|
|
11
|
+
gradientEnd: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const PARTICIPANT_GRADIENT_PRESETS: readonly [{
|
|
14
|
+
readonly id: "aurora";
|
|
15
|
+
readonly label: "Aurora";
|
|
16
|
+
readonly from: "#0ea5e9";
|
|
17
|
+
readonly to: "#22c55e";
|
|
18
|
+
}, {
|
|
19
|
+
readonly id: "ember";
|
|
20
|
+
readonly label: "Ember";
|
|
21
|
+
readonly from: "#f97316";
|
|
22
|
+
readonly to: "#ef4444";
|
|
23
|
+
}, {
|
|
24
|
+
readonly id: "orchid";
|
|
25
|
+
readonly label: "Orchid";
|
|
26
|
+
readonly from: "#a855f7";
|
|
27
|
+
readonly to: "#ec4899";
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: "cobalt";
|
|
30
|
+
readonly label: "Cobalt";
|
|
31
|
+
readonly from: "#2563eb";
|
|
32
|
+
readonly to: "#14b8a6";
|
|
33
|
+
}, {
|
|
34
|
+
readonly id: "gold";
|
|
35
|
+
readonly label: "Gold";
|
|
36
|
+
readonly from: "#eab308";
|
|
37
|
+
readonly to: "#f97316";
|
|
38
|
+
}, {
|
|
39
|
+
readonly id: "slate";
|
|
40
|
+
readonly label: "Slate";
|
|
41
|
+
readonly from: "#64748b";
|
|
42
|
+
readonly to: "#94a3b8";
|
|
43
|
+
}];
|
|
44
|
+
export declare function getParticipantInitial(name?: string): string;
|
|
45
|
+
export declare function getParticipantInitials(name?: string): string;
|
|
46
|
+
export declare function getParticipantColor(identity?: string, preference?: ParticipantGradientPreference): ParticipantColorRecipe;
|
|
47
|
+
export declare function getParticipantGradient(identity?: string, preference?: ParticipantGradientPreference): string;
|
|
48
|
+
export declare function getParticipantAvatarGradient(identity?: string, preference?: ParticipantGradientPreference): string;
|
|
49
|
+
export declare function getParticipantBorder(identity?: string, preference?: ParticipantGradientPreference): string;
|
|
50
|
+
export declare function getParticipantThemeVariables(identity?: string, preference?: ParticipantGradientPreference): React.CSSProperties;
|
|
51
|
+
export declare function getParticipantAvatarRecipe(identity?: string, preference?: ParticipantGradientPreference): {
|
|
52
|
+
initials: string;
|
|
53
|
+
gradient: string;
|
|
54
|
+
avatarGradient: string;
|
|
55
|
+
darkerAvatarGradient: string;
|
|
56
|
+
color: string;
|
|
57
|
+
border: string;
|
|
58
|
+
facehashColors: string[];
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=colorGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorGenerator.d.ts","sourceRoot":"","sources":["../../src/utils/colorGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,6BAA6B;IAC5C,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AA8BX,wBAAgB,qBAAqB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,wBAAgB,sBAAsB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAK5D;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,SAAU,EAAE,UAAU,CAAC,EAAE,6BAA6B,GAAG,sBAAsB,CAQ1H;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,SAAU,EAAE,UAAU,CAAC,EAAE,6BAA6B,GAAG,MAAM,CAG7G;AAED,wBAAgB,4BAA4B,CAAC,QAAQ,SAAU,EAAE,UAAU,CAAC,EAAE,6BAA6B,GAAG,MAAM,CAEnH;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,SAAU,EAAE,UAAU,CAAC,EAAE,6BAA6B,GAAG,MAAM,CAE3G;AAED,wBAAgB,4BAA4B,CAAC,QAAQ,SAAU,EAAE,UAAU,CAAC,EAAE,6BAA6B,GAAG,KAAK,CAAC,aAAa,CAQhI;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,SAAU,EAAE,UAAU,CAAC,EAAE,6BAA6B;;;;;;;;EAaxG"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { HugeiconsProps } from "@hugeicons/react";
|
|
2
|
+
type IconProps = Omit<HugeiconsProps, "icon">;
|
|
3
|
+
export declare const Alert02Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const ArrowDown01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ArrowLeft01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const ArrowLeft02Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const ArrowRight01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ArrowUp01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Calendar01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const CallEnd01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const Cancel01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const CancelCircleIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const CheckmarkCircle02Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const CircleIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Clock01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const ColumnIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const Copy01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const Crown01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const Download01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const Edit02Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const FileTextIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const GridIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const HandIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const Home01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const Image01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const InformationCircleIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const LayoutGridIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const LayoutTableIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const Link01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare const Loading01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const Mail01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare const Maximize01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare const Message01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const Microphone01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare const MicrophoneOff01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare const Moon02Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const Monitor01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare const MonitorOffIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const MoreHorizontalIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare const MoreVerticalIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const PauseIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare const PictureInPictureIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare const Pin01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const PlayIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const PlusSignIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export declare const Radio01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export declare const RefreshIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare const Search01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export declare const SentIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export declare const Settings01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export declare const Share01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare const Shield01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare const SmileIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare const SparklesIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export declare const SquareIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare const StarIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export declare const Sun02Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export declare const TextIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export declare const ThumbsUpIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export declare const Tick01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare const TickDouble01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare const Upload01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
export declare const UserGroupIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
export declare const UserRemove01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
export declare const Video01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
export declare const VideoOffIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
export declare const VolumeHighIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
export declare const VolumeMute01Icon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export declare const WifiOffIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
export declare const ZoomInIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
export declare const ZoomOutIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export {};
|
|
73
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/utils/icons.tsx"],"names":[],"mappings":"AAsEA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAGvE,KAAK,SAAS,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAO9C,eAAO,MAAM,WAAW,UAJD,SAAS,4CAIqB,CAAC;AACtD,eAAO,MAAM,eAAe,UALL,SAAS,4CAK6B,CAAC;AAC9D,eAAO,MAAM,eAAe,UANL,SAAS,4CAM6B,CAAC;AAC9D,eAAO,MAAM,eAAe,UAPL,SAAS,4CAO6B,CAAC;AAC9D,eAAO,MAAM,gBAAgB,UARN,SAAS,4CAQ+B,CAAC;AAChE,eAAO,MAAM,aAAa,UATH,SAAS,4CASyB,CAAC;AAC1D,eAAO,MAAM,cAAc,UAVJ,SAAS,4CAU2B,CAAC;AAC5D,eAAO,MAAM,aAAa,UAXH,SAAS,4CAWyB,CAAC;AAC1D,eAAO,MAAM,YAAY,UAZF,SAAS,4CAYuB,CAAC;AACxD,eAAO,MAAM,gBAAgB,UAbN,SAAS,4CAa+B,CAAC;A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eAAO,MAAM,YAAY,UA5DF,SAAS,4CA4DuB,CAAC;AACxD,eAAO,MAAM,UAAU,UA7DA,SAAS,4CA6DmB,CAAC;AACpD,eAAO,MAAM,gBAAgB,UA9DN,SAAS,4CA8D+B,CAAC;AAChE,eAAO,MAAM,YAAY,UA/DF,SAAS,4CA+DuB,CAAC;AACxD,eAAO,MAAM,aAAa,UAhEH,SAAS,4CAgEyB,CAAC;AAC1D,eAAO,MAAM,gBAAgB,UAjEN,SAAS,4CAiE+B,CAAC;AAChE,eAAO,MAAM,WAAW,UAlED,SAAS,4CAkEqB,CAAC;AACtD,eAAO,MAAM,YAAY,UAnEF,SAAS,4CAmEuB,CAAC;AACxD,eAAO,MAAM,cAAc,UApEJ,SAAS,4CAoE2B,CAAC;AAC5D,eAAO,MAAM,gBAAgB,UArEN,SAAS,4CAqE+B,CAAC;AAChE,eAAO,MAAM,WAAW,UAtED,SAAS,4CAsEqB,CAAC;AACtD,eAAO,MAAM,UAAU,UAvEA,SAAS,4CAuEmB,CAAC;AACpD,eAAO,MAAM,WAAW,UAxED,SAAS,4CAwEqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
PARTICIPANT_GRADIENT_PRESETS,
|
|
4
|
+
applyThemeToDocument,
|
|
5
|
+
cn,
|
|
6
|
+
getParticipantAvatarGradient,
|
|
7
|
+
getParticipantAvatarRecipe,
|
|
8
|
+
getParticipantBorder,
|
|
9
|
+
getParticipantColor,
|
|
10
|
+
getParticipantGradient,
|
|
11
|
+
getParticipantInitial,
|
|
12
|
+
getParticipantInitials,
|
|
13
|
+
getParticipantThemeVariables,
|
|
14
|
+
resolvePortalThemeFromDocument,
|
|
15
|
+
resolveThemeFromDocument,
|
|
16
|
+
subscribeToThemeChanges
|
|
17
|
+
} from "../chunk-ZEZLA34O.js";
|
|
18
|
+
export {
|
|
19
|
+
PARTICIPANT_GRADIENT_PRESETS,
|
|
20
|
+
applyThemeToDocument,
|
|
21
|
+
cn,
|
|
22
|
+
getParticipantAvatarGradient,
|
|
23
|
+
getParticipantAvatarRecipe,
|
|
24
|
+
getParticipantBorder,
|
|
25
|
+
getParticipantColor,
|
|
26
|
+
getParticipantGradient,
|
|
27
|
+
getParticipantInitial,
|
|
28
|
+
getParticipantInitials,
|
|
29
|
+
getParticipantThemeVariables,
|
|
30
|
+
resolvePortalThemeFromDocument,
|
|
31
|
+
resolveThemeFromDocument,
|
|
32
|
+
subscribeToThemeChanges
|
|
33
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ThemeMode = "light" | "dark";
|
|
2
|
+
interface ResolveThemeOptions {
|
|
3
|
+
defaultTheme?: ThemeMode;
|
|
4
|
+
allowSystem?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const resolveThemeFromDocument: ({ defaultTheme, allowSystem }?: ResolveThemeOptions) => ThemeMode;
|
|
7
|
+
export declare const resolvePortalThemeFromDocument: ({ defaultTheme, allowSystem }?: ResolveThemeOptions) => ThemeMode;
|
|
8
|
+
export declare const applyThemeToDocument: (theme: ThemeMode) => void;
|
|
9
|
+
interface ThemeSubscriptionOptions extends ResolveThemeOptions {
|
|
10
|
+
attributes?: readonly string[];
|
|
11
|
+
}
|
|
12
|
+
export declare const subscribeToThemeChanges: (onThemeChange: (theme: ThemeMode) => void, { defaultTheme, allowSystem, attributes }?: ThemeSubscriptionOptions) => (() => void);
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/utils/theme.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AA0BzC,UAAU,mBAAmB;IAC3B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,wBAAwB,GAAI,gCAAgD,mBAAwB,KAAG,SAWnH,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,gCAAgD,mBAAwB,KAAG,SAOzH,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,OAAO,SAAS,KAAG,IAevD,CAAC;AAEF,UAAU,wBAAyB,SAAQ,mBAAmB;IAC5D,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAChC;AAED,eAAO,MAAM,uBAAuB,GAAI,eAAe,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,EAAE,4CAAkG,wBAA6B,KAAG,CAAC,MAAM,IAAI,CA0D/N,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ChalkWhiteboardV1Element, ChalkWhiteboardV1Event } from "@q9labsai/chalk-client";
|
|
2
|
+
import type { WhiteboardCollaborationEvent, WhiteboardWireElement } from "@q9labsai/chalk-whiteboard";
|
|
3
|
+
export declare function fromWhiteboardWireElement(element: WhiteboardWireElement): ChalkWhiteboardV1Element;
|
|
4
|
+
export declare function toWhiteboardWireElement(element: ChalkWhiteboardV1Element): WhiteboardWireElement;
|
|
5
|
+
export declare function toWhiteboardCollaborationEvent(event: ChalkWhiteboardV1Event): WhiteboardCollaborationEvent;
|
|
6
|
+
//# sourceMappingURL=wire-adapters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire-adapters.d.ts","sourceRoot":"","sources":["../../src/whiteboard/wire-adapters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,KAAK,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEtG,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,qBAAqB,GAAG,wBAAwB,CAUlG;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,wBAAwB,GAAG,qBAAqB,CAUhG;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,sBAAsB,GAAG,4BAA4B,CAkB1G"}
|
package/package.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@q9labsai/chalk-react",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Q9Labs/chalk.git",
|
|
8
|
+
"directory": "sdks/typescript/react"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"type": "module",
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"module": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"typesVersions": {
|
|
19
|
+
"*": {
|
|
20
|
+
"components": [
|
|
21
|
+
"./dist/components/index.d.ts"
|
|
22
|
+
],
|
|
23
|
+
"ui": [
|
|
24
|
+
"./dist/components/ui/index.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"utils": [
|
|
27
|
+
"./dist/utils/index.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"*": [
|
|
30
|
+
"./dist/index.d.ts"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"types": "./dist/index.d.ts",
|
|
37
|
+
"import": "./dist/index.js",
|
|
38
|
+
"require": "./dist/index.js",
|
|
39
|
+
"default": "./dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./components": {
|
|
42
|
+
"types": "./dist/components/index.d.ts",
|
|
43
|
+
"import": "./dist/components/index.js",
|
|
44
|
+
"default": "./dist/components/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./ui": {
|
|
47
|
+
"types": "./dist/components/ui/index.d.ts",
|
|
48
|
+
"import": "./dist/components/ui/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./utils": {
|
|
51
|
+
"types": "./dist/utils/index.d.ts",
|
|
52
|
+
"import": "./dist/utils/index.js"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public",
|
|
57
|
+
"registry": "https://registry.npmjs.org/"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@base-ui/react": "^1.0.0-alpha.11",
|
|
61
|
+
"@hugeicons/core-free-icons": "^3.1.0",
|
|
62
|
+
"@hugeicons/react": "^1.0.16",
|
|
63
|
+
"@q9labsai/chalk-client": "^4.0.0",
|
|
64
|
+
"@q9labsai/chalk-ui": "^4.0.0",
|
|
65
|
+
"@q9labsai/chalk-whiteboard": "^4.0.0",
|
|
66
|
+
"@q9labsai/facehash": "^4.0.0",
|
|
67
|
+
"class-variance-authority": "^0.7.1",
|
|
68
|
+
"clsx": "^2.1.1",
|
|
69
|
+
"sonner": "^2.0.3",
|
|
70
|
+
"tailwind-merge": "^3.6.0"
|
|
71
|
+
},
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@testing-library/dom": "^10.4.1",
|
|
74
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
75
|
+
"@testing-library/react": "^16.3.1",
|
|
76
|
+
"@testing-library/user-event": "^14.6.1",
|
|
77
|
+
"@types/node": "^24.10.1",
|
|
78
|
+
"@types/react": "^19.0.0",
|
|
79
|
+
"@types/react-dom": "^19.0.0",
|
|
80
|
+
"@vitest/browser-playwright": "^4.1.10",
|
|
81
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
82
|
+
"happy-dom": "^20.0.11",
|
|
83
|
+
"jsdom": "^27.4.0",
|
|
84
|
+
"playwright": "^1.57.0",
|
|
85
|
+
"react": "19.2.7",
|
|
86
|
+
"react-dom": "19.2.7",
|
|
87
|
+
"typescript": "^5.7.2",
|
|
88
|
+
"vitest": "^4.1.10"
|
|
89
|
+
},
|
|
90
|
+
"peerDependencies": {
|
|
91
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
92
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
93
|
+
"typescript": "^5"
|
|
94
|
+
},
|
|
95
|
+
"peerDependenciesMeta": {},
|
|
96
|
+
"scripts": {
|
|
97
|
+
"build": "rm -rf ./dist && NODE_ENV=production tsup ./src/index.ts ./src/components/index.ts ./src/components/ui/index.ts ./src/utils/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/chalk-ui --external @q9labsai/chalk-ui/reactions --external @q9labsai/chalk-whiteboard --external @q9labsai/facehash --external @q9labsai/facehash/react --external class-variance-authority --external clsx --external sonner --external tailwind-merge && pnpm run build:fix-use-client && pnpm run build:types",
|
|
98
|
+
"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'];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);}\"",
|
|
99
|
+
"build:types": "rm -f tsconfig.tsbuildinfo && tsc --build tsconfig.json",
|
|
100
|
+
"dev": "tsup ./src/index.ts ./src/components/index.ts ./src/components/ui/index.ts ./src/utils/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/chalk-ui --external @q9labsai/chalk-ui/reactions --external @q9labsai/chalk-whiteboard --external @q9labsai/facehash --external @q9labsai/facehash/react --external class-variance-authority --external clsx --external sonner --external tailwind-merge --watch",
|
|
101
|
+
"test": "pnpm exec vitest run --config ./vitest.config.ts",
|
|
102
|
+
"check-types": "tsc --project tsconfig.check-types.json --noEmit",
|
|
103
|
+
"lint": "pnpm run check:tokens && pnpm exec oxfmt --check . && tsc --project tsconfig.check-types.json --noEmit",
|
|
104
|
+
"check:tokens": "node ./scripts/check-token-reach.mjs",
|
|
105
|
+
"clean": "rm -rf dist"
|
|
106
|
+
}
|
|
107
|
+
}
|