@flamingo-stack/openframe-frontend-core 0.0.759 → 0.0.761
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-4IXA5CJT.cjs → chunk-4EM7HIIM.cjs} +105 -105
- package/dist/{chunk-WBSYC6EY.cjs → chunk-6M54EVOA.cjs} +9 -9
- package/dist/{chunk-XXM74P3N.cjs → chunk-6T6O36LT.cjs} +16 -16
- package/dist/{chunk-DHFQECP3.cjs → chunk-B7AOUPBV.cjs} +11 -11
- package/dist/{chunk-G7RDJACG.cjs → chunk-D252ICCO.cjs} +4 -4
- package/dist/{chunk-I4W4DQ6C.cjs → chunk-EMSOBT6R.cjs} +4 -4
- package/dist/{chunk-SYACKQYF.cjs → chunk-G6IK3HC5.cjs} +17 -17
- package/dist/{chunk-6VDOHVYE.cjs → chunk-GKRHGVB4.cjs} +68 -68
- package/dist/{chunk-S23DIVIP.cjs → chunk-GLQBCQOF.cjs} +26 -26
- package/dist/{chunk-CDA2MY7U.cjs → chunk-H45OTVYI.cjs} +10 -10
- package/dist/{chunk-F7WIKBRI.cjs → chunk-HQYWVNQL.cjs} +4 -4
- package/dist/{chunk-SIOSQMIB.cjs → chunk-LOM3S64Z.cjs} +3 -3
- package/dist/{chunk-EFCX5SYN.cjs → chunk-NOFJH7MA.cjs} +6 -6
- package/dist/{chunk-WGFTIEHY.cjs → chunk-OBXZDUC3.cjs} +43 -43
- package/dist/{chunk-QTYSYEHK.cjs → chunk-SUHPBFNU.cjs} +11 -6
- package/dist/{chunk-O75A3FBT.cjs → chunk-TIV74DVS.cjs} +36 -36
- package/dist/{chunk-7ITYKDJN.cjs → chunk-VAZTFCVY.cjs} +7 -7
- package/dist/{cloud-tenants-YUMG3O36.cjs → cloud-tenants-BDGV4N2T.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +9 -6
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.js +2 -0
- package/dist/components/chat/chat-sidebar.js +1 -1
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/types/component.types.d.ts +10 -0
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/index.cjs +56 -56
- package/dist/components/index.cjs +36 -36
- package/dist/components/meeting-scheduler/index.cjs +22 -22
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/navigation/navigation-sidebar-item.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +4 -4
- package/dist/{devices-EFDFNWIV.cjs → devices-Q5YHMXGV.cjs} +5 -5
- package/dist/{embeddable-chat-LTXUQWEK.cjs → embeddable-chat-ST5IR6VN.cjs} +66 -66
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-UT2XI45N.cjs → knowledge-UJTJT36J.cjs} +5 -5
- package/dist/{logs-ZTYEI35Y.cjs → logs-WMNITBLM.cjs} +12 -12
- package/dist/{policies-S3IF2U3D.cjs → policies-TRXVBOH7.cjs} +8 -8
- package/dist/{scripts-IZWNCX5A.cjs → scripts-HECY7XDL.cjs} +9 -9
- package/dist/{software-update-6T4GFJPA.cjs → software-update-NNFLEMYD.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/chat/chat-message-enhanced.tsx +19 -9
- package/src/components/chat/chat-message-list.tsx +2 -0
- package/src/components/chat/chat-sidebar.tsx +1 -1
- package/src/components/chat/types/component.types.ts +10 -0
- package/src/components/navigation/navigation-sidebar-item.tsx +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk4EM7HIIMcjs = require('./chunk-4EM7HIIM.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -17,12 +17,12 @@ var _chunkAXBVN5SWcjs = require('./chunk-AXBVN5SW.cjs');
|
|
|
17
17
|
var _chunkVUWPLQBYcjs = require('./chunk-VUWPLQBY.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk6T6O36LTcjs = require('./chunk-6T6O36LT.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkSUHPBFNUcjs = require('./chunk-SUHPBFNU.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -119,7 +119,7 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
122
|
+
const attachments = _chunkSUHPBFNUcjs.useChatAttachments.call(void 0, );
|
|
123
123
|
const builtInSubmission = _chunkVUWPLQBYcjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
@@ -203,13 +203,13 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunk6T6O36LTcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EM7HIIMcjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHTRILBJDcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunk4EM7HIIMcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunkSUHPBFNUcjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunkSUHPBFNUcjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkSUHPBFNUcjs = require('./chunk-SUHPBFNU.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -1914,8 +1914,8 @@ function makeComposeContentUrl(opts) {
|
|
|
1914
1914
|
}
|
|
1915
1915
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
1916
1916
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
1917
|
-
const owner = claimedOwner &&
|
|
1918
|
-
const origin = owner ?
|
|
1917
|
+
const owner = claimedOwner && _chunkSUHPBFNUcjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
1918
|
+
const origin = owner ? _chunkSUHPBFNUcjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
1919
1919
|
return {
|
|
1920
1920
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _70 => _70.trim, 'call', _71 => _71()]) || identifier}`,
|
|
1921
1921
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2096,7 +2096,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2096
2096
|
if (heading.level > opts.maxLevel) continue;
|
|
2097
2097
|
let title = heading.text;
|
|
2098
2098
|
if (opts.stripFormattingMarkers) {
|
|
2099
|
-
title =
|
|
2099
|
+
title = _chunkSUHPBFNUcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2100
2100
|
}
|
|
2101
2101
|
const baseId = _chunkCSJO7ZGNcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkCSJO7ZGNcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2102
2102
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2411,7 +2411,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2411
2411
|
function openAskAi(source, options) {
|
|
2412
2412
|
const prompt = _optionalChain([options, 'optionalAccess', _78 => _78.prompt, 'optionalAccess', _79 => _79.trim, 'call', _80 => _80()]);
|
|
2413
2413
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2414
|
-
window.dispatchEvent(new CustomEvent(
|
|
2414
|
+
window.dispatchEvent(new CustomEvent(_chunkSUHPBFNUcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2415
2415
|
}
|
|
2416
2416
|
function MingoAiButton({
|
|
2417
2417
|
source,
|
|
@@ -2557,13 +2557,13 @@ function QuestionChips({
|
|
|
2557
2557
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: count }, (_, slot) => {
|
|
2558
2558
|
const prompt = loading ? void 0 : prompts[slot];
|
|
2559
2559
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2560
|
-
|
|
2560
|
+
_chunkSUHPBFNUcjs.QuickActionChipSkeleton,
|
|
2561
2561
|
{
|
|
2562
2562
|
variant: "question",
|
|
2563
2563
|
labelCh: SKELETON_LABEL_CH[slot % SKELETON_LABEL_CH.length]
|
|
2564
2564
|
}
|
|
2565
2565
|
) : prompt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2566
|
-
|
|
2566
|
+
_chunkSUHPBFNUcjs.QuickActionChipButton,
|
|
2567
2567
|
{
|
|
2568
2568
|
variant: "question",
|
|
2569
2569
|
label: prompt.label,
|
|
@@ -2595,7 +2595,7 @@ function AskPrompts({
|
|
|
2595
2595
|
if (!loading && prompts.length === 0) return null;
|
|
2596
2596
|
const end = align === "end";
|
|
2597
2597
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2598
|
-
|
|
2598
|
+
_chunkSUHPBFNUcjs.ScrollShadow,
|
|
2599
2599
|
{
|
|
2600
2600
|
axis: "horizontal",
|
|
2601
2601
|
color: fadeColor,
|
|
@@ -2899,7 +2899,7 @@ function QuickActionMarquee({
|
|
|
2899
2899
|
);
|
|
2900
2900
|
if (items.length === 0) return null;
|
|
2901
2901
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2902
|
-
|
|
2902
|
+
_chunkSUHPBFNUcjs.QuickActionWall,
|
|
2903
2903
|
{
|
|
2904
2904
|
chips,
|
|
2905
2905
|
mode,
|
|
@@ -3033,7 +3033,7 @@ ChatTicketItem.displayName = "ChatTicketItem";
|
|
|
3033
3033
|
|
|
3034
3034
|
var ChatTicketList = _react.forwardRef.call(void 0,
|
|
3035
3035
|
({ className, tickets, onTicketClick, isLoading = false, skeletonCount = 5, ...props }, ref) => {
|
|
3036
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
3036
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkSUHPBFNUcjs.useScrollFade.call(void 0, );
|
|
3037
3037
|
if (isLoading) {
|
|
3038
3038
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-h-0 flex-col gap-2", className), ...props, children: [
|
|
3039
3039
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h5", children: "Your Chats:" }),
|
|
@@ -3053,8 +3053,8 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3053
3053
|
),
|
|
3054
3054
|
children: [
|
|
3055
3055
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: scrollRef, className: "h-full overflow-y-auto overscroll-contain", onScroll: updateFade, children: tickets.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { ticket, onClick: onTicketClick }, ticket.id)) }),
|
|
3056
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3057
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3056
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSUHPBFNUcjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
3057
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSUHPBFNUcjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
3058
3058
|
]
|
|
3059
3059
|
}
|
|
3060
3060
|
)
|
|
@@ -3164,7 +3164,7 @@ var DialogListItem = _react.forwardRef.call(void 0,
|
|
|
3164
3164
|
) }),
|
|
3165
3165
|
dialog.timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full min-w-0 truncate text-ods-text-secondary text-h6", children: formatTimestamp(dialog.timestamp) })
|
|
3166
3166
|
] }),
|
|
3167
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ml-2 flex-shrink-0", children: dialog.unreadMessagesCount && dialog.unreadMessagesCount > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex
|
|
3167
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ml-2 flex-shrink-0", children: dialog.unreadMessagesCount && dialog.unreadMessagesCount > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-6 min-w-6 shrink-0 items-center justify-center rounded-md bg-ods-accent px-[var(--spacing-system-xsf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-on-accent text-h6", children: dialog.unreadMessagesCount > 99 ? "99+" : dialog.unreadMessagesCount }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4TUSPDNScjs.Chevron02RightIcon, { className: "size-6 text-ods-text-secondary" }) })
|
|
3168
3168
|
]
|
|
3169
3169
|
}
|
|
3170
3170
|
);
|
|
@@ -4986,7 +4986,7 @@ function Section({ title, description, children }) {
|
|
|
4986
4986
|
] });
|
|
4987
4987
|
}
|
|
4988
4988
|
function ProxyCredentialsPanel({ description }) {
|
|
4989
|
-
const hydrated =
|
|
4989
|
+
const hydrated = _chunkSUHPBFNUcjs.useIsHydrated.call(void 0, );
|
|
4990
4990
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4991
4991
|
ProxyCredentialsForm,
|
|
4992
4992
|
{
|
|
@@ -5150,10 +5150,10 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5150
5150
|
|
|
5151
5151
|
// src/components/chat/index.ts
|
|
5152
5152
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5153
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5153
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-ST5IR6VN.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5154
5154
|
);
|
|
5155
5155
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5156
|
-
_react.useEffect.call(void 0, () =>
|
|
5156
|
+
_react.useEffect.call(void 0, () => _chunkSUHPBFNUcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5157
5157
|
return _react.createElement.call(void 0, _react.Suspense, { fallback: null }, _react.createElement.call(void 0, LoadedEmbeddableChat, { ...props, ref }));
|
|
5158
5158
|
});
|
|
5159
5159
|
EmbeddableChat.displayName = "EmbeddableChat";
|
|
@@ -6,7 +6,7 @@ var _chunkVUWPLQBYcjs = require('./chunk-VUWPLQBY.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk6T6O36LTcjs = require('./chunk-6T6O36LT.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -166,31 +166,31 @@ CveLink.displayName = "CveLink";
|
|
|
166
166
|
// src/components/platform/ShellTypeBadge.tsx
|
|
167
167
|
|
|
168
168
|
var shellIconMap = {
|
|
169
|
-
[
|
|
169
|
+
[_chunk6T6O36LTcjs.ShellTypeValues.POWERSHELL]: {
|
|
170
170
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
171
171
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
172
172
|
},
|
|
173
|
-
[
|
|
173
|
+
[_chunk6T6O36LTcjs.ShellTypeValues.CMD]: {
|
|
174
174
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
175
175
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
176
176
|
},
|
|
177
|
-
[
|
|
177
|
+
[_chunk6T6O36LTcjs.ShellTypeValues.BASH]: {
|
|
178
178
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
179
179
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
180
180
|
},
|
|
181
|
-
[
|
|
181
|
+
[_chunk6T6O36LTcjs.ShellTypeValues.PYTHON]: {
|
|
182
182
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
183
183
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
184
184
|
},
|
|
185
|
-
[
|
|
185
|
+
[_chunk6T6O36LTcjs.ShellTypeValues.NUSHELL]: {
|
|
186
186
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
187
187
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
188
188
|
},
|
|
189
|
-
[
|
|
189
|
+
[_chunk6T6O36LTcjs.ShellTypeValues.DENO]: {
|
|
190
190
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
191
191
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
192
192
|
},
|
|
193
|
-
[
|
|
193
|
+
[_chunk6T6O36LTcjs.ShellTypeValues.SHELL]: {
|
|
194
194
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
195
195
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
196
196
|
}
|
|
@@ -201,7 +201,7 @@ var defaultIconConfig = {
|
|
|
201
201
|
};
|
|
202
202
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
203
203
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
204
|
-
const label =
|
|
204
|
+
const label = _chunk6T6O36LTcjs.getShellLabel.call(void 0, normalizedType);
|
|
205
205
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
206
206
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
207
207
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -217,7 +217,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
217
217
|
if (!platforms || platforms.length === 0) {
|
|
218
218
|
return "All Platforms";
|
|
219
219
|
}
|
|
220
|
-
return platforms.map((platform) =>
|
|
220
|
+
return platforms.map((platform) => _chunk6T6O36LTcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
221
221
|
}
|
|
222
222
|
function InfoCell({ label, value, avatar, className }) {
|
|
223
223
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -237,7 +237,7 @@ var ScriptInfoSection = ({
|
|
|
237
237
|
author,
|
|
238
238
|
className
|
|
239
239
|
}) => {
|
|
240
|
-
const shellLabel =
|
|
240
|
+
const shellLabel = _chunk6T6O36LTcjs.getShellLabel.call(void 0, shellType);
|
|
241
241
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
242
242
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
243
243
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunk6T6O36LTcjs = require('./chunk-6T6O36LT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSUHPBFNUcjs = require('./chunk-SUHPBFNU.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -50,7 +50,7 @@ function HorizontalSectionNav({
|
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { ref: navRef, "aria-label": label, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex h-14 items-stretch gap-6 bg-ods-bg", className), children: [
|
|
51
51
|
brand && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden shrink-0 items-center gap-2.5 border-r border-ods-border pr-6 text-ods-text-primary text-h4 content-lg:flex", children: brand }),
|
|
52
52
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53
|
-
|
|
53
|
+
_chunkSUHPBFNUcjs.ScrollShadow,
|
|
54
54
|
{
|
|
55
55
|
axis: "horizontal",
|
|
56
56
|
className: "min-w-0 flex-1",
|
|
@@ -335,7 +335,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
335
335
|
// src/components/navigation/multi-level-navigation.tsx
|
|
336
336
|
var _lucidereact = require('lucide-react');
|
|
337
337
|
|
|
338
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
338
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunk6T6O36LTcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
339
339
|
function isNodeVisuallySelected(node, selectedPath, folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2) {
|
|
340
340
|
const FOLDER_INDEX_FILE = folderIndexFile.toLowerCase();
|
|
341
341
|
if (selectedPath === node.path) {
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkVAZTFCVYcjs = require('./chunk-VAZTFCVY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4EM7HIIMcjs = require('./chunk-4EM7HIIM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkAXBVN5SWcjs = require('./chunk-AXBVN5SW.cjs');
|
|
@@ -35,7 +35,7 @@ function FaqDocumentPage({
|
|
|
35
35
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
36
36
|
};
|
|
37
37
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAXBVN5SWcjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
-
|
|
38
|
+
_chunkVAZTFCVYcjs.FaqSection,
|
|
39
39
|
{
|
|
40
40
|
initialFaqs,
|
|
41
41
|
heading: null,
|
|
@@ -49,7 +49,7 @@ function FaqDocumentPage({
|
|
|
49
49
|
ask
|
|
50
50
|
}
|
|
51
51
|
) });
|
|
52
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EM7HIIMcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|
|
@@ -6,25 +6,25 @@ var _chunkVUSXDMCEcjs = require('./chunk-VUSXDMCE.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkNOFJH7MAcjs = require('./chunk-NOFJH7MA.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk4EM7HIIMcjs = require('./chunk-4EM7HIIM.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkAXBVN5SWcjs = require('./chunk-AXBVN5SW.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk6T6O36LTcjs = require('./chunk-6T6O36LT.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkSUHPBFNUcjs = require('./chunk-SUHPBFNU.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
@@ -146,14 +146,14 @@ function OnboardingGuidesCatalogView({
|
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
148
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
149
|
-
const docSearch =
|
|
149
|
+
const docSearch = _chunkNOFJH7MAcjs.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 = _chunk6T6O36LTcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
157
157
|
type: "onboarding_guide",
|
|
158
158
|
slug: guide.slug,
|
|
159
159
|
basePath,
|
|
@@ -164,7 +164,7 @@ function OnboardingGuidesCatalogView({
|
|
|
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
|
+
_chunkNOFJH7MAcjs.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
|
+
_chunk4EM7HIIMcjs.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, _chunk4EM7HIIMcjs.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 = _chunk4EM7HIIMcjs.RichMarkdownRenderer,
|
|
222
222
|
renderRelatedCard,
|
|
223
223
|
backHref,
|
|
224
224
|
backLabel = "Back to Getting Started",
|
|
@@ -228,9 +228,9 @@ 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 = _chunkSUHPBFNUcjs.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, _chunk4EM7HIIMcjs.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
235
|
const { data: guide, isLoading, error, reload } = _chunkB27XV2TCcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
236
236
|
const { ref: videoWarmupRef } = _chunk3RFQPQ7Zcjs.useVideoWarmup.call(void 0, {
|
|
@@ -238,7 +238,7 @@ function OnboardingGuideDetailView({
|
|
|
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, _chunk4EM7HIIMcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
242
242
|
}
|
|
243
243
|
if (!guide) {
|
|
244
244
|
return renderShell(
|
|
@@ -252,7 +252,7 @@ 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 = _chunk6T6O36LTcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
256
256
|
type: "onboarding_guide",
|
|
257
257
|
slug: g.slug,
|
|
258
258
|
basePath,
|
|
@@ -270,7 +270,7 @@ 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, _chunk4EM7HIIMcjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
|
|
274
274
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
275
|
_chunk7Z4EQOIXcjs.EntityAuthorCard,
|
|
276
276
|
{
|
|
@@ -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
|
+
_chunkSUHPBFNUcjs.EntityVideoSection,
|
|
291
291
|
{
|
|
292
292
|
mainVideoUrl: guide.main_video_url,
|
|
293
293
|
youtubeUrl: guide.youtube_url || void 0,
|
|
@@ -304,7 +304,7 @@ 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
|
+
_chunkSUHPBFNUcjs.VideoBitesStrip,
|
|
308
308
|
{
|
|
309
309
|
bites: _nullishCoalesce(guide.video_bites, () => ( [])),
|
|
310
310
|
filterPublished: true,
|