@flamingo-stack/openframe-frontend-core 0.0.832 → 0.0.834
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/route-styles.cjs +5 -3
- package/dist/{chunk-DAQMCWCK.cjs → chunk-4OP2VVPV.cjs} +3 -3
- package/dist/{chunk-HDLY6OMQ.cjs → chunk-AZRDKZNG.cjs} +4 -4
- package/dist/{chunk-CP46CVUC.cjs → chunk-DAOVWHCN.cjs} +42 -42
- package/dist/{chunk-ZJ5K6XHW.cjs → chunk-DQ6JYOHD.cjs} +3 -3
- package/dist/{chunk-VBGBKRDO.cjs → chunk-EQB3NSY6.cjs} +76 -76
- package/dist/{chunk-QHBKZJ6A.cjs → chunk-HBFYEBXN.cjs} +2 -2
- package/dist/{chunk-SRHHLDBP.cjs → chunk-I7QIIZAI.cjs} +10 -10
- package/dist/{chunk-P5DWAVWK.cjs → chunk-IUHV55D7.cjs} +5 -5
- package/dist/{chunk-EYSIQORA.cjs → chunk-LQDPAMXK.cjs} +1 -1
- package/dist/{chunk-7WQD3R5J.cjs → chunk-M5PGFNJG.cjs} +41 -41
- package/dist/{chunk-UGM3YDCK.cjs → chunk-SFJXIHFR.cjs} +9 -9
- package/dist/{chunk-X7VQM5TU.cjs → chunk-UFF4TRZH.cjs} +3 -3
- package/dist/{chunk-7COZUANC.cjs → chunk-UQ52NWTB.cjs} +32 -32
- package/dist/{chunk-OGPAVRNF.cjs → chunk-VMFBLMP6.cjs} +2 -2
- package/dist/{chunk-X76TZ5YR.cjs → chunk-WAMDWVYC.cjs} +11 -11
- package/dist/{chunk-R6QZHOJB.cjs → chunk-XXHCM2XS.cjs} +32 -32
- package/dist/{cloud-tenants-E2AC4WEJ.cjs → cloud-tenants-THCHEWBM.cjs} +3 -3
- package/dist/components/case-studies/index.cjs +12 -12
- package/dist/components/chat/embeddable-chat.d.ts +2 -2
- package/dist/components/chat/embeddable-chat.js +2 -14
- package/dist/components/chat/guide-welcome.d.ts +2 -2
- package/dist/components/chat/guide-welcome.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/mingo-quick-action-wall.d.ts +1 -2
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.d.ts +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/help-center-pages/index.cjs +55 -55
- package/dist/components/index.cjs +32 -32
- package/dist/components/meeting-scheduler/index.cjs +26 -26
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.cjs +4 -4
- package/dist/components/product-demo/index.cjs +12 -12
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/ui/index.cjs +3 -3
- package/dist/{devices-CAYUGD2N.cjs → devices-MPRDMXXU.cjs} +4 -4
- package/dist/{embeddable-chat-FYHMR66R.cjs → embeddable-chat-TRGESG7U.cjs} +2 -14
- package/dist/index.cjs +7 -7
- package/dist/{knowledge-OI4OPEVL.cjs → knowledge-TFTDHYGR.cjs} +3 -3
- package/dist/{logs-B3XV2NHV.cjs → logs-CSSJG4F7.cjs} +10 -10
- package/dist/{policies-ZB4Z42DV.cjs → policies-ELFYUN5P.cjs} +7 -7
- package/dist/{scripts-I4DNUOQC.cjs → scripts-37L6FIKG.cjs} +8 -8
- package/dist/{software-update-AWH4WXOH.cjs → software-update-BSA4NLHO.cjs} +6 -6
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +7 -21
- package/src/components/chat/guide-welcome.tsx +2 -2
- package/src/components/chat/mingo-quick-action-wall.tsx +1 -2
- package/src/components/chat/mingo-welcome.tsx +1 -1
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVMFBLMP6cjs = require('./chunk-VMFBLMP6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkHBFYEBXNcjs = require('./chunk-HBFYEBXN.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ var _chunkQHBKZJ6Acjs = require('./chunk-QHBKZJ6A.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkEQB3NSY6cjs = require('./chunk-EQB3NSY6.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkVQG2A7GAcjs = require('./chunk-VQG2A7GA.cjs');
|
|
@@ -39,7 +39,7 @@ var _chunk24I6RFVUcjs = require('./chunk-24I6RFVU.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkLQDPAMXKcjs = require('./chunk-LQDPAMXK.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
@@ -211,7 +211,7 @@ function NavItemRow({
|
|
|
211
211
|
className
|
|
212
212
|
}) {
|
|
213
213
|
const label = navLinkLabel(link);
|
|
214
|
-
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
214
|
+
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
|
|
215
215
|
const singleLine = !link.description && !link.builtOn;
|
|
216
216
|
const rowClassName = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
217
217
|
ROW_CLASSES[variant],
|
|
@@ -268,7 +268,7 @@ function loadFeatureCard() {
|
|
|
268
268
|
}
|
|
269
269
|
function subscribeToFeatureCard(listener) {
|
|
270
270
|
featureCardListeners.add(listener);
|
|
271
|
-
const cancel =
|
|
271
|
+
const cancel = _chunkLQDPAMXKcjs.afterPageLoad.call(void 0, loadFeatureCard);
|
|
272
272
|
return () => {
|
|
273
273
|
featureCardListeners.delete(listener);
|
|
274
274
|
cancel();
|
|
@@ -633,7 +633,7 @@ function SiteHeader({
|
|
|
633
633
|
leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
634
634
|
leading,
|
|
635
635
|
mobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
636
|
-
|
|
636
|
+
_chunkEQB3NSY6cjs.HeaderButton,
|
|
637
637
|
{
|
|
638
638
|
className: "border-r border-ods-border lg:hidden",
|
|
639
639
|
onClick: mobile.onToggle,
|
|
@@ -659,7 +659,7 @@ function SiteHeader({
|
|
|
659
659
|
centerClassName: "justify-start pl-[var(--spacing-system-xlf)]",
|
|
660
660
|
cta: hasRight ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
661
661
|
mingo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
662
|
-
|
|
662
|
+
_chunkLQDPAMXKcjs.MingoAiButton,
|
|
663
663
|
{
|
|
664
664
|
source: mingo.source,
|
|
665
665
|
icon: mingo.icon,
|
|
@@ -763,7 +763,7 @@ function MobileNavSheetBody({
|
|
|
763
763
|
] }),
|
|
764
764
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain px-5", children: [
|
|
765
765
|
askAI && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
766
|
-
|
|
766
|
+
_chunkLQDPAMXKcjs.MingoAiButton,
|
|
767
767
|
{
|
|
768
768
|
variant: "field",
|
|
769
769
|
source: askAI.source,
|
|
@@ -940,7 +940,7 @@ function SiteFooter({
|
|
|
940
940
|
const bandPrimary = typeof nav.primaryCta === "object" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", href: nav.primaryCta.href, children: nav.primaryCta.label }) : nav.primaryCta === "none" ? null : _nullishCoalesce(cta, () => ( null));
|
|
941
941
|
const columns = nav.footerColumns;
|
|
942
942
|
const accordion = columns.length > ACCORDION_OVER;
|
|
943
|
-
const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
943
|
+
const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.SocialIconRow, { compact: true, links: _chunkEQB3NSY6cjs.siteNavSocialLinks.call(void 0, nav.brand.social) }) : null)));
|
|
944
944
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
945
945
|
"footer",
|
|
946
946
|
{
|
|
@@ -1209,7 +1209,7 @@ function SlidingSidebar({ config }) {
|
|
|
1209
1209
|
// src/components/navigation/page-section-bar.tsx
|
|
1210
1210
|
|
|
1211
1211
|
|
|
1212
|
-
var SECTION_BAR_HEIGHT_PX =
|
|
1212
|
+
var SECTION_BAR_HEIGHT_PX = _chunkVMFBLMP6cjs.STICKY_SECTION_NAV_HEIGHT_PX;
|
|
1213
1213
|
var PAGE_ANCHOR_SCROLL_MARGIN_CLASS = "scroll-mt-36";
|
|
1214
1214
|
var PAGE_ANCHOR_SCOPE_CLASS = "[&_[id]]:scroll-mt-36";
|
|
1215
1215
|
var PAGE_ANCHOR_GAP_PX = 16;
|
|
@@ -1237,21 +1237,21 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
|
|
|
1237
1237
|
const sections = useRenderedSections(listed);
|
|
1238
1238
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
1239
1239
|
const headerBottom = _chunk24I6RFVUcjs.useHeaderHeight.call(void 0, void 0, { stuckOnly: true });
|
|
1240
|
-
const { activeSection, handleSectionClick } =
|
|
1240
|
+
const { activeSection, handleSectionClick } = _chunkVMFBLMP6cjs.useScrollSpy.call(void 0, sections, {
|
|
1241
1241
|
syncHash: true,
|
|
1242
1242
|
aboveFirst: "none",
|
|
1243
1243
|
headerOffset: headerBottom + SECTION_BAR_HEIGHT_PX + PAGE_ANCHOR_GAP_PX
|
|
1244
1244
|
});
|
|
1245
1245
|
if (sections.length === 0 && !inScope) return null;
|
|
1246
1246
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1247
|
-
|
|
1247
|
+
_chunkEQB3NSY6cjs.PageContainer,
|
|
1248
1248
|
{
|
|
1249
1249
|
as: "div",
|
|
1250
1250
|
backgroundClassName: "sticky z-30 border-b border-ods-border bg-ods-bg transition-[top] duration-300 ease-in-out motion-reduce:transition-none",
|
|
1251
1251
|
backgroundStyle: { top: headerBottom },
|
|
1252
1252
|
contentPadding: SECTION_BAR_INSET_CLASS,
|
|
1253
1253
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1254
|
-
|
|
1254
|
+
_chunkVMFBLMP6cjs.StickySectionNav,
|
|
1255
1255
|
{
|
|
1256
1256
|
orientation: "horizontal",
|
|
1257
1257
|
label,
|
|
@@ -1379,7 +1379,7 @@ function RowIcon({ item, size, className }) {
|
|
|
1379
1379
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative flex shrink-0 items-center justify-center", size === 20 ? "size-5" : "size-4", className),
|
|
1380
1380
|
children: [
|
|
1381
1381
|
sizedIcon(item.icon, size),
|
|
1382
|
-
(_nullishCoalesce(item.unreadCount, () => ( 0))) > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1382
|
+
(_nullishCoalesce(item.unreadCount, () => ( 0))) > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.UnreadDot, { size: "fixed", className: "@[140px]/of-nav-sidebar:hidden" })
|
|
1383
1383
|
]
|
|
1384
1384
|
}
|
|
1385
1385
|
);
|
|
@@ -1702,7 +1702,7 @@ function LoadedNavigationSidebarItemButton({
|
|
|
1702
1702
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1703
1703
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex flex-shrink-0 items-center justify-center", children: [
|
|
1704
1704
|
_react.cloneElement.call(void 0, item.icon, { color: "inherit" }),
|
|
1705
|
-
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1705
|
+
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.UnreadDot, { size: "fixed" })
|
|
1706
1706
|
] }),
|
|
1707
1707
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1708
1708
|
"span",
|
|
@@ -2243,7 +2243,7 @@ function toMenuGroups(entries) {
|
|
|
2243
2243
|
),
|
|
2244
2244
|
children: [
|
|
2245
2245
|
entry.icon,
|
|
2246
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2246
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.UnreadCountBadge, { count: _nullishCoalesce(entry.count, () => ( 0)) })
|
|
2247
2247
|
]
|
|
2248
2248
|
}
|
|
2249
2249
|
) : void 0,
|
|
@@ -2314,7 +2314,7 @@ function AccountPopover({
|
|
|
2314
2314
|
"aria-hidden": "true"
|
|
2315
2315
|
}
|
|
2316
2316
|
),
|
|
2317
|
-
unread && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2317
|
+
unread && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.UnreadDot, { size: "fixed" })
|
|
2318
2318
|
] }),
|
|
2319
2319
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2320
2320
|
"span",
|
|
@@ -2380,7 +2380,7 @@ function HeaderGlobalSearch({
|
|
|
2380
2380
|
"form",
|
|
2381
2381
|
{
|
|
2382
2382
|
onSubmit: handleSubmit,
|
|
2383
|
-
...
|
|
2383
|
+
..._chunkLQDPAMXKcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
2384
2384
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2385
2385
|
"flex h-full flex-1 items-center gap-2 px-3",
|
|
2386
2386
|
// Transparent so the cell inherits the bar's background
|
|
@@ -2493,14 +2493,14 @@ function NotificationsBellButton({
|
|
|
2493
2493
|
variant = "cell",
|
|
2494
2494
|
className
|
|
2495
2495
|
}) {
|
|
2496
|
-
const ctx =
|
|
2496
|
+
const ctx = _chunkEQB3NSY6cjs.useOptionalNotifications.call(void 0, );
|
|
2497
2497
|
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _66 => _66.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
2498
2498
|
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _67 => _67.isOpen]), () => ( false));
|
|
2499
2499
|
const onClick = _optionalChain([ctx, 'optionalAccess', _68 => _68.toggle]);
|
|
2500
2500
|
const floating = variant === "floating";
|
|
2501
2501
|
const iconClassName = variant === "cell" ? "h-6 w-6" : "h-5 w-5";
|
|
2502
2502
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2503
|
-
|
|
2503
|
+
_chunkEQB3NSY6cjs.HeaderButton,
|
|
2504
2504
|
{
|
|
2505
2505
|
icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: iconClassName }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCON36SEJcjs.BellIcon, { className: iconClassName }),
|
|
2506
2506
|
showUnreadDot: !isActive && hasUnread,
|
|
@@ -2523,14 +2523,14 @@ function NotificationsBellButton({
|
|
|
2523
2523
|
// src/components/navigation/ticket-alerts-button.tsx
|
|
2524
2524
|
|
|
2525
2525
|
function TicketAlertsButton({ href, disabled, variant = "cell", className }) {
|
|
2526
|
-
const live =
|
|
2526
|
+
const live = _chunkHBFYEBXNcjs.useOptionalTicketLive.call(void 0, );
|
|
2527
2527
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
2528
2528
|
if (!live || !live.authed || live.unreadTotal === 0) return null;
|
|
2529
2529
|
const targetId = live.nextUnreadTicketId;
|
|
2530
|
-
const target = targetId ?
|
|
2530
|
+
const target = targetId ? _chunkLQDPAMXKcjs.buildTicketOpenHref.call(void 0, href, targetId) : href;
|
|
2531
2531
|
const handleClick = () => _chunkZABZIM2Ycjs.executeNavigationImperative.call(void 0, { runtime, href: target });
|
|
2532
2532
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2533
|
-
|
|
2533
|
+
_chunkEQB3NSY6cjs.HeaderButton,
|
|
2534
2534
|
{
|
|
2535
2535
|
icon: (
|
|
2536
2536
|
// Glyph inherits HeaderButton's standard cell coloring (secondary at
|
|
@@ -2540,7 +2540,7 @@ function TicketAlertsButton({ href, disabled, variant = "cell", className }) {
|
|
|
2540
2540
|
// existing while updates are unread — never by tinting the glyph.
|
|
2541
2541
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
2542
2542
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk365ZKGGOcjs.LifeBuoyIcon, { className: variant === "compact" ? "h-5 w-5" : "h-6 w-6" }),
|
|
2543
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2543
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.UnreadCountBadge, { count: live.unreadTotal })
|
|
2544
2544
|
] })
|
|
2545
2545
|
),
|
|
2546
2546
|
"aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
|
|
@@ -2613,7 +2613,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2613
2613
|
const dimmedClass = disabled ? "pointer-events-none opacity-50" : "";
|
|
2614
2614
|
const cellDivider = "border-l border-ods-border";
|
|
2615
2615
|
const renderCustomCells = (placement) => _optionalChain([customCells, 'optionalAccess', _69 => _69.filter, 'call', _70 => _70((cell) => (_nullishCoalesce(cell.placement, () => ( "start"))) === placement), 'access', _71 => _71.map, 'call', _72 => _72((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2616
|
-
|
|
2616
|
+
_chunkEQB3NSY6cjs.HeaderButton,
|
|
2617
2617
|
{
|
|
2618
2618
|
type: "button",
|
|
2619
2619
|
icon: cell.icon,
|
|
@@ -2634,7 +2634,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2634
2634
|
leading: (
|
|
2635
2635
|
// Mobile: Burger Menu Button
|
|
2636
2636
|
!isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2637
|
-
|
|
2637
|
+
_chunkEQB3NSY6cjs.HeaderButton,
|
|
2638
2638
|
{
|
|
2639
2639
|
onClick: onToggleMobileMenu,
|
|
2640
2640
|
isActive: isMobileMenuOpen,
|
|
@@ -2660,7 +2660,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2660
2660
|
center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
|
|
2661
2661
|
sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2662
2662
|
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2663
|
-
|
|
2663
|
+
_chunkEQB3NSY6cjs.HeaderButton,
|
|
2664
2664
|
{
|
|
2665
2665
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "h-6 w-6" }),
|
|
2666
2666
|
"aria-label": "Search",
|
|
@@ -2678,7 +2678,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2678
2678
|
}
|
|
2679
2679
|
),
|
|
2680
2680
|
renderCustomCells("start"),
|
|
2681
|
-
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2681
|
+
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.TimeTrackerHeaderButton, { disabled, className: _chunk63A4GZMBcjs.cn.call(void 0, cellDivider, dimmedClass) }),
|
|
2682
2682
|
showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2683
2683
|
NotificationsBellButton,
|
|
2684
2684
|
{
|
|
@@ -2697,7 +2697,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2697
2697
|
),
|
|
2698
2698
|
isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenu, { children: [
|
|
2699
2699
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2700
|
-
|
|
2700
|
+
_chunkEQB3NSY6cjs.HeaderButton,
|
|
2701
2701
|
{
|
|
2702
2702
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2703
2703
|
_chunkGRHF5SWLcjs.SquareAvatar,
|
|
@@ -3630,7 +3630,7 @@ function AppLayout({
|
|
|
3630
3630
|
disabled
|
|
3631
3631
|
}
|
|
3632
3632
|
),
|
|
3633
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3633
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.NotificationDrawer, { showClose: !desktopHeader }),
|
|
3634
3634
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3635
3635
|
"div",
|
|
3636
3636
|
{
|
|
@@ -3667,7 +3667,7 @@ function AppLayout({
|
|
|
3667
3667
|
style: bottomInset > 0 || dockFloats ? {
|
|
3668
3668
|
paddingBottom: bottomInset,
|
|
3669
3669
|
[COMPOSER_DOCK_INSET_VAR]: `${dockFloats ? dockHeight : 0}px`,
|
|
3670
|
-
...dockFloats && dockHeight > 0 ?
|
|
3670
|
+
...dockFloats && dockHeight > 0 ? _chunkEQB3NSY6cjs.previewFadeMask.call(void 0, `calc(100% - ${dockHeight}px)`) : {}
|
|
3671
3671
|
} : void 0,
|
|
3672
3672
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMG3HJIGGcjs.ContentAreaWidthContext.Provider, { value: contentAreaWidth, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOT6P57ZScjs.ComposerDockHeightContext.Provider, { value: hasDock ? dockHeight : 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: adaptive ? "ods-content-scope" : "contents", children }) }) })
|
|
3673
3673
|
}
|
|
@@ -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 _chunkLQDPAMXKcjs = require('./chunk-LQDPAMXK.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk4JHO2NVIcjs = require('./chunk-4JHO2NVI.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 = _chunkLQDPAMXKcjs.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";
|
|
@@ -6,7 +6,7 @@ var _chunkLWMWY3JOcjs = require('./chunk-LWMWY3JO.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkLQDPAMXKcjs = require('./chunk-LQDPAMXK.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -172,31 +172,31 @@ CveLink.displayName = "CveLink";
|
|
|
172
172
|
// src/components/platform/ShellTypeBadge.tsx
|
|
173
173
|
|
|
174
174
|
var shellIconMap = {
|
|
175
|
-
[
|
|
175
|
+
[_chunkLQDPAMXKcjs.ShellTypeValues.POWERSHELL]: {
|
|
176
176
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
177
177
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
178
178
|
},
|
|
179
|
-
[
|
|
179
|
+
[_chunkLQDPAMXKcjs.ShellTypeValues.CMD]: {
|
|
180
180
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
181
181
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
182
182
|
},
|
|
183
|
-
[
|
|
183
|
+
[_chunkLQDPAMXKcjs.ShellTypeValues.BASH]: {
|
|
184
184
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
185
185
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
186
186
|
},
|
|
187
|
-
[
|
|
187
|
+
[_chunkLQDPAMXKcjs.ShellTypeValues.PYTHON]: {
|
|
188
188
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
189
189
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
190
190
|
},
|
|
191
|
-
[
|
|
191
|
+
[_chunkLQDPAMXKcjs.ShellTypeValues.NUSHELL]: {
|
|
192
192
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
193
193
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
194
194
|
},
|
|
195
|
-
[
|
|
195
|
+
[_chunkLQDPAMXKcjs.ShellTypeValues.DENO]: {
|
|
196
196
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
197
197
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
198
198
|
},
|
|
199
|
-
[
|
|
199
|
+
[_chunkLQDPAMXKcjs.ShellTypeValues.SHELL]: {
|
|
200
200
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
201
201
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
202
202
|
}
|
|
@@ -207,7 +207,7 @@ var defaultIconConfig = {
|
|
|
207
207
|
};
|
|
208
208
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
209
209
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
210
|
-
const label =
|
|
210
|
+
const label = _chunkLQDPAMXKcjs.getShellLabel.call(void 0, normalizedType);
|
|
211
211
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
212
212
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
213
213
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -223,7 +223,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
223
223
|
if (!platforms || platforms.length === 0) {
|
|
224
224
|
return "All Platforms";
|
|
225
225
|
}
|
|
226
|
-
return platforms.map((platform) =>
|
|
226
|
+
return platforms.map((platform) => _chunkLQDPAMXKcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
227
227
|
}
|
|
228
228
|
function InfoCell({ label, value, avatar, className }) {
|
|
229
229
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -253,7 +253,7 @@ var ScriptInfoSection = ({
|
|
|
253
253
|
author,
|
|
254
254
|
className
|
|
255
255
|
}) => {
|
|
256
|
-
const shellLabel =
|
|
256
|
+
const shellLabel = _chunkLQDPAMXKcjs.getShellLabel.call(void 0, shellType);
|
|
257
257
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
258
258
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
259
259
|
/* @__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: [
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUFF4TRZHcjs = require('./chunk-UFF4TRZH.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkVMFBLMP6cjs = require('./chunk-VMFBLMP6.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -20,7 +20,7 @@ var _chunkUQS2RI5Ycjs = require('./chunk-UQS2RI5Y.cjs');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkEQB3NSY6cjs = require('./chunk-EQB3NSY6.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
@@ -29,7 +29,7 @@ var _chunkFNNDGOR3cjs = require('./chunk-FNNDGOR3.cjs');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkLQDPAMXKcjs = require('./chunk-LQDPAMXK.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
@@ -354,13 +354,13 @@ function toDocContent(value, requestedPath) {
|
|
|
354
354
|
function toDataSync(value) {
|
|
355
355
|
if (!isRecord(value)) return void 0;
|
|
356
356
|
const source = readString(value, "source");
|
|
357
|
-
if (!
|
|
357
|
+
if (!_chunkEQB3NSY6cjs.isDataSyncSource.call(void 0, source)) return void 0;
|
|
358
358
|
return { source, syncedAt: _nullishCoalesce(readString(value, "syncedAt"), () => ( null)) };
|
|
359
359
|
}
|
|
360
360
|
function useDocumentTree(config, initialPath) {
|
|
361
361
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
362
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
363
|
-
const cleanInitialPath =
|
|
362
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkLQDPAMXKcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
363
|
+
const cleanInitialPath = _chunkLQDPAMXKcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
364
364
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
365
365
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
366
366
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -386,12 +386,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
386
386
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
387
387
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
388
388
|
}
|
|
389
|
-
pathFromUrl =
|
|
389
|
+
pathFromUrl = _chunkLQDPAMXKcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
390
390
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
391
391
|
setSelectedPath(pathFromUrl);
|
|
392
392
|
if (pathFromUrl) {
|
|
393
393
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
394
|
-
setExpandedNodes(new Set(
|
|
394
|
+
setExpandedNodes(new Set(_chunkLQDPAMXKcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
395
395
|
}
|
|
396
396
|
setTimeout(() => {
|
|
397
397
|
scrollToContent();
|
|
@@ -409,7 +409,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
409
409
|
setSelectedPath(cleanInitialPath);
|
|
410
410
|
if (cleanInitialPath) {
|
|
411
411
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
412
|
-
setExpandedNodes(new Set(
|
|
412
|
+
setExpandedNodes(new Set(_chunkLQDPAMXKcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
413
413
|
}
|
|
414
414
|
setExternalNavCount((n) => n + 1);
|
|
415
415
|
}
|
|
@@ -434,7 +434,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
434
434
|
if (cleanInitialPath) {
|
|
435
435
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
436
436
|
if (pathForExpansion) {
|
|
437
|
-
setExpandedNodes(new Set(
|
|
437
|
+
setExpandedNodes(new Set(_chunkLQDPAMXKcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
438
438
|
}
|
|
439
439
|
} else if (nodes.length > 0) {
|
|
440
440
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -474,7 +474,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
474
474
|
setContent(null);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
|
-
const probe =
|
|
477
|
+
const probe = _chunkLQDPAMXKcjs.findDocNodeByPath.call(void 0, _chunkLQDPAMXKcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
478
478
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
479
479
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
480
480
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -533,7 +533,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
533
533
|
if (selectedPath === "") {
|
|
534
534
|
pathToFetch = folderIndexFile;
|
|
535
535
|
} else {
|
|
536
|
-
const node =
|
|
536
|
+
const node = _chunkLQDPAMXKcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
537
537
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
538
538
|
const firstDocPath = findFirstDocPath(node);
|
|
539
539
|
if (!firstDocPath) {
|
|
@@ -574,16 +574,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
574
574
|
if (node.type === "folder") {
|
|
575
575
|
setExpandedNodes((prev) => {
|
|
576
576
|
if (prev.has(node.id)) {
|
|
577
|
-
const ancestorIds =
|
|
577
|
+
const ancestorIds = _chunkLQDPAMXKcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
578
578
|
ancestorIds.pop();
|
|
579
579
|
return new Set(ancestorIds);
|
|
580
580
|
}
|
|
581
|
-
return new Set(
|
|
581
|
+
return new Set(_chunkLQDPAMXKcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
582
582
|
});
|
|
583
583
|
} else {
|
|
584
584
|
const lastSlash = node.path.lastIndexOf("/");
|
|
585
585
|
if (lastSlash > 0) {
|
|
586
|
-
setExpandedNodes(new Set(
|
|
586
|
+
setExpandedNodes(new Set(_chunkLQDPAMXKcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
lastFetchedPath.current = null;
|
|
@@ -598,7 +598,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
598
598
|
const hashIndex = path.indexOf("#");
|
|
599
599
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
600
600
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
601
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
601
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkLQDPAMXKcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
602
602
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
603
603
|
_chunkZABZIM2Ycjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkZABZIM2Ycjs.HUB_HEADER_OFFSET_PX });
|
|
604
604
|
return;
|
|
@@ -662,15 +662,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
662
662
|
return docNavigation.register({
|
|
663
663
|
baseRoute: normalizedBaseRoute,
|
|
664
664
|
findNodeByPath: (path) => {
|
|
665
|
-
const clean =
|
|
666
|
-
return _nullishCoalesce(
|
|
665
|
+
const clean = _chunkLQDPAMXKcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
666
|
+
return _nullishCoalesce(_chunkLQDPAMXKcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
667
667
|
},
|
|
668
668
|
selectNode
|
|
669
669
|
});
|
|
670
670
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
671
671
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
672
672
|
if (!selectedPath || structure.length === 0) return false;
|
|
673
|
-
const node =
|
|
673
|
+
const node = _chunkLQDPAMXKcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
674
674
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
675
675
|
}, [selectedPath, structure]);
|
|
676
676
|
return {
|
|
@@ -753,7 +753,7 @@ function DocViewerContent({
|
|
|
753
753
|
},
|
|
754
754
|
docPath
|
|
755
755
|
);
|
|
756
|
-
const { activeSection, handleSectionClick } =
|
|
756
|
+
const { activeSection, handleSectionClick } = _chunkVMFBLMP6cjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
757
757
|
const docNav = useDocNavigation();
|
|
758
758
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
759
759
|
const backCfg = backButton === false ? null : {
|
|
@@ -784,7 +784,7 @@ function DocViewerContent({
|
|
|
784
784
|
onResolveLink: resolveLink
|
|
785
785
|
});
|
|
786
786
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
787
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
787
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkLQDPAMXKcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
788
788
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
789
789
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
790
790
|
const showStickyNav = isMarkdownContent;
|
|
@@ -796,7 +796,7 @@ function DocViewerContent({
|
|
|
796
796
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
797
797
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
798
798
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFNNDGOR3cjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
799
|
-
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
799
|
+
synced && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.DataSyncLine, { sync: _optionalChain([content, 'optionalAccess', _19 => _19.sync]), loading: !content && (isLoadingContent || isLoadingStructure) }),
|
|
800
800
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
801
801
|
_chunkUQS2RI5Ycjs.DocSearchBar,
|
|
802
802
|
{
|
|
@@ -819,7 +819,7 @@ function DocViewerContent({
|
|
|
819
819
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
|
|
820
820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: [
|
|
821
821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
822
|
-
|
|
822
|
+
_chunkVMFBLMP6cjs.MobileNavigationDropdown,
|
|
823
823
|
{
|
|
824
824
|
nodes: structure,
|
|
825
825
|
selectedPath,
|
|
@@ -833,7 +833,7 @@ function DocViewerContent({
|
|
|
833
833
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
834
834
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
835
835
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
836
|
-
|
|
836
|
+
_chunkVMFBLMP6cjs.MultiLevelNavigation,
|
|
837
837
|
{
|
|
838
838
|
nodes: structure,
|
|
839
839
|
selectedPath,
|
|
@@ -872,7 +872,7 @@ function DocViewerContent({
|
|
|
872
872
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
873
873
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: ON_THIS_PAGE_HEADING_CLASS, children: ON_THIS_PAGE_LABEL }),
|
|
874
874
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
875
|
-
|
|
875
|
+
_chunkVMFBLMP6cjs.StickySectionNav,
|
|
876
876
|
{
|
|
877
877
|
sections: stickyNavSections,
|
|
878
878
|
activeSection,
|
|
@@ -887,7 +887,7 @@ function DocViewerContent({
|
|
|
887
887
|
) })
|
|
888
888
|
] })
|
|
889
889
|
] }) }) });
|
|
890
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
// src/components/docs/skeletons.tsx
|
|
@@ -959,7 +959,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
959
959
|
] }),
|
|
960
960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
961
961
|
] }),
|
|
962
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.EmbedLoadingSkeleton, { region: false })
|
|
963
963
|
] });
|
|
964
964
|
}
|
|
965
965
|
|
|
@@ -967,11 +967,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
967
967
|
|
|
968
968
|
var DEFAULT_TITLE = "Documents";
|
|
969
969
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
970
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
971
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
972
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
970
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUFF4TRZHcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
971
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUFF4TRZHcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
972
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
973
973
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
974
|
-
|
|
974
|
+
_chunkUFF4TRZHcjs.FileDownloadCard,
|
|
975
975
|
{
|
|
976
976
|
fileName: content.fileName,
|
|
977
977
|
mimeType: content.mimeType,
|
|
@@ -9,7 +9,7 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
9
9
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkEQB3NSY6cjs = require('./chunk-EQB3NSY6.cjs');
|
|
13
13
|
require('./chunk-FNNDGOR3.cjs');
|
|
14
14
|
require('./chunk-SWMUW3RR.cjs');
|
|
15
15
|
require('./chunk-VQG2A7GA.cjs');
|
|
@@ -20,7 +20,7 @@ require('./chunk-APOMNC7H.cjs');
|
|
|
20
20
|
require('./chunk-24I6RFVU.cjs');
|
|
21
21
|
require('./chunk-MZ4KBSH7.cjs');
|
|
22
22
|
require('./chunk-5SZ4ILU3.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-LQDPAMXK.cjs');
|
|
24
24
|
require('./chunk-OT6P57ZS.cjs');
|
|
25
25
|
require('./chunk-D6ZSRGH2.cjs');
|
|
26
26
|
require('./chunk-4JHO2NVI.cjs');
|
|
@@ -1921,7 +1921,7 @@ var getHref = () => "#";
|
|
|
1921
1921
|
function CloudTenantsScreen(_props) {
|
|
1922
1922
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1923
1923
|
const fixture = _react.useMemo.call(void 0, () => buildCloudTenantsFixture(cast), [cast]);
|
|
1924
|
-
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1924
|
+
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEQB3NSY6cjs.TenantsTableView, { rows: fixture.rows, getHref, now: fixture.now });
|
|
1925
1925
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-l)]", children: table });
|
|
1926
1926
|
}
|
|
1927
1927
|
|