@flamingo-stack/openframe-frontend-core 0.0.841 → 0.0.843
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/{case-study-card-TK7ZCNLM.cjs → case-study-card-VN3JBNF5.cjs} +3 -3
- package/dist/{chunk-RSJYTQEA.cjs → chunk-23DVVS4I.cjs} +104 -104
- package/dist/{chunk-IELPVUPR.cjs → chunk-2H5D2PUC.cjs} +23 -23
- package/dist/{chunk-275AQ6LC.cjs → chunk-2JZFXGHE.cjs} +4 -4
- package/dist/{chunk-DYDQLS2R.cjs → chunk-2WGA2IRN.cjs} +370 -298
- package/dist/{chunk-VBH2RCFM.cjs → chunk-3IXW2EKO.cjs} +78 -78
- package/dist/{chunk-DGY5KEPY.cjs → chunk-4ASUUB3A.cjs} +83 -83
- package/dist/{chunk-WCOSGDGA.cjs → chunk-4R4HAFXI.cjs} +2 -2
- package/dist/{chunk-INBFKUZA.cjs → chunk-5CPEMPNP.cjs} +15 -15
- package/dist/{chunk-CCRXBFNL.cjs → chunk-6HFTSVVC.cjs} +8 -8
- package/dist/{chunk-FHI4I3TQ.cjs → chunk-6M764K5Z.cjs} +12 -12
- package/dist/{chunk-SOCCHWDK.cjs → chunk-BHOVF4KP.cjs} +2 -2
- package/dist/{chunk-WVNUCKB7.cjs → chunk-CNMXP77I.cjs} +4 -4
- package/dist/{chunk-HXTZZE3R.cjs → chunk-DUB2UVYS.cjs} +61 -72
- package/dist/{chunk-TD4CC4KV.cjs → chunk-EUEPGHY4.cjs} +6 -6
- package/dist/{chunk-Q6WUHYOG.cjs → chunk-HLMA6CDT.cjs} +85 -85
- package/dist/{chunk-ZAO5SYBJ.cjs → chunk-MWQOM2EI.cjs} +4 -4
- package/dist/{chunk-WI7EXAZT.cjs → chunk-NMLNZCK2.cjs} +2 -2
- package/dist/{chunk-GUKFMMDZ.cjs → chunk-OGINOWMT.cjs} +3 -3
- package/dist/{chunk-APNONOHY.cjs → chunk-PZNWIJRZ.cjs} +13 -10
- package/dist/{chunk-GMK4JGC2.cjs → chunk-QBZ73IK7.cjs} +44 -44
- package/dist/{chunk-Z35PL3UR.cjs → chunk-QJRZVIQP.cjs} +34 -34
- package/dist/{chunk-SMZWXY4X.cjs → chunk-QKZQ5Q6E.cjs} +6 -1
- package/dist/{chunk-MYAPG3FQ.cjs → chunk-QPJUQ5YU.cjs} +21 -21
- package/dist/{chunk-JUEAZCD6.cjs → chunk-RSZZTB5T.cjs} +54 -54
- package/dist/{chunk-7WKRMJI6.cjs → chunk-SC36S7DJ.cjs} +2 -2
- package/dist/{chunk-AT6D7BAZ.cjs → chunk-SOQVKIWM.cjs} +3 -3
- package/dist/{chunk-UZPYYHF5.cjs → chunk-SOTTMZ6U.cjs} +19 -19
- package/dist/{chunk-E7M54JWW.cjs → chunk-SSSI2RBV.cjs} +14 -14
- package/dist/{chunk-EV6BPF47.cjs → chunk-WPMJUYW3.cjs} +143 -143
- package/dist/{chunk-FRL2ZN4O.cjs → chunk-XCVH5BCZ.cjs} +6 -6
- package/dist/{chunk-JM2XA7VY.cjs → chunk-ZXEWBJUE.cjs} +15 -15
- package/dist/{cloud-tenants-PV63RZ73.cjs → cloud-tenants-VPYROTKH.cjs} +11 -11
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/index.cjs +8 -8
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/devices/device-unread-indicator.d.ts +6 -0
- package/dist/components/features/devices/device-unread-indicator.d.ts.map +1 -0
- package/dist/components/features/devices/device-unread-indicator.js +12 -0
- package/dist/components/features/devices/devices-grid.d.ts.map +1 -1
- package/dist/components/features/devices/devices-grid.js +5 -1
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +3 -1
- package/dist/components/features/devices/devices-view-config.d.ts +6 -4
- package/dist/components/features/devices/devices-view-config.d.ts.map +1 -1
- package/dist/components/features/devices/index.d.ts +1 -0
- package/dist/components/features/devices/index.d.ts.map +1 -1
- package/dist/components/features/devices/index.js +2 -0
- package/dist/components/features/devices/types.d.ts +2 -0
- package/dist/components/features/devices/types.d.ts.map +1 -1
- package/dist/components/features/index.cjs +13 -11
- package/dist/components/help-center-pages/index.cjs +105 -105
- package/dist/components/index.cjs +73 -65
- package/dist/components/meeting-scheduler/index.cjs +50 -50
- package/dist/components/navigation/count-pill.d.ts +10 -0
- package/dist/components/navigation/count-pill.d.ts.map +1 -0
- package/dist/components/navigation/count-pill.js +18 -0
- package/dist/components/navigation/index.cjs +20 -14
- package/dist/components/navigation/index.d.ts +4 -0
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +5 -0
- package/dist/components/navigation/navigation-sidebar-grouped.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-grouped.js +1 -12
- package/dist/components/navigation/unread-notifications-indicator.d.ts +19 -0
- package/dist/components/navigation/unread-notifications-indicator.d.ts.map +1 -0
- package/dist/components/navigation/unread-notifications-indicator.js +45 -0
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -1
- package/dist/components/product-demo/fixtures/devices.js +6 -1
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +18 -18
- package/dist/components/ui/index.cjs +11 -11
- package/dist/{devices-VECG5JNC.cjs → devices-W76BAABE.cjs} +14 -14
- package/dist/{embeddable-chat-VRYAQQF6.cjs → embeddable-chat-C6DUH2JL.cjs} +78 -78
- package/dist/hooks/index.cjs +4 -4
- package/dist/index.cjs +23 -15
- package/dist/{knowledge-YJSDJIXT.cjs → knowledge-ILAIWOSY.cjs} +12 -12
- package/dist/{logs-42JG3NZ5.cjs → logs-VCPRFJGB.cjs} +18 -18
- package/dist/platform-domains.cjs +14 -10
- package/dist/platform-domains.d.ts +12 -7
- package/dist/platform-domains.d.ts.map +1 -1
- package/dist/platform-domains.js +14 -10
- package/dist/{policies-D4QNVJ26.cjs → policies-3BNAW4M5.cjs} +15 -15
- package/dist/{scripts-4VFYBXBE.cjs → scripts-VFFSJDYV.cjs} +16 -16
- package/dist/{software-update-OSDZQ5CP.cjs → software-update-VTBTLCZO.cjs} +16 -16
- package/dist/utils/index.cjs +13 -10
- package/package.json +1 -1
- package/src/components/features/devices/device-unread-indicator.tsx +14 -0
- package/src/components/features/devices/devices-grid.tsx +9 -1
- package/src/components/features/devices/devices-table-columns.tsx +3 -0
- package/src/components/features/devices/devices-view-config.tsx +6 -4
- package/src/components/features/devices/index.ts +1 -0
- package/src/components/features/devices/types.ts +2 -0
- package/src/components/navigation/count-pill.tsx +25 -0
- package/src/components/navigation/index.ts +4 -0
- package/src/components/navigation/navigation-sidebar-grouped.tsx +1 -14
- package/src/components/navigation/unread-notifications-indicator.tsx +69 -0
- package/src/components/product-demo/fixtures/devices.ts +7 -0
- package/src/platform-domains.ts +28 -20
|
@@ -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 _chunk4ASUUB3Acjs = require('./chunk-4ASUUB3A.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkJ2IXYCEHcjs = require('./chunk-J2IXYCEH.cjs');
|
|
@@ -14,7 +14,7 @@ var _chunkJ2IXYCEHcjs = require('./chunk-J2IXYCEH.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkXCVH5BCZcjs = require('./chunk-XCVH5BCZ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -230,7 +230,7 @@ function useSectionNavigation(sections, options) {
|
|
|
230
230
|
if (!targetElement) return;
|
|
231
231
|
isScrollingFromClick.current = true;
|
|
232
232
|
setActiveSection(sectionId);
|
|
233
|
-
|
|
233
|
+
_chunkXCVH5BCZcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset: offset });
|
|
234
234
|
setTimeout(() => {
|
|
235
235
|
isScrollingFromClick.current = false;
|
|
236
236
|
}, 500);
|
|
@@ -283,13 +283,13 @@ var SCROLL_OFFSET = 100;
|
|
|
283
283
|
var ID_SEPARATOR = "\n";
|
|
284
284
|
var LINE_TOLERANCE_PX = 1;
|
|
285
285
|
function currentHashId() {
|
|
286
|
-
return
|
|
286
|
+
return _chunkXCVH5BCZcjs.normalizeHashFragment.call(void 0, window.location.hash).slice(1);
|
|
287
287
|
}
|
|
288
288
|
function activeChildAnchor(section) {
|
|
289
|
-
return _nullishCoalesce(_optionalChain([section, 'access', _10 => _10.querySelector, 'call', _11 => _11(`[${
|
|
289
|
+
return _nullishCoalesce(_optionalChain([section, 'access', _10 => _10.querySelector, 'call', _11 => _11(`[${_chunkXCVH5BCZcjs.ACTIVE_ANCHOR_ATTRIBUTE}][id]`), 'optionalAccess', _12 => _12.id]), () => ( null));
|
|
290
290
|
}
|
|
291
291
|
function hashIsWithin(section) {
|
|
292
|
-
return section.contains(
|
|
292
|
+
return section.contains(_chunkXCVH5BCZcjs.getHashTargetElement.call(void 0, currentHashId()));
|
|
293
293
|
}
|
|
294
294
|
function hashForSection(sectionId) {
|
|
295
295
|
const section = document.getElementById(sectionId);
|
|
@@ -297,7 +297,7 @@ function hashForSection(sectionId) {
|
|
|
297
297
|
return _nullishCoalesce(activeChildAnchor(section), () => ( (hashIsWithin(section) ? currentHashId() : sectionId)));
|
|
298
298
|
}
|
|
299
299
|
function resolveScroller(firstSection) {
|
|
300
|
-
const container = firstSection ?
|
|
300
|
+
const container = firstSection ? _chunkXCVH5BCZcjs.getScrollableAncestor.call(void 0, firstSection) : null;
|
|
301
301
|
if (container) {
|
|
302
302
|
return {
|
|
303
303
|
target: container,
|
|
@@ -327,8 +327,8 @@ function useScrollSpy(sections, options = {}) {
|
|
|
327
327
|
if (!targetElement) return;
|
|
328
328
|
isScrollingFromClick.current = true;
|
|
329
329
|
setActiveSection(sectionId);
|
|
330
|
-
if (syncHash)
|
|
331
|
-
|
|
330
|
+
if (syncHash) _chunkXCVH5BCZcjs.replaceLocationHash.call(void 0, _nullishCoalesce(activeChildAnchor(targetElement), () => ( sectionId)));
|
|
331
|
+
_chunkXCVH5BCZcjs.scrollElementIntoView.call(void 0, targetElement, { headerOffset });
|
|
332
332
|
setTimeout(() => {
|
|
333
333
|
isScrollingFromClick.current = false;
|
|
334
334
|
}, 800);
|
|
@@ -344,7 +344,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
344
344
|
const scrollTop = scroller.scrollTop();
|
|
345
345
|
const viewportTop = scroller.viewportTop();
|
|
346
346
|
const sectionTop = (element) => element.getBoundingClientRect().top - viewportTop + scrollTop;
|
|
347
|
-
const reached = (element) => scrollTop + Math.max(headerOffset,
|
|
347
|
+
const reached = (element) => scrollTop + Math.max(headerOffset, _chunkXCVH5BCZcjs.declaredScrollMarginTop.call(void 0, element)) + LINE_TOLERANCE_PX >= sectionTop(element);
|
|
348
348
|
const first = document.getElementById(_nullishCoalesce(sectionIds[0], () => ( "")));
|
|
349
349
|
let currentSection = _nullishCoalesce(sectionIds[0], () => ( ""));
|
|
350
350
|
const scrollHeight = scroller.scrollHeight();
|
|
@@ -367,16 +367,16 @@ function useScrollSpy(sections, options = {}) {
|
|
|
367
367
|
setActiveSection((prev) => prev !== active ? active : prev);
|
|
368
368
|
if (!syncHash) return;
|
|
369
369
|
if (fromScroll) {
|
|
370
|
-
|
|
370
|
+
_chunkXCVH5BCZcjs.replaceLocationHash.call(void 0, isAboveFirst ? null : hashForSection(currentSection));
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
|
-
if (restoredChecked.current || !
|
|
374
|
-
const target =
|
|
373
|
+
if (restoredChecked.current || !_chunkXCVH5BCZcjs.isScrollSyncedHash.call(void 0, )) return;
|
|
374
|
+
const target = _chunkXCVH5BCZcjs.getHashTargetElement.call(void 0, currentHashId());
|
|
375
375
|
const tracked = sectionIds.some((id) => _nullishCoalesce(_optionalChain([document, 'access', _17 => _17.getElementById, 'call', _18 => _18(id), 'optionalAccess', _19 => _19.contains, 'call', _20 => _20(target)]), () => ( false)));
|
|
376
376
|
if (!target || !tracked) return;
|
|
377
377
|
restoredChecked.current = true;
|
|
378
378
|
const section = isAboveFirst ? null : document.getElementById(currentSection);
|
|
379
|
-
if (!_optionalChain([section, 'optionalAccess', _21 => _21.contains, 'call', _22 => _22(target)]))
|
|
379
|
+
if (!_optionalChain([section, 'optionalAccess', _21 => _21.contains, 'call', _22 => _22(target)])) _chunkXCVH5BCZcjs.scrollElementIntoView.call(void 0, target, { headerOffset, behavior: "instant" });
|
|
380
380
|
};
|
|
381
381
|
let scrollTimer;
|
|
382
382
|
const throttledScroll = () => {
|
|
@@ -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 = _chunk4ASUUB3Acjs.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";
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk23DVVS4Icjs = require('./chunk-23DVVS4I.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkNFNSPLGCcjs = require('./chunk-NFNSPLGC.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkEUEPGHY4cjs = require('./chunk-EUEPGHY4.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
@@ -56,7 +56,7 @@ function pickBadgePaletteColor({
|
|
|
56
56
|
var _jsxruntime = require('react/jsx-runtime');
|
|
57
57
|
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
58
58
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
59
|
-
|
|
59
|
+
_chunkEUEPGHY4cjs.StatusBadge,
|
|
60
60
|
{
|
|
61
61
|
text,
|
|
62
62
|
colorScheme: isBadgePaletteKey(color) ? color : "default",
|
|
@@ -145,12 +145,12 @@ var STATUS_BADGE_SCHEME = {
|
|
|
145
145
|
abandoned: "default"
|
|
146
146
|
};
|
|
147
147
|
function EmployeeEntryBadge({ children }) {
|
|
148
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
148
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
149
149
|
}
|
|
150
150
|
function EmployeeEntryCard(props) {
|
|
151
151
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || props.loading) {
|
|
152
152
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
153
|
-
|
|
153
|
+
_chunk23DVVS4Icjs.AdminContentCard,
|
|
154
154
|
{
|
|
155
155
|
loading: true,
|
|
156
156
|
title: "",
|
|
@@ -172,9 +172,9 @@ function LoadedEmployeeEntryCard({
|
|
|
172
172
|
anchorProps,
|
|
173
173
|
className
|
|
174
174
|
}) {
|
|
175
|
-
const authorAvatar =
|
|
175
|
+
const authorAvatar = _chunk23DVVS4Icjs.useProxiedImageUrl.call(void 0, _optionalChain([entry, 'access', _7 => _7.author, 'optionalAccess', _8 => _8.avatar_url]), { directHttps: false });
|
|
176
176
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
177
|
-
|
|
177
|
+
_chunk23DVVS4Icjs.AdminContentCard,
|
|
178
178
|
{
|
|
179
179
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
180
180
|
placeholderUrl,
|
|
@@ -182,7 +182,7 @@ function LoadedEmployeeEntryCard({
|
|
|
182
182
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
183
183
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
184
184
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
185
|
-
|
|
185
|
+
_chunkEUEPGHY4cjs.StatusBadge,
|
|
186
186
|
{
|
|
187
187
|
text: entry.status,
|
|
188
188
|
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkWPMJUYW3cjs = require('./chunk-WPMJUYW3.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkXCVH5BCZcjs = require('./chunk-XCVH5BCZ.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkPZNWIJRZcjs = require('./chunk-PZNWIJRZ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
@@ -35,7 +35,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
35
35
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
36
36
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
37
37
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
38
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
38
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkWPMJUYW3cjs.resolveSourceIcon.call(void 0, {
|
|
39
39
|
sourceRepo,
|
|
40
40
|
documentType: docType
|
|
41
41
|
});
|
|
@@ -65,7 +65,7 @@ function DocSearchBar({
|
|
|
65
65
|
renderResult
|
|
66
66
|
}) {
|
|
67
67
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
68
|
-
|
|
68
|
+
_chunkWPMJUYW3cjs.SearchInput,
|
|
69
69
|
{
|
|
70
70
|
placeholder,
|
|
71
71
|
value: query,
|
|
@@ -115,7 +115,7 @@ function mapDocSearchResults(docs) {
|
|
|
115
115
|
results.push({
|
|
116
116
|
id: `group-${entry.repo}`,
|
|
117
117
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
118
|
-
title: `${
|
|
118
|
+
title: `${_chunkWPMJUYW3cjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkWPMJUYW3cjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
119
119
|
path: rows[0].path,
|
|
120
120
|
type: "file",
|
|
121
121
|
metadata: {
|
|
@@ -171,9 +171,9 @@ function resolveSearchResultAction(result, source, runtime, composeContentUrl) {
|
|
|
171
171
|
externalUrl,
|
|
172
172
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null))
|
|
173
173
|
}) : null;
|
|
174
|
-
const hostRoute = !!_optionalChain([composed, 'optionalAccess', _10 => _10.href]) &&
|
|
174
|
+
const hostRoute = !!_optionalChain([composed, 'optionalAccess', _10 => _10.href]) && _chunkPZNWIJRZcjs.isRelativeHref.call(void 0, composed.href);
|
|
175
175
|
const actionPlatform = composed ? composed.targetPlatform : _nullishCoalesce(targetPlatform, () => ( null));
|
|
176
|
-
const target =
|
|
176
|
+
const target = _chunkPZNWIJRZcjs.navLinkTarget.call(void 0, runtime, _optionalChain([composed, 'optionalAccess', _11 => _11.href]) || externalUrl, actionPlatform, { hostRoute });
|
|
177
177
|
const kind = target.isNewTab ? "navigate-new-tab" : "navigate-same-tab";
|
|
178
178
|
return hostRoute ? { kind, href: target.href, targetPlatform: actionPlatform, hostRoute } : { kind, href: target.href, targetPlatform: actionPlatform };
|
|
179
179
|
}
|
|
@@ -239,7 +239,7 @@ function useDocSearch(config) {
|
|
|
239
239
|
const [query, setQuery] = _react.useState.call(void 0, "");
|
|
240
240
|
const [results, setResults] = _react.useState.call(void 0, NO_RESULTS);
|
|
241
241
|
const [isFetching, setIsFetching] = _react.useState.call(void 0, false);
|
|
242
|
-
const debouncedQuery =
|
|
242
|
+
const debouncedQuery = _chunkXCVH5BCZcjs.useDebounce.call(void 0, query, 300);
|
|
243
243
|
const searchable = debouncedQuery.trim().length >= 2;
|
|
244
244
|
const [wasSearchable, setWasSearchable] = _react.useState.call(void 0, searchable);
|
|
245
245
|
if (wasSearchable !== searchable) {
|
|
@@ -297,13 +297,13 @@ function useDocSearch(config) {
|
|
|
297
297
|
case "navigate-new-tab": {
|
|
298
298
|
if (wantsNewTab) {
|
|
299
299
|
setKeepOpen(true);
|
|
300
|
-
|
|
300
|
+
_chunkXCVH5BCZcjs.executeNewTabNavigation.call(void 0, { runtime, href: action.href, targetPlatform: action.targetPlatform });
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
303
|
setKeepOpen(action.kind === "navigate-new-tab");
|
|
304
304
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
305
305
|
if (action.kind === "navigate-same-tab" && path && _optionalChain([onInPageSwap, 'optionalCall', _15 => _15(path)])) return;
|
|
306
|
-
|
|
306
|
+
_chunkXCVH5BCZcjs.executeNavigationImperative.call(void 0, {
|
|
307
307
|
runtime,
|
|
308
308
|
href: action.href,
|
|
309
309
|
path,
|
|
@@ -314,7 +314,7 @@ function useDocSearch(config) {
|
|
|
314
314
|
}
|
|
315
315
|
case "ask-ai":
|
|
316
316
|
setKeepOpen(false);
|
|
317
|
-
window.dispatchEvent(new CustomEvent(
|
|
317
|
+
window.dispatchEvent(new CustomEvent(_chunkWPMJUYW3cjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
318
318
|
return;
|
|
319
319
|
case "route":
|
|
320
320
|
setKeepOpen(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkCNMXP77Icjs = require('./chunk-CNMXP77I.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -118,7 +118,7 @@ function PersistentPaginationWrapper({
|
|
|
118
118
|
},
|
|
119
119
|
"aria-hidden": isPaginationDisabled,
|
|
120
120
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
121
|
-
|
|
121
|
+
_chunkCNMXP77Icjs.UnifiedPagination,
|
|
122
122
|
{
|
|
123
123
|
currentPage: displayCurrentPage,
|
|
124
124
|
totalPages: displayTotalPages,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4R4HAFXIcjs = require('./chunk-4R4HAFXI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -184,14 +184,14 @@ function UnifiedPagination({
|
|
|
184
184
|
}, 0);
|
|
185
185
|
};
|
|
186
186
|
if (loading) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4R4HAFXIcjs.Pagination, { loading: true, currentPage, totalPages, onPageChange: handlePageChange }) });
|
|
188
188
|
}
|
|
189
189
|
if (totalPages <= 1) {
|
|
190
|
-
return reserveSpace ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none invisible", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
190
|
+
return reserveSpace ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none invisible", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4R4HAFXIcjs.Pagination, { currentPage: 1, totalPages: 1, onPageChange: () => {
|
|
191
191
|
} }) }) }) : null;
|
|
192
192
|
}
|
|
193
193
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
194
|
-
|
|
194
|
+
_chunk4R4HAFXIcjs.Pagination,
|
|
195
195
|
{
|
|
196
196
|
currentPage,
|
|
197
197
|
totalPages,
|