@pstdio/ui 0.39.0 → 0.40.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/dist/chat-ui.d.ts +16 -14
- package/dist/chat-ui.js +1028 -914
- package/dist/chat-ui.js.map +1 -1
- package/dist/{diff-viewer-DJ1B5hxL.js → diff-viewer-BP_mI6Wx.js} +2 -2
- package/dist/{diff-viewer-DJ1B5hxL.js.map → diff-viewer-BP_mI6Wx.js.map} +1 -1
- package/dist/diff.js +1 -1
- package/dist/{index-BfFLdci8.d.ts → index-Bfddrlz8.d.ts} +1 -1
- package/dist/{index-DlmvvQ6x.d.ts → index-CbtbcvKm.d.ts} +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.js +2 -2
- package/dist/rich-text.d.ts +1 -1
- package/dist/{theme-BsOWAIi2.js → theme-CbmSEbRF.js} +7 -2
- package/dist/theme-CbmSEbRF.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{tree-list-WhISG-cz.js → tree-list-BNZwjQZA.js} +217 -199
- package/dist/tree-list-BNZwjQZA.js.map +1 -0
- package/package.json +2 -2
- package/dist/theme-BsOWAIi2.js.map +0 -1
- package/dist/tree-list-WhISG-cz.js.map +0 -1
package/dist/chat-ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ResourceBadgeProps, r as ScrollArea$1 } from "./resource-badge-95WPVlZf.js";
|
|
2
|
-
import { T as ReferenceItem } from "./index-
|
|
2
|
+
import { T as ReferenceItem } from "./index-Bfddrlz8.js";
|
|
3
3
|
import { HTMLChakraProps, IconButtonProps, RecipeVariantProps } from "@chakra-ui/react";
|
|
4
4
|
import { StickToBottom } from "use-stick-to-bottom";
|
|
5
5
|
import { ReactNode } from "react";
|
|
@@ -10,17 +10,19 @@ type ConversationScrollButtonProps = IconButtonProps;
|
|
|
10
10
|
export declare const ChatPrimitives: {
|
|
11
11
|
readonly Root: import("@chakra-ui/react").ChakraComponent<import("react").ElementType, {
|
|
12
12
|
resize?: import("use-stick-to-bottom").Animation | undefined;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
color?: string | undefined | undefined;
|
|
13
|
+
onChange?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
|
|
14
|
+
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
15
|
+
onSubmit?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
|
|
17
16
|
content?: string | undefined | undefined;
|
|
17
|
+
color?: string | undefined | undefined;
|
|
18
18
|
translate?: "yes" | "no" | undefined | undefined;
|
|
19
19
|
initial?: (import("use-stick-to-bottom").Animation | boolean) | undefined;
|
|
20
20
|
hidden?: boolean | undefined | undefined;
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
22
|
+
radioGroup?: string | undefined | undefined;
|
|
23
|
+
slot?: string | undefined | undefined;
|
|
24
|
+
style?: import("react").CSSProperties | undefined;
|
|
25
|
+
title?: string | undefined | undefined;
|
|
24
26
|
defaultChecked?: boolean | undefined | undefined;
|
|
25
27
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
26
28
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -39,7 +41,7 @@ export declare const ChatPrimitives: {
|
|
|
39
41
|
nonce?: string | undefined | undefined;
|
|
40
42
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
41
43
|
tabIndex?: number | undefined | undefined;
|
|
42
|
-
|
|
44
|
+
role?: import("react").AriaRole | undefined;
|
|
43
45
|
about?: string | undefined | undefined;
|
|
44
46
|
datatype?: string | undefined | undefined;
|
|
45
47
|
inlist?: any;
|
|
@@ -60,7 +62,6 @@ export declare const ChatPrimitives: {
|
|
|
60
62
|
results?: number | undefined | undefined;
|
|
61
63
|
security?: string | undefined | undefined;
|
|
62
64
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
63
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
64
65
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
65
66
|
popoverTarget?: string | undefined | undefined;
|
|
66
67
|
inert?: boolean | undefined | undefined;
|
|
@@ -109,6 +110,7 @@ export declare const ChatPrimitives: {
|
|
|
109
110
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
110
111
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
111
112
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
113
|
+
"aria-roledescription"?: string | undefined | undefined;
|
|
112
114
|
"aria-rowcount"?: number | undefined | undefined;
|
|
113
115
|
"aria-rowindex"?: number | undefined | undefined;
|
|
114
116
|
"aria-rowindextext"?: string | undefined | undefined;
|
|
@@ -120,6 +122,7 @@ export declare const ChatPrimitives: {
|
|
|
120
122
|
"aria-valuemin"?: number | undefined | undefined;
|
|
121
123
|
"aria-valuenow"?: number | undefined | undefined;
|
|
122
124
|
"aria-valuetext"?: string | undefined | undefined;
|
|
125
|
+
children: ((context: import("use-stick-to-bottom").StickToBottomContext) => import("react").ReactNode) | import("react").ReactNode;
|
|
123
126
|
dangerouslySetInnerHTML?: {
|
|
124
127
|
__html: string | TrustedHTML;
|
|
125
128
|
} | undefined | undefined;
|
|
@@ -139,7 +142,6 @@ export declare const ChatPrimitives: {
|
|
|
139
142
|
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
140
143
|
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
141
144
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
142
|
-
onChange?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
|
|
143
145
|
onChangeCapture?: import("react").ChangeEventHandler<HTMLDivElement, Element> | undefined;
|
|
144
146
|
onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
145
147
|
onBeforeInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
@@ -147,13 +149,11 @@ export declare const ChatPrimitives: {
|
|
|
147
149
|
onInputCapture?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
148
150
|
onReset?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
149
151
|
onResetCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
150
|
-
onSubmit?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
|
|
151
152
|
onSubmitCapture?: import("react").SubmitEventHandler<HTMLDivElement> | undefined;
|
|
152
153
|
onInvalid?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
153
154
|
onInvalidCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
154
155
|
onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
155
156
|
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
156
|
-
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
157
157
|
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
158
158
|
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
159
159
|
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
@@ -436,7 +436,7 @@ interface AutoScrollProps {
|
|
|
436
436
|
}
|
|
437
437
|
export declare function AutoScroll(props: AutoScrollProps): null;
|
|
438
438
|
//#endregion
|
|
439
|
-
//#region src/components/chat-ui/components/chat-input-question-
|
|
439
|
+
//#region src/components/chat-ui/components/chat-input-question-answers.d.ts
|
|
440
440
|
interface ChatInputQuestionOption {
|
|
441
441
|
label: string;
|
|
442
442
|
description?: string;
|
|
@@ -603,6 +603,8 @@ interface ChatPanelProps {
|
|
|
603
603
|
messages: SessionMessage[];
|
|
604
604
|
loading?: boolean;
|
|
605
605
|
streaming?: boolean;
|
|
606
|
+
/** Current run start in milliseconds. Without an anchor, elapsed time starts when streaming mounts. */
|
|
607
|
+
streamingStartedAt?: number;
|
|
606
608
|
emptyStateTitle: string;
|
|
607
609
|
emptyStateDescription: string;
|
|
608
610
|
emptyStateContent?: ReactNode;
|