qt-ui-kit 1.0.65 → 1.0.67

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.mjs CHANGED
@@ -16471,6 +16471,8 @@ function EventCard({
16471
16471
  }
16472
16472
 
16473
16473
  // src/components/organisms/message_body/email_body.tsx
16474
+ import ReactMarkdown from "react-markdown";
16475
+ import rehypeRaw from "rehype-raw";
16474
16476
  import { jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
16475
16477
  function EmailBody({
16476
16478
  subjectLine,
@@ -16482,7 +16484,8 @@ function EmailBody({
16482
16484
  attachments,
16483
16485
  body
16484
16486
  }) {
16485
- return /* @__PURE__ */ jsxs23("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl", children: [
16487
+ body = "Alex \u2014 this is getting flagged higher up. Please send me a status update on Project Alpha ASAP so I can respond accordingly.\n\n\u2014 Greg";
16488
+ return /* @__PURE__ */ jsxs23("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl overflow-auto", children: [
16486
16489
  /* @__PURE__ */ jsxs23("div", { className: "flex flex-col gap-0.5", children: [
16487
16490
  /* @__PURE__ */ jsx33(MetadataRow, { metadata: [`Subject: ${subjectLine}`] }),
16488
16491
  /* @__PURE__ */ jsx33(MetadataRow, { metadata: [`To: ${to}`] }),
@@ -16493,7 +16496,17 @@ function EmailBody({
16493
16496
  /* @__PURE__ */ jsx33(MetadataRow, { metadata: [`Attachments: ${attachments}`] })
16494
16497
  ] }),
16495
16498
  /* @__PURE__ */ jsx33("hr", { className: "text-qtneutral-500" }),
16496
- /* @__PURE__ */ jsx33("div", { className: "body-medium prose break-all", children: body && /* @__PURE__ */ jsx33("pre", { className: "whitespace-pre-wrap", children: body }) })
16499
+ /* @__PURE__ */ jsx33("div", { className: "body-medium prose break-all", children: body && /* @__PURE__ */ jsx33(
16500
+ ReactMarkdown,
16501
+ {
16502
+ children: body,
16503
+ rehypePlugins: [rehypeRaw],
16504
+ components: {
16505
+ img: ({ node, ...props }) => /* @__PURE__ */ jsx33("img", { style: { maxWidth: "100%" }, ...props })
16506
+ // Apply custom components/styling
16507
+ }
16508
+ }
16509
+ ) })
16497
16510
  ] });
16498
16511
  }
16499
16512
 
@@ -16513,7 +16526,7 @@ function EmojiPill({ emoji, count }) {
16513
16526
 
16514
16527
  // src/util/utilcomponents.tsx
16515
16528
  import clsx8 from "clsx";
16516
- import ReactMarkdown from "react-markdown";
16529
+ import ReactMarkdown2 from "react-markdown";
16517
16530
  import remarkGfm from "remark-gfm";
16518
16531
  import { jsx as jsx35 } from "react/jsx-runtime";
16519
16532
  function MarkdownRenderer({ content, truncated }) {
@@ -16524,7 +16537,7 @@ function MarkdownRenderer({ content, truncated }) {
16524
16537
  "flex flex-col markdown break-all",
16525
16538
  truncated && "line-clamp-3"
16526
16539
  ),
16527
- children: /* @__PURE__ */ jsx35(ReactMarkdown, { remarkPlugins: [remarkGfm], children: content })
16540
+ children: /* @__PURE__ */ jsx35(ReactMarkdown2, { remarkPlugins: [remarkGfm], children: content })
16528
16541
  }
16529
16542
  );
16530
16543
  }