@2uinc/frontend-component-xpert-chatbot 1.3.15 → 1.3.16-beta.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.
@@ -3857,7 +3857,7 @@ function Wu(e, t, n) {
3857
3857
  function M(h) {
3858
3858
  return h === 45 && i === 2 ? (e.consume(h), R) : h === 60 && i === 1 ? (e.consume(h), Q) : h === 62 && i === 4 ? (e.consume(h), re) : h === 63 && i === 3 ? (e.consume(h), d) : h === 93 && i === 5 ? (e.consume(h), X) : _(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
3859
3859
  qu,
3860
- le,
3860
+ ae,
3861
3861
  N
3862
3862
  )(h)) : h === null || _(h) ? (e.exit("htmlFlowData"), N(h)) : (e.consume(h), M);
3863
3863
  }
@@ -3865,7 +3865,7 @@ function Wu(e, t, n) {
3865
3865
  return e.check(
3866
3866
  $u,
3867
3867
  A,
3868
- le
3868
+ ae
3869
3869
  )(h);
3870
3870
  }
3871
3871
  function A(h) {
@@ -3894,9 +3894,9 @@ function Wu(e, t, n) {
3894
3894
  return h === 62 ? (e.consume(h), re) : h === 45 && i === 2 ? (e.consume(h), d) : M(h);
3895
3895
  }
3896
3896
  function re(h) {
3897
- return h === null || _(h) ? (e.exit("htmlFlowData"), le(h)) : (e.consume(h), re);
3897
+ return h === null || _(h) ? (e.exit("htmlFlowData"), ae(h)) : (e.consume(h), re);
3898
3898
  }
3899
- function le(h) {
3899
+ function ae(h) {
3900
3900
  return e.exit("htmlFlow"), t(h);
3901
3901
  }
3902
3902
  }
@@ -4647,23 +4647,23 @@ function Es(e, t, n) {
4647
4647
  return N;
4648
4648
  function N(A, z, R) {
4649
4649
  let Q, V, X, d;
4650
- return Array.isArray(A) ? le(A) : "tokenize" in A ? (
4650
+ return Array.isArray(A) ? ae(A) : "tokenize" in A ? (
4651
4651
  // @ts-expect-error Looks like a construct.
4652
- le([A])
4652
+ ae([A])
4653
4653
  ) : re(A);
4654
4654
  function re(G) {
4655
4655
  return ce;
4656
4656
  function ce(ne) {
4657
- const ae = ne !== null && G[ne], De = ne !== null && G.null, Se = [
4657
+ const oe = ne !== null && G[ne], De = ne !== null && G.null, Se = [
4658
4658
  // To do: add more extension tests.
4659
4659
  /* c8 ignore next 2 */
4660
- ...Array.isArray(ae) ? ae : ae ? [ae] : [],
4660
+ ...Array.isArray(oe) ? oe : oe ? [oe] : [],
4661
4661
  ...Array.isArray(De) ? De : De ? [De] : []
4662
4662
  ];
4663
- return le(Se)(ne);
4663
+ return ae(Se)(ne);
4664
4664
  }
4665
4665
  }
4666
- function le(G) {
4666
+ function ae(G) {
4667
4667
  return Q = G, V = 0, G.length === 0 ? R : h(G[V]);
4668
4668
  }
4669
4669
  function h(G) {
@@ -4991,7 +4991,7 @@ function Zs(e) {
4991
4991
  atxHeadingSequence: O,
4992
4992
  autolink: c(),
4993
4993
  autolinkEmail: De,
4994
- autolinkProtocol: ae,
4994
+ autolinkProtocol: oe,
4995
4995
  blockQuote: c(),
4996
4996
  characterEscapeValue: M,
4997
4997
  characterReferenceMarkerHexadecimal: ce,
@@ -5027,7 +5027,7 @@ function Zs(e) {
5027
5027
  listUnordered: c(),
5028
5028
  paragraph: c(),
5029
5029
  referenceString: G,
5030
- resourceDestinationString: le,
5030
+ resourceDestinationString: ae,
5031
5031
  resourceTitleString: h,
5032
5032
  resource: ie,
5033
5033
  setextHeading: c($),
@@ -5301,7 +5301,7 @@ function Zs(e) {
5301
5301
  } else
5302
5302
  I.alt = E;
5303
5303
  }
5304
- function le() {
5304
+ function ae() {
5305
5305
  const w = this.resume(), E = this.stack[this.stack.length - 1];
5306
5306
  E.url = w;
5307
5307
  }
@@ -5334,7 +5334,7 @@ function Zs(e) {
5334
5334
  const Y = this.stack.pop();
5335
5335
  Y.value += L, Y.position.end = Ae(w.end);
5336
5336
  }
5337
- function ae(w) {
5337
+ function oe(w) {
5338
5338
  M.call(this, w);
5339
5339
  const E = this.stack[this.stack.length - 1];
5340
5340
  E.url = this.sliceSerialize(w);
@@ -6319,14 +6319,14 @@ be.prototype.commaOrSpaceSeparated = !1;
6319
6319
  be.prototype.mustUseProperty = !1;
6320
6320
  be.prototype.defined = !1;
6321
6321
  let qc = 0;
6322
- const H = Ye(), oe = Ye(), vo = Ye(), j = Ye(), ee = Ye(), $e = Ye(), ge = Ye();
6322
+ const H = Ye(), le = Ye(), vo = Ye(), j = Ye(), ee = Ye(), $e = Ye(), ge = Ye();
6323
6323
  function Ye() {
6324
6324
  return 2 ** ++qc;
6325
6325
  }
6326
6326
  const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6327
6327
  __proto__: null,
6328
6328
  boolean: H,
6329
- booleanish: oe,
6329
+ booleanish: le,
6330
6330
  commaOrSpaceSeparated: ge,
6331
6331
  commaSeparated: $e,
6332
6332
  number: j,
@@ -6408,10 +6408,10 @@ const Co = Ze({
6408
6408
  },
6409
6409
  properties: {
6410
6410
  ariaActiveDescendant: null,
6411
- ariaAtomic: oe,
6411
+ ariaAtomic: le,
6412
6412
  ariaAutoComplete: null,
6413
- ariaBusy: oe,
6414
- ariaChecked: oe,
6413
+ ariaBusy: le,
6414
+ ariaChecked: le,
6415
6415
  ariaColCount: j,
6416
6416
  ariaColIndex: j,
6417
6417
  ariaColSpan: j,
@@ -6419,36 +6419,36 @@ const Co = Ze({
6419
6419
  ariaCurrent: null,
6420
6420
  ariaDescribedBy: ee,
6421
6421
  ariaDetails: null,
6422
- ariaDisabled: oe,
6422
+ ariaDisabled: le,
6423
6423
  ariaDropEffect: ee,
6424
6424
  ariaErrorMessage: null,
6425
- ariaExpanded: oe,
6425
+ ariaExpanded: le,
6426
6426
  ariaFlowTo: ee,
6427
- ariaGrabbed: oe,
6427
+ ariaGrabbed: le,
6428
6428
  ariaHasPopup: null,
6429
- ariaHidden: oe,
6429
+ ariaHidden: le,
6430
6430
  ariaInvalid: null,
6431
6431
  ariaKeyShortcuts: null,
6432
6432
  ariaLabel: null,
6433
6433
  ariaLabelledBy: ee,
6434
6434
  ariaLevel: j,
6435
6435
  ariaLive: null,
6436
- ariaModal: oe,
6437
- ariaMultiLine: oe,
6438
- ariaMultiSelectable: oe,
6436
+ ariaModal: le,
6437
+ ariaMultiLine: le,
6438
+ ariaMultiSelectable: le,
6439
6439
  ariaOrientation: null,
6440
6440
  ariaOwns: ee,
6441
6441
  ariaPlaceholder: null,
6442
6442
  ariaPosInSet: j,
6443
- ariaPressed: oe,
6444
- ariaReadOnly: oe,
6443
+ ariaPressed: le,
6444
+ ariaReadOnly: le,
6445
6445
  ariaRelevant: null,
6446
- ariaRequired: oe,
6446
+ ariaRequired: le,
6447
6447
  ariaRoleDescription: ee,
6448
6448
  ariaRowCount: j,
6449
6449
  ariaRowIndex: j,
6450
6450
  ariaRowSpan: j,
6451
- ariaSelected: oe,
6451
+ ariaSelected: le,
6452
6452
  ariaSetSize: j,
6453
6453
  ariaSort: null,
6454
6454
  ariaValueMax: j,
@@ -6494,7 +6494,7 @@ const Co = Ze({
6494
6494
  cols: j,
6495
6495
  colSpan: null,
6496
6496
  content: null,
6497
- contentEditable: oe,
6497
+ contentEditable: le,
6498
6498
  controls: H,
6499
6499
  controlsList: ee,
6500
6500
  coords: j | $e,
@@ -6508,7 +6508,7 @@ const Co = Ze({
6508
6508
  dirName: null,
6509
6509
  disabled: H,
6510
6510
  download: vo,
6511
- draggable: oe,
6511
+ draggable: le,
6512
6512
  encType: null,
6513
6513
  enterKeyHint: null,
6514
6514
  fetchPriority: null,
@@ -6678,7 +6678,7 @@ const Co = Ze({
6678
6678
  sizes: null,
6679
6679
  slot: null,
6680
6680
  span: j,
6681
- spellCheck: oe,
6681
+ spellCheck: le,
6682
6682
  src: null,
6683
6683
  srcDoc: null,
6684
6684
  srcLang: null,
@@ -6693,7 +6693,7 @@ const Co = Ze({
6693
6693
  type: null,
6694
6694
  typeMustMatch: H,
6695
6695
  useMap: null,
6696
- value: oe,
6696
+ value: le,
6697
6697
  width: j,
6698
6698
  wrap: null,
6699
6699
  // Legacy.
@@ -6784,7 +6784,7 @@ const Co = Ze({
6784
6784
  // `<table>`
6785
6785
  scheme: null,
6786
6786
  // `<meta>`
6787
- scrolling: oe,
6787
+ scrolling: le,
6788
6788
  // `<frame>`. Use overflow in the child context
6789
6789
  standby: null,
6790
6790
  // `<object>`
@@ -8680,12 +8680,12 @@ var xi = {
8680
8680
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
8681
8681
  */
8682
8682
  nextTabbableNode: function(re) {
8683
- var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = N.indexOf(re);
8684
- return h < 0 ? le ? A.slice(A.indexOf(re) + 1).find(function(ie) {
8683
+ var ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = N.indexOf(re);
8684
+ return h < 0 ? ae ? A.slice(A.indexOf(re) + 1).find(function(ie) {
8685
8685
  return Re(ie);
8686
8686
  }) : A.slice(0, A.indexOf(re)).reverse().find(function(ie) {
8687
8687
  return Re(ie);
8688
- }) : N[h + (le ? 1 : -1)];
8688
+ }) : N[h + (ae ? 1 : -1)];
8689
8689
  }
8690
8690
  };
8691
8691
  }), l.tabbableGroups = l.containerGroups.filter(function(M) {
@@ -8727,8 +8727,8 @@ var xi = {
8727
8727
  return N === ce;
8728
8728
  });
8729
8729
  if (d < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Re(N, o.tabbableOptions) && !X.nextTabbableNode(N, !1)) && (d = V), d >= 0) {
8730
- var re = d === 0 ? l.tabbableGroups.length - 1 : d - 1, le = l.tabbableGroups[re];
8731
- Q = Oe(N) >= 0 ? le.lastTabbableNode : le.lastDomTabbableNode;
8730
+ var re = d === 0 ? l.tabbableGroups.length - 1 : d - 1, ae = l.tabbableGroups[re];
8731
+ Q = Oe(N) >= 0 ? ae.lastTabbableNode : ae.lastDomTabbableNode;
8732
8732
  } else
8733
8733
  ot(A) || (Q = X.nextTabbableNode(N, !1));
8734
8734
  } else {
@@ -9832,7 +9832,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9832
9832
  proactiveMessage: T,
9833
9833
  disableDisclaimerPage: x,
9834
9834
  conversationHistory: S
9835
- } = i, b = ct(Bf), [, C] = se(!1), [v, B] = se(Qf), [U, y] = se(!1), [O, F] = se(!1), [q, $] = se(!1), [k, M] = se(""), [N, A] = se(!1), [z, R] = se(!1), [Q, V] = se(!0), [X, d] = se(!1), [re, le] = se(!1), [h, ie] = se(!1), ye = ze(null), G = ze(null), ce = ze(null), ne = Ne.get(`${m}-test`) === "1", ae = lt(
9835
+ } = i, b = ct(Bf), [, C] = se(!1), [v, B] = se(Qf), [U, y] = se(!1), [O, F] = se(!1), [q, $] = se(!1), [k, M] = se(""), [N, A] = se(!1), [z, R] = se(!1), [Q, V] = se(!0), [X, d] = se(!1), [re, ae] = se(!1), [h, ie] = se(!1), ye = ze(null), G = ze(null), ce = ze(null), ne = Ne.get(`${m}-test`) === "1", oe = lt(
9836
9836
  ({ name: I, payload: L }) => {
9837
9837
  t ? t({ name: I, payload: L }) : ce.current.track(
9838
9838
  // TODO: this is untestable - create a custom hook to get submit event function.
@@ -9871,7 +9871,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9871
9871
  ...W,
9872
9872
  disableFeedback: !0
9873
9873
  }))
9874
- ), le(!0), ie(!0);
9874
+ ), ae(!0), ie(!0);
9875
9875
  } catch (I) {
9876
9876
  console.error(I);
9877
9877
  } finally {
@@ -9897,7 +9897,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9897
9897
  }, [c, u]), fe(() => {
9898
9898
  const I = (Y) => {
9899
9899
  var W, ue;
9900
- (W = Y == null ? void 0 : Y.target) != null && W.href && ae({
9900
+ (W = Y == null ? void 0 : Y.target) != null && W.href && oe({
9901
9901
  name: `${u}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
9902
9902
  payload: {
9903
9903
  category: "2u",
@@ -9910,7 +9910,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9910
9910
  return L && L.addEventListener("click", I), () => {
9911
9911
  L == null || L.removeEventListener("click", I);
9912
9912
  };
9913
- });
9913
+ }, [ne, oe, u]);
9914
9914
  const Se = Ff(c);
9915
9915
  if (!e && !i)
9916
9916
  return console.log("Chatbot - xpertKey or configuration is required"), null;
@@ -9936,7 +9936,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9936
9936
  const He = () => {
9937
9937
  M(""), G.current.value = "", G.current.style.height = "auto";
9938
9938
  }, en = (I, L) => {
9939
- ae({
9939
+ oe({
9940
9940
  name: `${u}.bi.xpert.chatbot.popup.chat.message.response`,
9941
9941
  payload: {
9942
9942
  category: "2u",
@@ -9953,7 +9953,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9953
9953
  apiResponseMessage: Y,
9954
9954
  elapsedSeconds: W
9955
9955
  }) => {
9956
- ae({
9956
+ oe({
9957
9957
  name: `${u}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
9958
9958
  payload: {
9959
9959
  category: "2u",
@@ -9976,7 +9976,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
9976
9976
  const L = /* @__PURE__ */ new Date();
9977
9977
  ie(!1), R(!1);
9978
9978
  const Y = v.filter((J) => J.role === "user").length + 1;
9979
- ae({
9979
+ oe({
9980
9980
  name: `${u}.bi.xpert.chatbot.popup.chat.message.sent`,
9981
9981
  payload: {
9982
9982
  category: "2u",
@@ -10043,12 +10043,12 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10043
10043
  content: je,
10044
10044
  createdAt: /* @__PURE__ */ new Date()
10045
10045
  }
10046
- ]), le(!1), y(!1), He(), ie(!0);
10046
+ ]), ae(!1), y(!1), He(), ie(!0);
10047
10047
  } catch (L) {
10048
10048
  y(!1), He(), R(!0), console.error(L);
10049
10049
  }
10050
10050
  }, ht = () => {
10051
- $(!1), F(!0), ae({
10051
+ $(!1), F(!0), oe({
10052
10052
  name: `${u}.bi.xpert.chatbot.action.button.clicked`,
10053
10053
  payload: {
10054
10054
  category: "2u",
@@ -10057,7 +10057,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10057
10057
  }
10058
10058
  });
10059
10059
  }, rn = (I) => {
10060
- ae({
10060
+ oe({
10061
10061
  name: `${u}.bi.xpert.chatbot.${I ? "normal" : "expand"}.size.button.clicked`,
10062
10062
  payload: {
10063
10063
  category: "2u",
@@ -10066,7 +10066,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10066
10066
  }
10067
10067
  }), V(I);
10068
10068
  }, gt = () => {
10069
- F(!0), ae({
10069
+ F(!0), oe({
10070
10070
  name: `${u}.bi.xpert.chatbot.proactive.message.clicked`,
10071
10071
  payload: {
10072
10072
  category: "2u",
@@ -10075,7 +10075,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10075
10075
  }
10076
10076
  });
10077
10077
  }, mt = () => {
10078
- ae({
10078
+ oe({
10079
10079
  name: `${u}.bi.xpert.chatbot.proactive.message.closed`,
10080
10080
  payload: {
10081
10081
  category: "2u",
@@ -10084,7 +10084,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10084
10084
  }
10085
10085
  });
10086
10086
  }, on = () => {
10087
- F(!1), ae({
10087
+ F(!1), oe({
10088
10088
  name: `${u}.bi.xpert.chatbot.popup.disclaimer.closed`,
10089
10089
  payload: {
10090
10090
  category: "2u",
@@ -10093,7 +10093,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10093
10093
  }
10094
10094
  });
10095
10095
  }, ln = () => {
10096
- F(!1), d(!1), ae({
10096
+ F(!1), d(!1), oe({
10097
10097
  name: `${u}.bi.xpert.chatbot.popup.chat.minimized`,
10098
10098
  payload: {
10099
10099
  category: "2u",
@@ -10113,7 +10113,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10113
10113
  }, an = (I) => {
10114
10114
  I.key === "Enter" && k.trim() === "" || I.key === "Enter" && !I.shiftKey && (I.preventDefault(), Ce(k));
10115
10115
  }, w = (I, L = "") => {
10116
- const Y = v.map((W, ue) => I === ue ? (ae({
10116
+ const Y = v.map((W, ue) => I === ue ? (oe({
10117
10117
  name: `${u}.bi.xpert.chatbot.feedback.thumbs.${L.toLowerCase()}.clicked`,
10118
10118
  payload: {
10119
10119
  category: "2u",
@@ -10127,7 +10127,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10127
10127
  ...W,
10128
10128
  feedbackThumbType: L
10129
10129
  }) : W);
10130
- B(Y), le(!1);
10130
+ B(Y), ae(!1);
10131
10131
  };
10132
10132
  return (
10133
10133
  // do not remove this class as it's needed to turn off chatbot
@@ -10220,7 +10220,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
10220
10220
  dr,
10221
10221
  {
10222
10222
  configurations: i,
10223
- submitEvent: ae,
10223
+ submitEvent: oe,
10224
10224
  setLiveChatOpen: $,
10225
10225
  isTestUser: ne
10226
10226
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.3.15",
3
+ "version": "1.3.16-beta.1",
4
4
  "homepage": "/app/plugins/xpert-chatbot/frontend/build/",
5
5
  "repository": {
6
6
  "type": "git",