@flamingo-stack/openframe-frontend-core 0.0.820 → 0.0.822
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/chat-protocol/citation-chip.d.ts +20 -0
- package/dist/chat-protocol/citation-chip.d.ts.map +1 -0
- package/dist/chat-protocol/citation-chip.js +25 -0
- package/dist/chat-protocol/index.cjs +25 -0
- package/dist/chat-protocol/index.d.ts +1 -0
- package/dist/chat-protocol/index.d.ts.map +1 -1
- package/dist/chat-protocol/index.js +1 -0
- package/dist/{chunk-OTGYA5F7.cjs → chunk-2LT2WR4O.cjs} +57 -46
- package/dist/{chunk-K5IICQNF.cjs → chunk-2YUWBIZM.cjs} +46 -46
- package/dist/{chunk-NSN3O47K.cjs → chunk-3BW6PEAB.cjs} +32 -32
- package/dist/{chunk-L55EVW33.cjs → chunk-6UVOL3ZF.cjs} +6 -6
- package/dist/{chunk-IJ3C4WL5.cjs → chunk-BN535RBR.cjs} +55 -55
- package/dist/{chunk-MOPDE3OA.cjs → chunk-D5JSCXSL.cjs} +13 -13
- package/dist/{chunk-JQ3JZLYS.cjs → chunk-DYSMAPSI.cjs} +4 -4
- package/dist/{chunk-7X7PHALX.cjs → chunk-ECLKFEZP.cjs} +11 -11
- package/dist/{chunk-DLQCSJTY.cjs → chunk-FQQDI3UN.cjs} +3 -3
- package/dist/{chunk-5GUQBNQF.cjs → chunk-GA2PYQLC.cjs} +63 -63
- package/dist/{chunk-UDLDXVY4.cjs → chunk-GBILLSRM.cjs} +4 -4
- package/dist/{chunk-BHJDQYUN.cjs → chunk-M6PCHMRI.cjs} +131 -131
- package/dist/{chunk-TYDSD3FV.cjs → chunk-N6X5H3JM.cjs} +4 -4
- package/dist/{chunk-TVOAFYT7.cjs → chunk-NSGD22VV.cjs} +39 -39
- package/dist/{chunk-IM366HS6.cjs → chunk-QCRJVO6Y.cjs} +78 -7
- package/dist/{chunk-YAY7Z42C.cjs → chunk-SBXL5EKE.cjs} +32 -97
- package/dist/{chunk-CJ7VHMPD.cjs → chunk-TJFVIJPV.cjs} +2 -2
- package/dist/{chunk-42K7MLVS.cjs → chunk-U643BWTQ.cjs} +30 -30
- package/dist/{chunk-STFOH6QU.cjs → chunk-U7CH53FT.cjs} +13 -13
- package/dist/{chunk-ADBZCDFX.cjs → chunk-UUFL4FDS.cjs} +14 -14
- package/dist/{chunk-LUID2IB3.cjs → chunk-XEIZL3I3.cjs} +2 -2
- package/dist/{chunk-2TEUAOUZ.cjs → chunk-YCWG63NR.cjs} +3 -3
- package/dist/{cloud-tenants-ENCHNOF2.cjs → cloud-tenants-AKMN4SU4.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/remark-strip-citations.d.ts +3 -4
- package/dist/components/chat/remark-strip-citations.d.ts.map +1 -1
- package/dist/components/chat/remark-strip-citations.js +3 -13
- package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
- package/dist/components/chat/utils/cited-sources.js +2 -6
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +80 -80
- package/dist/components/index.cjs +48 -48
- package/dist/components/meeting-scheduler/index.cjs +31 -31
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/ui/index.cjs +6 -6
- package/dist/contexts/chat-runtime-context.d.ts +4 -3
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/{devices-HRLHG4TR.cjs → devices-IHDA22KS.cjs} +7 -7
- package/dist/{embeddable-chat-ARMXVLUP.cjs → embeddable-chat-MQGYFYGX.cjs} +68 -72
- package/dist/index.cjs +17 -17
- package/dist/{knowledge-S2L5ZCAU.cjs → knowledge-JHSMUC6Y.cjs} +7 -7
- package/dist/{logs-UYQZSFS4.cjs → logs-7PMA2ARK.cjs} +14 -14
- package/dist/{policies-SMA4MW6L.cjs → policies-QNNZVXIS.cjs} +10 -10
- package/dist/{scripts-TZNXTFRR.cjs → scripts-LOMWOSQS.cjs} +11 -11
- package/dist/{software-update-YHDVBC7V.cjs → software-update-YF3VQIP4.cjs} +9 -9
- package/dist/utils/image-proxy.d.ts +3 -2
- package/dist/utils/image-proxy.d.ts.map +1 -1
- package/dist/utils/image-proxy.js +11 -4
- package/dist/utils/index.cjs +68 -62
- package/package.json +1 -1
- package/src/chat-protocol/citation-chip.ts +46 -0
- package/src/chat-protocol/index.ts +2 -0
- package/src/components/chat/remark-strip-citations.ts +7 -26
- package/src/components/chat/utils/cited-sources.ts +2 -8
- package/src/contexts/chat-runtime-context.tsx +4 -3
- package/src/utils/image-proxy.ts +17 -6
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk2LT2WR4Ocjs = require('./chunk-2LT2WR4O.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -106,13 +106,13 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
106
106
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
var
|
|
109
|
+
var _chunkGBILLSRMcjs = require('./chunk-GBILLSRM.cjs');
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
115
|
-
var
|
|
115
|
+
var _chunkQCRJVO6Ycjs = require('./chunk-QCRJVO6Y.cjs');
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
@@ -208,7 +208,7 @@ function ChatMessageRow(props) {
|
|
|
208
208
|
}
|
|
209
209
|
function ChatMessageRowLoaded(props) {
|
|
210
210
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
211
|
-
const proxiedAvatar =
|
|
211
|
+
const proxiedAvatar = _chunkQCRJVO6Ycjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
212
212
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
213
213
|
const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
|
|
214
214
|
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
@@ -2050,7 +2050,7 @@ function lastPathSegment(url) {
|
|
|
2050
2050
|
function makeComposeContentUrl(opts) {
|
|
2051
2051
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
2052
2052
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
2053
|
-
const type =
|
|
2053
|
+
const type = _chunkQCRJVO6Ycjs.canonicalContentRefType.call(void 0, rawType);
|
|
2054
2054
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
2055
2055
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
2056
2056
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -2243,7 +2243,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2243
2243
|
if (heading.level > opts.maxLevel) continue;
|
|
2244
2244
|
let title = heading.text;
|
|
2245
2245
|
if (opts.stripFormattingMarkers) {
|
|
2246
|
-
title =
|
|
2246
|
+
title = _chunk2LT2WR4Ocjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2247
2247
|
}
|
|
2248
2248
|
const baseId = _chunkA34UNP5Vcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkA34UNP5Vcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2249
2249
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2432,64 +2432,6 @@ function toCsv(rows, columns) {
|
|
|
2432
2432
|
return [header, ...body].join("\n");
|
|
2433
2433
|
}
|
|
2434
2434
|
|
|
2435
|
-
// src/utils/social-platforms.ts
|
|
2436
|
-
var SOCIAL_PLATFORM_ALIASES = {
|
|
2437
|
-
x: "twitter",
|
|
2438
|
-
mail: "email",
|
|
2439
|
-
web: "website",
|
|
2440
|
-
url: "website",
|
|
2441
|
-
yt: "youtube",
|
|
2442
|
-
ig: "instagram",
|
|
2443
|
-
fb: "facebook",
|
|
2444
|
-
generic: "website"
|
|
2445
|
-
};
|
|
2446
|
-
function normalizeSocialPlatform(platform) {
|
|
2447
|
-
if (!platform) return null;
|
|
2448
|
-
const key = platform.toLowerCase().trim();
|
|
2449
|
-
if (!key) return null;
|
|
2450
|
-
return _nullishCoalesce(SOCIAL_PLATFORM_ALIASES[key], () => ( key));
|
|
2451
|
-
}
|
|
2452
|
-
function hostMatches(hostname, domain) {
|
|
2453
|
-
if (!hostname) return false;
|
|
2454
|
-
const host = hostname.toLowerCase().replace(/^www\./, "");
|
|
2455
|
-
const bare = domain.toLowerCase().replace(/^www\./, "");
|
|
2456
|
-
return host === bare || host.endsWith(`.${bare}`);
|
|
2457
|
-
}
|
|
2458
|
-
var SOCIAL_PLATFORM_ALT_HOSTS = {
|
|
2459
|
-
twitter: ["x.com"],
|
|
2460
|
-
youtube: ["youtu.be"],
|
|
2461
|
-
discord: ["discord.gg"],
|
|
2462
|
-
telegram: ["telegram.org"],
|
|
2463
|
-
facebook: ["fb.com"]
|
|
2464
|
-
};
|
|
2465
|
-
function hostOf(value) {
|
|
2466
|
-
if (!value) return null;
|
|
2467
|
-
try {
|
|
2468
|
-
return new URL(value.includes("://") ? value : `https://${value}`).hostname;
|
|
2469
|
-
} catch (e15) {
|
|
2470
|
-
return null;
|
|
2471
|
-
}
|
|
2472
|
-
}
|
|
2473
|
-
function socialPlatformHosts(platform) {
|
|
2474
|
-
const primary = _nullishCoalesce(hostOf(platform.urlPattern), () => ( hostOf(platform.baseUrl)));
|
|
2475
|
-
return [...primary ? [primary] : [], ..._nullishCoalesce(SOCIAL_PLATFORM_ALT_HOSTS[platform.name], () => ( []))];
|
|
2476
|
-
}
|
|
2477
|
-
function classifySocialHost(url, platforms) {
|
|
2478
|
-
const hostname = hostOf(url);
|
|
2479
|
-
if (!hostname) return null;
|
|
2480
|
-
for (const platform of platforms) {
|
|
2481
|
-
if (socialPlatformHosts(platform).some((domain) => hostMatches(hostname, domain))) {
|
|
2482
|
-
return platform.name;
|
|
2483
|
-
}
|
|
2484
|
-
}
|
|
2485
|
-
return "website";
|
|
2486
|
-
}
|
|
2487
|
-
function pickSocialLink(links, platform) {
|
|
2488
|
-
const target = normalizeSocialPlatform(platform);
|
|
2489
|
-
if (!target || !links) return void 0;
|
|
2490
|
-
return links.find((link) => normalizeSocialPlatform(link.platform) === target);
|
|
2491
|
-
}
|
|
2492
|
-
|
|
2493
2435
|
// src/utils/copyright-line.ts
|
|
2494
2436
|
function copyrightLine(legalName, year = (/* @__PURE__ */ new Date()).getFullYear()) {
|
|
2495
2437
|
const name = legalName.trim();
|
|
@@ -2501,7 +2443,7 @@ function copyrightLine(legalName, year = (/* @__PURE__ */ new Date()).getFullYea
|
|
|
2501
2443
|
function compile(pattern) {
|
|
2502
2444
|
try {
|
|
2503
2445
|
return new RegExp(`^(?:${pattern})$`);
|
|
2504
|
-
} catch (
|
|
2446
|
+
} catch (e15) {
|
|
2505
2447
|
return null;
|
|
2506
2448
|
}
|
|
2507
2449
|
}
|
|
@@ -2558,7 +2500,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2558
2500
|
function openAskAi(source, options) {
|
|
2559
2501
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2560
2502
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2561
|
-
window.dispatchEvent(new CustomEvent(
|
|
2503
|
+
window.dispatchEvent(new CustomEvent(_chunk2LT2WR4Ocjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2562
2504
|
}
|
|
2563
2505
|
function MingoAiButton({
|
|
2564
2506
|
source,
|
|
@@ -2601,7 +2543,7 @@ function MingoAiButton({
|
|
|
2601
2543
|
{
|
|
2602
2544
|
...props,
|
|
2603
2545
|
type: "button",
|
|
2604
|
-
...{ [
|
|
2546
|
+
...{ [_chunk2LT2WR4Ocjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2605
2547
|
variant: field ? "glyph" : "transparent",
|
|
2606
2548
|
size: "wrap",
|
|
2607
2549
|
font: "regular",
|
|
@@ -2703,7 +2645,7 @@ function useAskPrompts({
|
|
|
2703
2645
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2704
2646
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2705
2647
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2706
|
-
const { data, dataUrl, error } =
|
|
2648
|
+
const { data, dataUrl, error } = _chunkGBILLSRMcjs.useSelfFetch.call(void 0, url);
|
|
2707
2649
|
const landed = url !== null && (dataUrl === url || error);
|
|
2708
2650
|
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _105 => _105.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2709
2651
|
}
|
|
@@ -2842,9 +2784,9 @@ function QuestionChips({
|
|
|
2842
2784
|
{
|
|
2843
2785
|
"data-loading-item": true,
|
|
2844
2786
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2845
|
-
...prompt ? { [
|
|
2787
|
+
...prompt ? { [_chunk2LT2WR4Ocjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2846
2788
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2847
|
-
|
|
2789
|
+
_chunk2LT2WR4Ocjs.QuickActionChipButton,
|
|
2848
2790
|
{
|
|
2849
2791
|
loading,
|
|
2850
2792
|
variant: "question",
|
|
@@ -3054,7 +2996,7 @@ function QuickActionMarquee({
|
|
|
3054
2996
|
);
|
|
3055
2997
|
if (items.length === 0) return null;
|
|
3056
2998
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3057
|
-
|
|
2999
|
+
_chunk2LT2WR4Ocjs.QuickActionWall,
|
|
3058
3000
|
{
|
|
3059
3001
|
chips,
|
|
3060
3002
|
mode,
|
|
@@ -3269,7 +3211,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3269
3211
|
hasNextPage,
|
|
3270
3212
|
isFetchingNextPage,
|
|
3271
3213
|
onLoadMore,
|
|
3272
|
-
pageSize =
|
|
3214
|
+
pageSize = _chunk2LT2WR4Ocjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3273
3215
|
...props
|
|
3274
3216
|
}, ref) => {
|
|
3275
3217
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3553,7 +3495,7 @@ function OnboardingCarousel({
|
|
|
3553
3495
|
|
|
3554
3496
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3555
3497
|
var GRID_CELL_CLASS = "h-full";
|
|
3556
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3498
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3557
3499
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3558
3500
|
if (loadingCard !== void 0) return loadingCard;
|
|
3559
3501
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3567,7 +3509,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3567
3509
|
label = "Loading",
|
|
3568
3510
|
region = true
|
|
3569
3511
|
}) {
|
|
3570
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3512
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.LoadingFallback, { label, status: region, className: _chunk63A4GZMBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3571
3513
|
}
|
|
3572
3514
|
function AdminContentCardGrid({
|
|
3573
3515
|
items,
|
|
@@ -3624,7 +3566,7 @@ function parseChannelFromUrl(url) {
|
|
|
3624
3566
|
const parts = u.pathname.split("/").filter(Boolean);
|
|
3625
3567
|
const archivesIdx = parts.indexOf("archives");
|
|
3626
3568
|
if (archivesIdx !== -1 && parts.length > archivesIdx + 1) return parts[archivesIdx + 1];
|
|
3627
|
-
} catch (
|
|
3569
|
+
} catch (e16) {
|
|
3628
3570
|
}
|
|
3629
3571
|
return null;
|
|
3630
3572
|
}
|
|
@@ -3863,7 +3805,7 @@ function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
|
3863
3805
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3864
3806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3865
3807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunkUEULXVW2cjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3866
|
-
campaign.start_date ?
|
|
3808
|
+
campaign.start_date ? _chunkQCRJVO6Ycjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3867
3809
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3868
3810
|
"Marketing campaign"
|
|
3869
3811
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
@@ -4098,7 +4040,7 @@ function useJetStreamDialogSubscription({
|
|
|
4098
4040
|
if (subscriptionRef.current) {
|
|
4099
4041
|
try {
|
|
4100
4042
|
subscriptionRef.current.unsubscribe();
|
|
4101
|
-
} catch (
|
|
4043
|
+
} catch (e17) {
|
|
4102
4044
|
}
|
|
4103
4045
|
subscriptionRef.current = null;
|
|
4104
4046
|
}
|
|
@@ -4192,7 +4134,7 @@ function useJetStreamDialogSubscription({
|
|
|
4192
4134
|
if (subscriptionRef.current) {
|
|
4193
4135
|
try {
|
|
4194
4136
|
subscriptionRef.current.unsubscribe();
|
|
4195
|
-
} catch (
|
|
4137
|
+
} catch (e18) {
|
|
4196
4138
|
}
|
|
4197
4139
|
subscriptionRef.current = null;
|
|
4198
4140
|
}
|
|
@@ -4236,7 +4178,7 @@ function useJetStreamDialogSubscription({
|
|
|
4236
4178
|
parsed.streamSeq = streamSeq;
|
|
4237
4179
|
}
|
|
4238
4180
|
cb(parsed, topic);
|
|
4239
|
-
} catch (
|
|
4181
|
+
} catch (e19) {
|
|
4240
4182
|
}
|
|
4241
4183
|
},
|
|
4242
4184
|
{
|
|
@@ -4259,7 +4201,7 @@ function useJetStreamDialogSubscription({
|
|
|
4259
4201
|
onCaughtUp: settleCatchUp
|
|
4260
4202
|
}
|
|
4261
4203
|
);
|
|
4262
|
-
} catch (
|
|
4204
|
+
} catch (e20) {
|
|
4263
4205
|
if (cancelled) return;
|
|
4264
4206
|
setIsSubscribed(false);
|
|
4265
4207
|
settleCatchUp();
|
|
@@ -4268,7 +4210,7 @@ function useJetStreamDialogSubscription({
|
|
|
4268
4210
|
if (cancelled) {
|
|
4269
4211
|
try {
|
|
4270
4212
|
handle.unsubscribe();
|
|
4271
|
-
} catch (
|
|
4213
|
+
} catch (e21) {
|
|
4272
4214
|
}
|
|
4273
4215
|
return;
|
|
4274
4216
|
}
|
|
@@ -4286,7 +4228,7 @@ function useJetStreamDialogSubscription({
|
|
|
4286
4228
|
if (subscriptionRef.current) {
|
|
4287
4229
|
try {
|
|
4288
4230
|
subscriptionRef.current.unsubscribe();
|
|
4289
|
-
} catch (
|
|
4231
|
+
} catch (e22) {
|
|
4290
4232
|
}
|
|
4291
4233
|
subscriptionRef.current = null;
|
|
4292
4234
|
}
|
|
@@ -5159,7 +5101,7 @@ function Section({ title, description, children }) {
|
|
|
5159
5101
|
] });
|
|
5160
5102
|
}
|
|
5161
5103
|
function ProxyCredentialsPanel({ description }) {
|
|
5162
|
-
const hydrated =
|
|
5104
|
+
const hydrated = _chunk2LT2WR4Ocjs.useIsHydrated.call(void 0, );
|
|
5163
5105
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5164
5106
|
ProxyCredentialsForm,
|
|
5165
5107
|
{
|
|
@@ -5323,12 +5265,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5323
5265
|
|
|
5324
5266
|
// src/components/chat/index.ts
|
|
5325
5267
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5326
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5268
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-MQGYFYGX.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5327
5269
|
);
|
|
5328
5270
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5329
5271
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5330
5272
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5331
|
-
_react.useEffect.call(void 0, () =>
|
|
5273
|
+
_react.useEffect.call(void 0, () => _chunk2LT2WR4Ocjs.holdAskAiOpens.call(void 0, ), []);
|
|
5332
5274
|
const { loadStyles } = props;
|
|
5333
5275
|
_react.useEffect.call(void 0, () => {
|
|
5334
5276
|
if (load) _optionalChain([loadStyles, 'optionalCall', _204 => _204()]);
|
|
@@ -5336,12 +5278,12 @@ var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
5336
5278
|
_react.useEffect.call(void 0, () => {
|
|
5337
5279
|
if (load) return void 0;
|
|
5338
5280
|
const start = () => setLoadRequested(true);
|
|
5339
|
-
if (
|
|
5340
|
-
for (const name of
|
|
5341
|
-
const cancel =
|
|
5281
|
+
if (_chunk2LT2WR4Ocjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5282
|
+
for (const name of _chunk2LT2WR4Ocjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5283
|
+
const cancel = _chunk2LT2WR4Ocjs.onAskAiIntent.call(void 0, start);
|
|
5342
5284
|
return () => {
|
|
5343
5285
|
cancel();
|
|
5344
|
-
for (const name of
|
|
5286
|
+
for (const name of _chunk2LT2WR4Ocjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5345
5287
|
};
|
|
5346
5288
|
}, [load]);
|
|
5347
5289
|
if (!load) return null;
|
|
@@ -5555,11 +5497,4 @@ EmbeddableChat.displayName = "EmbeddableChat";
|
|
|
5555
5497
|
|
|
5556
5498
|
|
|
5557
5499
|
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
exports.InfoHint = InfoHint; exports.Field = Field; exports.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS = HUBSPOT_DO_NOT_COLLECT_FORM_PROPS; exports.FullscreenSwitchController = FullscreenSwitchController; exports.SOCIAL_PLATFORM_ALIASES = SOCIAL_PLATFORM_ALIASES; exports.normalizeSocialPlatform = normalizeSocialPlatform; exports.hostMatches = hostMatches; exports.SOCIAL_PLATFORM_ALT_HOSTS = SOCIAL_PLATFORM_ALT_HOSTS; exports.socialPlatformHosts = socialPlatformHosts; exports.classifySocialHost = classifySocialHost; exports.pickSocialLink = pickSocialLink; exports.ChatMessageRow = ChatMessageRow; exports.TURN_ROW_CLASS = TURN_ROW_CLASS; exports.TURN_BODY_CLASS = TURN_BODY_CLASS; exports.ChatTurn = ChatTurn; exports.AI_PROVIDERS = AI_PROVIDERS; exports.aiProvider = aiProvider; exports.TOKEN_RATE_EMPTY = TOKEN_RATE_EMPTY; exports.formatTokenRate = formatTokenRate; exports.tokenCost = tokenCost; exports.formatTokenAmount = formatTokenAmount; exports.tokensForBalance = tokensForBalance; exports.tokenRateProviderLabel = tokenRateProviderLabel; exports.groupTokenRatesByProvider = groupTokenRatesByProvider; exports.TRIAL_TERMS = TRIAL_TERMS; exports.trialLengthLabel = trialLengthLabel; exports.trialLabels = trialLabels; exports.isOwnClick = isOwnClick; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.clickUpDropDownOption = clickUpDropDownOption; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.TICKET_OPEN_PARAM = TICKET_OPEN_PARAM; exports.buildTicketOpenHref = buildTicketOpenHref; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.BITE_ID_RE = BITE_ID_RE; exports.generateBiteId = generateBiteId; exports.ensureBiteIds = ensureBiteIds; exports.matchBiteElement = matchBiteElement; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.DOWNLOAD_PAGE_PATH = DOWNLOAD_PAGE_PATH; exports.resolveMobileStoreUrl = resolveMobileStoreUrl; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.getCountryByName = getCountryByName; exports.getFlagFromCountryName = getFlagFromCountryName; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.COMPLIANCE_STANDARDS = COMPLIANCE_STANDARDS; exports.complianceStandardForName = complianceStandardForName; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.isDismissedCookieValue = isDismissedCookieValue; exports.readDismissCookie = readDismissCookie; exports.writeDismissCookie = writeDismissCookie; exports.clearDismissCookie = clearDismissCookie; exports.dismissedBeforePaintScript = dismissedBeforePaintScript; exports.announcementDismissCookieName = announcementDismissCookieName; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.isAnnouncementOnSurface = isAnnouncementOnSurface; exports.afterPageLoad = afterPageLoad; exports.WALKTHROUGH_VIDEO_DISMISS_KEY = WALKTHROUGH_VIDEO_DISMISS_KEY; exports.walkthroughDismissCookieName = walkthroughDismissCookieName; exports.isWalkthroughDismissed = isWalkthroughDismissed; exports.dismissWalkthrough = dismissWalkthrough; exports.clearWalkthroughDismissal = clearWalkthroughDismissal; exports.WALKTHROUGH_OPEN_QUERY_PARAM = WALKTHROUGH_OPEN_QUERY_PARAM; exports.withWalkthroughOpenParam = withWalkthroughOpenParam; exports.createSseSubscription = createSseSubscription; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.openInNewTab = openInNewTab; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.LEGAL_DOCUMENT_TYPES = LEGAL_DOCUMENT_TYPES; exports.isLegalDocumentType = isLegalDocumentType; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.extractSections = extractSections; exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE; exports.MAX_MONTH_OFFSET = MAX_MONTH_OFFSET; exports.normalizeSchedulingSlug = normalizeSchedulingSlug; exports.isValidSchedulingSlug = isValidSchedulingSlug; exports.parseSchedulingLinkName = parseSchedulingLinkName; exports.isListedSchedulingName = isListedSchedulingName; exports.schedulingAudienceKey = schedulingAudienceKey; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.FIRST_TOUCH_ATTRIBUTION_KEY = FIRST_TOUCH_ATTRIBUTION_KEY; exports.sanitizeLandingUrl = sanitizeLandingUrl; exports.parseAttributionFromUrl = parseAttributionFromUrl; exports.captureFirstTouchAttribution = captureFirstTouchAttribution; exports.getFirstTouchAttribution = getFirstTouchAttribution; exports.withFirstTouchAttribution = withFirstTouchAttribution; exports.clearFirstTouchAttribution = clearFirstTouchAttribution; exports.ODS_SPACING_TOKENS = ODS_SPACING_TOKENS; exports.ODS_SPACING_TOKEN_PATTERN = ODS_SPACING_TOKEN_PATTERN; exports.ODS_SPACING_PROPS = ODS_SPACING_PROPS; exports.TAILWIND_STEP_TO_ODS_TOKEN = TAILWIND_STEP_TO_ODS_TOKEN; exports.CSV_CONTENT_TYPE = CSV_CONTENT_TYPE; exports.csvEscape = csvEscape; exports.toCsv = toCsv; exports.copyrightLine = copyrightLine; exports.isValidPathPattern = isValidPathPattern; exports.matchesPathPattern = matchesPathPattern; exports.pathMatchesAny = pathMatchesAny; exports.formatDemoClock = formatDemoClock; exports.demoClockTimes = demoClockTimes; exports.openAskAi = openAskAi; exports.MingoAiButton = MingoAiButton; exports.ASK_PROMPTS_DEFAULT_COUNT = ASK_PROMPTS_DEFAULT_COUNT; exports.buildAskPromptsUrl = buildAskPromptsUrl; exports.assistantAvailable = assistantAvailable; exports.useAskPrompts = useAskPrompts; exports.useAssistantOpen = useAssistantOpen; exports.useAskSurface = useAskSurface; exports.AskPrompts = AskPrompts; exports.AskCard = AskCard; exports.AssistantAskPrompts = AssistantAskPrompts; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.CHAT_TICKET_LIST_SKELETON_ROWS = CHAT_TICKET_LIST_SKELETON_ROWS; exports.ChatTicketList = ChatTicketList; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.ChatTopNavigation = ChatTopNavigation; exports.OnboardingCarousel = OnboardingCarousel; exports.ADMIN_CONTENT_CARD_GRID_CLASS = ADMIN_CONTENT_CARD_GRID_CLASS; exports.AdminContentCardGrid = AdminContentCardGrid; exports.SlackMessageCard = SlackMessageCard; exports.HubspotTicketCard = HubspotTicketCard; exports.DataRoomDocCard = DataRoomDocCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.GenericEntityCard = GenericEntityCard; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useScriptedStream = useScriptedStream; exports.RESYNC_AFTER_HIDDEN_MS = RESYNC_AFTER_HIDDEN_MS; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useSSE = useSSE; exports.useChat = useChat; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.ProxyCredentialsPanel = ProxyCredentialsPanel; exports.EmbeddableChat = EmbeddableChat;
|
|
5500
|
+
exports.InfoHint = InfoHint; exports.Field = Field; exports.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS = HUBSPOT_DO_NOT_COLLECT_FORM_PROPS; exports.FullscreenSwitchController = FullscreenSwitchController; exports.ChatMessageRow = ChatMessageRow; exports.TURN_ROW_CLASS = TURN_ROW_CLASS; exports.TURN_BODY_CLASS = TURN_BODY_CLASS; exports.ChatTurn = ChatTurn; exports.AI_PROVIDERS = AI_PROVIDERS; exports.aiProvider = aiProvider; exports.TOKEN_RATE_EMPTY = TOKEN_RATE_EMPTY; exports.formatTokenRate = formatTokenRate; exports.tokenCost = tokenCost; exports.formatTokenAmount = formatTokenAmount; exports.tokensForBalance = tokensForBalance; exports.tokenRateProviderLabel = tokenRateProviderLabel; exports.groupTokenRatesByProvider = groupTokenRatesByProvider; exports.TRIAL_TERMS = TRIAL_TERMS; exports.trialLengthLabel = trialLengthLabel; exports.trialLabels = trialLabels; exports.isOwnClick = isOwnClick; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.SEO_DESCRIPTION_MAX_LENGTH = SEO_DESCRIPTION_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.clickUpDropDownOption = clickUpDropDownOption; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.TICKET_OPEN_PARAM = TICKET_OPEN_PARAM; exports.buildTicketOpenHref = buildTicketOpenHref; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.BITE_ID_RE = BITE_ID_RE; exports.generateBiteId = generateBiteId; exports.ensureBiteIds = ensureBiteIds; exports.matchBiteElement = matchBiteElement; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.DOWNLOAD_PAGE_PATH = DOWNLOAD_PAGE_PATH; exports.resolveMobileStoreUrl = resolveMobileStoreUrl; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.getCountryByName = getCountryByName; exports.getFlagFromCountryName = getFlagFromCountryName; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.COMPLIANCE_STANDARDS = COMPLIANCE_STANDARDS; exports.complianceStandardForName = complianceStandardForName; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.isDismissedCookieValue = isDismissedCookieValue; exports.readDismissCookie = readDismissCookie; exports.writeDismissCookie = writeDismissCookie; exports.clearDismissCookie = clearDismissCookie; exports.dismissedBeforePaintScript = dismissedBeforePaintScript; exports.announcementDismissCookieName = announcementDismissCookieName; exports.dismissAnnouncement = dismissAnnouncement; exports.isAnnouncementDismissed = isAnnouncementDismissed; exports.clearAnnouncementDismissals = clearAnnouncementDismissals; exports.clearLegacyAnnouncementCache = clearLegacyAnnouncementCache; exports.isAnnouncementOnSurface = isAnnouncementOnSurface; exports.afterPageLoad = afterPageLoad; exports.WALKTHROUGH_VIDEO_DISMISS_KEY = WALKTHROUGH_VIDEO_DISMISS_KEY; exports.walkthroughDismissCookieName = walkthroughDismissCookieName; exports.isWalkthroughDismissed = isWalkthroughDismissed; exports.dismissWalkthrough = dismissWalkthrough; exports.clearWalkthroughDismissal = clearWalkthroughDismissal; exports.WALKTHROUGH_OPEN_QUERY_PARAM = WALKTHROUGH_OPEN_QUERY_PARAM; exports.withWalkthroughOpenParam = withWalkthroughOpenParam; exports.createSseSubscription = createSseSubscription; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.openInNewTab = openInNewTab; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.LEGAL_DOCUMENT_TYPES = LEGAL_DOCUMENT_TYPES; exports.isLegalDocumentType = isLegalDocumentType; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.extractSections = extractSections; exports.SCHEDULING_SLUG_SHAPE = SCHEDULING_SLUG_SHAPE; exports.MAX_MONTH_OFFSET = MAX_MONTH_OFFSET; exports.normalizeSchedulingSlug = normalizeSchedulingSlug; exports.isValidSchedulingSlug = isValidSchedulingSlug; exports.parseSchedulingLinkName = parseSchedulingLinkName; exports.isListedSchedulingName = isListedSchedulingName; exports.schedulingAudienceKey = schedulingAudienceKey; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.FIRST_TOUCH_ATTRIBUTION_KEY = FIRST_TOUCH_ATTRIBUTION_KEY; exports.sanitizeLandingUrl = sanitizeLandingUrl; exports.parseAttributionFromUrl = parseAttributionFromUrl; exports.captureFirstTouchAttribution = captureFirstTouchAttribution; exports.getFirstTouchAttribution = getFirstTouchAttribution; exports.withFirstTouchAttribution = withFirstTouchAttribution; exports.clearFirstTouchAttribution = clearFirstTouchAttribution; exports.ODS_SPACING_TOKENS = ODS_SPACING_TOKENS; exports.ODS_SPACING_TOKEN_PATTERN = ODS_SPACING_TOKEN_PATTERN; exports.ODS_SPACING_PROPS = ODS_SPACING_PROPS; exports.TAILWIND_STEP_TO_ODS_TOKEN = TAILWIND_STEP_TO_ODS_TOKEN; exports.CSV_CONTENT_TYPE = CSV_CONTENT_TYPE; exports.csvEscape = csvEscape; exports.toCsv = toCsv; exports.copyrightLine = copyrightLine; exports.isValidPathPattern = isValidPathPattern; exports.matchesPathPattern = matchesPathPattern; exports.pathMatchesAny = pathMatchesAny; exports.formatDemoClock = formatDemoClock; exports.demoClockTimes = demoClockTimes; exports.openAskAi = openAskAi; exports.MingoAiButton = MingoAiButton; exports.ASK_PROMPTS_DEFAULT_COUNT = ASK_PROMPTS_DEFAULT_COUNT; exports.buildAskPromptsUrl = buildAskPromptsUrl; exports.assistantAvailable = assistantAvailable; exports.useAskPrompts = useAskPrompts; exports.useAssistantOpen = useAssistantOpen; exports.useAskSurface = useAskSurface; exports.AskPrompts = AskPrompts; exports.AskCard = AskCard; exports.AssistantAskPrompts = AssistantAskPrompts; exports.QuickActionMarquee = QuickActionMarquee; exports.ChatTicketItem = ChatTicketItem; exports.CHAT_TICKET_LIST_SKELETON_ROWS = CHAT_TICKET_LIST_SKELETON_ROWS; exports.ChatTicketList = ChatTicketList; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.ChatTopNavigation = ChatTopNavigation; exports.OnboardingCarousel = OnboardingCarousel; exports.ADMIN_CONTENT_CARD_GRID_CLASS = ADMIN_CONTENT_CARD_GRID_CLASS; exports.AdminContentCardGrid = AdminContentCardGrid; exports.SlackMessageCard = SlackMessageCard; exports.HubspotTicketCard = HubspotTicketCard; exports.DataRoomDocCard = DataRoomDocCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.GenericEntityCard = GenericEntityCard; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.useScriptedStream = useScriptedStream; exports.RESYNC_AFTER_HIDDEN_MS = RESYNC_AFTER_HIDDEN_MS; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useSSE = useSSE; exports.useChat = useChat; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.normalizeHistoricalMessageData = normalizeHistoricalMessageData; exports.isHistoricalUserTurn = isHistoricalUserTurn; exports.buildStreamFrames = buildStreamFrames; exports.ProxyCredentialsPanel = ProxyCredentialsPanel; exports.EmbeddableChat = EmbeddableChat;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkSBXL5EKEcjs = require('./chunk-SBXL5EKE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkZRDVFADQcjs = require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -396,7 +396,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
396
396
|
// src/components/navigation/multi-level-navigation.tsx
|
|
397
397
|
var _lucidereact = require('lucide-react');
|
|
398
398
|
|
|
399
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
399
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunkSBXL5EKEcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
400
400
|
var NAV_LIST_CLASS = "space-y-2";
|
|
401
401
|
var NAV_ITEM_CLASS = "space-y-1";
|
|
402
402
|
var NAV_ROW_FRAME_CLASS = "relative w-full rounded-lg border transition-all duration-150";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkXEIZL3I3cjs = require('./chunk-XEIZL3I3.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk6UVOL3ZFcjs = require('./chunk-6UVOL3ZF.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkM6PCHMRIcjs = require('./chunk-M6PCHMRI.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
@@ -22,23 +22,23 @@ var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
|
22
22
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkSBXL5EKEcjs = require('./chunk-SBXL5EKE.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk2LT2WR4Ocjs = require('./chunk-2LT2WR4O.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunk6CZVQ72Ccjs = require('./chunk-6CZVQ72C.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkGBILLSRMcjs = require('./chunk-GBILLSRM.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkQCRJVO6Ycjs = require('./chunk-QCRJVO6Y.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
|
|
@@ -75,7 +75,7 @@ function OnboardingCatalogSectionsSkeleton() {
|
|
|
75
75
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }),
|
|
76
76
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: CATALOG_SECTION_COUNT_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-3" }) })
|
|
77
77
|
] }),
|
|
78
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: CATALOG_LIST_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: ONBOARDING_CATALOG_SKELETON_CARDS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.OnboardingGuideCard, { loading: true, size: "catalog" }) }) }) })
|
|
79
79
|
] }) });
|
|
80
80
|
}
|
|
81
81
|
function OnboardingGuidesCatalogView({
|
|
@@ -96,10 +96,10 @@ function OnboardingGuidesCatalogView({
|
|
|
96
96
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
97
97
|
const activeSection = sectionValue || "all";
|
|
98
98
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
99
|
-
const guidesRes =
|
|
99
|
+
const guidesRes = _chunkGBILLSRMcjs.useSelfFetch.call(void 0,
|
|
100
100
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
101
101
|
);
|
|
102
|
-
const sectionsRes =
|
|
102
|
+
const sectionsRes = _chunkGBILLSRMcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
103
103
|
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])]);
|
|
104
104
|
const sections = _react.useMemo.call(void 0,
|
|
105
105
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -143,25 +143,25 @@ function OnboardingGuidesCatalogView({
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
146
|
-
const docSearch =
|
|
146
|
+
const docSearch = _chunk6UVOL3ZFcjs.useDocSearch.call(void 0, {
|
|
147
147
|
source,
|
|
148
148
|
baseRoute: basePath,
|
|
149
149
|
onNavigate: (path) => router.push(path),
|
|
150
150
|
tableIds: ["onboarding-guides"]
|
|
151
151
|
});
|
|
152
152
|
const defaultRenderCard = (guide) => {
|
|
153
|
-
const cta =
|
|
153
|
+
const cta = _chunkSBXL5EKEcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
154
154
|
type: "onboarding_guide",
|
|
155
155
|
slug: guide.slug,
|
|
156
156
|
basePath,
|
|
157
157
|
platforms: guide.onboarding_guide_platforms
|
|
158
158
|
});
|
|
159
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
159
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
160
160
|
};
|
|
161
161
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
162
162
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunk6UVOL3ZFcjs.DocSearchBar,
|
|
165
165
|
{
|
|
166
166
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
167
167
|
query: docSearch.query,
|
|
@@ -173,7 +173,7 @@ function OnboardingGuidesCatalogView({
|
|
|
173
173
|
}
|
|
174
174
|
),
|
|
175
175
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
176
|
-
|
|
176
|
+
_chunkM6PCHMRIcjs.FilterPillRow,
|
|
177
177
|
{
|
|
178
178
|
label: "Section",
|
|
179
179
|
selectedValue: activeSection,
|
|
@@ -184,7 +184,7 @@ function OnboardingGuidesCatalogView({
|
|
|
184
184
|
)
|
|
185
185
|
] });
|
|
186
186
|
if (!loading && selfFetch && guidesRes.error) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM6PCHMRIcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
188
188
|
}
|
|
189
189
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
190
190
|
preControls,
|
|
@@ -200,7 +200,7 @@ function OnboardingGuidesCatalogView({
|
|
|
200
200
|
)
|
|
201
201
|
] });
|
|
202
202
|
if (!loading) return view;
|
|
203
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
203
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.LoadingFallback, { label: "Loading onboarding guides", children: view });
|
|
204
204
|
}
|
|
205
205
|
function OnboardingCatalogSections({
|
|
206
206
|
grouped,
|
|
@@ -304,7 +304,7 @@ function OnboardingGuideDetailView({
|
|
|
304
304
|
slug,
|
|
305
305
|
guideEndpoint,
|
|
306
306
|
related = [],
|
|
307
|
-
MarkdownRenderer =
|
|
307
|
+
MarkdownRenderer = _chunkM6PCHMRIcjs.RichMarkdownRenderer,
|
|
308
308
|
renderRelatedCard,
|
|
309
309
|
backHref,
|
|
310
310
|
backLabel = "Back to Getting Started",
|
|
@@ -314,9 +314,9 @@ function OnboardingGuideDetailView({
|
|
|
314
314
|
}) {
|
|
315
315
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
316
316
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
317
|
-
const captions =
|
|
317
|
+
const captions = _chunk2LT2WR4Ocjs.useCaptions.call(void 0, );
|
|
318
318
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
319
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM6PCHMRIcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
320
320
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
321
321
|
const scoped = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
322
322
|
const {
|
|
@@ -324,7 +324,7 @@ function OnboardingGuideDetailView({
|
|
|
324
324
|
isLoading,
|
|
325
325
|
error,
|
|
326
326
|
reload
|
|
327
|
-
} =
|
|
327
|
+
} = _chunkGBILLSRMcjs.useSelfFetch.call(void 0, scoped ? null : url, {
|
|
328
328
|
initialData
|
|
329
329
|
});
|
|
330
330
|
const { ref: videoWarmupRef } = _chunk6CZVQ72Ccjs.useVideoWarmup.call(void 0, {
|
|
@@ -334,7 +334,7 @@ function OnboardingGuideDetailView({
|
|
|
334
334
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
335
335
|
const loading = scoped || !guide && isLoading;
|
|
336
336
|
if (!loading && (error || !guide)) {
|
|
337
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM6PCHMRIcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
338
338
|
}
|
|
339
339
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
340
340
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
@@ -342,19 +342,19 @@ function OnboardingGuideDetailView({
|
|
|
342
342
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
343
343
|
_chunkDVHSYPDBcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), view.title, { aspect: "wide" });
|
|
344
344
|
const defaultRenderRelatedCard = (g) => {
|
|
345
|
-
const cta =
|
|
345
|
+
const cta = _chunkSBXL5EKEcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
346
346
|
type: "onboarding_guide",
|
|
347
347
|
slug: g.slug,
|
|
348
348
|
basePath,
|
|
349
349
|
platforms: g.onboarding_guide_platforms
|
|
350
350
|
});
|
|
351
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
351
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQCRJVO6Ycjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
352
352
|
};
|
|
353
353
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
354
354
|
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkIJCSQFLDcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
355
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM6PCHMRIcjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
|
-
|
|
357
|
+
_chunkQCRJVO6Ycjs.EntityAuthorCard,
|
|
358
358
|
{
|
|
359
359
|
author: view.author,
|
|
360
360
|
authorHref,
|
|
@@ -370,7 +370,7 @@ function OnboardingGuideDetailView({
|
|
|
370
370
|
),
|
|
371
371
|
!loading && (view.main_video_url || view.youtube_url) && // A guide's video is optional: the loading state leaves it out.
|
|
372
372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
373
|
-
|
|
373
|
+
_chunk2LT2WR4Ocjs.EntityVideoSection,
|
|
374
374
|
{
|
|
375
375
|
mainVideoUrl: view.main_video_url,
|
|
376
376
|
youtubeUrl: view.youtube_url || void 0,
|
|
@@ -387,7 +387,7 @@ function OnboardingGuideDetailView({
|
|
|
387
387
|
) }),
|
|
388
388
|
(loading || view.content) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: BODY_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: _nullishCoalesce(view.content, () => ( "")) }) }),
|
|
389
389
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
390
|
-
|
|
390
|
+
_chunk2LT2WR4Ocjs.VideoBitesStrip,
|
|
391
391
|
{
|
|
392
392
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
393
393
|
filterPublished: true,
|
|
@@ -397,7 +397,7 @@ function OnboardingGuideDetailView({
|
|
|
397
397
|
}
|
|
398
398
|
) }),
|
|
399
399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
400
|
-
|
|
400
|
+
_chunkXEIZL3I3cjs.ArticleAuthorByline,
|
|
401
401
|
{
|
|
402
402
|
author: _nullishCoalesce(_optionalChain([view, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
403
403
|
avatar: _optionalChain([view, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|
|
@@ -410,7 +410,7 @@ function OnboardingGuideDetailView({
|
|
|
410
410
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RelatedGuides, { section: view.section, related, renderCard: renderRelatedCardFn }),
|
|
411
411
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: relatedContent }, "related-content")
|
|
412
412
|
] });
|
|
413
|
-
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
413
|
+
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.LoadingFallback, { label: "Loading the guide", children: page }) : page);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
// src/components/onboarding-guides/hooks/use-onboarding-guides.ts
|