@flamingo-stack/openframe-frontend-core 0.0.239 → 0.0.240

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 (128) hide show
  1. package/dist/{chunk-36G2QXYZ.cjs → chunk-3TDLFCCS.cjs} +37 -23
  2. package/dist/chunk-3TDLFCCS.cjs.map +1 -0
  3. package/dist/{chunk-ORJREQ2W.js → chunk-4XLJWX2N.js} +4 -4
  4. package/dist/{chunk-SZ3BBI6H.cjs → chunk-5JTDFOYB.cjs} +12 -12
  5. package/dist/{chunk-SZ3BBI6H.cjs.map → chunk-5JTDFOYB.cjs.map} +1 -1
  6. package/dist/{chunk-G6YZ7O27.js → chunk-7BWJF43J.js} +6 -6
  7. package/dist/{chunk-7LLS3TWN.js → chunk-B3NI3KT4.js} +5 -5
  8. package/dist/{chunk-MTROCWO4.cjs → chunk-CDLMGHSB.cjs} +7 -7
  9. package/dist/{chunk-MTROCWO4.cjs.map → chunk-CDLMGHSB.cjs.map} +1 -1
  10. package/dist/{chunk-JDQY7JCV.js → chunk-MKVKVJQQ.js} +36 -22
  11. package/dist/chunk-MKVKVJQQ.js.map +1 -0
  12. package/dist/{chunk-5VU66BD2.cjs → chunk-NE2DYD6K.cjs} +494 -461
  13. package/dist/chunk-NE2DYD6K.cjs.map +1 -0
  14. package/dist/chunk-POZHDJSK.js +276 -0
  15. package/dist/chunk-POZHDJSK.js.map +1 -0
  16. package/dist/{chunk-FSS2MIEA.cjs → chunk-SGJBUL2Y.cjs} +20 -3
  17. package/dist/chunk-SGJBUL2Y.cjs.map +1 -0
  18. package/dist/{chunk-IJOJWBME.cjs → chunk-SI4LEFLR.cjs} +27 -27
  19. package/dist/{chunk-IJOJWBME.cjs.map → chunk-SI4LEFLR.cjs.map} +1 -1
  20. package/dist/chunk-TE6LSK2X.cjs +276 -0
  21. package/dist/chunk-TE6LSK2X.cjs.map +1 -0
  22. package/dist/{chunk-LJGBFD52.js → chunk-VAUI3CND.js} +18 -1
  23. package/dist/chunk-VAUI3CND.js.map +1 -0
  24. package/dist/{chunk-OB45JHDY.cjs → chunk-VFKQMAUF.cjs} +3 -3
  25. package/dist/{chunk-OB45JHDY.cjs.map → chunk-VFKQMAUF.cjs.map} +1 -1
  26. package/dist/{chunk-Y6463TD6.js → chunk-XWUA273B.js} +2 -2
  27. package/dist/{chunk-Y7DCQUNL.js → chunk-YH6KPNIH.js} +87 -54
  28. package/dist/chunk-YH6KPNIH.js.map +1 -0
  29. package/dist/{chunk-ELMYRGWG.cjs → chunk-YY6S4T67.cjs} +12 -12
  30. package/dist/{chunk-ELMYRGWG.cjs.map → chunk-YY6S4T67.cjs.map} +1 -1
  31. package/dist/{chunk-PN64LWNT.js → chunk-ZYPOIFBS.js} +8 -8
  32. package/dist/components/chat/hooks/use-chat-card-item.d.ts.map +1 -1
  33. package/dist/components/chat/index.cjs +6 -6
  34. package/dist/components/chat/index.js +5 -5
  35. package/dist/components/chat/types/entities/content-ref.d.ts +5 -20
  36. package/dist/components/chat/types/entities/content-ref.d.ts.map +1 -1
  37. package/dist/components/chevron-button.d.ts +3 -1
  38. package/dist/components/chevron-button.d.ts.map +1 -1
  39. package/dist/components/contact/index.cjs +7 -7
  40. package/dist/components/contact/index.js +6 -6
  41. package/dist/components/faq/faq-section.d.ts +8 -2
  42. package/dist/components/faq/faq-section.d.ts.map +1 -1
  43. package/dist/components/faq/index.cjs +3 -3
  44. package/dist/components/faq/index.js +2 -2
  45. package/dist/components/faq/json-ld.cjs +1 -1
  46. package/dist/components/faq/json-ld.cjs.map +1 -1
  47. package/dist/components/faq/{faq-json-ld.d.ts → json-ld.d.ts} +1 -1
  48. package/dist/components/faq/json-ld.d.ts.map +1 -0
  49. package/dist/components/faq/json-ld.js +1 -1
  50. package/dist/components/faq/json-ld.js.map +1 -1
  51. package/dist/components/faq-accordion.d.ts.map +1 -1
  52. package/dist/components/features/index.cjs +6 -6
  53. package/dist/components/features/index.js +5 -5
  54. package/dist/components/index.cjs +89 -85
  55. package/dist/components/index.cjs.map +1 -1
  56. package/dist/components/index.d.ts +1 -0
  57. package/dist/components/index.d.ts.map +1 -1
  58. package/dist/components/index.js +31 -27
  59. package/dist/components/index.js.map +1 -1
  60. package/dist/components/navigation/index.cjs +6 -6
  61. package/dist/components/navigation/index.js +5 -5
  62. package/dist/components/onboarding-guides/index.cjs +30 -30
  63. package/dist/components/onboarding-guides/index.cjs.map +1 -1
  64. package/dist/components/onboarding-guides/index.js +11 -11
  65. package/dist/components/related-content/index.cjs +26 -0
  66. package/dist/components/related-content/index.cjs.map +1 -0
  67. package/dist/components/related-content/index.d.ts +2 -0
  68. package/dist/components/related-content/index.d.ts.map +1 -0
  69. package/dist/components/related-content/index.js +26 -0
  70. package/dist/components/related-content/index.js.map +1 -0
  71. package/dist/components/related-content/related-content-section.d.ts +135 -0
  72. package/dist/components/related-content/related-content-section.d.ts.map +1 -0
  73. package/dist/components/tickets/index.cjs +73 -73
  74. package/dist/components/tickets/index.cjs.map +1 -1
  75. package/dist/components/tickets/index.js +15 -15
  76. package/dist/components/ui/index.cjs +11 -11
  77. package/dist/components/ui/index.cjs.map +1 -1
  78. package/dist/components/ui/index.js +13 -13
  79. package/dist/embed-shims/index.cjs +3 -3
  80. package/dist/embed-shims/index.cjs.map +1 -1
  81. package/dist/embed-shims/index.js +5 -5
  82. package/dist/index.cjs +25 -11
  83. package/dist/index.cjs.map +1 -1
  84. package/dist/index.js +53 -39
  85. package/dist/types/content-ref.d.ts +35 -0
  86. package/dist/types/content-ref.d.ts.map +1 -0
  87. package/dist/types/index.d.ts +1 -0
  88. package/dist/types/index.d.ts.map +1 -1
  89. package/dist/utils/content-ref-groups.d.ts +58 -0
  90. package/dist/utils/content-ref-groups.d.ts.map +1 -0
  91. package/dist/utils/extract-items.d.ts +18 -0
  92. package/dist/utils/extract-items.d.ts.map +1 -0
  93. package/dist/utils/index.cjs +77 -0
  94. package/dist/utils/index.cjs.map +1 -1
  95. package/dist/utils/index.d.ts +3 -0
  96. package/dist/utils/index.d.ts.map +1 -1
  97. package/dist/utils/index.js +71 -1
  98. package/dist/utils/index.js.map +1 -1
  99. package/dist/utils/suggestion-url.d.ts +26 -0
  100. package/dist/utils/suggestion-url.d.ts.map +1 -0
  101. package/package.json +7 -1
  102. package/src/components/chat/hooks/use-chat-card-item.ts +3 -38
  103. package/src/components/chat/types/entities/content-ref.ts +5 -21
  104. package/src/components/chevron-button.tsx +5 -1
  105. package/src/components/faq/faq-section.tsx +71 -26
  106. package/src/components/faq-accordion.tsx +2 -1
  107. package/src/components/index.ts +1 -0
  108. package/src/components/related-content/index.ts +9 -0
  109. package/src/components/related-content/related-content-section.tsx +585 -0
  110. package/src/types/content-ref.ts +34 -0
  111. package/src/types/index.ts +1 -0
  112. package/src/utils/content-ref-groups.ts +89 -0
  113. package/src/utils/extract-items.ts +48 -0
  114. package/src/utils/index.ts +15 -0
  115. package/src/utils/suggestion-url.ts +39 -0
  116. package/dist/chunk-36G2QXYZ.cjs.map +0 -1
  117. package/dist/chunk-5VU66BD2.cjs.map +0 -1
  118. package/dist/chunk-FSS2MIEA.cjs.map +0 -1
  119. package/dist/chunk-JDQY7JCV.js.map +0 -1
  120. package/dist/chunk-LJGBFD52.js.map +0 -1
  121. package/dist/chunk-Y7DCQUNL.js.map +0 -1
  122. package/dist/components/faq/faq-json-ld.d.ts.map +0 -1
  123. /package/dist/{chunk-ORJREQ2W.js.map → chunk-4XLJWX2N.js.map} +0 -0
  124. /package/dist/{chunk-G6YZ7O27.js.map → chunk-7BWJF43J.js.map} +0 -0
  125. /package/dist/{chunk-7LLS3TWN.js.map → chunk-B3NI3KT4.js.map} +0 -0
  126. /package/dist/{chunk-Y6463TD6.js.map → chunk-XWUA273B.js.map} +0 -0
  127. /package/dist/{chunk-PN64LWNT.js.map → chunk-ZYPOIFBS.js.map} +0 -0
  128. /package/src/components/faq/{faq-json-ld.ts → json-ld.ts} +0 -0
@@ -5,7 +5,7 @@ import {
5
5
  PageShell,
6
6
  SearchInput,
7
7
  StatusFilterComponent
8
- } from "./chunk-Y7DCQUNL.js";
8
+ } from "./chunk-YH6KPNIH.js";
9
9
  import {
10
10
  init_next_navigation,
11
11
  usePathname,
@@ -159,4 +159,4 @@ export {
159
159
  DevCardRowSkeleton,
160
160
  DevCardRowSkeletonList
161
161
  };
162
- //# sourceMappingURL=chunk-Y6463TD6.js.map
162
+ //# sourceMappingURL=chunk-XWUA273B.js.map
@@ -1,4 +1,24 @@
1
1
  "use client";
2
+ import {
3
+ ToolIcon,
4
+ dotColorByVariant,
5
+ getSmallPlatformIcon,
6
+ progressColorByVariant,
7
+ toolLabels,
8
+ useAutoLimitTags,
9
+ useCopyToClipboard,
10
+ useDebounce,
11
+ useHorizontalScrollbar,
12
+ useHumanitySignals,
13
+ useImageEdgeColor,
14
+ useLgUp,
15
+ useLocalStorage,
16
+ useMdUp,
17
+ useNearViewport,
18
+ useOgPlaceholder,
19
+ useOnboardingState,
20
+ useToast
21
+ } from "./chunk-UECRKCKH.js";
2
22
  import {
3
23
  useChatRuntime,
4
24
  useRequiredChatRuntime
@@ -9,6 +29,12 @@ import {
9
29
  import {
10
30
  dynamic
11
31
  } from "./chunk-EL5YVPD5.js";
32
+ import {
33
+ init_next_navigation,
34
+ usePathname,
35
+ useRouter,
36
+ useSearchParams
37
+ } from "./chunk-PLJLE4A4.js";
12
38
  import {
13
39
  Button,
14
40
  Checkbox,
@@ -30,32 +56,6 @@ import {
30
56
  init_next_link,
31
57
  next_link_default
32
58
  } from "./chunk-OHPI2HRK.js";
33
- import {
34
- ToolIcon,
35
- dotColorByVariant,
36
- getSmallPlatformIcon,
37
- progressColorByVariant,
38
- toolLabels,
39
- useAutoLimitTags,
40
- useCopyToClipboard,
41
- useDebounce,
42
- useHorizontalScrollbar,
43
- useHumanitySignals,
44
- useImageEdgeColor,
45
- useLgUp,
46
- useLocalStorage,
47
- useMdUp,
48
- useNearViewport,
49
- useOgPlaceholder,
50
- useOnboardingState,
51
- useToast
52
- } from "./chunk-UECRKCKH.js";
53
- import {
54
- init_next_navigation,
55
- usePathname,
56
- useRouter,
57
- useSearchParams
58
- } from "./chunk-PLJLE4A4.js";
59
59
  import {
60
60
  BashIcon,
61
61
  ClickUpIcon,
@@ -17156,6 +17156,60 @@ function buildListUrl(contentRefType, ids, base = "") {
17156
17156
  return fn ? fn(ids, base) : null;
17157
17157
  }
17158
17158
 
17159
+ // src/utils/content-ref-groups.ts
17160
+ var CONTENT_REF_GROUPS = {
17161
+ investor_update: { label: "Investor Updates", order: 1, layout: "grid", gridSize: "default" },
17162
+ product_release: { label: "Product Releases", order: 2, layout: "list", gridSize: "lg" },
17163
+ podcast: { label: "Podcasts", order: 3, layout: "list", gridSize: "default" },
17164
+ webinar: { label: "Webinars", order: 4, layout: "list", gridSize: "default" },
17165
+ case_study: { label: "Case Studies", order: 5, layout: "grid", gridSize: "default" },
17166
+ event: { label: "Events", order: 6, layout: "list", gridSize: "default" },
17167
+ blog_post_existing: { label: "Blog Posts", order: 7, layout: "grid", gridSize: "default" },
17168
+ customer_interview: { label: "Customer Interviews", order: 8, layout: "grid", gridSize: "default" },
17169
+ onboarding_guide: { label: "Onboarding Guides", order: 9, layout: "grid", gridSize: "default" }
17170
+ };
17171
+ function getContentRefLabel(type) {
17172
+ return CONTENT_REF_GROUPS[type]?.label ?? null;
17173
+ }
17174
+ function getContentRefLabelOrTitleCase(type) {
17175
+ return CONTENT_REF_GROUPS[type]?.label ?? type.replace(/_/g, " ").replace(/\b\w/g, (ch) => ch.toUpperCase());
17176
+ }
17177
+ function orderContentRefTypes(present) {
17178
+ const presentSet = new Set(present);
17179
+ const registeredInOrder = Object.entries(CONTENT_REF_GROUPS).sort(([, a], [, b]) => a.order - b.order).map(([type]) => type).filter((type) => presentSet.has(type));
17180
+ const unregistered = [...presentSet].filter((type) => !CONTENT_REF_GROUPS[type]);
17181
+ return [...registeredInOrder, ...unregistered];
17182
+ }
17183
+
17184
+ // src/utils/extract-items.ts
17185
+ function extractItems(data) {
17186
+ if (!data || typeof data !== "object") return [];
17187
+ const obj = data;
17188
+ if (Array.isArray(obj.items)) return obj.items;
17189
+ if (Array.isArray(obj.posts)) return obj.posts;
17190
+ if (Array.isArray(obj.campaigns)) return obj.campaigns;
17191
+ if (Array.isArray(obj.completed) || Array.isArray(obj.inProgress)) {
17192
+ const completed = Array.isArray(obj.completed) ? obj.completed : [];
17193
+ const inProgress = Array.isArray(obj.inProgress) ? obj.inProgress : [];
17194
+ return [...completed, ...inProgress];
17195
+ }
17196
+ if (Array.isArray(obj.data)) return obj.data;
17197
+ if (Array.isArray(data)) return data;
17198
+ return [];
17199
+ }
17200
+ function extractItemId(type, item) {
17201
+ if (!item || typeof item !== "object") return null;
17202
+ const obj = item;
17203
+ if (type === "roadmap_item" || type === "delivery_item" || type === "internal_task") {
17204
+ const ext = obj.external_id;
17205
+ if (typeof ext === "string") return ext;
17206
+ }
17207
+ const id = obj.id;
17208
+ if (typeof id === "string") return id;
17209
+ if (typeof id === "number") return String(id);
17210
+ return null;
17211
+ }
17212
+
17159
17213
  // src/utils/content-href.ts
17160
17214
  var DEFAULT_CONTENT_SUFFIXES = {
17161
17215
  onboarding_guide: "onboarding-guides",
@@ -36489,33 +36543,6 @@ init_next_navigation();
36489
36543
 
36490
36544
  // src/components/chat/hooks/use-chat-card-item.ts
36491
36545
  import { useQuery } from "@tanstack/react-query";
36492
- function extractItems(data) {
36493
- if (!data || typeof data !== "object") return [];
36494
- const obj = data;
36495
- if (Array.isArray(obj.items)) return obj.items;
36496
- if (Array.isArray(obj.posts)) return obj.posts;
36497
- if (Array.isArray(obj.campaigns)) return obj.campaigns;
36498
- if (Array.isArray(obj.completed) || Array.isArray(obj.inProgress)) {
36499
- const completed = Array.isArray(obj.completed) ? obj.completed : [];
36500
- const inProgress = Array.isArray(obj.inProgress) ? obj.inProgress : [];
36501
- return [...completed, ...inProgress];
36502
- }
36503
- if (Array.isArray(obj.data)) return obj.data;
36504
- if (Array.isArray(data)) return data;
36505
- return [];
36506
- }
36507
- function extractItemId(type, item) {
36508
- if (!item || typeof item !== "object") return null;
36509
- const obj = item;
36510
- if (type === "roadmap_item" || type === "delivery_item" || type === "internal_task") {
36511
- const ext = obj.external_id;
36512
- if (typeof ext === "string") return ext;
36513
- }
36514
- const id = obj.id;
36515
- if (typeof id === "string") return id;
36516
- if (typeof id === "number") return String(id);
36517
- return null;
36518
- }
36519
36546
  function useChatCardItem(type, id) {
36520
36547
  const runtime = useRequiredChatRuntime();
36521
36548
  const url = runtime.endpoints.buildListUrl(type, [id]);
@@ -43575,6 +43602,8 @@ export {
43575
43602
  applyProxyAuth,
43576
43603
  setEmbedAuthAdapter,
43577
43604
  embedAuthedFetch,
43605
+ extractItems,
43606
+ extractItemId,
43578
43607
  useChatCardItem,
43579
43608
  SOURCE_ICON_NAMES,
43580
43609
  getSourceIconName,
@@ -43749,6 +43778,10 @@ export {
43749
43778
  OPENFRAME_DEV_SECTIONS,
43750
43779
  scrollElementIntoView,
43751
43780
  buildListUrl,
43781
+ CONTENT_REF_GROUPS,
43782
+ getContentRefLabel,
43783
+ getContentRefLabelOrTitleCase,
43784
+ orderContentRefTypes,
43752
43785
  DEFAULT_CONTENT_SUFFIXES,
43753
43786
  makeComposeContentUrl,
43754
43787
  buildDefaultHref,
@@ -43991,4 +44024,4 @@ export {
43991
44024
  LogsList,
43992
44025
  assets
43993
44026
  };
43994
- //# sourceMappingURL=chunk-Y7DCQUNL.js.map
44027
+ //# sourceMappingURL=chunk-YH6KPNIH.js.map