qt-ui-kit 1.0.76 → 1.0.78

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
@@ -49,6 +49,7 @@ declare enum UrgencyLevel {
49
49
  LOW = "low"
50
50
  }
51
51
  type EventGroup = {
52
+ id: string;
52
53
  urgency?: UrgencyLevel;
53
54
  urgencyText?: string;
54
55
  summary?: string;
@@ -123,6 +124,7 @@ type Props$3 = {
123
124
  messages?: ChatData[];
124
125
  };
125
126
  type ChatData = {
127
+ id: string;
126
128
  name?: string;
127
129
  timeStamp?: string;
128
130
  body?: string;
package/dist/index.d.ts CHANGED
@@ -49,6 +49,7 @@ declare enum UrgencyLevel {
49
49
  LOW = "low"
50
50
  }
51
51
  type EventGroup = {
52
+ id: string;
52
53
  urgency?: UrgencyLevel;
53
54
  urgencyText?: string;
54
55
  summary?: string;
@@ -123,6 +124,7 @@ type Props$3 = {
123
124
  messages?: ChatData[];
124
125
  };
125
126
  type ChatData = {
127
+ id: string;
126
128
  name?: string;
127
129
  timeStamp?: string;
128
130
  body?: string;
package/dist/index.js CHANGED
@@ -15258,7 +15258,7 @@ function SenderSourceRow({
15258
15258
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex gap-[4px] place-items-center", children: [
15259
15259
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "body-small-bold break-all line-clamp-1", children: leftText }),
15260
15260
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "body-smal text-center", children: seperator }),
15261
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "body-small-bold text-center line-clamp-1", children: rightText }),
15261
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "body-small-bold text-center", children: rightText }),
15262
15262
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "label-3 flex", children: date && formatCustomRelative(date) })
15263
15263
  ] }),
15264
15264
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { onClick, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ExternalLink, { size: shrunk ? 16 : 24 }) })
@@ -16516,14 +16516,14 @@ function EventCard({
16516
16516
  urgencyExplanation: d.urgencyText,
16517
16517
  service: d.service,
16518
16518
  body: d.eventBody,
16519
- startExpanded: i == 0,
16519
+ startExpanded: i == eventData.length - 1,
16520
16520
  sender: d.sender,
16521
16521
  source: d.source,
16522
16522
  subjectLine: d.subjectLine,
16523
16523
  onExternal: () => window.open(d.link, "_blank"),
16524
16524
  summary: d.summary
16525
16525
  },
16526
- d.subjectLine
16526
+ d.id
16527
16527
  )) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: " " }) });
16528
16528
  case "ticket" /* TICKET */:
16529
16529
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: eventData ? eventData.map((d, i) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
@@ -16532,13 +16532,14 @@ function EventCard({
16532
16532
  urgency: d.urgency,
16533
16533
  service: d.service,
16534
16534
  body: d.eventBody,
16535
- startExpanded: i == 0,
16535
+ startExpanded: i == eventData.length - 1,
16536
16536
  sender: d.sender,
16537
16537
  source: d.source,
16538
16538
  subjectLine: d.subjectLine,
16539
16539
  onExternal: () => window.open(d.link, "_blank"),
16540
16540
  summary: d.summary
16541
- }
16541
+ },
16542
+ d.id
16542
16543
  )) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: " " }) });
16543
16544
  default:
16544
16545
  return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, {});
@@ -16675,7 +16676,7 @@ function ChatBubble({
16675
16676
  "div",
16676
16677
  {
16677
16678
  className: (0, import_clsx10.default)(
16678
- "w-full p-4 bg-qtneutral-100 rounded-t-3xl flex flex-col gap-2",
16679
+ "w-full p-4 bg-white rounded-t-3xl flex flex-col gap-2",
16679
16680
  outbound ? "border-2 border-qtpurple-300" : "",
16680
16681
  outbound ? "rounded-bl-3xl" : "rounded-br-3xl"
16681
16682
  ),
@@ -16754,7 +16755,8 @@ function ChatBody({ messages }) {
16754
16755
  timestamp: msg.timeStamp,
16755
16756
  emojis: msg.emojis,
16756
16757
  onExternal: () => window.open(msg.link, "_blank")
16757
- }
16758
+ },
16759
+ msg.id
16758
16760
  );
16759
16761
  }) }) });
16760
16762
  }
@@ -17473,6 +17475,7 @@ var EventState = /* @__PURE__ */ ((EventState2) => {
17473
17475
  // src/util/mockdata.ts
17474
17476
  var fakeMessages = [
17475
17477
  {
17478
+ id: "123",
17476
17479
  name: "Sr. Issac Newton",
17477
17480
  timeStamp: "Today @ 11:45 AM",
17478
17481
  body: "Hey team, just a reminder that the client pitch deck needs final review today. I\u2019ve updated the numbers from Q1 and added two new slides with competitor insights. Hey team, just a reminder that the client pitch deck needs final review today. I\u2019ve updated the numbers from Q1 and added two new slides with competitor insights. Hey team, just a reminder that the client pitch deck needs final review today. I\u2019ve updated the numbers from Q1 and added two new slides with competitor insights.",
@@ -17481,6 +17484,7 @@ var fakeMessages = [
17481
17484
  outbound: true
17482
17485
  },
17483
17486
  {
17487
+ id: "124",
17484
17488
  name: "Sr. Issac Newton",
17485
17489
  timeStamp: "Tomorrow @ 2:00 PM",
17486
17490
  body: "I\u2019ve confirmed the offsite meeting with the engineering leads. It will be held at the downtown conference center and lunch will be provided. Let me know if you have dietary needs. I\u2019ve confirmed the offsite meeting with the engineering leads. It will be held at the downtown conference center and lunch will be provided. Let me know if you have dietary needs. I\u2019ve confirmed the offsite meeting with the engineering leads. It will be held at the downtown conference center and lunch will be provided. Let me know if you have dietary needs. I\u2019ve confirmed the offsite meeting with the engineering leads. It will be held at the downtown conference center and lunch will be provided. Let me know if you have dietary needs. I\u2019ve confirmed the offsite meeting with the engineering leads. It will be held at the downtown conference center and lunch will be provided. Let me know if you have dietary needs.",
@@ -17490,6 +17494,7 @@ var fakeMessages = [
17490
17494
  outbound: true
17491
17495
  },
17492
17496
  {
17497
+ id: "125",
17493
17498
  name: "Priya Desai",
17494
17499
  timeStamp: "Wednesday @ 3:15 PM",
17495
17500
  body: `
@@ -17507,6 +17512,7 @@ This is a *markdown* **example**.
17507
17512
  outbound: false
17508
17513
  },
17509
17514
  {
17515
+ id: "126",
17510
17516
  name: "Devon James",
17511
17517
  timeStamp: "Monday, 19th May @ 9:30 AM",
17512
17518
  body: "The supplier in Shenzhen confirmed they can expedite our next shipment. They'll need final approval by Thursday to ensure arrival before the end of the month.",
@@ -17515,6 +17521,7 @@ This is a *markdown* **example**.
17515
17521
  outbound: false
17516
17522
  },
17517
17523
  {
17524
+ id: "127",
17518
17525
  name: "Sr. Issac Newton",
17519
17526
  timeStamp: "Friday @ 4:20 PM",
17520
17527
  body: "I\u2019ve updated the analytics dashboard to include bounce rate and average session duration for each product page. Check the new filters under 'Advanced Metrics'.",
@@ -17522,6 +17529,7 @@ This is a *markdown* **example**.
17522
17529
  outbound: true
17523
17530
  },
17524
17531
  {
17532
+ id: "128",
17525
17533
  name: "Zahra Malik",
17526
17534
  timeStamp: "Today @ 10:00 AM",
17527
17535
  body: "Just wrapped up the investor Q&A session. Feedback was positive, especially on the projected growth numbers. A few asked about regulatory concerns\u2014I'll send a memo tomorrow.",
@@ -17531,6 +17539,7 @@ This is a *markdown* **example**.
17531
17539
  outbound: false
17532
17540
  },
17533
17541
  {
17542
+ id: "129",
17534
17543
  name: "Sr. Issac Newton",
17535
17544
  timeStamp: "Thursday @ 6:15 PM",
17536
17545
  body: "Legal has flagged a few clauses in the new vendor agreement that may conflict with our IP policy. Recommend we pause signing until we clarify points 4 and 7.",
@@ -17539,6 +17548,7 @@ This is a *markdown* **example**.
17539
17548
  outbound: true
17540
17549
  },
17541
17550
  {
17551
+ id: "1234",
17542
17552
  name: "Anna Kov\xE1cs",
17543
17553
  timeStamp: "Tuesday @ 8:00 AM",
17544
17554
  body: "We\u2019ve identified a bug in the onboarding flow affecting Android 11 devices. Users are unable to progress past the third screen. Patch in progress, ETA tomorrow.",
@@ -17546,6 +17556,7 @@ This is a *markdown* **example**.
17546
17556
  outbound: false
17547
17557
  },
17548
17558
  {
17559
+ id: "1235",
17549
17560
  name: "Sr. Issac Newton",
17550
17561
  timeStamp: "Monday, 26th May @ 1:45 PM",
17551
17562
  body: "Reminder that the quarterly town hall is scheduled for the last Monday of the month. We'll cover performance metrics, upcoming hires, and the office reopening plan.",
@@ -17554,6 +17565,7 @@ This is a *markdown* **example**.
17554
17565
  outbound: true
17555
17566
  },
17556
17567
  {
17568
+ id: "1236",
17557
17569
  name: "Fatima Ahmed",
17558
17570
  timeStamp: "Sunday, 25th May @ 10:30 AM",
17559
17571
  body: "I\u2019ve drafted a new content calendar for Q3 with themes for each week. Would love feedback on week 4\u2014thinking of tying it to a product announcement.",