@flamingo-stack/openframe-frontend-core 0.0.705-snapshot.20261006160157 → 0.0.705
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-WCVZCGK5.cjs → chunk-2QEUFXNS.cjs} +71 -312
- package/dist/{chunk-N45D4ZXQ.js → chunk-2YXVWZVF.js} +715 -959
- package/dist/{chunk-7OFPU7WE.cjs → chunk-3MX5S4CF.cjs} +2547 -877
- package/dist/{chunk-MB4PNY7C.cjs → chunk-4I45Y3DN.cjs} +6 -6
- package/dist/{chunk-K6O43WDL.cjs → chunk-4KX6OED2.cjs} +46 -46
- package/dist/{chunk-JPG7OHEG.js → chunk-5HBHO5TB.js} +1 -1
- package/dist/{chunk-3PLDQDE6.cjs → chunk-6NJKKO73.cjs} +15 -15
- package/dist/{chunk-O2RSAA5M.js → chunk-6SEANMOU.js} +11 -11
- package/dist/{chunk-WMX26HB5.js → chunk-6XIF2Z7I.js} +3 -3
- package/dist/{chunk-TQ4LB2DS.cjs → chunk-7LS22BZU.cjs} +14 -14
- package/dist/{chunk-7GEBFJT2.js → chunk-7VVFKJY5.js} +3429 -1759
- package/dist/{chunk-DDVBX42E.cjs → chunk-A75QY6CD.cjs} +21 -21
- package/dist/{chunk-OF6GEI5A.cjs → chunk-ABU3TGXA.cjs} +3 -3
- package/dist/{chunk-4CJMQLB5.js → chunk-AQWZNP6A.js} +4 -4
- package/dist/{chunk-FI6GMDO7.js → chunk-CH5232HV.js} +662 -2455
- package/dist/{chunk-Y2GSOUCS.cjs → chunk-D7BTSVMS.cjs} +2 -2
- package/dist/{chunk-4ILM7W2R.js → chunk-DENB2XJC.js} +2 -2
- package/dist/{chunk-6232S532.js → chunk-DW7G4KG3.js} +3 -3
- package/dist/{chunk-3NCM4ZQB.js → chunk-F6AFPNDF.js} +15 -15
- package/dist/{chunk-PXOQIA5K.js → chunk-F6I6XZMN.js} +5 -5
- package/dist/{chunk-G6UMNAVI.js → chunk-FCGC42TS.js} +61 -57
- package/dist/{chunk-BHI6GVC4.js → chunk-G5A3PSPV.js} +691 -1080
- package/dist/{chunk-HZ7CBXPL.cjs → chunk-HPWWNJE7.cjs} +89 -89
- package/dist/{chunk-SW5ZV2BN.cjs → chunk-IHERL5V4.cjs} +34 -34
- package/dist/{chunk-UJ33ZXDT.cjs → chunk-IKTQ3ZAG.cjs} +6 -6
- package/dist/{chunk-SEKYEWQG.cjs → chunk-JEZKGCZI.cjs} +26 -26
- package/dist/{chunk-7SCNMP2B.cjs → chunk-KOWVJD4V.cjs} +56 -56
- package/dist/chunk-LMBC5FFP.js +43 -0
- package/dist/{chunk-F57ECE2I.js → chunk-MFFCUVWG.js} +1 -1
- package/dist/{chunk-KUC673HM.js → chunk-MKXO4Q5P.js} +142 -383
- package/dist/{chunk-6NTPY5QA.cjs → chunk-MMOODW57.cjs} +94 -1887
- package/dist/{chunk-CUME3VTQ.js → chunk-MP2C3LJ4.js} +1 -1
- package/dist/{chunk-VX4E6YSB.cjs → chunk-N3COXDBH.cjs} +5 -41
- package/dist/{chunk-FXJ3WWUB.js → chunk-NDESEPW5.js} +0 -68
- package/dist/chunk-O43V3EOS.js +252 -0
- package/dist/{chunk-PLYEKV3N.cjs → chunk-OHFS7VOU.cjs} +2 -2
- package/dist/{chunk-M75XEEGT.cjs → chunk-OUY3HHW6.cjs} +539 -928
- package/dist/{chunk-CZ7Y7UG4.js → chunk-PDWVPI3S.js} +72 -4
- package/dist/{chunk-TE773HEH.js → chunk-PN2RKPDF.js} +10 -10
- package/dist/{chunk-3EZ4HHAP.js → chunk-QFXRPRFT.js} +3 -3
- package/dist/chunk-QZVSJF2K.cjs +252 -0
- package/dist/chunk-RALRPFDW.cjs +43 -0
- package/dist/{chunk-YGJKKDDM.js → chunk-RBDP4WDE.js} +6 -6
- package/dist/{chunk-LM7TXMLU.cjs → chunk-RKV5B7EU.cjs} +4 -72
- package/dist/{chunk-UVTD52MD.cjs → chunk-TYWLNCNH.cjs} +82 -14
- package/dist/{chunk-IKJA3Y7Z.js → chunk-VA5T32XA.js} +2 -2
- package/dist/{chunk-GWQEYPYM.cjs → chunk-VESKITRQ.cjs} +732 -728
- package/dist/{chunk-RQRX4YC3.cjs → chunk-VHCACDKP.cjs} +39 -39
- package/dist/{chunk-4IBPRIQH.js → chunk-VR2ZLFCP.js} +1 -1
- package/dist/{chunk-RTIPR53L.cjs → chunk-WA6GUYQ4.cjs} +104 -104
- package/dist/{chunk-T5TMCHWM.js → chunk-X5MQ7JRP.js} +9 -9
- package/dist/{chunk-LLSUVPQC.cjs → chunk-X72J4ACL.cjs} +8 -252
- package/dist/{chunk-UDFRUKLC.cjs → chunk-XOYH2YQE.cjs} +2 -2
- package/dist/{chunk-LVSFKENJ.cjs → chunk-YFBM2K6X.cjs} +4 -4
- package/dist/{chunk-DWPAAWMR.js → chunk-YHM5AWTT.js} +6 -6
- package/dist/{chunk-NCPTID44.js → chunk-Z2VNQQ74.js} +942 -978
- package/dist/{chunk-STHZBOQI.cjs → chunk-ZSAGLQOD.cjs} +17 -17
- package/dist/{chunk-VZICIQW2.js → chunk-ZSAO2HBW.js} +15 -15
- package/dist/components/case-studies/index.cjs +32 -30
- package/dist/components/case-studies/index.js +16 -14
- package/dist/components/chat/entity-cards/case-study-card.d.ts +4 -11
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +11 -9
- package/dist/components/chat/index.js +16 -14
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +14 -12
- package/dist/components/contact/index.js +13 -11
- package/dist/components/docs/index.cjs +17 -15
- package/dist/components/docs/index.js +16 -14
- package/dist/components/embeds/index.cjs +14 -12
- package/dist/components/embeds/index.js +13 -11
- package/dist/components/faq/index.cjs +15 -13
- package/dist/components/faq/index.js +14 -12
- package/dist/components/features/index.cjs +14 -12
- package/dist/components/features/index.js +23 -21
- package/dist/components/footer-waitlist-button.d.ts +29 -0
- package/dist/components/footer-waitlist-button.d.ts.map +1 -0
- package/dist/components/footer.d.ts +47 -0
- package/dist/components/footer.d.ts.map +1 -0
- package/dist/components/help-center-pages/index.cjs +120 -118
- package/dist/components/help-center-pages/index.js +35 -33
- package/dist/components/icons/index.cjs +5 -3
- package/dist/components/icons/index.js +11 -9
- package/dist/components/icons-v2-generated/index.cjs +5 -3
- package/dist/components/icons-v2-generated/index.js +4 -2
- package/dist/components/index.cjs +159 -86
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +402 -329
- package/dist/components/loading/page-layout-skeleton.d.ts +1 -1
- package/dist/components/meeting-scheduler/index.cjs +64 -62
- package/dist/components/meeting-scheduler/index.js +14 -12
- package/dist/components/navigation/client-only-header.d.ts +8 -0
- package/dist/components/navigation/client-only-header.d.ts.map +1 -0
- package/dist/components/navigation/header-skeleton.d.ts +12 -0
- package/dist/components/navigation/header-skeleton.d.ts.map +1 -0
- package/dist/components/navigation/header.d.ts +9 -0
- package/dist/components/navigation/header.d.ts.map +1 -0
- package/dist/components/navigation/index.cjs +16 -28
- package/dist/components/navigation/index.d.ts +10 -14
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +26 -38
- package/dist/components/navigation/mingo-ai-button.d.ts +3 -38
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mobile-nav-panel.d.ts +10 -0
- package/dist/components/navigation/mobile-nav-panel.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-item.d.ts +2 -1
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation.d.ts +2 -2
- package/dist/components/navigation/top-navigation.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +17 -15
- package/dist/components/onboarding-guides/index.js +16 -14
- package/dist/components/related-content/index.cjs +8 -10
- package/dist/components/related-content/index.js +7 -9
- package/dist/components/tickets/index.cjs +18 -16
- package/dist/components/tickets/index.js +17 -15
- package/dist/components/ui/index.cjs +14 -12
- package/dist/components/ui/index.js +19 -17
- package/dist/hooks/index.cjs +11 -19
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +11 -19
- package/dist/hooks/ui/index.d.ts +0 -3
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/index.cjs +22 -55
- package/dist/index.js +196 -229
- package/dist/types/case-study.d.ts +0 -9
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/types/navigation.d.ts +65 -95
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/utils/index.cjs +0 -55
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -50
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/entity-cards/case-study-card.tsx +5 -115
- package/src/components/chat/utils/icon-library.tsx +1 -35
- package/src/components/footer-waitlist-button.tsx +53 -0
- package/src/components/footer.tsx +195 -0
- package/src/components/index.ts +2 -0
- package/src/components/loading/page-layout-skeleton.tsx +1 -1
- package/src/components/navigation/client-only-header.tsx +22 -0
- package/src/components/navigation/header-skeleton.tsx +74 -0
- package/src/components/navigation/header.tsx +429 -0
- package/src/components/navigation/index.ts +14 -21
- package/src/components/navigation/mingo-ai-button.tsx +63 -139
- package/src/components/navigation/mobile-nav-panel.tsx +155 -0
- package/src/components/navigation/navigation-sidebar-item.tsx +2 -1
- package/src/components/navigation/ticket-alerts-button.tsx +2 -2
- package/src/components/navigation/top-navigation.tsx +2 -2
- package/src/hooks/index.ts +0 -1
- package/src/hooks/ui/index.ts +0 -3
- package/src/styles/chat-animations.css +2 -57
- package/src/types/case-study.ts +0 -16
- package/src/types/navigation.ts +66 -80
- package/src/utils/index.ts +0 -1
- package/src/utils/source-icons.ts +0 -13
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts +0 -3
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts.map +0 -1
- package/dist/components/navigation/mobile-nav-sheet.d.ts +0 -48
- package/dist/components/navigation/mobile-nav-sheet.d.ts.map +0 -1
- package/dist/components/navigation/nav-item-row.d.ts +0 -27
- package/dist/components/navigation/nav-item-row.d.ts.map +0 -1
- package/dist/components/navigation/nav-panel.d.ts +0 -43
- package/dist/components/navigation/nav-panel.d.ts.map +0 -1
- package/dist/components/navigation/site-footer.d.ts +0 -28
- package/dist/components/navigation/site-footer.d.ts.map +0 -1
- package/dist/components/navigation/site-header.d.ts +0 -61
- package/dist/components/navigation/site-header.d.ts.map +0 -1
- package/dist/components/navigation/site-nav-link.d.ts +0 -26
- package/dist/components/navigation/site-nav-link.d.ts.map +0 -1
- package/dist/hooks/ui/use-active-section.d.ts +0 -10
- package/dist/hooks/ui/use-active-section.d.ts.map +0 -1
- package/dist/hooks/ui/use-nav-menus.d.ts +0 -48
- package/dist/hooks/ui/use-nav-menus.d.ts.map +0 -1
- package/dist/hooks/ui/use-visitor-os.d.ts +0 -15
- package/dist/hooks/ui/use-visitor-os.d.ts.map +0 -1
- package/dist/hooks/use-location-hash.d.ts +0 -9
- package/dist/hooks/use-location-hash.d.ts.map +0 -1
- package/dist/utils/visitor-os.d.ts +0 -45
- package/dist/utils/visitor-os.d.ts.map +0 -1
- package/src/components/navigation/mobile-nav-sheet-id.ts +0 -2
- package/src/components/navigation/mobile-nav-sheet.tsx +0 -241
- package/src/components/navigation/nav-item-row.tsx +0 -129
- package/src/components/navigation/nav-panel.tsx +0 -196
- package/src/components/navigation/site-footer.tsx +0 -256
- package/src/components/navigation/site-header.tsx +0 -339
- package/src/components/navigation/site-nav-link.tsx +0 -41
- package/src/hooks/ui/use-active-section.ts +0 -44
- package/src/hooks/ui/use-nav-menus.ts +0 -200
- package/src/hooks/ui/use-visitor-os.ts +0 -33
- package/src/hooks/use-location-hash.ts +0 -34
- package/src/utils/visitor-os.ts +0 -84
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunkLM7TXMLUcjs = require('./chunk-LM7TXMLU.cjs');
|
|
5
4
|
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
|
|
10
|
+
var _chunkN3COXDBHcjs = require('./chunk-N3COXDBH.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkRKV5B7EUcjs = require('./chunk-RKV5B7EU.cjs');
|
|
14
14
|
|
|
15
15
|
// src/hooks/ui/use-debounce.ts
|
|
16
16
|
var _react = require('react');
|
|
@@ -184,10 +184,10 @@ function useSuppressCloneFocus(active) {
|
|
|
184
184
|
// src/hooks/ui/use-prefers-reduced-motion.ts
|
|
185
185
|
var PREFERS_REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
|
|
186
186
|
function usePrefersReducedMotion() {
|
|
187
|
-
return
|
|
187
|
+
return _chunkRKV5B7EUcjs.useMediaQuery.call(void 0, PREFERS_REDUCED_MOTION_QUERY) === true;
|
|
188
188
|
}
|
|
189
189
|
function usePrefersReducedMotionState() {
|
|
190
|
-
return
|
|
190
|
+
return _chunkRKV5B7EUcjs.useMediaQuery.call(void 0, PREFERS_REDUCED_MOTION_QUERY);
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
// src/hooks/ui/use-in-view.ts
|
|
@@ -291,19 +291,19 @@ var toolLabels = {
|
|
|
291
291
|
|
|
292
292
|
// src/components/tool-icon.tsx
|
|
293
293
|
var _jsxruntime = require('react/jsx-runtime');
|
|
294
|
-
var renderOpenFrameLogo = (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
294
|
+
var renderOpenFrameLogo = (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.OpenframeLogoGreyIcon, { size, className });
|
|
295
295
|
var toolIconMap = {
|
|
296
|
-
[ToolTypeValues.FLEET_MDM]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
297
|
-
[ToolTypeValues.MESHCENTRAL]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
296
|
+
[ToolTypeValues.FLEET_MDM]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.FleetMdmLogoGreyIcon, { size, className }),
|
|
297
|
+
[ToolTypeValues.MESHCENTRAL]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.MeshcentralLogoGreyIcon, { size, className }),
|
|
298
298
|
[ToolTypeValues.OPENFRAME]: renderOpenFrameLogo,
|
|
299
299
|
[ToolTypeValues.OPENFRAME_CHAT]: renderOpenFrameLogo,
|
|
300
300
|
[ToolTypeValues.OPENFRAME_CLIENT]: renderOpenFrameLogo,
|
|
301
301
|
[ToolTypeValues.OPENFRAME_RMM]: renderOpenFrameLogo,
|
|
302
|
-
[ToolTypeValues.AUTHENTIK]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
303
|
-
[ToolTypeValues.OSQUERY]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
302
|
+
[ToolTypeValues.AUTHENTIK]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.AuthentikLogoGreyIcon, { size, className }),
|
|
303
|
+
[ToolTypeValues.OSQUERY]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.OsqueryLogoGreyIcon, { size, className }),
|
|
304
304
|
[ToolTypeValues.SYSTEM]: () => null,
|
|
305
|
-
[ToolTypeValues.MICROSOFT_365]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
306
|
-
[ToolTypeValues.GOOGLE_WORKSPACE]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
305
|
+
[ToolTypeValues.MICROSOFT_365]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.Office365LogoGreyIcon, { size, className }),
|
|
306
|
+
[ToolTypeValues.GOOGLE_WORKSPACE]: (size, className) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkN3COXDBHcjs.GoogleLogoGreyIcon, { size, className })
|
|
307
307
|
};
|
|
308
308
|
var ToolIcon = ({ toolType, size = 16, className }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: _nullishCoalesce(_optionalChain([toolIconMap, 'access', _14 => _14[toolType], 'optionalCall', _15 => _15(size, className)]), () => ( null)) });
|
|
309
309
|
ToolIcon.displayName = "ToolIcon";
|
|
@@ -368,6 +368,72 @@ function pick(source, keys) {
|
|
|
368
368
|
}
|
|
369
369
|
var NO_CLIENT_CACHE = { staleTime: 0 };
|
|
370
370
|
|
|
371
|
+
// src/hooks/use-near-viewport.ts
|
|
372
|
+
|
|
373
|
+
var observers = /* @__PURE__ */ new Map();
|
|
374
|
+
var subscribers = /* @__PURE__ */ new WeakMap();
|
|
375
|
+
var THRESHOLD_EPSILON = 0.01;
|
|
376
|
+
function observerKey(rootMargin, threshold) {
|
|
377
|
+
return `${rootMargin}|${threshold}`;
|
|
378
|
+
}
|
|
379
|
+
function getObserverFor(rootMargin, threshold) {
|
|
380
|
+
const key = observerKey(rootMargin, threshold);
|
|
381
|
+
const existing = observers.get(key);
|
|
382
|
+
if (existing) return existing;
|
|
383
|
+
const io = new IntersectionObserver(
|
|
384
|
+
(entries) => {
|
|
385
|
+
entries.forEach((entry) => {
|
|
386
|
+
if (!entry.isIntersecting) return;
|
|
387
|
+
if (entry.intersectionRatio < threshold - THRESHOLD_EPSILON) return;
|
|
388
|
+
const cb = subscribers.get(entry.target);
|
|
389
|
+
if (cb) {
|
|
390
|
+
cb();
|
|
391
|
+
io.unobserve(entry.target);
|
|
392
|
+
subscribers.delete(entry.target);
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
},
|
|
396
|
+
{ rootMargin, threshold }
|
|
397
|
+
);
|
|
398
|
+
observers.set(key, io);
|
|
399
|
+
return io;
|
|
400
|
+
}
|
|
401
|
+
var NEAR_VIEWPORT_ROOT_MARGIN = "500px";
|
|
402
|
+
function useNearViewport(rootMargin = NEAR_VIEWPORT_ROOT_MARGIN, threshold = 0) {
|
|
403
|
+
const [isNear, setIsNear] = _react.useState.call(void 0, false);
|
|
404
|
+
const elRef = _react.useRef.call(void 0, null);
|
|
405
|
+
const key = observerKey(rootMargin, threshold);
|
|
406
|
+
const ref = _react.useCallback.call(void 0,
|
|
407
|
+
(node) => {
|
|
408
|
+
const prev = elRef.current;
|
|
409
|
+
if (prev) {
|
|
410
|
+
const stillOurs = subscribers.get(prev);
|
|
411
|
+
if (stillOurs) {
|
|
412
|
+
subscribers.delete(prev);
|
|
413
|
+
_optionalChain([observers, 'access', _16 => _16.get, 'call', _17 => _17(key), 'optionalAccess', _18 => _18.unobserve, 'call', _19 => _19(prev)]);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
elRef.current = node;
|
|
417
|
+
if (!node) return;
|
|
418
|
+
const cb = () => setIsNear(true);
|
|
419
|
+
subscribers.set(node, cb);
|
|
420
|
+
getObserverFor(rootMargin, threshold).observe(node);
|
|
421
|
+
},
|
|
422
|
+
[key, rootMargin, threshold]
|
|
423
|
+
);
|
|
424
|
+
_react.useEffect.call(void 0, () => {
|
|
425
|
+
return () => {
|
|
426
|
+
const el = elRef.current;
|
|
427
|
+
if (!el) return;
|
|
428
|
+
if (subscribers.get(el)) {
|
|
429
|
+
subscribers.delete(el);
|
|
430
|
+
_optionalChain([observers, 'access', _20 => _20.get, 'call', _21 => _21(key), 'optionalAccess', _22 => _22.unobserve, 'call', _23 => _23(el)]);
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
}, [key]);
|
|
434
|
+
return { ref, isNear };
|
|
435
|
+
}
|
|
436
|
+
|
|
371
437
|
// src/utils/markdown-fences.ts
|
|
372
438
|
var FENCE_RE = /^ {0,3}(`{3,}|~{3,})([^\n]*?)\r?$/;
|
|
373
439
|
var BLANK_LINE_RE = /^[ \t\r]*$/;
|
|
@@ -429,7 +495,7 @@ function scanHeadings(content, options = {}) {
|
|
|
429
495
|
const lines = content.split("\n");
|
|
430
496
|
const fences = skipFences ? createFenceTracker() : null;
|
|
431
497
|
let start = 0;
|
|
432
|
-
if (skipFrontmatter && _optionalChain([lines, 'access',
|
|
498
|
+
if (skipFrontmatter && _optionalChain([lines, 'access', _24 => _24[0], 'optionalAccess', _25 => _25.trim, 'call', _26 => _26()]) === "---") {
|
|
433
499
|
for (let i = 1; i < lines.length; i++) {
|
|
434
500
|
if (lines[i].trim() === "---" || lines[i].trim() === "...") {
|
|
435
501
|
start = i + 1;
|
|
@@ -447,7 +513,7 @@ function scanHeadings(content, options = {}) {
|
|
|
447
513
|
continue;
|
|
448
514
|
}
|
|
449
515
|
}
|
|
450
|
-
const prefix = _nullishCoalesce(_optionalChain([CONTAINER_PREFIX_RE, 'access',
|
|
516
|
+
const prefix = _nullishCoalesce(_optionalChain([CONTAINER_PREFIX_RE, 'access', _27 => _27.exec, 'call', _28 => _28(line), 'optionalAccess', _29 => _29[0]]), () => ( ""));
|
|
451
517
|
const body = prefix ? line.slice(prefix.length) : line;
|
|
452
518
|
const setext = SETEXT_UNDERLINE_RE.exec(body);
|
|
453
519
|
if (setext) {
|
|
@@ -729,4 +795,6 @@ function navigateSamePageHash(target, options = {}) {
|
|
|
729
795
|
|
|
730
796
|
|
|
731
797
|
|
|
732
|
-
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
exports.useDebounce = useDebounce; exports.useHeaderHeight = useHeaderHeight; exports.useMarqueeEngine = useMarqueeEngine; exports.useResetOnPageHidden = useResetOnPageHidden; exports.useSuppressCloneFocus = useSuppressCloneFocus; exports.PREFERS_REDUCED_MOTION_QUERY = PREFERS_REDUCED_MOTION_QUERY; exports.usePrefersReducedMotion = usePrefersReducedMotion; exports.usePrefersReducedMotionState = usePrefersReducedMotionState; exports.useInView = useInView; exports.useAutoplay = useAutoplay; exports.ToolTypeValues = ToolTypeValues; exports.toolLabels = toolLabels; exports.ToolIcon = ToolIcon; exports.errorMessage = errorMessage; exports.apiErrorMessage = apiErrorMessage; exports.delay = delay; exports.generateRandomString = generateRandomString; exports.truncateString = truncateString; exports.serializeJsonLd = serializeJsonLd; exports.deepClone = deepClone; exports.getSlackCommunityJoinUrl = getSlackCommunityJoinUrl; exports.clamp = clamp; exports.pick = pick; exports.NO_CLIENT_CACHE = NO_CLIENT_CACHE; exports.NEAR_VIEWPORT_ROOT_MARGIN = NEAR_VIEWPORT_ROOT_MARGIN; exports.useNearViewport = useNearViewport; exports.isBlankLine = isBlankLine; exports.createFenceTracker = createFenceTracker; exports.HEADING_EMOJI_RE = HEADING_EMOJI_RE; exports.stripHeadingEmojis = stripHeadingEmojis; exports.slugifyHeadingBase = slugifyHeadingBase; exports.slugifyHeadingText = slugifyHeadingText; exports.scanHeadings = scanHeadings; exports.createHeadingIdDeduper = createHeadingIdDeduper; exports.normalizeAnchorId = normalizeAnchorId; exports.findAnchorElementByNormalizedId = findAnchorElementByNormalizedId; exports.getScrollableAncestor = getScrollableAncestor; exports.scrollElementIntoView = scrollElementIntoView; exports.STICKY_HEADER_OFFSET_PX = STICKY_HEADER_OFFSET_PX; exports.HUB_HEADER_OFFSET_PX = HUB_HEADER_OFFSET_PX; exports.normalizeHashFragment = normalizeHashFragment; exports.getHashTargetElement = getHashTargetElement; exports.navigateSamePageHash = navigateSamePageHash;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PageLayout
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FCGC42TS.js";
|
|
5
5
|
import {
|
|
6
6
|
formatBioText,
|
|
7
7
|
formatDateWithTimezone,
|
|
8
8
|
getProxiedImageUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CH5232HV.js";
|
|
10
10
|
import {
|
|
11
11
|
next_image_default
|
|
12
12
|
} from "./chunk-FBZMAPWO.js";
|