@flamingo-stack/openframe-frontend-core 0.0.563 → 0.0.564-1861.5029.1

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.
Files changed (138) hide show
  1. package/dist/{chunk-ZYALXBYA.js → chunk-2FYF37J3.js} +2 -2
  2. package/dist/{chunk-HORO3E6J.js → chunk-AHALU42N.js} +2 -2
  3. package/dist/{chunk-O2QXZ3CG.js → chunk-CZBZBK7M.js} +4 -4
  4. package/dist/{chunk-WNTNRQEL.cjs → chunk-DL5DXWJC.cjs} +20 -20
  5. package/dist/{chunk-WNTNRQEL.cjs.map → chunk-DL5DXWJC.cjs.map} +1 -1
  6. package/dist/{chunk-TVG2FHQX.js → chunk-E7DXYEHE.js} +2 -2
  7. package/dist/{chunk-2G65HZUS.cjs → chunk-EC6L6JMJ.cjs} +3 -3
  8. package/dist/{chunk-2G65HZUS.cjs.map → chunk-EC6L6JMJ.cjs.map} +1 -1
  9. package/dist/{chunk-HGSDDB2K.cjs → chunk-EZBTXXKD.cjs} +14 -14
  10. package/dist/{chunk-HGSDDB2K.cjs.map → chunk-EZBTXXKD.cjs.map} +1 -1
  11. package/dist/{chunk-D2C6VCH2.cjs → chunk-FN3RUX3O.cjs} +7 -7
  12. package/dist/{chunk-D2C6VCH2.cjs.map → chunk-FN3RUX3O.cjs.map} +1 -1
  13. package/dist/{chunk-J47EIBVD.js → chunk-IQJLPMM2.js} +2 -2
  14. package/dist/{chunk-IZ5NSAOY.js → chunk-KH2MXP6G.js} +2 -2
  15. package/dist/{chunk-DWOFOVKK.js → chunk-KYO5Z4NJ.js} +2 -2
  16. package/dist/{chunk-VOD7HME2.cjs → chunk-M4L5CPIC.cjs} +38 -5
  17. package/dist/chunk-M4L5CPIC.cjs.map +1 -0
  18. package/dist/{chunk-AQKAKYLA.js → chunk-MOEVW5IF.js} +37 -4
  19. package/dist/chunk-MOEVW5IF.js.map +1 -0
  20. package/dist/{chunk-EAUQ7FVQ.cjs → chunk-NQ5HGG3C.cjs} +26 -26
  21. package/dist/{chunk-EAUQ7FVQ.cjs.map → chunk-NQ5HGG3C.cjs.map} +1 -1
  22. package/dist/{chunk-WFMF7YCC.js → chunk-O22EZW7V.js} +2 -2
  23. package/dist/{chunk-4AZVFEFJ.js → chunk-O2XIWDKK.js} +5 -5
  24. package/dist/{chunk-6KBIGWCX.cjs → chunk-OKBNMR2M.cjs} +31 -31
  25. package/dist/{chunk-6KBIGWCX.cjs.map → chunk-OKBNMR2M.cjs.map} +1 -1
  26. package/dist/{chunk-ZGE45I4O.cjs → chunk-PLNDJLSK.cjs} +11 -11
  27. package/dist/{chunk-ZGE45I4O.cjs.map → chunk-PLNDJLSK.cjs.map} +1 -1
  28. package/dist/{chunk-475LZFVJ.cjs → chunk-PXZBRYIB.cjs} +39 -39
  29. package/dist/{chunk-475LZFVJ.cjs.map → chunk-PXZBRYIB.cjs.map} +1 -1
  30. package/dist/{chunk-KNGTLGTV.cjs → chunk-R5O54P4L.cjs} +5 -5
  31. package/dist/{chunk-KNGTLGTV.cjs.map → chunk-R5O54P4L.cjs.map} +1 -1
  32. package/dist/{chunk-VTRHCB5Y.js → chunk-TH4TNYFM.js} +4 -4
  33. package/dist/{chunk-A27PO3EI.js → chunk-U5XBD34S.js} +6 -6
  34. package/dist/{chunk-S7UOFXEB.cjs → chunk-URJSFWPH.cjs} +9 -9
  35. package/dist/{chunk-S7UOFXEB.cjs.map → chunk-URJSFWPH.cjs.map} +1 -1
  36. package/dist/{chunk-WPBMH6JX.js → chunk-WWNQFZ7R.js} +2 -2
  37. package/dist/{chunk-GMAA6A3V.js → chunk-XEQBE6RN.js} +2 -2
  38. package/dist/{chunk-LVM3KJJN.cjs → chunk-XL3HIB3C.cjs} +62 -62
  39. package/dist/{chunk-LVM3KJJN.cjs.map → chunk-XL3HIB3C.cjs.map} +1 -1
  40. package/dist/{chunk-VOSOLVXC.cjs → chunk-YOI3SIVL.cjs} +4 -4
  41. package/dist/{chunk-VOSOLVXC.cjs.map → chunk-YOI3SIVL.cjs.map} +1 -1
  42. package/dist/{chunk-SDCFVKFA.cjs → chunk-Z4WGVDF3.cjs} +86 -86
  43. package/dist/{chunk-SDCFVKFA.cjs.map → chunk-Z4WGVDF3.cjs.map} +1 -1
  44. package/dist/components/case-studies/index.cjs +8 -8
  45. package/dist/components/case-studies/index.js +2 -2
  46. package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
  47. package/dist/components/chat/index.cjs +2 -2
  48. package/dist/components/chat/index.js +1 -1
  49. package/dist/components/comment-card.d.ts +11 -2
  50. package/dist/components/comment-card.d.ts.map +1 -1
  51. package/dist/components/contact/index.cjs +3 -3
  52. package/dist/components/contact/index.js +2 -2
  53. package/dist/components/docs/index.cjs +5 -5
  54. package/dist/components/docs/index.js +4 -4
  55. package/dist/components/embeds/index.cjs +3 -3
  56. package/dist/components/embeds/index.js +2 -2
  57. package/dist/components/faq/index.cjs +3 -3
  58. package/dist/components/faq/index.js +2 -2
  59. package/dist/components/features/clickup-tasks-manager.d.ts +6 -1
  60. package/dist/components/features/clickup-tasks-manager.d.ts.map +1 -1
  61. package/dist/components/features/index.cjs +2 -2
  62. package/dist/components/features/index.js +1 -1
  63. package/dist/components/form.d.ts +1 -1
  64. package/dist/components/form.d.ts.map +1 -1
  65. package/dist/components/help-center-pages/index.cjs +22 -22
  66. package/dist/components/help-center-pages/index.js +13 -13
  67. package/dist/components/index.cjs +210 -197
  68. package/dist/components/index.cjs.map +1 -1
  69. package/dist/components/index.js +90 -77
  70. package/dist/components/index.js.map +1 -1
  71. package/dist/components/meeting-scheduler/index.cjs +30 -30
  72. package/dist/components/meeting-scheduler/index.js +3 -3
  73. package/dist/components/navigation/index.cjs +2 -2
  74. package/dist/components/navigation/index.js +1 -1
  75. package/dist/components/onboarding-guides/hooks/use-onboarding-guides.d.ts +3 -3
  76. package/dist/components/onboarding-guides/hooks/use-onboarding-guides.d.ts.map +1 -1
  77. package/dist/components/onboarding-guides/index.cjs +5 -5
  78. package/dist/components/onboarding-guides/index.js +4 -4
  79. package/dist/components/related-content/index.cjs +3 -3
  80. package/dist/components/related-content/index.js +2 -2
  81. package/dist/components/tickets/index.cjs +6 -6
  82. package/dist/components/tickets/index.js +5 -5
  83. package/dist/components/ui/index.cjs +2 -2
  84. package/dist/components/ui/index.js +1 -1
  85. package/dist/components/ui/markdown/rich/shortcodes.d.ts.map +1 -1
  86. package/dist/hooks/use-meeting-booking.d.ts +1 -1
  87. package/dist/index.cjs +16 -2
  88. package/dist/index.cjs.map +1 -1
  89. package/dist/index.js +15 -1
  90. package/dist/types/department.d.ts +36 -0
  91. package/dist/types/department.d.ts.map +1 -0
  92. package/dist/types/design-doc.d.ts +242 -0
  93. package/dist/types/design-doc.d.ts.map +1 -0
  94. package/dist/types/employee.d.ts +6 -2
  95. package/dist/types/employee.d.ts.map +1 -1
  96. package/dist/types/index.cjs +16 -0
  97. package/dist/types/index.cjs.map +1 -1
  98. package/dist/types/index.d.ts +2 -0
  99. package/dist/types/index.d.ts.map +1 -1
  100. package/dist/types/index.js +10 -1
  101. package/dist/types/index.js.map +1 -1
  102. package/dist/types/marketing.d.ts +1 -1
  103. package/dist/types/marketing.d.ts.map +1 -1
  104. package/dist/types/profile.d.ts +2 -1
  105. package/dist/types/profile.d.ts.map +1 -1
  106. package/dist/types/team.d.ts +7 -1
  107. package/dist/types/team.d.ts.map +1 -1
  108. package/dist/types/user.d.ts +3 -1
  109. package/dist/types/user.d.ts.map +1 -1
  110. package/package.json +1 -1
  111. package/src/components/chat/entity-cards/employee-entry-card.tsx +6 -0
  112. package/src/components/comment-card.tsx +32 -3
  113. package/src/components/features/clickup-tasks-manager.tsx +8 -1
  114. package/src/components/ui/markdown/rich/__tests__/shortcodes.test.ts +47 -0
  115. package/src/components/ui/markdown/rich/shortcodes.ts +11 -0
  116. package/src/types/department.ts +39 -0
  117. package/src/types/design-doc.ts +284 -0
  118. package/src/types/employee.ts +7 -2
  119. package/src/types/index.ts +2 -0
  120. package/src/types/marketing.ts +1 -0
  121. package/src/types/profile.ts +3 -1
  122. package/src/types/team.ts +9 -1
  123. package/src/types/user.ts +4 -1
  124. package/dist/chunk-AQKAKYLA.js.map +0 -1
  125. package/dist/chunk-VOD7HME2.cjs.map +0 -1
  126. /package/dist/{chunk-ZYALXBYA.js.map → chunk-2FYF37J3.js.map} +0 -0
  127. /package/dist/{chunk-HORO3E6J.js.map → chunk-AHALU42N.js.map} +0 -0
  128. /package/dist/{chunk-O2QXZ3CG.js.map → chunk-CZBZBK7M.js.map} +0 -0
  129. /package/dist/{chunk-TVG2FHQX.js.map → chunk-E7DXYEHE.js.map} +0 -0
  130. /package/dist/{chunk-J47EIBVD.js.map → chunk-IQJLPMM2.js.map} +0 -0
  131. /package/dist/{chunk-IZ5NSAOY.js.map → chunk-KH2MXP6G.js.map} +0 -0
  132. /package/dist/{chunk-DWOFOVKK.js.map → chunk-KYO5Z4NJ.js.map} +0 -0
  133. /package/dist/{chunk-WFMF7YCC.js.map → chunk-O22EZW7V.js.map} +0 -0
  134. /package/dist/{chunk-4AZVFEFJ.js.map → chunk-O2XIWDKK.js.map} +0 -0
  135. /package/dist/{chunk-VTRHCB5Y.js.map → chunk-TH4TNYFM.js.map} +0 -0
  136. /package/dist/{chunk-A27PO3EI.js.map → chunk-U5XBD34S.js.map} +0 -0
  137. /package/dist/{chunk-WPBMH6JX.js.map → chunk-WWNQFZ7R.js.map} +0 -0
  138. /package/dist/{chunk-GMAA6A3V.js.map → chunk-XEQBE6RN.js.map} +0 -0
@@ -4,7 +4,7 @@ import "../chunk-MVWSLZG7.js";
4
4
  import {
5
5
  GROUP_PAGE_SIZE,
6
6
  RelatedContentSection
7
- } from "../chunk-WFMF7YCC.js";
7
+ } from "../chunk-O22EZW7V.js";
8
8
  import {
9
9
  DeliveryLists,
10
10
  DeliveryTable,
@@ -18,7 +18,7 @@ import {
18
18
  RoadmapView,
19
19
  useLegalDocs,
20
20
  useRoadmapVoting
21
- } from "../chunk-A27PO3EI.js";
21
+ } from "../chunk-U5XBD34S.js";
22
22
  import {
23
23
  AnnouncementBarSkeleton,
24
24
  ArticleLayoutSkeleton,
@@ -51,22 +51,22 @@ import {
51
51
  useDocNavigation,
52
52
  useDocumentTree,
53
53
  useScrollSpy
54
- } from "../chunk-VTRHCB5Y.js";
54
+ } from "../chunk-TH4TNYFM.js";
55
55
  import {
56
56
  FileDownloadCard,
57
57
  GoogleSheetsViewer,
58
58
  PdfViewer
59
- } from "../chunk-TVG2FHQX.js";
59
+ } from "../chunk-E7DXYEHE.js";
60
60
  import {
61
61
  PersistentPagination,
62
62
  PersistentPaginationWrapper,
63
63
  usePaginationLoading
64
- } from "../chunk-WPBMH6JX.js";
64
+ } from "../chunk-WWNQFZ7R.js";
65
65
  import {
66
66
  FaqAccordion,
67
67
  FaqDocumentPage,
68
68
  FaqSection
69
- } from "../chunk-IZ5NSAOY.js";
69
+ } from "../chunk-KH2MXP6G.js";
70
70
  import {
71
71
  DeliveryRow,
72
72
  DevCardRowContent,
@@ -74,16 +74,16 @@ import {
74
74
  DevCardRowSkeletonList,
75
75
  DevSectionPage,
76
76
  DevSectionView
77
- } from "../chunk-HORO3E6J.js";
77
+ } from "../chunk-AHALU42N.js";
78
78
  import {
79
79
  EmptyState,
80
80
  UnifiedPagination,
81
81
  init_unified_pagination
82
- } from "../chunk-DWOFOVKK.js";
82
+ } from "../chunk-KYO5Z4NJ.js";
83
83
  import {
84
84
  ArticleAuthorByline,
85
85
  DetailPageSkeleton
86
- } from "../chunk-ZYALXBYA.js";
86
+ } from "../chunk-2FYF37J3.js";
87
87
  import {
88
88
  DocSearchBar,
89
89
  DocSearchResultRow,
@@ -91,7 +91,7 @@ import {
91
91
  mapDocSearchResults,
92
92
  resolveSearchResultAction,
93
93
  useDocSearch
94
- } from "../chunk-J47EIBVD.js";
94
+ } from "../chunk-IQJLPMM2.js";
95
95
  import {
96
96
  useSelfFetch
97
97
  } from "../chunk-KL6ZDLDF.js";
@@ -1001,7 +1001,7 @@ import {
1001
1001
  useVideoWarmup,
1002
1002
  useWalkthroughVideo,
1003
1003
  usesCanonicalStatusStyle
1004
- } from "../chunk-AQKAKYLA.js";
1004
+ } from "../chunk-MOEVW5IF.js";
1005
1005
  import "../chunk-7EUIW46X.js";
1006
1006
  import {
1007
1007
  next_image_default
@@ -1849,7 +1849,9 @@ function CommentCard({
1849
1849
  onDeleteComment,
1850
1850
  showVendorInfo = true,
1851
1851
  compact = false,
1852
- context = "profile"
1852
+ context = "profile",
1853
+ footer,
1854
+ children
1853
1855
  }) {
1854
1856
  const { user: currentUser } = useAuth();
1855
1857
  const formatActivityTime = (timestamp) => {
@@ -1863,77 +1865,88 @@ function CommentCard({
1863
1865
  if (context === "vendor" && comment.user) {
1864
1866
  return currentUser.id === comment.user.id;
1865
1867
  }
1868
+ if (context === "design_doc") {
1869
+ return comment.canDelete === true;
1870
+ }
1866
1871
  return false;
1867
1872
  };
1868
1873
  const showDeleteButton = canUserDeleteComment();
1869
- return /* @__PURE__ */ jsxs6("div", { className: "bg-ods-card border border-ods-border rounded-lg p-4 hover:border-ods-accent transition-all group overflow-hidden w-full max-w-full box-border", style: { maxWidth: "100%", wordBreak: "break-word" }, children: [
1870
- /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-3 mb-3 min-[420px]:flex-row min-[420px]:items-center min-[420px]:justify-between min-[420px]:gap-2 w-full", children: [
1871
- /* @__PURE__ */ jsx8("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: context === "profile" && comment.vendor ? /* @__PURE__ */ jsxs6(Fragment, { children: [
1872
- /* @__PURE__ */ jsx8(
1873
- VendorDisplayButton,
1874
+ const isThread = context === "design_doc";
1875
+ return /* @__PURE__ */ jsxs6(Fragment, { children: [
1876
+ /* @__PURE__ */ jsxs6("div", { className: "bg-ods-card border border-ods-border rounded-lg p-4 hover:border-ods-accent transition-all group overflow-hidden w-full max-w-full box-border", style: { maxWidth: "100%", wordBreak: "break-word" }, children: [
1877
+ /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-3 mb-3 min-[420px]:flex-row min-[420px]:items-center min-[420px]:justify-between min-[420px]:gap-2 w-full", children: [
1878
+ /* @__PURE__ */ jsx8("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: context === "profile" && comment.vendor ? /* @__PURE__ */ jsxs6(Fragment, { children: [
1879
+ /* @__PURE__ */ jsx8(
1880
+ VendorDisplayButton,
1881
+ {
1882
+ vendor: comment.vendor,
1883
+ onClick: onViewProduct || (() => {
1884
+ })
1885
+ }
1886
+ ),
1887
+ /* @__PURE__ */ jsx8("span", { className: "text-h6 text-ods-text-secondary whitespace-nowrap flex-shrink-0", children: formatActivityTime(comment.createdAt) })
1888
+ ] }) : (context === "vendor" || isThread) && comment.user ? /* @__PURE__ */ jsx8(
1889
+ UserSummary,
1874
1890
  {
1875
- vendor: comment.vendor,
1876
- onClick: onViewProduct || (() => {
1877
- })
1891
+ name: comment.user.name,
1892
+ email: "",
1893
+ compact: true,
1894
+ avatarSize: 48,
1895
+ subtitle: formatActivityTime(comment.createdAt),
1896
+ avatarUrl: comment.user.profilePicture ?? null,
1897
+ mspPreview: comment.user.msp ? {
1898
+ name: comment.user.msp.name ?? null,
1899
+ logoUrl: comment.user.msp.icon_url ?? null,
1900
+ seatCount: null,
1901
+ technicianCount: null,
1902
+ annualRevenue: null
1903
+ } : null,
1904
+ showEditButton: false,
1905
+ authProviders: []
1878
1906
  }
1879
- ),
1880
- /* @__PURE__ */ jsx8("span", { className: "text-h6 text-ods-text-secondary whitespace-nowrap flex-shrink-0", children: formatActivityTime(comment.createdAt) })
1881
- ] }) : context === "vendor" && comment.user ? /* @__PURE__ */ jsx8(
1882
- UserSummary,
1883
- {
1884
- name: comment.user.name,
1885
- email: "",
1886
- compact: true,
1887
- avatarSize: 48,
1888
- subtitle: formatActivityTime(comment.createdAt),
1889
- avatarUrl: comment.user.profilePicture ?? null,
1890
- mspPreview: comment.user.msp ? {
1891
- name: comment.user.msp.name ?? null,
1892
- logoUrl: comment.user.msp.icon_url ?? null,
1893
- seatCount: null,
1894
- technicianCount: null,
1895
- annualRevenue: null
1896
- } : null,
1897
- showEditButton: false,
1898
- authProviders: []
1899
- }
1900
- ) : null }),
1901
- /* @__PURE__ */ jsx8("div", { className: "flex gap-2 justify-start min-[420px]:justify-end", children: showDeleteButton && onDeleteComment && /* @__PURE__ */ jsx8(
1902
- Button,
1903
- {
1904
- onClick: () => onDeleteComment(comment.id),
1905
- variant: "outline",
1906
- size: "icon",
1907
- className: "text-ods-text-primary",
1908
- children: /* @__PURE__ */ jsxs6("svg", { width: "22", height: "24", viewBox: "0 0 22 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "text-ods-text-primary", children: [
1909
- /* @__PURE__ */ jsx8("path", { d: "M18.6025 4.37939C19.221 4.43597 19.6768 4.98399 19.6206 5.60254L18.5176 17.7358C18.4492 18.4886 18.3924 19.1183 18.3052 19.6299C18.2155 20.1552 18.0809 20.6447 17.8101 21.1021C17.4444 21.7195 16.9245 22.2292 16.3042 22.583L16.0317 22.7251C15.5519 22.9533 15.0526 23.0438 14.5215 23.0854C14.0042 23.126 13.3727 23.125 12.6172 23.125H9.38281C8.62726 23.125 7.9958 23.126 7.47852 23.0854C7.01357 23.049 6.57289 22.975 6.14844 22.8042L5.96826 22.7251C5.32037 22.4169 4.76543 21.9454 4.35693 21.3599L4.18994 21.1021C3.91912 20.6447 3.78445 20.1552 3.69482 19.6299C3.65123 19.3743 3.61556 19.0894 3.58203 18.7744L3.48242 17.7358L2.37939 5.60254L2.375 5.48682C2.38099 4.91684 2.81768 4.43244 3.39746 4.37939C3.97776 4.32664 4.496 4.72462 4.60449 5.28467L4.62061 5.39746L5.72363 17.5322C5.79528 18.3203 5.84358 18.8475 5.9126 19.252C5.97923 19.6424 6.05232 19.8298 6.12646 19.9551L6.28467 20.1836C6.45963 20.3987 6.68118 20.5732 6.93359 20.6934L7.04639 20.7388C7.17478 20.7822 7.35781 20.8195 7.6543 20.8428C8.06325 20.8749 8.59186 20.875 9.38281 20.875H12.6172C13.4081 20.875 13.9367 20.8749 14.3457 20.8428C14.7409 20.8117 14.9349 20.7559 15.0664 20.6934L15.3066 20.5557C15.5369 20.4008 15.7309 20.1958 15.8735 19.9551C15.9477 19.8298 16.0208 19.6424 16.0874 19.252C16.1564 18.8475 16.2047 18.3203 16.2764 17.5322L17.3794 5.39746C17.436 4.77903 17.984 4.32316 18.6025 4.37939Z", fill: "currentColor" }),
1910
- /* @__PURE__ */ jsx8("path", { d: "M7.37451 15.9995V11C7.37451 10.3788 7.87842 9.87526 8.49951 9.875C9.12083 9.875 9.62451 10.3787 9.62451 11V15.9995C9.62451 16.6208 9.12083 17.1245 8.49951 17.1245C7.87842 17.1242 7.37451 16.6207 7.37451 15.9995ZM12.3755 15.9995V11C12.3755 10.3787 12.8792 9.875 13.5005 9.875C14.1216 9.87526 14.6255 10.3788 14.6255 11V15.9995C14.6255 16.6207 14.1216 17.1242 13.5005 17.1245C12.8792 17.1245 12.3755 16.6208 12.3755 15.9995ZM12.585 0.875C13.0174 0.879157 13.425 0.903301 13.8096 1.02881L14.1157 1.14746C14.4155 1.28159 14.6931 1.46221 14.9375 1.68359L15.0811 1.82568C15.4034 2.16872 15.6379 2.59872 15.8984 3.05469L16.6528 4.37451H20L20.1157 4.38037C20.6825 4.43826 21.1248 4.91747 21.125 5.49951C21.125 6.08174 20.6827 6.5607 20.1157 6.61865L20 6.62451H2C1.37868 6.62451 0.875 6.12083 0.875 5.49951C0.875264 4.87842 1.37884 4.37451 2 4.37451H5.34717L6.32129 2.6709C6.53952 2.29735 6.76267 1.95525 7.0625 1.68359L7.31738 1.47705C7.58262 1.28327 7.87687 1.1312 8.19043 1.02881L8.38525 0.974609C8.71199 0.896341 9.05467 0.878464 9.41504 0.875H12.585ZM9.85742 3.125C9.29191 3.125 9.08123 3.13201 8.97266 3.14844L8.88916 3.16748C8.83075 3.18655 8.77503 3.21301 8.72217 3.24365L8.57275 3.35205C8.53704 3.38448 8.50137 3.42629 8.42773 3.54102L8.05566 4.1709L7.93848 4.37451H14.0615L13.9443 4.1709C13.6645 3.68114 13.554 3.50141 13.4858 3.41504L13.4272 3.35205C13.3815 3.31062 13.3309 3.27443 13.2778 3.24365L13.1108 3.16748C13.019 3.13753 12.8946 3.125 12.1426 3.125H9.85742Z", fill: "currentColor" })
1911
- ] })
1912
- }
1913
- ) })
1907
+ ) : null }),
1908
+ /* @__PURE__ */ jsx8("div", { className: "flex gap-2 justify-start min-[420px]:justify-end", children: showDeleteButton && onDeleteComment && /* @__PURE__ */ jsx8(
1909
+ Button,
1910
+ {
1911
+ onClick: () => onDeleteComment(comment.id),
1912
+ variant: "outline",
1913
+ size: "icon",
1914
+ className: "text-ods-text-primary",
1915
+ children: /* @__PURE__ */ jsxs6("svg", { width: "22", height: "24", viewBox: "0 0 22 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "text-ods-text-primary", children: [
1916
+ /* @__PURE__ */ jsx8("path", { d: "M18.6025 4.37939C19.221 4.43597 19.6768 4.98399 19.6206 5.60254L18.5176 17.7358C18.4492 18.4886 18.3924 19.1183 18.3052 19.6299C18.2155 20.1552 18.0809 20.6447 17.8101 21.1021C17.4444 21.7195 16.9245 22.2292 16.3042 22.583L16.0317 22.7251C15.5519 22.9533 15.0526 23.0438 14.5215 23.0854C14.0042 23.126 13.3727 23.125 12.6172 23.125H9.38281C8.62726 23.125 7.9958 23.126 7.47852 23.0854C7.01357 23.049 6.57289 22.975 6.14844 22.8042L5.96826 22.7251C5.32037 22.4169 4.76543 21.9454 4.35693 21.3599L4.18994 21.1021C3.91912 20.6447 3.78445 20.1552 3.69482 19.6299C3.65123 19.3743 3.61556 19.0894 3.58203 18.7744L3.48242 17.7358L2.37939 5.60254L2.375 5.48682C2.38099 4.91684 2.81768 4.43244 3.39746 4.37939C3.97776 4.32664 4.496 4.72462 4.60449 5.28467L4.62061 5.39746L5.72363 17.5322C5.79528 18.3203 5.84358 18.8475 5.9126 19.252C5.97923 19.6424 6.05232 19.8298 6.12646 19.9551L6.28467 20.1836C6.45963 20.3987 6.68118 20.5732 6.93359 20.6934L7.04639 20.7388C7.17478 20.7822 7.35781 20.8195 7.6543 20.8428C8.06325 20.8749 8.59186 20.875 9.38281 20.875H12.6172C13.4081 20.875 13.9367 20.8749 14.3457 20.8428C14.7409 20.8117 14.9349 20.7559 15.0664 20.6934L15.3066 20.5557C15.5369 20.4008 15.7309 20.1958 15.8735 19.9551C15.9477 19.8298 16.0208 19.6424 16.0874 19.252C16.1564 18.8475 16.2047 18.3203 16.2764 17.5322L17.3794 5.39746C17.436 4.77903 17.984 4.32316 18.6025 4.37939Z", fill: "currentColor" }),
1917
+ /* @__PURE__ */ jsx8("path", { d: "M7.37451 15.9995V11C7.37451 10.3788 7.87842 9.87526 8.49951 9.875C9.12083 9.875 9.62451 10.3787 9.62451 11V15.9995C9.62451 16.6208 9.12083 17.1245 8.49951 17.1245C7.87842 17.1242 7.37451 16.6207 7.37451 15.9995ZM12.3755 15.9995V11C12.3755 10.3787 12.8792 9.875 13.5005 9.875C14.1216 9.87526 14.6255 10.3788 14.6255 11V15.9995C14.6255 16.6207 14.1216 17.1242 13.5005 17.1245C12.8792 17.1245 12.3755 16.6208 12.3755 15.9995ZM12.585 0.875C13.0174 0.879157 13.425 0.903301 13.8096 1.02881L14.1157 1.14746C14.4155 1.28159 14.6931 1.46221 14.9375 1.68359L15.0811 1.82568C15.4034 2.16872 15.6379 2.59872 15.8984 3.05469L16.6528 4.37451H20L20.1157 4.38037C20.6825 4.43826 21.1248 4.91747 21.125 5.49951C21.125 6.08174 20.6827 6.5607 20.1157 6.61865L20 6.62451H2C1.37868 6.62451 0.875 6.12083 0.875 5.49951C0.875264 4.87842 1.37884 4.37451 2 4.37451H5.34717L6.32129 2.6709C6.53952 2.29735 6.76267 1.95525 7.0625 1.68359L7.31738 1.47705C7.58262 1.28327 7.87687 1.1312 8.19043 1.02881L8.38525 0.974609C8.71199 0.896341 9.05467 0.878464 9.41504 0.875H12.585ZM9.85742 3.125C9.29191 3.125 9.08123 3.13201 8.97266 3.14844L8.88916 3.16748C8.83075 3.18655 8.77503 3.21301 8.72217 3.24365L8.57275 3.35205C8.53704 3.38448 8.50137 3.42629 8.42773 3.54102L8.05566 4.1709L7.93848 4.37451H14.0615L13.9443 4.1709C13.6645 3.68114 13.554 3.50141 13.4858 3.41504L13.4272 3.35205C13.3815 3.31062 13.3309 3.27443 13.2778 3.24365L13.1108 3.16748C13.019 3.13753 12.8946 3.125 12.1426 3.125H9.85742Z", fill: "currentColor" })
1918
+ ] })
1919
+ }
1920
+ ) })
1921
+ ] }),
1922
+ /* @__PURE__ */ jsxs6("div", { className: "space-y-2 w-full max-w-full overflow-hidden", style: { maxWidth: "100%", wordBreak: "break-word" }, children: [
1923
+ comment.title && /* @__PURE__ */ jsx8("div", { className: compact ? "h-[20px] flex items-center" : "h-[24px] flex items-center", children: /* @__PURE__ */ jsx8("h4", { className: "text-h3 tracking-[-0.02em] text-ods-text-primary group-hover:text-ods-accent transition-colors line-clamp-1", style: {
1924
+ wordBreak: "break-word",
1925
+ overflowWrap: "break-word",
1926
+ maxWidth: "100%",
1927
+ textOverflow: "ellipsis",
1928
+ overflow: "hidden",
1929
+ display: "-webkit-box",
1930
+ WebkitBoxOrient: "vertical",
1931
+ WebkitLineClamp: 1
1932
+ }, children: comment.title }) }),
1933
+ isThread ? (
1934
+ // Thread bodies are read in full — no fixed height, no clamp.
1935
+ /* @__PURE__ */ jsx8("p", { className: "text-h4 text-ods-text-primary whitespace-pre-wrap", style: { wordBreak: "break-word", overflowWrap: "break-word", maxWidth: "100%" }, children: comment.content })
1936
+ ) : /* @__PURE__ */ jsx8("div", { className: compact ? "h-[60px] flex items-center" : "h-[72px] flex items-center", children: /* @__PURE__ */ jsx8("p", { className: "text-h4 text-ods-text-primary line-clamp-3", style: {
1937
+ wordBreak: "break-word",
1938
+ overflowWrap: "break-word",
1939
+ maxWidth: "100%",
1940
+ textOverflow: "ellipsis",
1941
+ overflow: "hidden",
1942
+ display: "-webkit-box",
1943
+ WebkitBoxOrient: "vertical",
1944
+ WebkitLineClamp: 3
1945
+ }, children: comment.content }) }),
1946
+ footer ? /* @__PURE__ */ jsx8("div", { className: "pt-2 flex flex-wrap items-center gap-2", children: footer }) : null
1947
+ ] })
1914
1948
  ] }),
1915
- /* @__PURE__ */ jsxs6("div", { className: "space-y-2 w-full max-w-full overflow-hidden", style: { maxWidth: "100%", wordBreak: "break-word" }, children: [
1916
- comment.title && /* @__PURE__ */ jsx8("div", { className: compact ? "h-[20px] flex items-center" : "h-[24px] flex items-center", children: /* @__PURE__ */ jsx8("h4", { className: "text-h3 tracking-[-0.02em] text-ods-text-primary group-hover:text-ods-accent transition-colors line-clamp-1", style: {
1917
- wordBreak: "break-word",
1918
- overflowWrap: "break-word",
1919
- maxWidth: "100%",
1920
- textOverflow: "ellipsis",
1921
- overflow: "hidden",
1922
- display: "-webkit-box",
1923
- WebkitBoxOrient: "vertical",
1924
- WebkitLineClamp: 1
1925
- }, children: comment.title }) }),
1926
- /* @__PURE__ */ jsx8("div", { className: compact ? "h-[60px] flex items-center" : "h-[72px] flex items-center", children: /* @__PURE__ */ jsx8("p", { className: "text-h4 text-ods-text-primary line-clamp-3", style: {
1927
- wordBreak: "break-word",
1928
- overflowWrap: "break-word",
1929
- maxWidth: "100%",
1930
- textOverflow: "ellipsis",
1931
- overflow: "hidden",
1932
- display: "-webkit-box",
1933
- WebkitBoxOrient: "vertical",
1934
- WebkitLineClamp: 3
1935
- }, children: comment.content }) })
1936
- ] })
1949
+ children
1937
1950
  ] });
1938
1951
  }
1939
1952