qt-ui-kit 1.0.48 → 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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +24 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -5
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +6 -0
- package/package.json +5 -4
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",
|
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",
|
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: () =>
|
|
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)(
|
|
@@ -16175,7 +16180,11 @@ function EventCard({
|
|
|
16175
16180
|
}
|
|
16176
16181
|
|
|
16177
16182
|
// src/components/organisms/message_body/email_body.tsx
|
|
16183
|
+
var import_dompurify = __toESM(require("dompurify"));
|
|
16178
16184
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
16185
|
+
function isHtml(content) {
|
|
16186
|
+
return /<\/?[a-z][\s\S]*>/i.test(content);
|
|
16187
|
+
}
|
|
16179
16188
|
function EmailBody({
|
|
16180
16189
|
subjectLine,
|
|
16181
16190
|
to,
|
|
@@ -16191,13 +16200,20 @@ function EmailBody({
|
|
|
16191
16200
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`Subject: ${subjectLine}`] }),
|
|
16192
16201
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`To: ${to}`] }),
|
|
16193
16202
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`Date: ${date}`] }),
|
|
16194
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`
|
|
16203
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`From: ${from}`] }),
|
|
16195
16204
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`CC: ${CC}`] }),
|
|
16196
16205
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`BCC: ${BCC}`] }),
|
|
16197
16206
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetadataRow, { metadata: [`Attachments: ${attachments}`] })
|
|
16198
16207
|
] }),
|
|
16199
16208
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("hr", { className: "text-qtneutral-500" }),
|
|
16200
|
-
/* @__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 })
|
|
16201
16217
|
] });
|
|
16202
16218
|
}
|
|
16203
16219
|
|
|
@@ -16224,7 +16240,10 @@ function MarkdownRenderer({ content, truncated }) {
|
|
|
16224
16240
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
16225
16241
|
"div",
|
|
16226
16242
|
{
|
|
16227
|
-
className: (0, import_clsx8.default)(
|
|
16243
|
+
className: (0, import_clsx8.default)(
|
|
16244
|
+
"flex flex-col markdown break-all",
|
|
16245
|
+
truncated && "line-clamp-3"
|
|
16246
|
+
),
|
|
16228
16247
|
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_markdown.default, { remarkPlugins: [import_remark_gfm.default], children: content })
|
|
16229
16248
|
}
|
|
16230
16249
|
);
|