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.js CHANGED
@@ -16498,6 +16498,8 @@ function EventCard({
16498
16498
  }
16499
16499
 
16500
16500
  // src/components/organisms/message_body/email_body.tsx
16501
+ var import_react_markdown = __toESM(require("react-markdown"));
16502
+ var import_rehype_raw = __toESM(require("rehype-raw"));
16501
16503
  var import_jsx_runtime33 = require("react/jsx-runtime");
16502
16504
  function EmailBody({
16503
16505
  subjectLine,
@@ -16509,7 +16511,8 @@ function EmailBody({
16509
16511
  attachments,
16510
16512
  body
16511
16513
  }) {
16512
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl", children: [
16514
+ 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";
16515
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-4 bg-white p-4 rounded-b-2xl overflow-auto", children: [
16513
16516
  /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
16514
16517
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MetadataRow, { metadata: [`Subject: ${subjectLine}`] }),
16515
16518
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MetadataRow, { metadata: [`To: ${to}`] }),
@@ -16520,7 +16523,17 @@ function EmailBody({
16520
16523
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(MetadataRow, { metadata: [`Attachments: ${attachments}`] })
16521
16524
  ] }),
16522
16525
  /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("hr", { className: "text-qtneutral-500" }),
16523
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "body-medium prose break-all", children: body && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("pre", { className: "whitespace-pre-wrap", children: body }) })
16526
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "body-medium prose break-all", children: body && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
16527
+ import_react_markdown.default,
16528
+ {
16529
+ children: body,
16530
+ rehypePlugins: [import_rehype_raw.default],
16531
+ components: {
16532
+ img: ({ node, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("img", { style: { maxWidth: "100%" }, ...props })
16533
+ // Apply custom components/styling
16534
+ }
16535
+ }
16536
+ ) })
16524
16537
  ] });
16525
16538
  }
16526
16539
 
@@ -16540,7 +16553,7 @@ function EmojiPill({ emoji, count }) {
16540
16553
 
16541
16554
  // src/util/utilcomponents.tsx
16542
16555
  var import_clsx8 = __toESM(require("clsx"));
16543
- var import_react_markdown = __toESM(require("react-markdown"));
16556
+ var import_react_markdown2 = __toESM(require("react-markdown"));
16544
16557
  var import_remark_gfm = __toESM(require("remark-gfm"));
16545
16558
  var import_jsx_runtime35 = require("react/jsx-runtime");
16546
16559
  function MarkdownRenderer({ content, truncated }) {
@@ -16551,7 +16564,7 @@ function MarkdownRenderer({ content, truncated }) {
16551
16564
  "flex flex-col markdown break-all",
16552
16565
  truncated && "line-clamp-3"
16553
16566
  ),
16554
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_markdown.default, { remarkPlugins: [import_remark_gfm.default], children: content })
16567
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_markdown2.default, { remarkPlugins: [import_remark_gfm.default], children: content })
16555
16568
  }
16556
16569
  );
16557
16570
  }