@epicbagel/saas-kit 1.19.0 → 1.21.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 +52 -0
- package/dist/chunk-4YJ6DGPL.cjs +1215 -0
- package/dist/chunk-C23Q4FRM.js +1215 -0
- package/dist/{chunk-TP74SBRH.cjs → chunk-E2UVQXBO.cjs} +6 -6
- package/dist/{chunk-C3VZMTVB.js → chunk-FPOJ2NGG.js} +1 -1
- package/dist/primitives/chat.cjs +23 -1051
- package/dist/primitives/chat.d.cts +9 -1
- package/dist/primitives/chat.d.ts +9 -1
- package/dist/primitives/chat.js +25 -1053
- package/dist/primitives/document-preview.cjs +5 -5
- package/dist/primitives/document-preview.js +3 -3
- package/dist/primitives/file-preview-internals.cjs +4 -4
- package/dist/primitives/file-preview-internals.js +3 -3
- package/dist/primitives/file-preview.cjs +12 -12
- package/dist/primitives/file-preview.js +3 -3
- package/dist/primitives/responsive-dialog.cjs +3 -3
- package/dist/primitives/responsive-dialog.js +2 -2
- package/dist/primitives/workflow-assistant.cjs +204 -0
- package/dist/primitives/workflow-assistant.d.cts +44 -0
- package/dist/primitives/workflow-assistant.d.ts +44 -0
- package/dist/primitives/workflow-assistant.js +204 -0
- package/package.json +11 -1
- package/dist/{chunk-BTHYGHOH.cjs → chunk-AO56ET4F.cjs} +2 -2
- package/dist/{chunk-JTI4244T.js → chunk-CRZ4INEJ.js} +10 -10
|
@@ -197,6 +197,8 @@ interface ChatInputProps {
|
|
|
197
197
|
* this only for an active mobile conversation with `mobileCompactComposer`.
|
|
198
198
|
*/
|
|
199
199
|
compactOnBlur?: boolean;
|
|
200
|
+
/** Content inside the composer surface, above its files and text field. */
|
|
201
|
+
header?: ReactNode;
|
|
200
202
|
/** Quiet contextual copy between the composer controls. */
|
|
201
203
|
helperText?: ReactNode;
|
|
202
204
|
/** Privacy or visibility reassurance rendered below the composer. */
|
|
@@ -219,7 +221,7 @@ interface ChatInputProps {
|
|
|
219
221
|
* `<Chat>` instead of composing `<ChatInput>` directly if you want
|
|
220
222
|
* device-aware default modes.
|
|
221
223
|
*/
|
|
222
|
-
declare function ChatInput({ value, onChange, onSend, pending, disabled, placeholder, size, uploadingLabel, voice, voiceSession, voiceTitle, voiceLang, submitLabel, autoFocus, className, inputRef, attachments, onFilesSelected, onRemoveAttachment, accept, multiple, addFilesLabel, appearance, compactOnBlur, helperText, privacyNote, }: ChatInputProps): react_jsx_runtime.JSX.Element;
|
|
224
|
+
declare function ChatInput({ value, onChange, onSend, pending, disabled, placeholder, size, uploadingLabel, voice, voiceSession, voiceTitle, voiceLang, submitLabel, autoFocus, className, inputRef, attachments, onFilesSelected, onRemoveAttachment, accept, multiple, addFilesLabel, appearance, compactOnBlur, header, helperText, privacyNote, }: ChatInputProps): react_jsx_runtime.JSX.Element;
|
|
223
225
|
interface ChatProps {
|
|
224
226
|
/** Conversation messages. */
|
|
225
227
|
messages: ChatMessage[];
|
|
@@ -329,6 +331,12 @@ interface ChatProps {
|
|
|
329
331
|
replySuggestions?: ReadonlyArray<string>;
|
|
330
332
|
/** The reply suggestions' accessible name. Defaults to "Suggested replies". */
|
|
331
333
|
replySuggestionsLabel?: string;
|
|
334
|
+
/** Below 768px, show replies inside the composer as the first reply and a bottom-sheet picker. Desktop chips are unchanged. */
|
|
335
|
+
mobileCompactSuggestions?: boolean;
|
|
336
|
+
/** The mobile picker's opener, given the number of additional replies. Defaults to `+N more`. */
|
|
337
|
+
replySuggestionsMoreLabel?: (count: number) => string;
|
|
338
|
+
/** Accessible label for closing the mobile picker. Defaults to "Close suggested replies". */
|
|
339
|
+
replySuggestionsCloseLabel?: string;
|
|
332
340
|
/** Visual treatment for both empty and active text composers. */
|
|
333
341
|
composerAppearance?: ChatInputProps["appearance"];
|
|
334
342
|
/**
|
|
@@ -197,6 +197,8 @@ interface ChatInputProps {
|
|
|
197
197
|
* this only for an active mobile conversation with `mobileCompactComposer`.
|
|
198
198
|
*/
|
|
199
199
|
compactOnBlur?: boolean;
|
|
200
|
+
/** Content inside the composer surface, above its files and text field. */
|
|
201
|
+
header?: ReactNode;
|
|
200
202
|
/** Quiet contextual copy between the composer controls. */
|
|
201
203
|
helperText?: ReactNode;
|
|
202
204
|
/** Privacy or visibility reassurance rendered below the composer. */
|
|
@@ -219,7 +221,7 @@ interface ChatInputProps {
|
|
|
219
221
|
* `<Chat>` instead of composing `<ChatInput>` directly if you want
|
|
220
222
|
* device-aware default modes.
|
|
221
223
|
*/
|
|
222
|
-
declare function ChatInput({ value, onChange, onSend, pending, disabled, placeholder, size, uploadingLabel, voice, voiceSession, voiceTitle, voiceLang, submitLabel, autoFocus, className, inputRef, attachments, onFilesSelected, onRemoveAttachment, accept, multiple, addFilesLabel, appearance, compactOnBlur, helperText, privacyNote, }: ChatInputProps): react_jsx_runtime.JSX.Element;
|
|
224
|
+
declare function ChatInput({ value, onChange, onSend, pending, disabled, placeholder, size, uploadingLabel, voice, voiceSession, voiceTitle, voiceLang, submitLabel, autoFocus, className, inputRef, attachments, onFilesSelected, onRemoveAttachment, accept, multiple, addFilesLabel, appearance, compactOnBlur, header, helperText, privacyNote, }: ChatInputProps): react_jsx_runtime.JSX.Element;
|
|
223
225
|
interface ChatProps {
|
|
224
226
|
/** Conversation messages. */
|
|
225
227
|
messages: ChatMessage[];
|
|
@@ -329,6 +331,12 @@ interface ChatProps {
|
|
|
329
331
|
replySuggestions?: ReadonlyArray<string>;
|
|
330
332
|
/** The reply suggestions' accessible name. Defaults to "Suggested replies". */
|
|
331
333
|
replySuggestionsLabel?: string;
|
|
334
|
+
/** Below 768px, show replies inside the composer as the first reply and a bottom-sheet picker. Desktop chips are unchanged. */
|
|
335
|
+
mobileCompactSuggestions?: boolean;
|
|
336
|
+
/** The mobile picker's opener, given the number of additional replies. Defaults to `+N more`. */
|
|
337
|
+
replySuggestionsMoreLabel?: (count: number) => string;
|
|
338
|
+
/** Accessible label for closing the mobile picker. Defaults to "Close suggested replies". */
|
|
339
|
+
replySuggestionsCloseLabel?: string;
|
|
332
340
|
/** Visual treatment for both empty and active text composers. */
|
|
333
341
|
composerAppearance?: ChatInputProps["appearance"];
|
|
334
342
|
/**
|