@2uinc/frontend-component-xpert-chatbot 1.33.1-beta.1 → 1.33.2

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
  )
@@ -21466,22 +21448,44 @@ function jT() {
21466
21448
  "aria-labelledby": "delete-conversation-modal-title",
21467
21449
  className: "xpert_chatbot__delete-conversation-modal",
21468
21450
  role: "dialog",
21469
- children: /* @__PURE__ */ v.jsxs("div", { className: "container", style: { borderColor: r }, children: [
21470
- /* @__PURE__ */ v.jsx(
21471
- "h2",
21472
- {
21473
- id: "delete-conversation-modal-title",
21474
- style: { color: r },
21475
- children: "Delete chat?"
21476
- }
21477
- ),
21478
- /* @__PURE__ */ v.jsx("p", { children: "Are you sure you want to delete your conversation?" }),
21479
- /* @__PURE__ */ v.jsx("p", { children: "This action cannot be undone." }),
21480
- /* @__PURE__ */ v.jsxs("div", { className: "buttons-container", children: [
21481
- /* @__PURE__ */ v.jsx("button", { onClick: () => n(!1), children: "Cancel" }),
21482
- /* @__PURE__ */ v.jsx("button", { className: "danger", onClick: t, children: "Delete" })
21483
- ] })
21484
- ] })
21451
+ children: /* @__PURE__ */ v.jsxs(
21452
+ "div",
21453
+ {
21454
+ className: "xpert_chatbot__delete-conversation-modal-container",
21455
+ style: { borderColor: r },
21456
+ children: [
21457
+ /* @__PURE__ */ v.jsx(
21458
+ "h2",
21459
+ {
21460
+ id: "delete-conversation-modal-title",
21461
+ className: "xpert_chatbot__delete-conversation-modal-h2",
21462
+ style: { color: r },
21463
+ children: "Delete chat?"
21464
+ }
21465
+ ),
21466
+ /* @__PURE__ */ v.jsx("p", { className: "xpert_chatbot__delete-conversation-modal-p", children: "Are you sure you want to delete your conversation?" }),
21467
+ /* @__PURE__ */ v.jsx("p", { className: "xpert_chatbot__delete-conversation-modal-p", children: "This action cannot be undone." }),
21468
+ /* @__PURE__ */ v.jsxs("div", { className: "xpert_chatbot__delete-conversation-modal-buttons-container", children: [
21469
+ /* @__PURE__ */ v.jsx(
21470
+ "button",
21471
+ {
21472
+ className: "xpert_chatbot__delete-conversation-modal-button",
21473
+ onClick: () => n(!1),
21474
+ children: "Cancel"
21475
+ }
21476
+ ),
21477
+ /* @__PURE__ */ v.jsx(
21478
+ "button",
21479
+ {
21480
+ className: "xpert_chatbot__delete-conversation-modal-button danger",
21481
+ onClick: t,
21482
+ children: "Delete"
21483
+ }
21484
+ )
21485
+ ] })
21486
+ ]
21487
+ }
21488
+ )
21485
21489
  }
21486
21490
  ) : null;
21487
21491
  }
@@ -22262,7 +22266,7 @@ function md({ submitEventExternal: e = null }) {
22262
22266
  y(!1), oe(), F(!0), console.error(be);
22263
22267
  }
22264
22268
  }, ve = () => {
22265
- $(!1), Q(!0), ue(), ne({
22269
+ $(!1), Q(!0), D(!0), ue(), ne({
22266
22270
  name: `${s.prefix}.bi.xpert.chatbot.action.button.clicked`,
22267
22271
  payload: {
22268
22272
  category: "2u",
@@ -22280,7 +22284,7 @@ function md({ submitEventExternal: e = null }) {
22280
22284
  }
22281
22285
  }), D(ae);
22282
22286
  }, Oe = () => {
22283
- Q(!0), ue(), ne({
22287
+ Q(!0), D(!0), ue(), ne({
22284
22288
  name: `${s.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
22285
22289
  payload: {
22286
22290
  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.2",
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",