@devalok/shilp-sutra-karm 0.17.0 → 0.18.0
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/_chunks/chat-panel.js +175 -202
- package/dist/_chunks/kanban-board.js +4 -3
- package/dist/_chunks/markdown-components.js +35 -0
- package/dist/_chunks/render-adjustment-type.js +1 -1
- package/dist/_chunks/sidebar-scratchpad.js +39 -37
- package/dist/_chunks/task-detail-panel.js +68 -68
- package/dist/_chunks/vendor.js +5197 -10406
- package/dist/dashboard/daily-brief.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -77,8 +77,8 @@ const Te = o.forwardRef(
|
|
|
77
77
|
renderDatePicker: N,
|
|
78
78
|
onConfirmVisibilityChange: w,
|
|
79
79
|
...I
|
|
80
|
-
},
|
|
81
|
-
const [v,
|
|
80
|
+
}, i) {
|
|
81
|
+
const [v, l] = o.useState(""), [c, f] = o.useState(!1), u = s.assignees.map((a) => a.user.id), E = o.useMemo(
|
|
82
82
|
() => h.map((a) => ({ id: a.id, name: a.name, avatar: a.image ?? void 0 })),
|
|
83
83
|
[h]
|
|
84
84
|
), T = (a) => {
|
|
@@ -93,7 +93,7 @@ const Te = o.forwardRef(
|
|
|
93
93
|
b("dueDate", a ? a.toISOString() : null);
|
|
94
94
|
}, z = () => {
|
|
95
95
|
const a = v.trim();
|
|
96
|
-
a && !s.labels.includes(a) && b("labels", [...s.labels, a]),
|
|
96
|
+
a && !s.labels.includes(a) && b("labels", [...s.labels, a]), l(""), f(!1);
|
|
97
97
|
}, J = (a) => {
|
|
98
98
|
b("labels", s.labels.filter((Q) => Q !== a));
|
|
99
99
|
}, M = () => {
|
|
@@ -104,7 +104,7 @@ const Te = o.forwardRef(
|
|
|
104
104
|
}
|
|
105
105
|
b("visibility", a);
|
|
106
106
|
}, q = C || qs;
|
|
107
|
-
return /* @__PURE__ */ t("div", { ref:
|
|
107
|
+
return /* @__PURE__ */ t("div", { ref: i, className: p("space-y-ds-01", D), ...I, children: [
|
|
108
108
|
/* @__PURE__ */ e(O, { icon: os, label: "Column", children: x && !(d != null && d.includes("columnId")) ? /* @__PURE__ */ e("span", { className: "px-ds-03 py-ds-02 text-ds-md text-surface-fg", children: s.column.name }) : /* @__PURE__ */ t(de, { children: [
|
|
109
109
|
/* @__PURE__ */ e(ue, { asChild: !0, children: /* @__PURE__ */ t(
|
|
110
110
|
"button",
|
|
@@ -295,10 +295,10 @@ const Te = o.forwardRef(
|
|
|
295
295
|
{
|
|
296
296
|
type: "text",
|
|
297
297
|
value: v,
|
|
298
|
-
onChange: (a) =>
|
|
298
|
+
onChange: (a) => l(a.target.value),
|
|
299
299
|
"aria-label": "New label name",
|
|
300
300
|
onKeyDown: (a) => {
|
|
301
|
-
a.key === "Enter" && z(), a.key === "Escape" && (f(!1),
|
|
301
|
+
a.key === "Enter" && z(), a.key === "Escape" && (f(!1), l(""));
|
|
302
302
|
},
|
|
303
303
|
onBlur: z,
|
|
304
304
|
placeholder: "Label name",
|
|
@@ -355,26 +355,26 @@ const Re = o.forwardRef(
|
|
|
355
355
|
readOnly: D = !1,
|
|
356
356
|
...x
|
|
357
357
|
}, d) {
|
|
358
|
-
const [C, N] = o.useState(""), [w, I] = o.useState(!1),
|
|
358
|
+
const [C, N] = o.useState(""), [w, I] = o.useState(!1), i = o.useRef(null), v = s.filter(
|
|
359
359
|
(u) => {
|
|
360
360
|
var E;
|
|
361
361
|
return ((E = u.column) == null ? void 0 : E.isTerminal) || u.columnId === g;
|
|
362
362
|
}
|
|
363
|
-
).length,
|
|
363
|
+
).length, l = s.length, c = () => {
|
|
364
364
|
const u = C.trim();
|
|
365
365
|
u && (h(u), N(""));
|
|
366
366
|
}, f = (u) => {
|
|
367
367
|
u.key === "Enter" && (u.preventDefault(), c()), u.key === "Escape" && (I(!1), N(""));
|
|
368
368
|
};
|
|
369
369
|
return o.useEffect(() => {
|
|
370
|
-
w &&
|
|
370
|
+
w && i.current && i.current.focus();
|
|
371
371
|
}, [w]), /* @__PURE__ */ t("div", { ref: d, className: p("flex flex-col", y), ...x, children: [
|
|
372
|
-
|
|
373
|
-
/* @__PURE__ */ e(cs, { value:
|
|
372
|
+
l > 0 && /* @__PURE__ */ t("div", { className: "mb-ds-05 flex items-center gap-ds-04", children: [
|
|
373
|
+
/* @__PURE__ */ e(cs, { value: l > 0 ? v / l * 100 : 0, className: "h-ds-02b" }),
|
|
374
374
|
/* @__PURE__ */ t("span", { className: "shrink-0 text-ds-sm font-medium text-surface-fg-subtle", children: [
|
|
375
375
|
v,
|
|
376
376
|
"/",
|
|
377
|
-
|
|
377
|
+
l
|
|
378
378
|
] })
|
|
379
379
|
] }),
|
|
380
380
|
s.length > 0 ? /* @__PURE__ */ e("div", { className: "space-y-ds-01", children: s.map((u) => {
|
|
@@ -448,7 +448,7 @@ const Re = o.forwardRef(
|
|
|
448
448
|
/* @__PURE__ */ e(
|
|
449
449
|
"input",
|
|
450
450
|
{
|
|
451
|
-
ref:
|
|
451
|
+
ref: i,
|
|
452
452
|
type: "text",
|
|
453
453
|
value: C,
|
|
454
454
|
onChange: (u) => N(u.target.value),
|
|
@@ -508,17 +508,17 @@ const Ks = [
|
|
|
508
508
|
...y
|
|
509
509
|
}, D) {
|
|
510
510
|
const [x, d] = o.useState({}), [C, N] = o.useState(null), w = o.useMemo(
|
|
511
|
-
() => g.map((
|
|
511
|
+
() => g.map((i) => ({ id: i.id, name: i.name, avatar: i.image ?? void 0 })),
|
|
512
512
|
[g]
|
|
513
|
-
), I = (
|
|
514
|
-
b(
|
|
515
|
-
const c = { ...
|
|
516
|
-
return delete c[
|
|
513
|
+
), I = (i, v) => {
|
|
514
|
+
b(i, v, x[i]), d((l) => {
|
|
515
|
+
const c = { ...l };
|
|
516
|
+
return delete c[i], c;
|
|
517
517
|
}), N(null);
|
|
518
518
|
};
|
|
519
519
|
return /* @__PURE__ */ t("div", { ref: D, className: p("flex flex-col", m), ...y, children: [
|
|
520
|
-
s.length > 0 ? /* @__PURE__ */ e("div", { className: "space-y-ds-04", children: s.map((
|
|
521
|
-
const v = Fs[
|
|
520
|
+
s.length > 0 ? /* @__PURE__ */ e("div", { className: "space-y-ds-04", children: s.map((i) => {
|
|
521
|
+
const v = Fs[i.status], l = C === i.id;
|
|
522
522
|
return /* @__PURE__ */ t(
|
|
523
523
|
"div",
|
|
524
524
|
{
|
|
@@ -526,20 +526,20 @@ const Ks = [
|
|
|
526
526
|
children: [
|
|
527
527
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-ds-03", children: [
|
|
528
528
|
/* @__PURE__ */ t(j, { className: "h-ds-xs w-ds-xs shrink-0", children: [
|
|
529
|
-
|
|
529
|
+
i.reviewer.image && /* @__PURE__ */ e(
|
|
530
530
|
H,
|
|
531
531
|
{
|
|
532
|
-
src:
|
|
533
|
-
alt:
|
|
532
|
+
src: i.reviewer.image,
|
|
533
|
+
alt: i.reviewer.name
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
/* @__PURE__ */ e(G, { className: "bg-surface-3 text-ds-xs font-semibold text-accent-fg", children: B(
|
|
536
|
+
/* @__PURE__ */ e(G, { className: "bg-surface-3 text-ds-xs font-semibold text-accent-fg", children: B(i.reviewer.name) })
|
|
537
537
|
] }),
|
|
538
538
|
/* @__PURE__ */ t("div", { className: "flex-1 min-w-0", children: [
|
|
539
|
-
/* @__PURE__ */ e("span", { className: "text-ds-md font-medium text-surface-fg", children:
|
|
539
|
+
/* @__PURE__ */ e("span", { className: "text-ds-md font-medium text-surface-fg", children: i.reviewer.name }),
|
|
540
540
|
/* @__PURE__ */ t("span", { className: "ml-ds-03 text-ds-sm text-surface-fg-subtle", children: [
|
|
541
541
|
"requested by ",
|
|
542
|
-
|
|
542
|
+
i.requestedBy.name
|
|
543
543
|
] })
|
|
544
544
|
] }),
|
|
545
545
|
/* @__PURE__ */ e(
|
|
@@ -550,15 +550,15 @@ const Ks = [
|
|
|
550
550
|
}
|
|
551
551
|
)
|
|
552
552
|
] }),
|
|
553
|
-
|
|
554
|
-
|
|
553
|
+
i.feedback && /* @__PURE__ */ e("div", { className: "mt-ds-03 rounded-ds-md bg-surface-2 px-ds-04 py-ds-03", children: /* @__PURE__ */ e("p", { className: "text-ds-sm text-surface-fg-muted", children: i.feedback }) }),
|
|
554
|
+
i.status === "PENDING" && /* @__PURE__ */ e("div", { className: "mt-ds-03", children: l ? /* @__PURE__ */ t("div", { className: "space-y-ds-03", children: [
|
|
555
555
|
/* @__PURE__ */ e(
|
|
556
556
|
"textarea",
|
|
557
557
|
{
|
|
558
|
-
value: x[
|
|
558
|
+
value: x[i.id] || "",
|
|
559
559
|
onChange: (c) => d((f) => ({
|
|
560
560
|
...f,
|
|
561
|
-
[
|
|
561
|
+
[i.id]: c.target.value
|
|
562
562
|
})),
|
|
563
563
|
placeholder: "Add feedback (optional)...",
|
|
564
564
|
rows: 2,
|
|
@@ -572,7 +572,7 @@ const Ks = [
|
|
|
572
572
|
"button",
|
|
573
573
|
{
|
|
574
574
|
type: "button",
|
|
575
|
-
onClick: () => I(
|
|
575
|
+
onClick: () => I(i.id, c.status),
|
|
576
576
|
className: p(
|
|
577
577
|
"inline-flex items-center gap-ds-02 rounded-ds-md px-ds-03 py-ds-02 text-ds-sm font-semibold transition-colors",
|
|
578
578
|
c.status === "APPROVED" && "bg-success-3 text-success-11 hover:opacity-90",
|
|
@@ -601,15 +601,15 @@ const Ks = [
|
|
|
601
601
|
"button",
|
|
602
602
|
{
|
|
603
603
|
type: "button",
|
|
604
|
-
onClick: () => N(
|
|
604
|
+
onClick: () => N(i.id),
|
|
605
605
|
className: "text-ds-sm font-medium text-accent-11 transition-colors hover:underline",
|
|
606
606
|
children: "Respond"
|
|
607
607
|
}
|
|
608
608
|
) }),
|
|
609
|
-
/* @__PURE__ */ e("p", { className: "mt-ds-03 text-ds-xs text-surface-fg-subtle", children: Ys(
|
|
609
|
+
/* @__PURE__ */ e("p", { className: "mt-ds-03 text-ds-xs text-surface-fg-subtle", children: Ys(i.createdAt) })
|
|
610
610
|
]
|
|
611
611
|
},
|
|
612
|
-
|
|
612
|
+
i.id
|
|
613
613
|
);
|
|
614
614
|
}) }) : /* @__PURE__ */ e(
|
|
615
615
|
F,
|
|
@@ -625,7 +625,7 @@ const Ks = [
|
|
|
625
625
|
{
|
|
626
626
|
members: w,
|
|
627
627
|
selectedIds: [],
|
|
628
|
-
onSelect: (
|
|
628
|
+
onSelect: (i) => h(i),
|
|
629
629
|
children: /* @__PURE__ */ t(
|
|
630
630
|
"button",
|
|
631
631
|
{
|
|
@@ -675,7 +675,7 @@ const ke = o.forwardRef(
|
|
|
675
675
|
renderViewer: x,
|
|
676
676
|
...d
|
|
677
677
|
}, C) {
|
|
678
|
-
const [N, w] = o.useState(""), I = o.useRef(null),
|
|
678
|
+
const [N, w] = o.useState(""), I = o.useRef(null), i = D ?? (y ? (c) => /* @__PURE__ */ e(
|
|
679
679
|
Ps,
|
|
680
680
|
{
|
|
681
681
|
content: c.content,
|
|
@@ -684,7 +684,7 @@ const ke = o.forwardRef(
|
|
|
684
684
|
editable: !0,
|
|
685
685
|
className: "min-h-[80px]"
|
|
686
686
|
}
|
|
687
|
-
) : void 0), v = x ?? (y ? (c) => /* @__PURE__ */ e(ks, { content: c.content, className: c.className }) : void 0),
|
|
687
|
+
) : void 0), v = x ?? (y ? (c) => /* @__PURE__ */ e(ks, { content: c.content, className: c.className }) : void 0), l = () => {
|
|
688
688
|
const c = N.trim();
|
|
689
689
|
c.replace(/<[^>]*>/g, "").trim() && (h(c, m ? "CLIENT" : "INTERNAL"), w(""));
|
|
690
690
|
};
|
|
@@ -738,7 +738,7 @@ const ke = o.forwardRef(
|
|
|
738
738
|
),
|
|
739
739
|
/* @__PURE__ */ t("div", { className: "mt-ds-05 space-y-ds-03", children: [
|
|
740
740
|
g === "EVERYONE" && !m && /* @__PURE__ */ e("p", { className: "text-ds-xs text-warning-11", children: "This task is visible to clients. Comments may be seen by external users." }),
|
|
741
|
-
|
|
741
|
+
i ? i({
|
|
742
742
|
content: N,
|
|
743
743
|
onChange: w,
|
|
744
744
|
placeholder: "Write a comment..."
|
|
@@ -756,7 +756,7 @@ const ke = o.forwardRef(
|
|
|
756
756
|
"button",
|
|
757
757
|
{
|
|
758
758
|
type: "button",
|
|
759
|
-
onClick:
|
|
759
|
+
onClick: l,
|
|
760
760
|
disabled: !N.replace(/<[^>]*>/g, "").trim(),
|
|
761
761
|
className: "inline-flex items-center gap-ds-02b rounded-ds-lg bg-accent-9 px-ds-04 py-ds-02b text-ds-sm font-semibold text-accent-fg transition-colors hover:bg-accent-10 disabled:opacity-action-disabled disabled:cursor-not-allowed",
|
|
762
762
|
children: [
|
|
@@ -792,17 +792,17 @@ const Pe = o.forwardRef(
|
|
|
792
792
|
readOnly: y = !1,
|
|
793
793
|
...D
|
|
794
794
|
}, x) {
|
|
795
|
-
const d = o.useRef(null), [C, N] = o.useState(!1), w = (
|
|
795
|
+
const d = o.useRef(null), [C, N] = o.useState(!1), w = (l) => {
|
|
796
796
|
var f;
|
|
797
|
-
const c = (f =
|
|
797
|
+
const c = (f = l.target.files) == null ? void 0 : f[0];
|
|
798
798
|
c && g(c), d.current && (d.current.value = "");
|
|
799
|
-
}, I = (
|
|
799
|
+
}, I = (l) => {
|
|
800
800
|
var f;
|
|
801
|
-
|
|
802
|
-
const c = (f =
|
|
801
|
+
l.preventDefault(), N(!1);
|
|
802
|
+
const c = (f = l.dataTransfer.files) == null ? void 0 : f[0];
|
|
803
803
|
c && g(c);
|
|
804
|
-
},
|
|
805
|
-
|
|
804
|
+
}, i = (l) => {
|
|
805
|
+
l.preventDefault(), N(!0);
|
|
806
806
|
}, v = () => {
|
|
807
807
|
N(!1);
|
|
808
808
|
};
|
|
@@ -813,7 +813,7 @@ const Pe = o.forwardRef(
|
|
|
813
813
|
role: "region",
|
|
814
814
|
"aria-label": "File upload drop zone",
|
|
815
815
|
onDrop: I,
|
|
816
|
-
onDragOver:
|
|
816
|
+
onDragOver: i,
|
|
817
817
|
onDragLeave: v,
|
|
818
818
|
className: p(
|
|
819
819
|
"rounded-ds-lg border-2 border-dashed transition-colors",
|
|
@@ -834,8 +834,8 @@ const Pe = o.forwardRef(
|
|
|
834
834
|
{
|
|
835
835
|
type: "button",
|
|
836
836
|
onClick: () => {
|
|
837
|
-
var
|
|
838
|
-
return (
|
|
837
|
+
var l;
|
|
838
|
+
return (l = d.current) == null ? void 0 : l.click();
|
|
839
839
|
},
|
|
840
840
|
disabled: b,
|
|
841
841
|
className: "text-ds-md font-medium text-accent-11 transition-colors hover:underline disabled:opacity-action-disabled",
|
|
@@ -860,8 +860,8 @@ const Pe = o.forwardRef(
|
|
|
860
860
|
]
|
|
861
861
|
}
|
|
862
862
|
),
|
|
863
|
-
s.length > 0 ? /* @__PURE__ */ e("div", { className: "mt-ds-05 space-y-ds-02", children: s.map((
|
|
864
|
-
const c = Ms(
|
|
863
|
+
s.length > 0 ? /* @__PURE__ */ e("div", { className: "mt-ds-05 space-y-ds-02", children: s.map((l) => {
|
|
864
|
+
const c = Ms(l.fileType);
|
|
865
865
|
return /* @__PURE__ */ t(
|
|
866
866
|
"div",
|
|
867
867
|
{
|
|
@@ -875,29 +875,29 @@ const Pe = o.forwardRef(
|
|
|
875
875
|
}
|
|
876
876
|
) }),
|
|
877
877
|
/* @__PURE__ */ t("div", { className: "flex-1 min-w-0", children: [
|
|
878
|
-
/* @__PURE__ */ e("p", { className: "truncate text-ds-md font-medium text-surface-fg", children:
|
|
878
|
+
/* @__PURE__ */ e("p", { className: "truncate text-ds-md font-medium text-surface-fg", children: l.title }),
|
|
879
879
|
/* @__PURE__ */ t("p", { className: "text-ds-sm text-surface-fg-subtle", children: [
|
|
880
|
-
Qs(
|
|
880
|
+
Qs(l.createdAt),
|
|
881
881
|
/* @__PURE__ */ e("span", { className: "mx-ds-02b", children: "by" }),
|
|
882
|
-
|
|
882
|
+
l.uploadedBy.name
|
|
883
883
|
] })
|
|
884
884
|
] }),
|
|
885
885
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-ds-02 opacity-0 transition-opacity group-hover:opacity-100", children: [
|
|
886
|
-
|
|
886
|
+
l.externalUrl && /* @__PURE__ */ e(
|
|
887
887
|
"a",
|
|
888
888
|
{
|
|
889
|
-
href:
|
|
889
|
+
href: /^https?:\/\//.test(l.externalUrl) ? l.externalUrl : "#",
|
|
890
890
|
target: "_blank",
|
|
891
891
|
rel: "noopener noreferrer",
|
|
892
892
|
className: "inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-ds-md transition-colors hover:bg-surface-2",
|
|
893
|
-
title:
|
|
893
|
+
title: l.externalLabel ?? "Open externally",
|
|
894
894
|
children: /* @__PURE__ */ e(bs, { className: "h-ico-sm w-ico-sm text-surface-fg-subtle" })
|
|
895
895
|
}
|
|
896
896
|
),
|
|
897
|
-
|
|
897
|
+
l.downloadUrl && /* @__PURE__ */ e(
|
|
898
898
|
"a",
|
|
899
899
|
{
|
|
900
|
-
href: /^https?:\/\//.test(
|
|
900
|
+
href: /^https?:\/\//.test(l.downloadUrl) ? l.downloadUrl : "#",
|
|
901
901
|
target: "_blank",
|
|
902
902
|
rel: "noopener noreferrer",
|
|
903
903
|
className: "inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-ds-md transition-colors hover:bg-surface-2",
|
|
@@ -920,7 +920,7 @@ const Pe = o.forwardRef(
|
|
|
920
920
|
/* @__PURE__ */ e(Hs, { children: "Delete file?" }),
|
|
921
921
|
/* @__PURE__ */ t(Gs, { children: [
|
|
922
922
|
'"',
|
|
923
|
-
|
|
923
|
+
l.title,
|
|
924
924
|
'" will be permanently deleted. This cannot be undone.'
|
|
925
925
|
] })
|
|
926
926
|
] }),
|
|
@@ -932,7 +932,7 @@ const Pe = o.forwardRef(
|
|
|
932
932
|
variant: "solid",
|
|
933
933
|
color: "error",
|
|
934
934
|
size: "sm",
|
|
935
|
-
onClick: () => h(
|
|
935
|
+
onClick: () => h(l.id),
|
|
936
936
|
children: "Delete"
|
|
937
937
|
}
|
|
938
938
|
) })
|
|
@@ -942,7 +942,7 @@ const Pe = o.forwardRef(
|
|
|
942
942
|
] })
|
|
943
943
|
]
|
|
944
944
|
},
|
|
945
|
-
|
|
945
|
+
l.id
|
|
946
946
|
);
|
|
947
947
|
}) }) : /* @__PURE__ */ e("div", { className: "mt-ds-03", children: /* @__PURE__ */ e(
|
|
948
948
|
F,
|
|
@@ -1161,9 +1161,9 @@ const st = o.forwardRef(function({
|
|
|
1161
1161
|
headerSlot: N,
|
|
1162
1162
|
extraTabs: w = [],
|
|
1163
1163
|
onTitleUpdate: I,
|
|
1164
|
-
onPropertyUpdate:
|
|
1164
|
+
onPropertyUpdate: i,
|
|
1165
1165
|
onAssign: v,
|
|
1166
|
-
onUnassign:
|
|
1166
|
+
onUnassign: l,
|
|
1167
1167
|
onCreateSubtask: c,
|
|
1168
1168
|
onToggleSubtask: f,
|
|
1169
1169
|
onRequestReview: u,
|
|
@@ -1191,12 +1191,12 @@ const st = o.forwardRef(function({
|
|
|
1191
1191
|
const Ve = o.useCallback((r) => {
|
|
1192
1192
|
ae(r), k == null || k(r);
|
|
1193
1193
|
}, [k]), je = o.useCallback((r, A) => {
|
|
1194
|
-
d && !C.includes(r) ||
|
|
1195
|
-
}, [d, C,
|
|
1194
|
+
d && !C.includes(r) || i == null || i(r, A);
|
|
1195
|
+
}, [d, C, i]), He = o.useCallback((r) => {
|
|
1196
1196
|
v == null || v(r);
|
|
1197
1197
|
}, [v]), Ge = o.useCallback((r) => {
|
|
1198
|
-
|
|
1199
|
-
}, [
|
|
1198
|
+
l == null || l(r);
|
|
1199
|
+
}, [l]), $e = o.useCallback((r) => {
|
|
1200
1200
|
c == null || c(r);
|
|
1201
1201
|
}, [c]), Be = o.useCallback((r, A) => {
|
|
1202
1202
|
f == null || f(r, A);
|