qt-ui-kit 1.0.47 → 1.0.49

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
@@ -8,7 +8,8 @@ declare enum IntegrationService {
8
8
  MSTEAMS = "microsoft_teams",
9
9
  MSMAIL = "microsoft_mail",
10
10
  MSCAL = "microsoft_calendar",
11
- AJIRA = "atlassian_jira"
11
+ AJIRA = "atlassian_jira",
12
+ CLKUP = "clickup"
12
13
  }
13
14
  declare enum BaseIconName {
14
15
  SEARCH = "search",
@@ -53,6 +54,9 @@ type EventGroup = {
53
54
  summary?: string;
54
55
  eventBody?: ReactNode;
55
56
  service?: IntegrationService;
57
+ sender?: string;
58
+ source?: string;
59
+ subjectLine?: string;
56
60
  };
57
61
  type TicketComment = {
58
62
  name?: string;
package/dist/index.d.ts CHANGED
@@ -8,7 +8,8 @@ declare enum IntegrationService {
8
8
  MSTEAMS = "microsoft_teams",
9
9
  MSMAIL = "microsoft_mail",
10
10
  MSCAL = "microsoft_calendar",
11
- AJIRA = "atlassian_jira"
11
+ AJIRA = "atlassian_jira",
12
+ CLKUP = "clickup"
12
13
  }
13
14
  declare enum BaseIconName {
14
15
  SEARCH = "search",
@@ -53,6 +54,9 @@ type EventGroup = {
53
54
  summary?: string;
54
55
  eventBody?: ReactNode;
55
56
  service?: IntegrationService;
57
+ sender?: string;
58
+ source?: string;
59
+ subjectLine?: string;
56
60
  };
57
61
  type TicketComment = {
58
62
  name?: string;
package/dist/index.js CHANGED
@@ -11207,6 +11207,7 @@ var IntegrationService = /* @__PURE__ */ ((IntegrationService6) => {
11207
11207
  IntegrationService6["MSMAIL"] = "microsoft_mail";
11208
11208
  IntegrationService6["MSCAL"] = "microsoft_calendar";
11209
11209
  IntegrationService6["AJIRA"] = "atlassian_jira";
11210
+ IntegrationService6["CLKUP"] = "clickup";
11210
11211
  return IntegrationService6;
11211
11212
  })(IntegrationService || {});
11212
11213
  var BaseIconName = /* @__PURE__ */ ((BaseIconName2) => {
@@ -16063,8 +16064,12 @@ function SingleEvent({
16063
16064
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
16064
16065
  "div",
16065
16066
  {
16066
- className: "flex flex-col rounded-3xl bg-qtneutral-200 py-4 px-4 gap-4 h-min",
16067
- onClick: () => setExpanded(!expanded),
16067
+ className: "flex flex-col rounded-3xl bg-qtneutral-200 py-4 px-4 gap-4 h-min debug",
16068
+ onClick: (e) => {
16069
+ if (e.target === e.currentTarget) {
16070
+ setExpanded(!expanded);
16071
+ }
16072
+ },
16068
16073
  children: [
16069
16074
  /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex gap-2 place-items-center", children: [
16070
16075
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
@@ -16128,7 +16133,10 @@ function EventCard({
16128
16133
  urgency: d.urgency,
16129
16134
  service: d.service,
16130
16135
  body: d.eventBody,
16131
- startExpanded: i == eventData.length - 1
16136
+ startExpanded: i == eventData.length - 1,
16137
+ sender: d.sender,
16138
+ source: d.source,
16139
+ subjectLine: d.subjectLine
16132
16140
  }
16133
16141
  )) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: " " }) });
16134
16142
  case "ticket" /* TICKET */:
@@ -16138,7 +16146,10 @@ function EventCard({
16138
16146
  urgency: d.urgency,
16139
16147
  service: d.service,
16140
16148
  body: d.eventBody,
16141
- startExpanded: i == eventData.length - 1
16149
+ startExpanded: i == eventData.length - 1,
16150
+ sender: d.sender,
16151
+ source: d.source,
16152
+ subjectLine: d.subjectLine
16142
16153
  }
16143
16154
  )) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: " " }) });
16144
16155
  default:
@@ -16169,7 +16180,11 @@ function EventCard({
16169
16180
  }
16170
16181
 
16171
16182
  // src/components/organisms/message_body/email_body.tsx
16183
+ var import_dompurify = __toESM(require("dompurify"));
16172
16184
  var import_jsx_runtime32 = require("react/jsx-runtime");
16185
+ function isHtml(content) {
16186
+ return /<\/?[a-z][\s\S]*>/i.test(content);
16187
+ }
16173
16188
  function EmailBody({
16174
16189
  subjectLine,
16175
16190
  to,
@@ -16185,13 +16200,20 @@ function EmailBody({
16185
16200
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`Subject: ${subjectLine}`] }),
16186
16201
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`To: ${to}`] }),
16187
16202
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`Date: ${date}`] }),
16188
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`from: ${from}`] }),
16203
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`From: ${from}`] }),
16189
16204
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`CC: ${CC}`] }),
16190
16205
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`BCC: ${BCC}`] }),
16191
16206
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`Attachments: ${attachments}`] })
16192
16207
  ] }),
16193
16208
  /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("hr", { className: "text-qtneutral-500" }),
16194
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "body-medium", children: body })
16209
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "body-medium prose break-all", children: body ? isHtml(body) ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
16210
+ "div",
16211
+ {
16212
+ dangerouslySetInnerHTML: {
16213
+ __html: import_dompurify.default.sanitize(body)
16214
+ }
16215
+ }
16216
+ ) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("pre", { className: "whitespace-pre-wrap", children: body }) : null })
16195
16217
  ] });
16196
16218
  }
16197
16219
 
@@ -16218,7 +16240,10 @@ function MarkdownRenderer({ content, truncated }) {
16218
16240
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
16219
16241
  "div",
16220
16242
  {
16221
- className: (0, import_clsx8.default)("flex flex-col markdown", truncated && "line-clamp-3"),
16243
+ className: (0, import_clsx8.default)(
16244
+ "flex flex-col markdown break-all",
16245
+ truncated && "line-clamp-3"
16246
+ ),
16222
16247
  children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_markdown.default, { remarkPlugins: [import_remark_gfm.default], children: content })
16223
16248
  }
16224
16249
  );