@progress/kendo-react-conversational-ui 14.2.1-develop.3 → 14.2.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 +1 -1
- package/ai-prompt/AIPrompt.js +1 -1
- package/ai-prompt/AIPrompt.mjs +11 -11
- package/ai-prompt/AIPromptContent.d.ts +1 -1
- package/ai-prompt/AIPromptContent.js +1 -1
- package/ai-prompt/AIPromptContent.mjs +6 -6
- package/ai-prompt/AIPromptContext.d.ts +1 -1
- package/ai-prompt/AIPromptContext.js +1 -1
- package/ai-prompt/AIPromptContext.mjs +5 -5
- package/ai-prompt/AIPromptExpander.d.ts +1 -1
- package/ai-prompt/AIPromptExpander.js +1 -1
- package/ai-prompt/AIPromptExpander.mjs +3 -3
- package/ai-prompt/AIPromptFooter.d.ts +1 -1
- package/ai-prompt/AIPromptFooter.js +1 -1
- package/ai-prompt/AIPromptFooter.mjs +3 -3
- package/ai-prompt/AIPromptHeader.d.ts +1 -1
- package/ai-prompt/AIPromptHeader.js +1 -1
- package/ai-prompt/AIPromptHeader.mjs +7 -7
- package/ai-prompt/views/AIPromptCommandsView.d.ts +1 -1
- package/ai-prompt/views/AIPromptCommandsView.js +1 -1
- package/ai-prompt/views/AIPromptCommandsView.mjs +11 -11
- package/ai-prompt/views/AIPromptOutputView.d.ts +1 -1
- package/ai-prompt/views/AIPromptOutputView.js +1 -1
- package/ai-prompt/views/AIPromptOutputView.mjs +9 -9
- package/ai-prompt/views/AIPromptView.d.ts +1 -1
- package/ai-prompt/views/AIPromptView.js +2 -2
- package/ai-prompt/views/AIPromptView.mjs +7 -7
- package/ai-prompt/views/AIPromptViewRender.d.ts +1 -1
- package/chat/utils.d.ts +1 -1
- package/chat/utils.js +1 -1
- package/chat/utils.mjs +10 -10
- package/dist/cdn/js/kendo-react-conversational-ui.js +1 -1
- package/inline-ai-prompt/InlineAIPrompt.d.ts +1 -1
- package/inline-ai-prompt/InlineAIPrompt.js +1 -1
- package/inline-ai-prompt/InlineAIPrompt.mjs +25 -25
- package/inline-ai-prompt/InlineAIPromptInput.d.ts +1 -1
- package/inline-ai-prompt/InlineAIPromptInput.js +2 -2
- package/inline-ai-prompt/InlineAIPromptInput.mjs +12 -12
- package/inline-ai-prompt/InlineAIPromptPopup.d.ts +1 -1
- package/inline-ai-prompt/InlineAIPromptPopup.js +1 -1
- package/inline-ai-prompt/InlineAIPromptPopup.mjs +14 -14
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +1 -1
- package/package.json +11 -11
|
@@ -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
|
|
9
|
-
`);return
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),y=require("@progress/kendo-react-buttons"),s=require("@progress/kendo-react-inputs"),f=require("@progress/kendo-svg-icons"),d=require("@progress/kendo-react-common");function V(t){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(c,a,l.get?l:{enumerable:!0,get:()=>t[a]})}}return c.default=t,Object.freeze(c)}const e=V(q),G=({placeholder:t="Ask or generate content with AI...",promptValue:c,onMenuClick:a,promptInput:l=s.TextArea,generateButton:B,enableSpeechToText:u=!1,streaming:n=!1,commands:p,onPromptRequest:g,onPromptCancel:h})=>{const[r,k]=e.useState(c||""),[x,I]=d.useCustomComponent(B),[P,S]=d.useCustomComponent(l),E=l===s.TextArea||P===s.TextArea,j={svgIcon:n?f.stopSmIcon:f.paperPlaneIcon,active:(!!n).toString(),title:"Send Button","aria-label":"Send Button",disabled:!r.trim()&&!n,"aria-disabled":!r.trim()&&!n},O={placeholder:t,className:"!k-flex-row",...E?{autoSize:!0}:{},rows:1},b=p&&p.length>0,w=Object.keys(I).length>0?I:j,R=Object.keys(S).length>0?S:O,v=o=>{const{isFinal:m,alternatives:C}=o;if(m&&C.length>0){const D=C[0].transcript,M=(()=>{const i=r,T=i&&!i.endsWith(" ")&&!i.endsWith(`
|
|
9
|
+
`);return i+(T?" ":"")+D})();k(M)}},N=o=>{const m=o.target.value;k(m)},A=()=>{r.trim()&&g&&g(r.trim())};return e.createElement(P,{value:r,onChange:N,onKeyDown:o=>{o.key==="Enter"&&!o.shiftKey&&(o.preventDefault(),A())},prefix:b||u?e.createElement(e.Fragment,null,e.createElement(s.InputPrefix,{className:"!k-align-items-start"},b&&e.createElement(y.Button,{"aria-label":"Commands Button",title:"Commands Button",fillMode:"flat",svgIcon:f.menuIcon,onClick:a}),u&&e.createElement(y.SpeechToTextButton,{fillMode:"flat",...typeof u=="object"?{...u,onResult:u.onResult||v}:{onResult:v}})),e.createElement(s.InputSeparator,null)):void 0,suffix:e.createElement(s.InputSuffix,{className:"!k-align-items-start"},e.createElement(x,{className:d.classNames("k-prompt-send",{"k-generating":n,"k-active":n}),fillMode:"flat",onClick:n?h:A,...w})),...R})};exports.InlineAIPromptInput=G;
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import t from "react";
|
|
8
|
+
import * as t from "react";
|
|
9
9
|
import { Button as M, SpeechToTextButton as R } from "@progress/kendo-react-buttons";
|
|
10
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
|
|
12
|
-
import { useCustomComponent as B, classNames as
|
|
11
|
+
import { stopSmIcon as W, paperPlaneIcon as z, menuIcon as T } from "@progress/kendo-svg-icons";
|
|
12
|
+
import { useCustomComponent as B, classNames as $ } from "@progress/kendo-react-common";
|
|
13
13
|
const U = ({
|
|
14
14
|
placeholder: P = "Ask or generate content with AI...",
|
|
15
15
|
promptValue: v,
|
|
@@ -25,7 +25,7 @@ const U = ({
|
|
|
25
25
|
const [o, m] = t.useState(v || ""), [E, f] = B(
|
|
26
26
|
A
|
|
27
27
|
), [p, d] = B(c), S = c === l || p === l, w = {
|
|
28
|
-
svgIcon: e ? W :
|
|
28
|
+
svgIcon: e ? W : z,
|
|
29
29
|
active: (!!e).toString(),
|
|
30
30
|
title: "Send Button",
|
|
31
31
|
"aria-label": "Send Button",
|
|
@@ -38,18 +38,18 @@ const U = ({
|
|
|
38
38
|
...S ? { autoSize: !0 } : {},
|
|
39
39
|
rows: 1
|
|
40
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:
|
|
42
|
-
if (
|
|
41
|
+
const { isFinal: r, alternatives: h } = n;
|
|
42
|
+
if (r && h.length > 0) {
|
|
43
43
|
const j = h[0].transcript, D = (() => {
|
|
44
|
-
const
|
|
44
|
+
const s = o, G = s && !s.endsWith(" ") && !s.endsWith(`
|
|
45
45
|
`);
|
|
46
|
-
return
|
|
46
|
+
return s + (G ? " " : "") + j;
|
|
47
47
|
})();
|
|
48
48
|
m(D);
|
|
49
49
|
}
|
|
50
50
|
}, V = (n) => {
|
|
51
|
-
const
|
|
52
|
-
m(
|
|
51
|
+
const r = n.target.value;
|
|
52
|
+
m(r);
|
|
53
53
|
}, I = () => {
|
|
54
54
|
o.trim() && u && u(o.trim());
|
|
55
55
|
};
|
|
@@ -67,7 +67,7 @@ const U = ({
|
|
|
67
67
|
"aria-label": "Commands Button",
|
|
68
68
|
title: "Commands Button",
|
|
69
69
|
fillMode: "flat",
|
|
70
|
-
svgIcon:
|
|
70
|
+
svgIcon: T,
|
|
71
71
|
onClick: x
|
|
72
72
|
}
|
|
73
73
|
), a && /* @__PURE__ */ t.createElement(
|
|
@@ -85,7 +85,7 @@ const U = ({
|
|
|
85
85
|
suffix: /* @__PURE__ */ t.createElement(F, { className: "!k-align-items-start" }, /* @__PURE__ */ t.createElement(
|
|
86
86
|
E,
|
|
87
87
|
{
|
|
88
|
-
className:
|
|
88
|
+
className: $("k-prompt-send", {
|
|
89
89
|
"k-generating": e,
|
|
90
90
|
"k-active": e
|
|
91
91
|
}),
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { default as React } from 'react';
|
|
9
8
|
import { PopupAnimation, PopupProps } from '@progress/kendo-react-popup';
|
|
9
|
+
import * as React from 'react';
|
|
10
10
|
export interface InlineAIPromptPopupProps {
|
|
11
11
|
/**
|
|
12
12
|
* Controls the visibility of the popup.
|
|
@@ -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 l=require("react"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),i=require("@progress/kendo-react-popup");function s(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const f=s(l),P=({show:e=!1,anchor:r,onOpen:t,onClose:n,animate:o=!0,appendTo:c,popupOptions:u={},children:a,style:p})=>f.createElement(i.Popup,{show:e,anchor:r,style:p,animate:o,appendTo:c,onOpen:t,onClose:n,...u},a);exports.InlineAIPromptPopup=P;
|
|
@@ -5,32 +5,32 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
9
|
-
import { Popup as
|
|
10
|
-
const
|
|
8
|
+
import * as c from "react";
|
|
9
|
+
import { Popup as f } from "@progress/kendo-react-popup";
|
|
10
|
+
const l = ({
|
|
11
11
|
show: e = !1,
|
|
12
|
-
anchor:
|
|
13
|
-
onOpen:
|
|
12
|
+
anchor: r,
|
|
13
|
+
onOpen: t,
|
|
14
14
|
onClose: o,
|
|
15
15
|
animate: p = !0,
|
|
16
16
|
appendTo: m,
|
|
17
17
|
popupOptions: n = {},
|
|
18
|
-
children:
|
|
19
|
-
style:
|
|
20
|
-
}) => /* @__PURE__ */
|
|
21
|
-
|
|
18
|
+
children: a,
|
|
19
|
+
style: u
|
|
20
|
+
}) => /* @__PURE__ */ c.createElement(
|
|
21
|
+
f,
|
|
22
22
|
{
|
|
23
23
|
show: e,
|
|
24
|
-
anchor:
|
|
25
|
-
style:
|
|
24
|
+
anchor: r,
|
|
25
|
+
style: u,
|
|
26
26
|
animate: p,
|
|
27
27
|
appendTo: m,
|
|
28
|
-
onOpen:
|
|
28
|
+
onOpen: t,
|
|
29
29
|
onClose: o,
|
|
30
30
|
...n
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
a
|
|
33
33
|
);
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
l as InlineAIPromptPopup
|
|
36
36
|
};
|
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: 1772784153,version:"14.2.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
|
@@ -8,7 +8,7 @@ export const packageMetadata = Object.freeze({
|
|
|
8
8
|
productCode: 'KENDOUIREACT',
|
|
9
9
|
productCodes: ['KENDOUIREACT'],
|
|
10
10
|
publishDate: 0,
|
|
11
|
-
version: '14.2.1
|
|
11
|
+
version: '14.2.1',
|
|
12
12
|
licensingDocsUrl:
|
|
13
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'
|
|
14
14
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-conversational-ui",
|
|
3
|
-
"version": "14.2.1
|
|
3
|
+
"version": "14.2.1",
|
|
4
4
|
"description": "React Chat component allows the user to participate in chat sessions with users or chat bots. KendoReact Conversational UI components",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-licensing": "^1.7.2",
|
|
29
|
-
"@progress/kendo-react-animation": "14.2.1
|
|
30
|
-
"@progress/kendo-react-buttons": "14.2.1
|
|
31
|
-
"@progress/kendo-react-common": "14.2.1
|
|
32
|
-
"@progress/kendo-react-intl": "14.2.1
|
|
33
|
-
"@progress/kendo-react-inputs": "14.2.1
|
|
34
|
-
"@progress/kendo-react-layout": "14.2.1
|
|
35
|
-
"@progress/kendo-react-notification": "14.2.1
|
|
36
|
-
"@progress/kendo-react-popup": "14.2.1
|
|
37
|
-
"@progress/kendo-react-upload": "14.2.1
|
|
29
|
+
"@progress/kendo-react-animation": "14.2.1",
|
|
30
|
+
"@progress/kendo-react-buttons": "14.2.1",
|
|
31
|
+
"@progress/kendo-react-common": "14.2.1",
|
|
32
|
+
"@progress/kendo-react-intl": "14.2.1",
|
|
33
|
+
"@progress/kendo-react-inputs": "14.2.1",
|
|
34
|
+
"@progress/kendo-react-layout": "14.2.1",
|
|
35
|
+
"@progress/kendo-react-notification": "14.2.1",
|
|
36
|
+
"@progress/kendo-react-popup": "14.2.1",
|
|
37
|
+
"@progress/kendo-react-upload": "14.2.1",
|
|
38
38
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
39
39
|
"react": "^18.0.0 || ^19.0.0",
|
|
40
40
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"package": {
|
|
121
121
|
"productName": "KendoReact",
|
|
122
122
|
"productCode": "KENDOUIREACT",
|
|
123
|
-
"publishDate":
|
|
123
|
+
"publishDate": 1772784153,
|
|
124
124
|
"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"
|
|
125
125
|
}
|
|
126
126
|
},
|