@flamingo-stack/openframe-frontend-core 0.0.752 → 0.0.753
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/build/export-map.json +1 -1
- package/dist/{chunk-OXEAN3EQ.cjs → chunk-35BJY5RR.cjs} +44 -44
- package/dist/{chunk-ZYRRRKSZ.cjs → chunk-5E6JHOGX.cjs} +3 -3
- package/dist/{chunk-35RU25PJ.cjs → chunk-7Z4EQOIX.cjs} +44 -44
- package/dist/{chunk-4PEG4JTM.cjs → chunk-B27XV2TC.cjs} +6 -6
- package/dist/{chunk-WQCLN27R.cjs → chunk-C6JHDRK3.cjs} +4 -4
- package/dist/{chunk-KBJSZFBZ.cjs → chunk-ITQZK3UT.cjs} +3 -3
- package/dist/{chunk-JI6NRWCC.cjs → chunk-J3E5UN2O.cjs} +13 -13
- package/dist/{chunk-7WEGXNNS.cjs → chunk-JLAYELWS.cjs} +30 -30
- package/dist/{chunk-EUQJ7QHW.cjs → chunk-QXQHCX2R.cjs} +4 -4
- package/dist/{chunk-IPVJAML5.cjs → chunk-R45NJ5ZA.cjs} +69 -69
- package/dist/{chunk-P4ODFQGA.cjs → chunk-RGYLC3US.cjs} +4 -4
- package/dist/{chunk-EM4OEWCM.cjs → chunk-SDF5UUTE.cjs} +749 -608
- package/dist/{chunk-7OEVVMAU.cjs → chunk-T4BBZ5ST.cjs} +2 -2
- package/dist/{chunk-U2AE4UG7.cjs → chunk-UNRNLSG4.cjs} +2 -2
- package/dist/{chunk-4OTCQEP3.cjs → chunk-UVTJT5BK.cjs} +11 -11
- package/dist/{chunk-Y6PVZRYL.cjs → chunk-W77VPNBJ.cjs} +12 -12
- package/dist/{chunk-ZVOXBSDP.cjs → chunk-WBOHLXFC.cjs} +2 -2
- package/dist/{chunk-OXCGQV6B.cjs → chunk-WIT36ZTN.cjs} +65 -65
- package/dist/{chunk-J5G4CF2V.cjs → chunk-XSOGT6DF.cjs} +16 -16
- package/dist/{chunk-VD3XBUQR.cjs → chunk-XW6WSW36.cjs} +158 -158
- package/dist/{chunk-KUVYVAS2.cjs → chunk-Y7AZCDLZ.cjs} +16 -16
- package/dist/{chunk-XADJG35G.cjs → chunk-Z6TUOE6L.cjs} +31 -31
- package/dist/{chunk-G44V3UGE.cjs → chunk-ZGADZHLD.cjs} +81 -81
- package/dist/{chunk-RDH63XXW.cjs → chunk-ZJ77IOMY.cjs} +34 -34
- package/dist/{cloud-tenants-WAOMZZQ2.cjs → cloud-tenants-7LTS4DAP.cjs} +7 -7
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/chat-dialog-menu-items.js +6 -6
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +3 -0
- package/dist/components/chat/chat-panel-context.d.ts +3 -0
- package/dist/components/chat/chat-panel-context.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts +20 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +78 -8
- package/dist/components/chat/hooks/index.d.ts +1 -0
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/index.js +1 -0
- package/dist/components/chat/hooks/use-what-to-ask.d.ts +69 -0
- package/dist/components/chat/hooks/use-what-to-ask.d.ts.map +1 -0
- package/dist/components/chat/hooks/use-what-to-ask.js +106 -0
- package/dist/components/chat/index.cjs +13 -5
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +1 -0
- package/dist/components/chat/mingo-chat-header.d.ts +4 -2
- package/dist/components/chat/mingo-chat-header.d.ts.map +1 -1
- package/dist/components/chat/mingo-chat-header.js +7 -2
- package/dist/components/chat/suggestions-display.d.ts +11 -0
- package/dist/components/chat/suggestions-display.d.ts.map +1 -0
- package/dist/components/chat/suggestions-display.js +27 -0
- package/dist/components/chat/types/message.types.d.ts +27 -1
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/utils/extract-incomplete-message-state.d.ts.map +1 -1
- package/dist/components/chat/utils/extract-incomplete-message-state.js +2 -0
- package/dist/components/chat/utils/message-segment-accumulator.d.ts.map +1 -1
- package/dist/components/chat/utils/message-segment-accumulator.js +3 -0
- package/dist/components/contact/index.cjs +8 -8
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/embeds/index.cjs +8 -8
- package/dist/components/faq/index.cjs +9 -9
- package/dist/components/features/index.cjs +7 -7
- package/dist/components/help-center-pages/index.cjs +84 -84
- package/dist/components/index.cjs +64 -56
- package/dist/components/meeting-scheduler/index.cjs +31 -31
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/index.cjs +15 -7
- package/dist/{devices-VFEPXW2N.cjs → devices-CGDJAYRB.cjs} +8 -8
- package/dist/{embeddable-chat-BYQBABDV.cjs → embeddable-chat-CMEHSDV7.cjs} +163 -91
- package/dist/index.cjs +19 -11
- package/dist/{knowledge-4TE7AWZX.cjs → knowledge-X5I4QJKV.cjs} +8 -8
- package/dist/{logs-3B2P3JXN.cjs → logs-GDGIRJFI.cjs} +15 -15
- package/dist/{policies-DVI6V22X.cjs → policies-2UOCENDX.cjs} +11 -11
- package/dist/{scripts-JJ2BVYQ5.cjs → scripts-AS4GEG6L.cjs} +12 -12
- package/dist/{software-update-BN23RATE.cjs → software-update-ADPUFMFY.cjs} +10 -10
- package/package.json +1 -1
- package/src/components/chat/chat-dialog-menu-items.tsx +6 -6
- package/src/components/chat/chat-message-enhanced.tsx +3 -0
- package/src/components/chat/chat-panel-context.tsx +3 -0
- package/src/components/chat/embeddable-chat.tsx +132 -9
- package/src/components/chat/hooks/index.ts +1 -0
- package/src/components/chat/hooks/use-what-to-ask.ts +203 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/mingo-chat-header.tsx +11 -4
- package/src/components/chat/suggestions-display.tsx +41 -0
- package/src/components/chat/types/message.types.ts +31 -1
- package/src/components/chat/utils/extract-incomplete-message-state.ts +2 -0
- package/src/components/chat/utils/message-segment-accumulator.ts +4 -0
|
@@ -5,12 +5,12 @@ var _chunkVUWPLQBYcjs = require('./chunk-VUWPLQBY.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkWIT36ZTNcjs = require('./chunk-WIT36ZTN.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkSDF5UUTEcjs = require('./chunk-SDF5UUTE.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -25,10 +25,10 @@ var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkB27XV2TCcjs = require('./chunk-B27XV2TC.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk7Z4EQOIXcjs = require('./chunk-7Z4EQOIX.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
@@ -63,7 +63,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
63
63
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
64
64
|
"div",
|
|
65
65
|
{
|
|
66
|
-
id:
|
|
66
|
+
id: _chunkSDF5UUTEcjs.faqItemAnchor.call(void 0, item.id),
|
|
67
67
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
68
68
|
children: [
|
|
69
69
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -116,14 +116,14 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
116
116
|
|
|
117
117
|
var PICK_ROOT_MARGIN = "600px";
|
|
118
118
|
function faqAskCardShown(assistant) {
|
|
119
|
-
return
|
|
119
|
+
return _chunkWIT36ZTNcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
120
120
|
}
|
|
121
121
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
122
122
|
const { ref, inView } = _chunkCSJO7ZGNcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
123
123
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
124
124
|
if (inView && !reached) setReached(true);
|
|
125
125
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
126
|
-
|
|
126
|
+
_chunkWIT36ZTNcjs.AssistantAskPrompts,
|
|
127
127
|
{
|
|
128
128
|
variant: "card",
|
|
129
129
|
topic,
|
|
@@ -176,7 +176,7 @@ function pageFaqProps(faq) {
|
|
|
176
176
|
}
|
|
177
177
|
function buildFaqsUrl(entityType, entityId, minResults, apiBaseUrl = "", topic) {
|
|
178
178
|
const entityScoped = !!entityType && entityId !== void 0 && entityId !== null && entityId !== "";
|
|
179
|
-
return
|
|
179
|
+
return _chunkB27XV2TCcjs.buildSuggestionUrl.call(void 0, "/api/faqs", {
|
|
180
180
|
apiBaseUrl,
|
|
181
181
|
entityType,
|
|
182
182
|
entityId,
|
|
@@ -197,7 +197,7 @@ function groupFaqsBySection(faqs) {
|
|
|
197
197
|
}
|
|
198
198
|
let group = byName.get(name);
|
|
199
199
|
if (!group) {
|
|
200
|
-
group = { section: name, slug:
|
|
200
|
+
group = { section: name, slug: _chunkSDF5UUTEcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
201
201
|
byName.set(name, group);
|
|
202
202
|
}
|
|
203
203
|
group.items.push(item);
|
|
@@ -252,7 +252,7 @@ function GroupedFaqList({
|
|
|
252
252
|
}, [slugKey]);
|
|
253
253
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
254
254
|
_react.useEffect.call(void 0, () => {
|
|
255
|
-
const refresh = () => setHashTarget(
|
|
255
|
+
const refresh = () => setHashTarget(_chunkSDF5UUTEcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
256
256
|
refresh();
|
|
257
257
|
window.addEventListener("hashchange", refresh);
|
|
258
258
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -302,7 +302,7 @@ function GroupedFaqList({
|
|
|
302
302
|
const questions = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-10", children: groups.map((group) => {
|
|
303
303
|
const key = groupKey(group);
|
|
304
304
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { id: _nullishCoalesce(group.slug, () => ( void 0)), className: "scroll-mt-24 space-y-4", children: [
|
|
305
|
-
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className:
|
|
305
|
+
group.section && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CategoryHeading, { className: _chunk7Z4EQOIXcjs.SECTION_HEADING_CLASS, children: group.section }),
|
|
306
306
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
307
307
|
FaqAccordion,
|
|
308
308
|
{
|
|
@@ -363,11 +363,11 @@ function FaqSection({
|
|
|
363
363
|
() => initialFaqs ? { faqs: initialFaqs } : void 0,
|
|
364
364
|
[initialFaqs]
|
|
365
365
|
);
|
|
366
|
-
const { data, dataUrl, isLoading, error } =
|
|
366
|
+
const { data, dataUrl, isLoading, error } = _chunkB27XV2TCcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
367
367
|
const held = dataUrl === url ? _optionalChain([data, 'optionalAccess', _15 => _15.faqs]) : void 0;
|
|
368
368
|
const faqs = _react.useMemo.call(void 0, () => _nullishCoalesce(held, () => ( [])), [held]);
|
|
369
369
|
const groups = _react.useMemo.call(void 0, () => faqs.length > 0 ? groupFaqsBySection(faqs) : [], [faqs]);
|
|
370
|
-
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
370
|
+
const titleNode = heading === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunk7Z4EQOIXcjs.SECTION_HEADING_CLASS, children: DEFAULT_HEADING_TEXT }) : heading;
|
|
371
371
|
const headingNode = showTopic && topic ? (
|
|
372
372
|
// The host's heading may arrive from a server component, still streaming: React cannot check such a
|
|
373
373
|
// node when it sits in a list of siblings and warns about a missing key. So it is the ONLY child of its
|
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkUNRNLSG4cjs = require('./chunk-UNRNLSG4.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkW77VPNBJcjs = require('./chunk-W77VPNBJ.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkXW6WSW36cjs = require('./chunk-XW6WSW36.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkWIT36ZTNcjs = require('./chunk-WIT36ZTN.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkSDF5UUTEcjs = require('./chunk-SDF5UUTE.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
@@ -34,13 +34,13 @@ var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
|
34
34
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkB27XV2TCcjs = require('./chunk-B27XV2TC.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunk7Z4EQOIXcjs = require('./chunk-7Z4EQOIX.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
var _chunkI5MSCD57cjs = require('./chunk-I5MSCD57.cjs');
|
|
@@ -76,7 +76,7 @@ function OnboardingGuidesCatalogSkeleton({
|
|
|
76
76
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-6 w-40 rounded" }),
|
|
77
77
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-5 w-8 rounded-full" })
|
|
78
78
|
] }),
|
|
79
|
-
/* @__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,
|
|
79
|
+
/* @__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, _chunk7Z4EQOIXcjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, cardIdx)) })
|
|
80
80
|
] }, sectionIdx)) })
|
|
81
81
|
] });
|
|
82
82
|
}
|
|
@@ -100,10 +100,10 @@ function OnboardingGuidesCatalogView({
|
|
|
100
100
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
101
101
|
const activeSection = sectionValue || "all";
|
|
102
102
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
103
|
-
const guidesRes =
|
|
103
|
+
const guidesRes = _chunkB27XV2TCcjs.useSelfFetch.call(void 0,
|
|
104
104
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
105
105
|
);
|
|
106
|
-
const sectionsRes =
|
|
106
|
+
const sectionsRes = _chunkB27XV2TCcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
107
107
|
const guides = _react.useMemo.call(void 0, () => _nullishCoalesce(_nullishCoalesce(initialGuides, () => ( _optionalChain([guidesRes, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.data]))), () => ( [])), [initialGuides, _optionalChain([guidesRes, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.data])]);
|
|
108
108
|
const sections = _react.useMemo.call(void 0,
|
|
109
109
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -146,25 +146,25 @@ function OnboardingGuidesCatalogView({
|
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
148
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
149
|
-
const docSearch =
|
|
149
|
+
const docSearch = _chunkW77VPNBJcjs.useDocSearch.call(void 0, {
|
|
150
150
|
source,
|
|
151
151
|
baseRoute: basePath,
|
|
152
152
|
onNavigate: (path) => router.push(path),
|
|
153
153
|
tableIds: ["onboarding-guides"]
|
|
154
154
|
});
|
|
155
155
|
const defaultRenderCard = (guide) => {
|
|
156
|
-
const cta =
|
|
156
|
+
const cta = _chunkWIT36ZTNcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
157
157
|
type: "onboarding_guide",
|
|
158
158
|
slug: guide.slug,
|
|
159
159
|
basePath,
|
|
160
160
|
platforms: guide.onboarding_guide_platforms
|
|
161
161
|
});
|
|
162
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
162
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Z4EQOIXcjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
163
163
|
};
|
|
164
164
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
165
165
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
166
166
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
167
|
-
|
|
167
|
+
_chunkW77VPNBJcjs.DocSearchBar,
|
|
168
168
|
{
|
|
169
169
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
170
170
|
query: docSearch.query,
|
|
@@ -176,7 +176,7 @@ function OnboardingGuidesCatalogView({
|
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
178
|
sections.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
179
|
-
|
|
179
|
+
_chunkXW6WSW36cjs.FilterPillRow,
|
|
180
180
|
{
|
|
181
181
|
label: "Section",
|
|
182
182
|
selectedValue: activeSection,
|
|
@@ -186,7 +186,7 @@ function OnboardingGuidesCatalogView({
|
|
|
186
186
|
)
|
|
187
187
|
] });
|
|
188
188
|
if (selfFetch && guidesRes.error) {
|
|
189
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
189
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
190
190
|
}
|
|
191
191
|
if (selfFetch && guidesRes.data == null && isLoading) {
|
|
192
192
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingGuidesCatalogSkeleton, {});
|
|
@@ -218,7 +218,7 @@ function OnboardingGuideDetailView({
|
|
|
218
218
|
slug,
|
|
219
219
|
guideEndpoint,
|
|
220
220
|
related = [],
|
|
221
|
-
MarkdownRenderer =
|
|
221
|
+
MarkdownRenderer = _chunkXW6WSW36cjs.RichMarkdownRenderer,
|
|
222
222
|
renderRelatedCard,
|
|
223
223
|
backHref,
|
|
224
224
|
backLabel = "Back to Getting Started",
|
|
@@ -228,23 +228,23 @@ function OnboardingGuideDetailView({
|
|
|
228
228
|
}) {
|
|
229
229
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
230
230
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
231
|
-
const captions =
|
|
231
|
+
const captions = _chunkSDF5UUTEcjs.useCaptions.call(void 0, );
|
|
232
232
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
233
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
233
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
234
234
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
235
|
-
const { data: guide, isLoading, error, reload } =
|
|
235
|
+
const { data: guide, isLoading, error, reload } = _chunkB27XV2TCcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
236
236
|
const { ref: videoWarmupRef } = _chunk3RFQPQ7Zcjs.useVideoWarmup.call(void 0, {
|
|
237
237
|
videoUrl: _optionalChain([guide, 'optionalAccess', _8 => _8.main_video_url]),
|
|
238
238
|
supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _9 => _9.endpoints, 'access', _10 => _10.supabaseStorageOrigin])
|
|
239
239
|
});
|
|
240
240
|
if (error || !guide && !isLoading) {
|
|
241
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
241
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
242
242
|
}
|
|
243
243
|
if (!guide) {
|
|
244
244
|
return renderShell(
|
|
245
245
|
// Match the loaded page's top offset (TitleBlock's
|
|
246
246
|
// `pt-[var(--spacing-system-l)]`) so content doesn't jump on load.
|
|
247
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
247
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUNRNLSG4cjs.DetailPageSkeleton, { bare: true, showImageGallery: false }) })
|
|
248
248
|
);
|
|
249
249
|
}
|
|
250
250
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", guide);
|
|
@@ -252,13 +252,13 @@ function OnboardingGuideDetailView({
|
|
|
252
252
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
253
253
|
_chunkI5MSCD57cjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), guide.title, { aspect: "wide" });
|
|
254
254
|
const defaultRenderRelatedCard = (g) => {
|
|
255
|
-
const cta =
|
|
255
|
+
const cta = _chunkWIT36ZTNcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
256
256
|
type: "onboarding_guide",
|
|
257
257
|
slug: g.slug,
|
|
258
258
|
basePath,
|
|
259
259
|
platforms: g.onboarding_guide_platforms
|
|
260
260
|
});
|
|
261
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
261
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7Z4EQOIXcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
262
262
|
};
|
|
263
263
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
264
264
|
return renderShell(
|
|
@@ -270,9 +270,9 @@ function OnboardingGuideDetailView({
|
|
|
270
270
|
titleWrap: true,
|
|
271
271
|
backButton: { label: backLabel, onClick: () => router.push(resolvedBackHref) },
|
|
272
272
|
children: [
|
|
273
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
273
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXW6WSW36cjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
|
|
274
274
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
|
-
|
|
275
|
+
_chunk7Z4EQOIXcjs.EntityAuthorCard,
|
|
276
276
|
{
|
|
277
277
|
author: guide.author,
|
|
278
278
|
authorHref,
|
|
@@ -287,7 +287,7 @@ function OnboardingGuideDetailView({
|
|
|
287
287
|
}
|
|
288
288
|
),
|
|
289
289
|
(guide.main_video_url || guide.youtube_url) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
290
|
-
|
|
290
|
+
_chunkSDF5UUTEcjs.EntityVideoSection,
|
|
291
291
|
{
|
|
292
292
|
mainVideoUrl: guide.main_video_url,
|
|
293
293
|
youtubeUrl: guide.youtube_url || void 0,
|
|
@@ -304,17 +304,17 @@ function OnboardingGuideDetailView({
|
|
|
304
304
|
) }),
|
|
305
305
|
guide.content && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: guide.content }) }),
|
|
306
306
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
307
|
-
|
|
307
|
+
_chunkSDF5UUTEcjs.VideoBitesStrip,
|
|
308
308
|
{
|
|
309
309
|
bites: _nullishCoalesce(guide.video_bites, () => ( [])),
|
|
310
310
|
filterPublished: true,
|
|
311
311
|
showTitle: false,
|
|
312
|
-
profile:
|
|
312
|
+
profile: _chunk7Z4EQOIXcjs.toStripProfile.call(void 0, guide.author),
|
|
313
313
|
href: `/onboarding-guides/${guide.slug}`
|
|
314
314
|
}
|
|
315
315
|
),
|
|
316
316
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
317
|
-
|
|
317
|
+
_chunkUNRNLSG4cjs.ArticleAuthorByline,
|
|
318
318
|
{
|
|
319
319
|
author: _nullishCoalesce(_optionalChain([guide, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
320
320
|
avatar: _optionalChain([guide, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWIT36ZTNcjs = require('./chunk-WIT36ZTN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSDF5UUTEcjs = require('./chunk-SDF5UUTE.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.cjs');
|
|
@@ -44,7 +44,7 @@ function isSummaryData(value) {
|
|
|
44
44
|
}
|
|
45
45
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
46
46
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
47
|
-
const identity =
|
|
47
|
+
const identity = _chunkSDF5UUTEcjs.useChatIdentity.call(void 0, enabled);
|
|
48
48
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
49
49
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
50
50
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
160
160
|
_react2.default.useEffect(() => {
|
|
161
161
|
if (!streamEnabled) return void 0;
|
|
162
162
|
if (typeof window === "undefined") return void 0;
|
|
163
|
-
subscriptionRef.current =
|
|
163
|
+
subscriptionRef.current = _chunkWIT36ZTNcjs.createSseSubscription.call(void 0, {
|
|
164
164
|
url: streamUrl,
|
|
165
165
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
166
166
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|