@air-jam/sdk 0.1.4 → 0.9.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 +627 -57
- package/dist/agent-tooling-BSMGBix9.d.cts +123 -0
- package/dist/agent-tooling-BSMGBix9.d.ts +123 -0
- package/dist/agent-tooling.cjs +83 -0
- package/dist/agent-tooling.cjs.map +1 -0
- package/dist/agent-tooling.d.cts +2 -0
- package/dist/agent-tooling.d.ts +2 -0
- package/dist/agent-tooling.js +17 -0
- package/dist/agent-tooling.js.map +1 -0
- package/dist/arcade/bridge/controller.cjs +749 -0
- package/dist/arcade/bridge/controller.cjs.map +1 -0
- package/dist/arcade/bridge/controller.d.cts +85 -0
- package/dist/arcade/bridge/controller.d.ts +85 -0
- package/dist/arcade/bridge/controller.js +33 -0
- package/dist/arcade/bridge/controller.js.map +1 -0
- package/dist/arcade/bridge/host.cjs +421 -0
- package/dist/arcade/bridge/host.cjs.map +1 -0
- package/dist/arcade/bridge/host.d.cts +73 -0
- package/dist/arcade/bridge/host.d.ts +73 -0
- package/dist/arcade/bridge/host.js +25 -0
- package/dist/arcade/bridge/host.js.map +1 -0
- package/dist/arcade/bridge/iframe.cjs +453 -0
- package/dist/arcade/bridge/iframe.cjs.map +1 -0
- package/dist/arcade/bridge/iframe.d.cts +80 -0
- package/dist/arcade/bridge/iframe.d.ts +80 -0
- package/dist/arcade/bridge/iframe.js +28 -0
- package/dist/arcade/bridge/iframe.js.map +1 -0
- package/dist/arcade/bridge.cjs +1067 -0
- package/dist/arcade/bridge.cjs.map +1 -0
- package/dist/arcade/bridge.d.cts +11 -0
- package/dist/arcade/bridge.d.ts +11 -0
- package/dist/arcade/bridge.js +76 -0
- package/dist/arcade/bridge.js.map +1 -0
- package/dist/arcade/host.cjs +488 -0
- package/dist/arcade/host.cjs.map +1 -0
- package/dist/arcade/host.d.cts +19 -0
- package/dist/arcade/host.d.ts +19 -0
- package/dist/arcade/host.js +13 -0
- package/dist/arcade/host.js.map +1 -0
- package/dist/arcade/surface.cjs +113 -0
- package/dist/arcade/surface.cjs.map +1 -0
- package/dist/arcade/surface.d.cts +14 -0
- package/dist/arcade/surface.d.ts +14 -0
- package/dist/arcade/surface.js +27 -0
- package/dist/arcade/surface.js.map +1 -0
- package/dist/arcade/url.cjs +363 -0
- package/dist/arcade/url.cjs.map +1 -0
- package/dist/arcade/url.d.cts +68 -0
- package/dist/arcade/url.d.ts +68 -0
- package/dist/arcade/url.js +28 -0
- package/dist/arcade/url.js.map +1 -0
- package/dist/arcade-runtime-url-BW-MUAOY.d.cts +28 -0
- package/dist/arcade-runtime-url-l8qj01Pg.d.ts +28 -0
- package/dist/arcade-surface-identity-CQxDpn_w.d.cts +16 -0
- package/dist/arcade-surface-identity-CQxDpn_w.d.ts +16 -0
- package/dist/arcade.cjs +1565 -0
- package/dist/arcade.cjs.map +1 -0
- package/dist/arcade.d.cts +18 -0
- package/dist/arcade.d.ts +18 -0
- package/dist/arcade.js +122 -0
- package/dist/arcade.js.map +1 -0
- package/dist/capabilities.cjs +39 -0
- package/dist/capabilities.cjs.map +1 -0
- package/dist/capabilities.d.cts +31 -0
- package/dist/capabilities.d.ts +31 -0
- package/dist/capabilities.js +12 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/chunk-2432OL7L.js +193 -0
- package/dist/chunk-2432OL7L.js.map +1 -0
- package/dist/chunk-2J65FXEP.js +41 -0
- package/dist/chunk-2J65FXEP.js.map +1 -0
- package/dist/chunk-32NYL7XI.js +539 -0
- package/dist/chunk-32NYL7XI.js.map +1 -0
- package/dist/chunk-3USU7GY2.js +54 -0
- package/dist/chunk-3USU7GY2.js.map +1 -0
- package/dist/chunk-BE6Z4SIT.js +65 -0
- package/dist/chunk-BE6Z4SIT.js.map +1 -0
- package/dist/chunk-CQUG24WX.js +249 -0
- package/dist/chunk-CQUG24WX.js.map +1 -0
- package/dist/chunk-D3X4MN4U.js +288 -0
- package/dist/chunk-D3X4MN4U.js.map +1 -0
- package/dist/chunk-EVZJA6RN.js +140 -0
- package/dist/chunk-EVZJA6RN.js.map +1 -0
- package/dist/chunk-HFWRZVZ3.js +1438 -0
- package/dist/chunk-HFWRZVZ3.js.map +1 -0
- package/dist/chunk-IKKDONQL.js +1 -0
- package/dist/chunk-IKKDONQL.js.map +1 -0
- package/dist/chunk-JTF47B56.js +1 -0
- package/dist/chunk-JTF47B56.js.map +1 -0
- package/dist/chunk-LIXPF4P6.js +22 -0
- package/dist/chunk-LIXPF4P6.js.map +1 -0
- package/dist/chunk-MKBASO6X.js +216 -0
- package/dist/chunk-MKBASO6X.js.map +1 -0
- package/dist/chunk-MPDMJIX5.js +1 -0
- package/dist/chunk-MPDMJIX5.js.map +1 -0
- package/dist/chunk-NCL6WJCL.js +91 -0
- package/dist/chunk-NCL6WJCL.js.map +1 -0
- package/dist/chunk-NU5W6VAV.js +126 -0
- package/dist/chunk-NU5W6VAV.js.map +1 -0
- package/dist/chunk-TGRTEWYV.js +195 -0
- package/dist/chunk-TGRTEWYV.js.map +1 -0
- package/dist/chunk-VDRNNGHX.js +184 -0
- package/dist/chunk-VDRNNGHX.js.map +1 -0
- package/dist/chunk-VN5LDWVN.js +32 -0
- package/dist/chunk-VN5LDWVN.js.map +1 -0
- package/dist/chunk-W2VK36RO.js +11 -0
- package/dist/chunk-W2VK36RO.js.map +1 -0
- package/dist/chunk-X24K52DG.js +12 -0
- package/dist/chunk-X24K52DG.js.map +1 -0
- package/dist/chunk-XLUWV45V.js +25 -0
- package/dist/chunk-XLUWV45V.js.map +1 -0
- package/dist/chunk-Y4RAPKKB.js +238 -0
- package/dist/chunk-Y4RAPKKB.js.map +1 -0
- package/dist/chunk-YXHH3MQT.js +230 -0
- package/dist/chunk-YXHH3MQT.js.map +1 -0
- package/dist/chunk-ZLPL2R3R.js +183 -0
- package/dist/chunk-ZLPL2R3R.js.map +1 -0
- package/dist/chunk-ZTQ5SP4H.js +9 -0
- package/dist/chunk-ZTQ5SP4H.js.map +1 -0
- package/dist/controller-Bod8YYr1.d.cts +172 -0
- package/dist/controller-DxVchfiA.d.ts +172 -0
- package/dist/dev-log-events-CVAM29hx.d.cts +123 -0
- package/dist/dev-log-events-CVAM29hx.d.ts +123 -0
- package/dist/handshake-CC_LrK5g.d.cts +31 -0
- package/dist/handshake-CC_LrK5g.d.ts +31 -0
- package/dist/host-8hmq_Sgc.d.cts +109 -0
- package/dist/host-Cw-N6e-5.d.ts +109 -0
- package/dist/index.cjs +8507 -3523
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +676 -1070
- package/dist/index.d.ts +676 -1070
- package/dist/index.js +4890 -3196
- package/dist/index.js.map +1 -1
- package/dist/metadata.cjs +114 -0
- package/dist/metadata.cjs.map +1 -0
- package/dist/metadata.d.cts +95 -0
- package/dist/metadata.d.ts +95 -0
- package/dist/metadata.js +83 -0
- package/dist/metadata.js.map +1 -0
- package/dist/notices-CnGaaS8B.d.ts +38 -0
- package/dist/notices-NyDM5Mtz.d.cts +38 -0
- package/dist/platform-machine.cjs +425 -0
- package/dist/platform-machine.cjs.map +1 -0
- package/dist/platform-machine.d.cts +1183 -0
- package/dist/platform-machine.d.ts +1183 -0
- package/dist/platform-machine.js +309 -0
- package/dist/platform-machine.js.map +1 -0
- package/dist/platform-settings-cuor3i11.d.cts +48 -0
- package/dist/platform-settings-cuor3i11.d.ts +48 -0
- package/dist/prefabs.cjs +36 -0
- package/dist/prefabs.cjs.map +1 -0
- package/dist/prefabs.d.cts +49 -0
- package/dist/prefabs.d.ts +49 -0
- package/dist/prefabs.js +8 -0
- package/dist/prefabs.js.map +1 -0
- package/dist/preview.cjs +2609 -0
- package/dist/preview.cjs.map +1 -0
- package/dist/preview.d.cts +155 -0
- package/dist/preview.d.ts +155 -0
- package/dist/preview.js +1671 -0
- package/dist/preview.js.map +1 -0
- package/dist/protocol.cjs +621 -54
- package/dist/protocol.cjs.map +1 -1
- package/dist/protocol.d.cts +76 -240
- package/dist/protocol.d.ts +76 -240
- package/dist/protocol.js +100 -2
- package/dist/protocol.js.map +1 -1
- package/dist/realtime-client-Cu8yVJFw.d.cts +15 -0
- package/dist/realtime-client-Cu8yVJFw.d.ts +15 -0
- package/dist/release.cjs +143 -0
- package/dist/release.cjs.map +1 -0
- package/dist/release.d.cts +64 -0
- package/dist/release.d.ts +64 -0
- package/dist/release.js +43 -0
- package/dist/release.js.map +1 -0
- package/dist/standard-match-phase-BucA5dYo.d.ts +44 -0
- package/dist/standard-match-phase-U2ra8J-0.d.cts +44 -0
- package/dist/sync-B6QsNrXz.d.cts +125 -0
- package/dist/sync-B6QsNrXz.d.ts +125 -0
- package/dist/ui.cjs +2827 -0
- package/dist/ui.cjs.map +1 -0
- package/dist/ui.d.cts +320 -0
- package/dist/ui.d.ts +320 -0
- package/dist/ui.js +1718 -0
- package/dist/ui.js.map +1 -0
- package/dist/url-policy-C89zxgw9.d.cts +9 -0
- package/dist/url-policy-C89zxgw9.d.ts +9 -0
- package/package.json +149 -11
- package/src/agent/agent-action.ts +304 -0
- package/src/agent/agent-contract.ts +180 -0
- package/src/agent-tooling.ts +20 -0
- package/src/arcade/bridge/controller.ts +15 -0
- package/src/arcade/bridge/host.ts +12 -0
- package/src/arcade/bridge/iframe.ts +61 -0
- package/src/arcade/bridge.ts +3 -0
- package/src/arcade/host.ts +1 -0
- package/src/arcade/surface.ts +4 -0
- package/src/arcade/url.ts +60 -0
- package/src/arcade.ts +4 -0
- package/src/audio/audio-manager.ts +162 -171
- package/src/audio/hooks.tsx +218 -97
- package/src/audio/index.ts +1 -1
- package/src/audio/music.tsx +139 -0
- package/src/capabilities/manifest.ts +71 -0
- package/src/capabilities.ts +12 -0
- package/src/components/connection-status-pill.tsx +55 -0
- package/src/components/controller-player-name-field.tsx +119 -0
- package/src/components/controller-primary-action.tsx +58 -0
- package/src/components/host-mute-button.tsx +49 -0
- package/src/components/join-qr-overlay.tsx +133 -0
- package/src/components/join-url-action-buttons.tsx +95 -0
- package/src/components/join-url-controls.tsx +58 -0
- package/src/components/join-url-field.tsx +52 -0
- package/src/components/lifecycle-action-group.tsx +129 -0
- package/src/components/player-avatar-strip.tsx +65 -0
- package/src/components/player-avatar.tsx +42 -13
- package/src/components/room-qr-code.tsx +125 -0
- package/src/components/runtime-shell-header.tsx +37 -0
- package/src/components/shell-classes.ts +19 -0
- package/src/components/surface-orientation-layout.ts +60 -0
- package/src/components/surface-viewport-layout.ts +268 -0
- package/src/components/surface-viewport.tsx +314 -0
- package/src/components/ui/button.tsx +4 -6
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/volume-controls.tsx +65 -6
- package/src/context/air-jam-context.tsx +209 -161
- package/src/context/index.ts +2 -2
- package/src/context/session-providers.tsx +77 -0
- package/src/context/session-scope.ts +64 -0
- package/src/context/socket-manager.ts +6 -24
- package/src/contracts/v2/bridge.ts +261 -0
- package/src/contracts/v2/handshake.ts +40 -0
- package/src/contracts/v2/index.ts +2 -0
- package/src/dev/browser-log-sink.ts +912 -0
- package/src/diagnostics.ts +128 -0
- package/src/events.ts +7 -34
- package/src/hooks/internal/use-controller-runtime-api.ts +875 -0
- package/src/hooks/internal/use-host-runtime-api.ts +1051 -0
- package/src/hooks/internal/use-runtime-control-contract.ts +15 -0
- package/src/hooks/internal/use-runtime-inspection-contract.ts +16 -0
- package/src/hooks/internal/use-runtime-observability-contract.ts +24 -0
- package/src/hooks/use-air-jam-controller.ts +155 -475
- package/src/hooks/use-air-jam-host.ts +156 -485
- package/src/hooks/use-connection-status.ts +8 -0
- package/src/hooks/use-controller-lifecycle-intents.ts +27 -0
- package/src/hooks/use-controller-lifecycle-permissions.ts +36 -0
- package/src/hooks/use-controller-shell-status.ts +40 -0
- package/src/hooks/use-controller-tick.ts +65 -0
- package/src/hooks/use-controller-toasts.ts +116 -0
- package/src/hooks/use-get-input.ts +8 -5
- package/src/hooks/use-host-arcade-restore.ts +30 -0
- package/src/hooks/use-host-join-controls.ts +152 -0
- package/src/hooks/use-host-tick.ts +171 -0
- package/src/hooks/use-input-writer.ts +83 -0
- package/src/hooks/use-lifecycle-action-group-model.ts +98 -0
- package/src/hooks/use-players.ts +12 -0
- package/src/hooks/use-room.ts +22 -0
- package/src/hooks/use-send-signal.ts +6 -2
- package/src/index.ts +205 -31
- package/src/internal/input-manager.ts +195 -215
- package/src/lifecycle/index.ts +9 -0
- package/src/lifecycle/standard-match-phase.ts +32 -0
- package/src/metadata/manifest.ts +152 -0
- package/src/metadata.ts +12 -0
- package/src/platform-machine.ts +475 -0
- package/src/prefabs/types.ts +82 -0
- package/src/prefabs.ts +12 -0
- package/src/preview/host-workspace.tsx +59 -0
- package/src/preview/identity.ts +66 -0
- package/src/preview/layout.ts +223 -0
- package/src/preview/manager.ts +577 -0
- package/src/preview/messages.ts +26 -0
- package/src/preview/ownership.ts +81 -0
- package/src/preview/url.ts +117 -0
- package/src/preview/window.tsx +490 -0
- package/src/preview/workspace.tsx +678 -0
- package/src/preview.ts +42 -0
- package/src/protocol/arcade-platform-actions.ts +29 -0
- package/src/protocol/controller.ts +187 -0
- package/src/protocol/core.ts +23 -0
- package/src/protocol/dev-log-events.ts +222 -0
- package/src/protocol/errors.ts +21 -0
- package/src/protocol/host-grant.ts +185 -0
- package/src/protocol/host.ts +138 -0
- package/src/protocol/notices.ts +43 -0
- package/src/protocol/signals.ts +38 -0
- package/src/protocol/socket-events.ts +154 -0
- package/src/protocol/sync.ts +121 -0
- package/src/protocol/url-policy.ts +63 -0
- package/src/protocol.ts +12 -386
- package/src/qrcode.d.ts +16 -0
- package/src/release.ts +99 -0
- package/src/runtime/air-jam-config.ts +287 -0
- package/src/runtime/air-jam-error-boundary.tsx +672 -0
- package/src/runtime/arcade-bridge-request-surface.ts +15 -0
- package/src/runtime/arcade-runtime-url.ts +95 -0
- package/src/runtime/arcade-surface-identity.ts +16 -0
- package/src/runtime/contracts/control.ts +68 -0
- package/src/runtime/contracts/inspection.ts +165 -0
- package/src/runtime/contracts/observability.ts +94 -0
- package/src/runtime/controller-bridge.ts +451 -0
- package/src/runtime/controller-identity.ts +132 -0
- package/src/runtime/controller-presentation.ts +24 -0
- package/src/runtime/controller-realtime-client.ts +591 -0
- package/src/runtime/create-air-jam-app.tsx +260 -0
- package/src/runtime/dev-runtime-events.ts +36 -0
- package/src/runtime/embedded-runtime-adapters.ts +68 -0
- package/src/runtime/host-bridge.ts +388 -0
- package/src/runtime/host-realtime-client.ts +550 -0
- package/src/runtime/iframe-bridge.ts +135 -0
- package/src/runtime/realtime-client.ts +20 -0
- package/src/runtime/router-basename.ts +25 -0
- package/src/runtime/runtime-owner-contexts.tsx +4 -0
- package/src/runtime/runtime-session-params.ts +169 -0
- package/src/runtime/sdk-version.ts +6 -0
- package/src/runtime/session-runtimes.tsx +188 -0
- package/src/runtime/validate-arcade-bridge-attach.ts +14 -0
- package/src/runtime-control.ts +10 -0
- package/src/runtime-inspection.ts +14 -0
- package/src/runtime-observability.ts +9 -0
- package/src/settings/platform-settings-bridge.ts +336 -0
- package/src/settings/platform-settings-runtime.tsx +387 -0
- package/src/settings/platform-settings.ts +288 -0
- package/src/state/connection-store.ts +80 -12
- package/src/store/air-jam-store-domain-constants.ts +4 -0
- package/src/store/create-air-jam-store.ts +1094 -227
- package/src/styles.css +4 -38
- package/src/ui.ts +29 -0
- package/src/utils/is-rpc-serializable.ts +56 -0
- package/src/utils/player-avatar-url.ts +48 -0
- package/src/utils/url-builder.ts +7 -0
- package/dist/.tsbuildinfo +0 -1
- package/dist/chunk-B5DURUWT.js +0 -80
- package/dist/chunk-B5DURUWT.js.map +0 -1
- package/src/AirJamClient.ts +0 -224
- package/src/audio/volume-store.ts +0 -124
- package/src/components/controller-shell.tsx +0 -346
- package/src/components/host-shell.tsx +0 -520
- package/src/components/qr-scanner-dialog.tsx +0 -373
- package/src/components/ui/alert.tsx +0 -66
- package/src/components/ui/avatar.tsx +0 -46
- package/src/components/ui/badge.tsx +0 -47
- package/src/components/ui/card.tsx +0 -92
- package/src/components/ui/dialog.tsx +0 -122
- package/src/components/ui/tabs.tsx +0 -64
- package/src/hooks/use-air-jam-shell.ts +0 -379
- package/src/hooks/use-fullscreen.ts +0 -108
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
import { Html5Qrcode } from "html5-qrcode";
|
|
2
|
-
import type { JSX } from "react";
|
|
3
|
-
import { useEffect, useRef, useState } from "react";
|
|
4
|
-
import { roomCodeSchema } from "../protocol";
|
|
5
|
-
import { urlBuilder } from "../utils/url-builder";
|
|
6
|
-
import { Button } from "./ui/button";
|
|
7
|
-
|
|
8
|
-
interface QRScannerDialogProps {
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
onClose: () => void;
|
|
11
|
-
onScan: (roomCode: string) => void;
|
|
12
|
-
currentRoomId?: string | null;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Extracts room code from a scanned URL or text.
|
|
17
|
-
* Supports formats like:
|
|
18
|
-
* - http://host/controller?room=CODE
|
|
19
|
-
* - https://host/controller?room=CODE
|
|
20
|
-
* - Just the room code itself
|
|
21
|
-
*/
|
|
22
|
-
const extractRoomCode = (text: string): string | null => {
|
|
23
|
-
try {
|
|
24
|
-
// Try to parse as URL
|
|
25
|
-
const url = new URL(text);
|
|
26
|
-
const roomParam = url.searchParams.get("room");
|
|
27
|
-
if (roomParam) {
|
|
28
|
-
const parsed = roomCodeSchema.safeParse(roomParam.toUpperCase());
|
|
29
|
-
if (parsed.success) {
|
|
30
|
-
return parsed.data;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
} catch {
|
|
34
|
-
// Not a URL, try as direct room code
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Try as direct room code
|
|
38
|
-
const parsed = roomCodeSchema.safeParse(text.trim().toUpperCase());
|
|
39
|
-
if (parsed.success) {
|
|
40
|
-
return parsed.data;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return null;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export const QRScannerDialog = ({
|
|
47
|
-
isOpen,
|
|
48
|
-
onClose,
|
|
49
|
-
onScan,
|
|
50
|
-
currentRoomId,
|
|
51
|
-
}: QRScannerDialogProps): JSX.Element | null => {
|
|
52
|
-
const [code, setCode] = useState("");
|
|
53
|
-
const [isCameraAvailable, setIsCameraAvailable] = useState(false);
|
|
54
|
-
const [joinUrl, setJoinUrl] = useState<string>("");
|
|
55
|
-
const [copied, setCopied] = useState(false);
|
|
56
|
-
const scannerRef = useRef<Html5Qrcode | null>(null);
|
|
57
|
-
const inputRef = useRef<HTMLInputElement>(null);
|
|
58
|
-
const prevIsOpenRef = useRef(false);
|
|
59
|
-
|
|
60
|
-
// Reset state when dialog opens and build URL
|
|
61
|
-
useEffect(() => {
|
|
62
|
-
if (isOpen && !prevIsOpenRef.current) {
|
|
63
|
-
// Prefill with current room code if available
|
|
64
|
-
const initialCode = currentRoomId || "";
|
|
65
|
-
setTimeout(() => {
|
|
66
|
-
setIsCameraAvailable(false);
|
|
67
|
-
setCode(initialCode);
|
|
68
|
-
inputRef.current?.focus();
|
|
69
|
-
inputRef.current?.select();
|
|
70
|
-
}, 0);
|
|
71
|
-
}
|
|
72
|
-
prevIsOpenRef.current = isOpen;
|
|
73
|
-
}, [isOpen, currentRoomId]);
|
|
74
|
-
|
|
75
|
-
// Build join URL when code changes
|
|
76
|
-
useEffect(() => {
|
|
77
|
-
const buildUrl = async (): Promise<void> => {
|
|
78
|
-
const trimmed = code.trim().toUpperCase();
|
|
79
|
-
const parsed = roomCodeSchema.safeParse(trimmed);
|
|
80
|
-
if (parsed.success) {
|
|
81
|
-
try {
|
|
82
|
-
const url = await urlBuilder.buildControllerUrl(parsed.data);
|
|
83
|
-
setJoinUrl(url);
|
|
84
|
-
} catch {
|
|
85
|
-
setJoinUrl("");
|
|
86
|
-
}
|
|
87
|
-
} else {
|
|
88
|
-
setJoinUrl("");
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
buildUrl();
|
|
92
|
-
}, [code]);
|
|
93
|
-
|
|
94
|
-
// Clean up scanner when dialog closes
|
|
95
|
-
useEffect(() => {
|
|
96
|
-
if (!isOpen) {
|
|
97
|
-
setTimeout(() => {
|
|
98
|
-
setIsCameraAvailable(false);
|
|
99
|
-
}, 0);
|
|
100
|
-
if (scannerRef.current) {
|
|
101
|
-
const scanner = scannerRef.current;
|
|
102
|
-
scanner
|
|
103
|
-
.stop()
|
|
104
|
-
.catch(() => {
|
|
105
|
-
// Ignore errors
|
|
106
|
-
})
|
|
107
|
-
.finally(() => {
|
|
108
|
-
try {
|
|
109
|
-
scanner.clear();
|
|
110
|
-
} catch {
|
|
111
|
-
// Ignore errors
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
scannerRef.current = null;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}, [isOpen]);
|
|
118
|
-
|
|
119
|
-
// Try to start camera (silently fail if not available)
|
|
120
|
-
useEffect(() => {
|
|
121
|
-
if (!isOpen) {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const containerId = "qr-reader";
|
|
126
|
-
let scanner: Html5Qrcode | null = null;
|
|
127
|
-
let scannerRunning = false;
|
|
128
|
-
let mounted = true;
|
|
129
|
-
|
|
130
|
-
const startScanning = async (): Promise<void> => {
|
|
131
|
-
try {
|
|
132
|
-
const container = document.getElementById(containerId);
|
|
133
|
-
if (!container) {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const rect = container.getBoundingClientRect();
|
|
138
|
-
if (rect.width === 0 || rect.height === 0) {
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
scanner = new Html5Qrcode(containerId);
|
|
143
|
-
scannerRef.current = scanner;
|
|
144
|
-
|
|
145
|
-
// Try to get available cameras
|
|
146
|
-
let cameraId: string | null = null;
|
|
147
|
-
try {
|
|
148
|
-
const devices = await Html5Qrcode.getCameras();
|
|
149
|
-
if (devices && devices.length > 0) {
|
|
150
|
-
const backCamera = devices.find(
|
|
151
|
-
(d) =>
|
|
152
|
-
d.label.toLowerCase().includes("back") ||
|
|
153
|
-
d.label.toLowerCase().includes("rear"),
|
|
154
|
-
);
|
|
155
|
-
const envCamera = devices.find((d) => {
|
|
156
|
-
const label = d.label.toLowerCase();
|
|
157
|
-
return (
|
|
158
|
-
label.includes("environment") || label.includes("facing back")
|
|
159
|
-
);
|
|
160
|
-
});
|
|
161
|
-
cameraId = (envCamera || backCamera || devices[0])?.id || null;
|
|
162
|
-
}
|
|
163
|
-
} catch {
|
|
164
|
-
// Ignore camera enumeration errors
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
const config = cameraId
|
|
168
|
-
? { deviceId: { exact: cameraId } }
|
|
169
|
-
: { facingMode: "environment" };
|
|
170
|
-
|
|
171
|
-
await scanner.start(
|
|
172
|
-
config,
|
|
173
|
-
{
|
|
174
|
-
fps: 10,
|
|
175
|
-
qrbox: (viewfinderWidth, viewfinderHeight) => {
|
|
176
|
-
const minEdge = Math.min(viewfinderWidth, viewfinderHeight);
|
|
177
|
-
const qrboxSize = Math.min(250, minEdge * 0.8);
|
|
178
|
-
return {
|
|
179
|
-
width: qrboxSize,
|
|
180
|
-
height: qrboxSize,
|
|
181
|
-
};
|
|
182
|
-
},
|
|
183
|
-
aspectRatio: 1.0,
|
|
184
|
-
},
|
|
185
|
-
(decodedText) => {
|
|
186
|
-
if (!mounted) return;
|
|
187
|
-
const roomCode = extractRoomCode(decodedText);
|
|
188
|
-
if (roomCode) {
|
|
189
|
-
setCode(roomCode);
|
|
190
|
-
// Stop scanner after successful scan
|
|
191
|
-
scannerRunning = false;
|
|
192
|
-
scanner
|
|
193
|
-
?.stop()
|
|
194
|
-
.catch(() => {})
|
|
195
|
-
.finally(() => {
|
|
196
|
-
if (mounted) {
|
|
197
|
-
setIsCameraAvailable(false);
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
() => {
|
|
203
|
-
// Ignore scanning errors
|
|
204
|
-
},
|
|
205
|
-
);
|
|
206
|
-
scannerRunning = true;
|
|
207
|
-
if (mounted) {
|
|
208
|
-
setIsCameraAvailable(true);
|
|
209
|
-
}
|
|
210
|
-
} catch {
|
|
211
|
-
// Silently fail - camera not available or permission denied
|
|
212
|
-
if (mounted) {
|
|
213
|
-
setIsCameraAvailable(false);
|
|
214
|
-
}
|
|
215
|
-
if (scanner) {
|
|
216
|
-
try {
|
|
217
|
-
scanner.clear();
|
|
218
|
-
} catch {
|
|
219
|
-
// Ignore
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
scannerRef.current = null;
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
// Small delay to ensure DOM is ready
|
|
227
|
-
const timeoutId = setTimeout(() => {
|
|
228
|
-
startScanning();
|
|
229
|
-
}, 200);
|
|
230
|
-
|
|
231
|
-
return () => {
|
|
232
|
-
mounted = false;
|
|
233
|
-
clearTimeout(timeoutId);
|
|
234
|
-
if (scanner && scannerRunning) {
|
|
235
|
-
scanner
|
|
236
|
-
.stop()
|
|
237
|
-
.catch(() => {})
|
|
238
|
-
.finally(() => {
|
|
239
|
-
try {
|
|
240
|
-
scanner?.clear();
|
|
241
|
-
} catch {
|
|
242
|
-
// Ignore
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
} else if (scanner) {
|
|
246
|
-
try {
|
|
247
|
-
scanner.clear();
|
|
248
|
-
} catch {
|
|
249
|
-
// Ignore
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
scannerRef.current = null;
|
|
253
|
-
};
|
|
254
|
-
}, [isOpen]);
|
|
255
|
-
|
|
256
|
-
const handleSubmit = (): void => {
|
|
257
|
-
const trimmed = code.trim().toUpperCase();
|
|
258
|
-
const parsed = roomCodeSchema.safeParse(trimmed);
|
|
259
|
-
|
|
260
|
-
if (parsed.success) {
|
|
261
|
-
onScan(parsed.data);
|
|
262
|
-
onClose();
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
const handleInputFocus = (e: React.FocusEvent<HTMLInputElement>): void => {
|
|
267
|
-
e.target.select();
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>): void => {
|
|
271
|
-
setCode(e.target.value.toUpperCase());
|
|
272
|
-
setCopied(false);
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
const handleCopyUrl = async (): Promise<void> => {
|
|
276
|
-
if (!joinUrl) return;
|
|
277
|
-
try {
|
|
278
|
-
await navigator.clipboard.writeText(joinUrl);
|
|
279
|
-
setCopied(true);
|
|
280
|
-
setTimeout(() => setCopied(false), 2000);
|
|
281
|
-
} catch {
|
|
282
|
-
// Fallback for older browsers
|
|
283
|
-
const textArea = document.createElement("textarea");
|
|
284
|
-
textArea.value = joinUrl;
|
|
285
|
-
textArea.style.position = "fixed";
|
|
286
|
-
textArea.style.opacity = "0";
|
|
287
|
-
document.body.appendChild(textArea);
|
|
288
|
-
textArea.select();
|
|
289
|
-
try {
|
|
290
|
-
document.execCommand("copy");
|
|
291
|
-
setCopied(true);
|
|
292
|
-
setTimeout(() => setCopied(false), 2000);
|
|
293
|
-
} catch {
|
|
294
|
-
// Ignore
|
|
295
|
-
}
|
|
296
|
-
document.body.removeChild(textArea);
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
if (!isOpen) {
|
|
301
|
-
return null;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
const isValid = code.trim().length > 0;
|
|
305
|
-
|
|
306
|
-
return (
|
|
307
|
-
<div className="bg-background fixed inset-0 z-50 flex flex-col items-center justify-center">
|
|
308
|
-
{/* Camera view (if available) */}
|
|
309
|
-
<div className="flex flex-1 flex-col items-center justify-center">
|
|
310
|
-
{isCameraAvailable && (
|
|
311
|
-
<div className="relative flex aspect-square w-full items-center justify-center overflow-hidden p-6">
|
|
312
|
-
<div
|
|
313
|
-
id="qr-reader"
|
|
314
|
-
className="h-full w-full overflow-hidden rounded-lg bg-black"
|
|
315
|
-
/>
|
|
316
|
-
</div>
|
|
317
|
-
)}
|
|
318
|
-
|
|
319
|
-
{/* Input field */}
|
|
320
|
-
<div className="w-full max-w-md px-6">
|
|
321
|
-
<input
|
|
322
|
-
ref={inputRef}
|
|
323
|
-
type="text"
|
|
324
|
-
value={code}
|
|
325
|
-
onChange={handleInputChange}
|
|
326
|
-
onFocus={handleInputFocus}
|
|
327
|
-
onKeyDown={(e) => {
|
|
328
|
-
if (e.key === "Enter" && isValid) {
|
|
329
|
-
handleSubmit();
|
|
330
|
-
}
|
|
331
|
-
}}
|
|
332
|
-
placeholder="Enter room code"
|
|
333
|
-
className="border-border bg-background focus:ring-primary focus:border-primary w-full rounded-lg border-2 px-6 py-4 text-center font-mono text-2xl focus:ring-2 focus:outline-none"
|
|
334
|
-
autoComplete="off"
|
|
335
|
-
autoCapitalize="characters"
|
|
336
|
-
/>
|
|
337
|
-
</div>
|
|
338
|
-
{/* URL Display */}
|
|
339
|
-
{joinUrl && (
|
|
340
|
-
<div className="mt-4 w-full max-w-md px-6 pb-2">
|
|
341
|
-
<button
|
|
342
|
-
type="button"
|
|
343
|
-
onClick={handleCopyUrl}
|
|
344
|
-
className="text-muted-foreground hover:text-foreground bg-muted/50 hover:bg-muted w-full rounded-lg px-4 py-3 text-center font-mono text-xs break-all transition-colors"
|
|
345
|
-
>
|
|
346
|
-
{copied ? "✓ Copied!" : joinUrl}
|
|
347
|
-
</button>
|
|
348
|
-
</div>
|
|
349
|
-
)}
|
|
350
|
-
</div>
|
|
351
|
-
|
|
352
|
-
{/* Buttons */}
|
|
353
|
-
<div className="flex w-full max-w-md gap-4 px-6 pb-6">
|
|
354
|
-
<Button
|
|
355
|
-
type="button"
|
|
356
|
-
variant="outline"
|
|
357
|
-
onClick={onClose}
|
|
358
|
-
className="flex-1 py-6"
|
|
359
|
-
>
|
|
360
|
-
Cancel
|
|
361
|
-
</Button>
|
|
362
|
-
<Button
|
|
363
|
-
type="button"
|
|
364
|
-
onClick={handleSubmit}
|
|
365
|
-
disabled={!isValid}
|
|
366
|
-
className="flex-1 py-6"
|
|
367
|
-
>
|
|
368
|
-
Connect
|
|
369
|
-
</Button>
|
|
370
|
-
</div>
|
|
371
|
-
</div>
|
|
372
|
-
);
|
|
373
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
import { cn } from "../../utils/cn";
|
|
5
|
-
|
|
6
|
-
const alertVariants = cva(
|
|
7
|
-
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default: "bg-card text-card-foreground",
|
|
12
|
-
destructive:
|
|
13
|
-
"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
defaultVariants: {
|
|
17
|
-
variant: "default",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
function Alert({
|
|
23
|
-
className,
|
|
24
|
-
variant,
|
|
25
|
-
...props
|
|
26
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {
|
|
27
|
-
return (
|
|
28
|
-
<div
|
|
29
|
-
data-slot="alert"
|
|
30
|
-
role="alert"
|
|
31
|
-
className={cn(alertVariants({ variant }), className)}
|
|
32
|
-
{...props}
|
|
33
|
-
/>
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {
|
|
38
|
-
return (
|
|
39
|
-
<div
|
|
40
|
-
data-slot="alert-title"
|
|
41
|
-
className={cn(
|
|
42
|
-
"col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
|
|
43
|
-
className,
|
|
44
|
-
)}
|
|
45
|
-
{...props}
|
|
46
|
-
/>
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function AlertDescription({
|
|
51
|
-
className,
|
|
52
|
-
...props
|
|
53
|
-
}: React.ComponentProps<"div">) {
|
|
54
|
-
return (
|
|
55
|
-
<div
|
|
56
|
-
data-slot="alert-description"
|
|
57
|
-
className={cn(
|
|
58
|
-
"text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
|
|
59
|
-
className,
|
|
60
|
-
)}
|
|
61
|
-
{...props}
|
|
62
|
-
/>
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { Alert, AlertDescription, AlertTitle };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { cn } from "../../utils/cn";
|
|
3
|
-
|
|
4
|
-
const Avatar = React.forwardRef<
|
|
5
|
-
HTMLDivElement,
|
|
6
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
7
|
-
>(({ className, ...props }, ref) => (
|
|
8
|
-
<div
|
|
9
|
-
ref={ref}
|
|
10
|
-
className={cn(
|
|
11
|
-
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
12
|
-
className,
|
|
13
|
-
)}
|
|
14
|
-
{...props}
|
|
15
|
-
/>
|
|
16
|
-
));
|
|
17
|
-
Avatar.displayName = "Avatar";
|
|
18
|
-
|
|
19
|
-
const AvatarImage = React.forwardRef<
|
|
20
|
-
HTMLImageElement,
|
|
21
|
-
React.ImgHTMLAttributes<HTMLImageElement>
|
|
22
|
-
>(({ className, ...props }, ref) => (
|
|
23
|
-
<img
|
|
24
|
-
ref={ref}
|
|
25
|
-
className={cn("aspect-square h-full w-full", className)}
|
|
26
|
-
{...props}
|
|
27
|
-
/>
|
|
28
|
-
));
|
|
29
|
-
AvatarImage.displayName = "AvatarImage";
|
|
30
|
-
|
|
31
|
-
const AvatarFallback = React.forwardRef<
|
|
32
|
-
HTMLDivElement,
|
|
33
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
34
|
-
>(({ className, ...props }, ref) => (
|
|
35
|
-
<div
|
|
36
|
-
ref={ref}
|
|
37
|
-
className={cn(
|
|
38
|
-
"bg-muted flex h-full w-full items-center justify-center rounded-full",
|
|
39
|
-
className,
|
|
40
|
-
)}
|
|
41
|
-
{...props}
|
|
42
|
-
/>
|
|
43
|
-
));
|
|
44
|
-
AvatarFallback.displayName = "AvatarFallback";
|
|
45
|
-
|
|
46
|
-
export { Avatar, AvatarFallback, AvatarImage };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react-refresh/only-export-components */
|
|
2
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
-
import { cva, type VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
|
|
6
|
-
import { cn } from "../../utils/cn";
|
|
7
|
-
|
|
8
|
-
const badgeVariants = cva(
|
|
9
|
-
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
10
|
-
{
|
|
11
|
-
variants: {
|
|
12
|
-
variant: {
|
|
13
|
-
default:
|
|
14
|
-
"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
15
|
-
secondary:
|
|
16
|
-
"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
17
|
-
destructive:
|
|
18
|
-
"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
19
|
-
outline:
|
|
20
|
-
"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
variant: "default",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
function Badge({
|
|
30
|
-
className,
|
|
31
|
-
variant,
|
|
32
|
-
asChild = false,
|
|
33
|
-
...props
|
|
34
|
-
}: React.ComponentProps<"span"> &
|
|
35
|
-
VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
|
|
36
|
-
const Comp = asChild ? Slot : "span";
|
|
37
|
-
|
|
38
|
-
return (
|
|
39
|
-
<Comp
|
|
40
|
-
data-slot="badge"
|
|
41
|
-
className={cn(badgeVariants({ variant }), className)}
|
|
42
|
-
{...props}
|
|
43
|
-
/>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export { Badge, badgeVariants };
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
import { cn } from "../../utils/cn";
|
|
4
|
-
|
|
5
|
-
function Card({ className, ...props }: React.ComponentProps<"div">) {
|
|
6
|
-
return (
|
|
7
|
-
<div
|
|
8
|
-
data-slot="card"
|
|
9
|
-
className={cn(
|
|
10
|
-
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
|
11
|
-
className,
|
|
12
|
-
)}
|
|
13
|
-
{...props}
|
|
14
|
-
/>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
|
|
19
|
-
return (
|
|
20
|
-
<div
|
|
21
|
-
data-slot="card-header"
|
|
22
|
-
className={cn(
|
|
23
|
-
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
24
|
-
className,
|
|
25
|
-
)}
|
|
26
|
-
{...props}
|
|
27
|
-
/>
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
|
|
32
|
-
return (
|
|
33
|
-
<div
|
|
34
|
-
data-slot="card-title"
|
|
35
|
-
className={cn("leading-none font-semibold", className)}
|
|
36
|
-
{...props}
|
|
37
|
-
/>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
|
|
42
|
-
return (
|
|
43
|
-
<div
|
|
44
|
-
data-slot="card-description"
|
|
45
|
-
className={cn("text-muted-foreground text-sm", className)}
|
|
46
|
-
{...props}
|
|
47
|
-
/>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function CardAction({ className, ...props }: React.ComponentProps<"div">) {
|
|
52
|
-
return (
|
|
53
|
-
<div
|
|
54
|
-
data-slot="card-action"
|
|
55
|
-
className={cn(
|
|
56
|
-
"col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
57
|
-
className,
|
|
58
|
-
)}
|
|
59
|
-
{...props}
|
|
60
|
-
/>
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function CardContent({ className, ...props }: React.ComponentProps<"div">) {
|
|
65
|
-
return (
|
|
66
|
-
<div
|
|
67
|
-
data-slot="card-content"
|
|
68
|
-
className={cn("px-6", className)}
|
|
69
|
-
{...props}
|
|
70
|
-
/>
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
|
|
75
|
-
return (
|
|
76
|
-
<div
|
|
77
|
-
data-slot="card-footer"
|
|
78
|
-
className={cn("flex items-center px-6 [.border-t]:pt-6", className)}
|
|
79
|
-
{...props}
|
|
80
|
-
/>
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export {
|
|
85
|
-
Card,
|
|
86
|
-
CardAction,
|
|
87
|
-
CardContent,
|
|
88
|
-
CardDescription,
|
|
89
|
-
CardFooter,
|
|
90
|
-
CardHeader,
|
|
91
|
-
CardTitle,
|
|
92
|
-
};
|