@flamingo-stack/openframe-frontend-core 0.0.577 → 0.0.578-1950.5326.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 (159) hide show
  1. package/dist/{chunk-JQI726T3.js → chunk-3LMYQGAJ.js} +3 -2
  2. package/dist/chunk-3LMYQGAJ.js.map +1 -0
  3. package/dist/{chunk-RUJKOU5F.js → chunk-5IAGT5LB.js} +2 -2
  4. package/dist/{chunk-TU32TSAK.js → chunk-5NG2P2KI.js} +5 -5
  5. package/dist/{chunk-GDWBJFMG.cjs → chunk-ABWA3W3M.cjs} +32 -32
  6. package/dist/{chunk-GDWBJFMG.cjs.map → chunk-ABWA3W3M.cjs.map} +1 -1
  7. package/dist/{chunk-U3SDSA5K.js → chunk-AJ67T7LI.js} +4 -4
  8. package/dist/{chunk-THDGDYJ3.js → chunk-BFJBE4PQ.js} +5 -5
  9. package/dist/{chunk-KE2TCUOH.cjs → chunk-BLPGMX2L.cjs} +190 -190
  10. package/dist/{chunk-KE2TCUOH.cjs.map → chunk-BLPGMX2L.cjs.map} +1 -1
  11. package/dist/{chunk-HSOMYCUG.cjs → chunk-E5QAU63Y.cjs} +11 -11
  12. package/dist/{chunk-HSOMYCUG.cjs.map → chunk-E5QAU63Y.cjs.map} +1 -1
  13. package/dist/{chunk-ZBJ6XSDO.js → chunk-ESXUEMPA.js} +3 -3
  14. package/dist/{chunk-CFTZAZ7R.cjs → chunk-G3AJXLKH.cjs} +28 -28
  15. package/dist/{chunk-CFTZAZ7R.cjs.map → chunk-G3AJXLKH.cjs.map} +1 -1
  16. package/dist/{chunk-XG2WNF4L.cjs → chunk-GOEBT72V.cjs} +19 -19
  17. package/dist/{chunk-XG2WNF4L.cjs.map → chunk-GOEBT72V.cjs.map} +1 -1
  18. package/dist/{chunk-LYOGSVFO.js → chunk-IBSOYTGZ.js} +3 -3
  19. package/dist/{chunk-AQ5MZVYN.js → chunk-IWK2NFVR.js} +3 -3
  20. package/dist/{chunk-2YCUEUIZ.js → chunk-JJH4H4CJ.js} +6 -6
  21. package/dist/{chunk-RSMUAAPW.js → chunk-KLG3MGRP.js} +3 -3
  22. package/dist/{chunk-RNUH5IHZ.js → chunk-KPE277X2.js} +3 -3
  23. package/dist/{chunk-XBBCUC32.cjs → chunk-KQBYQBQN.cjs} +15 -15
  24. package/dist/{chunk-XBBCUC32.cjs.map → chunk-KQBYQBQN.cjs.map} +1 -1
  25. package/dist/{chunk-IQFXDS5O.js → chunk-LEUJNBWU.js} +7 -7
  26. package/dist/{chunk-4D2BR756.js → chunk-LPFA56WY.js} +52 -31
  27. package/dist/chunk-LPFA56WY.js.map +1 -0
  28. package/dist/{chunk-75X6BRID.cjs → chunk-M7FNT5AC.cjs} +453 -432
  29. package/dist/chunk-M7FNT5AC.cjs.map +1 -0
  30. package/dist/{chunk-JCH6HGQD.js → chunk-MCWAZ5XI.js} +2 -2
  31. package/dist/{chunk-ET3Q4FIZ.cjs → chunk-NJDL7F7K.cjs} +10 -10
  32. package/dist/{chunk-ET3Q4FIZ.cjs.map → chunk-NJDL7F7K.cjs.map} +1 -1
  33. package/dist/{chunk-MIY5FYX3.cjs → chunk-NNFQLTJ3.cjs} +4 -3
  34. package/dist/chunk-NNFQLTJ3.cjs.map +1 -0
  35. package/dist/{chunk-XBSW7IF6.cjs → chunk-NPNYQSCG.cjs} +21 -21
  36. package/dist/{chunk-XBSW7IF6.cjs.map → chunk-NPNYQSCG.cjs.map} +1 -1
  37. package/dist/{chunk-NQCGDZJ3.cjs → chunk-OIJWSYKP.cjs} +3 -3
  38. package/dist/{chunk-NQCGDZJ3.cjs.map → chunk-OIJWSYKP.cjs.map} +1 -1
  39. package/dist/{chunk-WOHHZZJK.cjs → chunk-POB6GNIR.cjs} +57 -57
  40. package/dist/{chunk-WOHHZZJK.cjs.map → chunk-POB6GNIR.cjs.map} +1 -1
  41. package/dist/{chunk-NEKT67O5.js → chunk-QHGARH6P.js} +6 -6
  42. package/dist/{chunk-5DPCIIJ7.cjs → chunk-R7OJZCE6.cjs} +80 -80
  43. package/dist/{chunk-5DPCIIJ7.cjs.map → chunk-R7OJZCE6.cjs.map} +1 -1
  44. package/dist/{chunk-6FJABKPX.cjs → chunk-SETRICAM.cjs} +6 -6
  45. package/dist/{chunk-6FJABKPX.cjs.map → chunk-SETRICAM.cjs.map} +1 -1
  46. package/dist/{chunk-4KR7JWKB.js → chunk-SHJXC7A4.js} +4 -4
  47. package/dist/{chunk-NP3XN6ZX.js → chunk-SNZZ6Q6G.js} +4 -4
  48. package/dist/chunk-SNZZ6Q6G.js.map +1 -0
  49. package/dist/{chunk-APFGR2KK.cjs → chunk-UQPA2XT7.cjs} +28 -28
  50. package/dist/{chunk-APFGR2KK.cjs.map → chunk-UQPA2XT7.cjs.map} +1 -1
  51. package/dist/{chunk-GPWU3PPR.cjs → chunk-VEHZNQ77.cjs} +30 -30
  52. package/dist/{chunk-GPWU3PPR.cjs.map → chunk-VEHZNQ77.cjs.map} +1 -1
  53. package/dist/{chunk-RCLJSENK.cjs → chunk-WUZQYZXI.cjs} +6 -6
  54. package/dist/{chunk-RCLJSENK.cjs.map → chunk-WUZQYZXI.cjs.map} +1 -1
  55. package/dist/{chunk-CIUYHBAY.cjs → chunk-YOYHJQX3.cjs} +5 -5
  56. package/dist/{chunk-CIUYHBAY.cjs.map → chunk-YOYHJQX3.cjs.map} +1 -1
  57. package/dist/{chunk-FCVAVOXS.js → chunk-ZBVMPVJF.js} +3 -3
  58. package/dist/components/case-studies/index.cjs +10 -10
  59. package/dist/components/case-studies/index.js +4 -4
  60. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  61. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  62. package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
  63. package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
  64. package/dist/components/chat/index.cjs +3 -3
  65. package/dist/components/chat/index.js +2 -2
  66. package/dist/components/chat/nav-link-anchor-via-runtime.d.ts.map +1 -1
  67. package/dist/components/chat/types/unified-chat-state.types.d.ts +9 -2
  68. package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
  69. package/dist/components/chat/utils/chat-nav-resolution.d.ts +9 -3
  70. package/dist/components/chat/utils/chat-nav-resolution.d.ts.map +1 -1
  71. package/dist/components/chat/utils/execute-navigation.d.ts +11 -0
  72. package/dist/components/chat/utils/execute-navigation.d.ts.map +1 -1
  73. package/dist/components/chat/utils/index.d.ts +1 -1
  74. package/dist/components/chat/utils/index.d.ts.map +1 -1
  75. package/dist/components/chat/utils/nav-anchor-props.d.ts +4 -0
  76. package/dist/components/chat/utils/nav-anchor-props.d.ts.map +1 -1
  77. package/dist/components/chat/utils/resolve-fetched-card-href.d.ts +42 -3
  78. package/dist/components/chat/utils/resolve-fetched-card-href.d.ts.map +1 -1
  79. package/dist/components/contact/index.cjs +5 -5
  80. package/dist/components/contact/index.js +4 -4
  81. package/dist/components/docs/index.cjs +8 -8
  82. package/dist/components/docs/index.js +7 -7
  83. package/dist/components/embeds/index.cjs +5 -5
  84. package/dist/components/embeds/index.js +4 -4
  85. package/dist/components/faq/index.cjs +5 -5
  86. package/dist/components/faq/index.js +4 -4
  87. package/dist/components/features/index.cjs +4 -4
  88. package/dist/components/features/index.js +3 -3
  89. package/dist/components/help-center-pages/index.cjs +24 -24
  90. package/dist/components/help-center-pages/index.js +15 -15
  91. package/dist/components/index.cjs +136 -136
  92. package/dist/components/index.js +15 -15
  93. package/dist/components/meeting-scheduler/index.cjs +31 -31
  94. package/dist/components/meeting-scheduler/index.js +3 -3
  95. package/dist/components/navigation/index.cjs +7 -7
  96. package/dist/components/navigation/index.js +6 -6
  97. package/dist/components/onboarding-guides/index.cjs +7 -7
  98. package/dist/components/onboarding-guides/index.js +6 -6
  99. package/dist/components/related-content/index.cjs +3 -3
  100. package/dist/components/related-content/index.js +2 -2
  101. package/dist/components/tickets/index.cjs +8 -8
  102. package/dist/components/tickets/index.js +7 -7
  103. package/dist/components/ui/index.cjs +4 -4
  104. package/dist/components/ui/index.js +3 -3
  105. package/dist/index.cjs +8 -8
  106. package/dist/index.js +7 -7
  107. package/dist/utils/content-href.d.ts +26 -5
  108. package/dist/utils/content-href.d.ts.map +1 -1
  109. package/dist/utils/index.cjs +1 -1
  110. package/dist/utils/index.cjs.map +1 -1
  111. package/dist/utils/index.d.ts +1 -1
  112. package/dist/utils/index.d.ts.map +1 -1
  113. package/dist/utils/index.js +1 -1
  114. package/dist/utils/index.js.map +1 -1
  115. package/package.json +1 -1
  116. package/src/components/chat/embeddable-chat.tsx +9 -2
  117. package/src/components/chat/entity-cards/.dispatch.md +1 -1
  118. package/src/components/chat/entity-cards/dispatch.tsx +43 -23
  119. package/src/components/chat/hooks/.use-unified-chat.md +5 -1
  120. package/src/components/chat/hooks/use-nats-chat-adapter.ts +4 -7
  121. package/src/components/chat/hooks/use-unified-chat.ts +8 -2
  122. package/src/components/chat/nav-link-anchor-via-runtime.tsx +8 -10
  123. package/src/components/chat/types/.unified-chat-state.types.md +2 -1
  124. package/src/components/chat/types/unified-chat-state.types.ts +9 -2
  125. package/src/components/chat/utils/__tests__/execute-navigation.test.ts +190 -0
  126. package/src/components/chat/utils/__tests__/resolve-fetched-card-href.test.ts +75 -2
  127. package/src/components/chat/utils/chat-nav-resolution.ts +9 -3
  128. package/src/components/chat/utils/execute-navigation.ts +32 -2
  129. package/src/components/chat/utils/index.ts +1 -1
  130. package/src/components/chat/utils/nav-anchor-props.ts +4 -2
  131. package/src/components/chat/utils/resolve-fetched-card-href.ts +50 -2
  132. package/src/utils/.content-href.md +1 -1
  133. package/src/utils/__tests__/content-href.test.ts +3 -0
  134. package/src/utils/content-href.ts +30 -3
  135. package/src/utils/index.ts +1 -0
  136. package/dist/chunk-4D2BR756.js.map +0 -1
  137. package/dist/chunk-75X6BRID.cjs.map +0 -1
  138. package/dist/chunk-JQI726T3.js.map +0 -1
  139. package/dist/chunk-MIY5FYX3.cjs.map +0 -1
  140. package/dist/chunk-NP3XN6ZX.js.map +0 -1
  141. package/dist/components/chat/utils/nav-click-handler.d.ts +0 -24
  142. package/dist/components/chat/utils/nav-click-handler.d.ts.map +0 -1
  143. package/src/components/chat/utils/.nav-click-handler.md +0 -43
  144. package/src/components/chat/utils/nav-click-handler.ts +0 -34
  145. /package/dist/{chunk-RUJKOU5F.js.map → chunk-5IAGT5LB.js.map} +0 -0
  146. /package/dist/{chunk-TU32TSAK.js.map → chunk-5NG2P2KI.js.map} +0 -0
  147. /package/dist/{chunk-U3SDSA5K.js.map → chunk-AJ67T7LI.js.map} +0 -0
  148. /package/dist/{chunk-THDGDYJ3.js.map → chunk-BFJBE4PQ.js.map} +0 -0
  149. /package/dist/{chunk-ZBJ6XSDO.js.map → chunk-ESXUEMPA.js.map} +0 -0
  150. /package/dist/{chunk-LYOGSVFO.js.map → chunk-IBSOYTGZ.js.map} +0 -0
  151. /package/dist/{chunk-AQ5MZVYN.js.map → chunk-IWK2NFVR.js.map} +0 -0
  152. /package/dist/{chunk-2YCUEUIZ.js.map → chunk-JJH4H4CJ.js.map} +0 -0
  153. /package/dist/{chunk-RSMUAAPW.js.map → chunk-KLG3MGRP.js.map} +0 -0
  154. /package/dist/{chunk-RNUH5IHZ.js.map → chunk-KPE277X2.js.map} +0 -0
  155. /package/dist/{chunk-IQFXDS5O.js.map → chunk-LEUJNBWU.js.map} +0 -0
  156. /package/dist/{chunk-JCH6HGQD.js.map → chunk-MCWAZ5XI.js.map} +0 -0
  157. /package/dist/{chunk-NEKT67O5.js.map → chunk-QHGARH6P.js.map} +0 -0
  158. /package/dist/{chunk-4KR7JWKB.js.map → chunk-SHJXC7A4.js.map} +0 -0
  159. /package/dist/{chunk-FCVAVOXS.js.map → chunk-ZBVMPVJF.js.map} +0 -0
@@ -4,13 +4,13 @@ import {
4
4
  } from "./chunk-YLNZPFDW.js";
5
5
  import {
6
6
  DeliveryRow
7
- } from "./chunk-RNUH5IHZ.js";
7
+ } from "./chunk-KPE277X2.js";
8
8
  import {
9
9
  EmptyState
10
10
  } from "./chunk-Z2FZ5HP2.js";
11
11
  import {
12
12
  DetailPageSkeleton
13
- } from "./chunk-AQ5MZVYN.js";
13
+ } from "./chunk-IWK2NFVR.js";
14
14
  import {
15
15
  useSelfFetch
16
16
  } from "./chunk-UC5RXT3O.js";
@@ -29,7 +29,7 @@ import {
29
29
  RichMarkdownRenderer,
30
30
  devSectionAnchorId,
31
31
  resolveContentHref
32
- } from "./chunk-NP3XN6ZX.js";
32
+ } from "./chunk-SNZZ6Q6G.js";
33
33
  import {
34
34
  useHumanitySignals,
35
35
  useScrollToHash
@@ -43,7 +43,7 @@ import {
43
43
  isModifierClick,
44
44
  useCaptions,
45
45
  useIsHydrated
46
- } from "./chunk-4D2BR756.js";
46
+ } from "./chunk-LPFA56WY.js";
47
47
  import {
48
48
  STICKY_HEADER_OFFSET_PX
49
49
  } from "./chunk-W6JA6SFD.js";
@@ -69,7 +69,7 @@ import {
69
69
  formatReleaseDate,
70
70
  toStripProfile,
71
71
  useEntityCardLink
72
- } from "./chunk-JQI726T3.js";
72
+ } from "./chunk-3LMYQGAJ.js";
73
73
  import {
74
74
  next_image_default
75
75
  } from "./chunk-MDKCTSDS.js";
@@ -1375,4 +1375,4 @@ export {
1375
1375
  useLegalDocs,
1376
1376
  LegalDocumentPage
1377
1377
  };
1378
- //# sourceMappingURL=chunk-2YCUEUIZ.js.map
1378
+ //# sourceMappingURL=chunk-JJH4H4CJ.js.map
@@ -7,7 +7,7 @@ import {
7
7
  SelectTrigger,
8
8
  SelectValue,
9
9
  Textarea
10
- } from "./chunk-NP3XN6ZX.js";
10
+ } from "./chunk-SNZZ6Q6G.js";
11
11
  import {
12
12
  useContactSubmission,
13
13
  useHumanitySignals
@@ -20,7 +20,7 @@ import {
20
20
  ChatAttachmentChipStrip,
21
21
  SECTION_HEADING_CLASS,
22
22
  useChatAttachments
23
- } from "./chunk-4D2BR756.js";
23
+ } from "./chunk-LPFA56WY.js";
24
24
  import {
25
25
  Label
26
26
  } from "./chunk-U5M5DXYT.js";
@@ -369,4 +369,4 @@ function ContactForm({
369
369
  export {
370
370
  ContactForm
371
371
  };
372
- //# sourceMappingURL=chunk-RSMUAAPW.js.map
372
+ //# sourceMappingURL=chunk-KLG3MGRP.js.map
@@ -7,7 +7,7 @@ import {
7
7
  StatusFilterComponent,
8
8
  TASK_TYPE_LABELS,
9
9
  TASK_TYPE_TEXT_COLORS
10
- } from "./chunk-NP3XN6ZX.js";
10
+ } from "./chunk-SNZZ6Q6G.js";
11
11
  import {
12
12
  usePathname,
13
13
  useRouter,
@@ -17,7 +17,7 @@ import {
17
17
  AvatarStack,
18
18
  StatusBadge,
19
19
  getStatusColorScheme
20
- } from "./chunk-JQI726T3.js";
20
+ } from "./chunk-3LMYQGAJ.js";
21
21
  import {
22
22
  next_link_default
23
23
  } from "./chunk-BTROSBHF.js";
@@ -267,4 +267,4 @@ export {
267
267
  DevCardRowSkeletonList,
268
268
  DeliveryRow
269
269
  };
270
- //# sourceMappingURL=chunk-RNUH5IHZ.js.map
270
+ //# sourceMappingURL=chunk-KPE277X2.js.map
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkKE2TCUOHcjs = require('./chunk-KE2TCUOH.cjs');
10
+ var _chunkBLPGMX2Lcjs = require('./chunk-BLPGMX2L.cjs');
11
11
 
12
12
 
13
13
 
@@ -17,7 +17,7 @@ var _chunkSADRZ4YIcjs = require('./chunk-SADRZ4YI.cjs');
17
17
 
18
18
 
19
19
 
20
- var _chunkMIY5FYX3cjs = require('./chunk-MIY5FYX3.cjs');
20
+ var _chunkNNFQLTJ3cjs = require('./chunk-NNFQLTJ3.cjs');
21
21
 
22
22
 
23
23
  var _chunkFCUTPPX5cjs = require('./chunk-FCUTPPX5.cjs');
@@ -29,7 +29,7 @@ var _chunkPRPZBXWZcjs = require('./chunk-PRPZBXWZ.cjs');
29
29
  var _react = require('react');
30
30
  var _jsxruntime = require('react/jsx-runtime');
31
31
  function DevSectionView({ sectionKey, hero, preControls, children, showHeading = true }) {
32
- const section = _chunkKE2TCUOHcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
32
+ const section = _chunkBLPGMX2Lcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
33
33
  const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
34
34
  const pathname = _chunkSADRZ4YIcjs.usePathname.call(void 0, );
35
35
  const searchParams = _chunkSADRZ4YIcjs.useSearchParams.call(void 0, );
@@ -80,7 +80,7 @@ function DevSectionView({ sectionKey, hero, preControls, children, showHeading =
80
80
  preControls,
81
81
  (search || filter) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
82
82
  search && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
83
- _chunkKE2TCUOHcjs.SearchInput,
83
+ _chunkBLPGMX2Lcjs.SearchInput,
84
84
  {
85
85
  showDropdown: false,
86
86
  placeholder: search.placeholder,
@@ -90,7 +90,7 @@ function DevSectionView({ sectionKey, hero, preControls, children, showHeading =
90
90
  }
91
91
  ),
92
92
  filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
93
- _chunkKE2TCUOHcjs.StatusFilterComponent,
93
+ _chunkBLPGMX2Lcjs.StatusFilterComponent,
94
94
  {
95
95
  selectedStatus: currentFilterValue,
96
96
  onStatusChange: handleFilterChange,
@@ -114,7 +114,7 @@ function DevSectionPage({
114
114
  shell = true
115
115
  }) {
116
116
  const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
117
- const section = _chunkKE2TCUOHcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
117
+ const section = _chunkBLPGMX2Lcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
118
118
  const backCfg = backButton === false ? void 0 : {
119
119
  label: _nullishCoalesce((backButton ? backButton.label : void 0), () => ( "Back to home")),
120
120
  onClick: () => router.push(_nullishCoalesce((backButton ? backButton.href : void 0), () => ( "/")))
@@ -127,7 +127,7 @@ function DevSectionPage({
127
127
  // duplicate title. (The hero icon is intentionally dropped: TitleBlock is
128
128
  // frozen and renders title-only.)
129
129
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
130
- _chunkKE2TCUOHcjs.PageLayout,
130
+ _chunkBLPGMX2Lcjs.PageLayout,
131
131
  {
132
132
  title: _nullishCoalesce(title, () => ( section.hero.title)),
133
133
  subtitle: _nullishCoalesce(subtitle, () => ( section.hero.description)),
@@ -138,7 +138,7 @@ function DevSectionPage({
138
138
  }
139
139
  )
140
140
  );
141
- return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKE2TCUOHcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
141
+ return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBLPGMX2Lcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
142
142
  }
143
143
 
144
144
  // src/components/shared/dev-section/dev-card-row.tsx
@@ -196,9 +196,9 @@ function getRelativeTime(timestamp) {
196
196
  }
197
197
  function DeliveryRow({ item, href, target, caption, id, className }) {
198
198
  const taskType = item.taskType;
199
- const typeBadgeLabel = _chunkKE2TCUOHcjs.TASK_TYPE_LABELS[taskType] || "TASK";
200
- const typeBadgeTextColor = _chunkKE2TCUOHcjs.TASK_TYPE_TEXT_COLORS[taskType] || "";
201
- const statusBadgeScheme = _chunkMIY5FYX3cjs.getStatusColorScheme.call(void 0, item.status);
199
+ const typeBadgeLabel = _chunkBLPGMX2Lcjs.TASK_TYPE_LABELS[taskType] || "TASK";
200
+ const typeBadgeTextColor = _chunkBLPGMX2Lcjs.TASK_TYPE_TEXT_COLORS[taskType] || "";
201
+ const statusBadgeScheme = _chunkNNFQLTJ3cjs.getStatusColorScheme.call(void 0, item.status);
202
202
  const relativeTime = getRelativeTime(item.dateUpdated);
203
203
  const subtitle = `ACTIVE ${relativeTime}${item.listNames.length > 0 ? `, ${item.listNames.join(", ")}` : ""}, ${item.id}`;
204
204
  const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col items-start justify-between gap-[12px] md:flex-row md:gap-[16px]", children: [
@@ -210,7 +210,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
210
210
  ] }),
211
211
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-shrink-0 flex-row items-center gap-2 self-stretch md:w-auto md:flex-col md:items-end md:self-start", children: [
212
212
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
213
- _chunkMIY5FYX3cjs.StatusBadge,
213
+ _chunkNNFQLTJ3cjs.StatusBadge,
214
214
  {
215
215
  text: item.status.toUpperCase(),
216
216
  colorScheme: statusBadgeScheme,
@@ -219,7 +219,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
219
219
  }
220
220
  ),
221
221
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
222
- _chunkMIY5FYX3cjs.StatusBadge,
222
+ _chunkNNFQLTJ3cjs.StatusBadge,
223
223
  {
224
224
  text: typeBadgeLabel,
225
225
  variant: "card",
@@ -227,7 +227,7 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
227
227
  }
228
228
  ),
229
229
  item.assignees && item.assignees.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
230
- _chunkMIY5FYX3cjs.AvatarStack,
230
+ _chunkNNFQLTJ3cjs.AvatarStack,
231
231
  {
232
232
  size: "xs",
233
233
  className: "ml-auto md:ml-0",
@@ -267,4 +267,4 @@ function DeliveryRow({ item, href, target, caption, id, className }) {
267
267
 
268
268
 
269
269
  exports.DevSectionView = DevSectionView; exports.DevSectionPage = DevSectionPage; exports.DevCardRowContent = DevCardRowContent; exports.DevCardRowSkeleton = DevCardRowSkeleton; exports.DevCardRowSkeletonList = DevCardRowSkeletonList; exports.DeliveryRow = DeliveryRow;
270
- //# sourceMappingURL=chunk-XBBCUC32.cjs.map
270
+ //# sourceMappingURL=chunk-KQBYQBQN.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-XBBCUC32.cjs","../src/components/shared/dev-section/dev-section-view.tsx","../src/components/shared/dev-section/dev-section-page.tsx","../src/components/shared/dev-section/dev-card-row.tsx","../src/components/shared/delivery/delivery-row.tsx"],"names":["jsx","jsxs"],"mappings":"AAAA,yLAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACVA,8BAAyB;AAiHb,+CAAA;AApEL,SAAS,cAAA,CAAe,EAAE,UAAA,EAAY,IAAA,EAAM,WAAA,EAAa,QAAA,EAAU,YAAA,EAAc,KAAK,CAAA,EAAwB;AACnH,EAAA,MAAM,QAAA,EAAU,wCAAA,CAAuB,UAAU,CAAA;AACjD,EAAA,MAAM,OAAA,EAAS,yCAAA,CAAU;AACzB,EAAA,MAAM,SAAA,EAAW,2CAAA,CAAY;AAC7B,EAAA,MAAM,aAAA,EAAe,+CAAA,CAAgB;AAMrC,EAAA,MAAM,OAAA,EAAwC,OAAA,CAAQ,MAAA;AACtD,EAAA,MAAM,OAAA,EAAS,OAAA,CAAQ,MAAA;AAEvB,EAAA,MAAM,cAAA,EAAgB,OAAA,EAAS,YAAA,CAAa,GAAA,CAAI,MAAA,CAAO,QAAQ,EAAA,GAAK,GAAA,EAAK,EAAA;AACzE,EAAA,MAAM,mBAAA,EAAqB,OAAA,EAAS,YAAA,CAAa,GAAA,CAAI,MAAA,CAAO,QAAQ,EAAA,GAAK,MAAA,CAAO,aAAA,EAAe,EAAA;AAS/F,EAAA,MAAM,CAAC,WAAA,EAAa,cAAc,EAAA,EAAI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AACD,EAAA;AACd,EAAA;AACT;AA2B8B;AACN,EAAA;AACC,EAAA;AACjB,EAAA;AACA,EAAA;AACe,EAAA;AACJ,EAAA;AAGf,EAAA;AAEEC,oBAAAA;AACc,MAAA;AACZD,sBAAAA;AAKAA,sBAAAA;AAQAA,sBAAAA;AAKF,IAAA;AAQAC,oBAAAA;AACED,sBAAAA;AAAC,QAAA;AAAA,QAAA;AACY,UAAA;AACE,UAAA;AACL,UAAA;AACE,UAAA;AAAA,QAAA;AACZ,MAAA;AACAA,sBAAAA;AAAC,QAAA;AAAA,QAAA;AACO,UAAA;AACE,UAAA;AACG,UAAA;AAA8C,QAAA;AAC3D,MAAA;AACmB,MAAA;AAChB,QAAA;AAAA,QAAA;AACM,UAAA;AACK,UAAA;AACG,UAAA;AACJ,YAAA;AACC,YAAA;AACK,YAAA;AACb,UAAA;AAAA,QAAA;AAEF,MAAA;AACN,IAAA;AACF,EAAA;AAGgB,EAAA;AAChB,IAAA;AAAA;AAAA;AAAA;AAAA;AAKA,IAAA;AACQ,IAAA;AACR,IAAA;AACF,EAAA;AAEuB,EAAA;AAEnB,IAAA;AAIJ,EAAA;AAEU,EAAA;AAQN,IAAA;AAIJ,EAAA;AAGEA,EAAAA;AAIJ;AJiFyB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-XBBCUC32.cjs","sourcesContent":[null,"'use client';\n\n/**\n * DevSectionView — the canonical chrome for ANY dev-center section\n * (Roadmap / Delivery / Releases). One component, used in BOTH:\n *\n * - tabbed `/roadmap-and-releases` (compact title mode, no `hero`)\n * - full-page `/roadmap`, `/bug-fixes-and-enhancements`, `/releases`\n * (hero mode with icon + description + back link)\n *\n * Owns: title rendering, the inline search input, the filter pill row,\n * and the URL-param wiring that connects both. The list `children`\n * receive a clean URL contract — they read `?<paramKey>=...` via\n * `useSearchParams()` and refetch on change. No duplicated controls.\n */\n\nimport type { ReactNode } from 'react';\nimport { useState } from 'react';\nimport { useRouter, useSearchParams, usePathname } from '../../../embed-shims';\nimport {\n OPENFRAME_DEV_SECTIONS,\n type OpenframeDevSection,\n type OpenframeDevSectionKey,\n} from '../../../utils/dev-sections/openframe-dev-sections';\nimport { StatusFilterComponent } from '../../features';\nimport { SearchInput } from '../../ui';\n\nexport interface DevSectionViewProps {\n /** Which section to render — drives title, search, and filter\n * config via the `OPENFRAME_DEV_SECTIONS` registry. */\n sectionKey: OpenframeDevSectionKey;\n /** When set, renders the rich page-level hero (icon + h1 + description).\n * Omit for the compact tab-context heading. */\n hero?: {\n /** Pre-rendered icon JSX. Server components render the icon themselves\n * and pass the element here — function references can't cross the\n * server→client boundary, but React elements can. */\n icon: ReactNode;\n /** Hero title. Falls back to `OPENFRAME_DEV_SECTIONS[sectionKey].hero.title`\n * when omitted, so embedders can override the (OpenFrame-specific) default\n * copy without forking the registry. */\n title?: string;\n description: string;\n };\n /** Optional slot rendered BETWEEN the hero and the search/filter\n * controls. Use this for an entry-action surface that should sit\n * above the list (e.g. the Help Center's \"Open a new ticket\" form).\n * The slot is wrapped in the same `gap-10` flex column so spacing\n * matches the surrounding chrome — callers should NOT add their\n * own top/bottom margin. Renders `null` (no DOM) when omitted. */\n preControls?: ReactNode;\n /** The page-specific list body. Reads URL params written by this\n * component (search input + filter pills). */\n children: ReactNode;\n /** Render this component's own title heading (hero or compact `h2`). Default\n * `true` — the tab context renders the compact heading itself. Pass `false`\n * when the host already renders the title elsewhere (e.g. `DevSectionPage`\n * routes it through the unified `PageLayout` `TitleBlock`): then only the\n * search + filter controls + list render, with no duplicate heading. */\n showHeading?: boolean;\n}\n\nexport function DevSectionView({ sectionKey, hero, preControls, children, showHeading = true }: DevSectionViewProps) {\n const section = OPENFRAME_DEV_SECTIONS[sectionKey];\n const router = useRouter();\n const pathname = usePathname();\n const searchParams = useSearchParams();\n\n // Widen from the registry's per-section literal types to the interface —\n // optional fields (`clearParamKeys`) exist on the interface but not on\n // every section's inferred literal. Sound: the registry `satisfies`\n // `Record<string, OpenframeDevSection>`.\n const search: OpenframeDevSection['search'] = section.search;\n const filter = section.filter;\n\n const currentSearch = search ? searchParams.get(search.paramKey) || '' : '';\n const currentFilterValue = filter ? searchParams.get(filter.paramKey) || filter.defaultValue : '';\n\n // Controlled search-input state — TYPING commits to the URL only on\n // Enter (not on every keystroke), but CLEARING commits immediately:\n // an emptied input must not keep filtering the list (the URL param —\n // and any linked `clearParamKeys` companion like the tickets\n // `?ticket=` drawer param — previously survived until Enter).\n // Lazy init from URL avoids a brief flash of stale value on first\n // paint after URL-driven re-render (e.g. tab switch).\n const [searchValue, setSearchValue] = useState(() => currentSearch);\n // Re-sync when the URL changes underneath us (tab switch, back/forward,\n // a companion param cleared elsewhere). Adjusted while rendering — React's\n // documented prop-sync pattern — rather than from an effect, which would\n // commit one frame with the input still showing the previous section's\n // query before replacing it.\n const [syncedSearch, setSyncedSearch] = useState(currentSearch);\n if (syncedSearch !== currentSearch) {\n setSyncedSearch(currentSearch);\n setSearchValue(currentSearch);\n }\n\n const handleSearchSubmit = (value: string) => {\n if (!search) return;\n const params = new URLSearchParams(searchParams.toString());\n if (value.trim()) {\n params.set(search.paramKey, value.trim());\n } else {\n params.delete(search.paramKey);\n // Empty commit tears down the search's linked companion params too\n // (deep links set them TOGETHER — see the config field docs).\n for (const key of search.clearParamKeys ?? []) params.delete(key);\n }\n const qs = params.toString();\n router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });\n };\n\n const handleSearchChange = (value: string) => {\n setSearchValue(value);\n if (value === '' && currentSearch !== '') handleSearchSubmit('');\n };\n\n const handleFilterChange = (value: string) => {\n if (!filter) return;\n const params = new URLSearchParams(searchParams.toString());\n if (value === filter.defaultValue) params.delete(filter.paramKey);\n else params.set(filter.paramKey, value);\n router.replace(`${pathname}?${params.toString()}`, { scroll: false });\n };\n\n return (\n <div className=\"flex w-full flex-col gap-10\">\n {showHeading &&\n (hero ? (\n <div className=\"space-y-4\">\n <h1 className=\"flex items-center gap-3 tracking-[-1.12px] text-ods-text-primary text-h1\">\n {hero.icon}\n {hero.title ?? section.hero.title}\n </h1>\n <p className=\"max-w-3xl text-ods-text-secondary text-h4\">{hero.description}</p>\n </div>\n ) : (\n <div className=\"flex w-full items-center justify-between\">\n <h2 className=\"font-['Azeret_Mono'] text-[32px] font-semibold leading-[40px] tracking-[-0.64px] text-ods-text-primary md:text-[40px] md:leading-[48px] md:tracking-[-0.8px] lg:text-[48px] lg:leading-[56px] lg:tracking-[-0.96px]\">\n {section.hero.title}\n <span className=\"text-ods-accent\">:</span>\n </h2>\n </div>\n ))}\n\n {preControls}\n\n {(search || filter) && (\n <div className=\"space-y-4\">\n {search && (\n <SearchInput\n showDropdown={false}\n placeholder={search.placeholder}\n value={searchValue}\n onChange={handleSearchChange}\n onSubmit={handleSearchSubmit}\n />\n )}\n {filter && (\n <StatusFilterComponent\n selectedStatus={currentFilterValue}\n onStatusChange={handleFilterChange}\n statusOptions={[...filter.options]}\n />\n )}\n </div>\n )}\n\n {children}\n </div>\n );\n}\n","'use client';\n\n/**\n * DevSectionPage — full-page wrapper for a dev-center section\n * (`/roadmap`, `/bug-fixes-and-enhancements`, `/releases`).\n *\n * Mounts the lib's canonical `PageLayout` directly (no in-app wrapper)\n * so the back-button affordance stays in lockstep with whatever the\n * design system ships — any future lib change to BackButton / TitleBlock\n * propagates automatically.\n *\n * Composition: `PageShell` → `PageLayout` (back-to-home wired) →\n * `DevSectionView` (icon hero + search + filter pills) → list body.\n *\n * Adding a new section is one entry in `OPENFRAME_DEV_SECTIONS` plus a\n * single-line page file mounting this factory with the new key.\n */\n\nimport type { ReactNode } from 'react';\nimport { useRouter } from '../../../embed-shims/next-navigation';\nimport {\n OPENFRAME_DEV_SECTIONS,\n type OpenframeDevSectionKey,\n} from '../../../utils/dev-sections/openframe-dev-sections';\nimport { PageShell, PageLayout } from '../../ui';\nimport { DevSectionView } from './dev-section-view';\n\nexport interface DevSectionPageProps {\n sectionKey: OpenframeDevSectionKey;\n /** The page-specific list body (e.g. `<RoadmapList />`). */\n children: ReactNode;\n /** Optional slot rendered BETWEEN the hero and search/filter — see\n * `DevSectionView.preControls`. Used by surfaces that want an entry\n * action (e.g. Help Center's \"Open a new ticket\" form) above the\n * controls instead of below them. */\n preControls?: ReactNode;\n /** Back-button config — same shape as `LegalDocumentPage` /\n * `ReleaseDetailPage`. Pass `false` to hide entirely. Default\n * `{ label: 'Back to home', href: '/' }` — embedders whose \"home\" isn't `/`\n * should override `href`, or pass `false` if the embed has no home page. */\n backButton?: { label?: string; href?: string } | false;\n /** Override the hero title. Defaults to the (OpenFrame-specific) copy in\n * `OPENFRAME_DEV_SECTIONS[sectionKey].hero.title`. Set this to brand the\n * section for a non-OpenFrame embed. */\n title?: string;\n /** Override the hero subtitle/description. Defaults to\n * `OPENFRAME_DEV_SECTIONS[sectionKey].hero.description`. */\n subtitle?: string;\n /** Render the standalone `<PageShell>` (own `<main>` + bg + max-width). Default\n * `true` — the contract for marketing/hub surfaces with no app shell. Pass\n * `false` when the host layout already provides the page container (e.g.\n * openframe-frontend's `AppLayout` `<main>`): then only the\n * `page-shell-content` padding box is rendered, avoiding a nested `<main>`. */\n shell?: boolean;\n}\n\nexport function DevSectionPage({\n sectionKey,\n children,\n preControls,\n backButton,\n title,\n subtitle,\n shell = true,\n}: DevSectionPageProps) {\n const router = useRouter();\n const section = OPENFRAME_DEV_SECTIONS[sectionKey];\n\n // Back-button config — mirrors LegalDocumentPage / ReleaseDetailPage.\n // Default: { label: 'Back to home', href: '/' }. Pass `false` to hide.\n // After `backButton &&` narrowing, inner type is `{ label?, href? } |\n // undefined`; don't re-compare to `false` (TS2367).\n const backCfg =\n backButton === false\n ? undefined\n : {\n label: (backButton ? backButton.label : undefined) ?? 'Back to home',\n onClick: () => router.push((backButton ? backButton.href : undefined) ?? '/'),\n };\n\n const inner = (\n // Unified header: title/description route through the canonical (frozen)\n // `PageLayout` `TitleBlock` (text-h2) — same as FAQ / Legal / detail pages —\n // so every help-center surface shares one header. `DevSectionView` then\n // renders ONLY its search + filter controls (`showHeading={false}`), no\n // duplicate title. (The hero icon is intentionally dropped: TitleBlock is\n // frozen and renders title-only.)\n <PageLayout\n title={title ?? section.hero.title}\n subtitle={subtitle ?? section.hero.description}\n titleSize=\"h1\"\n titleWrap\n backButton={backCfg}\n >\n <DevSectionView sectionKey={sectionKey} showHeading={false} preControls={preControls}>\n {children}\n </DevSectionView>\n </PageLayout>\n );\n\n // `shell` true → standalone `<PageShell>` (own <main> + bg + max-width).\n // false → padding-only box (no nested <main>) for hosts whose layout already\n // provides the container; both consume the host's `--page-shell-*` vars.\n return shell ? <PageShell>{inner}</PageShell> : <div className=\"page-shell-content\">{inner}</div>;\n}\n","'use client';\n\n/**\n * Shared row chrome for any `DevSectionPage` list (delivery, tickets,\n * future sections). One source of truth for the layout that every\n * dev-section card row uses:\n * left column → title (h3) / subtitle (h5 uppercase) / description\n * (h4 line-clamp-3), each in a fixed min-height block\n * so rows align across the grid\n * right column → caller-supplied stacked badges\n *\n * Surface stays small on purpose — `rightBadges` is a `ReactNode` so\n * the caller decides how many badges (delivery: 2, tickets: 1-2,\n * future: anything). No behavior baked in: the caller wraps the row\n * in a `<div>` (static, like delivery) or `<button>` (clickable, like\n * tickets) and renders the row content via this component.\n *\n * Pair with `DevCardRowSkeletonList` for the loading state — the\n * skeleton mirrors the same min-heights so the in-flight UI doesn't\n * shift the layout when real data lands.\n *\n * NOTE: the ticket conversation row is NOT here — it renders the shared\n * `<ChatMessageRow>` (`components/chat/chat-message-row.tsx`), the SAME\n * component the OpenMSP Slack-community feed uses, so the two surfaces stay\n * pixel-identical by construction.\n */\n\nimport type { ReactNode } from 'react';\n\nexport interface DevCardRowContentProps {\n title: string;\n /** Single-line uppercase metadata (e.g. \"UPDATED today, #4271, Code review\"). */\n subtitle: string;\n /** 3-line description block. Empty string renders the fallback. */\n description: string;\n /** Fallback copy when `description` is empty. Defaults to a generic\n * string; ticket / delivery surfaces override. */\n emptyDescription?: string;\n /** Right column — caller renders its own stacked badges. */\n rightBadges: ReactNode;\n}\n\nexport function DevCardRowContent({\n title,\n subtitle,\n description,\n emptyDescription = 'No description provided',\n rightBadges,\n}: DevCardRowContentProps) {\n return (\n <div className=\"flex w-full flex-col items-start justify-between gap-[12px] md:flex-row md:gap-[16px]\">\n <div className=\"flex w-full min-w-0 flex-1 flex-col gap-[12px] md:w-auto md:gap-[16px]\">\n <div className=\"flex min-h-[24px] items-center\">\n <h3 className=\"line-clamp-2 flex-1 break-words tracking-[-0.36px] text-ods-text-primary text-h3 md:truncate\">\n {title}\n </h3>\n </div>\n <div className=\"flex min-h-[20px] items-center\">\n <p className=\"truncate uppercase tracking-[-0.28px] text-ods-text-secondary text-h5\">{subtitle}</p>\n </div>\n <div className=\"flex min-h-[72px] items-center\">\n <p className=\"line-clamp-3 break-words text-ods-text-secondary text-h4\">{description || emptyDescription}</p>\n </div>\n </div>\n <div className=\"flex flex-shrink-0 flex-col gap-2 self-start\">{rightBadges}</div>\n </div>\n );\n}\n\n/**\n * Skeleton rendering for a single row — the bars mirror the same\n * min-heights as `DevCardRowContent` so the loading→loaded swap\n * doesn't reflow.\n */\nexport function DevCardRowSkeleton() {\n return (\n <div className=\"border-b border-ods-border p-[12px] last:border-b-0 md:p-[16px]\">\n <div className=\"flex w-full flex-col items-start justify-between gap-[12px] md:flex-row md:gap-[16px]\">\n <div className=\"flex w-full min-w-0 flex-1 flex-col gap-[12px] md:w-auto md:gap-[16px]\">\n <div className=\"flex min-h-[24px] items-center\">\n <div className=\"h-[20px] w-full animate-pulse rounded bg-ods-border\" />\n </div>\n <div className=\"flex min-h-[20px] items-center\">\n <div className=\"h-[20px] w-1/2 animate-pulse rounded bg-ods-border\" />\n </div>\n <div className=\"flex min-h-[72px] items-center\">\n <div className=\"flex-1 space-y-1\">\n <div className=\"h-[20px] w-full animate-pulse rounded bg-ods-border\" />\n <div className=\"h-[20px] w-full animate-pulse rounded bg-ods-border\" />\n <div className=\"h-[20px] w-2/3 animate-pulse rounded bg-ods-border\" />\n </div>\n </div>\n </div>\n <div className=\"flex flex-shrink-0 flex-col gap-2 self-start\">\n <div className=\"h-[32px] w-[100px] animate-pulse rounded bg-ods-border\" />\n <div className=\"h-[32px] w-[120px] animate-pulse rounded bg-ods-border\" />\n </div>\n </div>\n </div>\n );\n}\n\n/**\n * The standard \"5 skeleton rows inside a bordered card\" loading state\n * used by every list shell. Both delivery (`delivery-table.tsx`) and\n * tickets (`tickets-list.tsx`) mount this directly.\n */\nexport function DevCardRowSkeletonList({ rows = 5 }: { rows?: number }) {\n return (\n <div className=\"w-full overflow-hidden rounded-[6px] border border-ods-border bg-ods-card\">\n {Array.from({ length: rows }, (_, i) => (\n <DevCardRowSkeleton key={i} />\n ))}\n </div>\n );\n}\n","'use client';\n\n/**\n * `<DeliveryRow />` — canonical single-row presentation for a ClickUp\n * delivery item.\n *\n * Single source of truth: both the `/bug-fixes-and-enhancements` page\n * (via `DeliveryTable`) AND the linked-delivery card on a HubSpot ticket\n * (via `TicketLinkedDeliveryCard`) compose this primitive. Visual parity\n * across those two surfaces is the design goal — the user reads the\n * card on their ticket and recognises it as a row from the public\n * delivery list.\n *\n * Behaviors:\n * - `href` set → outer element is an `<a>`, the whole row becomes\n * clickable (used by the linked-card surface to deep-link into\n * `/bug-fixes-and-enhancements?focus=<id>`).\n * - `id` set → outer element gets that DOM id so the consuming page\n * can `scrollIntoView` to it when the URL carries `?focus=<id>`.\n * - `highlighted` true → brief accent border + background pulse\n * (`animate-flash-focus` keyframe defined in `tailwind.config.ts`).\n * - `caption` set → small uppercase label rendered above the title\n * (\"LINKED DELIVERY\" on the ticket-side variant). Omitted on the\n * standard list rendering.\n */\n\nimport Link from '../../../embed-shims/next-link';\nimport { type DeliveryItem, TASK_TYPE_LABELS, TASK_TYPE_TEXT_COLORS } from '../../../types/delivery';\nimport { getStatusColorScheme } from '../../../utils';\nimport { cn } from '../../../utils/cn';\nimport { AvatarStack } from '../../ui/avatar-stack';\nimport { StatusBadge } from '../../ui/status-badge';\n\n/** Same heuristic as DeliveryTable's local helper. Inlined so the row\n * primitive owns its complete rendering contract. */\nfunction getRelativeTime(timestamp: number): string {\n // A missing or zero timestamp is ABSENT data, not the epoch — without this\n // the row reads \"678 months ago\" for a task the API never dated.\n if (!timestamp) return 'recently';\n const now = Date.now();\n const diff = now - timestamp;\n const days = Math.floor(diff / (1000 * 60 * 60 * 24));\n const weeks = Math.floor(days / 7);\n const months = Math.floor(days / 30);\n if (months > 0) return months === 1 ? 'last month' : `${months} months ago`;\n if (weeks > 0) return weeks === 1 ? 'last week' : `${weeks} weeks ago`;\n if (days > 0) return days === 1 ? 'yesterday' : `${days} days ago`;\n return 'today';\n}\n\nexport interface DeliveryRowProps {\n item: DeliveryItem;\n /** When set, the row becomes a clickable anchor. The ticket-side\n * linked-card composes this from `buildDevSectionUrl('delivery', id)`\n * which carries `?search=<id>` — the delivery list filters to that\n * exact task on landing (canonical deep-link mechanism, same one\n * the chat-inline delivery card uses). */\n href?: string;\n /** Small uppercase caption rendered above the title. Used by the\n * linked-delivery card variant (\"LINKED DELIVERY\"). */\n caption?: string;\n /** DOM `id` applied to the row's outer element. `DeliveryTable`\n * always sets `delivery-<external_id>` so chat-card deep-links\n * (`?search=<id>#delivery-<id>`) and the ticket linked-card path\n * both have a target for `useScrollToHash` to scroll to. Always\n * paired with `scroll-mt-24` on the outer element so the row lands\n * BELOW the sticky chrome after the scroll. */\n id?: string;\n /** `'_blank'` renders a plain external anchor (new tab, `rel` hardened) —\n * for rows whose href leaves the app (e.g. the raw ClickUp task URL on the\n * design-doc surfaces). Internal deep-links omit it and keep the Link shim. */\n target?: '_blank';\n className?: string;\n}\n\nexport function DeliveryRow({ item, href, target, caption, id, className }: DeliveryRowProps) {\n const taskType = item.taskType as keyof typeof TASK_TYPE_LABELS;\n const typeBadgeLabel = TASK_TYPE_LABELS[taskType] || 'TASK';\n const typeBadgeTextColor = TASK_TYPE_TEXT_COLORS[taskType] || '';\n const statusBadgeScheme = getStatusColorScheme(item.status);\n const relativeTime = getRelativeTime(item.dateUpdated);\n const subtitle = `ACTIVE ${relativeTime}${item.listNames.length > 0 ? `, ${item.listNames.join(', ')}` : ''}, ${item.id}`;\n\n const inner = (\n <div className=\"flex w-full flex-col items-start justify-between gap-[12px] md:flex-row md:gap-[16px]\">\n {/* Left: caption (optional) + title + subtitle + description */}\n <div className=\"flex w-full min-w-0 flex-1 flex-col gap-[12px] md:w-auto md:gap-[16px]\">\n {caption && <p className=\"text-ods-text-secondary text-h5\">{caption}</p>}\n <div className=\"flex min-h-[24px] items-center md:min-h-[24px]\">\n <h3 className=\"line-clamp-2 flex-1 break-words tracking-[-0.36px] text-ods-text-primary text-h3 md:truncate\">\n {item.title}\n </h3>\n </div>\n <div className=\"flex min-h-[20px] items-center\">\n {/* Relative time is wall-clock-derived: on an SSR host the server and\n client render different strings a moment apart — text-only, so\n suppress instead of forcing a client-only render. */}\n <p className=\"truncate uppercase tracking-[-0.28px] text-ods-text-secondary text-h5\" suppressHydrationWarning>\n {subtitle}\n </p>\n </div>\n <div className=\"flex min-h-[72px] items-center\">\n <p className=\"line-clamp-3 break-words text-ods-text-secondary text-h4\">\n {item.description || 'No description provided'}\n </p>\n </div>\n </div>\n\n {/* Right (desktop): badges + assignee stack in a right-aligned\n column. Mobile: ONE horizontal footer row — badges lead,\n avatars anchor the right edge (kanban-card convention: the\n assignee owns the trailing slot of the meta row; a column of\n right-aligned orphans under the description reads as clutter\n on small screens). */}\n <div className=\"flex w-full flex-shrink-0 flex-row items-center gap-2 self-stretch md:w-auto md:flex-col md:items-end md:self-start\">\n <StatusBadge\n text={item.status.toUpperCase()}\n colorScheme={statusBadgeScheme}\n variant=\"card\"\n className=\"border border-ods-border\"\n />\n <StatusBadge\n text={typeBadgeLabel}\n variant=\"card\"\n className={`border border-ods-border ${typeBadgeTextColor}`}\n />\n {item.assignees && item.assignees.length > 0 ? (\n <AvatarStack\n size=\"xs\"\n className=\"ml-auto md:ml-0\"\n people={item.assignees.map(a => ({\n key: a.id,\n name: a.name ?? 'Unknown',\n avatarUrl: a.avatarUrl,\n }))}\n />\n ) : null}\n </div>\n </div>\n );\n\n const baseClass = cn(\n 'block p-[12px] text-inherit no-underline transition-colors duration-150 md:p-[16px]',\n // `scroll-mt-24` is paid for whether `id` is set or not (it's a\n // single Tailwind utility, no runtime cost). Keeping it\n // unconditional means a future caller adding `id` doesn't also\n // have to remember to ask for the offset.\n 'scroll-mt-24',\n href && 'cursor-pointer hover:bg-ods-bg-hover',\n className,\n );\n\n if (href && target === '_blank') {\n return (\n <a href={href} id={id} className={baseClass} target=\"_blank\" rel=\"noopener noreferrer\">\n {inner}\n </a>\n );\n }\n\n if (href) {\n // `Link` is the env-aware embed-shim — delegates to `next/link` on\n // a Next.js host (soft RSC nav, back-button restores the previous\n // page's React state intact), falls back to a plain `<a>` on\n // non-Next embedders. A raw `<a href>` was hard-navigating +\n // losing TanStack-Query state on back, leaving /tickets stuck on\n // its skeleton.\n return (\n <Link href={href} id={id} className={baseClass} prefetch={false}>\n {inner}\n </Link>\n );\n }\n\n return (\n <div id={id} className={baseClass}>\n {inner}\n </div>\n );\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-KQBYQBQN.cjs","../src/components/shared/dev-section/dev-section-view.tsx","../src/components/shared/dev-section/dev-section-page.tsx","../src/components/shared/dev-section/dev-card-row.tsx","../src/components/shared/delivery/delivery-row.tsx"],"names":["jsx","jsxs"],"mappings":"AAAA,yLAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACA;ACVA,8BAAyB;AAiHb,+CAAA;AApEL,SAAS,cAAA,CAAe,EAAE,UAAA,EAAY,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A;AAGgB,EAAA;AAChB,IAAA;AAAA;AAAA;AAAA;AAAA;AAKA,IAAA;AACQ,IAAA;AACR,IAAA;AACF,EAAA;AAEuB,EAAA;AAEnB,IAAA;AAIJ,EAAA;AAEU,EAAA;AAQN,IAAA;AAIJ,EAAA;AAGEA,EAAAA;AAIJ;AJiFyB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/chunk-KQBYQBQN.cjs","sourcesContent":[null,"'use client';\n\n/**\n * DevSectionView — the canonical chrome for ANY dev-center section\n * (Roadmap / Delivery / Releases). One component, used in BOTH:\n *\n * - tabbed `/roadmap-and-releases` (compact title mode, no `hero`)\n * - full-page `/roadmap`, `/bug-fixes-and-enhancements`, `/releases`\n * (hero mode with icon + description + back link)\n *\n * Owns: title rendering, the inline search input, the filter pill row,\n * and the URL-param wiring that connects both. The list `children`\n * receive a clean URL contract — they read `?<paramKey>=...` via\n * `useSearchParams()` and refetch on change. No duplicated controls.\n */\n\nimport type { ReactNode } from 'react';\nimport { useState } from 'react';\nimport { useRouter, useSearchParams, usePathname } from '../../../embed-shims';\nimport {\n OPENFRAME_DEV_SECTIONS,\n type OpenframeDevSection,\n type OpenframeDevSectionKey,\n} from '../../../utils/dev-sections/openframe-dev-sections';\nimport { StatusFilterComponent } from '../../features';\nimport { SearchInput } from '../../ui';\n\nexport interface DevSectionViewProps {\n /** Which section to render — drives title, search, and filter\n * config via the `OPENFRAME_DEV_SECTIONS` registry. */\n sectionKey: OpenframeDevSectionKey;\n /** When set, renders the rich page-level hero (icon + h1 + description).\n * Omit for the compact tab-context heading. */\n hero?: {\n /** Pre-rendered icon JSX. Server components render the icon themselves\n * and pass the element here — function references can't cross the\n * server→client boundary, but React elements can. */\n icon: ReactNode;\n /** Hero title. Falls back to `OPENFRAME_DEV_SECTIONS[sectionKey].hero.title`\n * when omitted, so embedders can override the (OpenFrame-specific) default\n * copy without forking the registry. */\n title?: string;\n description: string;\n };\n /** Optional slot rendered BETWEEN the hero and the search/filter\n * controls. Use this for an entry-action surface that should sit\n * above the list (e.g. the Help Center's \"Open a new ticket\" form).\n * The slot is wrapped in the same `gap-10` flex column so spacing\n * matches the surrounding chrome — callers should NOT add their\n * own top/bottom margin. Renders `null` (no DOM) when omitted. */\n preControls?: ReactNode;\n /** The page-specific list body. Reads URL params written by this\n * component (search input + filter pills). */\n children: ReactNode;\n /** Render this component's own title heading (hero or compact `h2`). Default\n * `true` — the tab context renders the compact heading itself. Pass `false`\n * when the host already renders the title elsewhere (e.g. `DevSectionPage`\n * routes it through the unified `PageLayout` `TitleBlock`): then only the\n * search + filter controls + list render, with no duplicate heading. */\n showHeading?: boolean;\n}\n\nexport function DevSectionView({ sectionKey, hero, preControls, children, showHeading = true }: DevSectionViewProps) {\n const section = OPENFRAME_DEV_SECTIONS[sectionKey];\n const router = useRouter();\n const pathname = usePathname();\n const searchParams = useSearchParams();\n\n // Widen from the registry's per-section literal types to the interface —\n // optional fields (`clearParamKeys`) exist on the interface but not on\n // every section's inferred literal. Sound: the registry `satisfies`\n // `Record<string, OpenframeDevSection>`.\n const search: OpenframeDevSection['search'] = section.search;\n const filter = section.filter;\n\n const currentSearch = search ? searchParams.get(search.paramKey) || '' : '';\n const currentFilterValue = filter ? searchParams.get(filter.paramKey) || filter.defaultValue : '';\n\n // Controlled search-input state — TYPING commits to the URL only on\n // Enter (not on every keystroke), but CLEARING commits immediately:\n // an emptied input must not keep filtering the list (the URL param —\n // and any linked `clearParamKeys` companion like the tickets\n // `?ticket=` drawer param — previously survived until Enter).\n // Lazy init from URL avoids a brief flash of stale value on first\n // paint after URL-driven re-render (e.g. tab switch).\n const [searchValue, setSearchValue] = useState(() => currentSearch);\n // Re-sync when the URL changes underneath us (tab switch, back/forward,\n // a companion param cleared elsewhere). Adjusted while rendering — React's\n // documented prop-sync pattern — rather than from an effect, which would\n // commit one frame with the input still showing the previous section's\n // query before replacing it.\n const [syncedSearch, setSyncedSearch] = useState(currentSearch);\n if (syncedSearch !== currentSearch) {\n setSyncedSearch(currentSearch);\n setSearchValue(currentSearch);\n }\n\n const handleSearchSubmit = (value: string) => {\n if (!search) return;\n const params = new URLSearchParams(searchParams.toString());\n if (value.trim()) {\n params.set(search.paramKey, value.trim());\n } else {\n params.delete(search.paramKey);\n // Empty commit tears down the search's linked companion params too\n // (deep links set them TOGETHER — see the config field docs).\n for (const key of search.clearParamKeys ?? []) params.delete(key);\n }\n const qs = params.toString();\n router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });\n };\n\n const handleSearchChange = (value: string) => {\n setSearchValue(value);\n if (value === '' && currentSearch !== '') handleSearchSubmit('');\n };\n\n const handleFilterChange = (value: string) => {\n if (!filter) return;\n const params = new URLSearchParams(searchParams.toString());\n if (value === filter.defaultValue) params.delete(filter.paramKey);\n else params.set(filter.paramKey, value);\n router.replace(`${pathname}?${params.toString()}`, { scroll: false });\n };\n\n return (\n <div className=\"flex w-full flex-col gap-10\">\n {showHeading &&\n (hero ? (\n <div className=\"space-y-4\">\n <h1 className=\"flex items-center gap-3 tracking-[-1.12px] text-ods-text-primary text-h1\">\n {hero.icon}\n {hero.title ?? section.hero.title}\n </h1>\n <p className=\"max-w-3xl text-ods-text-secondary text-h4\">{hero.description}</p>\n </div>\n ) : (\n <div className=\"flex w-full items-center justify-between\">\n <h2 className=\"font-['Azeret_Mono'] text-[32px] font-semibold leading-[40px] tracking-[-0.64px] text-ods-text-primary md:text-[40px] md:leading-[48px] md:tracking-[-0.8px] lg:text-[48px] lg:leading-[56px] lg:tracking-[-0.96px]\">\n {section.hero.title}\n <span className=\"text-ods-accent\">:</span>\n </h2>\n </div>\n ))}\n\n {preControls}\n\n {(search || filter) && (\n <div className=\"space-y-4\">\n {search && (\n <SearchInput\n showDropdown={false}\n placeholder={search.placeholder}\n value={searchValue}\n onChange={handleSearchChange}\n onSubmit={handleSearchSubmit}\n />\n )}\n {filter && (\n <StatusFilterComponent\n selectedStatus={currentFilterValue}\n onStatusChange={handleFilterChange}\n statusOptions={[...filter.options]}\n />\n )}\n </div>\n )}\n\n {children}\n </div>\n );\n}\n","'use client';\n\n/**\n * DevSectionPage — full-page wrapper for a dev-center section\n * (`/roadmap`, `/bug-fixes-and-enhancements`, `/releases`).\n *\n * Mounts the lib's canonical `PageLayout` directly (no in-app wrapper)\n * so the back-button affordance stays in lockstep with whatever the\n * design system ships — any future lib change to BackButton / TitleBlock\n * propagates automatically.\n *\n * Composition: `PageShell` → `PageLayout` (back-to-home wired) →\n * `DevSectionView` (icon hero + search + filter pills) → list body.\n *\n * Adding a new section is one entry in `OPENFRAME_DEV_SECTIONS` plus a\n * single-line page file mounting this factory with the new key.\n */\n\nimport type { ReactNode } from 'react';\nimport { useRouter } from '../../../embed-shims/next-navigation';\nimport {\n OPENFRAME_DEV_SECTIONS,\n type OpenframeDevSectionKey,\n} from '../../../utils/dev-sections/openframe-dev-sections';\nimport { PageShell, PageLayout } from '../../ui';\nimport { DevSectionView } from './dev-section-view';\n\nexport interface DevSectionPageProps {\n sectionKey: OpenframeDevSectionKey;\n /** The page-specific list body (e.g. `<RoadmapList />`). */\n children: ReactNode;\n /** Optional slot rendered BETWEEN the hero and search/filter — see\n * `DevSectionView.preControls`. Used by surfaces that want an entry\n * action (e.g. Help Center's \"Open a new ticket\" form) above the\n * controls instead of below them. */\n preControls?: ReactNode;\n /** Back-button config — same shape as `LegalDocumentPage` /\n * `ReleaseDetailPage`. Pass `false` to hide entirely. Default\n * `{ label: 'Back to home', href: '/' }` — embedders whose \"home\" isn't `/`\n * should override `href`, or pass `false` if the embed has no home page. */\n backButton?: { label?: string; href?: string } | false;\n /** Override the hero title. Defaults to the (OpenFrame-specific) copy in\n * `OPENFRAME_DEV_SECTIONS[sectionKey].hero.title`. Set this to brand the\n * section for a non-OpenFrame embed. */\n title?: string;\n /** Override the hero subtitle/description. Defaults to\n * `OPENFRAME_DEV_SECTIONS[sectionKey].hero.description`. */\n subtitle?: string;\n /** Render the standalone `<PageShell>` (own `<main>` + bg + max-width). Default\n * `true` — the contract for marketing/hub surfaces with no app shell. Pass\n * `false` when the host layout already provides the page container (e.g.\n * openframe-frontend's `AppLayout` `<main>`): then only the\n * `page-shell-content` padding box is rendered, avoiding a nested `<main>`. */\n shell?: boolean;\n}\n\nexport function DevSectionPage({\n sectionKey,\n children,\n preControls,\n backButton,\n title,\n subtitle,\n shell = true,\n}: DevSectionPageProps) {\n const router = useRouter();\n const section = OPENFRAME_DEV_SECTIONS[sectionKey];\n\n // Back-button config — mirrors LegalDocumentPage / ReleaseDetailPage.\n // Default: { label: 'Back to home', href: '/' }. Pass `false` to hide.\n // After `backButton &&` narrowing, inner type is `{ label?, href? } |\n // undefined`; don't re-compare to `false` (TS2367).\n const backCfg =\n backButton === false\n ? undefined\n : {\n label: (backButton ? backButton.label : undefined) ?? 'Back to home',\n onClick: () => router.push((backButton ? backButton.href : undefined) ?? '/'),\n };\n\n const inner = (\n // Unified header: title/description route through the canonical (frozen)\n // `PageLayout` `TitleBlock` (text-h2) — same as FAQ / Legal / detail pages —\n // so every help-center surface shares one header. `DevSectionView` then\n // renders ONLY its search + filter controls (`showHeading={false}`), no\n // duplicate title. (The hero icon is intentionally dropped: TitleBlock is\n // frozen and renders title-only.)\n <PageLayout\n title={title ?? section.hero.title}\n subtitle={subtitle ?? section.hero.description}\n titleSize=\"h1\"\n titleWrap\n backButton={backCfg}\n >\n <DevSectionView sectionKey={sectionKey} showHeading={false} preControls={preControls}>\n {children}\n </DevSectionView>\n </PageLayout>\n );\n\n // `shell` true → standalone `<PageShell>` (own <main> + bg + max-width).\n // false → padding-only box (no nested <main>) for hosts whose layout already\n // provides the container; both consume the host's `--page-shell-*` vars.\n return shell ? <PageShell>{inner}</PageShell> : <div className=\"page-shell-content\">{inner}</div>;\n}\n","'use client';\n\n/**\n * Shared row chrome for any `DevSectionPage` list (delivery, tickets,\n * future sections). One source of truth for the layout that every\n * dev-section card row uses:\n * left column → title (h3) / subtitle (h5 uppercase) / description\n * (h4 line-clamp-3), each in a fixed min-height block\n * so rows align across the grid\n * right column → caller-supplied stacked badges\n *\n * Surface stays small on purpose — `rightBadges` is a `ReactNode` so\n * the caller decides how many badges (delivery: 2, tickets: 1-2,\n * future: anything). No behavior baked in: the caller wraps the row\n * in a `<div>` (static, like delivery) or `<button>` (clickable, like\n * tickets) and renders the row content via this component.\n *\n * Pair with `DevCardRowSkeletonList` for the loading state — the\n * skeleton mirrors the same min-heights so the in-flight UI doesn't\n * shift the layout when real data lands.\n *\n * NOTE: the ticket conversation row is NOT here — it renders the shared\n * `<ChatMessageRow>` (`components/chat/chat-message-row.tsx`), the SAME\n * component the OpenMSP Slack-community feed uses, so the two surfaces stay\n * pixel-identical by construction.\n */\n\nimport type { ReactNode } from 'react';\n\nexport interface DevCardRowContentProps {\n title: string;\n /** Single-line uppercase metadata (e.g. \"UPDATED today, #4271, Code review\"). */\n subtitle: string;\n /** 3-line description block. Empty string renders the fallback. */\n description: string;\n /** Fallback copy when `description` is empty. Defaults to a generic\n * string; ticket / delivery surfaces override. */\n emptyDescription?: string;\n /** Right column — caller renders its own stacked badges. */\n rightBadges: ReactNode;\n}\n\nexport function DevCardRowContent({\n title,\n subtitle,\n description,\n emptyDescription = 'No description provided',\n rightBadges,\n}: DevCardRowContentProps) {\n return (\n <div className=\"flex w-full flex-col items-start justify-between gap-[12px] md:flex-row md:gap-[16px]\">\n <div className=\"flex w-full min-w-0 flex-1 flex-col gap-[12px] md:w-auto md:gap-[16px]\">\n <div className=\"flex min-h-[24px] items-center\">\n <h3 className=\"line-clamp-2 flex-1 break-words tracking-[-0.36px] text-ods-text-primary text-h3 md:truncate\">\n {title}\n </h3>\n </div>\n <div className=\"flex min-h-[20px] items-center\">\n <p className=\"truncate uppercase tracking-[-0.28px] text-ods-text-secondary text-h5\">{subtitle}</p>\n </div>\n <div className=\"flex min-h-[72px] items-center\">\n <p className=\"line-clamp-3 break-words text-ods-text-secondary text-h4\">{description || emptyDescription}</p>\n </div>\n </div>\n <div className=\"flex flex-shrink-0 flex-col gap-2 self-start\">{rightBadges}</div>\n </div>\n );\n}\n\n/**\n * Skeleton rendering for a single row — the bars mirror the same\n * min-heights as `DevCardRowContent` so the loading→loaded swap\n * doesn't reflow.\n */\nexport function DevCardRowSkeleton() {\n return (\n <div className=\"border-b border-ods-border p-[12px] last:border-b-0 md:p-[16px]\">\n <div className=\"flex w-full flex-col items-start justify-between gap-[12px] md:flex-row md:gap-[16px]\">\n <div className=\"flex w-full min-w-0 flex-1 flex-col gap-[12px] md:w-auto md:gap-[16px]\">\n <div className=\"flex min-h-[24px] items-center\">\n <div className=\"h-[20px] w-full animate-pulse rounded bg-ods-border\" />\n </div>\n <div className=\"flex min-h-[20px] items-center\">\n <div className=\"h-[20px] w-1/2 animate-pulse rounded bg-ods-border\" />\n </div>\n <div className=\"flex min-h-[72px] items-center\">\n <div className=\"flex-1 space-y-1\">\n <div className=\"h-[20px] w-full animate-pulse rounded bg-ods-border\" />\n <div className=\"h-[20px] w-full animate-pulse rounded bg-ods-border\" />\n <div className=\"h-[20px] w-2/3 animate-pulse rounded bg-ods-border\" />\n </div>\n </div>\n </div>\n <div className=\"flex flex-shrink-0 flex-col gap-2 self-start\">\n <div className=\"h-[32px] w-[100px] animate-pulse rounded bg-ods-border\" />\n <div className=\"h-[32px] w-[120px] animate-pulse rounded bg-ods-border\" />\n </div>\n </div>\n </div>\n );\n}\n\n/**\n * The standard \"5 skeleton rows inside a bordered card\" loading state\n * used by every list shell. Both delivery (`delivery-table.tsx`) and\n * tickets (`tickets-list.tsx`) mount this directly.\n */\nexport function DevCardRowSkeletonList({ rows = 5 }: { rows?: number }) {\n return (\n <div className=\"w-full overflow-hidden rounded-[6px] border border-ods-border bg-ods-card\">\n {Array.from({ length: rows }, (_, i) => (\n <DevCardRowSkeleton key={i} />\n ))}\n </div>\n );\n}\n","'use client';\n\n/**\n * `<DeliveryRow />` — canonical single-row presentation for a ClickUp\n * delivery item.\n *\n * Single source of truth: both the `/bug-fixes-and-enhancements` page\n * (via `DeliveryTable`) AND the linked-delivery card on a HubSpot ticket\n * (via `TicketLinkedDeliveryCard`) compose this primitive. Visual parity\n * across those two surfaces is the design goal — the user reads the\n * card on their ticket and recognises it as a row from the public\n * delivery list.\n *\n * Behaviors:\n * - `href` set → outer element is an `<a>`, the whole row becomes\n * clickable (used by the linked-card surface to deep-link into\n * `/bug-fixes-and-enhancements?focus=<id>`).\n * - `id` set → outer element gets that DOM id so the consuming page\n * can `scrollIntoView` to it when the URL carries `?focus=<id>`.\n * - `highlighted` true → brief accent border + background pulse\n * (`animate-flash-focus` keyframe defined in `tailwind.config.ts`).\n * - `caption` set → small uppercase label rendered above the title\n * (\"LINKED DELIVERY\" on the ticket-side variant). Omitted on the\n * standard list rendering.\n */\n\nimport Link from '../../../embed-shims/next-link';\nimport { type DeliveryItem, TASK_TYPE_LABELS, TASK_TYPE_TEXT_COLORS } from '../../../types/delivery';\nimport { getStatusColorScheme } from '../../../utils';\nimport { cn } from '../../../utils/cn';\nimport { AvatarStack } from '../../ui/avatar-stack';\nimport { StatusBadge } from '../../ui/status-badge';\n\n/** Same heuristic as DeliveryTable's local helper. Inlined so the row\n * primitive owns its complete rendering contract. */\nfunction getRelativeTime(timestamp: number): string {\n // A missing or zero timestamp is ABSENT data, not the epoch — without this\n // the row reads \"678 months ago\" for a task the API never dated.\n if (!timestamp) return 'recently';\n const now = Date.now();\n const diff = now - timestamp;\n const days = Math.floor(diff / (1000 * 60 * 60 * 24));\n const weeks = Math.floor(days / 7);\n const months = Math.floor(days / 30);\n if (months > 0) return months === 1 ? 'last month' : `${months} months ago`;\n if (weeks > 0) return weeks === 1 ? 'last week' : `${weeks} weeks ago`;\n if (days > 0) return days === 1 ? 'yesterday' : `${days} days ago`;\n return 'today';\n}\n\nexport interface DeliveryRowProps {\n item: DeliveryItem;\n /** When set, the row becomes a clickable anchor. The ticket-side\n * linked-card composes this from `buildDevSectionUrl('delivery', id)`\n * which carries `?search=<id>` — the delivery list filters to that\n * exact task on landing (canonical deep-link mechanism, same one\n * the chat-inline delivery card uses). */\n href?: string;\n /** Small uppercase caption rendered above the title. Used by the\n * linked-delivery card variant (\"LINKED DELIVERY\"). */\n caption?: string;\n /** DOM `id` applied to the row's outer element. `DeliveryTable`\n * always sets `delivery-<external_id>` so chat-card deep-links\n * (`?search=<id>#delivery-<id>`) and the ticket linked-card path\n * both have a target for `useScrollToHash` to scroll to. Always\n * paired with `scroll-mt-24` on the outer element so the row lands\n * BELOW the sticky chrome after the scroll. */\n id?: string;\n /** `'_blank'` renders a plain external anchor (new tab, `rel` hardened) —\n * for rows whose href leaves the app (e.g. the raw ClickUp task URL on the\n * design-doc surfaces). Internal deep-links omit it and keep the Link shim. */\n target?: '_blank';\n className?: string;\n}\n\nexport function DeliveryRow({ item, href, target, caption, id, className }: DeliveryRowProps) {\n const taskType = item.taskType as keyof typeof TASK_TYPE_LABELS;\n const typeBadgeLabel = TASK_TYPE_LABELS[taskType] || 'TASK';\n const typeBadgeTextColor = TASK_TYPE_TEXT_COLORS[taskType] || '';\n const statusBadgeScheme = getStatusColorScheme(item.status);\n const relativeTime = getRelativeTime(item.dateUpdated);\n const subtitle = `ACTIVE ${relativeTime}${item.listNames.length > 0 ? `, ${item.listNames.join(', ')}` : ''}, ${item.id}`;\n\n const inner = (\n <div className=\"flex w-full flex-col items-start justify-between gap-[12px] md:flex-row md:gap-[16px]\">\n {/* Left: caption (optional) + title + subtitle + description */}\n <div className=\"flex w-full min-w-0 flex-1 flex-col gap-[12px] md:w-auto md:gap-[16px]\">\n {caption && <p className=\"text-ods-text-secondary text-h5\">{caption}</p>}\n <div className=\"flex min-h-[24px] items-center md:min-h-[24px]\">\n <h3 className=\"line-clamp-2 flex-1 break-words tracking-[-0.36px] text-ods-text-primary text-h3 md:truncate\">\n {item.title}\n </h3>\n </div>\n <div className=\"flex min-h-[20px] items-center\">\n {/* Relative time is wall-clock-derived: on an SSR host the server and\n client render different strings a moment apart — text-only, so\n suppress instead of forcing a client-only render. */}\n <p className=\"truncate uppercase tracking-[-0.28px] text-ods-text-secondary text-h5\" suppressHydrationWarning>\n {subtitle}\n </p>\n </div>\n <div className=\"flex min-h-[72px] items-center\">\n <p className=\"line-clamp-3 break-words text-ods-text-secondary text-h4\">\n {item.description || 'No description provided'}\n </p>\n </div>\n </div>\n\n {/* Right (desktop): badges + assignee stack in a right-aligned\n column. Mobile: ONE horizontal footer row — badges lead,\n avatars anchor the right edge (kanban-card convention: the\n assignee owns the trailing slot of the meta row; a column of\n right-aligned orphans under the description reads as clutter\n on small screens). */}\n <div className=\"flex w-full flex-shrink-0 flex-row items-center gap-2 self-stretch md:w-auto md:flex-col md:items-end md:self-start\">\n <StatusBadge\n text={item.status.toUpperCase()}\n colorScheme={statusBadgeScheme}\n variant=\"card\"\n className=\"border border-ods-border\"\n />\n <StatusBadge\n text={typeBadgeLabel}\n variant=\"card\"\n className={`border border-ods-border ${typeBadgeTextColor}`}\n />\n {item.assignees && item.assignees.length > 0 ? (\n <AvatarStack\n size=\"xs\"\n className=\"ml-auto md:ml-0\"\n people={item.assignees.map(a => ({\n key: a.id,\n name: a.name ?? 'Unknown',\n avatarUrl: a.avatarUrl,\n }))}\n />\n ) : null}\n </div>\n </div>\n );\n\n const baseClass = cn(\n 'block p-[12px] text-inherit no-underline transition-colors duration-150 md:p-[16px]',\n // `scroll-mt-24` is paid for whether `id` is set or not (it's a\n // single Tailwind utility, no runtime cost). Keeping it\n // unconditional means a future caller adding `id` doesn't also\n // have to remember to ask for the offset.\n 'scroll-mt-24',\n href && 'cursor-pointer hover:bg-ods-bg-hover',\n className,\n );\n\n if (href && target === '_blank') {\n return (\n <a href={href} id={id} className={baseClass} target=\"_blank\" rel=\"noopener noreferrer\">\n {inner}\n </a>\n );\n }\n\n if (href) {\n // `Link` is the env-aware embed-shim — delegates to `next/link` on\n // a Next.js host (soft RSC nav, back-button restores the previous\n // page's React state intact), falls back to a plain `<a>` on\n // non-Next embedders. A raw `<a href>` was hard-navigating +\n // losing TanStack-Query state on back, leaving /tickets stuck on\n // its skeleton.\n return (\n <Link href={href} id={id} className={baseClass} prefetch={false}>\n {inner}\n </Link>\n );\n }\n\n return (\n <div id={id} className={baseClass}>\n {inner}\n </div>\n );\n}\n"]}
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  ContactForm
4
- } from "./chunk-RSMUAAPW.js";
4
+ } from "./chunk-KLG3MGRP.js";
5
5
  import {
6
6
  DeliveryRow,
7
7
  DevCardRowContent,
8
8
  DevCardRowSkeletonList,
9
9
  DevSectionPage
10
- } from "./chunk-RNUH5IHZ.js";
10
+ } from "./chunk-KPE277X2.js";
11
11
  import {
12
12
  EmptyState,
13
13
  UnifiedPagination
@@ -18,7 +18,7 @@ import {
18
18
  TOAST_COPY,
19
19
  isOptimistic,
20
20
  useOptionalTicketLive
21
- } from "./chunk-FCVAVOXS.js";
21
+ } from "./chunk-ZBVMPVJF.js";
22
22
  import {
23
23
  AlertDialog,
24
24
  AlertDialogAction,
@@ -33,7 +33,7 @@ import {
33
33
  Textarea,
34
34
  TicketAttachmentsList,
35
35
  devSectionAnchorId
36
- } from "./chunk-NP3XN6ZX.js";
36
+ } from "./chunk-SNZZ6Q6G.js";
37
37
  import {
38
38
  toast,
39
39
  useScrollToHash
@@ -51,7 +51,7 @@ import {
51
51
  formatRelativeTime,
52
52
  useChatAttachments,
53
53
  useChatIdentity
54
- } from "./chunk-4D2BR756.js";
54
+ } from "./chunk-LPFA56WY.js";
55
55
  import {
56
56
  STICKY_HEADER_OFFSET_PX,
57
57
  scrollElementIntoView
@@ -66,7 +66,7 @@ import {
66
66
  SquareAvatar,
67
67
  StatusBadge,
68
68
  getStatusColorScheme
69
- } from "./chunk-JQI726T3.js";
69
+ } from "./chunk-3LMYQGAJ.js";
70
70
  import {
71
71
  embedAuthedFetch
72
72
  } from "./chunk-HQAAVLLQ.js";
@@ -1838,4 +1838,4 @@ export {
1838
1838
  HelpCenterCreateForm,
1839
1839
  HelpCenterList
1840
1840
  };
1841
- //# sourceMappingURL=chunk-IQFXDS5O.js.map
1841
+ //# sourceMappingURL=chunk-LEUJNBWU.js.map
@@ -162,11 +162,12 @@ import {
162
162
  getFirstLastInitials,
163
163
  getProxiedImageUrl,
164
164
  getStatusColorScheme,
165
+ isSameOriginAbsoluteHref,
165
166
  newTabAnchorAttrs,
166
167
  safeHref,
167
168
  sortBitesByCreatedAtDesc,
168
169
  useCoverImageFallback
169
- } from "./chunk-JQI726T3.js";
170
+ } from "./chunk-3LMYQGAJ.js";
170
171
  import {
171
172
  next_image_default
172
173
  } from "./chunk-MDKCTSDS.js";
@@ -11418,6 +11419,9 @@ function resolveExternalNavigation(args) {
11418
11419
  }
11419
11420
 
11420
11421
  // src/components/chat/utils/execute-navigation.ts
11422
+ function isForeignOriginHref(href) {
11423
+ return /^https?:\/\//i.test(href) && !isSameOriginAbsoluteHref(href);
11424
+ }
11421
11425
  function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
11422
11426
  const isNewTab = runtime ? computeIsNewTab(runtime, href, targetPlatform ?? null) : false;
11423
11427
  if (isNewTab) {
@@ -11425,7 +11429,7 @@ function runNavigation(runtime, href, path, targetPlatform, fallbackNavigate) {
11425
11429
  else window.open(href, "_blank", NEW_TAB_FEATURES);
11426
11430
  return;
11427
11431
  }
11428
- const target = stripSameOriginToPath(href);
11432
+ const target = isForeignOriginHref(href) ? href : stripSameOriginToPath(href);
11429
11433
  if (target.includes("#") && navigateSamePageHash(target, { headerOffset: STICKY_HEADER_OFFSET_PX })) {
11430
11434
  return;
11431
11435
  }
@@ -11461,10 +11465,8 @@ function executeNavigationImperative({
11461
11465
  }) {
11462
11466
  runNavigation(runtime, href, void 0, targetPlatform, fallbackNavigate);
11463
11467
  }
11464
-
11465
- // src/components/chat/utils/nav-click-handler.ts
11466
- function handleChatNavClick(e, runtime, { href, path, targetPlatform }, fallbackNavigate) {
11467
- return executeNavigation({ event: e, runtime, href, path, targetPlatform, fallbackNavigate });
11468
+ function handleChatNavClick(event, runtime, { href, path, targetPlatform }, fallbackNavigate) {
11469
+ return executeNavigation({ event, runtime, href, path, targetPlatform, fallbackNavigate });
11468
11470
  }
11469
11471
 
11470
11472
  // src/components/chat/nav-link-anchor-via-runtime.tsx
@@ -11482,16 +11484,14 @@ function NavLinkAnchorViaRuntime({
11482
11484
  const resolvedHref = resolveHrefForRuntime(href, runtime);
11483
11485
  const isNewTab = computeIsNewTab(runtime, resolvedHref, targetPlatform ?? null);
11484
11486
  const onClick = (e) => {
11485
- const handled = handleChatNavClick(
11486
- e,
11487
+ const handled = executeNavigation({
11488
+ event: e,
11487
11489
  runtime,
11488
- {
11489
- href: resolvedHref,
11490
- path,
11491
- targetPlatform
11492
- },
11493
- router.push
11494
- );
11490
+ href: resolvedHref,
11491
+ path,
11492
+ targetPlatform,
11493
+ fallbackNavigate: router.push
11494
+ });
11495
11495
  if (handled && !isNewTab && panel?.closeChat) panel.closeChat();
11496
11496
  };
11497
11497
  return /* @__PURE__ */ jsx72("a", { href: resolvedHref, ...newTabAnchorAttrs(isNewTab), onClick, className, children });
@@ -14326,6 +14326,20 @@ function readPlatforms(item, canonicalType) {
14326
14326
  }
14327
14327
  return void 0;
14328
14328
  }
14329
+ function pickFetchedCardHref({
14330
+ composed,
14331
+ itemHref,
14332
+ allowComposed
14333
+ }) {
14334
+ if (composed?.hostOverride) {
14335
+ return { source: "hostOverride", href: composed.href, targetPlatform: composed.targetPlatform };
14336
+ }
14337
+ if (itemHref) return { source: "item", href: itemHref };
14338
+ if (composed && allowComposed) {
14339
+ return { source: "composed", href: composed.href, targetPlatform: composed.targetPlatform };
14340
+ }
14341
+ return null;
14342
+ }
14329
14343
  function resolveFetchedCardHref({
14330
14344
  contentRefType,
14331
14345
  id,
@@ -15497,7 +15511,7 @@ function ChatCardNavWrap({
15497
15511
  if (!host?.contains(targetEl)) return;
15498
15512
  if (targetEl?.closest?.("button")) return;
15499
15513
  if (!targetEl?.closest?.("a")) return;
15500
- const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
15514
+ const handled = executeNavigation({ event: e, runtime, href, path, targetPlatform, fallbackNavigate: router.push });
15501
15515
  if (!handled) return;
15502
15516
  e.stopPropagation();
15503
15517
  if (!isNewTab && panel?.closeChat) panel.closeChat();
@@ -15540,19 +15554,22 @@ function ChatCardLoader({
15540
15554
  fetchEntry ? resolvedChatRef.id : ""
15541
15555
  );
15542
15556
  if (!entry) return null;
15543
- const composedHref = fetchEntry?.contentRefType && !resolvedChatRef.url && item && !fetchEntry.fallbackHref && !fetchEntry.noComposedHref ? resolveFetchedCardHref({
15557
+ const composedHref = fetchEntry?.contentRefType && !resolvedChatRef.url && item ? resolveFetchedCardHref({
15544
15558
  contentRefType: fetchEntry.contentRefType,
15545
15559
  id: resolvedChatRef.id,
15546
15560
  item,
15547
15561
  composeContentUrl: runtime.composeContentUrl
15548
15562
  }) : null;
15549
- const hrefResolvedChatRef = fetchEntry && !resolvedChatRef.url && item && fetchEntry.fallbackHref ? {
15550
- ...resolvedChatRef,
15551
- url: safeHref(fetchEntry.fallbackHref(item))
15552
- } : composedHref ? {
15563
+ const hrefChoice = fetchEntry && !resolvedChatRef.url && item ? pickFetchedCardHref({
15564
+ composed: composedHref,
15565
+ itemHref: fetchEntry.fallbackHref?.(item) ?? null,
15566
+ allowComposed: !fetchEntry.noComposedHref
15567
+ }) : null;
15568
+ const hrefResolvedChatRef = hrefChoice ? {
15553
15569
  ...resolvedChatRef,
15554
- url: safeHref(composedHref.href),
15555
- targetPlatform: composedHref.targetPlatform ?? resolvedChatRef.targetPlatform ?? null
15570
+ url: safeHref(hrefChoice.href),
15571
+ // The `item` branch carries no platform of its own — keep the ref's.
15572
+ targetPlatform: hrefChoice.targetPlatform ?? resolvedChatRef.targetPlatform ?? null
15556
15573
  } : resolvedChatRef;
15557
15574
  const fetchedTitle = fetchEntry && item ? readFetchedCardTitle(item) : null;
15558
15575
  const finalChatRef = fetchedTitle && (!hrefResolvedChatRef.title || hrefResolvedChatRef.title === hrefResolvedChatRef.id) ? { ...hrefResolvedChatRef, title: fetchedTitle } : hrefResolvedChatRef;
@@ -21958,8 +21975,6 @@ function useNatsChatAdapter(config, options = {}) {
21958
21975
  },
21959
21976
  [sendMessage]
21960
21977
  );
21961
- const displayRef = useCallback21((_ref) => {
21962
- }, []);
21963
21978
  const { messages, streamingPhase, dialogTokenUsage = null, liveModel = null } = state;
21964
21979
  const isLoading = streamingPhase !== "idle";
21965
21980
  const hasMoreDialogs = dialogsNextCursor != null;
@@ -21973,7 +21988,6 @@ function useNatsChatAdapter(config, options = {}) {
21973
21988
  stopMessage,
21974
21989
  clearMessages,
21975
21990
  discussRef,
21976
- displayRef,
21977
21991
  // Model badge + token usage for the composer's `<ModelDisplay>`.
21978
21992
  // Model: live `metadata` frame → config baseline (host AI-config).
21979
21993
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
@@ -22018,7 +22032,6 @@ function useNatsChatAdapter(config, options = {}) {
22018
22032
  stopMessage,
22019
22033
  clearMessages,
22020
22034
  discussRef,
22021
- displayRef,
22022
22035
  dialogs,
22023
22036
  dialogId,
22024
22037
  selectDialog,
@@ -22084,10 +22097,11 @@ function useUnifiedChat(options) {
22084
22097
  (ref) => activeStateRef.current.discussRef(ref),
22085
22098
  []
22086
22099
  );
22087
- const displayRef = useCallback22(
22088
- (ref) => activeStateRef.current.displayRef(ref),
22100
+ const displayRefForward = useCallback22(
22101
+ (ref) => activeStateRef.current.displayRef?.(ref),
22089
22102
  []
22090
22103
  );
22104
+ const displayRef = activeState.displayRef ? displayRefForward : void 0;
22091
22105
  const selectDialog = useCallback22((id) => activeStateRef.current.selectDialog(id), []);
22092
22106
  const startNewDialog = useCallback22(() => activeStateRef.current.startNewDialog(), []);
22093
22107
  const deleteDialog = useCallback22((id) => activeStateRef.current.deleteDialog(id), []);
@@ -23278,7 +23292,14 @@ function SourceChip({
23278
23292
  /* @__PURE__ */ jsx98(SourceActionButton, { chatRef: cta.chatRef, onDiscuss, density: "inline", className: "-mr-1 ml-1" })
23279
23293
  ] });
23280
23294
  const buildClickHandler = (href, path, targetPlatform, isNewTab) => (e) => {
23281
- const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
23295
+ const handled = executeNavigation({
23296
+ event: e,
23297
+ runtime,
23298
+ href,
23299
+ path,
23300
+ targetPlatform,
23301
+ fallbackNavigate: router.push
23302
+ });
23282
23303
  if (handled && !isNewTab && onClose) onClose();
23283
23304
  };
23284
23305
  if (cta.href && !!src.externalUrl) {
@@ -24865,4 +24886,4 @@ export {
24865
24886
  buildStreamFrames,
24866
24887
  EmbeddableChat
24867
24888
  };
24868
- //# sourceMappingURL=chunk-4D2BR756.js.map
24889
+ //# sourceMappingURL=chunk-LPFA56WY.js.map