@epicbagel/saas-kit 1.0.0 → 1.1.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/README.md +38 -1
- package/THIRD_PARTY_NOTICES.md +13 -7
- package/dist/chunk-2AU7ZRGX.cjs +96 -0
- package/dist/chunk-2BTDBZYN.cjs +154 -0
- package/dist/chunk-2HV2KKOE.cjs +38 -0
- package/dist/chunk-2KFZQJH5.cjs +29 -0
- package/dist/chunk-32Q4XOTU.cjs +204 -0
- package/dist/chunk-42RTTHND.js +29 -0
- package/dist/chunk-6FC65AZQ.js +38 -0
- package/dist/chunk-6V4XMQ6D.js +118 -0
- package/dist/chunk-B765DSRG.cjs +66 -0
- package/dist/chunk-ELPV44S6.cjs +44 -0
- package/dist/chunk-EOUO3ORO.cjs +244 -0
- package/dist/chunk-EZCKWTH7.js +204 -0
- package/dist/chunk-F366BHWH.js +116 -0
- package/dist/chunk-GFG2R5BZ.js +132 -0
- package/dist/chunk-HAC32ALJ.js +244 -0
- package/dist/chunk-I5UQSBBZ.cjs +118 -0
- package/dist/chunk-INNGGLMZ.js +44 -0
- package/dist/chunk-IW4ZIXXG.js +66 -0
- package/dist/chunk-JZOBIPFC.js +96 -0
- package/dist/chunk-KENBU3NV.cjs +27 -0
- package/dist/chunk-MHYAVXOE.js +159 -0
- package/dist/chunk-RIWLAMME.cjs +159 -0
- package/dist/chunk-SUB4BAYE.cjs +73 -0
- package/dist/chunk-THWIJG5C.js +73 -0
- package/dist/chunk-V4YWTRLD.cjs +116 -0
- package/dist/chunk-VY5U4VGV.js +27 -0
- package/dist/chunk-XABXUP6L.cjs +132 -0
- package/dist/chunk-Z45YKVAM.js +154 -0
- package/dist/primitives/action-dock.cjs +8 -0
- package/dist/primitives/action-dock.d.cts +10 -0
- package/dist/primitives/action-dock.d.ts +10 -0
- package/dist/primitives/action-dock.js +8 -0
- package/dist/primitives/alert.d.cts +1 -1
- package/dist/primitives/alert.d.ts +1 -1
- package/dist/primitives/attachment.cjs +25 -203
- package/dist/primitives/attachment.d.cts +1 -1
- package/dist/primitives/attachment.d.ts +1 -1
- package/dist/primitives/attachment.js +12 -190
- package/dist/primitives/badge.d.cts +1 -1
- package/dist/primitives/badge.d.ts +1 -1
- package/dist/primitives/board-view.cjs +3 -3
- package/dist/primitives/board-view.js +2 -2
- package/dist/primitives/bubble.cjs +14 -0
- package/dist/primitives/bubble.d.cts +21 -0
- package/dist/primitives/bubble.d.ts +21 -0
- package/dist/primitives/bubble.js +14 -0
- package/dist/primitives/button.d.cts +2 -2
- package/dist/primitives/button.d.ts +2 -2
- package/dist/primitives/chat.cjs +864 -0
- package/dist/primitives/chat.d.cts +326 -0
- package/dist/primitives/chat.d.ts +326 -0
- package/dist/primitives/chat.js +864 -0
- package/dist/primitives/connection.cjs +6 -6
- package/dist/primitives/connection.js +7 -7
- package/dist/primitives/file-dropzone.cjs +7 -113
- package/dist/primitives/file-dropzone.js +6 -112
- package/dist/primitives/input-group.cjs +21 -0
- package/dist/primitives/input-group.d.cts +20 -0
- package/dist/primitives/input-group.d.ts +20 -0
- package/dist/primitives/input-group.js +21 -0
- package/dist/primitives/item.cjs +197 -0
- package/dist/primitives/item.d.cts +28 -0
- package/dist/primitives/item.d.ts +28 -0
- package/dist/primitives/item.js +197 -0
- package/dist/primitives/lazy-markdown.cjs +10 -0
- package/dist/primitives/lazy-markdown.d.cts +20 -0
- package/dist/primitives/lazy-markdown.d.ts +20 -0
- package/dist/primitives/lazy-markdown.js +10 -0
- package/dist/primitives/markdown.cjs +17 -0
- package/dist/primitives/markdown.d.cts +32 -0
- package/dist/primitives/markdown.d.ts +32 -0
- package/dist/primitives/markdown.js +17 -0
- package/dist/primitives/marker.cjs +14 -0
- package/dist/primitives/marker.d.cts +15 -0
- package/dist/primitives/marker.d.ts +15 -0
- package/dist/primitives/marker.js +14 -0
- package/dist/primitives/message-scroller.cjs +26 -0
- package/dist/primitives/message-scroller.d.cts +16 -0
- package/dist/primitives/message-scroller.d.ts +16 -0
- package/dist/primitives/message-scroller.js +26 -0
- package/dist/primitives/message.cjs +7 -84
- package/dist/primitives/message.js +8 -85
- package/dist/primitives/resource-list.cjs +3 -3
- package/dist/primitives/resource-list.js +2 -2
- package/dist/primitives/rich-text.cjs +3 -38
- package/dist/primitives/rich-text.js +3 -38
- package/dist/primitives/section-header.d.cts +1 -1
- package/dist/primitives/section-header.d.ts +1 -1
- package/dist/primitives/spinner.cjs +23 -0
- package/dist/primitives/spinner.d.cts +6 -0
- package/dist/primitives/spinner.d.ts +6 -0
- package/dist/primitives/spinner.js +23 -0
- package/dist/primitives/suggestion.cjs +11 -0
- package/dist/primitives/suggestion.d.cts +19 -0
- package/dist/primitives/suggestion.d.ts +19 -0
- package/dist/primitives/suggestion.js +11 -0
- package/dist/primitives/switch-field.cjs +2 -2
- package/dist/primitives/switch-field.js +3 -3
- package/dist/primitives/textarea.cjs +4 -33
- package/dist/primitives/textarea.js +3 -32
- package/dist/primitives/toggle-group.d.cts +2 -2
- package/dist/primitives/toggle-group.d.ts +2 -2
- package/dist/primitives/toggle.d.cts +2 -2
- package/dist/primitives/toggle.d.ts +2 -2
- package/dist/primitives/trace.cjs +23 -0
- package/dist/primitives/trace.d.cts +22 -0
- package/dist/primitives/trace.d.ts +22 -0
- package/dist/primitives/trace.js +23 -0
- package/dist/primitives/voice-dictation-button.cjs +5 -239
- package/dist/primitives/voice-dictation-button.js +4 -238
- package/package.json +125 -2
- package/src/styles/components/bubble.css +81 -0
- package/src/styles/components/marker.css +27 -0
- package/src/styles/components/message-scroller.css +11 -0
- package/src/styles/components.css +3 -0
- package/src/styles/utilities.css +3 -2
- package/dist/{chunk-UGF2K6NR.js → chunk-HRLP4BHJ.js} +6 -6
- package/dist/{chunk-RWWOFWLP.cjs → chunk-IH3COANJ.cjs} +3 -3
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Separator
|
|
4
|
+
} from "../chunk-HYTILYE5.js";
|
|
5
|
+
import {
|
|
6
|
+
cn
|
|
7
|
+
} from "../chunk-G6SRSWXB.js";
|
|
8
|
+
|
|
9
|
+
// src/primitives/item.tsx
|
|
10
|
+
import { cva } from "class-variance-authority";
|
|
11
|
+
import { Slot } from "radix-ui";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
function ItemGroup({ className, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
role: "list",
|
|
18
|
+
"data-slot": "item-group",
|
|
19
|
+
className: cn(
|
|
20
|
+
"group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",
|
|
21
|
+
className
|
|
22
|
+
),
|
|
23
|
+
...props
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
function ItemSeparator({
|
|
28
|
+
className,
|
|
29
|
+
...props
|
|
30
|
+
}) {
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
Separator,
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "item-separator",
|
|
35
|
+
orientation: "horizontal",
|
|
36
|
+
className: cn("my-2", className),
|
|
37
|
+
...props
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
var itemVariants = cva(
|
|
42
|
+
"group/item flex w-full flex-wrap items-center rounded-md border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted",
|
|
43
|
+
{
|
|
44
|
+
variants: {
|
|
45
|
+
variant: {
|
|
46
|
+
default: "border-transparent",
|
|
47
|
+
outline: "border-border",
|
|
48
|
+
muted: "border-transparent bg-muted/50"
|
|
49
|
+
},
|
|
50
|
+
size: {
|
|
51
|
+
default: "gap-3.5 px-4 py-3.5",
|
|
52
|
+
sm: "gap-2.5 px-3 py-2.5",
|
|
53
|
+
xs: "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
defaultVariants: {
|
|
57
|
+
variant: "default",
|
|
58
|
+
size: "default"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
function Item({
|
|
63
|
+
className,
|
|
64
|
+
variant = "default",
|
|
65
|
+
size = "default",
|
|
66
|
+
asChild = false,
|
|
67
|
+
...props
|
|
68
|
+
}) {
|
|
69
|
+
const Comp = asChild ? Slot.Root : "div";
|
|
70
|
+
return /* @__PURE__ */ jsx(
|
|
71
|
+
Comp,
|
|
72
|
+
{
|
|
73
|
+
"data-slot": "item",
|
|
74
|
+
"data-variant": variant,
|
|
75
|
+
"data-size": size,
|
|
76
|
+
className: cn(itemVariants({ variant, size, className })),
|
|
77
|
+
...props
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
var itemMediaVariants = cva(
|
|
82
|
+
"flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none",
|
|
83
|
+
{
|
|
84
|
+
variants: {
|
|
85
|
+
variant: {
|
|
86
|
+
default: "bg-transparent",
|
|
87
|
+
icon: "[&_svg:not([class*='size-'])]:size-4",
|
|
88
|
+
image: "size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
defaultVariants: {
|
|
92
|
+
variant: "default"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
function ItemMedia({
|
|
97
|
+
className,
|
|
98
|
+
variant = "default",
|
|
99
|
+
...props
|
|
100
|
+
}) {
|
|
101
|
+
return /* @__PURE__ */ jsx(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
"data-slot": "item-media",
|
|
105
|
+
"data-variant": variant,
|
|
106
|
+
className: cn(itemMediaVariants({ variant, className })),
|
|
107
|
+
...props
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
function ItemContent({ className, ...props }) {
|
|
112
|
+
return /* @__PURE__ */ jsx(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
"data-slot": "item-content",
|
|
116
|
+
className: cn(
|
|
117
|
+
"flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",
|
|
118
|
+
className
|
|
119
|
+
),
|
|
120
|
+
...props
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
function ItemTitle({ className, ...props }) {
|
|
125
|
+
return /* @__PURE__ */ jsx(
|
|
126
|
+
"div",
|
|
127
|
+
{
|
|
128
|
+
"data-slot": "item-title",
|
|
129
|
+
className: cn(
|
|
130
|
+
"line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",
|
|
131
|
+
className
|
|
132
|
+
),
|
|
133
|
+
...props
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
function ItemDescription({ className, ...props }) {
|
|
138
|
+
return /* @__PURE__ */ jsx(
|
|
139
|
+
"p",
|
|
140
|
+
{
|
|
141
|
+
"data-slot": "item-description",
|
|
142
|
+
className: cn(
|
|
143
|
+
"line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
|
|
144
|
+
className
|
|
145
|
+
),
|
|
146
|
+
...props
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
function ItemActions({ className, ...props }) {
|
|
151
|
+
return /* @__PURE__ */ jsx(
|
|
152
|
+
"div",
|
|
153
|
+
{
|
|
154
|
+
"data-slot": "item-actions",
|
|
155
|
+
className: cn("flex items-center gap-2", className),
|
|
156
|
+
...props
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
function ItemHeader({ className, ...props }) {
|
|
161
|
+
return /* @__PURE__ */ jsx(
|
|
162
|
+
"div",
|
|
163
|
+
{
|
|
164
|
+
"data-slot": "item-header",
|
|
165
|
+
className: cn(
|
|
166
|
+
"flex basis-full items-center justify-between gap-2",
|
|
167
|
+
className
|
|
168
|
+
),
|
|
169
|
+
...props
|
|
170
|
+
}
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
function ItemFooter({ className, ...props }) {
|
|
174
|
+
return /* @__PURE__ */ jsx(
|
|
175
|
+
"div",
|
|
176
|
+
{
|
|
177
|
+
"data-slot": "item-footer",
|
|
178
|
+
className: cn(
|
|
179
|
+
"flex basis-full items-center justify-between gap-2",
|
|
180
|
+
className
|
|
181
|
+
),
|
|
182
|
+
...props
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
export {
|
|
187
|
+
Item,
|
|
188
|
+
ItemActions,
|
|
189
|
+
ItemContent,
|
|
190
|
+
ItemDescription,
|
|
191
|
+
ItemFooter,
|
|
192
|
+
ItemGroup,
|
|
193
|
+
ItemHeader,
|
|
194
|
+
ItemMedia,
|
|
195
|
+
ItemSeparator,
|
|
196
|
+
ItemTitle
|
|
197
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkKENBU3NVcjs = require('../chunk-KENBU3NV.cjs');
|
|
6
|
+
require('../chunk-ELPV44S6.cjs');
|
|
7
|
+
require('../chunk-KWLSBTB2.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.LazyMarkdown = _chunkKENBU3NVcjs.LazyMarkdown;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { MarkdownProps } from './markdown.cjs';
|
|
3
|
+
import 'react-markdown';
|
|
4
|
+
import './rich-text.cjs';
|
|
5
|
+
import 'react';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* `Markdown`, loaded on first use: the same props and output, without the
|
|
9
|
+
* renderer in the bundle of a page that never shows any Markdown. Until the
|
|
10
|
+
* renderer arrives the source shows as wrapped plain text in the same
|
|
11
|
+
* typography box, so the words are readable at once and the layout keeps its
|
|
12
|
+
* size. Server-rendered Markdown streams in formatted, and hydration keeps
|
|
13
|
+
* that HTML until the chunk loads, so it never drops back to plain text.
|
|
14
|
+
*
|
|
15
|
+
* Chat renders message text through it; use it directly wherever Markdown
|
|
16
|
+
* sits behind an interaction (a dialog, a drawer, an expanded row).
|
|
17
|
+
*/
|
|
18
|
+
declare function LazyMarkdown({ children, components, className, ...props }: MarkdownProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
export { LazyMarkdown };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { MarkdownProps } from './markdown.js';
|
|
3
|
+
import 'react-markdown';
|
|
4
|
+
import './rich-text.js';
|
|
5
|
+
import 'react';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* `Markdown`, loaded on first use: the same props and output, without the
|
|
9
|
+
* renderer in the bundle of a page that never shows any Markdown. Until the
|
|
10
|
+
* renderer arrives the source shows as wrapped plain text in the same
|
|
11
|
+
* typography box, so the words are readable at once and the layout keeps its
|
|
12
|
+
* size. Server-rendered Markdown streams in formatted, and hydration keeps
|
|
13
|
+
* that HTML until the chunk loads, so it never drops back to plain text.
|
|
14
|
+
*
|
|
15
|
+
* Chat renders message text through it; use it directly wherever Markdown
|
|
16
|
+
* sits behind an interaction (a dialog, a drawer, an expanded row).
|
|
17
|
+
*/
|
|
18
|
+
declare function LazyMarkdown({ children, components, className, ...props }: MarkdownProps): react_jsx_runtime.JSX.Element;
|
|
19
|
+
|
|
20
|
+
export { LazyMarkdown };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkELPV44S6cjs = require('../chunk-ELPV44S6.cjs');
|
|
6
|
+
require('../chunk-KWLSBTB2.cjs');
|
|
7
|
+
|
|
8
|
+
// src/primitives/markdown.tsx
|
|
9
|
+
var _reactmarkdown = require('react-markdown'); var _reactmarkdown2 = _interopRequireDefault(_reactmarkdown);
|
|
10
|
+
var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault(_remarkgfm);
|
|
11
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
12
|
+
function Markdown({ children, components, ...props }) {
|
|
13
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkELPV44S6cjs.RichText, { ...props, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactmarkdown2.default, { remarkPlugins: [_remarkgfm2.default], components, skipHtml: true, children }) });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.Markdown = Markdown;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Components } from 'react-markdown';
|
|
3
|
+
import { RichTextProps } from './rich-text.cjs';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Per-element render overrides, keyed by tag name (`h1`, `a`, `code`, …).
|
|
8
|
+
* The same shape as react-markdown's `components`, re-exported so callers can
|
|
9
|
+
* type a map without depending on react-markdown directly.
|
|
10
|
+
*/
|
|
11
|
+
type MarkdownComponents = Components;
|
|
12
|
+
interface MarkdownProps extends Omit<RichTextProps, "children"> {
|
|
13
|
+
/** Markdown source. Raw HTML is intentionally ignored. */
|
|
14
|
+
children: string;
|
|
15
|
+
/**
|
|
16
|
+
* Override how individual Markdown elements render: a display treatment
|
|
17
|
+
* for document titles, links that open in a new tab, and so on. Every tag
|
|
18
|
+
* the map leaves out keeps the default rendering. Raw HTML stays ignored
|
|
19
|
+
* either way.
|
|
20
|
+
*/
|
|
21
|
+
components?: MarkdownComponents;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Safe, design-system styled Markdown for chat messages, previews and notes.
|
|
25
|
+
*
|
|
26
|
+
* Raw HTML is not rendered. GitHub-flavoured Markdown adds tables, task lists,
|
|
27
|
+
* strikethrough and autolinks without asking each consuming app to configure a
|
|
28
|
+
* parser and typography boundary independently.
|
|
29
|
+
*/
|
|
30
|
+
declare function Markdown({ children, components, ...props }: MarkdownProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
export { Markdown, type MarkdownComponents, type MarkdownProps };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Components } from 'react-markdown';
|
|
3
|
+
import { RichTextProps } from './rich-text.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Per-element render overrides, keyed by tag name (`h1`, `a`, `code`, …).
|
|
8
|
+
* The same shape as react-markdown's `components`, re-exported so callers can
|
|
9
|
+
* type a map without depending on react-markdown directly.
|
|
10
|
+
*/
|
|
11
|
+
type MarkdownComponents = Components;
|
|
12
|
+
interface MarkdownProps extends Omit<RichTextProps, "children"> {
|
|
13
|
+
/** Markdown source. Raw HTML is intentionally ignored. */
|
|
14
|
+
children: string;
|
|
15
|
+
/**
|
|
16
|
+
* Override how individual Markdown elements render: a display treatment
|
|
17
|
+
* for document titles, links that open in a new tab, and so on. Every tag
|
|
18
|
+
* the map leaves out keeps the default rendering. Raw HTML stays ignored
|
|
19
|
+
* either way.
|
|
20
|
+
*/
|
|
21
|
+
components?: MarkdownComponents;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Safe, design-system styled Markdown for chat messages, previews and notes.
|
|
25
|
+
*
|
|
26
|
+
* Raw HTML is not rendered. GitHub-flavoured Markdown adds tables, task lists,
|
|
27
|
+
* strikethrough and autolinks without asking each consuming app to configure a
|
|
28
|
+
* parser and typography boundary independently.
|
|
29
|
+
*/
|
|
30
|
+
declare function Markdown({ children, components, ...props }: MarkdownProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
export { Markdown, type MarkdownComponents, type MarkdownProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import {
|
|
4
|
+
RichText
|
|
5
|
+
} from "../chunk-INNGGLMZ.js";
|
|
6
|
+
import "../chunk-G6SRSWXB.js";
|
|
7
|
+
|
|
8
|
+
// src/primitives/markdown.tsx
|
|
9
|
+
import ReactMarkdown from "react-markdown";
|
|
10
|
+
import remarkGfm from "remark-gfm";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
function Markdown({ children, components, ...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsx(RichText, { ...props, children: /* @__PURE__ */ jsx(ReactMarkdown, { remarkPlugins: [remarkGfm], components, skipHtml: true, children }) });
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
Markdown
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkB765DSRGcjs = require('../chunk-B765DSRG.cjs');
|
|
8
|
+
require('../chunk-KWLSBTB2.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.Marker = _chunkB765DSRGcjs.Marker; exports.MarkerContent = _chunkB765DSRGcjs.MarkerContent; exports.MarkerIcon = _chunkB765DSRGcjs.MarkerIcon; exports.markerVariants = _chunkB765DSRGcjs.markerVariants;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const markerVariants: (props?: ({
|
|
7
|
+
variant?: "separator" | "border" | "default" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
declare function Marker({ className, variant, asChild, ...props }: React.ComponentProps<"div"> & VariantProps<typeof markerVariants> & {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
}): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function MarkerIcon({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function MarkerContent({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { Marker, MarkerContent, MarkerIcon, markerVariants };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const markerVariants: (props?: ({
|
|
7
|
+
variant?: "separator" | "border" | "default" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
declare function Marker({ className, variant, asChild, ...props }: React.ComponentProps<"div"> & VariantProps<typeof markerVariants> & {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
}): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function MarkerIcon({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function MarkerContent({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
export { Marker, MarkerContent, MarkerIcon, markerVariants };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkXABXUP6Lcjs = require('../chunk-XABXUP6L.cjs');
|
|
14
|
+
require('../chunk-L4DH72UF.cjs');
|
|
15
|
+
require('../chunk-KWLSBTB2.cjs');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
exports.MessageScroller = _chunkXABXUP6Lcjs.MessageScroller; exports.MessageScrollerButton = _chunkXABXUP6Lcjs.MessageScrollerButton; exports.MessageScrollerContent = _chunkXABXUP6Lcjs.MessageScrollerContent; exports.MessageScrollerItem = _chunkXABXUP6Lcjs.MessageScrollerItem; exports.MessageScrollerProvider = _chunkXABXUP6Lcjs.MessageScrollerProvider; exports.MessageScrollerViewport = _chunkXABXUP6Lcjs.MessageScrollerViewport; exports.useMessageScroller = _chunkXABXUP6Lcjs.useMessageScroller; exports.useMessageScrollerScrollable = _chunkXABXUP6Lcjs.useMessageScrollerScrollable; exports.useMessageScrollerVisibility = _chunkXABXUP6Lcjs.useMessageScrollerVisibility;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { MessageScroller as MessageScroller$1 } from '@shadcn/react/message-scroller';
|
|
4
|
+
export { useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from '@shadcn/react/message-scroller';
|
|
5
|
+
import { Button } from './button.cjs';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
7
|
+
import 'class-variance-authority';
|
|
8
|
+
|
|
9
|
+
declare function MessageScrollerProvider(props: React.ComponentProps<typeof MessageScroller$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function MessageScroller({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Root>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function MessageScrollerViewport({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Viewport>): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function MessageScrollerContent({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Content>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function MessageScrollerItem({ className, scrollAnchor, ...props }: React.ComponentProps<typeof MessageScroller$1.Item>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function MessageScrollerButton({ direction, className, children, render, variant, size, ...props }: React.ComponentProps<typeof MessageScroller$1.Button> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { MessageScroller as MessageScroller$1 } from '@shadcn/react/message-scroller';
|
|
4
|
+
export { useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from '@shadcn/react/message-scroller';
|
|
5
|
+
import { Button } from './button.js';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
7
|
+
import 'class-variance-authority';
|
|
8
|
+
|
|
9
|
+
declare function MessageScrollerProvider(props: React.ComponentProps<typeof MessageScroller$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function MessageScroller({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Root>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function MessageScrollerViewport({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Viewport>): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function MessageScrollerContent({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Content>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function MessageScrollerItem({ className, scrollAnchor, ...props }: React.ComponentProps<typeof MessageScroller$1.Item>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function MessageScrollerButton({ direction, className, children, render, variant, size, ...props }: React.ComponentProps<typeof MessageScroller$1.Button> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import {
|
|
4
|
+
MessageScroller,
|
|
5
|
+
MessageScrollerButton,
|
|
6
|
+
MessageScrollerContent,
|
|
7
|
+
MessageScrollerItem,
|
|
8
|
+
MessageScrollerProvider,
|
|
9
|
+
MessageScrollerViewport,
|
|
10
|
+
useMessageScroller,
|
|
11
|
+
useMessageScrollerScrollable,
|
|
12
|
+
useMessageScrollerVisibility
|
|
13
|
+
} from "../chunk-GFG2R5BZ.js";
|
|
14
|
+
import "../chunk-HQRWRRZJ.js";
|
|
15
|
+
import "../chunk-G6SRSWXB.js";
|
|
16
|
+
export {
|
|
17
|
+
MessageScroller,
|
|
18
|
+
MessageScrollerButton,
|
|
19
|
+
MessageScrollerContent,
|
|
20
|
+
MessageScrollerItem,
|
|
21
|
+
MessageScrollerProvider,
|
|
22
|
+
MessageScrollerViewport,
|
|
23
|
+
useMessageScroller,
|
|
24
|
+
useMessageScrollerScrollable,
|
|
25
|
+
useMessageScrollerVisibility
|
|
26
|
+
};
|
|
@@ -1,95 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunkKWLSBTB2cjs = require('../chunk-KWLSBTB2.cjs');
|
|
5
4
|
|
|
6
|
-
// src/primitives/message.tsx
|
|
7
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
8
|
-
function MessageGroup({ className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10
|
-
"div",
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "message-group",
|
|
13
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0, "cn-message-group flex min-w-0 flex-col", className),
|
|
14
|
-
...props
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
function Message({
|
|
19
|
-
className,
|
|
20
|
-
align = "start",
|
|
21
|
-
...props
|
|
22
|
-
}) {
|
|
23
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24
|
-
"div",
|
|
25
|
-
{
|
|
26
|
-
"data-slot": "message",
|
|
27
|
-
"data-align": align,
|
|
28
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
29
|
-
"cn-message group/message relative flex w-full min-w-0 data-[align=end]:flex-row-reverse",
|
|
30
|
-
className
|
|
31
|
-
),
|
|
32
|
-
...props
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
function MessageAvatar({ className, ...props }) {
|
|
37
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
"data-slot": "message-avatar",
|
|
41
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
42
|
-
"cn-message-avatar flex w-fit shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted",
|
|
43
|
-
className
|
|
44
|
-
),
|
|
45
|
-
...props
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
function MessageContent({ className, ...props }) {
|
|
50
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
"div",
|
|
52
|
-
{
|
|
53
|
-
"data-slot": "message-content",
|
|
54
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
55
|
-
"cn-message-content flex w-full min-w-0 flex-col wrap-break-word",
|
|
56
|
-
className
|
|
57
|
-
),
|
|
58
|
-
...props
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
function MessageHeader({ className, ...props }) {
|
|
63
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
64
|
-
"div",
|
|
65
|
-
{
|
|
66
|
-
"data-slot": "message-header",
|
|
67
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
68
|
-
"cn-message-header flex max-w-full min-w-0 items-center",
|
|
69
|
-
className
|
|
70
|
-
),
|
|
71
|
-
...props
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
function MessageFooter({ className, ...props }) {
|
|
76
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
"data-slot": "message-footer",
|
|
80
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
81
|
-
"cn-message-footer flex max-w-full min-w-0 items-center group-data-[align=end]/message:justify-end",
|
|
82
|
-
className
|
|
83
|
-
),
|
|
84
|
-
...props
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
5
|
|
|
89
6
|
|
|
90
7
|
|
|
91
8
|
|
|
9
|
+
var _chunk2AU7ZRGXcjs = require('../chunk-2AU7ZRGX.cjs');
|
|
10
|
+
require('../chunk-KWLSBTB2.cjs');
|
|
92
11
|
|
|
93
12
|
|
|
94
13
|
|
|
95
|
-
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.Message = _chunk2AU7ZRGXcjs.Message; exports.MessageAvatar = _chunk2AU7ZRGXcjs.MessageAvatar; exports.MessageContent = _chunk2AU7ZRGXcjs.MessageContent; exports.MessageFooter = _chunk2AU7ZRGXcjs.MessageFooter; exports.MessageGroup = _chunk2AU7ZRGXcjs.MessageGroup; exports.MessageHeader = _chunk2AU7ZRGXcjs.MessageHeader;
|