qt-ui-kit 1.0.55 → 1.0.57

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/dist/index.d.mts CHANGED
@@ -57,6 +57,7 @@ type EventGroup = {
57
57
  sender?: string;
58
58
  source?: string;
59
59
  subjectLine?: string;
60
+ link?: string;
60
61
  };
61
62
  type TicketComment = {
62
63
  name?: string;
package/dist/index.d.ts CHANGED
@@ -57,6 +57,7 @@ type EventGroup = {
57
57
  sender?: string;
58
58
  source?: string;
59
59
  subjectLine?: string;
60
+ link?: string;
60
61
  };
61
62
  type TicketComment = {
62
63
  name?: string;
package/dist/index.js CHANGED
@@ -16354,7 +16354,8 @@ function SingleEvent({
16354
16354
  startExpanded,
16355
16355
  sender,
16356
16356
  source,
16357
- subjectLine
16357
+ subjectLine,
16358
+ onExternal
16358
16359
  }) {
16359
16360
  const [selected, setSelected] = (0, import_react3.useState)(false);
16360
16361
  const [expanded, setExpanded] = (0, import_react3.useState)(false);
@@ -16396,7 +16397,8 @@ function SingleEvent({
16396
16397
  leftText: sender,
16397
16398
  seperator: "via",
16398
16399
  rightText: source,
16399
- shrunk: true
16400
+ shrunk: true,
16401
+ onClick: onExternal
16400
16402
  }
16401
16403
  ),
16402
16404
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SubjectLineRow, { text: subjectLine })
@@ -16438,7 +16440,8 @@ function EventCard({
16438
16440
  startExpanded: i == eventData.length - 1,
16439
16441
  sender: d.sender,
16440
16442
  source: d.source,
16441
- subjectLine: d.subjectLine
16443
+ subjectLine: d.subjectLine,
16444
+ onExternal: () => window.open(d.link, "_blank")
16442
16445
  }
16443
16446
  )) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: " " }) });
16444
16447
  case "ticket" /* TICKET */:
@@ -16451,7 +16454,8 @@ function EventCard({
16451
16454
  startExpanded: i == eventData.length - 1,
16452
16455
  sender: d.sender,
16453
16456
  source: d.source,
16454
- subjectLine: d.subjectLine
16457
+ subjectLine: d.subjectLine,
16458
+ onExternal: () => window.open(d.link, "_blank")
16455
16459
  }
16456
16460
  )) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: " " }) });
16457
16461
  default:
@@ -16560,7 +16564,8 @@ function ChatBubble({
16560
16564
  name,
16561
16565
  image,
16562
16566
  timestamp,
16563
- emojis
16567
+ emojis,
16568
+ onExternal
16564
16569
  }) {
16565
16570
  const [expanded, setExpanded] = (0, import_react4.useState)(false);
16566
16571
  const [truncatedText, setTruncatedText] = (0, import_react4.useState)(false);
@@ -16595,7 +16600,7 @@ function ChatBubble({
16595
16600
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "body-small-bold", children: name }),
16596
16601
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "text-qtneutral-700 label-3", children: timestamp })
16597
16602
  ] }),
16598
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ExternalLink, { size: 16 })
16603
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { onClick: onExternal, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ExternalLink, { size: 16 }) })
16599
16604
  ] }),
16600
16605
  /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: (0, import_clsx9.default)("flex flex-col gap-2", !expanded && " "), children: [
16601
16606
  summary && truncatedText && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
@@ -16662,7 +16667,8 @@ function ChatBody({ messages }) {
16662
16667
  image: msg.image,
16663
16668
  name: msg.name,
16664
16669
  timestamp: msg.timeStamp,
16665
- emojis: msg.emojis
16670
+ emojis: msg.emojis,
16671
+ onExternal: () => window.open(msg.link, "_blank")
16666
16672
  }
16667
16673
  );
16668
16674
  }) }) });