@flamingo-stack/openframe-frontend-core 0.0.720 → 0.0.722
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-3HZ6XSZC.js → chunk-2TXGR7IK.js} +136 -59
- package/dist/{chunk-WSDT7LYL.js → chunk-3UBWDR65.js} +1 -1
- package/dist/{chunk-CMZ3QTFQ.js → chunk-4I3K6LEH.js} +24 -0
- package/dist/{chunk-4SIZCHVZ.cjs → chunk-4LY6R4TN.cjs} +126 -49
- package/dist/{chunk-2NASBO7O.js → chunk-5D2K7TFT.js} +3 -3
- package/dist/{chunk-HFEYEPOG.cjs → chunk-5K6YKRP5.cjs} +29 -29
- package/dist/{chunk-7HYEQKN6.js → chunk-65C4WHG4.js} +6 -6
- package/dist/{chunk-DOPOHO6H.cjs → chunk-6HRQLM6T.cjs} +20 -20
- package/dist/{chunk-B2N4YX66.js → chunk-6YBUQAOH.js} +1 -1
- package/dist/{chunk-GANIUMRU.js → chunk-7UZ2JZJY.js} +3 -3
- package/dist/{chunk-4HJRHEXD.cjs → chunk-ABSWD4PQ.cjs} +27 -27
- package/dist/{chunk-VYVPII4W.js → chunk-AWWLEYAU.js} +6 -6
- package/dist/{chunk-V6B2FBZK.js → chunk-BCU6UUNQ.js} +8 -8
- package/dist/{chunk-LO3KCLEF.js → chunk-BUDZWXRG.js} +4 -4
- package/dist/{chunk-WBNAEYTQ.cjs → chunk-BYUIFT7Q.cjs} +6 -6
- package/dist/{chunk-KSGMZHVV.cjs → chunk-DFM572VH.cjs} +2 -2
- package/dist/{chunk-YDPKUAP4.js → chunk-DJ4IFQNQ.js} +2 -0
- package/dist/{chunk-DYDDAA6O.cjs → chunk-DWSBTGKT.cjs} +816 -798
- package/dist/{chunk-PSMJYZMV.js → chunk-DX3W7DPC.js} +2 -2
- package/dist/{chunk-PXAKSPLZ.js → chunk-E7NIZXDT.js} +20 -8
- package/dist/{chunk-6W46LVK4.js → chunk-ETQVXIYW.js} +6 -6
- package/dist/{chunk-742BGXNX.js → chunk-EWED6ISQ.js} +1 -1
- package/dist/{chunk-Q5327DXK.js → chunk-F33RMJOL.js} +11 -11
- package/dist/{chunk-RZQGIWK3.cjs → chunk-FDWYBJYD.cjs} +8 -8
- package/dist/{chunk-QF464PPL.cjs → chunk-GAFK3WNT.cjs} +62 -62
- package/dist/{chunk-6BLN5WDS.cjs → chunk-GYSTZD6X.cjs} +40 -40
- package/dist/{chunk-TORERAXD.js → chunk-HA2ASGJM.js} +6 -6
- package/dist/{chunk-KT3U3ZRP.cjs → chunk-HP4UUBJC.cjs} +16 -16
- package/dist/{chunk-DFQYAYBH.cjs → chunk-HQIOMFJH.cjs} +2 -0
- package/dist/{chunk-AZRI4XBP.js → chunk-I3UUMRO7.js} +1 -1
- package/dist/{chunk-VYZCKY5K.js → chunk-IF72N4PE.js} +7 -7
- package/dist/{chunk-RFUOIQSG.cjs → chunk-IITZ6JSC.cjs} +37 -37
- package/dist/{chunk-7LPR4RZ3.cjs → chunk-JQ55FFIK.cjs} +31 -31
- package/dist/{chunk-GQ7JJUIT.cjs → chunk-K2JUJ37D.cjs} +25 -1
- package/dist/{chunk-URW23QUM.js → chunk-K76ACBR3.js} +2 -2
- package/dist/{chunk-7IOU6BJE.js → chunk-KBPGSPXQ.js} +2387 -2369
- package/dist/{chunk-ILNN6QRW.js → chunk-KS3YLYVL.js} +4 -4
- package/dist/{chunk-2C72EWQR.cjs → chunk-KWBH63GV.cjs} +26 -26
- package/dist/{chunk-IYVFSLWJ.js → chunk-KZQO5EJQ.js} +4 -0
- package/dist/{chunk-IMTY3GRR.cjs → chunk-LV6UJD2K.cjs} +2 -2
- package/dist/{chunk-UWJMDFDO.cjs → chunk-MJ4SXOG2.cjs} +28 -28
- package/dist/{chunk-VF2CJXZ2.cjs → chunk-NFABAOMD.cjs} +77 -79
- package/dist/{chunk-B5LNX4GZ.js → chunk-NMGWNUKB.js} +3 -3
- package/dist/{chunk-RDP5UZXQ.cjs → chunk-P7Y626YJ.cjs} +370 -358
- package/dist/{chunk-P3JMAMHP.js → chunk-REETLEL5.js} +1 -1
- package/dist/{chunk-FFT56TYB.cjs → chunk-RUZIICXT.cjs} +2 -2
- package/dist/{chunk-ISCZ6UNF.cjs → chunk-RVQV6J5K.cjs} +75 -75
- package/dist/{chunk-VBHGJFA3.js → chunk-SZ3CBFSH.js} +13 -13
- package/dist/{chunk-O3MKJU6A.js → chunk-SZF7ENIW.js} +4 -4
- package/dist/{chunk-F5BPGWGT.cjs → chunk-TKFTWM3V.cjs} +5 -1
- package/dist/{chunk-YK3X74SF.js → chunk-UYMTAFHG.js} +6 -8
- package/dist/{chunk-DHNJSQGX.cjs → chunk-VC7COEWF.cjs} +105 -105
- package/dist/{chunk-XW3Q623Q.js → chunk-VSYQJCNR.js} +2 -2
- package/dist/{chunk-IL3ZWNM2.cjs → chunk-VU7RU3LL.cjs} +7 -7
- package/dist/{chunk-XSM46FHD.cjs → chunk-VV5INIQB.cjs} +3 -3
- package/dist/{chunk-HTS46FFY.cjs → chunk-VYHCN5NU.cjs} +16 -16
- package/dist/{chunk-ZPHOQDAE.js → chunk-WY4SLTMZ.js} +3 -3
- package/dist/{chunk-5XDCCQ4A.cjs → chunk-XJYAUIOL.cjs} +13 -13
- package/dist/{chunk-ZHD3F2TH.cjs → chunk-XR7NVJXS.cjs} +13 -13
- package/dist/{chunk-EVMM3JE6.cjs → chunk-ZHC6MDGF.cjs} +43 -43
- package/dist/{chunk-K2BYVPGR.js → chunk-ZMHP4Y6M.js} +5 -5
- package/dist/{chunk-NYSMDM4J.cjs → chunk-ZSOFLPQN.cjs} +7 -7
- package/dist/{cloud-tenants-RKQRSDNE.js → cloud-tenants-4Z36KWSX.js} +14 -14
- package/dist/{cloud-tenants-UQZASXUB.cjs → cloud-tenants-5NIC5VXK.cjs} +15 -15
- package/dist/components/calendar.cjs +4 -4
- package/dist/components/calendar.js +1 -1
- package/dist/components/case-studies/index.cjs +29 -29
- package/dist/components/case-studies/index.js +15 -15
- package/dist/components/chat/index.cjs +10 -10
- package/dist/components/chat/index.js +9 -9
- package/dist/components/contact/index.cjs +16 -16
- package/dist/components/contact/index.js +15 -15
- package/dist/components/docs/index.cjs +19 -19
- package/dist/components/docs/index.js +18 -18
- package/dist/components/embeds/index.cjs +16 -16
- package/dist/components/embeds/index.js +15 -15
- package/dist/components/faq/index.cjs +16 -16
- package/dist/components/faq/index.js +15 -15
- package/dist/components/features/index.cjs +15 -15
- package/dist/components/features/index.js +14 -14
- package/dist/components/features/remote-session/remote-access-request-card.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.d.ts +68 -0
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -0
- package/dist/components/help-center-pages/index.cjs +347 -117
- package/dist/components/help-center-pages/index.d.ts +1 -0
- package/dist/components/help-center-pages/index.d.ts.map +1 -1
- package/dist/components/help-center-pages/index.js +260 -30
- package/dist/components/index.cjs +87 -85
- package/dist/components/index.js +30 -28
- package/dist/components/meeting-scheduler/index.cjs +67 -67
- package/dist/components/meeting-scheduler/index.js +16 -16
- package/dist/components/navigation/index.cjs +18 -18
- package/dist/components/navigation/index.js +17 -17
- package/dist/components/onboarding-guides/index.cjs +18 -18
- package/dist/components/onboarding-guides/index.js +17 -17
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/product-demo/index.js +8 -8
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/related-content/index.js +6 -6
- package/dist/components/tickets/index.cjs +20 -20
- package/dist/components/tickets/index.js +19 -19
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/file-manager/index.cjs +11 -11
- package/dist/components/ui/file-manager/index.js +1 -1
- package/dist/components/ui/index.cjs +17 -15
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +16 -14
- package/dist/components/ui/mobile-app-qr.d.ts +21 -0
- package/dist/components/ui/mobile-app-qr.d.ts.map +1 -0
- package/dist/components/ui/store-badges.d.ts +7 -4
- package/dist/components/ui/store-badges.d.ts.map +1 -1
- package/dist/{devices-U3Y4IIW4.js → devices-2TK3LAKM.js} +14 -14
- package/dist/{devices-7Q2EUM7B.cjs → devices-7IKT72DK.cjs} +16 -16
- package/dist/hooks/index.cjs +9 -3
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +8 -2
- package/dist/hooks/use-downloads.d.ts +41 -0
- package/dist/hooks/use-downloads.d.ts.map +1 -0
- package/dist/index.cjs +52 -20
- package/dist/index.js +50 -18
- package/dist/{knowledge-NST53EXE.js → knowledge-3GJ4MU3V.js} +14 -14
- package/dist/{knowledge-UYIZ74MA.cjs → knowledge-HYSEV35H.cjs} +16 -16
- package/dist/{logs-JVTRG232.js → logs-TATVM62H.js} +14 -14
- package/dist/{logs-HTH7X7KV.cjs → logs-ZX3NADQC.cjs} +24 -24
- package/dist/{policies-MXK2HB4W.cjs → policies-J4FSDKPI.cjs} +19 -19
- package/dist/{policies-DTXTRK56.js → policies-MRRKLF4Q.js} +14 -14
- package/dist/{remote-session-LAJZKQBN.js → remote-session-WCLR47RN.js} +6 -6
- package/dist/{remote-session-SKKF4PBV.cjs → remote-session-Z2YCUPHU.cjs} +8 -8
- package/dist/{software-update-P6BSM6HX.cjs → software-update-CXUBWYD2.cjs} +19 -19
- package/dist/{software-update-6RHMPM3W.js → software-update-KM46WUVQ.js} +14 -14
- package/dist/{tickets-board-BHLPAVNJ.cjs → tickets-board-R5OQSEEC.cjs} +10 -10
- package/dist/{tickets-board-PYDNELSK.js → tickets-board-U3RF3AO4.js} +5 -5
- package/dist/types/downloads.d.ts +83 -0
- package/dist/types/downloads.d.ts.map +1 -0
- package/dist/types/index.cjs +24 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +16 -1
- package/dist/utils/format.d.ts +11 -0
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/index.cjs +15 -0
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +13 -1
- package/dist/utils/mobile-app.cjs +37 -0
- package/dist/utils/mobile-app.d.ts +23 -0
- package/dist/utils/mobile-app.d.ts.map +1 -0
- package/dist/utils/mobile-app.js +34 -0
- package/package.json +7 -1
- package/src/components/features/remote-session/remote-access-request-card.tsx +6 -6
- package/src/components/help-center-pages/download-apps-page.tsx +388 -0
- package/src/components/help-center-pages/index.ts +1 -0
- package/src/components/ui/button/button.tsx +3 -0
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/mobile-app-qr.tsx +35 -0
- package/src/components/ui/store-badges.tsx +17 -9
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-downloads.ts +138 -0
- package/src/types/downloads.ts +99 -0
- package/src/types/index.ts +1 -0
- package/src/utils/format.ts +15 -0
- package/src/utils/index.ts +3 -1
- package/src/utils/mobile-app.ts +34 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
DEFAULT_FOLDER_INDEX_FILE,
|
|
4
4
|
ScrollShadow
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-E7NIZXDT.js";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ANCHOR_ATTRIBUTE,
|
|
8
8
|
declaredScrollMarginTop,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
normalizeHashFragment,
|
|
13
13
|
replaceLocationHash,
|
|
14
14
|
scrollElementIntoView
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4I3K6LEH.js";
|
|
16
16
|
import {
|
|
17
17
|
next_link_default
|
|
18
18
|
} from "./chunk-DAAVMYUT.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunkNFABAOMDcjs = require('./chunk-NFABAOMD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIITZ6JSCcjs = require('./chunk-IITZ6JSC.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkTKFTWM3Vcjs = require('./chunk-TKFTWM3V.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkMGHIV4L6cjs = require('./chunk-MGHIV4L6.cjs');
|
|
@@ -66,7 +66,7 @@ function DetailPageSkeleton({
|
|
|
66
66
|
] });
|
|
67
67
|
if (bare) return content;
|
|
68
68
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
69
|
-
|
|
69
|
+
_chunkNFABAOMDcjs.PageLayout,
|
|
70
70
|
{
|
|
71
71
|
showHeader: false,
|
|
72
72
|
className: "mx-auto max-w-[1280px] bg-ods-bg px-6 py-6 content-md:px-20 content-md:py-10",
|
|
@@ -79,7 +79,7 @@ function DetailPageSkeleton({
|
|
|
79
79
|
var _lucidereact = require('lucide-react');
|
|
80
80
|
|
|
81
81
|
function formatDate(value) {
|
|
82
|
-
return
|
|
82
|
+
return _chunkTKFTWM3Vcjs.formatDateWithTimezone.call(void 0, value, null, "long");
|
|
83
83
|
}
|
|
84
84
|
function ArticleAuthorByline({
|
|
85
85
|
author,
|
|
@@ -95,7 +95,7 @@ function ArticleAuthorByline({
|
|
|
95
95
|
}) {
|
|
96
96
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
97
97
|
if (!author) return null;
|
|
98
|
-
const proxiedAvatar = avatar ? proxyImageUrl ? proxyImageUrl(avatar) : _nullishCoalesce(
|
|
98
|
+
const proxiedAvatar = avatar ? proxyImageUrl ? proxyImageUrl(avatar) : _nullishCoalesce(_chunkIITZ6JSCcjs.getProxiedImageUrl.call(void 0, avatar, {
|
|
99
99
|
proxyPrefix: _optionalChain([runtime, 'optionalAccess', _2 => _2.endpoints, 'access', _3 => _3.imageProxyUrlPrefix]),
|
|
100
100
|
skipDomains: _optionalChain([runtime, 'optionalAccess', _4 => _4.endpoints, 'access', _5 => _5.imageProxySkipDomains]),
|
|
101
101
|
directHttps: true
|
|
@@ -103,7 +103,7 @@ function ArticleAuthorByline({
|
|
|
103
103
|
const avatarSizeClass = size === "lg" ? "w-16 h-16" : "w-14 h-14";
|
|
104
104
|
const avatarIconClass = size === "lg" ? "w-8 h-8" : "w-7 h-7";
|
|
105
105
|
const avatarDim = size === "lg" ? 64 : 56;
|
|
106
|
-
const formattedBio =
|
|
106
|
+
const formattedBio = _chunkTKFTWM3Vcjs.formatBioText.call(void 0, _nullishCoalesce(bio, () => ( null)));
|
|
107
107
|
const dateLabel = publishedAt ? formatDate(publishedAt) : "";
|
|
108
108
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
109
109
|
"div",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkP7Y626YJcjs = require('./chunk-P7Y626YJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -42,7 +42,7 @@ function isSummaryData(value) {
|
|
|
42
42
|
}
|
|
43
43
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
44
44
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
45
|
-
const identity =
|
|
45
|
+
const identity = _chunkP7Y626YJcjs.useChatIdentity.call(void 0, enabled);
|
|
46
46
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
47
47
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
48
48
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -158,7 +158,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
158
158
|
_react2.default.useEffect(() => {
|
|
159
159
|
if (!streamEnabled) return void 0;
|
|
160
160
|
if (typeof window === "undefined") return void 0;
|
|
161
|
-
subscriptionRef.current =
|
|
161
|
+
subscriptionRef.current = _chunkP7Y626YJcjs.createSseSubscription.call(void 0, {
|
|
162
162
|
url: streamUrl,
|
|
163
163
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
164
164
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkP7Y626YJcjs = require('./chunk-P7Y626YJ.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ var _chunkRDP5UZXQcjs = require('./chunk-RDP5UZXQ.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkK2JUJ37Dcjs = require('./chunk-K2JUJ37D.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkLLRGR4I5cjs = require('./chunk-LLRGR4I5.cjs');
|
|
@@ -45,7 +45,7 @@ function HorizontalSectionNav({
|
|
|
45
45
|
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: [
|
|
46
46
|
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 }),
|
|
47
47
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48
|
-
|
|
48
|
+
_chunkP7Y626YJcjs.ScrollShadow,
|
|
49
49
|
{
|
|
50
50
|
axis: "horizontal",
|
|
51
51
|
className: "min-w-0 flex-1",
|
|
@@ -164,7 +164,7 @@ function useSectionNavigation(sections, options) {
|
|
|
164
164
|
if (!targetElement) return;
|
|
165
165
|
isScrollingFromClick.current = true;
|
|
166
166
|
setActiveSection(sectionId);
|
|
167
|
-
|
|
167
|
+
_chunkK2JUJ37Dcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset: offset });
|
|
168
168
|
setTimeout(() => {
|
|
169
169
|
isScrollingFromClick.current = false;
|
|
170
170
|
}, 500);
|
|
@@ -217,13 +217,13 @@ var SCROLL_OFFSET = 100;
|
|
|
217
217
|
var ID_SEPARATOR = "\n";
|
|
218
218
|
var LINE_TOLERANCE_PX = 1;
|
|
219
219
|
function currentHashId() {
|
|
220
|
-
return
|
|
220
|
+
return _chunkK2JUJ37Dcjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
221
221
|
}
|
|
222
222
|
function activeChildAnchor(section) {
|
|
223
|
-
return _nullishCoalesce(_optionalChain([section, 'access', _9 => _9.querySelector, 'call', _10 => _10(`[${
|
|
223
|
+
return _nullishCoalesce(_optionalChain([section, 'access', _9 => _9.querySelector, 'call', _10 => _10(`[${_chunkK2JUJ37Dcjs.ACTIVE_ANCHOR_ATTRIBUTE}][id]`), 'optionalAccess', _11 => _11.id]), () => ( null));
|
|
224
224
|
}
|
|
225
225
|
function hashIsWithin(section) {
|
|
226
|
-
return section.contains(
|
|
226
|
+
return section.contains(_chunkK2JUJ37Dcjs.getHashTargetElement.call(void 0, currentHashId()));
|
|
227
227
|
}
|
|
228
228
|
function hashForSection(sectionId) {
|
|
229
229
|
const section = document.getElementById(sectionId);
|
|
@@ -231,7 +231,7 @@ function hashForSection(sectionId) {
|
|
|
231
231
|
return _nullishCoalesce(activeChildAnchor(section), () => ( (hashIsWithin(section) ? currentHashId() : sectionId)));
|
|
232
232
|
}
|
|
233
233
|
function resolveScroller(firstSection) {
|
|
234
|
-
const container = firstSection ?
|
|
234
|
+
const container = firstSection ? _chunkK2JUJ37Dcjs.getScrollableAncestor.call(void 0, firstSection) : null;
|
|
235
235
|
if (container) {
|
|
236
236
|
return {
|
|
237
237
|
target: container,
|
|
@@ -261,8 +261,8 @@ function useScrollSpy(sections, options = {}) {
|
|
|
261
261
|
if (!targetElement) return;
|
|
262
262
|
isScrollingFromClick.current = true;
|
|
263
263
|
setActiveSection(sectionId);
|
|
264
|
-
if (syncHash)
|
|
265
|
-
|
|
264
|
+
if (syncHash) _chunkK2JUJ37Dcjs.replaceLocationHash.call(void 0, _nullishCoalesce(activeChildAnchor(targetElement), () => ( sectionId)));
|
|
265
|
+
_chunkK2JUJ37Dcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset });
|
|
266
266
|
setTimeout(() => {
|
|
267
267
|
isScrollingFromClick.current = false;
|
|
268
268
|
}, 800);
|
|
@@ -278,7 +278,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
278
278
|
const scrollTop = scroller.scrollTop();
|
|
279
279
|
const viewportTop = scroller.viewportTop();
|
|
280
280
|
const sectionTop = (element) => element.getBoundingClientRect().top - viewportTop + scrollTop;
|
|
281
|
-
const reached = (element) => scrollTop + Math.max(headerOffset,
|
|
281
|
+
const reached = (element) => scrollTop + Math.max(headerOffset, _chunkK2JUJ37Dcjs.declaredScrollMarginTop.call(void 0, element)) + LINE_TOLERANCE_PX >= sectionTop(element);
|
|
282
282
|
const first = document.getElementById(_nullishCoalesce(sectionIds[0], () => ( "")));
|
|
283
283
|
let currentSection = _nullishCoalesce(sectionIds[0], () => ( ""));
|
|
284
284
|
const scrollHeight = scroller.scrollHeight();
|
|
@@ -301,16 +301,16 @@ function useScrollSpy(sections, options = {}) {
|
|
|
301
301
|
setActiveSection((prev) => prev !== active ? active : prev);
|
|
302
302
|
if (!syncHash) return;
|
|
303
303
|
if (fromScroll) {
|
|
304
|
-
|
|
304
|
+
_chunkK2JUJ37Dcjs.replaceLocationHash.call(void 0, isAboveFirst ? null : hashForSection(currentSection));
|
|
305
305
|
return;
|
|
306
306
|
}
|
|
307
|
-
if (restoredChecked.current || !
|
|
308
|
-
const target =
|
|
307
|
+
if (restoredChecked.current || !_chunkK2JUJ37Dcjs.isScrollSyncedHash.call(void 0, )) return;
|
|
308
|
+
const target = _chunkK2JUJ37Dcjs.getHashTargetElement.call(void 0, currentHashId());
|
|
309
309
|
const tracked = sectionIds.some((id) => _nullishCoalesce(_optionalChain([document, 'access', _16 => _16.getElementById, 'call', _17 => _17(id), 'optionalAccess', _18 => _18.contains, 'call', _19 => _19(target)]), () => ( false)));
|
|
310
310
|
if (!target || !tracked) return;
|
|
311
311
|
restoredChecked.current = true;
|
|
312
312
|
const section = isAboveFirst ? null : document.getElementById(currentSection);
|
|
313
|
-
if (!_optionalChain([section, 'optionalAccess', _20 => _20.contains, 'call', _21 => _21(target)]))
|
|
313
|
+
if (!_optionalChain([section, 'optionalAccess', _20 => _20.contains, 'call', _21 => _21(target)])) _chunkK2JUJ37Dcjs.scrollElementIntoView.call(void 0, target, { headerOffset, behavior: "instant" });
|
|
314
314
|
};
|
|
315
315
|
let scrollTimer;
|
|
316
316
|
const throttledScroll = () => {
|
|
@@ -330,7 +330,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
330
330
|
// src/components/navigation/multi-level-navigation.tsx
|
|
331
331
|
var _lucidereact = require('lucide-react');
|
|
332
332
|
|
|
333
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
333
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunkP7Y626YJcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
334
334
|
function isNodeVisuallySelected(node, selectedPath, folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2) {
|
|
335
335
|
const FOLDER_INDEX_FILE = folderIndexFile.toLowerCase();
|
|
336
336
|
if (selectedPath === node.path) {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
AvatarStack,
|
|
4
4
|
resolveIcon
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EWED6ISQ.js";
|
|
6
6
|
import {
|
|
7
7
|
Tag,
|
|
8
8
|
VIEWER_TIMEZONE,
|
|
9
9
|
formatDateWithTimezone
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KZQO5EJQ.js";
|
|
11
11
|
import {
|
|
12
12
|
ViewportBreakpoints
|
|
13
13
|
} from "./chunk-KEKCQENI.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-NCPTID44.js";
|
|
19
19
|
import {
|
|
20
20
|
Button
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DJ4IFQNQ.js";
|
|
22
22
|
import {
|
|
23
23
|
cn
|
|
24
24
|
} from "./chunk-7RXWKTAP.js";
|
|
@@ -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 _chunkDWSBTGKTcjs = require('./chunk-DWSBTGKT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,16 +9,16 @@ var _chunkDYDDAA6Ocjs = require('./chunk-DYDDAA6O.cjs');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkP7Y626YJcjs = require('./chunk-P7Y626YJ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkK2JUJ37Dcjs = require('./chunk-K2JUJ37D.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkIITZ6JSCcjs = require('./chunk-IITZ6JSC.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunk7GRPR7XAcjs = require('./chunk-7GRPR7XA.cjs');
|
|
@@ -39,7 +39,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
39
39
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
40
40
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
41
41
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
42
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
42
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkP7Y626YJcjs.resolveSourceIcon.call(void 0, {
|
|
43
43
|
sourceRepo,
|
|
44
44
|
documentType: docType
|
|
45
45
|
});
|
|
@@ -69,7 +69,7 @@ function DocSearchBar({
|
|
|
69
69
|
renderResult
|
|
70
70
|
}) {
|
|
71
71
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
72
|
-
|
|
72
|
+
_chunkDWSBTGKTcjs.SearchInput,
|
|
73
73
|
{
|
|
74
74
|
placeholder,
|
|
75
75
|
value: query,
|
|
@@ -119,7 +119,7 @@ function mapDocSearchResults(docs) {
|
|
|
119
119
|
results.push({
|
|
120
120
|
id: `group-${entry.repo}`,
|
|
121
121
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
122
|
-
title: `${
|
|
122
|
+
title: `${_chunkP7Y626YJcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkP7Y626YJcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
123
123
|
path: rows[0].path,
|
|
124
124
|
type: "file",
|
|
125
125
|
metadata: {
|
|
@@ -182,7 +182,7 @@ function resolveSearchResultAction(result, source, runtimeMode, composeContentUr
|
|
|
182
182
|
if (composed && !isAbsoluteHref(href)) {
|
|
183
183
|
return { kind: "navigate-same-tab", href };
|
|
184
184
|
}
|
|
185
|
-
const isNewTab =
|
|
185
|
+
const isNewTab = _chunkIITZ6JSCcjs.decideNewTab.call(void 0, {
|
|
186
186
|
href,
|
|
187
187
|
targetPlatform: composed ? composed.targetPlatform : targetPlatform,
|
|
188
188
|
surface: "useUnifiedNav",
|
|
@@ -254,7 +254,7 @@ function useDocSearch(config) {
|
|
|
254
254
|
const [query, setQuery] = _react.useState.call(void 0, "");
|
|
255
255
|
const [results, setResults] = _react.useState.call(void 0, NO_RESULTS);
|
|
256
256
|
const [isFetching, setIsFetching] = _react.useState.call(void 0, false);
|
|
257
|
-
const debouncedQuery =
|
|
257
|
+
const debouncedQuery = _chunkK2JUJ37Dcjs.useDebounce.call(void 0, query, 300);
|
|
258
258
|
const searchable = debouncedQuery.trim().length >= 2;
|
|
259
259
|
const [wasSearchable, setWasSearchable] = _react.useState.call(void 0, searchable);
|
|
260
260
|
if (wasSearchable !== searchable) {
|
|
@@ -311,27 +311,27 @@ function useDocSearch(config) {
|
|
|
311
311
|
case "navigate-same-tab": {
|
|
312
312
|
if (wantsNewTab) {
|
|
313
313
|
setKeepOpen(true);
|
|
314
|
-
window.open(action.href, "_blank",
|
|
314
|
+
window.open(action.href, "_blank", _chunkP7Y626YJcjs.NEW_TAB_FEATURES);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
317
|
setKeepOpen(false);
|
|
318
318
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
319
319
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
320
|
-
router.push(
|
|
320
|
+
router.push(_chunkP7Y626YJcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
323
|
case "navigate-new-tab":
|
|
324
324
|
setKeepOpen(true);
|
|
325
325
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
326
326
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
327
|
-
|
|
327
|
+
_chunkP7Y626YJcjs.resolveExternalNavigation.call(void 0, {
|
|
328
328
|
href: action.href,
|
|
329
329
|
targetPlatform,
|
|
330
330
|
runtime
|
|
331
331
|
}).open();
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
window.open(action.href, "_blank",
|
|
334
|
+
window.open(action.href, "_blank", _chunkP7Y626YJcjs.NEW_TAB_FEATURES);
|
|
335
335
|
return;
|
|
336
336
|
case "ask-ai":
|
|
337
337
|
setKeepOpen(false);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkDWSBTGKTcjs = require('./chunk-DWSBTGKT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkK2JUJ37Dcjs = require('./chunk-K2JUJ37D.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkTKFTWM3Vcjs = require('./chunk-TKFTWM3V.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkVX4E6YSBcjs = require('./chunk-VX4E6YSB.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkHQIOMFJHcjs = require('./chunk-HQIOMFJH.cjs');
|
|
19
19
|
|
|
20
20
|
// src/components/embeds/file-download-card.tsx
|
|
21
21
|
var _lucidereact = require('lucide-react');
|
|
@@ -27,10 +27,10 @@ function FileDownloadCard({ fileName, mimeType, fileSize, fileUrl }) {
|
|
|
27
27
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-text-primary text-h3", children: fileName || "File" }),
|
|
28
28
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-2 flex items-center justify-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
29
29
|
mimeType && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: mimeType }),
|
|
30
|
-
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children:
|
|
30
|
+
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkTKFTWM3Vcjs.formatFileSize.call(void 0, fileSize) })
|
|
31
31
|
] })
|
|
32
32
|
] }),
|
|
33
|
-
fileUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33
|
+
fileUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQIOMFJHcjs.Button, { variant: "accent", href: fileUrl, openInNewTab: true, leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Download, { className: "h-4 w-4" }), children: "Download File" })
|
|
34
34
|
] }) });
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -46,16 +46,16 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
46
46
|
] });
|
|
47
47
|
}
|
|
48
48
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
49
|
-
|
|
49
|
+
_chunkDWSBTGKTcjs.EmbedViewerFrame,
|
|
50
50
|
{
|
|
51
51
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
52
52
|
title: displayName,
|
|
53
53
|
actions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54
|
-
|
|
54
|
+
_chunkHQIOMFJHcjs.Button,
|
|
55
55
|
{
|
|
56
56
|
variant: "outline",
|
|
57
57
|
size: "small-legacy",
|
|
58
|
-
href:
|
|
58
|
+
href: _chunkK2JUJ37Dcjs.toGoogleSheetsOriginalUrl.call(void 0, externalUrl),
|
|
59
59
|
openInNewTab: true,
|
|
60
60
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.GoogleSheetsIcon, { className: "h-4 w-4" }),
|
|
61
61
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }),
|
|
@@ -63,7 +63,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
63
63
|
children: "Open in Google Sheets"
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
|
-
src:
|
|
66
|
+
src: _chunkK2JUJ37Dcjs.toGoogleSheetsEmbedUrl.call(void 0, externalUrl),
|
|
67
67
|
height
|
|
68
68
|
}
|
|
69
69
|
);
|
|
@@ -81,13 +81,13 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
81
81
|
] });
|
|
82
82
|
}
|
|
83
83
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
84
|
-
|
|
84
|
+
_chunkDWSBTGKTcjs.EmbedViewerFrame,
|
|
85
85
|
{
|
|
86
86
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVX4E6YSBcjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
87
87
|
title: displayName,
|
|
88
88
|
actions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: [
|
|
89
89
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
90
|
-
|
|
90
|
+
_chunkHQIOMFJHcjs.Button,
|
|
91
91
|
{
|
|
92
92
|
variant: "outline",
|
|
93
93
|
size: "small-legacy",
|
|
@@ -100,7 +100,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
100
100
|
}
|
|
101
101
|
),
|
|
102
102
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
103
|
-
|
|
103
|
+
_chunkHQIOMFJHcjs.Button,
|
|
104
104
|
{
|
|
105
105
|
variant: "outline",
|
|
106
106
|
size: "small-legacy",
|