@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.
@@ -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 and keeps the default (stop action) aria-label.
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
  */
@@ -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"),o=(e,v,x,n)=>{var r;const{text:t,"aria-label":l}=e!=null?e:{text:void 0,"aria-label":void 0},d=v?void 0:t!=null?t:n.toLanguageString(s.promptBoxSendButtonText,s.messages[s.promptBoxSendButtonText]),a=d!==""?d:void 0;return{text:a,"aria-label":(r=l!=null?l:a)!=null?r:x}};exports.resolveActionButtonLabels=o;
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;
@@ -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 x, messages as A } from "../messages/index.mjs";
9
- const c = (e, a, b, r) => {
10
- var v;
11
- const { text: t, "aria-label": l } = e != null ? e : {
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
- }, d = a ? void 0 : t != null ? t : r.toLanguageString(x, A[x]), s = d !== "" ? d : void 0;
14
+ }, v = s || e != null ? e : r.toLanguageString(a, A[a]), x = v !== "" ? v : void 0;
15
15
  return {
16
- text: s,
17
- "aria-label": (v = l != null ? l : s) != null ? v : b
16
+ text: x,
17
+ "aria-label": (d = l != null ? l : s ? void 0 : x) != null ? d : b
18
18
  };
19
19
  };
20
20
  export {