@progress/kendo-react-conversational-ui 13.3.0 → 13.4.0-develop.1
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/ai-prompt/AIPrompt.d.ts +176 -0
- package/ai-prompt/AIPromptContent.d.ts +30 -0
- package/ai-prompt/AIPromptContext.d.ts +32 -0
- package/ai-prompt/AIPromptExpander.d.ts +23 -0
- package/ai-prompt/AIPromptFooter.d.ts +22 -0
- package/ai-prompt/AIPromptHeader.d.ts +39 -0
- package/ai-prompt/views/AIPromptCommandsView.d.ts +58 -0
- package/ai-prompt/views/AIPromptOutputView.d.ts +63 -0
- package/ai-prompt/views/AIPromptView.d.ts +43 -0
- package/ai-prompt/views/AIPromptView.mjs +5 -5
- package/ai-prompt/views/AIPromptViewRender.d.ts +26 -0
- package/ai-prompt/views/constants.d.ts +20 -0
- package/api/action.interface.d.ts +36 -0
- package/api/attachment.interface.d.ts +37 -0
- package/api/message.interface.d.ts +99 -0
- package/api/user.interface.d.ts +29 -0
- package/chat/ChatPropsAndState.d.ts +498 -0
- package/chat/Events.d.ts +50 -0
- package/chat/ViewItem.d.ts +64 -0
- package/chat/components/Action.d.ts +25 -0
- package/chat/components/ActionGroup.d.ts +26 -0
- package/chat/components/Attachment.d.ts +27 -0
- package/chat/components/AttachmentGroup.d.ts +24 -0
- package/chat/components/Chat.d.ts +13 -0
- package/chat/components/ChatContext.d.ts +45 -0
- package/chat/components/ChatMessage.d.ts +110 -0
- package/chat/components/ChatMessage.mjs +6 -6
- package/chat/components/DateMarker.d.ts +23 -0
- package/chat/components/Header.d.ts +13 -0
- package/chat/components/MessageGroup.d.ts +37 -0
- package/chat/components/NewMessage.d.ts +52 -0
- package/chat/components/Notification.d.ts +26 -0
- package/chat/components/ScrollButtonsWrapper.d.ts +47 -0
- package/chat/components/SuggestionsGroup.d.ts +63 -0
- package/chat/components/elements/FileBox.d.ts +37 -0
- package/chat/components/elements/FileBox.mjs +3 -3
- package/chat/components/elements/PinnedMessage.d.ts +22 -0
- package/chat/components/templates/HeroCard.d.ts +43 -0
- package/chat/hooks/useScrollWithButtons.d.ts +57 -0
- package/chat/utils/fieldMapping.d.ts +56 -0
- package/chat/utils/messageSettings.d.ts +82 -0
- package/chat/utils/scroll.d.ts +32 -0
- package/chat/utils.d.ts +41 -0
- package/codemods/v12/author-id.js +1 -8
- package/codemods/v12/chat-send-message.js +2 -9
- package/codemods/v12/index.js +0 -7
- package/codemods/v12/message-template.js +1 -8
- package/codemods/v12/send-message.js +1 -8
- package/codemods/v12/show-toolbar.js +1 -8
- package/codemods/v12/toolbar-action-execute.js +1 -8
- package/codemods/v12/toolbar.js +1 -8
- package/codemods/v12/utils.js +2 -9
- package/dist/cdn/js/kendo-react-conversational-ui.js +1 -1
- package/index.d.mts +23 -1627
- package/index.d.ts +23 -1627
- package/inline-ai-prompt/InlineAIPrompt.d.ts +163 -0
- package/inline-ai-prompt/InlineAIPrompt.mjs +4 -4
- package/inline-ai-prompt/InlineAIPromptInput.d.ts +62 -0
- package/inline-ai-prompt/InlineAIPromptInput.js +2 -2
- package/inline-ai-prompt/InlineAIPromptInput.mjs +45 -44
- package/inline-ai-prompt/InlineAIPromptPopup.d.ts +57 -0
- package/messages/index.d.ts +112 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +11 -16
- package/package.json +11 -11
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as React } from 'react';
|
|
9
|
+
import { ButtonProps, SpeechToTextButtonProps } from '@progress/kendo-react-buttons';
|
|
10
|
+
import { TextAreaProps } from '@progress/kendo-react-inputs';
|
|
11
|
+
import { CustomComponent } from '@progress/kendo-react-common';
|
|
12
|
+
import { CommandInterface, CommandItemInterface } from '../ai-prompt/views/AIPromptCommandsView.js';
|
|
13
|
+
import { InlineAIPromptPopupProps } from './InlineAIPromptPopup.js';
|
|
14
|
+
export interface OutputActionInterface {
|
|
15
|
+
/**
|
|
16
|
+
* Unique identifier for the action command.
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Text displayed on the button.
|
|
21
|
+
*/
|
|
22
|
+
text: string;
|
|
23
|
+
/**
|
|
24
|
+
* SVG icon displayed on the button.
|
|
25
|
+
*/
|
|
26
|
+
svgIcon?: any;
|
|
27
|
+
/**
|
|
28
|
+
* Theme color of the button.
|
|
29
|
+
*/
|
|
30
|
+
themeColor?: ButtonProps['themeColor'];
|
|
31
|
+
/**
|
|
32
|
+
* Title attribute (tooltip) for the button.
|
|
33
|
+
*/
|
|
34
|
+
title?: string;
|
|
35
|
+
/**
|
|
36
|
+
* If `true`, adds a spacer in the action commands section for visual separation.
|
|
37
|
+
* Useful for visually separating groups of actions.
|
|
38
|
+
*/
|
|
39
|
+
spacer?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface InlineAIPromptOutputInterface {
|
|
42
|
+
/**
|
|
43
|
+
* Example usage of the `id` property:
|
|
44
|
+
* ```jsx
|
|
45
|
+
* const output = { id: 1, responseContent: 'Generated content' };
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
id: string | number;
|
|
49
|
+
/**
|
|
50
|
+
* Example usage of the `prompt` property:
|
|
51
|
+
* ```jsx
|
|
52
|
+
* const output = { prompt: 'User prompt', responseContent: 'Generated content' };
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
prompt?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Example usage of the `responseContent` property:
|
|
58
|
+
* ```jsx
|
|
59
|
+
* const output = { responseContent: 'Generated content' };
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
responseContent: string;
|
|
63
|
+
}
|
|
64
|
+
interface AIPromptCardInterface {
|
|
65
|
+
/**
|
|
66
|
+
* Custom template for AIPromptCard body.
|
|
67
|
+
*/
|
|
68
|
+
body?: (props: InlineAIPromptOutputInterface) => React.ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Custom template for AIPromptCard actions.
|
|
71
|
+
*/
|
|
72
|
+
actions?: (props: InlineAIPromptOutputInterface) => React.ReactNode;
|
|
73
|
+
}
|
|
74
|
+
export interface InlineAIPromptProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onCopy'>, InlineAIPromptPopupProps {
|
|
75
|
+
/**
|
|
76
|
+
* Inline styles for the root element.
|
|
77
|
+
* ```jsx
|
|
78
|
+
* <InlineAIPrompt style={{ backgroundColor: 'lightblue' }} />
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
style?: React.CSSProperties;
|
|
82
|
+
/**
|
|
83
|
+
* Collection of outputs to display as cards.
|
|
84
|
+
*/
|
|
85
|
+
outputs?: InlineAIPromptOutputInterface[];
|
|
86
|
+
/**
|
|
87
|
+
* Template that lets you define custom Card fields for header, body, and actions. Overrides defaults.
|
|
88
|
+
*/
|
|
89
|
+
outputCard?: AIPromptCardInterface;
|
|
90
|
+
/**
|
|
91
|
+
* Placeholder text for the prompt input.
|
|
92
|
+
*/
|
|
93
|
+
promptPlaceholder?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Initial value of the prompt input.
|
|
96
|
+
*/
|
|
97
|
+
promptValue?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Fires when the user submits a prompt.
|
|
100
|
+
*/
|
|
101
|
+
onPromptRequest?: (prompt: string, outputItem?: InlineAIPromptOutputInterface) => void;
|
|
102
|
+
/**
|
|
103
|
+
* Fires when the cancel action occurs.
|
|
104
|
+
*/
|
|
105
|
+
onPromptCancel?: () => void;
|
|
106
|
+
/**
|
|
107
|
+
* Fires when the user clicks the Copy button.
|
|
108
|
+
*/
|
|
109
|
+
onCopy?: (output: InlineAIPromptOutputInterface) => void;
|
|
110
|
+
/**
|
|
111
|
+
* Fires when the user clicks the Discard button.
|
|
112
|
+
*/
|
|
113
|
+
onDiscard?: (output: InlineAIPromptOutputInterface) => void;
|
|
114
|
+
/**
|
|
115
|
+
* Collection of output actions rendered in the card actions.
|
|
116
|
+
* If not set, default actions (`copy`, `discard`) are used. You can override built-ins.
|
|
117
|
+
*/
|
|
118
|
+
outputActions?: OutputActionInterface[];
|
|
119
|
+
/**
|
|
120
|
+
* Fires when an action command executes.
|
|
121
|
+
* Built-in `copy` and `discard` actions are handled internally.
|
|
122
|
+
* All other actions call this handler.
|
|
123
|
+
*/
|
|
124
|
+
onOutputAction?: (command: OutputActionInterface, output: InlineAIPromptOutputInterface) => void;
|
|
125
|
+
/**
|
|
126
|
+
* Custom component used to render the prompt input.
|
|
127
|
+
*/
|
|
128
|
+
promptInput?: CustomComponent<TextAreaProps>;
|
|
129
|
+
/**
|
|
130
|
+
* Custom component used to render the generate button.
|
|
131
|
+
*/
|
|
132
|
+
generateButton?: CustomComponent<ButtonProps>;
|
|
133
|
+
/**
|
|
134
|
+
* Shows speech-to-text button in the input. When `true`, shows the button with default settings.
|
|
135
|
+
* When you pass an object, forwards its props to the `SpeechToTextButton` component.
|
|
136
|
+
*
|
|
137
|
+
* @default false
|
|
138
|
+
*/
|
|
139
|
+
enableSpeechToText?: boolean | SpeechToTextButtonProps;
|
|
140
|
+
/**
|
|
141
|
+
* Indicates if the content is streaming.
|
|
142
|
+
*/
|
|
143
|
+
streaming?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Collection of commands rendered in the context menu.
|
|
146
|
+
* If not set, default AI text editing commands are used.
|
|
147
|
+
*/
|
|
148
|
+
commands?: CommandInterface[];
|
|
149
|
+
/**
|
|
150
|
+
* The width of the component.
|
|
151
|
+
*/
|
|
152
|
+
width?: number | string;
|
|
153
|
+
/**
|
|
154
|
+
* The height of the component.
|
|
155
|
+
*/
|
|
156
|
+
height?: number | string;
|
|
157
|
+
/**
|
|
158
|
+
* Fires when a command from the context menu executes. Provides the selected command and current prompt value.
|
|
159
|
+
*/
|
|
160
|
+
onCommandExecute?: (command: CommandItemInterface) => void;
|
|
161
|
+
}
|
|
162
|
+
export declare const InlineAIPrompt: (props: InlineAIPromptProps) => React.JSX.Element;
|
|
163
|
+
export {};
|
|
@@ -9,7 +9,7 @@ import t from "react";
|
|
|
9
9
|
import { Card as re, CardBody as se, CardActions as le, ContextMenu as ce } from "@progress/kendo-react-layout";
|
|
10
10
|
import { Button as E } from "@progress/kendo-react-buttons";
|
|
11
11
|
import { TextArea as me } from "@progress/kendo-react-inputs";
|
|
12
|
-
import {
|
|
12
|
+
import { copyIcon as ie, cancelOutlineIcon as de, checkIcon as pe } from "@progress/kendo-svg-icons";
|
|
13
13
|
import { validatePackage as fe, getLicenseMessage as Ce, classNames as he, WatermarkOverlay as ue } from "@progress/kendo-react-common";
|
|
14
14
|
import { packageMetadata as x } from "../package-metadata.mjs";
|
|
15
15
|
import { InlineAIPromptPopup as ge } from "./InlineAIPromptPopup.mjs";
|
|
@@ -52,14 +52,14 @@ const Ae = (v) => {
|
|
|
52
52
|
{
|
|
53
53
|
id: "copy",
|
|
54
54
|
text: "Copy",
|
|
55
|
-
svgIcon:
|
|
55
|
+
svgIcon: ie,
|
|
56
56
|
themeColor: "primary",
|
|
57
57
|
title: "Copy"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
id: "discard",
|
|
61
61
|
text: "Discard",
|
|
62
|
-
svgIcon:
|
|
62
|
+
svgIcon: de,
|
|
63
63
|
themeColor: "base",
|
|
64
64
|
title: "Discard"
|
|
65
65
|
}
|
|
@@ -131,7 +131,7 @@ const Ae = (v) => {
|
|
|
131
131
|
fillMode: "flat",
|
|
132
132
|
rounded: "medium",
|
|
133
133
|
title: (o = a.title) != null ? o : a.text,
|
|
134
|
-
svgIcon: a.id === "copy" && V === e.id ?
|
|
134
|
+
svgIcon: a.id === "copy" && V === e.id ? pe : a.svgIcon,
|
|
135
135
|
onClick: () => X(a, e)
|
|
136
136
|
},
|
|
137
137
|
a.text
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as React } from 'react';
|
|
9
|
+
import { ButtonProps, SpeechToTextButtonProps } from '@progress/kendo-react-buttons';
|
|
10
|
+
import { TextAreaProps } from '@progress/kendo-react-inputs';
|
|
11
|
+
import { CustomComponent } from '@progress/kendo-react-common';
|
|
12
|
+
import { CommandInterface } from '../ai-prompt/views/AIPromptCommandsView.js';
|
|
13
|
+
export interface InlineAIPromptInputProps {
|
|
14
|
+
/**
|
|
15
|
+
* Placeholder text for the prompt input
|
|
16
|
+
*/
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Callback when the menu button is clicked
|
|
20
|
+
*/
|
|
21
|
+
onMenuClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Accepts a custom component that can be used to render the prompt input.
|
|
24
|
+
*/
|
|
25
|
+
promptInput?: CustomComponent<TextAreaProps>;
|
|
26
|
+
/**
|
|
27
|
+
* Accepts a custom component that can be used to render the generate button.
|
|
28
|
+
*/
|
|
29
|
+
generateButton?: CustomComponent<ButtonProps>;
|
|
30
|
+
/**
|
|
31
|
+
* Show speech to text button in input. When true, shows the button with default settings.
|
|
32
|
+
* When an object is provided, passes those props directly to the SpeechToTextButton component.
|
|
33
|
+
*
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
enableSpeechToText?: boolean | SpeechToTextButtonProps;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies if the content is being streamed.
|
|
39
|
+
*/
|
|
40
|
+
streaming?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The collection of commands that will be rendered in the context menu.
|
|
43
|
+
* If not specified, default AI text editing commands will be used.
|
|
44
|
+
*/
|
|
45
|
+
commands?: CommandInterface[];
|
|
46
|
+
/**
|
|
47
|
+
* The value of the prompt input.
|
|
48
|
+
* If not specified, the component will manage its own state.
|
|
49
|
+
*/
|
|
50
|
+
promptValue?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Callback when the prompt input value is submitted.
|
|
53
|
+
* The value is trimmed before being passed to the callback.
|
|
54
|
+
*/
|
|
55
|
+
onPromptRequest?: (value: string) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Callback when the prompt input value is cancelled.
|
|
58
|
+
* This is typically used to stop the streaming of content.
|
|
59
|
+
*/
|
|
60
|
+
onPromptCancel?: () => void;
|
|
61
|
+
}
|
|
62
|
+
export declare const InlineAIPromptInput: React.FC<InlineAIPromptInputProps>;
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),
|
|
9
|
-
`);return
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),S=require("@progress/kendo-react-buttons"),a=require("@progress/kendo-react-inputs"),c=require("@progress/kendo-svg-icons"),u=require("@progress/kendo-react-common"),D=({placeholder:v="Ask or generate content with AI...",promptValue:B,onMenuClick:h,promptInput:i=a.TextArea,generateButton:x,enableSpeechToText:s=!1,streaming:e=!1,commands:m,onPromptRequest:d,onPromptCancel:E})=>{const[o,f]=t.useState(B||""),[y,p]=u.useCustomComponent(x),[k,I]=u.useCustomComponent(i),b=i===a.TextArea||k===a.TextArea,w={svgIcon:e?c.stopSmIcon:c.paperPlaneIcon,active:(!!e).toString(),title:"Send Button","aria-label":"Send Button",disabled:!o.trim()&&!e,"aria-disabled":!o.trim()&&!e},R={placeholder:v,className:"!k-flex-row",...b?{autoSize:!0}:{},rows:1},g=m&&m.length>0,N=Object.keys(p).length>0?p:w,j=Object.keys(I).length>0?I:R,A=n=>{const{isFinal:l,alternatives:P}=n;if(l&&P.length>0){const M=P[0].transcript,T=(()=>{const r=o,V=r&&!r.endsWith(" ")&&!r.endsWith(`
|
|
9
|
+
`);return r+(V?" ":"")+M})();f(T)}},q=n=>{const l=n.target.value;f(l)},C=()=>{o.trim()&&d&&d(o.trim())};return t.createElement(k,{value:o,onChange:q,onKeyDown:n=>{n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),C())},prefix:g||s?t.createElement(t.Fragment,null,t.createElement(a.InputPrefix,{className:"!k-align-items-start"},g&&t.createElement(S.Button,{"aria-label":"Commands Button",title:"Commands Button",fillMode:"flat",svgIcon:c.menuIcon,onClick:h}),s&&t.createElement(S.SpeechToTextButton,{fillMode:"flat",...typeof s=="object"?{...s,onResult:s.onResult||A}:{onResult:A}})),t.createElement(a.InputSeparator,null)):void 0,suffix:t.createElement(a.InputSuffix,{className:"!k-align-items-start"},t.createElement(y,{className:u.classNames("k-prompt-send",{"k-generating":e,"k-active":e}),fillMode:"flat",onClick:e?E:C,...N})),...j})};exports.InlineAIPromptInput=D;
|
|
@@ -6,94 +6,95 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import t from "react";
|
|
9
|
-
import { Button as
|
|
10
|
-
import {
|
|
11
|
-
import { stopSmIcon as
|
|
12
|
-
import { useCustomComponent as
|
|
9
|
+
import { Button as M, SpeechToTextButton as R } from "@progress/kendo-react-buttons";
|
|
10
|
+
import { TextArea as l, InputSuffix as F, InputPrefix as K, InputSeparator as O } from "@progress/kendo-react-inputs";
|
|
11
|
+
import { stopSmIcon as W, paperPlaneIcon as _, menuIcon as z } from "@progress/kendo-svg-icons";
|
|
12
|
+
import { useCustomComponent as B, classNames as T } from "@progress/kendo-react-common";
|
|
13
13
|
const U = ({
|
|
14
|
-
placeholder:
|
|
15
|
-
promptValue:
|
|
16
|
-
onMenuClick:
|
|
17
|
-
promptInput:
|
|
18
|
-
generateButton:
|
|
14
|
+
placeholder: P = "Ask or generate content with AI...",
|
|
15
|
+
promptValue: v,
|
|
16
|
+
onMenuClick: x,
|
|
17
|
+
promptInput: c = l,
|
|
18
|
+
generateButton: A,
|
|
19
19
|
enableSpeechToText: a = !1,
|
|
20
20
|
streaming: e = !1,
|
|
21
|
-
commands:
|
|
22
|
-
onPromptRequest:
|
|
21
|
+
commands: i,
|
|
22
|
+
onPromptRequest: u,
|
|
23
23
|
onPromptCancel: C
|
|
24
24
|
}) => {
|
|
25
|
-
const [o,
|
|
26
|
-
|
|
27
|
-
), [
|
|
28
|
-
svgIcon: e ?
|
|
25
|
+
const [o, m] = t.useState(v || ""), [E, f] = B(
|
|
26
|
+
A
|
|
27
|
+
), [p, d] = B(c), S = c === l || p === l, w = {
|
|
28
|
+
svgIcon: e ? W : _,
|
|
29
29
|
active: (!!e).toString(),
|
|
30
30
|
title: "Send Button",
|
|
31
31
|
"aria-label": "Send Button",
|
|
32
32
|
disabled: !o.trim() && !e,
|
|
33
33
|
"aria-disabled": !o.trim() && !e
|
|
34
|
-
},
|
|
35
|
-
placeholder:
|
|
34
|
+
}, y = {
|
|
35
|
+
placeholder: P,
|
|
36
36
|
className: "!k-flex-row",
|
|
37
|
-
|
|
37
|
+
// Only include TextArea-specific props when using the default component
|
|
38
|
+
...S ? { autoSize: !0 } : {},
|
|
38
39
|
rows: 1
|
|
39
|
-
},
|
|
40
|
-
const { isFinal: s, alternatives:
|
|
41
|
-
if (s &&
|
|
42
|
-
const
|
|
43
|
-
const r = o,
|
|
40
|
+
}, k = i && i.length > 0, N = Object.keys(f).length > 0 ? f : w, b = Object.keys(d).length > 0 ? d : y, g = (n) => {
|
|
41
|
+
const { isFinal: s, alternatives: h } = n;
|
|
42
|
+
if (s && h.length > 0) {
|
|
43
|
+
const j = h[0].transcript, D = (() => {
|
|
44
|
+
const r = o, G = r && !r.endsWith(" ") && !r.endsWith(`
|
|
44
45
|
`);
|
|
45
|
-
return r + (
|
|
46
|
+
return r + (G ? " " : "") + j;
|
|
46
47
|
})();
|
|
47
|
-
|
|
48
|
+
m(D);
|
|
48
49
|
}
|
|
49
|
-
},
|
|
50
|
+
}, V = (n) => {
|
|
50
51
|
const s = n.target.value;
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
o.trim() &&
|
|
52
|
+
m(s);
|
|
53
|
+
}, I = () => {
|
|
54
|
+
o.trim() && u && u(o.trim());
|
|
54
55
|
};
|
|
55
56
|
return /* @__PURE__ */ t.createElement(
|
|
56
|
-
|
|
57
|
+
p,
|
|
57
58
|
{
|
|
58
59
|
value: o,
|
|
59
|
-
onChange:
|
|
60
|
+
onChange: V,
|
|
60
61
|
onKeyDown: (n) => {
|
|
61
|
-
n.key === "Enter" && !n.shiftKey && (n.preventDefault(),
|
|
62
|
+
n.key === "Enter" && !n.shiftKey && (n.preventDefault(), I());
|
|
62
63
|
},
|
|
63
|
-
prefix:
|
|
64
|
-
|
|
64
|
+
prefix: k || a ? /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(K, { className: "!k-align-items-start" }, k && /* @__PURE__ */ t.createElement(
|
|
65
|
+
M,
|
|
65
66
|
{
|
|
66
67
|
"aria-label": "Commands Button",
|
|
67
68
|
title: "Commands Button",
|
|
68
69
|
fillMode: "flat",
|
|
69
|
-
svgIcon:
|
|
70
|
-
onClick:
|
|
70
|
+
svgIcon: z,
|
|
71
|
+
onClick: x
|
|
71
72
|
}
|
|
72
73
|
), a && /* @__PURE__ */ t.createElement(
|
|
73
|
-
|
|
74
|
+
R,
|
|
74
75
|
{
|
|
75
76
|
fillMode: "flat",
|
|
76
77
|
...typeof a == "object" ? {
|
|
77
78
|
...a,
|
|
78
|
-
onResult: a.onResult ||
|
|
79
|
+
onResult: a.onResult || g
|
|
79
80
|
} : {
|
|
80
|
-
onResult:
|
|
81
|
+
onResult: g
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
|
-
)), /* @__PURE__ */ t.createElement(
|
|
84
|
+
)), /* @__PURE__ */ t.createElement(O, null)) : void 0,
|
|
84
85
|
suffix: /* @__PURE__ */ t.createElement(F, { className: "!k-align-items-start" }, /* @__PURE__ */ t.createElement(
|
|
85
86
|
E,
|
|
86
87
|
{
|
|
87
|
-
className:
|
|
88
|
+
className: T("k-prompt-send", {
|
|
88
89
|
"k-generating": e,
|
|
89
90
|
"k-active": e
|
|
90
91
|
}),
|
|
91
92
|
fillMode: "flat",
|
|
92
|
-
onClick: e ? C :
|
|
93
|
-
...
|
|
93
|
+
onClick: e ? C : I,
|
|
94
|
+
...N
|
|
94
95
|
}
|
|
95
96
|
)),
|
|
96
|
-
...
|
|
97
|
+
...b
|
|
97
98
|
}
|
|
98
99
|
);
|
|
99
100
|
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as React } from 'react';
|
|
9
|
+
import { PopupAnimation, PopupProps } from '@progress/kendo-react-popup';
|
|
10
|
+
export interface InlineAIPromptPopupProps {
|
|
11
|
+
/**
|
|
12
|
+
* Controls the visibility of the popup.
|
|
13
|
+
*
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
show?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* The element that serves as an anchor for the popup.
|
|
19
|
+
*/
|
|
20
|
+
anchor?: HTMLElement | null;
|
|
21
|
+
/**
|
|
22
|
+
* Fires when the popup is opened.
|
|
23
|
+
*/
|
|
24
|
+
onOpen?: (event: {
|
|
25
|
+
target: any;
|
|
26
|
+
}) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Fires when the popup is closed.
|
|
29
|
+
*/
|
|
30
|
+
onClose?: (event: {
|
|
31
|
+
target: any;
|
|
32
|
+
}) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Controls the animation of the popup.
|
|
35
|
+
*
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
animate?: boolean | PopupAnimation;
|
|
39
|
+
/**
|
|
40
|
+
* The container element where the popup will be rendered.
|
|
41
|
+
* If not specified, the popup will be rendered in the document body.
|
|
42
|
+
*/
|
|
43
|
+
appendTo?: HTMLElement;
|
|
44
|
+
/**
|
|
45
|
+
* Object which passes props directly to the Popup component.
|
|
46
|
+
*/
|
|
47
|
+
popupOptions?: PopupProps;
|
|
48
|
+
/**
|
|
49
|
+
* The content to render inside the popup.
|
|
50
|
+
*/
|
|
51
|
+
children?: React.ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* Additional CSS styles for the popup content.
|
|
54
|
+
*/
|
|
55
|
+
style?: React.CSSProperties;
|
|
56
|
+
}
|
|
57
|
+
export declare const InlineAIPromptPopup: React.FC<InlineAIPromptPopupProps>;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const newMessageSendButton = "newMessage.sendButton";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const newMessageOptionsButton = "newMessage.optionsButton";
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare const newMessageMessageInput = "newMessage.messageInput";
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare const avatarAlt = "avatar.alt";
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare const ariaLabelMessageList = "messageList.ariaLabel";
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const aIPromptNoOutputs = "aIPrompt.noOutputs";
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export declare const aIPromptCancel = "aIPrompt.cancel";
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export declare const chatSenderDeletedMessage = "chat.senderDeletedMessage";
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
export declare const chatReceiverDeletedMessage = "chat.receiverDeletedMessage";
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export declare const chatCopyNotification = "chat.copyNotification";
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
export declare const downloadAllFiles = "chat.downloadAllFiles";
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
export declare const closeReply = "chat.closeReply";
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
export declare const collapseMessage = "chat.collapseMessage";
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export declare const expandMessage = "chat.expandMessage";
|
|
64
|
+
/**
|
|
65
|
+
* @hidden
|
|
66
|
+
*/
|
|
67
|
+
export declare const removeFile = "chat.removeFile";
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
export declare const fileActions = "chat.fileActions";
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
*/
|
|
75
|
+
export declare const attachFile = "chat.attachFile";
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
export declare const downloadAll = "chat.downloadAll";
|
|
80
|
+
/**
|
|
81
|
+
* @hidden
|
|
82
|
+
*/
|
|
83
|
+
export declare const scrollLeft = "chat.scrollLeft";
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
export declare const scrollRight = "chat.scrollRight";
|
|
88
|
+
/**
|
|
89
|
+
* @hidden
|
|
90
|
+
*/
|
|
91
|
+
export declare const messages: {
|
|
92
|
+
"newMessage.sendButton": string;
|
|
93
|
+
"newMessage.optionsButton": string;
|
|
94
|
+
"newMessage.messageInput": string;
|
|
95
|
+
"avatar.alt": string;
|
|
96
|
+
"messageList.ariaLabel": string;
|
|
97
|
+
"aIPrompt.cancel": string;
|
|
98
|
+
"aIPrompt.noOutputs": string;
|
|
99
|
+
"chat.senderDeletedMessage": string;
|
|
100
|
+
"chat.receiverDeletedMessage": string;
|
|
101
|
+
"chat.copyNotification": string;
|
|
102
|
+
"chat.downloadAllFiles": string;
|
|
103
|
+
"chat.closeReply": string;
|
|
104
|
+
"chat.collapseMessage": string;
|
|
105
|
+
"chat.expandMessage": string;
|
|
106
|
+
"chat.removeFile": string;
|
|
107
|
+
"chat.fileActions": string;
|
|
108
|
+
"chat.attachFile": string;
|
|
109
|
+
"chat.downloadAll": string;
|
|
110
|
+
"chat.scrollLeft": string;
|
|
111
|
+
"chat.scrollRight": string;
|
|
112
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PackageMetadata } from '@progress/kendo-licensing';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const packageMetadata: PackageMetadata;
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-conversational-ui",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1770218941,version:"13.4.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
+
// Generated file. DO NOT EDIT.
|
|
1
2
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
3
|
+
* @hidden
|
|
7
4
|
*/
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
export const packageMetadata = Object.freeze({
|
|
6
|
+
name: '@progress/kendo-react-conversational-ui',
|
|
7
|
+
productName: 'KendoReact',
|
|
8
|
+
productCode: 'KENDOUIREACT',
|
|
9
|
+
productCodes: ['KENDOUIREACT'],
|
|
10
|
+
publishDate: 0,
|
|
11
|
+
version: '13.4.0-develop.1',
|
|
12
|
+
licensingDocsUrl:
|
|
13
|
+
'https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
16
14
|
});
|
|
17
|
-
export {
|
|
18
|
-
e as packageMetadata
|
|
19
|
-
};
|