@flamingo-stack/openframe-frontend-core 0.0.255 → 0.0.256-snapshot.20260612014656

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-LHR7MBUY.js → chunk-2VZQJIVA.js} +48 -13
  2. package/dist/chunk-2VZQJIVA.js.map +1 -0
  3. package/dist/{chunk-GYKDSPC4.cjs → chunk-3DC6MHW6.cjs} +31 -31
  4. package/dist/{chunk-GYKDSPC4.cjs.map → chunk-3DC6MHW6.cjs.map} +1 -1
  5. package/dist/{chunk-LZL6P7SN.cjs → chunk-4MXBBBHB.cjs} +108 -11
  6. package/dist/chunk-4MXBBBHB.cjs.map +1 -0
  7. package/dist/{chunk-HMFBMVJC.js → chunk-6GBA6YJN.js} +2 -2
  8. package/dist/{chunk-SGJBUL2Y.cjs → chunk-7VMEOFEA.cjs} +45 -2
  9. package/dist/chunk-7VMEOFEA.cjs.map +1 -0
  10. package/dist/{chunk-UGFSMA7K.cjs → chunk-AIQ4DGO7.cjs} +77 -42
  11. package/dist/chunk-AIQ4DGO7.cjs.map +1 -0
  12. package/dist/{chunk-6TB24AUH.js → chunk-CBIQDPHK.js} +155 -236
  13. package/dist/chunk-CBIQDPHK.js.map +1 -0
  14. package/dist/{chunk-6LK4VEXE.cjs → chunk-EB76VWM4.cjs} +118 -63
  15. package/dist/chunk-EB76VWM4.cjs.map +1 -0
  16. package/dist/{chunk-RCW2IL4K.cjs → chunk-FBH73RRM.cjs} +1254 -1335
  17. package/dist/chunk-FBH73RRM.cjs.map +1 -0
  18. package/dist/{chunk-4HHYUEMD.js → chunk-IJHORDN5.js} +100 -3
  19. package/dist/chunk-IJHORDN5.js.map +1 -0
  20. package/dist/{chunk-MKVKVJQQ.js → chunk-J3QMPOS6.js} +5 -4
  21. package/dist/chunk-J3QMPOS6.js.map +1 -0
  22. package/dist/{chunk-CVGZJBHT.cjs → chunk-LCYDTEEK.cjs} +19 -19
  23. package/dist/{chunk-CVGZJBHT.cjs.map → chunk-LCYDTEEK.cjs.map} +1 -1
  24. package/dist/{chunk-2FCXJTOV.js → chunk-LDEXTWMK.js} +10 -2
  25. package/dist/chunk-LDEXTWMK.js.map +1 -0
  26. package/dist/{chunk-Z4IBEIWD.cjs → chunk-LGLPNWS6.cjs} +3 -3
  27. package/dist/{chunk-Z4IBEIWD.cjs.map → chunk-LGLPNWS6.cjs.map} +1 -1
  28. package/dist/{chunk-TU26IZPO.cjs → chunk-N5UOJC3V.cjs} +10 -2
  29. package/dist/chunk-N5UOJC3V.cjs.map +1 -0
  30. package/dist/{chunk-LKI3YCAX.js → chunk-NAOTZAKM.js} +62 -7
  31. package/dist/chunk-NAOTZAKM.js.map +1 -0
  32. package/dist/{chunk-2FAX6LZB.cjs → chunk-NNDLCSGR.cjs} +30 -30
  33. package/dist/{chunk-2FAX6LZB.cjs.map → chunk-NNDLCSGR.cjs.map} +1 -1
  34. package/dist/{chunk-VAUI3CND.js → chunk-NR535XIY.js} +44 -1
  35. package/dist/chunk-NR535XIY.js.map +1 -0
  36. package/dist/{chunk-D524LJYO.js → chunk-RUMSS73U.js} +4 -4
  37. package/dist/{chunk-265KKBV2.js → chunk-V4IIBNTA.js} +3 -3
  38. package/dist/chunk-V4IIBNTA.js.map +1 -0
  39. package/dist/{chunk-EFIEQ4XD.js → chunk-YMZZ5THD.js} +4 -4
  40. package/dist/{chunk-3TDLFCCS.cjs → chunk-ZJP2BB3E.cjs} +6 -5
  41. package/dist/chunk-ZJP2BB3E.cjs.map +1 -0
  42. package/dist/components/chat/entity-cards/entity-author-card.d.ts +13 -9
  43. package/dist/components/chat/entity-cards/entity-author-card.d.ts.map +1 -1
  44. package/dist/components/chat/index.cjs +9 -7
  45. package/dist/components/chat/index.cjs.map +1 -1
  46. package/dist/components/chat/index.d.ts +1 -0
  47. package/dist/components/chat/index.d.ts.map +1 -1
  48. package/dist/components/chat/index.js +8 -6
  49. package/dist/components/chat/types/entities/onboarding-guide.d.ts +2 -7
  50. package/dist/components/chat/types/entities/onboarding-guide.d.ts.map +1 -1
  51. package/dist/components/contact/index.cjs +8 -8
  52. package/dist/components/contact/index.js +7 -7
  53. package/dist/components/faq/faq-section.d.ts.map +1 -1
  54. package/dist/components/faq/index.cjs +3 -3
  55. package/dist/components/faq/index.js +2 -2
  56. package/dist/components/features/index.cjs +7 -7
  57. package/dist/components/features/index.js +6 -6
  58. package/dist/components/icons/index.cjs +2 -2
  59. package/dist/components/icons/index.js +1 -1
  60. package/dist/components/index.cjs +168 -155
  61. package/dist/components/index.cjs.map +1 -1
  62. package/dist/components/index.d.ts +1 -0
  63. package/dist/components/index.d.ts.map +1 -1
  64. package/dist/components/index.js +58 -45
  65. package/dist/components/index.js.map +1 -1
  66. package/dist/components/navigation/index.cjs +7 -7
  67. package/dist/components/navigation/index.js +6 -6
  68. package/dist/components/onboarding-guides/index.cjs +43 -27
  69. package/dist/components/onboarding-guides/index.cjs.map +1 -1
  70. package/dist/components/onboarding-guides/index.js +20 -4
  71. package/dist/components/onboarding-guides/index.js.map +1 -1
  72. package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts +11 -1
  73. package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts.map +1 -1
  74. package/dist/components/related-content/index.cjs +10 -8
  75. package/dist/components/related-content/index.cjs.map +1 -1
  76. package/dist/components/related-content/index.d.ts +1 -1
  77. package/dist/components/related-content/index.d.ts.map +1 -1
  78. package/dist/components/related-content/index.js +9 -7
  79. package/dist/components/related-content/related-content-section.d.ts +16 -1
  80. package/dist/components/related-content/related-content-section.d.ts.map +1 -1
  81. package/dist/components/shared/article-author-byline.d.ts +58 -0
  82. package/dist/components/shared/article-author-byline.d.ts.map +1 -0
  83. package/dist/components/shared/product-release/release-detail-page.d.ts +4 -1
  84. package/dist/components/shared/product-release/release-detail-page.d.ts.map +1 -1
  85. package/dist/components/social-icon-row.d.ts +19 -4
  86. package/dist/components/social-icon-row.d.ts.map +1 -1
  87. package/dist/components/tickets/index.cjs +80 -80
  88. package/dist/components/tickets/index.js +8 -8
  89. package/dist/components/ui/button/button.d.ts +1 -1
  90. package/dist/components/ui/button/button.d.ts.map +1 -1
  91. package/dist/components/ui/file-manager/index.cjs +20 -20
  92. package/dist/components/ui/file-manager/index.js +1 -1
  93. package/dist/components/ui/index.cjs +9 -7
  94. package/dist/components/ui/index.cjs.map +1 -1
  95. package/dist/components/ui/index.js +8 -6
  96. package/dist/hooks/index.cjs +3 -3
  97. package/dist/hooks/index.js +2 -2
  98. package/dist/index.cjs +14 -10
  99. package/dist/index.cjs.map +1 -1
  100. package/dist/index.js +20 -16
  101. package/dist/types/blog.d.ts +7 -0
  102. package/dist/types/blog.d.ts.map +1 -1
  103. package/dist/types/entity-author.d.ts +21 -0
  104. package/dist/types/entity-author.d.ts.map +1 -0
  105. package/dist/types/index.cjs.map +1 -1
  106. package/dist/types/index.d.ts +1 -0
  107. package/dist/types/index.d.ts.map +1 -1
  108. package/dist/types/index.js.map +1 -1
  109. package/dist/types/product-release.d.ts +2 -7
  110. package/dist/types/product-release.d.ts.map +1 -1
  111. package/dist/utils/common.d.ts +9 -0
  112. package/dist/utils/common.d.ts.map +1 -1
  113. package/dist/utils/content-href.d.ts.map +1 -1
  114. package/dist/utils/index.cjs +12 -3
  115. package/dist/utils/index.cjs.map +1 -1
  116. package/dist/utils/index.d.ts +1 -1
  117. package/dist/utils/index.d.ts.map +1 -1
  118. package/dist/utils/index.js +12 -4
  119. package/dist/utils/index.js.map +1 -1
  120. package/package.json +1 -1
  121. package/src/components/chat/entity-cards/entity-author-card.tsx +30 -11
  122. package/src/components/chat/index.ts +1 -0
  123. package/src/components/chat/types/entities/onboarding-guide.ts +3 -7
  124. package/src/components/faq/faq-section.tsx +4 -1
  125. package/src/components/icons/x-logo.tsx +2 -2
  126. package/src/components/index.ts +5 -0
  127. package/src/components/onboarding-guides/onboarding-guide-detail-view.tsx +27 -0
  128. package/src/components/related-content/index.ts +1 -0
  129. package/src/components/related-content/related-content-section.tsx +84 -8
  130. package/src/components/shared/article-author-byline.tsx +187 -0
  131. package/src/components/shared/product-release/release-detail-page.tsx +18 -21
  132. package/src/components/social-icon-row.tsx +68 -22
  133. package/src/components/ui/button/button.tsx +13 -0
  134. package/src/types/blog.ts +9 -1
  135. package/src/types/entity-author.ts +20 -0
  136. package/src/types/index.ts +1 -0
  137. package/src/types/product-release.ts +2 -7
  138. package/src/utils/__tests__/content-href.test.ts +3 -0
  139. package/src/utils/common.ts +12 -0
  140. package/src/utils/content-href.ts +5 -0
  141. package/src/utils/index.ts +1 -1
  142. package/dist/chunk-265KKBV2.js.map +0 -1
  143. package/dist/chunk-2FCXJTOV.js.map +0 -1
  144. package/dist/chunk-3TDLFCCS.cjs.map +0 -1
  145. package/dist/chunk-4HHYUEMD.js.map +0 -1
  146. package/dist/chunk-6LK4VEXE.cjs.map +0 -1
  147. package/dist/chunk-6TB24AUH.js.map +0 -1
  148. package/dist/chunk-LHR7MBUY.js.map +0 -1
  149. package/dist/chunk-LKI3YCAX.js.map +0 -1
  150. package/dist/chunk-LZL6P7SN.cjs.map +0 -1
  151. package/dist/chunk-MKVKVJQQ.js.map +0 -1
  152. package/dist/chunk-RCW2IL4K.cjs.map +0 -1
  153. package/dist/chunk-SGJBUL2Y.cjs.map +0 -1
  154. package/dist/chunk-TU26IZPO.cjs.map +0 -1
  155. package/dist/chunk-UGFSMA7K.cjs.map +0 -1
  156. package/dist/chunk-VAUI3CND.js.map +0 -1
  157. /package/dist/{chunk-HMFBMVJC.js.map → chunk-6GBA6YJN.js.map} +0 -0
  158. /package/dist/{chunk-D524LJYO.js.map → chunk-RUMSS73U.js.map} +0 -0
  159. /package/dist/{chunk-EFIEQ4XD.js.map → chunk-YMZZ5THD.js.map} +0 -0
@@ -26,21 +26,21 @@
26
26
 
27
27
 
28
28
 
29
- var _chunkRCW2IL4Kcjs = require('../../chunk-RCW2IL4K.cjs');
30
- require('../../chunk-GYKDSPC4.cjs');
29
+ var _chunkFBH73RRMcjs = require('../../chunk-FBH73RRM.cjs');
30
+ require('../../chunk-3DC6MHW6.cjs');
31
31
  require('../../chunk-27APPAJN.cjs');
32
- require('../../chunk-SGJBUL2Y.cjs');
32
+ require('../../chunk-7VMEOFEA.cjs');
33
33
  require('../../chunk-6JINAOI7.cjs');
34
34
  require('../../chunk-PXXS27EE.cjs');
35
- require('../../chunk-6LK4VEXE.cjs');
35
+ require('../../chunk-EB76VWM4.cjs');
36
36
  require('../../chunk-DAAFVOTL.cjs');
37
37
  require('../../chunk-MEAR2WHS.cjs');
38
38
  require('../../chunk-XL4V2PYG.cjs');
39
39
  require('../../chunk-BZFW3FOF.cjs');
40
40
  require('../../chunk-G7UE6RKV.cjs');
41
- require('../../chunk-TU26IZPO.cjs');
41
+ require('../../chunk-N5UOJC3V.cjs');
42
42
  require('../../chunk-WBR7H6E3.cjs');
43
- require('../../chunk-Z4IBEIWD.cjs');
43
+ require('../../chunk-LGLPNWS6.cjs');
44
44
  require('../../chunk-FIG2RKZF.cjs');
45
45
  require('../../chunk-C6ASEPZL.cjs');
46
46
  require('../../chunk-WZW7C7TF.cjs');
@@ -72,5 +72,5 @@ require('../../chunk-VRHGVLSL.cjs');
72
72
 
73
73
 
74
74
 
75
- exports.AppHeader = _chunkRCW2IL4Kcjs.AppHeader; exports.AppLayout = _chunkRCW2IL4Kcjs.AppLayout; exports.AppLayoutDrawer = _chunkRCW2IL4Kcjs.AppLayoutDrawerRoot; exports.AppLayoutDrawerBody = _chunkRCW2IL4Kcjs.AppLayoutDrawerBody; exports.AppLayoutDrawerClose = _chunkRCW2IL4Kcjs.AppLayoutDrawerClose; exports.AppLayoutDrawerContent = _chunkRCW2IL4Kcjs.AppLayoutDrawerContent; exports.AppLayoutDrawerDescription = _chunkRCW2IL4Kcjs.AppLayoutDrawerDescription; exports.AppLayoutDrawerFooter = _chunkRCW2IL4Kcjs.AppLayoutDrawerFooter; exports.AppLayoutDrawerHeader = _chunkRCW2IL4Kcjs.AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = _chunkRCW2IL4Kcjs.AppLayoutDrawerTitle; exports.AppLayoutDrawerTrigger = _chunkRCW2IL4Kcjs.AppLayoutDrawerTrigger; exports.ClientOnlyHeader = _chunkRCW2IL4Kcjs.ClientOnlyHeader; exports.Header = _chunkRCW2IL4Kcjs.Header; exports.HeaderButton = _chunkRCW2IL4Kcjs.HeaderButton; exports.HeaderGlobalSearch = _chunkRCW2IL4Kcjs.HeaderGlobalSearch; exports.HeaderMingoButton = _chunkRCW2IL4Kcjs.HeaderMingoButton; exports.HeaderOrganizationFilter = _chunkRCW2IL4Kcjs.HeaderOrganizationFilter; exports.HeaderSkeleton = _chunkRCW2IL4Kcjs.HeaderSkeleton; exports.MobileBurgerMenu = _chunkRCW2IL4Kcjs.MobileBurgerMenu; exports.MobileNavPanel = _chunkRCW2IL4Kcjs.MobileNavPanel; exports.NavigationSidebar = _chunkRCW2IL4Kcjs.NavigationSidebar; exports.SlidingSidebar = _chunkRCW2IL4Kcjs.SlidingSidebar; exports.StickySectionNav = _chunkRCW2IL4Kcjs.StickySectionNav; exports.useAppLayoutDrawerContainer = _chunkRCW2IL4Kcjs.useAppLayoutDrawerContainer; exports.useSectionNavigation = _chunkRCW2IL4Kcjs.useSectionNavigation;
75
+ exports.AppHeader = _chunkFBH73RRMcjs.AppHeader; exports.AppLayout = _chunkFBH73RRMcjs.AppLayout; exports.AppLayoutDrawer = _chunkFBH73RRMcjs.AppLayoutDrawerRoot; exports.AppLayoutDrawerBody = _chunkFBH73RRMcjs.AppLayoutDrawerBody; exports.AppLayoutDrawerClose = _chunkFBH73RRMcjs.AppLayoutDrawerClose; exports.AppLayoutDrawerContent = _chunkFBH73RRMcjs.AppLayoutDrawerContent; exports.AppLayoutDrawerDescription = _chunkFBH73RRMcjs.AppLayoutDrawerDescription; exports.AppLayoutDrawerFooter = _chunkFBH73RRMcjs.AppLayoutDrawerFooter; exports.AppLayoutDrawerHeader = _chunkFBH73RRMcjs.AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = _chunkFBH73RRMcjs.AppLayoutDrawerTitle; exports.AppLayoutDrawerTrigger = _chunkFBH73RRMcjs.AppLayoutDrawerTrigger; exports.ClientOnlyHeader = _chunkFBH73RRMcjs.ClientOnlyHeader; exports.Header = _chunkFBH73RRMcjs.Header; exports.HeaderButton = _chunkFBH73RRMcjs.HeaderButton; exports.HeaderGlobalSearch = _chunkFBH73RRMcjs.HeaderGlobalSearch; exports.HeaderMingoButton = _chunkFBH73RRMcjs.HeaderMingoButton; exports.HeaderOrganizationFilter = _chunkFBH73RRMcjs.HeaderOrganizationFilter; exports.HeaderSkeleton = _chunkFBH73RRMcjs.HeaderSkeleton; exports.MobileBurgerMenu = _chunkFBH73RRMcjs.MobileBurgerMenu; exports.MobileNavPanel = _chunkFBH73RRMcjs.MobileNavPanel; exports.NavigationSidebar = _chunkFBH73RRMcjs.NavigationSidebar; exports.SlidingSidebar = _chunkFBH73RRMcjs.SlidingSidebar; exports.StickySectionNav = _chunkFBH73RRMcjs.StickySectionNav; exports.useAppLayoutDrawerContainer = _chunkFBH73RRMcjs.useAppLayoutDrawerContainer; exports.useSectionNavigation = _chunkFBH73RRMcjs.useSectionNavigation;
76
76
  //# sourceMappingURL=index.cjs.map
@@ -26,21 +26,21 @@ import {
26
26
  StickySectionNav,
27
27
  useAppLayoutDrawerContainer,
28
28
  useSectionNavigation
29
- } from "../../chunk-6TB24AUH.js";
30
- import "../../chunk-HMFBMVJC.js";
29
+ } from "../../chunk-CBIQDPHK.js";
30
+ import "../../chunk-6GBA6YJN.js";
31
31
  import "../../chunk-MJNXIEV2.js";
32
- import "../../chunk-VAUI3CND.js";
32
+ import "../../chunk-NR535XIY.js";
33
33
  import "../../chunk-M2OCXTNT.js";
34
34
  import "../../chunk-PHWQLKVE.js";
35
- import "../../chunk-LKI3YCAX.js";
35
+ import "../../chunk-NAOTZAKM.js";
36
36
  import "../../chunk-ZXZJSTNV.js";
37
37
  import "../../chunk-4YKGXZ7W.js";
38
38
  import "../../chunk-LXC6P2EO.js";
39
39
  import "../../chunk-EL5YVPD5.js";
40
40
  import "../../chunk-PLJLE4A4.js";
41
- import "../../chunk-2FCXJTOV.js";
41
+ import "../../chunk-LDEXTWMK.js";
42
42
  import "../../chunk-OHPI2HRK.js";
43
- import "../../chunk-265KKBV2.js";
43
+ import "../../chunk-V4IIBNTA.js";
44
44
  import "../../chunk-XTCBRQN2.js";
45
45
  import "../../chunk-4WZOFD46.js";
46
46
  import "../../chunk-6U3IUD57.js";
@@ -3,7 +3,8 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkLZL6P7SNcjs = require('../../chunk-LZL6P7SN.cjs');
6
+
7
+ var _chunk4MXBBBHBcjs = require('../../chunk-4MXBBBHB.cjs');
7
8
 
8
9
 
9
10
  var _chunkT7AJBKZPcjs = require('../../chunk-T7AJBKZP.cjs');
@@ -22,7 +23,7 @@ require('../../chunk-VFKQMAUF.cjs');
22
23
 
23
24
 
24
25
 
25
- var _chunk6LK4VEXEcjs = require('../../chunk-6LK4VEXE.cjs');
26
+ var _chunkEB76VWM4cjs = require('../../chunk-EB76VWM4.cjs');
26
27
  require('../../chunk-DAAFVOTL.cjs');
27
28
 
28
29
 
@@ -33,11 +34,11 @@ require('../../chunk-BZFW3FOF.cjs');
33
34
 
34
35
 
35
36
  var _chunkG7UE6RKVcjs = require('../../chunk-G7UE6RKV.cjs');
36
- require('../../chunk-TU26IZPO.cjs');
37
+ require('../../chunk-N5UOJC3V.cjs');
37
38
 
38
39
 
39
40
  var _chunkWBR7H6E3cjs = require('../../chunk-WBR7H6E3.cjs');
40
- require('../../chunk-Z4IBEIWD.cjs');
41
+ require('../../chunk-LGLPNWS6.cjs');
41
42
  require('../../chunk-FIG2RKZF.cjs');
42
43
  require('../../chunk-C6ASEPZL.cjs');
43
44
  require('../../chunk-WZW7C7TF.cjs');
@@ -70,7 +71,7 @@ function OnboardingGuidesCatalogSkeleton() {
70
71
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-6 w-40 bg-ods-border/70 rounded" }),
71
72
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-8 bg-ods-text-secondary/20 rounded-full" })
72
73
  ] }),
73
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6LK4VEXEcjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, cardIdx)) })
74
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEB76VWM4cjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, cardIdx)) })
74
75
  ] }, sectionIdx)) })
75
76
  ] });
76
77
  }
@@ -139,21 +140,21 @@ function OnboardingGuidesCatalogView({
139
140
  });
140
141
  };
141
142
  const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _4 => _4.source]), () => ( "openframe"));
142
- const docSearch = _chunkLZL6P7SNcjs.useDocSearch.call(void 0, {
143
+ const docSearch = _chunk4MXBBBHBcjs.useDocSearch.call(void 0, {
143
144
  source,
144
145
  baseRoute: basePath,
145
146
  onNavigate: (path) => router.push(path),
146
147
  tableIds: ["onboarding-guides"]
147
148
  });
148
149
  const defaultRenderCard = (guide) => {
149
- const cta = _chunk6LK4VEXEcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _5 => _5.composeContentUrl]), {
150
+ const cta = _chunkEB76VWM4cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _5 => _5.composeContentUrl]), {
150
151
  type: "onboarding_guide",
151
152
  slug: guide.slug,
152
153
  basePath,
153
154
  platforms: guide.onboarding_guide_platforms
154
155
  });
155
156
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
156
- _chunk6LK4VEXEcjs.OnboardingGuideCard,
157
+ _chunkEB76VWM4cjs.OnboardingGuideCard,
157
158
  {
158
159
  guide,
159
160
  href: cta.href,
@@ -165,7 +166,7 @@ function OnboardingGuidesCatalogView({
165
166
  const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
166
167
  const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
167
168
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
168
- _chunkLZL6P7SNcjs.DocSearchBar,
169
+ _chunk4MXBBBHBcjs.DocSearchBar,
169
170
  {
170
171
  placeholder: "Search onboarding guides, releases, case studies\u2026",
171
172
  query: docSearch.query,
@@ -177,7 +178,7 @@ function OnboardingGuidesCatalogView({
177
178
  }
178
179
  ),
179
180
  sections.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
180
- _chunk6LK4VEXEcjs.FilterPillRow,
181
+ _chunkEB76VWM4cjs.FilterPillRow,
181
182
  {
182
183
  label: "Section",
183
184
  selectedValue: activeSection,
@@ -187,7 +188,7 @@ function OnboardingGuidesCatalogView({
187
188
  )
188
189
  ] });
189
190
  if (selfFetch && guidesRes.error) {
190
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6LK4VEXEcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
191
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEB76VWM4cjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
191
192
  }
192
193
  if (selfFetch && guidesRes.data == null && isLoading) {
193
194
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingGuidesCatalogSkeleton, {});
@@ -212,11 +213,14 @@ function OnboardingGuidesCatalogView({
212
213
 
213
214
 
214
215
  function OnboardingGuideDetailView({
216
+ authorHref,
217
+ authorBio,
218
+ fallbackBio,
215
219
  initialData,
216
220
  slug,
217
221
  guideEndpoint,
218
222
  related = [],
219
- MarkdownRenderer = _chunk6LK4VEXEcjs.SimpleMarkdownRenderer,
223
+ MarkdownRenderer = _chunkEB76VWM4cjs.SimpleMarkdownRenderer,
220
224
  renderRelatedCard,
221
225
  backHref,
222
226
  backLabel = "Back to Getting Started",
@@ -226,29 +230,29 @@ function OnboardingGuideDetailView({
226
230
  const runtime = _chunkMEAR2WHScjs.useChatRuntime.call(void 0, );
227
231
  const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
228
232
  const { data: guide, isLoading, error, reload } = _chunkT7AJBKZPcjs.useSelfFetch.call(void 0, url, { initialData });
229
- const { ref: videoWarmupRef } = _chunk6LK4VEXEcjs.useVideoWarmup.call(void 0, {
233
+ const { ref: videoWarmupRef } = _chunkEB76VWM4cjs.useVideoWarmup.call(void 0, {
230
234
  videoUrl: _optionalChain([guide, 'optionalAccess', _6 => _6.main_video_url]),
231
235
  supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _7 => _7.endpoints, 'access', _8 => _8.supabaseStorageOrigin])
232
236
  });
233
237
  if (error || !guide && !isLoading) {
234
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6LK4VEXEcjs.LoadError, { message: "Guide not found.", onRetry: reload });
238
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEB76VWM4cjs.LoadError, { message: "Guide not found.", onRetry: reload });
235
239
  }
236
240
  if (!guide) {
237
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLZL6P7SNcjs.DetailPageSkeleton, { showImageGallery: false });
241
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4MXBBBHBcjs.DetailPageSkeleton, { showImageGallery: false });
238
242
  }
239
- const captionsUrl = _chunk6LK4VEXEcjs.getCaptionsUrl.call(void 0, "onboarding_guide", guide.id, guide.srt_content);
243
+ const captionsUrl = _chunkEB76VWM4cjs.getCaptionsUrl.call(void 0, "onboarding_guide", guide.id, guide.srt_content);
240
244
  const videoPoster = guide.main_video_thumbnail || guide.featured_image || guide.og_image_url || _optionalChain([runtime, 'optionalAccess', _9 => _9.resolvePlaceholderUrl, 'optionalCall', _10 => _10(guide.title, { aspect: "wide" })]) || void 0;
241
245
  const defaultRenderRelatedCard = (g) => {
242
- const cta = _chunk6LK4VEXEcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.composeContentUrl]), {
246
+ const cta = _chunkEB76VWM4cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.composeContentUrl]), {
243
247
  type: "onboarding_guide",
244
248
  slug: g.slug,
245
249
  basePath,
246
250
  platforms: g.onboarding_guide_platforms
247
251
  });
248
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6LK4VEXEcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
252
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEB76VWM4cjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
249
253
  };
250
254
  const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
251
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6LK4VEXEcjs.PageShell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-6 md:space-y-8", children: [
255
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEB76VWM4cjs.PageShell, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-6 md:space-y-8", children: [
252
256
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
253
257
  _chunkWBR7H6E3cjs.next_link_default,
254
258
  {
@@ -261,11 +265,12 @@ function OnboardingGuideDetailView({
261
265
  }
262
266
  ),
263
267
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "text-h1 tracking-[-1.12px] text-ods-text-primary", children: guide.title }),
264
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6LK4VEXEcjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
268
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEB76VWM4cjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
265
269
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
266
- _chunk6LK4VEXEcjs.EntityAuthorCard,
270
+ _chunkEB76VWM4cjs.EntityAuthorCard,
267
271
  {
268
272
  author: guide.author,
273
+ authorHref,
269
274
  publishedAt: guide.published_at,
270
275
  extraCells: [
271
276
  {
@@ -277,7 +282,7 @@ function OnboardingGuideDetailView({
277
282
  }
278
283
  ),
279
284
  (guide.main_video_url || guide.youtube_url) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
280
- _chunk6LK4VEXEcjs.EntityVideoSection,
285
+ _chunkEB76VWM4cjs.EntityVideoSection,
281
286
  {
282
287
  mainVideoUrl: guide.main_video_url,
283
288
  youtubeUrl: guide.youtube_url || void 0,
@@ -294,13 +299,24 @@ function OnboardingGuideDetailView({
294
299
  ) }),
295
300
  guide.content && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: guide.content }) }),
296
301
  guide.video_bites && guide.video_bites.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
297
- _chunk6LK4VEXEcjs.VideoBitesDisplay,
302
+ _chunkEB76VWM4cjs.VideoBitesDisplay,
298
303
  {
299
304
  bites: guide.video_bites,
300
305
  filterPublished: true,
301
306
  showTitle: false
302
307
  }
303
308
  ),
309
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
310
+ _chunk4MXBBBHBcjs.ArticleAuthorByline,
311
+ {
312
+ author: _nullishCoalesce(_optionalChain([guide, 'access', _12 => _12.author, 'optionalAccess', _13 => _13.full_name]), () => ( null)),
313
+ avatar: _optionalChain([guide, 'access', _14 => _14.author, 'optionalAccess', _15 => _15.avatar_url]),
314
+ jobTitle: _optionalChain([guide, 'access', _16 => _16.author, 'optionalAccess', _17 => _17.job_title]),
315
+ bio: _nullishCoalesce(authorBio, () => ( _optionalChain([guide, 'access', _18 => _18.author, 'optionalAccess', _19 => _19.about]))),
316
+ href: authorHref,
317
+ fallbackBio
318
+ }
319
+ ),
304
320
  related.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 pt-8 border-t border-ods-border", children: [
305
321
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h2", { className: "text-h3 tracking-[-0.36px] text-ods-text-primary", children: [
306
322
  "More in ",
@@ -332,10 +348,10 @@ function useOnboardingGuides(filters) {
332
348
  queryKey: onboardingGuideKeys.list(filters || {}),
333
349
  queryFn: async () => {
334
350
  const params = new URLSearchParams();
335
- if (_optionalChain([filters, 'optionalAccess', _12 => _12.search])) params.set("search", filters.search);
336
- if (_optionalChain([filters, 'optionalAccess', _13 => _13.section])) params.set("section", filters.section);
337
- if (_optionalChain([filters, 'optionalAccess', _14 => _14.limit])) params.set("limit", filters.limit.toString());
338
- if (_optionalChain([filters, 'optionalAccess', _15 => _15.offset])) params.set("offset", filters.offset.toString());
351
+ if (_optionalChain([filters, 'optionalAccess', _20 => _20.search])) params.set("search", filters.search);
352
+ if (_optionalChain([filters, 'optionalAccess', _21 => _21.section])) params.set("section", filters.section);
353
+ if (_optionalChain([filters, 'optionalAccess', _22 => _22.limit])) params.set("limit", filters.limit.toString());
354
+ if (_optionalChain([filters, 'optionalAccess', _23 => _23.offset])) params.set("offset", filters.offset.toString());
339
355
  const res = await fetch(`/api/onboarding-guides?${params}`);
340
356
  if (!res.ok) throw new Error("Failed to fetch onboarding guides");
341
357
  return res.json();
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/components/onboarding-guides/index.cjs","../../../src/components/onboarding-guides/onboarding-guides-catalog-view.tsx","../../../src/components/onboarding-guides/onboarding-guides-catalog-skeleton.tsx","../../../src/components/onboarding-guides/onboarding-guide-detail-view.tsx","../../../src/components/onboarding-guides/hooks/use-onboarding-guides.ts"],"names":["jsx","jsxs"],"mappings":"AAAA,6rBAAY;AACZ;AACE;AACA;AACA;AACF,4DAAiC;AACjC;AACE;AACF,4DAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC;AACE;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC;AACE;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACA;ACxBA,8BAAuD;AACvD,2CAA8B;AD0B9B;AACA;AExBQ,+CAAA;AAPD,SAAS,+BAAA,CAAA,EAAkC;AAChD,EAAA,uBACE,8BAAA,KAAC,EAAA,EAAI,SAAA,EAAU,2CAAA,EAIb,QAAA,EAAA;AAAA,oBAAA,8BAAA,KAAC,EAAA,EAAI,SAAA,EAAU,WAAA,EACb,QAAA,EAAA;AAAA,sBAAA,6BAAA,KAAC,EAAA,EAAI,SAAA,EAAU,8DAAA,CAA8D,CAAA;AAAA,sBAC7E,8BAAA,KAAC,EAAA,EAAI,SAAA,EAAU,uFAAA,EACb,QAAA,EAAA;AAAA,wBAAA,6BAAA,KAAC,EAAA,EAAI,SAAA,EAAU,oCAAA,CAAoC,CAAA;AAAA,QAClD,CAAC,CAAA,EAAG,CAAA,EAAG,CAAA,EAAG,CAAC,CAAA,CAAE,G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C,MAAA;AAClB,IAAA;AACW,IAAA;AACZ,EAAA;AACH;AJsR+E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/components/onboarding-guides/index.cjs","sourcesContent":[null,"'use client'\n\n/**\n * Public-facing catalog view for `/onboarding-guides`.\n *\n * Two data modes:\n * - **controlled** (hub SSR): pass `initialGuides` + `initialSections`\n * (server-fetched; section changes re-render the host with new props).\n * - **self-fetching** (config-only embed): omit the data props and pass\n * `guidesEndpoint` + `sectionsEndpoint` (the api routes). The view fetches\n * the guides (refetching on `?section=` change) + the section list itself —\n * no host data layer. (Plain fetch + useEffect, the DeliveryLists pattern.)\n *\n * The view renders ONLY its body + its OWN controls (the RAG `<DocSearchBar>` +\n * dynamic section pills — onboarding's controls are content-driven, unlike the\n * static search/filter the `DevSectionView` chrome ships). It does NOT render the\n * page chrome: the CALLER wraps it in `<DevSectionPage sectionKey=\"onboarding\">`\n * (hero + back button), exactly like the roadmap / releases / delivery pages — so\n * every dev-center surface composes the same way and the view stays embeddable in\n * tabbed contexts. Card hrefs flow through `runtime.composeContentUrl`.\n */\n\nimport { useMemo, useTransition, type ReactNode } from 'react'\nimport { GraduationCap } from 'lucide-react'\n\nimport { useRouter, useSearchParams } from '../../embed-shims'\nimport { useSelfFetch } from '../../hooks/use-self-fetch'\nimport { DocSearchBar, useDocSearch } from '../shared/doc-search'\nimport { FilterPillRow } from '../ui/filter-pill-row'\nimport { LoadError } from '../ui/error-state'\nimport { OnboardingGuideCard } from '../chat/entity-cards/onboarding-guide-card'\nimport { OnboardingGuidesCatalogSkeleton } from './onboarding-guides-catalog-skeleton'\nimport { useChatRuntime } from '../../contexts/chat-runtime-context'\nimport type { OnboardingGuide } from '../chat/types/entities/onboarding-guide'\nimport { resolveContentHref } from '../../utils/content-href'\n\ntype SectionSummary = { section: string; section_order: number; count: number }\n\nexport interface OnboardingGuidesCatalogViewProps {\n /** Controlled / SSR: server-fetched guides. Omit + pass `guidesEndpoint`\n * for the self-fetching config-only mode. */\n initialGuides?: OnboardingGuide[]\n initialSections?: SectionSummary[]\n initialSection?: string\n /** Self-fetch: GET list endpoint (the api route). Appends `?section=`. */\n guidesEndpoint?: string\n /** Self-fetch: GET section-summary endpoint (the api route). */\n sectionsEndpoint?: string\n /** Optional per-row card renderer override. */\n renderCard?: (guide: OnboardingGuide) => ReactNode\n /** Base path the catalog is mounted under (fallback href prefix + `?section=`\n * push target). Default `/onboarding-guides`. */\n basePath?: string\n}\n\nexport function OnboardingGuidesCatalogView({\n initialGuides,\n initialSections,\n initialSection = '',\n guidesEndpoint,\n sectionsEndpoint,\n renderCard,\n basePath = '/onboarding-guides',\n}: OnboardingGuidesCatalogViewProps) {\n const router = useRouter()\n const searchParams = useSearchParams()\n const [isPending, startTransition] = useTransition()\n const runtime = useChatRuntime()\n\n // Self-fetch only when the host supplied NO data but DID give an endpoint.\n const selfFetch = initialGuides === undefined && guidesEndpoint !== undefined\n // Active section: from the URL when self-fetching, from the prop (host RSC\n // already read the URL server-side) when controlled.\n const sectionValue = selfFetch ? searchParams.get('section') ?? '' : initialSection\n const activeSection = sectionValue || 'all'\n\n // Self-fetch the guides (refetched whenever `?section=` changes — it's folded\n // into the url) + the section summaries. Controlled mode passes `null` urls so\n // the hook never fetches. The guides fetch carries the error/retry affordance.\n const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : ''\n const guidesRes = useSelfFetch<{ data?: OnboardingGuide[] }>(\n selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null,\n )\n const sectionsRes = useSelfFetch<SectionSummary[]>(\n selfFetch && sectionsEndpoint ? sectionsEndpoint : null,\n )\n\n // Invariant: `guidesRes.data` is `null` until the first fetch resolves, then\n // `{ data: [...] }`. The `?.data ?? []` chain collapses never-fetched (null) and\n // legitimately-empty ([]) to the same `[]` — so the first-load skeleton gate below\n // keys on the OUTER `guidesRes.data == null` to distinguish them (an empty section\n // toggle keeps the chrome; only a true cold start shows the full-page skeleton).\n const guides = initialGuides ?? guidesRes.data?.data ?? []\n const sections = initialSections ?? (Array.isArray(sectionsRes.data) ? sectionsRes.data : [])\n const isLoading = selfFetch ? guidesRes.isLoading : false\n\n // Section grouping. Data arrives already filtered (server-side `?section=`\n // for the host, or our `?section=` fetch); this just buckets visible rows.\n const grouped = useMemo(() => {\n const map = new Map<string, { section_order: number; guides: OnboardingGuide[] }>()\n for (const g of guides) {\n const existing = map.get(g.section)\n if (existing) {\n if (g.section_order < existing.section_order) existing.section_order = g.section_order\n existing.guides.push(g)\n } else {\n map.set(g.section, { section_order: g.section_order, guides: [g] })\n }\n }\n for (const entry of map.values()) {\n entry.guides.sort((a, b) => a.step_order - b.step_order || a.title.localeCompare(b.title))\n }\n return Array.from(map.entries())\n .map(([section, info]) => ({ section, ...info }))\n .sort((a, b) => a.section_order - b.section_order || a.section.localeCompare(b.section))\n }, [guides])\n\n const sectionFilterOptions = useMemo(\n () => [\n { value: 'all', label: `All (${guides.length})` },\n ...sections.map((s) => ({ value: s.section, label: `${s.section} (${s.count})` })),\n ],\n [guides.length, sections],\n )\n\n // Section pill change → push `?section=X`. Controlled mode: host RSC\n // re-fetches. Self-fetch mode: our guides effect re-fetches on the URL change.\n const setSection = (value: string) => {\n const params = new URLSearchParams(searchParams.toString())\n if (value === 'all') {\n params.delete('section')\n } else {\n params.set('section', value)\n }\n const qs = params.toString()\n startTransition(() => {\n router.push(qs ? `${basePath}?${qs}` : basePath)\n })\n }\n\n // Search bar — scoped to onboarding-guides only via RAG-search `tableIds`.\n const source = runtime?.source ?? 'openframe'\n const docSearch = useDocSearch({\n source,\n baseRoute: basePath,\n onNavigate: (path) => router.push(path),\n tableIds: ['onboarding-guides'],\n })\n\n // Per-row card renderer — runtime-composed href, fallback to relative.\n const defaultRenderCard = (guide: OnboardingGuide) => {\n const cta = resolveContentHref(runtime?.composeContentUrl, {\n type: 'onboarding_guide',\n slug: guide.slug,\n basePath,\n platforms: guide.onboarding_guide_platforms,\n })\n return (\n <OnboardingGuideCard\n guide={guide}\n href={cta.href}\n targetPlatform={cta.targetPlatform}\n size=\"catalog\"\n />\n )\n }\n const renderCardFn = renderCard ?? defaultRenderCard\n\n const preControls = (\n <div className=\"space-y-4\">\n <DocSearchBar\n placeholder=\"Search onboarding guides, releases, case studies…\"\n query={docSearch.query}\n onQueryChange={docSearch.setQuery}\n results={docSearch.results}\n isLoading={docSearch.isLoading}\n onResultSelect={docSearch.handleResultSelect}\n showDropdown={docSearch.keepDropdownOpen}\n />\n {sections.length > 0 && (\n <FilterPillRow\n label=\"Section\"\n selectedValue={activeSection}\n onValueChange={setSection}\n options={sectionFilterOptions}\n />\n )}\n </div>\n )\n\n // A failed guides fetch → a RETRYABLE error (not the indistinguishable-from-\n // empty \"no guides found\" state) — parity with the sibling self-fetch views.\n if (selfFetch && guidesRes.error) {\n return <LoadError message=\"Failed to load onboarding guides.\" onRetry={guidesRes.reload} />\n }\n // Full-page skeleton ONLY on the very first load (no data has loaded yet) — a\n // later section toggle that legitimately returns ZERO guides keeps the page\n // chrome (search + section pills) and dims the grid via the className below.\n if (selfFetch && guidesRes.data == null && isLoading) {\n return <OnboardingGuidesCatalogSkeleton />\n }\n\n return (\n <div className=\"w-full flex flex-col gap-10\">\n {preControls}\n {guides.length === 0 ? (\n <div className=\"text-center py-16\">\n <GraduationCap className=\"h-12 w-12 text-ods-text-secondary mx-auto mb-4\" />\n <h2 className=\"text-ods-text-primary font-['DM_Sans'] text-[20px] font-semibold mb-2\">\n No onboarding guides found\n </h2>\n <p className=\"text-ods-text-secondary font-['DM_Sans'] text-[14px]\">\n {activeSection !== 'all'\n ? 'No guides in this section yet.'\n : \"We're working on the onboarding library. Check back soon.\"}\n </p>\n </div>\n ) : (\n <div className={isPending || isLoading ? 'opacity-60 transition-opacity space-y-10' : 'space-y-10'}>\n {grouped.map((sec) => (\n <section key={sec.section} className=\"space-y-4\">\n <h2 className=\"text-h3 tracking-[-0.36px] text-ods-text-primary flex items-center gap-2\">\n {sec.section}\n <span className=\"inline-flex items-center justify-center rounded-full bg-ods-text-secondary/20 text-ods-text-secondary text-xs font-medium px-2 py-0.5\">\n {sec.guides.length}\n </span>\n </h2>\n {/* HORIZONTAL catalog list — single column so consecutive steps\n read top-to-bottom; a grid would visually reorder them. */}\n <ul className=\"flex flex-col gap-4\">\n {sec.guides.map((guide) => (\n <li key={guide.id}>{renderCardFn(guide)}</li>\n ))}\n </ul>\n </section>\n ))}\n </div>\n )}\n </div>\n )\n}\n","'use client'\n\nimport { OnboardingGuideCardSkeleton } from '../chat/entity-cards/onboarding-guide-card'\n\n/**\n * Loading skeleton for `/onboarding-guides` — CHROME-LESS, exactly like the\n * loaded `<OnboardingGuidesCatalogView>`. The HOST page owns the\n * `<DevSectionPage sectionKey=\"onboarding\">` shell (hero + back button);\n * this component renders only what replaces the view: the search/pill\n * placeholder block and the section card lists.\n *\n * HISTORY: this used to mount its own `<DevSectionPage>` — nested inside the\n * page's shell that double-rendered the hero + back button during loading\n * (the view was made chrome-less in the page restructure; the skeleton was\n * missed). Keep BOTH chrome-less.\n *\n * Wrapper mirrors the loaded view's `w-full flex flex-col gap-10`; per-card\n * height matches the loaded catalog card so resolve shifts are zero.\n */\nexport function OnboardingGuidesCatalogSkeleton() {\n return (\n <div className=\"w-full flex flex-col gap-10 animate-pulse\">\n {/* Search input placeholder — matches `<SearchInput>` h-12 — plus the\n section pill row (~74 px incl. padding), same as the loaded\n preControls block. */}\n <div className=\"space-y-4\">\n <div className=\"h-12 w-full bg-ods-card border border-ods-border rounded-md\" />\n <div className=\"flex flex-wrap items-center gap-3 p-4 bg-ods-card border border-ods-border rounded-lg\">\n <div className=\"h-4 w-14 bg-ods-border/60 rounded\" />\n {[0, 1, 2, 3].map((i) => (\n <div\n key={i}\n className=\"h-10 w-24 bg-ods-card border border-ods-border rounded-md\"\n />\n ))}\n </div>\n </div>\n <div className=\"space-y-10\">\n {[4, 3, 3].map((cardCount, sectionIdx) => (\n <section key={sectionIdx} className=\"space-y-4\">\n <h2 className=\"text-h3 tracking-[-0.36px] text-ods-text-primary flex items-center gap-2\">\n <span className=\"h-6 w-40 bg-ods-border/70 rounded\" />\n <span className=\"h-5 w-8 bg-ods-text-secondary/20 rounded-full\" />\n </h2>\n <ul className=\"flex flex-col gap-4\">\n {Array.from({ length: cardCount }).map((_, cardIdx) => (\n <li key={cardIdx}>\n <OnboardingGuideCardSkeleton size=\"catalog\" />\n </li>\n ))}\n </ul>\n </section>\n ))}\n </div>\n </div>\n )\n}\n","'use client'\n\n/**\n * Public-facing detail view for `/onboarding-guides/<slug>`.\n *\n * Two modes:\n * - **controlled** (hub SSR): pass `initialData` (a server-fetched guide).\n * - **self-fetching** (config-only embed): pass `slug` + `guideEndpoint`\n * (the api route) and the view fetches the guide itself — no host data\n * layer. (Plain fetch + useEffect, the DeliveryLists pattern.)\n *\n * Everything else flows through lib primitives + the ChatRuntime context\n * (markdown, video warmup, captions, related-card hrefs via\n * `runtime.composeContentUrl`). Optional `MarkdownRenderer` lets hosts swap a\n * renderer with extra plugins.\n */\n\nimport { type ComponentType, type ReactNode } from 'react'\nimport { ArrowLeft } from 'lucide-react'\n\nimport { Link } from '../../embed-shims'\n// PageShell (max-w-[1920px]) — the guide detail content must share the SAME\n// container sizing as the related-content/FAQ rail the host page renders\n// below it (which uses the wide shell). ArticleDetailLayout (1280px) made\n// the detail block visibly narrower than the rail.\nimport { PageShell } from '../layout/article-detail-layout'\nimport { DetailPageSkeleton } from '../shared/detail-page-skeleton'\nimport { EntityVideoSection } from '../features/entity-video-section'\nimport { VideoBitesDisplay } from '../features/video-bites-display'\nimport { useVideoWarmup } from '../features/use-video-warmup'\nimport { getCaptionsUrl } from '../features/captions-url'\nimport { SimpleMarkdownRenderer } from '../ui/simple-markdown-renderer'\nimport { EntityTagBadges } from '../features/entity-tag-badges'\nimport { LoadError } from '../ui/error-state'\nimport { EntityAuthorCard } from '../chat/entity-cards/entity-author-card'\nimport { OnboardingGuideCard } from '../chat/entity-cards/onboarding-guide-card'\nimport { useChatRuntime } from '../../contexts/chat-runtime-context'\nimport type { OnboardingGuide } from '../chat/types/entities/onboarding-guide'\nimport type { VideoTeaser } from '../../types/video-processing'\nimport { resolveContentHref } from '../../utils/content-href'\nimport { useSelfFetch } from '../../hooks/use-self-fetch'\n\nexport interface OnboardingGuideDetailViewProps {\n /** Server-fetched guide (controlled / SSR mode). Omit it and pass\n * `slug` + `guideEndpoint` for the self-fetching config-only mode. */\n initialData?: OnboardingGuide\n /** Self-fetch: the guide's slug (the host reads it from its route). */\n slug?: string\n /** Self-fetch: builds the GET url for a single guide (the api route).\n * e.g. `(s) => \\`/content/api/onboarding-guides/${s}\\``. */\n guideEndpoint?: (slug: string) => string\n related?: OnboardingGuide[]\n /** Optional markdown renderer override. Defaults to lib\n * `<SimpleMarkdownRenderer>`. */\n MarkdownRenderer?: ComponentType<{ content: string }>\n /** Optional per-row related-card renderer override. */\n renderRelatedCard?: (guide: OnboardingGuide) => ReactNode\n /** Back-link target. Defaults to `basePath`. */\n backHref?: string\n /** Back-link label. Defaults to \"Back to Getting Started\". */\n backLabel?: string\n /** Base path the related-card hrefs default to when\n * `runtime.composeContentUrl` is not wired. Default `/onboarding-guides`. */\n basePath?: string\n}\n\nexport function OnboardingGuideDetailView({\n initialData,\n slug,\n guideEndpoint,\n related = [],\n MarkdownRenderer = SimpleMarkdownRenderer,\n renderRelatedCard,\n backHref,\n backLabel = 'Back to Getting Started',\n basePath = '/onboarding-guides',\n}: OnboardingGuideDetailViewProps) {\n const resolvedBackHref = backHref ?? basePath\n const runtime = useChatRuntime()\n\n // Controlled (hub SSR `initialData`) OR self-fetch by slug (config-only embed).\n const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null\n const { data: guide, isLoading, error, reload } = useSelfFetch<OnboardingGuide>(url, { initialData })\n\n // Hooks must run unconditionally — feed them optional-chained values so they\n // no-op while the guide is still loading.\n const { ref: videoWarmupRef } = useVideoWarmup<HTMLDivElement>({\n videoUrl: guide?.main_video_url,\n supabaseStorageOrigin: runtime?.endpoints.supabaseStorageOrigin,\n })\n\n if (error || (!guide && !isLoading)) {\n return <LoadError message=\"Guide not found.\" onRetry={reload} />\n }\n if (!guide) {\n // Skeleton (not a bare \"Loading…\") for parity with every other shared view —\n // catalog, roadmap, releases all render a skeleton on first load, so the detail\n // page shouldn't flash text then content.\n return <DetailPageSkeleton showImageGallery={false} />\n }\n\n const captionsUrl = getCaptionsUrl('onboarding_guide', guide.id, guide.srt_content)\n\n const videoPoster =\n guide.main_video_thumbnail ||\n guide.featured_image ||\n guide.og_image_url ||\n runtime?.resolvePlaceholderUrl?.(guide.title, { aspect: 'wide' }) ||\n undefined\n\n const defaultRenderRelatedCard = (g: OnboardingGuide) => {\n const cta = resolveContentHref(runtime?.composeContentUrl, {\n type: 'onboarding_guide',\n slug: g.slug,\n basePath,\n platforms: g.onboarding_guide_platforms,\n })\n return <OnboardingGuideCard guide={g} href={cta.href} targetPlatform={cta.targetPlatform} />\n }\n const renderRelatedCardFn = renderRelatedCard ?? defaultRenderRelatedCard\n\n return (\n <PageShell>\n <div className=\"space-y-6 md:space-y-8\">\n {/* Back link */}\n <Link\n href={resolvedBackHref}\n className=\"inline-flex items-center gap-2 text-ods-text-secondary hover:text-ods-accent transition-colors\"\n >\n <ArrowLeft className=\"h-4 w-4\" />\n <span className=\"text-h5\">{backLabel}</span>\n </Link>\n\n <h1 className=\"text-h1 tracking-[-1.12px] text-ods-text-primary\">{guide.title}</h1>\n\n {/* Tags — flat onboarding_guide_tags[] from entity_tags. */}\n <EntityTagBadges tags={(guide as any).onboarding_guide_tags} />\n\n {/* Metadata grid — Section · Step | Published | Author. */}\n <EntityAuthorCard\n author={guide.author}\n publishedAt={guide.published_at}\n extraCells={[\n {\n value: `${guide.section} · Step ${guide.step_order}`,\n label: 'Section',\n uppercase: false,\n },\n ]}\n />\n\n {/* Video. `main_video_url` (Mux/MP4) and `youtube_url` are independent\n columns — either populated renders the player. */}\n {(guide.main_video_url || guide.youtube_url) && (\n <div ref={videoWarmupRef}>\n <EntityVideoSection\n mainVideoUrl={guide.main_video_url}\n youtubeUrl={guide.youtube_url || undefined}\n highlightVideoUrl={guide.highlight_video_url}\n mainVideoPoster={videoPoster}\n highlightVideoThumbnail={guide.highlight_video_thumbnail || undefined}\n videoSummary={undefined}\n videoBites={undefined}\n title={guide.title}\n srtContent={guide.srt_content}\n captionsUrl={captionsUrl}\n MarkdownRenderer={MarkdownRenderer}\n />\n </div>\n )}\n\n {/* Markdown body */}\n {guide.content && (\n <div className=\"space-y-4\">\n <MarkdownRenderer content={guide.content} />\n </div>\n )}\n\n {/* Video Bites */}\n {guide.video_bites && guide.video_bites.length > 0 && (\n <VideoBitesDisplay\n bites={guide.video_bites as VideoTeaser[]}\n filterPublished={true}\n showTitle={false}\n />\n )}\n\n {/* Related — same-section, ordered by step. */}\n {related.length > 0 && (\n <div className=\"space-y-4 pt-8 border-t border-ods-border\">\n <h2 className=\"text-h3 tracking-[-0.36px] text-ods-text-primary\">\n More in {guide.section}\n </h2>\n <ul className=\"flex flex-col gap-3\">\n {related.map((r) => (\n <li key={r.id}>{renderRelatedCardFn(r)}</li>\n ))}\n </ul>\n </div>\n )}\n </div>\n </PageShell>\n )\n}\n","'use client'\n\n/**\n * React Query hooks for Onboarding Guides — PUBLIC reads only.\n *\n * Admin mutations (create/update/delete/publish/stats/save-highlight)\n * stay HUB-side in `hooks/use-onboarding-guides.ts` and import the\n * `onboardingGuideKeys.admin` sub-namespace from this module so the\n * cache namespace `['onboarding-guides']` has a single source of truth.\n *\n * Endpoints (`/api/onboarding-guides*`) are host-supplied — non-Next.js\n * embedders must reverse-proxy the same routes. Same precedent as the\n * tickets list hook.\n */\n\nimport { useQuery } from '@tanstack/react-query'\n\nimport type {\n OnboardingGuide,\n OnboardingGuideFilters,\n OnboardingGuideListResponse,\n OnboardingGuideSectionSummary,\n} from '../../chat/types/entities/onboarding-guide'\n\n/**\n * Cache key builder for the `['onboarding-guides']` namespace.\n *\n * Includes BOTH public-read sub-keys (`lists`, `list`, `details`,\n * `detail`, `sections`) AND the `admin` sub-namespace. Admin mutations\n * live hub-side but invalidate against this same builder so a single\n * `qc.invalidateQueries({ queryKey: onboardingGuideKeys.all })` from\n * an admin hook also clears the public read cache.\n */\nexport const onboardingGuideKeys = {\n all: ['onboarding-guides'] as const,\n lists: () => [...onboardingGuideKeys.all, 'list'] as const,\n list: (filters: OnboardingGuideFilters) =>\n [...onboardingGuideKeys.lists(), filters] as const,\n details: () => [...onboardingGuideKeys.all, 'detail'] as const,\n detail: (slug: string) => [...onboardingGuideKeys.details(), slug] as const,\n sections: () => [...onboardingGuideKeys.all, 'sections'] as const,\n admin: {\n all: ['admin', 'onboarding-guides'] as const,\n lists: () => ['admin', 'onboarding-guides', 'list'] as const,\n detail: (slug: string) =>\n ['admin', 'onboarding-guide', slug] as const,\n stats: () => ['admin', 'onboarding-guides', 'stats'] as const,\n },\n}\n\nexport function useOnboardingGuides(filters?: OnboardingGuideFilters) {\n return useQuery({\n queryKey: onboardingGuideKeys.list(filters || {}),\n queryFn: async (): Promise<OnboardingGuideListResponse> => {\n const params = new URLSearchParams()\n if (filters?.search) params.set('search', filters.search)\n if (filters?.section) params.set('section', filters.section)\n if (filters?.limit) params.set('limit', filters.limit.toString())\n if (filters?.offset) params.set('offset', filters.offset.toString())\n const res = await fetch(`/api/onboarding-guides?${params}`)\n if (!res.ok) throw new Error('Failed to fetch onboarding guides')\n return res.json()\n },\n })\n}\n\nexport function useOnboardingGuide(slug: string | undefined) {\n return useQuery({\n queryKey: onboardingGuideKeys.detail(slug || ''),\n queryFn: async (): Promise<OnboardingGuide> => {\n const res = await fetch(`/api/onboarding-guides/${slug}`)\n if (!res.ok) throw new Error('Failed to fetch onboarding guide')\n return res.json()\n },\n enabled: !!slug,\n })\n}\n\nexport function useOnboardingGuideSections() {\n return useQuery({\n queryKey: onboardingGuideKeys.sections(),\n queryFn: async (): Promise<OnboardingGuideSectionSummary[]> => {\n const res = await fetch('/api/onboarding-guides/sections')\n if (!res.ok)\n throw new Error('Failed to fetch onboarding-guide sections')\n return res.json()\n },\n staleTime: 0,\n })\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/components/onboarding-guides/index.cjs","../../../src/components/onboarding-guides/onboarding-guides-catalog-view.tsx","../../../src/components/onboarding-guides/onboarding-guides-catalog-skeleton.tsx","../../../src/components/onboarding-guides/onboarding-guide-detail-view.tsx","../../../src/components/onboarding-guides/hooks/use-onboarding-guides.ts"],"names":["jsx","jsxs"],"mappings":"AAAA,6rBAAY;AACZ;AACE;AACA;AACA;AACA;AACF,4DAAiC;AACjC;AACE;AACF,4DAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC;AACE;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC;AACE;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACA;ACzBA,8BAAuD;AACvD,2CAA8B;AD2B9B;AACA;AEzBQ,+CAAA;AAPD,SAAS,+BAAA,CAAA,EAAkC;AAChD,EAAA,uBACE,8BAAA,KAAC,EAAA,EAAI,SAAA,EAAU,2CAAA,EAIb,QAAA,EAAA;AAAA,oBAAA,8BAAA,KAAC,EAAA,EAAI,SAAA,EAAU,WAAA,EACb,QAAA,EAAA;AAAA,sBAAA,6BAAA,KAAC,EAAA,EAAI,SAAA,EAAU,8DAAA,CAA8D,CAAA;AAAA,sBAC7E,8BAAA,KAAC,EAAA,EAAI,SAAA,EAAU,uFAAA,EACb,QAAA,EAAA;AAAA,wBAAA,6BAAA,KAAC,EAAA,EAAI,S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,MAAA;AACG,MAAA;AACT,MAAA;AACM,MAAA;AAChD,MAAA;AAClB,IAAA;AACD,EAAA;AACH;AAE6D;AAC3C,EAAA;AACiC,IAAA;AACA,IAAA;AACW,MAAA;AACO,MAAA;AAC/C,MAAA;AAClB,IAAA;AACW,IAAA;AACZ,EAAA;AACH;AAE6C;AAC3B,EAAA;AACyB,IAAA;AACwB,IAAA;AACJ,MAAA;AAChD,MAAA;AACoD,QAAA;AAC7C,MAAA;AAClB,IAAA;AACW,IAAA;AACZ,EAAA;AACH;AJsS+E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/components/onboarding-guides/index.cjs","sourcesContent":[null,"'use client'\n\n/**\n * Public-facing catalog view for `/onboarding-guides`.\n *\n * Two data modes:\n * - **controlled** (hub SSR): pass `initialGuides` + `initialSections`\n * (server-fetched; section changes re-render the host with new props).\n * - **self-fetching** (config-only embed): omit the data props and pass\n * `guidesEndpoint` + `sectionsEndpoint` (the api routes). The view fetches\n * the guides (refetching on `?section=` change) + the section list itself —\n * no host data layer. (Plain fetch + useEffect, the DeliveryLists pattern.)\n *\n * The view renders ONLY its body + its OWN controls (the RAG `<DocSearchBar>` +\n * dynamic section pills — onboarding's controls are content-driven, unlike the\n * static search/filter the `DevSectionView` chrome ships). It does NOT render the\n * page chrome: the CALLER wraps it in `<DevSectionPage sectionKey=\"onboarding\">`\n * (hero + back button), exactly like the roadmap / releases / delivery pages — so\n * every dev-center surface composes the same way and the view stays embeddable in\n * tabbed contexts. Card hrefs flow through `runtime.composeContentUrl`.\n */\n\nimport { useMemo, useTransition, type ReactNode } from 'react'\nimport { GraduationCap } from 'lucide-react'\n\nimport { useRouter, useSearchParams } from '../../embed-shims'\nimport { useSelfFetch } from '../../hooks/use-self-fetch'\nimport { DocSearchBar, useDocSearch } from '../shared/doc-search'\nimport { FilterPillRow } from '../ui/filter-pill-row'\nimport { LoadError } from '../ui/error-state'\nimport { OnboardingGuideCard } from '../chat/entity-cards/onboarding-guide-card'\nimport { OnboardingGuidesCatalogSkeleton } from './onboarding-guides-catalog-skeleton'\nimport { useChatRuntime } from '../../contexts/chat-runtime-context'\nimport type { OnboardingGuide } from '../chat/types/entities/onboarding-guide'\nimport { resolveContentHref } from '../../utils/content-href'\n\ntype SectionSummary = { section: string; section_order: number; count: number }\n\nexport interface OnboardingGuidesCatalogViewProps {\n /** Controlled / SSR: server-fetched guides. Omit + pass `guidesEndpoint`\n * for the self-fetching config-only mode. */\n initialGuides?: OnboardingGuide[]\n initialSections?: SectionSummary[]\n initialSection?: string\n /** Self-fetch: GET list endpoint (the api route). Appends `?section=`. */\n guidesEndpoint?: string\n /** Self-fetch: GET section-summary endpoint (the api route). */\n sectionsEndpoint?: string\n /** Optional per-row card renderer override. */\n renderCard?: (guide: OnboardingGuide) => ReactNode\n /** Base path the catalog is mounted under (fallback href prefix + `?section=`\n * push target). Default `/onboarding-guides`. */\n basePath?: string\n}\n\nexport function OnboardingGuidesCatalogView({\n initialGuides,\n initialSections,\n initialSection = '',\n guidesEndpoint,\n sectionsEndpoint,\n renderCard,\n basePath = '/onboarding-guides',\n}: OnboardingGuidesCatalogViewProps) {\n const router = useRouter()\n const searchParams = useSearchParams()\n const [isPending, startTransition] = useTransition()\n const runtime = useChatRuntime()\n\n // Self-fetch only when the host supplied NO data but DID give an endpoint.\n const selfFetch = initialGuides === undefined && guidesEndpoint !== undefined\n // Active section: from the URL when self-fetching, from the prop (host RSC\n // already read the URL server-side) when controlled.\n const sectionValue = selfFetch ? searchParams.get('section') ?? '' : initialSection\n const activeSection = sectionValue || 'all'\n\n // Self-fetch the guides (refetched whenever `?section=` changes — it's folded\n // into the url) + the section summaries. Controlled mode passes `null` urls so\n // the hook never fetches. The guides fetch carries the error/retry affordance.\n const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : ''\n const guidesRes = useSelfFetch<{ data?: OnboardingGuide[] }>(\n selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null,\n )\n const sectionsRes = useSelfFetch<SectionSummary[]>(\n selfFetch && sectionsEndpoint ? sectionsEndpoint : null,\n )\n\n // Invariant: `guidesRes.data` is `null` until the first fetch resolves, then\n // `{ data: [...] }`. The `?.data ?? []` chain collapses never-fetched (null) and\n // legitimately-empty ([]) to the same `[]` — so the first-load skeleton gate below\n // keys on the OUTER `guidesRes.data == null` to distinguish them (an empty section\n // toggle keeps the chrome; only a true cold start shows the full-page skeleton).\n const guides = initialGuides ?? guidesRes.data?.data ?? []\n const sections = initialSections ?? (Array.isArray(sectionsRes.data) ? sectionsRes.data : [])\n const isLoading = selfFetch ? guidesRes.isLoading : false\n\n // Section grouping. Data arrives already filtered (server-side `?section=`\n // for the host, or our `?section=` fetch); this just buckets visible rows.\n const grouped = useMemo(() => {\n const map = new Map<string, { section_order: number; guides: OnboardingGuide[] }>()\n for (const g of guides) {\n const existing = map.get(g.section)\n if (existing) {\n if (g.section_order < existing.section_order) existing.section_order = g.section_order\n existing.guides.push(g)\n } else {\n map.set(g.section, { section_order: g.section_order, guides: [g] })\n }\n }\n for (const entry of map.values()) {\n entry.guides.sort((a, b) => a.step_order - b.step_order || a.title.localeCompare(b.title))\n }\n return Array.from(map.entries())\n .map(([section, info]) => ({ section, ...info }))\n .sort((a, b) => a.section_order - b.section_order || a.section.localeCompare(b.section))\n }, [guides])\n\n const sectionFilterOptions = useMemo(\n () => [\n { value: 'all', label: `All (${guides.length})` },\n ...sections.map((s) => ({ value: s.section, label: `${s.section} (${s.count})` })),\n ],\n [guides.length, sections],\n )\n\n // Section pill change → push `?section=X`. Controlled mode: host RSC\n // re-fetches. Self-fetch mode: our guides effect re-fetches on the URL change.\n const setSection = (value: string) => {\n const params = new URLSearchParams(searchParams.toString())\n if (value === 'all') {\n params.delete('section')\n } else {\n params.set('section', value)\n }\n const qs = params.toString()\n startTransition(() => {\n router.push(qs ? `${basePath}?${qs}` : basePath)\n })\n }\n\n // Search bar — scoped to onboarding-guides only via RAG-search `tableIds`.\n const source = runtime?.source ?? 'openframe'\n const docSearch = useDocSearch({\n source,\n baseRoute: basePath,\n onNavigate: (path) => router.push(path),\n tableIds: ['onboarding-guides'],\n })\n\n // Per-row card renderer — runtime-composed href, fallback to relative.\n const defaultRenderCard = (guide: OnboardingGuide) => {\n const cta = resolveContentHref(runtime?.composeContentUrl, {\n type: 'onboarding_guide',\n slug: guide.slug,\n basePath,\n platforms: guide.onboarding_guide_platforms,\n })\n return (\n <OnboardingGuideCard\n guide={guide}\n href={cta.href}\n targetPlatform={cta.targetPlatform}\n size=\"catalog\"\n />\n )\n }\n const renderCardFn = renderCard ?? defaultRenderCard\n\n const preControls = (\n <div className=\"space-y-4\">\n <DocSearchBar\n placeholder=\"Search onboarding guides, releases, case studies…\"\n query={docSearch.query}\n onQueryChange={docSearch.setQuery}\n results={docSearch.results}\n isLoading={docSearch.isLoading}\n onResultSelect={docSearch.handleResultSelect}\n showDropdown={docSearch.keepDropdownOpen}\n />\n {sections.length > 0 && (\n <FilterPillRow\n label=\"Section\"\n selectedValue={activeSection}\n onValueChange={setSection}\n options={sectionFilterOptions}\n />\n )}\n </div>\n )\n\n // A failed guides fetch → a RETRYABLE error (not the indistinguishable-from-\n // empty \"no guides found\" state) — parity with the sibling self-fetch views.\n if (selfFetch && guidesRes.error) {\n return <LoadError message=\"Failed to load onboarding guides.\" onRetry={guidesRes.reload} />\n }\n // Full-page skeleton ONLY on the very first load (no data has loaded yet) — a\n // later section toggle that legitimately returns ZERO guides keeps the page\n // chrome (search + section pills) and dims the grid via the className below.\n if (selfFetch && guidesRes.data == null && isLoading) {\n return <OnboardingGuidesCatalogSkeleton />\n }\n\n return (\n <div className=\"w-full flex flex-col gap-10\">\n {preControls}\n {guides.length === 0 ? (\n <div className=\"text-center py-16\">\n <GraduationCap className=\"h-12 w-12 text-ods-text-secondary mx-auto mb-4\" />\n <h2 className=\"text-ods-text-primary font-['DM_Sans'] text-[20px] font-semibold mb-2\">\n No onboarding guides found\n </h2>\n <p className=\"text-ods-text-secondary font-['DM_Sans'] text-[14px]\">\n {activeSection !== 'all'\n ? 'No guides in this section yet.'\n : \"We're working on the onboarding library. Check back soon.\"}\n </p>\n </div>\n ) : (\n <div className={isPending || isLoading ? 'opacity-60 transition-opacity space-y-10' : 'space-y-10'}>\n {grouped.map((sec) => (\n <section key={sec.section} className=\"space-y-4\">\n <h2 className=\"text-h3 tracking-[-0.36px] text-ods-text-primary flex items-center gap-2\">\n {sec.section}\n <span className=\"inline-flex items-center justify-center rounded-full bg-ods-text-secondary/20 text-ods-text-secondary text-xs font-medium px-2 py-0.5\">\n {sec.guides.length}\n </span>\n </h2>\n {/* HORIZONTAL catalog list — single column so consecutive steps\n read top-to-bottom; a grid would visually reorder them. */}\n <ul className=\"flex flex-col gap-4\">\n {sec.guides.map((guide) => (\n <li key={guide.id}>{renderCardFn(guide)}</li>\n ))}\n </ul>\n </section>\n ))}\n </div>\n )}\n </div>\n )\n}\n","'use client'\n\nimport { OnboardingGuideCardSkeleton } from '../chat/entity-cards/onboarding-guide-card'\n\n/**\n * Loading skeleton for `/onboarding-guides` — CHROME-LESS, exactly like the\n * loaded `<OnboardingGuidesCatalogView>`. The HOST page owns the\n * `<DevSectionPage sectionKey=\"onboarding\">` shell (hero + back button);\n * this component renders only what replaces the view: the search/pill\n * placeholder block and the section card lists.\n *\n * HISTORY: this used to mount its own `<DevSectionPage>` — nested inside the\n * page's shell that double-rendered the hero + back button during loading\n * (the view was made chrome-less in the page restructure; the skeleton was\n * missed). Keep BOTH chrome-less.\n *\n * Wrapper mirrors the loaded view's `w-full flex flex-col gap-10`; per-card\n * height matches the loaded catalog card so resolve shifts are zero.\n */\nexport function OnboardingGuidesCatalogSkeleton() {\n return (\n <div className=\"w-full flex flex-col gap-10 animate-pulse\">\n {/* Search input placeholder — matches `<SearchInput>` h-12 — plus the\n section pill row (~74 px incl. padding), same as the loaded\n preControls block. */}\n <div className=\"space-y-4\">\n <div className=\"h-12 w-full bg-ods-card border border-ods-border rounded-md\" />\n <div className=\"flex flex-wrap items-center gap-3 p-4 bg-ods-card border border-ods-border rounded-lg\">\n <div className=\"h-4 w-14 bg-ods-border/60 rounded\" />\n {[0, 1, 2, 3].map((i) => (\n <div\n key={i}\n className=\"h-10 w-24 bg-ods-card border border-ods-border rounded-md\"\n />\n ))}\n </div>\n </div>\n <div className=\"space-y-10\">\n {[4, 3, 3].map((cardCount, sectionIdx) => (\n <section key={sectionIdx} className=\"space-y-4\">\n <h2 className=\"text-h3 tracking-[-0.36px] text-ods-text-primary flex items-center gap-2\">\n <span className=\"h-6 w-40 bg-ods-border/70 rounded\" />\n <span className=\"h-5 w-8 bg-ods-text-secondary/20 rounded-full\" />\n </h2>\n <ul className=\"flex flex-col gap-4\">\n {Array.from({ length: cardCount }).map((_, cardIdx) => (\n <li key={cardIdx}>\n <OnboardingGuideCardSkeleton size=\"catalog\" />\n </li>\n ))}\n </ul>\n </section>\n ))}\n </div>\n </div>\n )\n}\n","'use client'\n\n/**\n * Public-facing detail view for `/onboarding-guides/<slug>`.\n *\n * Two modes:\n * - **controlled** (hub SSR): pass `initialData` (a server-fetched guide).\n * - **self-fetching** (config-only embed): pass `slug` + `guideEndpoint`\n * (the api route) and the view fetches the guide itself — no host data\n * layer. (Plain fetch + useEffect, the DeliveryLists pattern.)\n *\n * Everything else flows through lib primitives + the ChatRuntime context\n * (markdown, video warmup, captions, related-card hrefs via\n * `runtime.composeContentUrl`). Optional `MarkdownRenderer` lets hosts swap a\n * renderer with extra plugins.\n */\n\nimport { type ComponentType, type ReactNode } from 'react'\nimport { ArrowLeft } from 'lucide-react'\n\nimport { Link } from '../../embed-shims'\n// PageShell (max-w-[1920px]) — the guide detail content must share the SAME\n// container sizing as the related-content/FAQ rail the host page renders\n// below it (which uses the wide shell). ArticleDetailLayout (1280px) made\n// the detail block visibly narrower than the rail.\nimport { PageShell } from '../layout/article-detail-layout'\nimport { DetailPageSkeleton } from '../shared/detail-page-skeleton'\nimport { EntityVideoSection } from '../features/entity-video-section'\nimport { VideoBitesDisplay } from '../features/video-bites-display'\nimport { useVideoWarmup } from '../features/use-video-warmup'\nimport { getCaptionsUrl } from '../features/captions-url'\nimport { SimpleMarkdownRenderer } from '../ui/simple-markdown-renderer'\nimport { EntityTagBadges } from '../features/entity-tag-badges'\nimport { LoadError } from '../ui/error-state'\nimport { ArticleAuthorByline } from '../shared/article-author-byline'\nimport { EntityAuthorCard } from '../chat/entity-cards/entity-author-card'\nimport { OnboardingGuideCard } from '../chat/entity-cards/onboarding-guide-card'\nimport { useChatRuntime } from '../../contexts/chat-runtime-context'\nimport type { OnboardingGuide } from '../chat/types/entities/onboarding-guide'\nimport type { VideoTeaser } from '../../types/video-processing'\nimport { resolveContentHref } from '../../utils/content-href'\nimport { useSelfFetch } from '../../hooks/use-self-fetch'\n\nexport interface OnboardingGuideDetailViewProps {\n /** Server-fetched guide (controlled / SSR mode). Omit it and pass\n * `slug` + `guideEndpoint` for the self-fetching config-only mode. */\n initialData?: OnboardingGuide\n /** Self-fetch: the guide's slug (the host reads it from its route). */\n slug?: string\n /** Self-fetch: builds the GET url for a single guide (the api route).\n * e.g. `(s) => \\`/content/api/onboarding-guides/${s}\\``. */\n guideEndpoint?: (slug: string) => string\n related?: OnboardingGuide[]\n /** Link target for the author name in the metadata grid — the host\n * computes it (public author page; absent ⇒ plain text). */\n authorHref?: string\n /** Bio paragraph for the end-of-article author byline. Defaults to the\n * guide payload's `author.about` (hubs that hydrate it can omit this). */\n authorBio?: string | null\n /** Byline fallback paragraph when the bio is empty — the host passes its\n * platform-aware copy (the lib has no config awareness). Absent ⇒ the\n * byline renders nothing below the name when the bio is empty. */\n fallbackBio?: string | null\n /** Optional markdown renderer override. Defaults to lib\n * `<SimpleMarkdownRenderer>`. */\n MarkdownRenderer?: ComponentType<{ content: string }>\n /** Optional per-row related-card renderer override. */\n renderRelatedCard?: (guide: OnboardingGuide) => ReactNode\n /** Back-link target. Defaults to `basePath`. */\n backHref?: string\n /** Back-link label. Defaults to \"Back to Getting Started\". */\n backLabel?: string\n /** Base path the related-card hrefs default to when\n * `runtime.composeContentUrl` is not wired. Default `/onboarding-guides`. */\n basePath?: string\n}\n\nexport function OnboardingGuideDetailView({\n authorHref,\n authorBio,\n fallbackBio,\n initialData,\n slug,\n guideEndpoint,\n related = [],\n MarkdownRenderer = SimpleMarkdownRenderer,\n renderRelatedCard,\n backHref,\n backLabel = 'Back to Getting Started',\n basePath = '/onboarding-guides',\n}: OnboardingGuideDetailViewProps) {\n const resolvedBackHref = backHref ?? basePath\n const runtime = useChatRuntime()\n\n // Controlled (hub SSR `initialData`) OR self-fetch by slug (config-only embed).\n const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null\n const { data: guide, isLoading, error, reload } = useSelfFetch<OnboardingGuide>(url, { initialData })\n\n // Hooks must run unconditionally — feed them optional-chained values so they\n // no-op while the guide is still loading.\n const { ref: videoWarmupRef } = useVideoWarmup<HTMLDivElement>({\n videoUrl: guide?.main_video_url,\n supabaseStorageOrigin: runtime?.endpoints.supabaseStorageOrigin,\n })\n\n if (error || (!guide && !isLoading)) {\n return <LoadError message=\"Guide not found.\" onRetry={reload} />\n }\n if (!guide) {\n // Skeleton (not a bare \"Loading…\") for parity with every other shared view —\n // catalog, roadmap, releases all render a skeleton on first load, so the detail\n // page shouldn't flash text then content.\n return <DetailPageSkeleton showImageGallery={false} />\n }\n\n const captionsUrl = getCaptionsUrl('onboarding_guide', guide.id, guide.srt_content)\n\n const videoPoster =\n guide.main_video_thumbnail ||\n guide.featured_image ||\n guide.og_image_url ||\n runtime?.resolvePlaceholderUrl?.(guide.title, { aspect: 'wide' }) ||\n undefined\n\n const defaultRenderRelatedCard = (g: OnboardingGuide) => {\n const cta = resolveContentHref(runtime?.composeContentUrl, {\n type: 'onboarding_guide',\n slug: g.slug,\n basePath,\n platforms: g.onboarding_guide_platforms,\n })\n return <OnboardingGuideCard guide={g} href={cta.href} targetPlatform={cta.targetPlatform} />\n }\n const renderRelatedCardFn = renderRelatedCard ?? defaultRenderRelatedCard\n\n return (\n <PageShell>\n <div className=\"space-y-6 md:space-y-8\">\n {/* Back link */}\n <Link\n href={resolvedBackHref}\n className=\"inline-flex items-center gap-2 text-ods-text-secondary hover:text-ods-accent transition-colors\"\n >\n <ArrowLeft className=\"h-4 w-4\" />\n <span className=\"text-h5\">{backLabel}</span>\n </Link>\n\n <h1 className=\"text-h1 tracking-[-1.12px] text-ods-text-primary\">{guide.title}</h1>\n\n {/* Tags — flat onboarding_guide_tags[] from entity_tags. */}\n <EntityTagBadges tags={(guide as any).onboarding_guide_tags} />\n\n {/* Metadata grid — Section · Step | Published | Author. */}\n <EntityAuthorCard\n author={guide.author}\n authorHref={authorHref}\n publishedAt={guide.published_at}\n extraCells={[\n {\n value: `${guide.section} · Step ${guide.step_order}`,\n label: 'Section',\n uppercase: false,\n },\n ]}\n />\n\n {/* Video. `main_video_url` (Mux/MP4) and `youtube_url` are independent\n columns — either populated renders the player. */}\n {(guide.main_video_url || guide.youtube_url) && (\n <div ref={videoWarmupRef}>\n <EntityVideoSection\n mainVideoUrl={guide.main_video_url}\n youtubeUrl={guide.youtube_url || undefined}\n highlightVideoUrl={guide.highlight_video_url}\n mainVideoPoster={videoPoster}\n highlightVideoThumbnail={guide.highlight_video_thumbnail || undefined}\n videoSummary={undefined}\n videoBites={undefined}\n title={guide.title}\n srtContent={guide.srt_content}\n captionsUrl={captionsUrl}\n MarkdownRenderer={MarkdownRenderer}\n />\n </div>\n )}\n\n {/* Markdown body */}\n {guide.content && (\n <div className=\"space-y-4\">\n <MarkdownRenderer content={guide.content} />\n </div>\n )}\n\n {/* Video Bites */}\n {guide.video_bites && guide.video_bites.length > 0 && (\n <VideoBitesDisplay\n bites={guide.video_bites as VideoTeaser[]}\n filterPublished={true}\n showTitle={false}\n />\n )}\n\n {/* End-of-article author byline (avatar + linked name + bio) — the\n author DESCRIPTION block every article-shaped detail page renders.\n Hidden when the guide has no author (the byline returns null). */}\n <ArticleAuthorByline\n author={guide.author?.full_name ?? null}\n avatar={guide.author?.avatar_url}\n jobTitle={guide.author?.job_title}\n bio={authorBio ?? guide.author?.about}\n href={authorHref}\n fallbackBio={fallbackBio}\n />\n\n {/* Related — same-section, ordered by step. */}\n {related.length > 0 && (\n <div className=\"space-y-4 pt-8 border-t border-ods-border\">\n <h2 className=\"text-h3 tracking-[-0.36px] text-ods-text-primary\">\n More in {guide.section}\n </h2>\n <ul className=\"flex flex-col gap-3\">\n {related.map((r) => (\n <li key={r.id}>{renderRelatedCardFn(r)}</li>\n ))}\n </ul>\n </div>\n )}\n </div>\n </PageShell>\n )\n}\n","'use client'\n\n/**\n * React Query hooks for Onboarding Guides — PUBLIC reads only.\n *\n * Admin mutations (create/update/delete/publish/stats/save-highlight)\n * stay HUB-side in `hooks/use-onboarding-guides.ts` and import the\n * `onboardingGuideKeys.admin` sub-namespace from this module so the\n * cache namespace `['onboarding-guides']` has a single source of truth.\n *\n * Endpoints (`/api/onboarding-guides*`) are host-supplied — non-Next.js\n * embedders must reverse-proxy the same routes. Same precedent as the\n * tickets list hook.\n */\n\nimport { useQuery } from '@tanstack/react-query'\n\nimport type {\n OnboardingGuide,\n OnboardingGuideFilters,\n OnboardingGuideListResponse,\n OnboardingGuideSectionSummary,\n} from '../../chat/types/entities/onboarding-guide'\n\n/**\n * Cache key builder for the `['onboarding-guides']` namespace.\n *\n * Includes BOTH public-read sub-keys (`lists`, `list`, `details`,\n * `detail`, `sections`) AND the `admin` sub-namespace. Admin mutations\n * live hub-side but invalidate against this same builder so a single\n * `qc.invalidateQueries({ queryKey: onboardingGuideKeys.all })` from\n * an admin hook also clears the public read cache.\n */\nexport const onboardingGuideKeys = {\n all: ['onboarding-guides'] as const,\n lists: () => [...onboardingGuideKeys.all, 'list'] as const,\n list: (filters: OnboardingGuideFilters) =>\n [...onboardingGuideKeys.lists(), filters] as const,\n details: () => [...onboardingGuideKeys.all, 'detail'] as const,\n detail: (slug: string) => [...onboardingGuideKeys.details(), slug] as const,\n sections: () => [...onboardingGuideKeys.all, 'sections'] as const,\n admin: {\n all: ['admin', 'onboarding-guides'] as const,\n lists: () => ['admin', 'onboarding-guides', 'list'] as const,\n detail: (slug: string) =>\n ['admin', 'onboarding-guide', slug] as const,\n stats: () => ['admin', 'onboarding-guides', 'stats'] as const,\n },\n}\n\nexport function useOnboardingGuides(filters?: OnboardingGuideFilters) {\n return useQuery({\n queryKey: onboardingGuideKeys.list(filters || {}),\n queryFn: async (): Promise<OnboardingGuideListResponse> => {\n const params = new URLSearchParams()\n if (filters?.search) params.set('search', filters.search)\n if (filters?.section) params.set('section', filters.section)\n if (filters?.limit) params.set('limit', filters.limit.toString())\n if (filters?.offset) params.set('offset', filters.offset.toString())\n const res = await fetch(`/api/onboarding-guides?${params}`)\n if (!res.ok) throw new Error('Failed to fetch onboarding guides')\n return res.json()\n },\n })\n}\n\nexport function useOnboardingGuide(slug: string | undefined) {\n return useQuery({\n queryKey: onboardingGuideKeys.detail(slug || ''),\n queryFn: async (): Promise<OnboardingGuide> => {\n const res = await fetch(`/api/onboarding-guides/${slug}`)\n if (!res.ok) throw new Error('Failed to fetch onboarding guide')\n return res.json()\n },\n enabled: !!slug,\n })\n}\n\nexport function useOnboardingGuideSections() {\n return useQuery({\n queryKey: onboardingGuideKeys.sections(),\n queryFn: async (): Promise<OnboardingGuideSectionSummary[]> => {\n const res = await fetch('/api/onboarding-guides/sections')\n if (!res.ok)\n throw new Error('Failed to fetch onboarding-guide sections')\n return res.json()\n },\n staleTime: 0,\n })\n}\n"]}
@@ -1,9 +1,10 @@
1
1
  "use client";
2
2
  import {
3
+ ArticleAuthorByline,
3
4
  DetailPageSkeleton,
4
5
  DocSearchBar,
5
6
  useDocSearch
6
- } from "../../chunk-4HHYUEMD.js";
7
+ } from "../../chunk-IJHORDN5.js";
7
8
  import {
8
9
  useSelfFetch
9
10
  } from "../../chunk-L4LAAA5Q.js";
@@ -22,7 +23,7 @@ import {
22
23
  getCaptionsUrl,
23
24
  resolveContentHref,
24
25
  useVideoWarmup
25
- } from "../../chunk-LKI3YCAX.js";
26
+ } from "../../chunk-NAOTZAKM.js";
26
27
  import "../../chunk-ZXZJSTNV.js";
27
28
  import {
28
29
  useChatRuntime
@@ -33,11 +34,11 @@ import {
33
34
  useRouter,
34
35
  useSearchParams
35
36
  } from "../../chunk-PLJLE4A4.js";
36
- import "../../chunk-2FCXJTOV.js";
37
+ import "../../chunk-LDEXTWMK.js";
37
38
  import {
38
39
  next_link_default
39
40
  } from "../../chunk-OHPI2HRK.js";
40
- import "../../chunk-265KKBV2.js";
41
+ import "../../chunk-V4IIBNTA.js";
41
42
  import "../../chunk-XTCBRQN2.js";
42
43
  import "../../chunk-4WZOFD46.js";
43
44
  import "../../chunk-6U3IUD57.js";
@@ -212,6 +213,9 @@ function OnboardingGuidesCatalogView({
212
213
  import { ArrowLeft } from "lucide-react";
213
214
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
214
215
  function OnboardingGuideDetailView({
216
+ authorHref,
217
+ authorBio,
218
+ fallbackBio,
215
219
  initialData,
216
220
  slug,
217
221
  guideEndpoint,
@@ -266,6 +270,7 @@ function OnboardingGuideDetailView({
266
270
  EntityAuthorCard,
267
271
  {
268
272
  author: guide.author,
273
+ authorHref,
269
274
  publishedAt: guide.published_at,
270
275
  extraCells: [
271
276
  {
@@ -301,6 +306,17 @@ function OnboardingGuideDetailView({
301
306
  showTitle: false
302
307
  }
303
308
  ),
309
+ /* @__PURE__ */ jsx3(
310
+ ArticleAuthorByline,
311
+ {
312
+ author: guide.author?.full_name ?? null,
313
+ avatar: guide.author?.avatar_url,
314
+ jobTitle: guide.author?.job_title,
315
+ bio: authorBio ?? guide.author?.about,
316
+ href: authorHref,
317
+ fallbackBio
318
+ }
319
+ ),
304
320
  related.length > 0 && /* @__PURE__ */ jsxs3("div", { className: "space-y-4 pt-8 border-t border-ods-border", children: [
305
321
  /* @__PURE__ */ jsxs3("h2", { className: "text-h3 tracking-[-0.36px] text-ods-text-primary", children: [
306
322
  "More in ",