@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.
Files changed (44) hide show
  1. package/ai-prompt/AIPrompt.d.ts +1 -1
  2. package/ai-prompt/AIPrompt.js +1 -1
  3. package/ai-prompt/AIPrompt.mjs +11 -11
  4. package/ai-prompt/AIPromptContent.d.ts +1 -1
  5. package/ai-prompt/AIPromptContent.js +1 -1
  6. package/ai-prompt/AIPromptContent.mjs +6 -6
  7. package/ai-prompt/AIPromptContext.d.ts +1 -1
  8. package/ai-prompt/AIPromptContext.js +1 -1
  9. package/ai-prompt/AIPromptContext.mjs +5 -5
  10. package/ai-prompt/AIPromptExpander.d.ts +1 -1
  11. package/ai-prompt/AIPromptExpander.js +1 -1
  12. package/ai-prompt/AIPromptExpander.mjs +3 -3
  13. package/ai-prompt/AIPromptFooter.d.ts +1 -1
  14. package/ai-prompt/AIPromptFooter.js +1 -1
  15. package/ai-prompt/AIPromptFooter.mjs +3 -3
  16. package/ai-prompt/AIPromptHeader.d.ts +1 -1
  17. package/ai-prompt/AIPromptHeader.js +1 -1
  18. package/ai-prompt/AIPromptHeader.mjs +7 -7
  19. package/ai-prompt/views/AIPromptCommandsView.d.ts +1 -1
  20. package/ai-prompt/views/AIPromptCommandsView.js +1 -1
  21. package/ai-prompt/views/AIPromptCommandsView.mjs +11 -11
  22. package/ai-prompt/views/AIPromptOutputView.d.ts +1 -1
  23. package/ai-prompt/views/AIPromptOutputView.js +1 -1
  24. package/ai-prompt/views/AIPromptOutputView.mjs +9 -9
  25. package/ai-prompt/views/AIPromptView.d.ts +1 -1
  26. package/ai-prompt/views/AIPromptView.js +2 -2
  27. package/ai-prompt/views/AIPromptView.mjs +7 -7
  28. package/ai-prompt/views/AIPromptViewRender.d.ts +1 -1
  29. package/chat/utils.d.ts +1 -1
  30. package/chat/utils.js +1 -1
  31. package/chat/utils.mjs +10 -10
  32. package/dist/cdn/js/kendo-react-conversational-ui.js +1 -1
  33. package/inline-ai-prompt/InlineAIPrompt.d.ts +1 -1
  34. package/inline-ai-prompt/InlineAIPrompt.js +1 -1
  35. package/inline-ai-prompt/InlineAIPrompt.mjs +25 -25
  36. package/inline-ai-prompt/InlineAIPromptInput.d.ts +1 -1
  37. package/inline-ai-prompt/InlineAIPromptInput.js +2 -2
  38. package/inline-ai-prompt/InlineAIPromptInput.mjs +12 -12
  39. package/inline-ai-prompt/InlineAIPromptPopup.d.ts +1 -1
  40. package/inline-ai-prompt/InlineAIPromptPopup.js +1 -1
  41. package/inline-ai-prompt/InlineAIPromptPopup.mjs +14 -14
  42. package/package-metadata.js +1 -1
  43. package/package-metadata.mjs +1 -1
  44. 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 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;
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 _, menuIcon as z } from "@progress/kendo-svg-icons";
12
- import { useCustomComponent as B, classNames as T } from "@progress/kendo-react-common";
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: s, alternatives: h } = n;
42
- if (s && h.length > 0) {
41
+ const { isFinal: r, alternatives: h } = n;
42
+ if (r && h.length > 0) {
43
43
  const j = h[0].transcript, D = (() => {
44
- const r = o, G = r && !r.endsWith(" ") && !r.endsWith(`
44
+ const s = o, G = s && !s.endsWith(" ") && !s.endsWith(`
45
45
  `);
46
- return r + (G ? " " : "") + j;
46
+ return s + (G ? " " : "") + j;
47
47
  })();
48
48
  m(D);
49
49
  }
50
50
  }, V = (n) => {
51
- const s = n.target.value;
52
- m(s);
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: z,
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: T("k-prompt-send", {
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"),P=require("@progress/kendo-react-popup"),a=({show:e=!1,anchor:t,onOpen:o,onClose:r,animate:n=!0,appendTo:p,popupOptions:u={},children:c,style:i})=>l.createElement(P.Popup,{show:e,anchor:t,style:i,animate:n,appendTo:p,onOpen:o,onClose:r,...u},c);exports.InlineAIPromptPopup=a;
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 f from "react";
9
- import { Popup as l } from "@progress/kendo-react-popup";
10
- const P = ({
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: t,
13
- onOpen: r,
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: u,
19
- style: a
20
- }) => /* @__PURE__ */ f.createElement(
21
- l,
18
+ children: a,
19
+ style: u
20
+ }) => /* @__PURE__ */ c.createElement(
21
+ f,
22
22
  {
23
23
  show: e,
24
- anchor: t,
25
- style: a,
24
+ anchor: r,
25
+ style: u,
26
26
  animate: p,
27
27
  appendTo: m,
28
- onOpen: r,
28
+ onOpen: t,
29
29
  onClose: o,
30
30
  ...n
31
31
  },
32
- u
32
+ a
33
33
  );
34
34
  export {
35
- P as InlineAIPromptPopup
35
+ l as InlineAIPromptPopup
36
36
  };
@@ -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: 1772465034,version:"14.2.1-develop.3",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;
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;
@@ -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-develop.3',
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-develop.3",
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-develop.3",
30
- "@progress/kendo-react-buttons": "14.2.1-develop.3",
31
- "@progress/kendo-react-common": "14.2.1-develop.3",
32
- "@progress/kendo-react-intl": "14.2.1-develop.3",
33
- "@progress/kendo-react-inputs": "14.2.1-develop.3",
34
- "@progress/kendo-react-layout": "14.2.1-develop.3",
35
- "@progress/kendo-react-notification": "14.2.1-develop.3",
36
- "@progress/kendo-react-popup": "14.2.1-develop.3",
37
- "@progress/kendo-react-upload": "14.2.1-develop.3",
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": 1772465034,
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
  },