@progress/kendo-react-conversational-ui 15.2.0-develop.1 → 15.2.0-develop.3

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 (84) hide show
  1. package/chat/components/ChatMessage.js +1 -1
  2. package/chat/components/ChatMessage.mjs +1 -1
  3. package/chat/components/ScrollButtonsWrapper.js +1 -1
  4. package/chat/components/ScrollButtonsWrapper.mjs +6 -6
  5. package/chat/components/elements/FileBox.js +1 -1
  6. package/chat/components/elements/FileBox.mjs +62 -29
  7. package/chat/components/elements/PinnedMessage.js +1 -1
  8. package/chat/components/elements/PinnedMessage.mjs +20 -18
  9. package/dist/cdn/js/kendo-react-conversational-ui.js +1 -1
  10. package/index.d.mts +1 -0
  11. package/index.d.ts +1 -0
  12. package/index.js +1 -1
  13. package/index.mjs +34 -24
  14. package/llm-kit/AgentStep.d.ts +14 -0
  15. package/llm-kit/AgentStep.js +8 -0
  16. package/llm-kit/AgentStep.mjs +100 -0
  17. package/llm-kit/ChainOfThought.d.ts +10 -0
  18. package/llm-kit/ChainOfThought.js +8 -0
  19. package/llm-kit/ChainOfThought.mjs +67 -0
  20. package/llm-kit/Checkpoint.d.ts +10 -0
  21. package/llm-kit/Checkpoint.js +8 -0
  22. package/llm-kit/Checkpoint.mjs +45 -0
  23. package/llm-kit/Citation.d.ts +14 -0
  24. package/llm-kit/Citation.js +8 -0
  25. package/llm-kit/Citation.mjs +171 -0
  26. package/llm-kit/Events.d.ts +69 -0
  27. package/llm-kit/Reasoning.d.ts +10 -0
  28. package/llm-kit/Reasoning.js +8 -0
  29. package/llm-kit/Reasoning.mjs +48 -0
  30. package/llm-kit/Thought.d.ts +16 -0
  31. package/llm-kit/Thought.js +8 -0
  32. package/llm-kit/Thought.mjs +47 -0
  33. package/llm-kit/ToolCall.d.ts +10 -0
  34. package/llm-kit/ToolCall.js +8 -0
  35. package/llm-kit/ToolCall.mjs +100 -0
  36. package/llm-kit/defaults/DefaultCitationBody.d.ts +11 -0
  37. package/llm-kit/defaults/DefaultCitationBody.js +8 -0
  38. package/llm-kit/defaults/DefaultCitationBody.mjs +27 -0
  39. package/llm-kit/defaults/DefaultToolError.d.ts +11 -0
  40. package/llm-kit/defaults/DefaultToolError.js +8 -0
  41. package/llm-kit/defaults/DefaultToolError.mjs +12 -0
  42. package/llm-kit/defaults/DefaultToolInput.d.ts +11 -0
  43. package/llm-kit/defaults/DefaultToolInput.js +8 -0
  44. package/llm-kit/defaults/DefaultToolInput.mjs +13 -0
  45. package/llm-kit/defaults/DefaultToolOutput.d.ts +11 -0
  46. package/llm-kit/defaults/DefaultToolOutput.js +8 -0
  47. package/llm-kit/defaults/DefaultToolOutput.mjs +13 -0
  48. package/llm-kit/index.d.ts +32 -0
  49. package/llm-kit/interfaces/AgentStepBodyTemplateProps.d.ts +26 -0
  50. package/llm-kit/interfaces/AgentStepHeaderTemplateProps.d.ts +40 -0
  51. package/llm-kit/interfaces/AgentStepProps.d.ts +123 -0
  52. package/llm-kit/interfaces/ChainOfThoughtProps.d.ts +102 -0
  53. package/llm-kit/interfaces/CheckpointProps.d.ts +48 -0
  54. package/llm-kit/interfaces/CheckpointState.d.ts +20 -0
  55. package/llm-kit/interfaces/CheckpointTemplateProps.d.ts +19 -0
  56. package/llm-kit/interfaces/CitationBodyTemplateProps.d.ts +18 -0
  57. package/llm-kit/interfaces/CitationProps.d.ts +81 -0
  58. package/llm-kit/interfaces/CitationShowOn.d.ts +13 -0
  59. package/llm-kit/interfaces/CitationSource.d.ts +26 -0
  60. package/llm-kit/interfaces/ReasoningContentTemplateProps.d.ts +18 -0
  61. package/llm-kit/interfaces/ReasoningProps.d.ts +90 -0
  62. package/llm-kit/interfaces/Thought.d.ts +55 -0
  63. package/llm-kit/interfaces/ThoughtProps.d.ts +82 -0
  64. package/llm-kit/interfaces/ThoughtTemplateProps.d.ts +19 -0
  65. package/llm-kit/interfaces/ToolCallActionType.d.ts +14 -0
  66. package/llm-kit/interfaces/ToolCallApprovalTemplateProps.d.ts +20 -0
  67. package/llm-kit/interfaces/ToolCallErrorTemplateProps.d.ts +16 -0
  68. package/llm-kit/interfaces/ToolCallParamsTemplateProps.d.ts +16 -0
  69. package/llm-kit/interfaces/ToolCallProps.d.ts +119 -0
  70. package/llm-kit/interfaces/ToolCallResultTemplateProps.d.ts +16 -0
  71. package/llm-kit/interfaces/ToolCallState.d.ts +16 -0
  72. package/llm-kit/utils.d.ts +12 -0
  73. package/llm-kit/utils.js +8 -0
  74. package/llm-kit/utils.mjs +11 -0
  75. package/messages/index.d.ts +75 -0
  76. package/messages/index.js +1 -1
  77. package/messages/index.mjs +86 -56
  78. package/package-metadata.js +1 -1
  79. package/package-metadata.mjs +2 -2
  80. package/package.json +13 -11
  81. package/prompt-box/FileBox.js +1 -1
  82. package/prompt-box/FileBox.mjs +52 -38
  83. package/prompt-box/PromptBox.js +1 -1
  84. package/prompt-box/PromptBox.mjs +1 -1
@@ -0,0 +1,100 @@
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 * as e from "react";
9
+ import { SvgIcon as y, classNames as C } from "@progress/kendo-react-common";
10
+ import { chevronUpIcon as L, chevronRightIcon as U } from "@progress/kendo-svg-icons";
11
+ const j = e.forwardRef((R, I) => {
12
+ const {
13
+ svgIcon: m,
14
+ label: o,
15
+ labelClassName: A,
16
+ secondaryLabel: d,
17
+ linesAdded: n,
18
+ linesRemoved: s,
19
+ expandable: a,
20
+ expanded: l,
21
+ defaultExpanded: p,
22
+ completed: c,
23
+ onExpandedChange: i,
24
+ headerTemplate: k,
25
+ bodyTemplate: u,
26
+ headerExtra: v,
27
+ className: S,
28
+ children: E,
29
+ ...T
30
+ } = R, N = l !== void 0, [w, z] = e.useState(p != null ? p : !1), t = l != null ? l : w, h = e.useRef(null), F = e.useCallback(
31
+ (g) => {
32
+ var b;
33
+ if (!a)
34
+ return;
35
+ const x = !t;
36
+ if (N || z(x), i) {
37
+ const K = {
38
+ expanded: x,
39
+ syntheticEvent: g,
40
+ nativeEvent: g.nativeEvent,
41
+ target: (b = h.current) != null ? b : g.currentTarget
42
+ };
43
+ i(K);
44
+ }
45
+ },
46
+ [a, t, N, i]
47
+ ), f = /* @__PURE__ */ e.createElement(e.Fragment, null, m && /* @__PURE__ */ e.createElement(y, { icon: m, size: "small", className: "k-agent-step-icon" }), /* @__PURE__ */ e.createElement("span", { className: "k-agent-step-content" }, o && /* @__PURE__ */ e.createElement(
48
+ "span",
49
+ {
50
+ className: C(
51
+ "k-agent-step-label",
52
+ c === !1 && "k-text-shimmer",
53
+ A
54
+ )
55
+ },
56
+ o
57
+ ), d && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "k-agent-step-sep" }, "·"), /* @__PURE__ */ e.createElement("span", { className: "k-agent-step-secondary" }, d)), n != null && n > 0 && /* @__PURE__ */ e.createElement("span", { className: "k-agent-step-added k-text-success" }, "+", n), s != null && s > 0 && /* @__PURE__ */ e.createElement("span", { className: "k-agent-step-removed k-text-error" }, "-", s), v, a && /* @__PURE__ */ e.createElement(
58
+ y,
59
+ {
60
+ icon: t ? L : U,
61
+ size: "small",
62
+ className: "k-agent-step-expand"
63
+ }
64
+ )));
65
+ let r;
66
+ return k ? r = e.createElement(k, {
67
+ svgIcon: m,
68
+ label: o,
69
+ secondaryLabel: d,
70
+ headerExtra: v,
71
+ linesAdded: n,
72
+ linesRemoved: s,
73
+ completed: c,
74
+ expanded: t,
75
+ expandable: a
76
+ }) : a ? r = /* @__PURE__ */ e.createElement(
77
+ "button",
78
+ {
79
+ ref: h,
80
+ type: "button",
81
+ className: "k-agent-step-head",
82
+ "aria-expanded": t,
83
+ onClick: F
84
+ },
85
+ f
86
+ ) : r = /* @__PURE__ */ e.createElement("div", { className: "k-agent-step-head" }, f), /* @__PURE__ */ e.createElement(
87
+ "div",
88
+ {
89
+ ref: I,
90
+ className: C("k-agent-step", { "k-agent-completed": c }, S),
91
+ ...T
92
+ },
93
+ r,
94
+ t && E && (u ? e.createElement(u, { expanded: t, completed: c }, E) : /* @__PURE__ */ e.createElement("div", { className: "k-agent-step-body" }, E))
95
+ );
96
+ });
97
+ j.displayName = "KendoReactAgentStep";
98
+ export {
99
+ j as AgentStep
100
+ };
@@ -0,0 +1,10 @@
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 { ChainOfThoughtProps } from './interfaces/ChainOfThoughtProps';
9
+ import * as React from 'react';
10
+ export declare const ChainOfThought: React.ForwardRefExoticComponent<ChainOfThoughtProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react"),R=require("@progress/kendo-react-common"),k=require("@progress/kendo-svg-icons"),S=require("./AgentStep.js"),j=require("./Thought.js");function q(n){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>n[t]})}}return a.default=n,Object.freeze(a)}const c=q(O),d=c.forwardRef((n,a)=>{const{label:t,secondaryLabel:o,svgIcon:i=k.sparklesIcon,completed:m,expanded:p,defaultExpanded:u,expandable:f,thoughts:r=[],linesAdded:g,linesRemoved:b,thoughtTemplate:s,onExpandedChange:h,className:y,...T}=n,v=r.map((e,l)=>s?c.createElement(s,{key:l,thought:e,index:l}):c.createElement(j.ThoughtRow,{key:l,label:e.label,secondaryLabel:e.secondaryLabel,svgIcon:e.svgIcon,completed:e.completed,linesAdded:e.linesAdded,linesRemoved:e.linesRemoved},e.content));return c.createElement(S.AgentStep,{ref:a,svgIcon:i,label:t,secondaryLabel:o,completed:m,expanded:p,defaultExpanded:u,expandable:f&&r.length>0,linesAdded:g,linesRemoved:b,onExpandedChange:h,className:R.classNames("k-chain-of-thought",y),...T},v)});d.displayName="KendoReactChainOfThought";exports.ChainOfThought=d;
@@ -0,0 +1,67 @@
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 * as a from "react";
9
+ import { classNames as T } from "@progress/kendo-react-common";
10
+ import { sparklesIcon as E } from "@progress/kendo-svg-icons";
11
+ import { AgentStep as k } from "./AgentStep.mjs";
12
+ import { ThoughtRow as x } from "./Thought.mjs";
13
+ const A = a.forwardRef((d, s) => {
14
+ const {
15
+ label: m,
16
+ secondaryLabel: t,
17
+ svgIcon: r = E,
18
+ completed: c,
19
+ expanded: p,
20
+ defaultExpanded: i,
21
+ expandable: f,
22
+ thoughts: n = [],
23
+ linesAdded: b,
24
+ linesRemoved: R,
25
+ thoughtTemplate: l,
26
+ onExpandedChange: g,
27
+ className: h,
28
+ ...v
29
+ } = d, y = n.map(
30
+ (e, o) => l ? /* @__PURE__ */ a.createElement(l, { key: o, thought: e, index: o }) : /* @__PURE__ */ a.createElement(
31
+ x,
32
+ {
33
+ key: o,
34
+ label: e.label,
35
+ secondaryLabel: e.secondaryLabel,
36
+ svgIcon: e.svgIcon,
37
+ completed: e.completed,
38
+ linesAdded: e.linesAdded,
39
+ linesRemoved: e.linesRemoved
40
+ },
41
+ e.content
42
+ )
43
+ );
44
+ return /* @__PURE__ */ a.createElement(
45
+ k,
46
+ {
47
+ ref: s,
48
+ svgIcon: r,
49
+ label: m,
50
+ secondaryLabel: t,
51
+ completed: c,
52
+ expanded: p,
53
+ defaultExpanded: i,
54
+ expandable: f && n.length > 0,
55
+ linesAdded: b,
56
+ linesRemoved: R,
57
+ onExpandedChange: g,
58
+ className: T("k-chain-of-thought", h),
59
+ ...v
60
+ },
61
+ y
62
+ );
63
+ });
64
+ A.displayName = "KendoReactChainOfThought";
65
+ export {
66
+ A as ChainOfThought
67
+ };
@@ -0,0 +1,10 @@
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 { CheckpointProps } from './interfaces/CheckpointProps';
9
+ import * as React from 'react';
10
+ export declare const Checkpoint: React.ForwardRefExoticComponent<CheckpointProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),T=require("@progress/kendo-react-common"),g=require("@progress/kendo-react-buttons"),y=require("@progress/kendo-react-intl"),t=require("../messages/index.js");function C(c){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const a in c)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(c,a);Object.defineProperty(o,a,n.get?n:{enumerable:!0,get:()=>c[a]})}}return o.default=c,Object.freeze(o)}const e=C(N),f=e.forwardRef((c,o)=>{const{visible:a,state:n,template:m,onAction:s,className:h,...v}=c,r=y.useLocalization(),i=e.useRef(null),p=e.useCallback(u=>{var d,k;if(s&&n){const S={action:n,syntheticEvent:u,nativeEvent:u.nativeEvent,target:(k=(d=i.current)==null?void 0:d.element)!=null?k:u.currentTarget};s(S)}},[s,n]),R=r.toLanguageString(t.checkpointStartOver,t.messages[t.checkpointStartOver]),b=r.toLanguageString(t.checkpointRestore,t.messages[t.checkpointRestore]),E=r.toLanguageString(t.checkpointRestored,t.messages[t.checkpointRestored]),O=r.toLanguageString(t.checkpointRedo,t.messages[t.checkpointRedo]);let l=null;return n==="startOver"||n==="restore"?l=e.createElement(g.Button,{ref:i,size:"small",fillMode:"flat",onClick:p},n==="startOver"?R:b):n==="redo"&&(l=e.createElement(e.Fragment,null,e.createElement("span",{className:"k-checkpoint-stamp"},E),e.createElement("span",null,"·"),e.createElement(g.Button,{ref:i,size:"small",fillMode:"flat",onClick:p},O))),e.createElement("div",{ref:o,className:T.classNames("k-checkpoint",{"k-checkpoint-visible":a===!0},h),...v},e.createElement("span",{className:"k-checkpoint-line","aria-hidden":"true"}),m?e.createElement(m,{state:n}):l,e.createElement("span",{className:"k-checkpoint-line","aria-hidden":"true"}))});f.displayName="KendoReactCheckpoint";exports.Checkpoint=f;
@@ -0,0 +1,45 @@
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 * as e from "react";
9
+ import { classNames as b } from "@progress/kendo-react-common";
10
+ import { Button as u } from "@progress/kendo-react-buttons";
11
+ import { useLocalization as z } from "@progress/kendo-react-intl";
12
+ import { checkpointStartOver as f, messages as a, checkpointRestore as k, checkpointRestored as d, checkpointRedo as g } from "../messages/index.mjs";
13
+ const A = e.forwardRef((h, v) => {
14
+ const { visible: E, state: t, template: s, onAction: r, className: R, ...N } = h, n = z(), c = e.useRef(null), l = e.useCallback(
15
+ (i) => {
16
+ var m, p;
17
+ if (r && t) {
18
+ const L = {
19
+ action: t,
20
+ syntheticEvent: i,
21
+ nativeEvent: i.nativeEvent,
22
+ target: (p = (m = c.current) == null ? void 0 : m.element) != null ? p : i.currentTarget
23
+ };
24
+ r(L);
25
+ }
26
+ },
27
+ [r, t]
28
+ ), S = n.toLanguageString(f, a[f]), T = n.toLanguageString(k, a[k]), x = n.toLanguageString(d, a[d]), C = n.toLanguageString(g, a[g]);
29
+ let o = null;
30
+ return t === "startOver" || t === "restore" ? o = /* @__PURE__ */ e.createElement(u, { ref: c, size: "small", fillMode: "flat", onClick: l }, t === "startOver" ? S : T) : t === "redo" && (o = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("span", { className: "k-checkpoint-stamp" }, x), /* @__PURE__ */ e.createElement("span", null, "·"), /* @__PURE__ */ e.createElement(u, { ref: c, size: "small", fillMode: "flat", onClick: l }, C))), /* @__PURE__ */ e.createElement(
31
+ "div",
32
+ {
33
+ ref: v,
34
+ className: b("k-checkpoint", { "k-checkpoint-visible": E === !0 }, R),
35
+ ...N
36
+ },
37
+ /* @__PURE__ */ e.createElement("span", { className: "k-checkpoint-line", "aria-hidden": "true" }),
38
+ s ? /* @__PURE__ */ e.createElement(s, { state: t }) : o,
39
+ /* @__PURE__ */ e.createElement("span", { className: "k-checkpoint-line", "aria-hidden": "true" })
40
+ );
41
+ });
42
+ A.displayName = "KendoReactCheckpoint";
43
+ export {
44
+ A as Checkpoint
45
+ };
@@ -0,0 +1,14 @@
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 { CitationProps } from './interfaces/CitationProps';
9
+ import * as React from 'react';
10
+ /**
11
+ * `Citation` is a self-contained inline source chip: it shows its own resource
12
+ * details popover (on hover, or keyboard activation).
13
+ */
14
+ export declare const Citation: React.ForwardRefExoticComponent<CitationProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("react"),S=require("@progress/kendo-react-common"),C=require("@progress/kendo-react-buttons"),F=require("@progress/kendo-react-tooltip"),R=require("@progress/kendo-svg-icons"),U=require("./defaults/DefaultCitationBody.js"),Y=require("@progress/kendo-react-intl"),d=require("../messages/index.js");function G(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const E=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(a,n,E.get?E:{enumerable:!0,get:()=>r[n]})}}return a.default=r,Object.freeze(a)}const t=G(V),J=150,Q={horizontal:"fit",vertical:"flip"},W=[],X=r=>{if(!r)return"";try{return new URL(r).hostname}catch{return""}},Z=(r,a)=>{if(r!==void 0)return r;const n=a[0];return X(n==null?void 0:n.url)||(n==null?void 0:n.title)||""},w=t.forwardRef((r,a)=>{const{sources:n=W,label:E,svgIcon:P=R.globeIcon,additionalCount:q,bodyTemplate:b,onOpen:y,showOn:i="hover",className:x,...D}=r,O=Y.useLocalization(),[l,N]=t.useState(null),[u,g]=t.useState(!1),[h,L]=t.useState(0),I=t.useRef(n),p=t.useRef(null);n!==I.current&&(I.current=n,L(0));const T=t.useCallback(e=>{var c;const o=(c=e==null?void 0:e.element)!=null?c:null;N(o),typeof a=="function"?a(o):a&&(a.current=o)},[a]),s=t.useCallback(()=>{p.current!==null&&(clearTimeout(p.current),p.current=null)},[]),m=t.useCallback(()=>{s(),p.current=setTimeout(()=>g(!1),J)},[s]);t.useEffect(()=>s,[s]),t.useEffect(()=>{if(!l||n.length===0||i!=="hover")return;const e=()=>{s(),g(!0)},o=()=>m();return l.addEventListener("mouseenter",e),l.addEventListener("mouseleave",o),()=>{l.removeEventListener("mouseenter",e),l.removeEventListener("mouseleave",o)}},[l,n.length,s,m,i]);const k=t.useCallback((e,o)=>{if(n.length!==0&&(s(),g(!0),y)){const c={sources:n,syntheticEvent:e,nativeEvent:e.nativeEvent,target:o};y(c)}},[n,y,s]),z=t.useCallback(e=>{var o;k(e.syntheticEvent,(o=e.target.element)!=null?o:e.syntheticEvent.currentTarget)},[k]),B=t.useCallback(e=>{var o;e.syntheticEvent.key!=="Enter"&&e.syntheticEvent.key!==" "||(e.syntheticEvent.preventDefault(),k(e.syntheticEvent,(o=e.target.element)!=null?o:e.syntheticEvent.currentTarget))},[k]),v=`k-citation-popover-${S.useId()}`;t.useEffect(()=>{if(!u||i!=="hover")return;const e=document.querySelector(`.${v}`);if(e)return e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",m),()=>{e.removeEventListener("mouseenter",s),e.removeEventListener("mouseleave",m)}},[u,v,s,m,i]),t.useEffect(()=>{if(!u||i!=="click")return;const e=o=>{const c=document.querySelector(`.${v}`);l&&!l.contains(o.target)&&(!c||!c.contains(o.target))&&g(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u,i,l,v]);const f=n.length,M=t.useCallback(()=>L(e=>Math.min(e+1,f-1)),[f]),_=t.useCallback(()=>L(e=>Math.max(e-1,0)),[]),j=Z(E,n),H=q&&n.length>1?`+${n.length-1}`:void 0,$=[j,H].filter(Boolean).join(" "),A=b!=null?b:U.DefaultCitationBody,K=t.createElement(t.Fragment,null,t.createElement("span",{className:"k-citation-pages"},h+1,"/",f),t.createElement(C.ButtonGroup,null,t.createElement(C.Button,{svgIcon:R.arrowLeftIcon,fillMode:"flat",size:"small","aria-label":O.toLanguageString(d.citationPrevious,d.messages[d.citationPrevious]),disabled:h<=0,onClick:_}),t.createElement(C.Button,{svgIcon:R.arrowRightIcon,fillMode:"flat",size:"small","aria-label":O.toLanguageString(d.citationNext,d.messages[d.citationNext]),disabled:h>=f-1,onClick:M})));return t.createElement(t.Fragment,null,t.createElement(C.Chip,{ref:T,text:$,svgIcon:P,size:"small",fillMode:"outline",rounded:"full",selected:u,onClick:z,onKeyDown:B,className:S.classNames("k-citation",x),...D}),f>0&&t.createElement(F.Popover,{show:u,anchor:l,title:K,collision:Q,callout:!1,margin:{vertical:8,horizontal:0},position:"top",popoverClass:["k-citation-popover",v],style:{width:"320px","--kendo-citation-popover-view-current":h+1}},t.createElement(A,{sources:n})))});w.displayName="KendoReactCitation";exports.Citation=w;
@@ -0,0 +1,171 @@
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 * as t from "react";
9
+ import { useId as q, classNames as F } from "@progress/kendo-react-common";
10
+ import { ButtonGroup as U, Button as y, Chip as Y } from "@progress/kendo-react-buttons";
11
+ import { Popover as j } from "@progress/kendo-react-tooltip";
12
+ import { globeIcon as G, arrowLeftIcon as J, arrowRightIcon as Q } from "@progress/kendo-svg-icons";
13
+ import { DefaultCitationBody as W } from "./defaults/DefaultCitationBody.mjs";
14
+ import { useLocalization as X } from "@progress/kendo-react-intl";
15
+ import { citationPrevious as R, messages as w, citationNext as I } from "../messages/index.mjs";
16
+ const Z = 150, ee = { horizontal: "fit", vertical: "flip" }, te = [], ne = (a) => {
17
+ if (!a)
18
+ return "";
19
+ try {
20
+ return new URL(a).hostname;
21
+ } catch {
22
+ return "";
23
+ }
24
+ }, oe = (a, s) => {
25
+ if (a !== void 0)
26
+ return a;
27
+ const n = s[0];
28
+ return ne(n == null ? void 0 : n.url) || (n == null ? void 0 : n.title) || "";
29
+ }, re = t.forwardRef((a, s) => {
30
+ const {
31
+ sources: n = te,
32
+ label: x,
33
+ svgIcon: O = G,
34
+ additionalCount: S,
35
+ bodyTemplate: g,
36
+ onOpen: C,
37
+ showOn: c = "hover",
38
+ className: N,
39
+ ...P
40
+ } = a, L = X(), [l, z] = t.useState(null), [u, f] = t.useState(!1), [E, k] = t.useState(0), b = t.useRef(n), h = t.useRef(null);
41
+ n !== b.current && (b.current = n, k(0));
42
+ const D = t.useCallback(
43
+ (e) => {
44
+ var i;
45
+ const o = (i = e == null ? void 0 : e.element) != null ? i : null;
46
+ z(o), typeof s == "function" ? s(o) : s && (s.current = o);
47
+ },
48
+ [s]
49
+ ), r = t.useCallback(() => {
50
+ h.current !== null && (clearTimeout(h.current), h.current = null);
51
+ }, []), m = t.useCallback(() => {
52
+ r(), h.current = setTimeout(() => f(!1), Z);
53
+ }, [r]);
54
+ t.useEffect(() => r, [r]), t.useEffect(() => {
55
+ if (!l || n.length === 0 || c !== "hover")
56
+ return;
57
+ const e = () => {
58
+ r(), f(!0);
59
+ }, o = () => m();
60
+ return l.addEventListener("mouseenter", e), l.addEventListener("mouseleave", o), () => {
61
+ l.removeEventListener("mouseenter", e), l.removeEventListener("mouseleave", o);
62
+ };
63
+ }, [l, n.length, r, m, c]);
64
+ const p = t.useCallback(
65
+ (e, o) => {
66
+ if (n.length !== 0 && (r(), f(!0), C)) {
67
+ const i = {
68
+ sources: n,
69
+ syntheticEvent: e,
70
+ nativeEvent: e.nativeEvent,
71
+ target: o
72
+ };
73
+ C(i);
74
+ }
75
+ },
76
+ [n, C, r]
77
+ ), T = t.useCallback(
78
+ (e) => {
79
+ var o;
80
+ p(e.syntheticEvent, (o = e.target.element) != null ? o : e.syntheticEvent.currentTarget);
81
+ },
82
+ [p]
83
+ ), M = t.useCallback(
84
+ (e) => {
85
+ var o;
86
+ e.syntheticEvent.key !== "Enter" && e.syntheticEvent.key !== " " || (e.syntheticEvent.preventDefault(), p(e.syntheticEvent, (o = e.target.element) != null ? o : e.syntheticEvent.currentTarget));
87
+ },
88
+ [p]
89
+ ), v = `k-citation-popover-${q()}`;
90
+ t.useEffect(() => {
91
+ if (!u || c !== "hover")
92
+ return;
93
+ const e = document.querySelector(`.${v}`);
94
+ if (e)
95
+ return e.addEventListener("mouseenter", r), e.addEventListener("mouseleave", m), () => {
96
+ e.removeEventListener("mouseenter", r), e.removeEventListener("mouseleave", m);
97
+ };
98
+ }, [u, v, r, m, c]), t.useEffect(() => {
99
+ if (!u || c !== "click")
100
+ return;
101
+ const e = (o) => {
102
+ const i = document.querySelector(`.${v}`);
103
+ l && !l.contains(o.target) && (!i || !i.contains(o.target)) && f(!1);
104
+ };
105
+ return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
106
+ }, [u, c, l, v]);
107
+ const d = n.length, B = t.useCallback(
108
+ () => k((e) => Math.min(e + 1, d - 1)),
109
+ [d]
110
+ ), H = t.useCallback(() => k((e) => Math.max(e - 1, 0)), []), _ = oe(x, n), $ = S && n.length > 1 ? `+${n.length - 1}` : void 0, A = [_, $].filter(Boolean).join(" "), K = g != null ? g : W, V = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("span", { className: "k-citation-pages" }, E + 1, "/", d), /* @__PURE__ */ t.createElement(U, null, /* @__PURE__ */ t.createElement(
111
+ y,
112
+ {
113
+ svgIcon: J,
114
+ fillMode: "flat",
115
+ size: "small",
116
+ "aria-label": L.toLanguageString(
117
+ R,
118
+ w[R]
119
+ ),
120
+ disabled: E <= 0,
121
+ onClick: H
122
+ }
123
+ ), /* @__PURE__ */ t.createElement(
124
+ y,
125
+ {
126
+ svgIcon: Q,
127
+ fillMode: "flat",
128
+ size: "small",
129
+ "aria-label": L.toLanguageString(I, w[I]),
130
+ disabled: E >= d - 1,
131
+ onClick: B
132
+ }
133
+ )));
134
+ return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
135
+ Y,
136
+ {
137
+ ref: D,
138
+ text: A,
139
+ svgIcon: O,
140
+ size: "small",
141
+ fillMode: "outline",
142
+ rounded: "full",
143
+ selected: u,
144
+ onClick: T,
145
+ onKeyDown: M,
146
+ className: F("k-citation", N),
147
+ ...P
148
+ }
149
+ ), d > 0 && /* @__PURE__ */ t.createElement(
150
+ j,
151
+ {
152
+ show: u,
153
+ anchor: l,
154
+ title: V,
155
+ collision: ee,
156
+ callout: !1,
157
+ margin: { vertical: 8, horizontal: 0 },
158
+ position: "top",
159
+ popoverClass: ["k-citation-popover", v],
160
+ style: {
161
+ width: "320px",
162
+ "--kendo-citation-popover-view-current": E + 1
163
+ }
164
+ },
165
+ /* @__PURE__ */ t.createElement(K, { sources: n })
166
+ ));
167
+ });
168
+ re.displayName = "KendoReactCitation";
169
+ export {
170
+ re as Citation
171
+ };
@@ -0,0 +1,69 @@
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 { BaseEvent } from '@progress/kendo-react-common';
9
+ import { CitationSource } from './interfaces/CitationSource';
10
+ import { ToolCallActionType } from './interfaces/ToolCallActionType';
11
+ import { CheckpointState } from './interfaces/CheckpointState';
12
+ /**
13
+ * The arguments for the `onExpandedChange` event of the internal `@hidden` `AgentStep`
14
+ * component shared by `Reasoning`, `ChainOfThought`, and `ToolCall`.
15
+ *
16
+ * @hidden
17
+ */
18
+ export interface AgentStepExpandedChangeEvent extends BaseEvent<HTMLButtonElement> {
19
+ /**
20
+ * The new expanded state of the step component.
21
+ * `true` means the component is now expanded; `false` means it is now collapsed.
22
+ */
23
+ expanded: boolean;
24
+ }
25
+ /**
26
+ * The arguments for the `onExpandedChange` event of the `Reasoning` component.
27
+ */
28
+ export interface ReasoningExpandedChangeEvent extends BaseEvent<HTMLButtonElement> {
29
+ /** The new expanded state of the component. */
30
+ expanded: boolean;
31
+ }
32
+ /**
33
+ * The arguments for the `onExpandedChange` event of the `ChainOfThought` component.
34
+ */
35
+ export interface ChainOfThoughtExpandedChangeEvent extends BaseEvent<HTMLButtonElement> {
36
+ /** The new expanded state of the component. */
37
+ expanded: boolean;
38
+ }
39
+ /**
40
+ * The arguments for the `onExpandedChange` event of the `ToolCall` component.
41
+ */
42
+ export interface ToolCallExpandedChangeEvent extends BaseEvent<HTMLButtonElement> {
43
+ /** The new expanded state of the component. */
44
+ expanded: boolean;
45
+ }
46
+ /**
47
+ * The arguments for the `onAction` event of the `ToolCall` component, fired when
48
+ * the user clicks the Approve or Reject button.
49
+ */
50
+ export interface ToolCallActionEvent extends BaseEvent<HTMLButtonElement> {
51
+ /** Which action the user took. */
52
+ action: ToolCallActionType;
53
+ }
54
+ /**
55
+ * The arguments for the `onAction` event of the `Checkpoint` component, fired
56
+ * when the user activates the current checkpoint action.
57
+ */
58
+ export interface CheckpointActionEvent extends BaseEvent<HTMLButtonElement> {
59
+ /** The checkpoint state at the time the action was activated. */
60
+ action: CheckpointState;
61
+ }
62
+ /**
63
+ * The arguments for the `onOpen` event of the `Citation` component, fired when
64
+ * the citation's resource details are about to be shown.
65
+ */
66
+ export interface CitationOpenEvent extends BaseEvent<HTMLDivElement> {
67
+ /** The sources associated with the citation that was activated. */
68
+ sources: CitationSource[];
69
+ }
@@ -0,0 +1,10 @@
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 { ReasoningProps } from './interfaces/ReasoningProps';
9
+ import * as React from 'react';
10
+ export declare const Reasoning: React.ForwardRefExoticComponent<ReasoningProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),y=require("@progress/kendo-react-common"),S=require("@progress/kendo-svg-icons"),O=require("./AgentStep.js");function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=j(R),s=o.forwardRef((e,t)=>{const{label:n="Reasoning",secondaryLabel:a,svgIcon:l=S.sparklesIcon,completed:d,expanded:i,defaultExpanded:u,expandable:p,contentTemplate:c,onExpandedChange:g,className:m,children:r,...f}=e,b=c?o.createElement(c,null,r):r;return o.createElement(O.AgentStep,{ref:t,svgIcon:l,label:n,secondaryLabel:a,completed:d,expanded:i,defaultExpanded:u,expandable:p,onExpandedChange:g,className:y.classNames("k-reasoning",m),...f},b)});s.displayName="KendoReactReasoning";exports.Reasoning=s;
@@ -0,0 +1,48 @@
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 * as e from "react";
9
+ import { classNames as x } from "@progress/kendo-react-common";
10
+ import { sparklesIcon as b } from "@progress/kendo-svg-icons";
11
+ import { AgentStep as E } from "./AgentStep.mjs";
12
+ const N = e.forwardRef((o, t) => {
13
+ const {
14
+ label: r = "Reasoning",
15
+ secondaryLabel: s,
16
+ svgIcon: l = b,
17
+ completed: m,
18
+ expanded: c,
19
+ defaultExpanded: d,
20
+ expandable: p,
21
+ contentTemplate: a,
22
+ onExpandedChange: i,
23
+ className: f,
24
+ children: n,
25
+ ...g
26
+ } = o, R = a ? /* @__PURE__ */ e.createElement(a, null, n) : n;
27
+ return /* @__PURE__ */ e.createElement(
28
+ E,
29
+ {
30
+ ref: t,
31
+ svgIcon: l,
32
+ label: r,
33
+ secondaryLabel: s,
34
+ completed: m,
35
+ expanded: c,
36
+ defaultExpanded: d,
37
+ expandable: p,
38
+ onExpandedChange: i,
39
+ className: x("k-reasoning", f),
40
+ ...g
41
+ },
42
+ R
43
+ );
44
+ });
45
+ N.displayName = "KendoReactReasoning";
46
+ export {
47
+ N as Reasoning
48
+ };
@@ -0,0 +1,16 @@
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 { ThoughtProps } from './interfaces/ThoughtProps';
9
+ import * as React from 'react';
10
+ /**
11
+ * @hidden
12
+ * Internal row renderer used by `ChainOfThought`'s default (non-templated) rendering.
13
+ * Not part of the public API — the public `Thought` export is the data interface
14
+ * in `interfaces/Thought.ts`.
15
+ */
16
+ export declare const ThoughtRow: React.ForwardRefExoticComponent<ThoughtProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),c=require("@progress/kendo-react-common"),y=require("@progress/kendo-react-indicators");function R(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(s,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return s.default=t,Object.freeze(s)}const e=R(v),N=e.forwardRef((t,s)=>{const{svgIcon:a,label:n,labelClassName:h,secondaryLabel:m,linesAdded:l,linesRemoved:o,status:i,statusThemeColor:r,statusSvgIcon:d,completed:b,description:u,className:E,children:p,...f}=t,g=b===!0,k=!g;return e.createElement("div",{className:c.classNames("k-thought",{"k-thought-completed":g},{"k-thought-active":k},E),ref:s,...f},a&&e.createElement("span",{className:"k-agent-step-icon-col"},e.createElement(c.SvgIcon,{icon:a,size:"small",className:"k-agent-step-icon"})),e.createElement("span",{className:"k-agent-step-content"},n&&e.createElement("span",{className:c.classNames("k-agent-step-label",k&&"k-text-shimmer",h)},n),u&&e.createElement("span",{className:"k-agent-step-description"},u),m&&e.createElement(e.Fragment,null,e.createElement("span",{className:"k-agent-step-sep"},"·"),e.createElement("span",{className:"k-agent-step-secondary"},m)),l!=null&&l>0&&e.createElement("span",{className:"k-agent-step-added k-text-success"},"+",l),o!=null&&o>0&&e.createElement("span",{className:"k-agent-step-removed k-text-error"},"-",o),i&&e.createElement(y.Badge,{size:"small",themeColor:r!=null?r:"success",rounded:"full"},d&&e.createElement(c.SvgIcon,{icon:d,size:"small"}),i),p&&e.createElement("div",{className:"k-agent-step-body"},p)))});N.displayName="KendoReactThought";exports.ThoughtRow=N;