@epicbagel/saas-kit 1.2.3 → 1.3.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 (58) hide show
  1. package/README.md +59 -0
  2. package/dist/chunk-2TKLS73N.js +121 -0
  3. package/dist/chunk-4UUTKR3V.cjs +53 -0
  4. package/dist/chunk-BTHYGHOH.cjs +143 -0
  5. package/dist/chunk-GRY77463.cjs +121 -0
  6. package/dist/chunk-HHV4G77I.js +55 -0
  7. package/dist/{chunk-KYQPX754.js → chunk-HRLP4BHJ.js} +7 -7
  8. package/dist/{chunk-N6V3DDKU.cjs → chunk-IH3COANJ.cjs} +7 -7
  9. package/dist/chunk-JTI4244T.js +143 -0
  10. package/dist/chunk-QEJ2STIV.js +53 -0
  11. package/dist/chunk-VLXPLKFR.cjs +55 -0
  12. package/dist/primitives/activity-feed.cjs +3 -3
  13. package/dist/primitives/activity-feed.js +4 -4
  14. package/dist/primitives/board-view.cjs +6 -6
  15. package/dist/primitives/board-view.js +5 -5
  16. package/dist/primitives/chat.cjs +14 -14
  17. package/dist/primitives/chat.js +12 -12
  18. package/dist/primitives/code-block.cjs +5 -50
  19. package/dist/primitives/code-block.js +5 -50
  20. package/dist/primitives/connection.cjs +6 -6
  21. package/dist/primitives/connection.js +7 -7
  22. package/dist/primitives/copy-button.cjs +3 -3
  23. package/dist/primitives/copy-button.js +2 -2
  24. package/dist/primitives/document-preview.cjs +54 -0
  25. package/dist/primitives/document-preview.d.cts +30 -0
  26. package/dist/primitives/document-preview.d.ts +30 -0
  27. package/dist/primitives/document-preview.js +54 -0
  28. package/dist/primitives/editable-list.cjs +1 -1
  29. package/dist/primitives/editable-list.js +1 -1
  30. package/dist/primitives/file-dropzone.cjs +3 -3
  31. package/dist/primitives/file-dropzone.js +2 -2
  32. package/dist/primitives/file-preview-internals.cjs +20 -0
  33. package/dist/primitives/file-preview-internals.d.cts +44 -0
  34. package/dist/primitives/file-preview-internals.d.ts +44 -0
  35. package/dist/primitives/file-preview-internals.js +20 -0
  36. package/dist/primitives/file-preview.cjs +327 -0
  37. package/dist/primitives/file-preview.d.cts +92 -0
  38. package/dist/primitives/file-preview.d.ts +92 -0
  39. package/dist/primitives/file-preview.js +327 -0
  40. package/dist/primitives/filter-bar.cjs +4 -4
  41. package/dist/primitives/filter-bar.js +3 -3
  42. package/dist/primitives/image.cjs +4 -48
  43. package/dist/primitives/image.js +3 -47
  44. package/dist/primitives/resource-list.cjs +6 -6
  45. package/dist/primitives/resource-list.js +5 -5
  46. package/dist/primitives/responsive-dialog.cjs +26 -142
  47. package/dist/primitives/responsive-dialog.js +13 -129
  48. package/dist/primitives/section.cjs +2 -2
  49. package/dist/primitives/section.js +3 -3
  50. package/dist/primitives/switch-field.cjs +2 -2
  51. package/dist/primitives/switch-field.js +3 -3
  52. package/package.json +21 -1
  53. package/dist/{chunk-6OTAGP2I.cjs → chunk-KADJ56AH.cjs} +2 -2
  54. package/dist/{chunk-EHKMVJ6O.js → chunk-M7FYGAGO.js} +3 -3
  55. package/dist/{chunk-PVZ4JGDU.js → chunk-MLHNYRFX.js} +6 -6
  56. package/dist/{chunk-PWOQMTPX.js → chunk-NW3OWKBN.js} +3 -3
  57. package/dist/{chunk-CYH63OCL.cjs → chunk-SGW4FWBX.cjs} +6 -6
  58. package/dist/{chunk-ENJNZ323.cjs → chunk-VKIGJNJR.cjs} +2 -2
@@ -0,0 +1,143 @@
1
+ "use client";
2
+ import {
3
+ Drawer,
4
+ DrawerClose,
5
+ DrawerContent,
6
+ DrawerDescription,
7
+ DrawerFooter,
8
+ DrawerHeader,
9
+ DrawerTitle,
10
+ DrawerTrigger
11
+ } from "./chunk-4HWCNRK4.js";
12
+ import {
13
+ Dialog,
14
+ DialogClose,
15
+ DialogContent,
16
+ DialogDescription,
17
+ DialogFooter,
18
+ DialogHeader,
19
+ DialogTitle,
20
+ DialogTrigger
21
+ } from "./chunk-3QT5VYZ3.js";
22
+ import {
23
+ cn
24
+ } from "./chunk-G6SRSWXB.js";
25
+
26
+ // src/primitives/responsive-dialog.tsx
27
+ import * as React from "react";
28
+ import { useMediaQuery } from "react-responsive";
29
+ import { jsx } from "react/jsx-runtime";
30
+ var DesktopContext = React.createContext(false);
31
+ var useIsDesktop = () => React.useContext(DesktopContext);
32
+ var DESKTOP_QUERY = { minWidth: 1024 };
33
+ var ResponsiveDialog = ({ children, ...props }) => {
34
+ const isDesktop = useMediaQuery(DESKTOP_QUERY);
35
+ const Root = isDesktop ? Dialog : Drawer;
36
+ return /* @__PURE__ */ jsx(DesktopContext.Provider, { value: isDesktop, children: /* @__PURE__ */ jsx(Root, { ...props, children }) });
37
+ };
38
+ ResponsiveDialog.displayName = "ResponsiveDialog";
39
+ var ResponsiveDialogTrigger = ({
40
+ children,
41
+ ...props
42
+ }) => {
43
+ const Trigger = useIsDesktop() ? DialogTrigger : DrawerTrigger;
44
+ return /* @__PURE__ */ jsx(Trigger, { ...props, children });
45
+ };
46
+ ResponsiveDialogTrigger.displayName = "ResponsiveDialogTrigger";
47
+ var ResponsiveDialogClose = ({
48
+ children,
49
+ ...props
50
+ }) => {
51
+ const Close = useIsDesktop() ? DialogClose : DrawerClose;
52
+ return /* @__PURE__ */ jsx(Close, { ...props, children });
53
+ };
54
+ ResponsiveDialogClose.displayName = "ResponsiveDialogClose";
55
+ var ResponsiveDialogContent = React.forwardRef(({ className, children, presentation = "default", ...props }, ref) => {
56
+ if (useIsDesktop()) {
57
+ return /* @__PURE__ */ jsx(
58
+ DialogContent,
59
+ {
60
+ ref,
61
+ className: cn(
62
+ "flex max-h-[85vh] max-w-md flex-col gap-0 overflow-hidden p-0",
63
+ presentation === "preview" && "max-w-2xl sm:h-[85vh] [&>button:last-child]:hidden",
64
+ className
65
+ ),
66
+ ...props,
67
+ children
68
+ }
69
+ );
70
+ }
71
+ return /* @__PURE__ */ jsx(
72
+ DrawerContent,
73
+ {
74
+ ref,
75
+ className: cn("max-h-[92vh]", className),
76
+ ...props,
77
+ children
78
+ }
79
+ );
80
+ });
81
+ ResponsiveDialogContent.displayName = "ResponsiveDialogContent";
82
+ var ResponsiveDialogHeader = ({
83
+ className,
84
+ visibility = "visible",
85
+ ...props
86
+ }) => {
87
+ const Header = useIsDesktop() ? DialogHeader : DrawerHeader;
88
+ return /* @__PURE__ */ jsx(
89
+ Header,
90
+ {
91
+ className: cn(useIsDesktop() && "p-4", visibility === "screen-reader" && "sr-only", className),
92
+ ...props
93
+ }
94
+ );
95
+ };
96
+ ResponsiveDialogHeader.displayName = "ResponsiveDialogHeader";
97
+ var ResponsiveDialogBody = ({
98
+ className,
99
+ ...props
100
+ }) => /* @__PURE__ */ jsx("div", { className: cn("min-h-0 flex-1 overflow-y-auto px-4 pb-6", className), ...props });
101
+ ResponsiveDialogBody.displayName = "ResponsiveDialogBody";
102
+ var ResponsiveDialogFooter = ({
103
+ className,
104
+ layout = "auto",
105
+ ...props
106
+ }) => {
107
+ const isDesktop = useIsDesktop();
108
+ const Footer = isDesktop ? DialogFooter : DrawerFooter;
109
+ return /* @__PURE__ */ jsx(
110
+ Footer,
111
+ {
112
+ className: cn(
113
+ "mt-0 shrink-0 gap-2 border-t bg-background p-4",
114
+ layout === "fill" ? "flex-row space-x-0 [&>*]:min-w-0 [&>*]:flex-1" : isDesktop ? "flex-row justify-end space-x-0 [&>*]:flex-none" : "grid grid-cols-2 [&>*]:w-full",
115
+ className
116
+ ),
117
+ ...props
118
+ }
119
+ );
120
+ };
121
+ ResponsiveDialogFooter.displayName = "ResponsiveDialogFooter";
122
+ var ResponsiveDialogTitle = React.forwardRef(({ className, visuallyHidden = false, ...props }, ref) => {
123
+ const Title = useIsDesktop() ? DialogTitle : DrawerTitle;
124
+ return /* @__PURE__ */ jsx(Title, { ref, className: cn(visuallyHidden && "sr-only", className), ...props });
125
+ });
126
+ ResponsiveDialogTitle.displayName = "ResponsiveDialogTitle";
127
+ var ResponsiveDialogDescription = React.forwardRef(({ className, visuallyHidden = false, ...props }, ref) => {
128
+ const Description = useIsDesktop() ? DialogDescription : DrawerDescription;
129
+ return /* @__PURE__ */ jsx(Description, { ref, className: cn(visuallyHidden && "sr-only", className), ...props });
130
+ });
131
+ ResponsiveDialogDescription.displayName = "ResponsiveDialogDescription";
132
+
133
+ export {
134
+ ResponsiveDialog,
135
+ ResponsiveDialogTrigger,
136
+ ResponsiveDialogClose,
137
+ ResponsiveDialogContent,
138
+ ResponsiveDialogHeader,
139
+ ResponsiveDialogBody,
140
+ ResponsiveDialogFooter,
141
+ ResponsiveDialogTitle,
142
+ ResponsiveDialogDescription
143
+ };
@@ -0,0 +1,53 @@
1
+ "use client";
2
+ import {
3
+ cn
4
+ } from "./chunk-G6SRSWXB.js";
5
+
6
+ // src/primitives/image.tsx
7
+ import { forwardRef, useEffect, useState } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var fitStyles = { cover: "object-cover", contain: "object-contain" };
10
+ var radiusStyles = { none: "", sm: "rounded-sm", md: "rounded-md", xl: "rounded-xl", full: "rounded-full" };
11
+ var Image = forwardRef(function Image2({ fit = "cover", frameHeight, radius = "none", width = "auto", align = "start", border = false, shadow = "none", emphasis = "full", loadingIndicator = "none", className, onLoad, onError, src, ...props }, ref) {
12
+ const [loaded, setLoaded] = useState(loadingIndicator === "none" || !src);
13
+ useEffect(() => {
14
+ setLoaded(loadingIndicator === "none" || !src);
15
+ }, [loadingIndicator, src]);
16
+ const loading = loadingIndicator === "pulse" && !loaded;
17
+ return /* @__PURE__ */ jsx(
18
+ "img",
19
+ {
20
+ ref,
21
+ className: cn(
22
+ fitStyles[fit],
23
+ radiusStyles[radius],
24
+ frameHeight === "sm" && "h-16",
25
+ frameHeight === "md" && "h-28",
26
+ width === "full" && "w-full",
27
+ width === "preview" && "w-full max-w-[380px]",
28
+ width === "preview-lg" && "w-full max-w-[440px]",
29
+ align === "center" && "mx-auto",
30
+ border && "border",
31
+ shadow === "subtle" && "shadow-xs",
32
+ loading && "animate-pulse bg-muted",
33
+ emphasis === "soft-until-parent-hover" && "transition-opacity duration-200 md:opacity-70 md:group-hover:opacity-100",
34
+ className
35
+ ),
36
+ src,
37
+ ...props,
38
+ "aria-busy": loading || void 0,
39
+ onLoad: (event) => {
40
+ setLoaded(true);
41
+ onLoad?.(event);
42
+ },
43
+ onError: (event) => {
44
+ setLoaded(true);
45
+ onError?.(event);
46
+ }
47
+ }
48
+ );
49
+ });
50
+
51
+ export {
52
+ Image
53
+ };
@@ -0,0 +1,55 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
+
3
+
4
+ var _chunkVKIGJNJRcjs = require('./chunk-VKIGJNJR.cjs');
5
+
6
+
7
+ var _chunkKWLSBTB2cjs = require('./chunk-KWLSBTB2.cjs');
8
+
9
+ // src/primitives/code-block.tsx
10
+ var _jsxruntime = require('react/jsx-runtime');
11
+ var HEIGHTS = {
12
+ none: "",
13
+ sm: "max-h-40 overflow-y-auto",
14
+ md: "max-h-64 overflow-y-auto",
15
+ lg: "max-h-96 overflow-y-auto",
16
+ viewport: "min-h-[55vh] max-h-[65vh] overflow-y-auto"
17
+ };
18
+ function CodeBlock({
19
+ children,
20
+ copy,
21
+ copyLabel,
22
+ wrap = false,
23
+ maxHeight = "none",
24
+ className
25
+ }) {
26
+ const copyText = typeof copy === "string" ? copy : children;
27
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkKWLSBTB2cjs.cn.call(void 0, "relative", className), children: [
28
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
29
+ "pre",
30
+ {
31
+ className: _chunkKWLSBTB2cjs.cn.call(void 0,
32
+ "rounded-md border border-border bg-muted/40 p-3 font-mono text-xs leading-relaxed",
33
+ wrap ? "whitespace-pre-wrap break-words" : "overflow-x-auto",
34
+ HEIGHTS[maxHeight],
35
+ copy ? "pr-12" : void 0
36
+ ),
37
+ children
38
+ }
39
+ ),
40
+ copy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
41
+ _chunkVKIGJNJRcjs.CopyButton,
42
+ {
43
+ text: copyText,
44
+ label: copyLabel,
45
+ size: "sm",
46
+ variant: "ghost",
47
+ className: "absolute right-1.5 top-1.5"
48
+ }
49
+ ) : null
50
+ ] });
51
+ }
52
+
53
+
54
+
55
+ exports.CodeBlock = CodeBlock;
@@ -4,13 +4,13 @@
4
4
  var _chunkKGFL3VWYcjs = require('../chunk-KGFL3VWY.cjs');
5
5
 
6
6
 
7
- var _chunkPQUSJEXLcjs = require('../chunk-PQUSJEXL.cjs');
8
- require('../chunk-VGTINL5Q.cjs');
9
7
 
10
8
 
9
+ var _chunkWABCLRBRcjs = require('../chunk-WABCLRBR.cjs');
11
10
 
12
11
 
13
- var _chunkWABCLRBRcjs = require('../chunk-WABCLRBR.cjs');
12
+ var _chunkPQUSJEXLcjs = require('../chunk-PQUSJEXL.cjs');
13
+ require('../chunk-VGTINL5Q.cjs');
14
14
  require('../chunk-I6GUOEBO.cjs');
15
15
 
16
16
 
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  ChipTabs
4
4
  } from "../chunk-QD63LB2F.js";
5
- import {
6
- Input
7
- } from "../chunk-QMA3WVB7.js";
8
- import "../chunk-H7TETFLB.js";
9
5
  import {
10
6
  Avatar,
11
7
  AvatarFallback,
12
8
  AvatarImage
13
9
  } from "../chunk-3OWGL4Q2.js";
10
+ import {
11
+ Input
12
+ } from "../chunk-QMA3WVB7.js";
13
+ import "../chunk-H7TETFLB.js";
14
14
  import "../chunk-D4ZL2OEQ.js";
15
15
  import {
16
16
  EmptyState
@@ -2,26 +2,26 @@
2
2
  "use client";
3
3
 
4
4
 
5
- var _chunkN6V3DDKUcjs = require('../chunk-N6V3DDKU.cjs');
5
+ var _chunkIH3COANJcjs = require('../chunk-IH3COANJ.cjs');
6
6
  require('../chunk-PNWNU6JW.cjs');
7
7
  require('../chunk-FNDBM67K.cjs');
8
- require('../chunk-CYH63OCL.cjs');
8
+ require('../chunk-SGW4FWBX.cjs');
9
9
  require('../chunk-PPX2VPGI.cjs');
10
10
  require('../chunk-WNXVGUBF.cjs');
11
11
  require('../chunk-IQZLUT2Y.cjs');
12
+ require('../chunk-LELBCBDT.cjs');
13
+ require('../chunk-R5L4CM6V.cjs');
12
14
  require('../chunk-U2NES7VR.cjs');
13
15
  require('../chunk-JH4GAGOQ.cjs');
14
- require('../chunk-LELBCBDT.cjs');
15
16
  require('../chunk-YYFVG5A6.cjs');
16
17
  require('../chunk-XLIAY56V.cjs');
17
18
  require('../chunk-V5SPFLKW.cjs');
18
- require('../chunk-R5L4CM6V.cjs');
19
- require('../chunk-R35FT53G.cjs');
20
19
  require('../chunk-PQUSJEXL.cjs');
21
20
  require('../chunk-VGTINL5Q.cjs');
22
21
  require('../chunk-I6GUOEBO.cjs');
23
22
  require('../chunk-VBPPFC7X.cjs');
24
23
  require('../chunk-L4DH72UF.cjs');
24
+ require('../chunk-R35FT53G.cjs');
25
25
  require('../chunk-KWLSBTB2.cjs');
26
26
 
27
27
  // src/primitives/board-view.tsx
@@ -57,7 +57,7 @@ function BoardView({
57
57
  onSortChange
58
58
  }) {
59
59
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
60
- _chunkN6V3DDKUcjs.ResourceList,
60
+ _chunkIH3COANJcjs.ResourceList,
61
61
  {
62
62
  data,
63
63
  loading,
@@ -2,26 +2,26 @@
2
2
  "use client";
3
3
  import {
4
4
  ResourceList
5
- } from "../chunk-KYQPX754.js";
5
+ } from "../chunk-HRLP4BHJ.js";
6
6
  import "../chunk-LI5EOSQG.js";
7
7
  import "../chunk-J3GQXM37.js";
8
- import "../chunk-PVZ4JGDU.js";
8
+ import "../chunk-MLHNYRFX.js";
9
9
  import "../chunk-G76JANB4.js";
10
10
  import "../chunk-YG7FBJRM.js";
11
11
  import "../chunk-E2TQMDO7.js";
12
+ import "../chunk-H2O6NMLZ.js";
13
+ import "../chunk-RRRD5EUI.js";
12
14
  import "../chunk-ZRLUUZHK.js";
13
15
  import "../chunk-OICAYRVH.js";
14
- import "../chunk-H2O6NMLZ.js";
15
16
  import "../chunk-62UTAG2C.js";
16
17
  import "../chunk-LELFPLTE.js";
17
18
  import "../chunk-J6NXDZR5.js";
18
- import "../chunk-RRRD5EUI.js";
19
- import "../chunk-PIU5SSUV.js";
20
19
  import "../chunk-QMA3WVB7.js";
21
20
  import "../chunk-H7TETFLB.js";
22
21
  import "../chunk-D4ZL2OEQ.js";
23
22
  import "../chunk-YEW65ASC.js";
24
23
  import "../chunk-HQRWRRZJ.js";
24
+ import "../chunk-PIU5SSUV.js";
25
25
  import "../chunk-G6SRSWXB.js";
26
26
 
27
27
  // src/primitives/board-view.tsx
@@ -10,9 +10,6 @@ var _chunk2BTDBZYNcjs = require('../chunk-2BTDBZYN.cjs');
10
10
  var _chunkEOUO3OROcjs = require('../chunk-EOUO3ORO.cjs');
11
11
 
12
12
 
13
- var _chunkH2UFRLLNcjs = require('../chunk-H2UFRLLN.cjs');
14
-
15
-
16
13
 
17
14
  var _chunkSUB4BAYEcjs = require('../chunk-SUB4BAYE.cjs');
18
15
 
@@ -29,10 +26,6 @@ var _chunkXABXUP6Lcjs = require('../chunk-XABXUP6L.cjs');
29
26
  var _chunk2AU7ZRGXcjs = require('../chunk-2AU7ZRGX.cjs');
30
27
 
31
28
 
32
- var _chunkKENBU3NVcjs = require('../chunk-KENBU3NV.cjs');
33
- require('../chunk-ELPV44S6.cjs');
34
-
35
-
36
29
 
37
30
  var _chunkB765DSRGcjs = require('../chunk-B765DSRG.cjs');
38
31
 
@@ -44,14 +37,17 @@ require('../chunk-2HV2KKOE.cjs');
44
37
 
45
38
 
46
39
 
47
- var _chunk6OTAGP2Icjs = require('../chunk-6OTAGP2I.cjs');
40
+ var _chunkKADJ56AHcjs = require('../chunk-KADJ56AH.cjs');
41
+
42
+
43
+ var _chunkKENBU3NVcjs = require('../chunk-KENBU3NV.cjs');
44
+ require('../chunk-ELPV44S6.cjs');
48
45
 
49
46
 
50
47
 
51
48
 
52
49
 
53
50
  var _chunkZAITUDYDcjs = require('../chunk-ZAITUDYD.cjs');
54
- require('../chunk-U2NES7VR.cjs');
55
51
 
56
52
 
57
53
 
@@ -69,9 +65,7 @@ require('../chunk-W5HPHEE7.cjs');
69
65
 
70
66
 
71
67
  var _chunk32Q4XOTUcjs = require('../chunk-32Q4XOTU.cjs');
72
-
73
-
74
- var _chunkR35FT53Gcjs = require('../chunk-R35FT53G.cjs');
68
+ require('../chunk-U2NES7VR.cjs');
75
69
 
76
70
 
77
71
  var _chunk2KFZQJH5cjs = require('../chunk-2KFZQJH5.cjs');
@@ -81,6 +75,12 @@ require('../chunk-PQUSJEXL.cjs');
81
75
  var _chunkL4DH72UFcjs = require('../chunk-L4DH72UF.cjs');
82
76
 
83
77
 
78
+ var _chunkR35FT53Gcjs = require('../chunk-R35FT53G.cjs');
79
+
80
+
81
+ var _chunkH2UFRLLNcjs = require('../chunk-H2UFRLLN.cjs');
82
+
83
+
84
84
  var _chunkKWLSBTB2cjs = require('../chunk-KWLSBTB2.cjs');
85
85
 
86
86
  // src/primitives/chat.tsx
@@ -703,7 +703,7 @@ var Chat = _react.forwardRef.call(void 0, function Chat2({
703
703
  const showEmptyFileDropzone = emptyFileDropzone && Boolean(onFilesSelected) && attachments.length === 0;
704
704
  const showEmptyPending = !conversationStarted && pending && Boolean(emptyPendingContent);
705
705
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
706
- _chunk6OTAGP2Icjs.FileDropArea,
706
+ _chunkKADJ56AHcjs.FileDropArea,
707
707
  {
708
708
  "data-slot": "chat",
709
709
  "data-layout": layout,
@@ -771,7 +771,7 @@ var Chat = _react.forwardRef.call(void 0, function Chat2({
771
771
  ),
772
772
  children: [
773
773
  showEmptyFileDropzone && onFilesSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
774
- _chunk6OTAGP2Icjs.FileDropzone,
774
+ _chunkKADJ56AHcjs.FileDropzone,
775
775
  {
776
776
  multiple: true,
777
777
  onFiles: onFilesSelected,
@@ -8,9 +8,6 @@ import {
8
8
  import {
9
9
  VoiceDictationButton
10
10
  } from "../chunk-HAC32ALJ.js";
11
- import {
12
- formatRelativeLong
13
- } from "../chunk-CS7DM3NV.js";
14
11
  import {
15
12
  Suggestion,
16
13
  Suggestions
@@ -27,10 +24,6 @@ import {
27
24
  Message,
28
25
  MessageContent
29
26
  } from "../chunk-JZOBIPFC.js";
30
- import {
31
- LazyMarkdown
32
- } from "../chunk-VY5U4VGV.js";
33
- import "../chunk-INNGGLMZ.js";
34
27
  import {
35
28
  Marker,
36
29
  MarkerContent
@@ -44,14 +37,17 @@ import "../chunk-6FC65AZQ.js";
44
37
  import {
45
38
  FileDropArea,
46
39
  FileDropzone
47
- } from "../chunk-EHKMVJ6O.js";
40
+ } from "../chunk-M7FYGAGO.js";
41
+ import {
42
+ LazyMarkdown
43
+ } from "../chunk-VY5U4VGV.js";
44
+ import "../chunk-INNGGLMZ.js";
48
45
  import {
49
46
  DropdownMenu,
50
47
  DropdownMenuContent,
51
48
  DropdownMenuItem,
52
49
  DropdownMenuTrigger
53
50
  } from "../chunk-V4LE2HWP.js";
54
- import "../chunk-ZRLUUZHK.js";
55
51
  import {
56
52
  Bubble,
57
53
  BubbleContent
@@ -69,9 +65,7 @@ import {
69
65
  AttachmentTitle,
70
66
  AttachmentTrigger
71
67
  } from "../chunk-EZCKWTH7.js";
72
- import {
73
- useIsMobile
74
- } from "../chunk-PIU5SSUV.js";
68
+ import "../chunk-ZRLUUZHK.js";
75
69
  import {
76
70
  ActionDock
77
71
  } from "../chunk-42RTTHND.js";
@@ -79,6 +73,12 @@ import "../chunk-QMA3WVB7.js";
79
73
  import {
80
74
  Button
81
75
  } from "../chunk-HQRWRRZJ.js";
76
+ import {
77
+ useIsMobile
78
+ } from "../chunk-PIU5SSUV.js";
79
+ import {
80
+ formatRelativeLong
81
+ } from "../chunk-CS7DM3NV.js";
82
82
  import {
83
83
  cn
84
84
  } from "../chunk-G6SRSWXB.js";
@@ -1,56 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
2
2
 
3
3
 
4
- var _chunkENJNZ323cjs = require('../chunk-ENJNZ323.cjs');
5
- require('../chunk-4LXN6GLZ.cjs');
4
+ var _chunkVLXPLKFRcjs = require('../chunk-VLXPLKFR.cjs');
5
+ require('../chunk-VKIGJNJR.cjs');
6
6
  require('../chunk-L4DH72UF.cjs');
7
+ require('../chunk-4LXN6GLZ.cjs');
8
+ require('../chunk-KWLSBTB2.cjs');
7
9
 
8
10
 
9
- var _chunkKWLSBTB2cjs = require('../chunk-KWLSBTB2.cjs');
10
-
11
- // src/primitives/code-block.tsx
12
- var _jsxruntime = require('react/jsx-runtime');
13
- var HEIGHTS = {
14
- none: "",
15
- sm: "max-h-40 overflow-y-auto",
16
- md: "max-h-64 overflow-y-auto",
17
- lg: "max-h-96 overflow-y-auto",
18
- viewport: "min-h-[55vh] max-h-[65vh] overflow-y-auto"
19
- };
20
- function CodeBlock({
21
- children,
22
- copy,
23
- copyLabel,
24
- wrap = false,
25
- maxHeight = "none",
26
- className
27
- }) {
28
- const copyText = typeof copy === "string" ? copy : children;
29
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkKWLSBTB2cjs.cn.call(void 0, "relative", className), children: [
30
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
31
- "pre",
32
- {
33
- className: _chunkKWLSBTB2cjs.cn.call(void 0,
34
- "rounded-md border border-border bg-muted/40 p-3 font-mono text-xs leading-relaxed",
35
- wrap ? "whitespace-pre-wrap break-words" : "overflow-x-auto",
36
- HEIGHTS[maxHeight],
37
- copy ? "pr-12" : void 0
38
- ),
39
- children
40
- }
41
- ),
42
- copy ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43
- _chunkENJNZ323cjs.CopyButton,
44
- {
45
- text: copyText,
46
- label: copyLabel,
47
- size: "sm",
48
- variant: "ghost",
49
- className: "absolute right-1.5 top-1.5"
50
- }
51
- ) : null
52
- ] });
53
- }
54
-
55
-
56
- exports.CodeBlock = CodeBlock;
11
+ exports.CodeBlock = _chunkVLXPLKFRcjs.CodeBlock;
@@ -1,56 +1,11 @@
1
1
  "use client";
2
2
  import {
3
- CopyButton
4
- } from "../chunk-PWOQMTPX.js";
5
- import "../chunk-ZWZAAGQF.js";
3
+ CodeBlock
4
+ } from "../chunk-HHV4G77I.js";
5
+ import "../chunk-NW3OWKBN.js";
6
6
  import "../chunk-HQRWRRZJ.js";
7
- import {
8
- cn
9
- } from "../chunk-G6SRSWXB.js";
10
-
11
- // src/primitives/code-block.tsx
12
- import { jsx, jsxs } from "react/jsx-runtime";
13
- var HEIGHTS = {
14
- none: "",
15
- sm: "max-h-40 overflow-y-auto",
16
- md: "max-h-64 overflow-y-auto",
17
- lg: "max-h-96 overflow-y-auto",
18
- viewport: "min-h-[55vh] max-h-[65vh] overflow-y-auto"
19
- };
20
- function CodeBlock({
21
- children,
22
- copy,
23
- copyLabel,
24
- wrap = false,
25
- maxHeight = "none",
26
- className
27
- }) {
28
- const copyText = typeof copy === "string" ? copy : children;
29
- return /* @__PURE__ */ jsxs("div", { className: cn("relative", className), children: [
30
- /* @__PURE__ */ jsx(
31
- "pre",
32
- {
33
- className: cn(
34
- "rounded-md border border-border bg-muted/40 p-3 font-mono text-xs leading-relaxed",
35
- wrap ? "whitespace-pre-wrap break-words" : "overflow-x-auto",
36
- HEIGHTS[maxHeight],
37
- copy ? "pr-12" : void 0
38
- ),
39
- children
40
- }
41
- ),
42
- copy ? /* @__PURE__ */ jsx(
43
- CopyButton,
44
- {
45
- text: copyText,
46
- label: copyLabel,
47
- size: "sm",
48
- variant: "ghost",
49
- className: "absolute right-1.5 top-1.5"
50
- }
51
- ) : null
52
- ] });
53
- }
7
+ import "../chunk-ZWZAAGQF.js";
8
+ import "../chunk-G6SRSWXB.js";
54
9
  export {
55
10
  CodeBlock
56
11
  };
@@ -12,17 +12,13 @@ var _chunkWQJKUKBLcjs = require('../chunk-WQJKUKBL.cjs');
12
12
 
13
13
 
14
14
  var _chunkWDXEJDMOcjs = require('../chunk-WDXEJDMO.cjs');
15
- require('../chunk-ZAITUDYD.cjs');
16
-
17
-
18
- var _chunk373W6VADcjs = require('../chunk-373W6VAD.cjs');
19
15
 
20
16
 
21
17
  var _chunkCTYOW3V2cjs = require('../chunk-CTYOW3V2.cjs');
18
+ require('../chunk-ZAITUDYD.cjs');
22
19
 
23
20
 
24
-
25
- var _chunk667ZCM4Xcjs = require('../chunk-667ZCM4X.cjs');
21
+ var _chunk373W6VADcjs = require('../chunk-373W6VAD.cjs');
26
22
  require('../chunk-I6GUOEBO.cjs');
27
23
 
28
24
 
@@ -39,6 +35,10 @@ var _chunk23UMHZ4Scjs = require('../chunk-23UMHZ4S.cjs');
39
35
  var _chunkL4DH72UFcjs = require('../chunk-L4DH72UF.cjs');
40
36
 
41
37
 
38
+
39
+ var _chunk667ZCM4Xcjs = require('../chunk-667ZCM4X.cjs');
40
+
41
+
42
42
  var _chunkKWLSBTB2cjs = require('../chunk-KWLSBTB2.cjs');
43
43
 
44
44
  // src/primitives/connection.tsx