@progress/kendo-react-conversational-ui 16.3.0-develop.9 → 16.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/NOTICE.txt +19 -19
- package/chat/components/AttachmentGroup.d.ts +1 -0
- package/chat/components/AttachmentGroup.js +1 -1
- package/chat/components/AttachmentGroup.mjs +48 -48
- package/chat/components/Chat.js +1 -1
- package/chat/components/Chat.mjs +62 -60
- package/dist/cdn/js/kendo-react-conversational-ui.js +1 -1
- package/llm-kit/defaults/DefaultCitationBody.js +1 -1
- package/llm-kit/defaults/DefaultCitationBody.mjs +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +14 -14
- package/prompt-box/PromptBoxActionButton.d.ts +3 -1
- package/prompt-box/utils.d.ts +2 -1
- package/prompt-box/utils.js +1 -1
- package/prompt-box/utils.mjs +7 -7
package/prompt-box/utils.d.ts
CHANGED
|
@@ -16,7 +16,8 @@ interface ResolvedActionButtonLabels {
|
|
|
16
16
|
*
|
|
17
17
|
* Resolves the action button's visible text and accessible name.
|
|
18
18
|
*
|
|
19
|
-
* While loading, the button stays icon-only
|
|
19
|
+
* While loading, the button stays icon-only unless an explicit `text` is provided, and keeps the
|
|
20
|
+
* default (stop action) aria-label unless an explicit `aria-label` is provided.
|
|
20
21
|
* Otherwise, explicit `text`/`aria-label` from config win; text falls back to the localized
|
|
21
22
|
* send message, and aria-label falls back to the resolved text, then to the default label.
|
|
22
23
|
*/
|
package/prompt-box/utils.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 s=require("../messages/index.js"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../messages/index.js"),n=(t,d,a,b)=>{var x;const{text:e,"aria-label":l}=t!=null?t:{text:void 0,"aria-label":void 0},r=d||e!=null?e:b.toLanguageString(s.promptBoxSendButtonText,s.messages[s.promptBoxSendButtonText]),v=r!==""?r:void 0;return{text:v,"aria-label":(x=l!=null?l:d?void 0:v)!=null?x:a}};exports.resolveActionButtonLabels=n;
|
package/prompt-box/utils.mjs
CHANGED
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { promptBoxSendButtonText as
|
|
9
|
-
const c = (
|
|
10
|
-
var
|
|
11
|
-
const { text:
|
|
8
|
+
import { promptBoxSendButtonText as a, messages as A } from "../messages/index.mjs";
|
|
9
|
+
const c = (t, s, b, r) => {
|
|
10
|
+
var d;
|
|
11
|
+
const { text: e, "aria-label": l } = t != null ? t : {
|
|
12
12
|
text: void 0,
|
|
13
13
|
"aria-label": void 0
|
|
14
|
-
},
|
|
14
|
+
}, v = s || e != null ? e : r.toLanguageString(a, A[a]), x = v !== "" ? v : void 0;
|
|
15
15
|
return {
|
|
16
|
-
text:
|
|
17
|
-
"aria-label": (
|
|
16
|
+
text: x,
|
|
17
|
+
"aria-label": (d = l != null ? l : s ? void 0 : x) != null ? d : b
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
export {
|