@2uinc/frontend-component-xpert-chatbot 1.33.1-beta.1 → 1.33.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.
@@ -21222,45 +21222,27 @@ ad.propTypes = {
21222
21222
  const HT = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M120-120v-300h60v198l558-558H540v-60h300v300h-60v-198L222-180h198v60H120Z'/%3e%3c/svg%3e", UT = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M370-287h360v-90H370v90ZM180-120q-24%200-42-18t-18-42v-600q0-24%2018-42t42-18h600q24%200%2042%2018t18%2042v600q0%2024-18%2042t-42%2018H180Zm0-60h600v-600H180v600Zm0-600v600-600Z'/%3e%3c/svg%3e";
21223
21223
  function id({ handleResizeButtonClick: e, setIsMounted: t }) {
21224
21224
  const { isMobile: n, isNormalSize: r } = se(Ze);
21225
- return n ? null : r ? /* @__PURE__ */ v.jsx(
21225
+ if (n)
21226
+ return null;
21227
+ const a = `${r ? "Expand" : "Shrink"} Xpert dialog width`;
21228
+ return /* @__PURE__ */ v.jsx(
21226
21229
  "button",
21227
21230
  {
21228
21231
  "aria-expanded": !r,
21229
- "aria-label": "Expand xpert dialog width",
21232
+ "aria-label": a,
21230
21233
  className: "xpert-chatbot-popup__header--btn-outline",
21231
21234
  style: { marginRight: 0 },
21232
- title: "Expand Xpert dialog width",
21233
- onClick: () => {
21234
- t(!0), e && e(!1);
21235
- },
21236
- children: /* @__PURE__ */ v.jsx(
21237
- "img",
21238
- {
21239
- alt: "Expand xpert dialog width",
21240
- "aria-hidden": !0,
21241
- height: "24px",
21242
- src: HT,
21243
- width: "24px"
21244
- }
21245
- )
21246
- }
21247
- ) : /* @__PURE__ */ v.jsx(
21248
- "button",
21249
- {
21250
- "aria-expanded": !r,
21251
- "aria-label": "Shrink xpert dialog width",
21252
- style: { marginRight: 0 },
21253
- title: "Shrink xpert dialog width",
21235
+ title: a,
21254
21236
  onClick: () => {
21255
- t(!0), e && e(!0);
21237
+ t(!0), e && e(!r);
21256
21238
  },
21257
21239
  children: /* @__PURE__ */ v.jsx(
21258
21240
  "img",
21259
21241
  {
21260
- alt: "Shrink xpert dialog width",
21242
+ alt: a,
21261
21243
  "aria-hidden": !0,
21262
21244
  height: "24px",
21263
- src: UT,
21245
+ src: r ? HT : UT,
21264
21246
  width: "24px"
21265
21247
  }
21266
21248
  )
@@ -22262,7 +22244,7 @@ function md({ submitEventExternal: e = null }) {
22262
22244
  y(!1), oe(), F(!0), console.error(be);
22263
22245
  }
22264
22246
  }, ve = () => {
22265
- $(!1), Q(!0), ue(), ne({
22247
+ $(!1), Q(!0), D(!0), ue(), ne({
22266
22248
  name: `${s.prefix}.bi.xpert.chatbot.action.button.clicked`,
22267
22249
  payload: {
22268
22250
  category: "2u",
@@ -22280,7 +22262,7 @@ function md({ submitEventExternal: e = null }) {
22280
22262
  }
22281
22263
  }), D(ae);
22282
22264
  }, Oe = () => {
22283
- Q(!0), ue(), ne({
22265
+ Q(!0), D(!0), ue(), ne({
22284
22266
  name: `${s.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
22285
22267
  payload: {
22286
22268
  category: "2u",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.33.1-beta.1",
3
+ "version": "1.33.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"
@@ -46,8 +46,8 @@
46
46
  ]
47
47
  },
48
48
  "peerDependencies": {
49
- "react": "^17.0.0 || ^18.0.0",
50
- "react-dom": "^17.0.00 || ^18.0.0"
49
+ "react": "^17.0.2",
50
+ "react-dom": "^17.0.2"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@commitlint/cli": "^19.8.0",