@flamingo-stack/openframe-frontend-core 0.0.239 → 0.0.241
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-PN64LWNT.js → chunk-2GMHLKEO.js} +8 -8
- package/dist/{chunk-36G2QXYZ.cjs → chunk-3TDLFCCS.cjs} +37 -23
- package/dist/chunk-3TDLFCCS.cjs.map +1 -0
- package/dist/{chunk-ORJREQ2W.js → chunk-4XLJWX2N.js} +4 -4
- package/dist/chunk-5KAQW6Q3.js +285 -0
- package/dist/chunk-5KAQW6Q3.js.map +1 -0
- package/dist/{chunk-7LLS3TWN.js → chunk-6IFN7F3C.js} +5 -5
- package/dist/{chunk-5VU66BD2.cjs → chunk-EFT34DLB.cjs} +498 -461
- package/dist/chunk-EFT34DLB.cjs.map +1 -0
- package/dist/{chunk-Y6463TD6.js → chunk-FEZSQQTH.js} +2 -2
- package/dist/{chunk-IJOJWBME.cjs → chunk-GRD7M6IZ.cjs} +27 -27
- package/dist/{chunk-IJOJWBME.cjs.map → chunk-GRD7M6IZ.cjs.map} +1 -1
- package/dist/{chunk-ELMYRGWG.cjs → chunk-JEPYFYQP.cjs} +12 -12
- package/dist/{chunk-ELMYRGWG.cjs.map → chunk-JEPYFYQP.cjs.map} +1 -1
- package/dist/{chunk-Y7DCQUNL.js → chunk-KOHE4F6Q.js} +91 -54
- package/dist/chunk-KOHE4F6Q.js.map +1 -0
- package/dist/{chunk-JDQY7JCV.js → chunk-MKVKVJQQ.js} +36 -22
- package/dist/chunk-MKVKVJQQ.js.map +1 -0
- package/dist/{chunk-MTROCWO4.cjs → chunk-QJULZ4PB.cjs} +7 -7
- package/dist/{chunk-MTROCWO4.cjs.map → chunk-QJULZ4PB.cjs.map} +1 -1
- package/dist/{chunk-FSS2MIEA.cjs → chunk-SGJBUL2Y.cjs} +20 -3
- package/dist/chunk-SGJBUL2Y.cjs.map +1 -0
- package/dist/{chunk-SZ3BBI6H.cjs → chunk-SWXWKVCC.cjs} +12 -12
- package/dist/{chunk-SZ3BBI6H.cjs.map → chunk-SWXWKVCC.cjs.map} +1 -1
- package/dist/{chunk-LJGBFD52.js → chunk-VAUI3CND.js} +18 -1
- package/dist/chunk-VAUI3CND.js.map +1 -0
- package/dist/{chunk-OB45JHDY.cjs → chunk-VFKQMAUF.cjs} +3 -3
- package/dist/{chunk-OB45JHDY.cjs.map → chunk-VFKQMAUF.cjs.map} +1 -1
- package/dist/chunk-WKZS5HWH.cjs +285 -0
- package/dist/chunk-WKZS5HWH.cjs.map +1 -0
- package/dist/{chunk-G6YZ7O27.js → chunk-Z3657YGL.js} +6 -6
- package/dist/components/chat/hooks/use-chat-card-item.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +6 -6
- package/dist/components/chat/index.js +5 -5
- package/dist/components/chat/types/entities/content-ref.d.ts +5 -20
- package/dist/components/chat/types/entities/content-ref.d.ts.map +1 -1
- package/dist/components/chevron-button.d.ts +3 -1
- package/dist/components/chevron-button.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/contact/index.js +6 -6
- package/dist/components/faq/faq-section.d.ts +8 -2
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/faq/json-ld.cjs +1 -1
- package/dist/components/faq/json-ld.cjs.map +1 -1
- package/dist/components/faq/{faq-json-ld.d.ts → json-ld.d.ts} +1 -1
- package/dist/components/faq/json-ld.d.ts.map +1 -0
- package/dist/components/faq/json-ld.js +1 -1
- package/dist/components/faq/json-ld.js.map +1 -1
- package/dist/components/faq-accordion.d.ts.map +1 -1
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/features/index.js +5 -5
- package/dist/components/index.cjs +89 -85
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +31 -27
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +30 -30
- package/dist/components/onboarding-guides/index.cjs.map +1 -1
- package/dist/components/onboarding-guides/index.js +11 -11
- package/dist/components/related-content/index.cjs +26 -0
- package/dist/components/related-content/index.cjs.map +1 -0
- package/dist/components/related-content/index.d.ts +2 -0
- package/dist/components/related-content/index.d.ts.map +1 -0
- package/dist/components/related-content/index.js +26 -0
- package/dist/components/related-content/index.js.map +1 -0
- package/dist/components/related-content/related-content-section.d.ts +141 -0
- package/dist/components/related-content/related-content-section.d.ts.map +1 -0
- package/dist/components/tickets/index.cjs +73 -73
- package/dist/components/tickets/index.cjs.map +1 -1
- package/dist/components/tickets/index.js +15 -15
- package/dist/components/ui/index.cjs +11 -11
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +13 -13
- package/dist/embed-shims/index.cjs +3 -3
- package/dist/embed-shims/index.cjs.map +1 -1
- package/dist/embed-shims/index.js +5 -5
- package/dist/index.cjs +27 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +55 -39
- package/dist/types/content-ref.d.ts +35 -0
- package/dist/types/content-ref.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/content-ref-groups.d.ts +58 -0
- package/dist/utils/content-ref-groups.d.ts.map +1 -0
- package/dist/utils/extract-items.d.ts +18 -0
- package/dist/utils/extract-items.d.ts.map +1 -0
- package/dist/utils/index.cjs +81 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.ts +4 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +74 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/list-url.d.ts +6 -0
- package/dist/utils/list-url.d.ts.map +1 -1
- package/dist/utils/suggestion-url.d.ts +26 -0
- package/dist/utils/suggestion-url.d.ts.map +1 -0
- package/package.json +7 -1
- package/src/components/chat/hooks/use-chat-card-item.ts +3 -38
- package/src/components/chat/types/entities/content-ref.ts +5 -21
- package/src/components/chevron-button.tsx +5 -1
- package/src/components/faq/faq-section.tsx +71 -26
- package/src/components/faq-accordion.tsx +2 -1
- package/src/components/index.ts +1 -0
- package/src/components/related-content/index.ts +9 -0
- package/src/components/related-content/related-content-section.tsx +603 -0
- package/src/types/content-ref.ts +34 -0
- package/src/types/index.ts +1 -0
- package/src/utils/content-ref-groups.ts +89 -0
- package/src/utils/extract-items.ts +48 -0
- package/src/utils/index.ts +16 -1
- package/src/utils/list-url.ts +9 -0
- package/src/utils/suggestion-url.ts +39 -0
- package/dist/chunk-36G2QXYZ.cjs.map +0 -1
- package/dist/chunk-5VU66BD2.cjs.map +0 -1
- package/dist/chunk-FSS2MIEA.cjs.map +0 -1
- package/dist/chunk-JDQY7JCV.js.map +0 -1
- package/dist/chunk-LJGBFD52.js.map +0 -1
- package/dist/chunk-Y7DCQUNL.js.map +0 -1
- package/dist/components/faq/faq-json-ld.d.ts.map +0 -1
- /package/dist/{chunk-PN64LWNT.js.map → chunk-2GMHLKEO.js.map} +0 -0
- /package/dist/{chunk-ORJREQ2W.js.map → chunk-4XLJWX2N.js.map} +0 -0
- /package/dist/{chunk-7LLS3TWN.js.map → chunk-6IFN7F3C.js.map} +0 -0
- /package/dist/{chunk-Y6463TD6.js.map → chunk-FEZSQQTH.js.map} +0 -0
- /package/dist/{chunk-G6YZ7O27.js.map → chunk-Z3657YGL.js.map} +0 -0
- /package/src/components/faq/{faq-json-ld.ts → json-ld.ts} +0 -0
|
@@ -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,
|
|
@@ -17132,6 +17132,9 @@ function scrollElementIntoView(target, options = {}) {
|
|
|
17132
17132
|
|
|
17133
17133
|
// src/utils/list-url.ts
|
|
17134
17134
|
var ALIASES = { blog_post_existing: "blog_post" };
|
|
17135
|
+
function canonicalContentRefType(contentRefType) {
|
|
17136
|
+
return ALIASES[contentRefType] ?? contentRefType;
|
|
17137
|
+
}
|
|
17135
17138
|
var BUILDERS = {
|
|
17136
17139
|
roadmap_item: (ids, b) => `${b}/api/roadmap?task_ids=${ids.join(",")}`,
|
|
17137
17140
|
delivery_item: (ids, b) => `${b}/api/delivery?task_ids=${ids.join(",")}`,
|
|
@@ -17156,6 +17159,60 @@ function buildListUrl(contentRefType, ids, base = "") {
|
|
|
17156
17159
|
return fn ? fn(ids, base) : null;
|
|
17157
17160
|
}
|
|
17158
17161
|
|
|
17162
|
+
// src/utils/content-ref-groups.ts
|
|
17163
|
+
var CONTENT_REF_GROUPS = {
|
|
17164
|
+
investor_update: { label: "Investor Updates", order: 1, layout: "grid", gridSize: "default" },
|
|
17165
|
+
product_release: { label: "Product Releases", order: 2, layout: "list", gridSize: "lg" },
|
|
17166
|
+
podcast: { label: "Podcasts", order: 3, layout: "list", gridSize: "default" },
|
|
17167
|
+
webinar: { label: "Webinars", order: 4, layout: "list", gridSize: "default" },
|
|
17168
|
+
case_study: { label: "Case Studies", order: 5, layout: "grid", gridSize: "default" },
|
|
17169
|
+
event: { label: "Events", order: 6, layout: "list", gridSize: "default" },
|
|
17170
|
+
blog_post_existing: { label: "Blog Posts", order: 7, layout: "grid", gridSize: "default" },
|
|
17171
|
+
customer_interview: { label: "Customer Interviews", order: 8, layout: "grid", gridSize: "default" },
|
|
17172
|
+
onboarding_guide: { label: "Onboarding Guides", order: 9, layout: "grid", gridSize: "default" }
|
|
17173
|
+
};
|
|
17174
|
+
function getContentRefLabel(type) {
|
|
17175
|
+
return CONTENT_REF_GROUPS[type]?.label ?? null;
|
|
17176
|
+
}
|
|
17177
|
+
function getContentRefLabelOrTitleCase(type) {
|
|
17178
|
+
return CONTENT_REF_GROUPS[type]?.label ?? type.replace(/_/g, " ").replace(/\b\w/g, (ch) => ch.toUpperCase());
|
|
17179
|
+
}
|
|
17180
|
+
function orderContentRefTypes(present) {
|
|
17181
|
+
const presentSet = new Set(present);
|
|
17182
|
+
const registeredInOrder = Object.entries(CONTENT_REF_GROUPS).sort(([, a], [, b]) => a.order - b.order).map(([type]) => type).filter((type) => presentSet.has(type));
|
|
17183
|
+
const unregistered = [...presentSet].filter((type) => !CONTENT_REF_GROUPS[type]);
|
|
17184
|
+
return [...registeredInOrder, ...unregistered];
|
|
17185
|
+
}
|
|
17186
|
+
|
|
17187
|
+
// src/utils/extract-items.ts
|
|
17188
|
+
function extractItems(data) {
|
|
17189
|
+
if (!data || typeof data !== "object") return [];
|
|
17190
|
+
const obj = data;
|
|
17191
|
+
if (Array.isArray(obj.items)) return obj.items;
|
|
17192
|
+
if (Array.isArray(obj.posts)) return obj.posts;
|
|
17193
|
+
if (Array.isArray(obj.campaigns)) return obj.campaigns;
|
|
17194
|
+
if (Array.isArray(obj.completed) || Array.isArray(obj.inProgress)) {
|
|
17195
|
+
const completed = Array.isArray(obj.completed) ? obj.completed : [];
|
|
17196
|
+
const inProgress = Array.isArray(obj.inProgress) ? obj.inProgress : [];
|
|
17197
|
+
return [...completed, ...inProgress];
|
|
17198
|
+
}
|
|
17199
|
+
if (Array.isArray(obj.data)) return obj.data;
|
|
17200
|
+
if (Array.isArray(data)) return data;
|
|
17201
|
+
return [];
|
|
17202
|
+
}
|
|
17203
|
+
function extractItemId(type, item) {
|
|
17204
|
+
if (!item || typeof item !== "object") return null;
|
|
17205
|
+
const obj = item;
|
|
17206
|
+
if (type === "roadmap_item" || type === "delivery_item" || type === "internal_task") {
|
|
17207
|
+
const ext = obj.external_id;
|
|
17208
|
+
if (typeof ext === "string") return ext;
|
|
17209
|
+
}
|
|
17210
|
+
const id = obj.id;
|
|
17211
|
+
if (typeof id === "string") return id;
|
|
17212
|
+
if (typeof id === "number") return String(id);
|
|
17213
|
+
return null;
|
|
17214
|
+
}
|
|
17215
|
+
|
|
17159
17216
|
// src/utils/content-href.ts
|
|
17160
17217
|
var DEFAULT_CONTENT_SUFFIXES = {
|
|
17161
17218
|
onboarding_guide: "onboarding-guides",
|
|
@@ -36489,33 +36546,6 @@ init_next_navigation();
|
|
|
36489
36546
|
|
|
36490
36547
|
// src/components/chat/hooks/use-chat-card-item.ts
|
|
36491
36548
|
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
36549
|
function useChatCardItem(type, id) {
|
|
36520
36550
|
const runtime = useRequiredChatRuntime();
|
|
36521
36551
|
const url = runtime.endpoints.buildListUrl(type, [id]);
|
|
@@ -43575,6 +43605,8 @@ export {
|
|
|
43575
43605
|
applyProxyAuth,
|
|
43576
43606
|
setEmbedAuthAdapter,
|
|
43577
43607
|
embedAuthedFetch,
|
|
43608
|
+
extractItems,
|
|
43609
|
+
extractItemId,
|
|
43578
43610
|
useChatCardItem,
|
|
43579
43611
|
SOURCE_ICON_NAMES,
|
|
43580
43612
|
getSourceIconName,
|
|
@@ -43748,7 +43780,12 @@ export {
|
|
|
43748
43780
|
TICKET_STATUS_OPTIONS,
|
|
43749
43781
|
OPENFRAME_DEV_SECTIONS,
|
|
43750
43782
|
scrollElementIntoView,
|
|
43783
|
+
canonicalContentRefType,
|
|
43751
43784
|
buildListUrl,
|
|
43785
|
+
CONTENT_REF_GROUPS,
|
|
43786
|
+
getContentRefLabel,
|
|
43787
|
+
getContentRefLabelOrTitleCase,
|
|
43788
|
+
orderContentRefTypes,
|
|
43752
43789
|
DEFAULT_CONTENT_SUFFIXES,
|
|
43753
43790
|
makeComposeContentUrl,
|
|
43754
43791
|
buildDefaultHref,
|
|
@@ -43991,4 +44028,4 @@ export {
|
|
|
43991
44028
|
LogsList,
|
|
43992
44029
|
assets
|
|
43993
44030
|
};
|
|
43994
|
-
//# sourceMappingURL=chunk-
|
|
44031
|
+
//# sourceMappingURL=chunk-KOHE4F6Q.js.map
|