@flamingo-stack/openframe-frontend-core 0.0.731 → 0.0.732
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{chunk-2UNQJVYN.cjs → chunk-22ZK7BA3.cjs} +1221 -1006
- package/dist/{chunk-Y4QRK3CB.cjs → chunk-3BLBWZ6A.cjs} +4 -4
- package/dist/{chunk-ZV6473Z4.cjs → chunk-5HMGK3N6.cjs} +18 -18
- package/dist/{chunk-HI7EFAFQ.cjs → chunk-5HSMTSHU.cjs} +28 -28
- package/dist/{chunk-XDBHGWFH.cjs → chunk-6HHUU56Y.cjs} +16 -16
- package/dist/{chunk-A4HNF4MP.cjs → chunk-6KDGIOLP.cjs} +80 -80
- package/dist/chunk-AEVGCB3Y.cjs +417 -0
- package/dist/{chunk-CLILWI6O.cjs → chunk-BDTX2OEE.cjs} +32 -32
- package/dist/{chunk-YDGBRI3Y.cjs → chunk-BS4EZZCN.cjs} +13 -13
- package/dist/{chunk-JPZ4Y6X3.cjs → chunk-C5NERNE6.cjs} +89 -89
- package/dist/{chunk-YUXRIR45.cjs → chunk-CC3LINHF.cjs} +95 -47
- package/dist/{chunk-53XZ6MJ5.cjs → chunk-CUF3IYIB.cjs} +28 -28
- package/dist/{chunk-FKKUQK4C.cjs → chunk-G37LT2ID.cjs} +5 -1
- package/dist/chunk-HELVKMRG.cjs +28 -0
- package/dist/{chunk-HEOD765R.cjs → chunk-HH4BMYDX.cjs} +23 -370
- package/dist/{chunk-4YPV4OI4.cjs → chunk-I46MQ4R5.cjs} +80 -80
- package/dist/{chunk-RAHRDJBP.cjs → chunk-MEDDKM3A.cjs} +2 -2
- package/dist/{chunk-3SWLL4IM.cjs → chunk-MVZ6XFPK.cjs} +6 -6
- package/dist/{chunk-TH4N726A.cjs → chunk-N466AJGN.cjs} +17 -17
- package/dist/{chunk-QP6QS3YU.cjs → chunk-OI7VCXYU.cjs} +48 -50
- package/dist/{chunk-25H2SZH7.cjs → chunk-OJ3XU3YZ.cjs} +4 -4
- package/dist/{chunk-JK75ZZP3.cjs → chunk-PRWBVIWW.cjs} +43 -43
- package/dist/chunk-PX7FY655.cjs +114 -0
- package/dist/{chunk-HLIJ3U2T.cjs → chunk-QMTC3BK3.cjs} +13 -11
- package/dist/{chunk-YJFN2W7A.cjs → chunk-RIXGLS5Y.cjs} +3 -3
- package/dist/{chunk-BFHLGEJK.cjs → chunk-SJRR745G.cjs} +61 -58
- package/dist/{chunk-6V4GEE55.cjs → chunk-TLDCSTTQ.cjs} +8 -8
- package/dist/{chunk-RBOIGJYF.cjs → chunk-XOQ2UUVS.cjs} +4 -4
- package/dist/{chunk-32ENYVFA.cjs → chunk-YGKVHSNQ.cjs} +42 -42
- package/dist/{chunk-HY2KTQSL.cjs → chunk-ZWMPAFGB.cjs} +183 -183
- package/dist/{cloud-tenants-SC4FNAC2.cjs → cloud-tenants-ILRE74JY.cjs} +16 -16
- package/dist/components/agent-identity.d.ts +8 -0
- package/dist/components/agent-identity.d.ts.map +1 -1
- package/dist/components/agent-identity.js +13 -1
- package/dist/components/case-studies/index.cjs +29 -29
- package/dist/components/chat/index.cjs +11 -11
- package/dist/components/contact/index.cjs +17 -17
- package/dist/components/docs/index.cjs +20 -20
- package/dist/components/embeds/index.cjs +17 -17
- package/dist/components/faq/index.cjs +17 -17
- package/dist/components/features/index.cjs +16 -16
- package/dist/components/help-center-pages/index.cjs +127 -127
- package/dist/components/index.cjs +79 -72
- package/dist/components/meeting-scheduler/index.cjs +47 -47
- package/dist/components/navigation/index.cjs +19 -19
- package/dist/components/onboarding-guides/index.cjs +19 -19
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/product-demo/screens/remote-desktop-picture.d.ts.map +1 -1
- package/dist/components/product-demo/screens/remote-desktop-picture.js +2 -1
- package/dist/components/related-content/index.cjs +6 -6
- package/dist/components/tickets/index.cjs +20 -20
- package/dist/components/ui/device-wallpaper.d.ts +7 -0
- package/dist/components/ui/device-wallpaper.d.ts.map +1 -0
- package/dist/components/ui/device-wallpaper.js +5 -0
- package/dist/components/ui/feature-list.d.ts +9 -4
- package/dist/components/ui/feature-list.d.ts.map +1 -1
- package/dist/components/ui/feature-list.js +26 -35
- package/dist/components/ui/index.cjs +22 -16
- package/dist/components/ui/index.d.ts +3 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +3 -1
- package/dist/components/ui/notification-stack.d.ts +33 -0
- package/dist/components/ui/notification-stack.d.ts.map +1 -0
- package/dist/components/ui/notification-stack.js +78 -0
- package/dist/components/ui/numbered-step.d.ts +29 -0
- package/dist/components/ui/numbered-step.d.ts.map +1 -0
- package/dist/components/ui/numbered-step.js +57 -0
- package/dist/components/ui/phone-frame.d.ts +14 -9
- package/dist/components/ui/phone-frame.d.ts.map +1 -1
- package/dist/components/ui/phone-frame.js +50 -6
- package/dist/components/ui/phone-glyphs/lock-camera-glyph.d.ts +5 -0
- package/dist/components/ui/phone-glyphs/lock-camera-glyph.d.ts.map +1 -0
- package/dist/components/ui/phone-glyphs/lock-camera-glyph.js +14 -0
- package/dist/components/ui/phone-glyphs/lock-flashlight-glyph.d.ts +5 -0
- package/dist/components/ui/phone-glyphs/lock-flashlight-glyph.d.ts.map +1 -0
- package/dist/components/ui/phone-glyphs/lock-flashlight-glyph.js +14 -0
- package/dist/components/ui/phone-glyphs/status-bar-glyphs.d.ts +5 -0
- package/dist/components/ui/phone-glyphs/status-bar-glyphs.d.ts.map +1 -0
- package/dist/components/ui/phone-glyphs/status-bar-glyphs.js +68 -0
- package/dist/components/ui/snap-carousel.d.ts +5 -8
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +2 -27
- package/dist/components/ui/tab-navigation.d.ts +8 -1
- package/dist/components/ui/tab-navigation.d.ts.map +1 -1
- package/dist/components/ui/tab-navigation.js +30 -20
- package/dist/{devices-7MHSJNXS.cjs → devices-A6SFNGE4.cjs} +17 -17
- package/dist/{embeddable-chat-VPIG3F7E.cjs → embeddable-chat-BKPYNOIM.cjs} +80 -80
- package/dist/hooks/index.cjs +6 -6
- package/dist/hooks/ui/use-autoplay.d.ts +50 -13
- package/dist/hooks/ui/use-autoplay.d.ts.map +1 -1
- package/dist/hooks/ui/use-autoplay.js +76 -13
- package/dist/hooks/ui/use-in-view.d.ts +8 -0
- package/dist/hooks/ui/use-in-view.d.ts.map +1 -1
- package/dist/hooks/ui/use-in-view.js +21 -36
- package/dist/hooks/use-agent-identities.d.ts +6 -0
- package/dist/hooks/use-agent-identities.d.ts.map +1 -1
- package/dist/hooks/use-scenario-player.d.ts +26 -9
- package/dist/hooks/use-scenario-player.d.ts.map +1 -1
- package/dist/hooks/use-scenario-player.js +12 -9
- package/dist/index.cjs +51 -44
- package/dist/{knowledge-4DREGSOZ.cjs → knowledge-5ZCVKUYV.cjs} +17 -17
- package/dist/{logs-BWXNT2KP.cjs → logs-CL4OJASB.cjs} +24 -24
- package/dist/{policies-MGFUI23M.cjs → policies-7D44ZVS5.cjs} +20 -20
- package/dist/{remote-session-O6QGXV2N.cjs → remote-session-QB3CIZRM.cjs} +5 -4
- package/dist/{software-update-7LF7XEYC.cjs → software-update-AX6TZL26.cjs} +20 -20
- package/dist/{tickets-board-KNXK747O.cjs → tickets-board-7FAV2YWF.cjs} +10 -10
- package/package.json +1 -1
- package/src/components/agent-identity.tsx +20 -1
- package/src/components/product-demo/screens/remote-desktop-picture.tsx +2 -1
- package/src/components/ui/device-wallpaper.ts +7 -0
- package/src/components/ui/feature-list.tsx +24 -30
- package/src/components/ui/index.ts +3 -1
- package/src/components/ui/notification-stack.tsx +133 -0
- package/src/components/ui/numbered-step.tsx +81 -0
- package/src/components/ui/phone-frame.tsx +83 -19
- package/src/components/ui/phone-glyphs/lock-camera-glyph.tsx +14 -0
- package/src/components/ui/phone-glyphs/lock-flashlight-glyph.tsx +14 -0
- package/src/components/ui/phone-glyphs/status-bar-glyphs.tsx +45 -0
- package/src/components/ui/snap-carousel.tsx +6 -38
- package/src/components/ui/tab-navigation.tsx +49 -21
- package/src/hooks/ui/use-autoplay.ts +144 -27
- package/src/hooks/ui/use-in-view.ts +31 -38
- package/src/hooks/use-agent-identities.ts +6 -0
- package/src/hooks/use-scenario-player.ts +44 -20
- package/dist/chunk-2WXLQ5R5.cjs +0 -99
- package/dist/chunk-BE2WAMG5.cjs +0 -54
- package/dist/chunk-LCTDHLDL.cjs +0 -43
- package/dist/components/ui/playback-toggle.d.ts +0 -24
- package/dist/components/ui/playback-toggle.d.ts.map +0 -1
- package/dist/components/ui/playback-toggle.js +0 -32
- package/src/components/ui/playback-toggle.tsx +0 -53
|
@@ -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 _chunk6KDGIOLPcjs = require('./chunk-6KDGIOLP.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZWMPAFGBcjs = require('./chunk-ZWMPAFGB.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ var _chunkHY2KTQSLcjs = require('./chunk-HY2KTQSL.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkCC3LINHFcjs = require('./chunk-CC3LINHF.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -47,7 +47,7 @@ function HorizontalSectionNav({
|
|
|
47
47
|
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: [
|
|
48
48
|
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 }),
|
|
49
49
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
50
|
-
|
|
50
|
+
_chunkZWMPAFGBcjs.ScrollShadow,
|
|
51
51
|
{
|
|
52
52
|
axis: "horizontal",
|
|
53
53
|
className: "min-w-0 flex-1",
|
|
@@ -166,7 +166,7 @@ function useSectionNavigation(sections, options) {
|
|
|
166
166
|
if (!targetElement) return;
|
|
167
167
|
isScrollingFromClick.current = true;
|
|
168
168
|
setActiveSection(sectionId);
|
|
169
|
-
|
|
169
|
+
_chunkCC3LINHFcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset: offset });
|
|
170
170
|
setTimeout(() => {
|
|
171
171
|
isScrollingFromClick.current = false;
|
|
172
172
|
}, 500);
|
|
@@ -219,13 +219,13 @@ var SCROLL_OFFSET = 100;
|
|
|
219
219
|
var ID_SEPARATOR = "\n";
|
|
220
220
|
var LINE_TOLERANCE_PX = 1;
|
|
221
221
|
function currentHashId() {
|
|
222
|
-
return
|
|
222
|
+
return _chunkCC3LINHFcjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
223
223
|
}
|
|
224
224
|
function activeChildAnchor(section) {
|
|
225
|
-
return _nullishCoalesce(_optionalChain([section, 'access', _9 => _9.querySelector, 'call', _10 => _10(`[${
|
|
225
|
+
return _nullishCoalesce(_optionalChain([section, 'access', _9 => _9.querySelector, 'call', _10 => _10(`[${_chunkCC3LINHFcjs.ACTIVE_ANCHOR_ATTRIBUTE}][id]`), 'optionalAccess', _11 => _11.id]), () => ( null));
|
|
226
226
|
}
|
|
227
227
|
function hashIsWithin(section) {
|
|
228
|
-
return section.contains(
|
|
228
|
+
return section.contains(_chunkCC3LINHFcjs.getHashTargetElement.call(void 0, currentHashId()));
|
|
229
229
|
}
|
|
230
230
|
function hashForSection(sectionId) {
|
|
231
231
|
const section = document.getElementById(sectionId);
|
|
@@ -233,7 +233,7 @@ function hashForSection(sectionId) {
|
|
|
233
233
|
return _nullishCoalesce(activeChildAnchor(section), () => ( (hashIsWithin(section) ? currentHashId() : sectionId)));
|
|
234
234
|
}
|
|
235
235
|
function resolveScroller(firstSection) {
|
|
236
|
-
const container = firstSection ?
|
|
236
|
+
const container = firstSection ? _chunkCC3LINHFcjs.getScrollableAncestor.call(void 0, firstSection) : null;
|
|
237
237
|
if (container) {
|
|
238
238
|
return {
|
|
239
239
|
target: container,
|
|
@@ -263,8 +263,8 @@ function useScrollSpy(sections, options = {}) {
|
|
|
263
263
|
if (!targetElement) return;
|
|
264
264
|
isScrollingFromClick.current = true;
|
|
265
265
|
setActiveSection(sectionId);
|
|
266
|
-
if (syncHash)
|
|
267
|
-
|
|
266
|
+
if (syncHash) _chunkCC3LINHFcjs.replaceLocationHash.call(void 0, _nullishCoalesce(activeChildAnchor(targetElement), () => ( sectionId)));
|
|
267
|
+
_chunkCC3LINHFcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset });
|
|
268
268
|
setTimeout(() => {
|
|
269
269
|
isScrollingFromClick.current = false;
|
|
270
270
|
}, 800);
|
|
@@ -280,7 +280,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
280
280
|
const scrollTop = scroller.scrollTop();
|
|
281
281
|
const viewportTop = scroller.viewportTop();
|
|
282
282
|
const sectionTop = (element) => element.getBoundingClientRect().top - viewportTop + scrollTop;
|
|
283
|
-
const reached = (element) => scrollTop + Math.max(headerOffset,
|
|
283
|
+
const reached = (element) => scrollTop + Math.max(headerOffset, _chunkCC3LINHFcjs.declaredScrollMarginTop.call(void 0, element)) + LINE_TOLERANCE_PX >= sectionTop(element);
|
|
284
284
|
const first = document.getElementById(_nullishCoalesce(sectionIds[0], () => ( "")));
|
|
285
285
|
let currentSection = _nullishCoalesce(sectionIds[0], () => ( ""));
|
|
286
286
|
const scrollHeight = scroller.scrollHeight();
|
|
@@ -303,16 +303,16 @@ function useScrollSpy(sections, options = {}) {
|
|
|
303
303
|
setActiveSection((prev) => prev !== active ? active : prev);
|
|
304
304
|
if (!syncHash) return;
|
|
305
305
|
if (fromScroll) {
|
|
306
|
-
|
|
306
|
+
_chunkCC3LINHFcjs.replaceLocationHash.call(void 0, isAboveFirst ? null : hashForSection(currentSection));
|
|
307
307
|
return;
|
|
308
308
|
}
|
|
309
|
-
if (restoredChecked.current || !
|
|
310
|
-
const target =
|
|
309
|
+
if (restoredChecked.current || !_chunkCC3LINHFcjs.isScrollSyncedHash.call(void 0, )) return;
|
|
310
|
+
const target = _chunkCC3LINHFcjs.getHashTargetElement.call(void 0, currentHashId());
|
|
311
311
|
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)));
|
|
312
312
|
if (!target || !tracked) return;
|
|
313
313
|
restoredChecked.current = true;
|
|
314
314
|
const section = isAboveFirst ? null : document.getElementById(currentSection);
|
|
315
|
-
if (!_optionalChain([section, 'optionalAccess', _20 => _20.contains, 'call', _21 => _21(target)]))
|
|
315
|
+
if (!_optionalChain([section, 'optionalAccess', _20 => _20.contains, 'call', _21 => _21(target)])) _chunkCC3LINHFcjs.scrollElementIntoView.call(void 0, target, { headerOffset, behavior: "instant" });
|
|
316
316
|
};
|
|
317
317
|
let scrollTimer;
|
|
318
318
|
const throttledScroll = () => {
|
|
@@ -332,7 +332,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
332
332
|
// src/components/navigation/multi-level-navigation.tsx
|
|
333
333
|
var _lucidereact = require('lucide-react');
|
|
334
334
|
|
|
335
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
335
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunk6KDGIOLPcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
336
336
|
function isNodeVisuallySelected(node, selectedPath, folderIndexFile = DEFAULT_FOLDER_INDEX_FILE2) {
|
|
337
337
|
const FOLDER_INDEX_FILE = folderIndexFile.toLowerCase();
|
|
338
338
|
if (selectedPath === node.path) {
|
|
@@ -3,45 +3,43 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMVZ6XFPKcjs = require('./chunk-MVZ6XFPK.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkN466AJGNcjs = require('./chunk-N466AJGN.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk6HHUU56Ycjs = require('./chunk-6HHUU56Y.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk22ZK7BA3cjs = require('./chunk-22ZK7BA3.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkG37LT2IDcjs = require('./chunk-G37LT2ID.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk6KDGIOLPcjs = require('./chunk-6KDGIOLP.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var _chunk2WXLQ5R5cjs = require('./chunk-2WXLQ5R5.cjs');
|
|
35
|
+
var _chunkCC3LINHFcjs = require('./chunk-CC3LINHF.cjs');
|
|
39
36
|
|
|
40
37
|
|
|
41
38
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
42
39
|
|
|
43
40
|
|
|
44
|
-
|
|
41
|
+
|
|
42
|
+
var _chunkPX7FY655cjs = require('./chunk-PX7FY655.cjs');
|
|
45
43
|
|
|
46
44
|
|
|
47
45
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -212,7 +210,7 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
|
|
|
212
210
|
return _react.useCallback.call(void 0,
|
|
213
211
|
async (href, currentPath) => {
|
|
214
212
|
try {
|
|
215
|
-
const response = await
|
|
213
|
+
const response = await _chunkPX7FY655cjs.contentFetch.call(void 0, resolvedResolveLinkEndpoint, {
|
|
216
214
|
method: "POST",
|
|
217
215
|
headers: { "Content-Type": "application/json" },
|
|
218
216
|
body: JSON.stringify({ link: href, currentPath, source: sourceId })
|
|
@@ -238,9 +236,9 @@ function useDocsResolveLink(sourceId, resolveLinkEndpoint) {
|
|
|
238
236
|
function scrollToContent() {
|
|
239
237
|
const article = document.querySelector("article");
|
|
240
238
|
if (article) {
|
|
241
|
-
|
|
239
|
+
_chunkCC3LINHFcjs.scrollElementIntoView.call(void 0, article, { headerOffset: _chunkCC3LINHFcjs.HUB_HEADER_OFFSET_PX });
|
|
242
240
|
} else {
|
|
243
|
-
|
|
241
|
+
_chunkCC3LINHFcjs.scrollElementIntoView.call(void 0, document.documentElement);
|
|
244
242
|
}
|
|
245
243
|
}
|
|
246
244
|
function findFirstDocPath(folder) {
|
|
@@ -339,8 +337,8 @@ function toDocContent(value, requestedPath) {
|
|
|
339
337
|
}
|
|
340
338
|
function useDocumentTree(config, initialPath) {
|
|
341
339
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
342
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
343
|
-
const cleanInitialPath =
|
|
340
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunk6KDGIOLPcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
341
|
+
const cleanInitialPath = _chunk6KDGIOLPcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
344
342
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
345
343
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
346
344
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -364,12 +362,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
364
362
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
365
363
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
366
364
|
}
|
|
367
|
-
pathFromUrl =
|
|
365
|
+
pathFromUrl = _chunk6KDGIOLPcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
368
366
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
369
367
|
setSelectedPath(pathFromUrl);
|
|
370
368
|
if (pathFromUrl) {
|
|
371
369
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
372
|
-
setExpandedNodes(new Set(
|
|
370
|
+
setExpandedNodes(new Set(_chunk6KDGIOLPcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
373
371
|
}
|
|
374
372
|
setTimeout(() => {
|
|
375
373
|
scrollToContent();
|
|
@@ -387,7 +385,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
387
385
|
setSelectedPath(cleanInitialPath);
|
|
388
386
|
if (cleanInitialPath) {
|
|
389
387
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
390
|
-
setExpandedNodes(new Set(
|
|
388
|
+
setExpandedNodes(new Set(_chunk6KDGIOLPcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
391
389
|
}
|
|
392
390
|
setExternalNavCount((n) => n + 1);
|
|
393
391
|
}
|
|
@@ -401,7 +399,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
401
399
|
try {
|
|
402
400
|
setIsLoadingStructure(true);
|
|
403
401
|
setError(null);
|
|
404
|
-
const response = await
|
|
402
|
+
const response = await _chunkPX7FY655cjs.contentFetch.call(void 0, structureEndpoint);
|
|
405
403
|
if (!response.ok) {
|
|
406
404
|
throw new Error("Failed to load documentation structure");
|
|
407
405
|
}
|
|
@@ -412,7 +410,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
412
410
|
if (cleanInitialPath) {
|
|
413
411
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
414
412
|
if (pathForExpansion) {
|
|
415
|
-
setExpandedNodes(new Set(
|
|
413
|
+
setExpandedNodes(new Set(_chunk6KDGIOLPcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
416
414
|
}
|
|
417
415
|
} else if (nodes.length > 0) {
|
|
418
416
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -428,7 +426,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
428
426
|
}
|
|
429
427
|
}
|
|
430
428
|
} else {
|
|
431
|
-
setError(
|
|
429
|
+
setError(_chunkPX7FY655cjs.apiErrorMessage.call(void 0, payload, "Failed to load documentation structure"));
|
|
432
430
|
}
|
|
433
431
|
} catch (err) {
|
|
434
432
|
console.error("Error fetching documentation structure:", err);
|
|
@@ -440,7 +438,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
440
438
|
const fetchContent = async (path) => {
|
|
441
439
|
try {
|
|
442
440
|
setIsLoadingContent(true);
|
|
443
|
-
const response = await
|
|
441
|
+
const response = await _chunkPX7FY655cjs.contentFetch.call(void 0, `${contentEndpoint}?path=${encodeURIComponent(path)}`);
|
|
444
442
|
if (path !== lastFetchedPath.current) return;
|
|
445
443
|
if (!response.ok) {
|
|
446
444
|
if (response.status === 404) {
|
|
@@ -452,7 +450,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
452
450
|
setContent(null);
|
|
453
451
|
return;
|
|
454
452
|
}
|
|
455
|
-
const probe =
|
|
453
|
+
const probe = _chunk6KDGIOLPcjs.findDocNodeByPath.call(void 0, _chunk6KDGIOLPcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
456
454
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
457
455
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
458
456
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -461,7 +459,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
461
459
|
setContent(null);
|
|
462
460
|
return;
|
|
463
461
|
}
|
|
464
|
-
setError(
|
|
462
|
+
setError(_chunkPX7FY655cjs.apiErrorMessage.call(void 0, errorPayload, "Documentation file not found"));
|
|
465
463
|
setContent(null);
|
|
466
464
|
return;
|
|
467
465
|
}
|
|
@@ -479,7 +477,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
479
477
|
}
|
|
480
478
|
setContent(doc);
|
|
481
479
|
} else {
|
|
482
|
-
setError(
|
|
480
|
+
setError(_chunkPX7FY655cjs.apiErrorMessage.call(void 0, payload, "Failed to load content"));
|
|
483
481
|
setContent(null);
|
|
484
482
|
}
|
|
485
483
|
} catch (err) {
|
|
@@ -509,7 +507,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
509
507
|
if (selectedPath === "") {
|
|
510
508
|
pathToFetch = folderIndexFile;
|
|
511
509
|
} else {
|
|
512
|
-
const node =
|
|
510
|
+
const node = _chunk6KDGIOLPcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
513
511
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
514
512
|
const firstDocPath = findFirstDocPath(node);
|
|
515
513
|
if (!firstDocPath) {
|
|
@@ -550,16 +548,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
550
548
|
if (node.type === "folder") {
|
|
551
549
|
setExpandedNodes((prev) => {
|
|
552
550
|
if (prev.has(node.id)) {
|
|
553
|
-
const ancestorIds =
|
|
551
|
+
const ancestorIds = _chunk6KDGIOLPcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
554
552
|
ancestorIds.pop();
|
|
555
553
|
return new Set(ancestorIds);
|
|
556
554
|
}
|
|
557
|
-
return new Set(
|
|
555
|
+
return new Set(_chunk6KDGIOLPcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
558
556
|
});
|
|
559
557
|
} else {
|
|
560
558
|
const lastSlash = node.path.lastIndexOf("/");
|
|
561
559
|
if (lastSlash > 0) {
|
|
562
|
-
setExpandedNodes(new Set(
|
|
560
|
+
setExpandedNodes(new Set(_chunk6KDGIOLPcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
563
561
|
}
|
|
564
562
|
}
|
|
565
563
|
lastFetchedPath.current = null;
|
|
@@ -574,9 +572,9 @@ function useDocumentTree(config, initialPath) {
|
|
|
574
572
|
const hashIndex = path.indexOf("#");
|
|
575
573
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
576
574
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
577
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
575
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunk6KDGIOLPcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
578
576
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
579
|
-
|
|
577
|
+
_chunkCC3LINHFcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkCC3LINHFcjs.HUB_HEADER_OFFSET_PX });
|
|
580
578
|
return;
|
|
581
579
|
}
|
|
582
580
|
const scrollAfterNav = () => {
|
|
@@ -584,7 +582,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
584
582
|
setTimeout(() => {
|
|
585
583
|
const el = document.getElementById(anchor.substring(1));
|
|
586
584
|
if (el) {
|
|
587
|
-
|
|
585
|
+
_chunkCC3LINHFcjs.scrollElementIntoView.call(void 0, el, { headerOffset: _chunkCC3LINHFcjs.HUB_HEADER_OFFSET_PX });
|
|
588
586
|
} else {
|
|
589
587
|
scrollToContent();
|
|
590
588
|
}
|
|
@@ -638,15 +636,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
638
636
|
return docNavigation.register({
|
|
639
637
|
baseRoute: normalizedBaseRoute,
|
|
640
638
|
findNodeByPath: (path) => {
|
|
641
|
-
const clean =
|
|
642
|
-
return _nullishCoalesce(
|
|
639
|
+
const clean = _chunk6KDGIOLPcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
640
|
+
return _nullishCoalesce(_chunk6KDGIOLPcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
643
641
|
},
|
|
644
642
|
selectNode
|
|
645
643
|
});
|
|
646
644
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
647
645
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
648
646
|
if (!selectedPath || structure.length === 0) return false;
|
|
649
|
-
const node =
|
|
647
|
+
const node = _chunk6KDGIOLPcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
650
648
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
651
649
|
}, [selectedPath, structure]);
|
|
652
650
|
return {
|
|
@@ -726,14 +724,14 @@ function DocViewerContent({
|
|
|
726
724
|
},
|
|
727
725
|
docPath
|
|
728
726
|
);
|
|
729
|
-
const { activeSection, handleSectionClick } =
|
|
727
|
+
const { activeSection, handleSectionClick } = _chunkN466AJGNcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
730
728
|
const docNav = useDocNavigation();
|
|
731
729
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
732
730
|
const backCfg = backButton === false ? null : {
|
|
733
731
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
734
732
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
735
733
|
};
|
|
736
|
-
const docSearch =
|
|
734
|
+
const docSearch = _chunk6HHUU56Ycjs.useDocSearch.call(void 0, {
|
|
737
735
|
source: chatSource,
|
|
738
736
|
baseRoute,
|
|
739
737
|
searchEndpoint,
|
|
@@ -757,7 +755,7 @@ function DocViewerContent({
|
|
|
757
755
|
onResolveLink: resolveLink
|
|
758
756
|
});
|
|
759
757
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
760
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
758
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunk6KDGIOLPcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
761
759
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
762
760
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
763
761
|
const showStickyNav = isMarkdownContent;
|
|
@@ -768,9 +766,9 @@ function DocViewerContent({
|
|
|
768
766
|
const containerBgStyle = colorPalette.containerBackground !== "transparent" ? { backgroundColor: colorPalette.containerBackground } : {};
|
|
769
767
|
const defaultEmptyText = structure.length > 0 ? "Select a document from the sidebar to view" : "No documents yet. Add content from the admin panel.";
|
|
770
768
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
771
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
769
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkG37LT2IDcjs.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: [
|
|
772
770
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
773
|
-
|
|
771
|
+
_chunk6HHUU56Ycjs.DocSearchBar,
|
|
774
772
|
{
|
|
775
773
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
776
774
|
query: docSearch.query,
|
|
@@ -789,9 +787,9 @@ function DocViewerContent({
|
|
|
789
787
|
] })
|
|
790
788
|
] }) }),
|
|
791
789
|
!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: [
|
|
792
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
790
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22ZK7BA3cjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
793
791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
794
|
-
|
|
792
|
+
_chunkN466AJGNcjs.MobileNavigationDropdown,
|
|
795
793
|
{
|
|
796
794
|
nodes: structure,
|
|
797
795
|
selectedPath,
|
|
@@ -805,7 +803,7 @@ function DocViewerContent({
|
|
|
805
803
|
/* @__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: [
|
|
806
804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
807
805
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
808
|
-
|
|
806
|
+
_chunkN466AJGNcjs.MultiLevelNavigation,
|
|
809
807
|
{
|
|
810
808
|
nodes: structure,
|
|
811
809
|
selectedPath,
|
|
@@ -844,7 +842,7 @@ function DocViewerContent({
|
|
|
844
842
|
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: [
|
|
845
843
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
846
844
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
847
|
-
|
|
845
|
+
_chunkN466AJGNcjs.StickySectionNav,
|
|
848
846
|
{
|
|
849
847
|
sections: stickyNavSections,
|
|
850
848
|
activeSection,
|
|
@@ -859,7 +857,7 @@ function DocViewerContent({
|
|
|
859
857
|
) })
|
|
860
858
|
] })
|
|
861
859
|
] }) }) });
|
|
862
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22ZK7BA3cjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
863
861
|
}
|
|
864
862
|
|
|
865
863
|
// src/components/docs/skeletons.tsx
|
|
@@ -955,11 +953,11 @@ function EmbedSkeleton({ documentType } = {}) {
|
|
|
955
953
|
|
|
956
954
|
var DEFAULT_TITLE = "Documents";
|
|
957
955
|
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" }) });
|
|
958
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
959
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
960
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
956
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVZ6XFPKcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
957
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMVZ6XFPKcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
958
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk22ZK7BA3cjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
961
959
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
-
|
|
960
|
+
_chunkMVZ6XFPKcjs.FileDownloadCard,
|
|
963
961
|
{
|
|
964
962
|
fileName: content.fileName,
|
|
965
963
|
mimeType: content.mimeType,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk6KDGIOLPcjs = require('./chunk-6KDGIOLP.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZWMPAFGBcjs = require('./chunk-ZWMPAFGB.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkVOX4E6AXcjs = require('./chunk-VOX4E6AX.cjs');
|
|
@@ -44,7 +44,7 @@ function isSummaryData(value) {
|
|
|
44
44
|
}
|
|
45
45
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
46
46
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
47
|
-
const identity =
|
|
47
|
+
const identity = _chunkZWMPAFGBcjs.useChatIdentity.call(void 0, enabled);
|
|
48
48
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
49
49
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
50
50
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
160
160
|
_react2.default.useEffect(() => {
|
|
161
161
|
if (!streamEnabled) return void 0;
|
|
162
162
|
if (typeof window === "undefined") return void 0;
|
|
163
|
-
subscriptionRef.current =
|
|
163
|
+
subscriptionRef.current = _chunk6KDGIOLPcjs.createSseSubscription.call(void 0, {
|
|
164
164
|
url: streamUrl,
|
|
165
165
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
166
166
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|