@flamingo-stack/openframe-frontend-core 0.0.840 → 0.0.842
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/route-styles.cjs +3 -1
- package/dist/build/style-sources.cjs +15 -2
- package/dist/build/style-sources.d.ts +3 -0
- 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-GMK4JGC2.cjs → chunk-2HRQU4ZL.cjs} +44 -44
- package/dist/{chunk-HXTZZE3R.cjs → chunk-3ONBCAD2.cjs} +59 -59
- 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-275AQ6LC.cjs → chunk-7UZYI4GV.cjs} +4 -4
- package/dist/{chunk-SOCCHWDK.cjs → chunk-BHOVF4KP.cjs} +2 -2
- package/dist/{chunk-WVNUCKB7.cjs → chunk-CNMXP77I.cjs} +4 -4
- package/dist/{chunk-Q6WUHYOG.cjs → chunk-CQQRGM6D.cjs} +85 -85
- package/dist/{chunk-TD4CC4KV.cjs → chunk-EUEPGHY4.cjs} +6 -6
- package/dist/{chunk-DYDQLS2R.cjs → chunk-GQJXOX5S.cjs} +213 -213
- package/dist/{chunk-AT6D7BAZ.cjs → chunk-IVM35OAW.cjs} +3 -3
- package/dist/{chunk-JM2XA7VY.cjs → chunk-IVS23CAK.cjs} +15 -15
- package/dist/{chunk-ZAO5SYBJ.cjs → chunk-MWQOM2EI.cjs} +4 -4
- package/dist/{chunk-WI7EXAZT.cjs → chunk-NMLNZCK2.cjs} +2 -2
- package/dist/{chunk-APNONOHY.cjs → chunk-PZNWIJRZ.cjs} +13 -10
- package/dist/{chunk-MYAPG3FQ.cjs → chunk-QPJUQ5YU.cjs} +21 -21
- package/dist/{chunk-VBH2RCFM.cjs → chunk-RAFWT3WG.cjs} +78 -78
- package/dist/{chunk-JUEAZCD6.cjs → chunk-RSZZTB5T.cjs} +54 -54
- package/dist/{chunk-7WKRMJI6.cjs → chunk-SC36S7DJ.cjs} +2 -2
- package/dist/{chunk-UZPYYHF5.cjs → chunk-SOTTMZ6U.cjs} +19 -19
- package/dist/{chunk-E7M54JWW.cjs → chunk-SSSI2RBV.cjs} +14 -14
- package/dist/{chunk-Z35PL3UR.cjs → chunk-WOYARKPQ.cjs} +34 -34
- package/dist/{chunk-EV6BPF47.cjs → chunk-WPMJUYW3.cjs} +143 -143
- package/dist/{chunk-FRL2ZN4O.cjs → chunk-XCVH5BCZ.cjs} +6 -6
- package/dist/{chunk-IELPVUPR.cjs → chunk-YNKXXDOI.cjs} +23 -23
- package/dist/{chunk-GUKFMMDZ.cjs → chunk-ZOWAYKDN.cjs} +3 -3
- package/dist/{cloud-tenants-PV63RZ73.cjs → cloud-tenants-U6Y2UZVF.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/index.cjs +11 -11
- package/dist/components/help-center-pages/index.cjs +105 -105
- package/dist/components/index.cjs +65 -65
- package/dist/components/meeting-scheduler/index.cjs +50 -50
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/onboarding-guides/index.cjs +14 -14
- 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-HB4GEMJH.cjs} +12 -12
- package/dist/{embeddable-chat-VRYAQQF6.cjs → embeddable-chat-C6DUH2JL.cjs} +78 -78
- package/dist/hooks/index.cjs +4 -4
- package/dist/index.cjs +15 -15
- package/dist/{knowledge-YJSDJIXT.cjs → knowledge-I53Z6DV7.cjs} +12 -12
- package/dist/{logs-42JG3NZ5.cjs → logs-SFLAZIQG.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-EIAGQO6T.cjs} +15 -15
- package/dist/{scripts-4VFYBXBE.cjs → scripts-SNJ4UVRF.cjs} +16 -16
- package/dist/{software-update-OSDZQ5CP.cjs → software-update-AZFRUC5N.cjs} +14 -14
- package/dist/utils/index.cjs +13 -10
- package/package.json +1 -1
- package/src/platform-domains.ts +28 -20
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5CPEMPNPcjs = require('./chunk-5CPEMPNP.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkMWQOM2EIcjs = require('./chunk-MWQOM2EI.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -18,17 +18,17 @@ var _chunkZAO5SYBJcjs = require('./chunk-ZAO5SYBJ.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkGQJXOX5Scjs = require('./chunk-GQJXOX5S.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkNMLNZCK2cjs = require('./chunk-NMLNZCK2.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkSSSI2RBVcjs = require('./chunk-SSSI2RBV.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkIUDBG3HJcjs = require('./chunk-IUDBG3HJ.cjs');
|
|
@@ -40,7 +40,7 @@ var _chunk24I6RFVUcjs = require('./chunk-24I6RFVU.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunk4ASUUB3Acjs = require('./chunk-4ASUUB3A.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -53,7 +53,7 @@ var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.cjs');
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
var
|
|
56
|
+
var _chunkWPMJUYW3cjs = require('./chunk-WPMJUYW3.cjs');
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
var _chunk6LDL3UZEcjs = require('./chunk-6LDL3UZE.cjs');
|
|
@@ -101,7 +101,7 @@ var _chunk4TUSPDNScjs = require('./chunk-4TUSPDNS.cjs');
|
|
|
101
101
|
var _chunkCON36SEJcjs = require('./chunk-CON36SEJ.cjs');
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
var
|
|
104
|
+
var _chunkXCVH5BCZcjs = require('./chunk-XCVH5BCZ.cjs');
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
var _chunkFW7RKWPYcjs = require('./chunk-FW7RKWPY.cjs');
|
|
@@ -118,7 +118,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
118
118
|
var _chunkNFNSPLGCcjs = require('./chunk-NFNSPLGC.cjs');
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
var
|
|
121
|
+
var _chunkEUEPGHY4cjs = require('./chunk-EUEPGHY4.cjs');
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
@@ -192,7 +192,7 @@ function RowGlyph({ link, box, glyph }) {
|
|
|
192
192
|
{
|
|
193
193
|
"aria-hidden": "true",
|
|
194
194
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex shrink-0 items-center justify-center overflow-hidden rounded-full", box),
|
|
195
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
195
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.EntityIcon, { icon: link.icon, className: "h-full w-full" })
|
|
196
196
|
}
|
|
197
197
|
);
|
|
198
198
|
}
|
|
@@ -205,7 +205,7 @@ function RowGlyph({ link, box, glyph }) {
|
|
|
205
205
|
"flex shrink-0 items-center justify-center rounded-lg border border-ods-border bg-ods-bg text-ods-text-primary",
|
|
206
206
|
box
|
|
207
207
|
),
|
|
208
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
208
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.EntityIcon, { icon: { name: link.iconName }, size: glyph })
|
|
209
209
|
}
|
|
210
210
|
);
|
|
211
211
|
}
|
|
@@ -218,7 +218,7 @@ function NavItemRow({
|
|
|
218
218
|
className
|
|
219
219
|
}) {
|
|
220
220
|
const label = navLinkLabel(link);
|
|
221
|
-
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
221
|
+
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQJXOX5Scjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
|
|
222
222
|
const singleLine = !link.description && !link.builtOn;
|
|
223
223
|
const rowClassName = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
224
224
|
ROW_CLASSES[variant],
|
|
@@ -235,7 +235,7 @@ function NavItemRow({
|
|
|
235
235
|
] });
|
|
236
236
|
} else if (variant === "side") {
|
|
237
237
|
children = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
238
|
-
link.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
238
|
+
link.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.EntityIcon, { icon: { name: link.iconName }, size: 18 }) }),
|
|
239
239
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: label }),
|
|
240
240
|
counter
|
|
241
241
|
] });
|
|
@@ -266,7 +266,7 @@ var featureCardLoad = null;
|
|
|
266
266
|
var featureCardListeners = /* @__PURE__ */ new Set();
|
|
267
267
|
function loadFeatureCard() {
|
|
268
268
|
if (featureCard || featureCardLoad) return;
|
|
269
|
-
featureCardLoad = Promise.resolve().then(() => _interopRequireWildcard(require("./case-study-card-
|
|
269
|
+
featureCardLoad = Promise.resolve().then(() => _interopRequireWildcard(require("./case-study-card-VN3JBNF5.cjs"))).then((module) => {
|
|
270
270
|
featureCard = module.CaseStudyCard;
|
|
271
271
|
for (const listener of featureCardListeners) listener();
|
|
272
272
|
}).catch(() => void 0).finally(() => {
|
|
@@ -275,7 +275,7 @@ function loadFeatureCard() {
|
|
|
275
275
|
}
|
|
276
276
|
function subscribeToFeatureCard(listener) {
|
|
277
277
|
featureCardListeners.add(listener);
|
|
278
|
-
const cancel =
|
|
278
|
+
const cancel = _chunk4ASUUB3Acjs.afterPageLoad.call(void 0, loadFeatureCard);
|
|
279
279
|
return () => {
|
|
280
280
|
featureCardListeners.delete(listener);
|
|
281
281
|
cancel();
|
|
@@ -490,7 +490,7 @@ function TopNavigation({
|
|
|
490
490
|
|
|
491
491
|
var TOP_ITEM_CLASS = "relative inline-flex h-10 items-center gap-1.5 whitespace-nowrap rounded-md px-3.5 text-ods-text-secondary transition-colors text-h6 hover:bg-ods-bg-hover hover:text-ods-text-primary";
|
|
492
492
|
var TOP_ITEM_CURRENT_CLASS = "rounded-b-none bg-gradient-to-b from-transparent to-ods-accent/10 text-ods-text-primary after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 after:bg-ods-accent";
|
|
493
|
-
var menuIcon = (menu) => menu.iconName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
493
|
+
var menuIcon = (menu) => menu.iconName ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEUEPGHY4cjs.EntityIcon, { icon: { name: menu.iconName }, size: 20, className: "size-5 shrink-0" }) : null;
|
|
494
494
|
function SiteHeader({
|
|
495
495
|
nav,
|
|
496
496
|
pathname,
|
|
@@ -513,8 +513,8 @@ function SiteHeader({
|
|
|
513
513
|
}) {
|
|
514
514
|
const [show, setShow] = _react.useState.call(void 0, true);
|
|
515
515
|
const lastScrollY = _react.useRef.call(void 0, 0);
|
|
516
|
-
const activeId =
|
|
517
|
-
const { openId, close, getTriggerProps, getPanelProps } =
|
|
516
|
+
const activeId = _chunkSSSI2RBVcjs.useActiveSection.call(void 0, nav.menus, pathname);
|
|
517
|
+
const { openId, close, getTriggerProps, getPanelProps } = _chunkSSSI2RBVcjs.useNavMenus.call(void 0, { pathname });
|
|
518
518
|
const [trail, setTrail] = _react.useState.call(void 0, { id: null, from: null });
|
|
519
519
|
if (trail.id !== openId) setTrail({ id: openId, from: trail.id });
|
|
520
520
|
const previousId = trail.id === openId ? trail.from : trail.id;
|
|
@@ -640,7 +640,7 @@ function SiteHeader({
|
|
|
640
640
|
leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
641
641
|
leading,
|
|
642
642
|
mobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
643
|
-
|
|
643
|
+
_chunkGQJXOX5Scjs.HeaderButton,
|
|
644
644
|
{
|
|
645
645
|
className: "border-r border-ods-border lg:hidden",
|
|
646
646
|
onClick: mobile.onToggle,
|
|
@@ -666,7 +666,7 @@ function SiteHeader({
|
|
|
666
666
|
centerClassName: "justify-start pl-[var(--spacing-system-xlf)]",
|
|
667
667
|
cta: hasRight ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
668
668
|
mingo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
669
|
-
|
|
669
|
+
_chunk4ASUUB3Acjs.MingoAiButton,
|
|
670
670
|
{
|
|
671
671
|
source: mingo.source,
|
|
672
672
|
icon: mingo.icon,
|
|
@@ -732,9 +732,9 @@ function MobileNavSheetBody({
|
|
|
732
732
|
const sheetRef = _react.useRef.call(void 0, null);
|
|
733
733
|
const menus = [..._nullishCoalesce(nav.mobileMenus, () => ( nav.menus)), ..._nullishCoalesce(extraMenus, () => ( []))];
|
|
734
734
|
_overlays.usePreventScroll.call(void 0, );
|
|
735
|
-
|
|
735
|
+
_chunkSSSI2RBVcjs.useFocusTrap.call(void 0, sheetRef, true, { onEscape: onClose });
|
|
736
736
|
const [openGroups, setOpenGroups] = _react.useState.call(void 0, () => {
|
|
737
|
-
const active =
|
|
737
|
+
const active = _chunkSSSI2RBVcjs.resolveActiveSection.call(void 0, menus, pathname);
|
|
738
738
|
return active ? { [active]: true } : {};
|
|
739
739
|
});
|
|
740
740
|
const primaryCta = typeof nav.primaryCta === "object" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", href: nav.primaryCta.href, onClick: onClose, className: "w-full", children: nav.primaryCta.label }) : nav.primaryCta === "none" ? null : _nullishCoalesce(cta, () => ( null));
|
|
@@ -770,7 +770,7 @@ function MobileNavSheetBody({
|
|
|
770
770
|
] }),
|
|
771
771
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain px-5", children: [
|
|
772
772
|
askAI && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
773
|
-
|
|
773
|
+
_chunk4ASUUB3Acjs.MingoAiButton,
|
|
774
774
|
{
|
|
775
775
|
variant: "field",
|
|
776
776
|
source: askAI.source,
|
|
@@ -947,7 +947,7 @@ function SiteFooter({
|
|
|
947
947
|
const bandPrimary = typeof nav.primaryCta === "object" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", href: nav.primaryCta.href, children: nav.primaryCta.label }) : nav.primaryCta === "none" ? null : _nullishCoalesce(cta, () => ( null));
|
|
948
948
|
const columns = nav.footerColumns;
|
|
949
949
|
const accordion = columns.length > ACCORDION_OVER;
|
|
950
|
-
const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
950
|
+
const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQJXOX5Scjs.SocialIconRow, { compact: true, links: _chunkGQJXOX5Scjs.siteNavSocialLinks.call(void 0, nav.brand.social) }) : null)));
|
|
951
951
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
952
952
|
"footer",
|
|
953
953
|
{
|
|
@@ -1041,12 +1041,12 @@ var _framermotion = require('framer-motion');
|
|
|
1041
1041
|
|
|
1042
1042
|
function SlidingSidebar({ config }) {
|
|
1043
1043
|
const [expandedItems, setExpandedItems] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
1044
|
-
const mounted =
|
|
1044
|
+
const mounted = _chunkWPMJUYW3cjs.useIsHydrated.call(void 0, );
|
|
1045
1045
|
const headerHeight = _chunk24I6RFVUcjs.useHeaderHeight.call(void 0, );
|
|
1046
1046
|
const asideRef = _react.useRef.call(void 0, null);
|
|
1047
1047
|
const prefersReducedMotion = _framermotion.useReducedMotion.call(void 0, );
|
|
1048
1048
|
_overlays.usePreventScroll.call(void 0, { isDisabled: !config.isOpen });
|
|
1049
|
-
|
|
1049
|
+
_chunkSSSI2RBVcjs.useFocusTrap.call(void 0, asideRef, config.isOpen, { onEscape: config.onClose, contain: false });
|
|
1050
1050
|
const toggleExpanded = (itemId) => {
|
|
1051
1051
|
const newExpanded = new Set(expandedItems);
|
|
1052
1052
|
if (newExpanded.has(itemId)) {
|
|
@@ -1173,7 +1173,7 @@ function SlidingSidebar({ config }) {
|
|
|
1173
1173
|
duration: 0.3,
|
|
1174
1174
|
ease: [0.4, 0, 0.2, 1]
|
|
1175
1175
|
},
|
|
1176
|
-
className: _chunk63A4GZMBcjs.cn.call(void 0, "fixed inset-0 z-[45]",
|
|
1176
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "fixed inset-0 z-[45]", _chunkNMLNZCK2cjs.OVERLAY_BACKDROP_CLASS),
|
|
1177
1177
|
onClick: () => config.onClose()
|
|
1178
1178
|
}
|
|
1179
1179
|
) }),
|
|
@@ -1216,7 +1216,7 @@ function SlidingSidebar({ config }) {
|
|
|
1216
1216
|
// src/components/navigation/page-section-bar.tsx
|
|
1217
1217
|
|
|
1218
1218
|
|
|
1219
|
-
var SECTION_BAR_HEIGHT_PX =
|
|
1219
|
+
var SECTION_BAR_HEIGHT_PX = _chunk5CPEMPNPcjs.STICKY_SECTION_NAV_HEIGHT_PX;
|
|
1220
1220
|
var PAGE_ANCHOR_SCROLL_MARGIN_CLASS = "scroll-mt-36";
|
|
1221
1221
|
var PAGE_ANCHOR_SCOPE_CLASS = "[&_[id]]:scroll-mt-36";
|
|
1222
1222
|
var PAGE_ANCHOR_GAP_PX = 16;
|
|
@@ -1244,21 +1244,21 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
|
|
|
1244
1244
|
const sections = useRenderedSections(listed);
|
|
1245
1245
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
1246
1246
|
const headerBottom = _chunk24I6RFVUcjs.useHeaderHeight.call(void 0, void 0, { stuckOnly: true });
|
|
1247
|
-
const { activeSection, handleSectionClick } =
|
|
1247
|
+
const { activeSection, handleSectionClick } = _chunk5CPEMPNPcjs.useScrollSpy.call(void 0, sections, {
|
|
1248
1248
|
syncHash: true,
|
|
1249
1249
|
aboveFirst: "none",
|
|
1250
1250
|
headerOffset: headerBottom + SECTION_BAR_HEIGHT_PX + PAGE_ANCHOR_GAP_PX
|
|
1251
1251
|
});
|
|
1252
1252
|
if (sections.length === 0 && !inScope) return null;
|
|
1253
1253
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1254
|
-
|
|
1254
|
+
_chunkGQJXOX5Scjs.PageContainer,
|
|
1255
1255
|
{
|
|
1256
1256
|
as: "div",
|
|
1257
1257
|
backgroundClassName: "sticky z-30 border-b border-ods-border bg-ods-bg transition-[top] duration-300 ease-in-out motion-reduce:transition-none",
|
|
1258
1258
|
backgroundStyle: { top: headerBottom },
|
|
1259
1259
|
contentPadding: SECTION_BAR_INSET_CLASS,
|
|
1260
1260
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1261
|
-
|
|
1261
|
+
_chunk5CPEMPNPcjs.StickySectionNav,
|
|
1262
1262
|
{
|
|
1263
1263
|
orientation: "horizontal",
|
|
1264
1264
|
label,
|
|
@@ -1267,7 +1267,7 @@ function PageSectionBar({ sections: listed, label, brand, action }) {
|
|
|
1267
1267
|
onSectionClick: handleSectionClick,
|
|
1268
1268
|
brand,
|
|
1269
1269
|
action: action && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1270
|
-
|
|
1270
|
+
_chunkWPMJUYW3cjs.NavLinkAnchorViaRuntime,
|
|
1271
1271
|
{
|
|
1272
1272
|
href: action.href,
|
|
1273
1273
|
onClick: (event) => {
|
|
@@ -1397,7 +1397,7 @@ function RowIcon({ item, size, className }) {
|
|
|
1397
1397
|
className: _chunk63A4GZMBcjs.cn.call(void 0, "relative flex shrink-0 items-center justify-center", size === 20 ? "size-5" : "size-4", className),
|
|
1398
1398
|
children: [
|
|
1399
1399
|
sizedIcon(item.icon, size),
|
|
1400
|
-
(_nullishCoalesce(item.unreadCount, () => ( 0))) > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1400
|
+
(_nullishCoalesce(item.unreadCount, () => ( 0))) > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQJXOX5Scjs.UnreadDot, { size: "fixed", className: "@[140px]/of-nav-sidebar:hidden" })
|
|
1401
1401
|
]
|
|
1402
1402
|
}
|
|
1403
1403
|
);
|
|
@@ -1732,7 +1732,7 @@ function LoadedNavigationSidebarItemButton({
|
|
|
1732
1732
|
const content = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1733
1733
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex flex-shrink-0 items-center justify-center", children: [
|
|
1734
1734
|
_react.cloneElement.call(void 0, item.icon, { color: "inherit" }),
|
|
1735
|
-
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1735
|
+
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQJXOX5Scjs.UnreadDot, { size: "fixed" })
|
|
1736
1736
|
] }),
|
|
1737
1737
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1738
1738
|
"span",
|
|
@@ -2017,7 +2017,7 @@ function NavigationSidebar({
|
|
|
2017
2017
|
setTabletFor(isTablet);
|
|
2018
2018
|
if (isTablet) setTabletMinimized(true);
|
|
2019
2019
|
}
|
|
2020
|
-
const hydrated =
|
|
2020
|
+
const hydrated = _chunkWPMJUYW3cjs.useIsHydrated.call(void 0, );
|
|
2021
2021
|
const serverMinimized = isControlled ? desktopMinimized : _nullishCoalesce(config.minimized, () => ( false));
|
|
2022
2022
|
const minimized = hydrated ? isTablet ? tabletMinimized : desktopMinimized : serverMinimized;
|
|
2023
2023
|
const [transitionsEnabled, setTransitionsEnabled] = _react.useState.call(void 0, false);
|
|
@@ -2031,7 +2031,7 @@ function NavigationSidebar({
|
|
|
2031
2031
|
setSize: setChosenExpandedWidth,
|
|
2032
2032
|
resetSize: resetChosenExpandedWidth,
|
|
2033
2033
|
clampSize: clampExpandedWidth
|
|
2034
|
-
} =
|
|
2034
|
+
} = _chunkNMLNZCK2cjs.useResizablePanelSize.call(void 0, {
|
|
2035
2035
|
enabled: resize !== void 0,
|
|
2036
2036
|
minSize: resizeMinWidth,
|
|
2037
2037
|
maxSize: _nullishCoalesce(_optionalChain([resize, 'optionalAccess', _38 => _38.maxWidth]), () => ( Number.POSITIVE_INFINITY)),
|
|
@@ -2298,7 +2298,7 @@ function NavigationSidebar({
|
|
|
2298
2298
|
}
|
|
2299
2299
|
),
|
|
2300
2300
|
resize !== void 0 && !minimized && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2301
|
-
|
|
2301
|
+
_chunkWPMJUYW3cjs.PanelResizeHandle,
|
|
2302
2302
|
{
|
|
2303
2303
|
side: "left",
|
|
2304
2304
|
variant: "inLayout",
|
|
@@ -2311,7 +2311,7 @@ function NavigationSidebar({
|
|
|
2311
2311
|
onReset: resetChosenExpandedWidth,
|
|
2312
2312
|
ariaLabel: "Resize navigation sidebar",
|
|
2313
2313
|
className: "inset-y-0 hidden w-6 -translate-x-1/2 justify-center pl-0 lg:flex",
|
|
2314
|
-
grip: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2314
|
+
grip: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWPMJUYW3cjs.PanelResizeGrip, {})
|
|
2315
2315
|
}
|
|
2316
2316
|
)
|
|
2317
2317
|
]
|
|
@@ -2350,7 +2350,7 @@ function toMenuGroups(entries) {
|
|
|
2350
2350
|
),
|
|
2351
2351
|
children: [
|
|
2352
2352
|
entry.icon,
|
|
2353
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2353
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQJXOX5Scjs.UnreadCountBadge, { count: _nullishCoalesce(entry.count, () => ( 0)) })
|
|
2354
2354
|
]
|
|
2355
2355
|
}
|
|
2356
2356
|
) : void 0,
|
|
@@ -2423,7 +2423,7 @@ function AccountPopover({
|
|
|
2423
2423
|
"aria-hidden": "true"
|
|
2424
2424
|
}
|
|
2425
2425
|
),
|
|
2426
|
-
unread && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2426
|
+
unread && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQJXOX5Scjs.UnreadDot, { size: "fixed" })
|
|
2427
2427
|
] }),
|
|
2428
2428
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2429
2429
|
"span",
|
|
@@ -2509,7 +2509,7 @@ function HeaderGlobalSearch({
|
|
|
2509
2509
|
"form",
|
|
2510
2510
|
{
|
|
2511
2511
|
onSubmit: handleSubmit,
|
|
2512
|
-
...
|
|
2512
|
+
..._chunk4ASUUB3Acjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
2513
2513
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2514
2514
|
"flex h-full flex-1 items-center gap-2 px-3",
|
|
2515
2515
|
// Transparent so the cell inherits the bar's background
|
|
@@ -2622,14 +2622,14 @@ function NotificationsBellButton({
|
|
|
2622
2622
|
variant = "cell",
|
|
2623
2623
|
className
|
|
2624
2624
|
}) {
|
|
2625
|
-
const ctx =
|
|
2625
|
+
const ctx = _chunkGQJXOX5Scjs.useOptionalNotifications.call(void 0, );
|
|
2626
2626
|
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _75 => _75.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
2627
2627
|
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _76 => _76.isOpen]), () => ( false));
|
|
2628
2628
|
const onClick = _optionalChain([ctx, 'optionalAccess', _77 => _77.toggle]);
|
|
2629
2629
|
const floating = variant === "floating";
|
|
2630
2630
|
const iconClassName = variant === "cell" ? "h-6 w-6" : "h-5 w-5";
|
|
2631
2631
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2632
|
-
|
|
2632
|
+
_chunkGQJXOX5Scjs.HeaderButton,
|
|
2633
2633
|
{
|
|
2634
2634
|
icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: iconClassName }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCON36SEJcjs.BellIcon, { className: iconClassName }),
|
|
2635
2635
|
showUnreadDot: !isActive && hasUnread,
|
|
@@ -2652,14 +2652,14 @@ function NotificationsBellButton({
|
|
|
2652
2652
|
// src/components/navigation/ticket-alerts-button.tsx
|
|
2653
2653
|
|
|
2654
2654
|
function TicketAlertsButton({ href, disabled, variant = "cell", className }) {
|
|
2655
|
-
const live =
|
|
2655
|
+
const live = _chunkMWQOM2EIcjs.useOptionalTicketLive.call(void 0, );
|
|
2656
2656
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
2657
2657
|
if (!live || !live.authed || live.unreadTotal === 0) return null;
|
|
2658
2658
|
const targetId = live.nextUnreadTicketId;
|
|
2659
|
-
const target = targetId ?
|
|
2660
|
-
const handleClick = () =>
|
|
2659
|
+
const target = targetId ? _chunk4ASUUB3Acjs.buildTicketOpenHref.call(void 0, href, targetId) : href;
|
|
2660
|
+
const handleClick = () => _chunkXCVH5BCZcjs.executeNavigationImperative.call(void 0, { runtime, href: target });
|
|
2661
2661
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2662
|
-
|
|
2662
|
+
_chunkGQJXOX5Scjs.HeaderButton,
|
|
2663
2663
|
{
|
|
2664
2664
|
icon: (
|
|
2665
2665
|
// Glyph inherits HeaderButton's standard cell coloring (secondary at
|
|
@@ -2669,7 +2669,7 @@ function TicketAlertsButton({ href, disabled, variant = "cell", className }) {
|
|
|
2669
2669
|
// existing while updates are unread — never by tinting the glyph.
|
|
2670
2670
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
2671
2671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk365ZKGGOcjs.LifeBuoyIcon, { className: variant === "compact" ? "h-5 w-5" : "h-6 w-6" }),
|
|
2672
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2672
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQJXOX5Scjs.UnreadCountBadge, { count: live.unreadTotal })
|
|
2673
2673
|
] })
|
|
2674
2674
|
),
|
|
2675
2675
|
"aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
|
|
@@ -2742,7 +2742,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2742
2742
|
const dimmedClass = disabled ? "pointer-events-none opacity-50" : "";
|
|
2743
2743
|
const cellDivider = "border-l border-ods-border";
|
|
2744
2744
|
const renderCustomCells = (placement) => _optionalChain([customCells, 'optionalAccess', _78 => _78.filter, 'call', _79 => _79((cell) => (_nullishCoalesce(cell.placement, () => ( "start"))) === placement), 'access', _80 => _80.map, 'call', _81 => _81((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2745
|
-
|
|
2745
|
+
_chunkGQJXOX5Scjs.HeaderButton,
|
|
2746
2746
|
{
|
|
2747
2747
|
type: "button",
|
|
2748
2748
|
icon: cell.icon,
|
|
@@ -2763,7 +2763,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2763
2763
|
leading: (
|
|
2764
2764
|
// Mobile: Burger Menu Button
|
|
2765
2765
|
!isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2766
|
-
|
|
2766
|
+
_chunkGQJXOX5Scjs.HeaderButton,
|
|
2767
2767
|
{
|
|
2768
2768
|
onClick: onToggleMobileMenu,
|
|
2769
2769
|
isActive: isMobileMenuOpen,
|
|
@@ -2789,7 +2789,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2789
2789
|
center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
|
|
2790
2790
|
sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2791
2791
|
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2792
|
-
|
|
2792
|
+
_chunkGQJXOX5Scjs.HeaderButton,
|
|
2793
2793
|
{
|
|
2794
2794
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "h-6 w-6" }),
|
|
2795
2795
|
"aria-label": "Search",
|
|
@@ -2807,7 +2807,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2807
2807
|
}
|
|
2808
2808
|
),
|
|
2809
2809
|
renderCustomCells("start"),
|
|
2810
|
-
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2810
|
+
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQJXOX5Scjs.TimeTrackerHeaderButton, { disabled, className: _chunk63A4GZMBcjs.cn.call(void 0, cellDivider, dimmedClass) }),
|
|
2811
2811
|
showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2812
2812
|
NotificationsBellButton,
|
|
2813
2813
|
{
|
|
@@ -2826,7 +2826,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
2826
2826
|
),
|
|
2827
2827
|
isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenu, { children: [
|
|
2828
2828
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2829
|
-
|
|
2829
|
+
_chunkGQJXOX5Scjs.HeaderButton,
|
|
2830
2830
|
{
|
|
2831
2831
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2832
2832
|
_chunkNFNSPLGCcjs.SquareAvatar,
|
|
@@ -3250,7 +3250,7 @@ function SidePanelResizeHandle({ state, label, controls }) {
|
|
|
3250
3250
|
onPointerCancel: endDrag,
|
|
3251
3251
|
onKeyDown: handleKeyDown,
|
|
3252
3252
|
className: "group absolute inset-y-0 left-0 z-10 flex w-4 -translate-x-1/2 cursor-col-resize touch-none select-none items-center justify-center outline-none",
|
|
3253
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3253
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWPMJUYW3cjs.PanelResizeGrip, {})
|
|
3254
3254
|
}
|
|
3255
3255
|
);
|
|
3256
3256
|
}
|
|
@@ -3350,7 +3350,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
3350
3350
|
}) {
|
|
3351
3351
|
const panelRef = _react.useRef.call(void 0, null);
|
|
3352
3352
|
_overlays.usePreventScroll.call(void 0, { isDisabled: !isOpen });
|
|
3353
|
-
|
|
3353
|
+
_chunkSSSI2RBVcjs.useFocusTrap.call(void 0, panelRef, isOpen, { onEscape: onClose });
|
|
3354
3354
|
const handleItemClick = _react.useCallback.call(void 0,
|
|
3355
3355
|
(item) => {
|
|
3356
3356
|
if (item.onClick) {
|
|
@@ -3480,7 +3480,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
3480
3480
|
{
|
|
3481
3481
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3482
3482
|
"absolute inset-0",
|
|
3483
|
-
|
|
3483
|
+
_chunkNMLNZCK2cjs.OVERLAY_BACKDROP_CLASS,
|
|
3484
3484
|
"transition-all duration-300 motion-reduce:transition-none",
|
|
3485
3485
|
isOpen ? "pointer-events-auto opacity-100" : "opacity-0"
|
|
3486
3486
|
),
|
|
@@ -3552,7 +3552,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
3552
3552
|
{
|
|
3553
3553
|
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
3554
3554
|
"absolute inset-0 z-[100] md:hidden",
|
|
3555
|
-
|
|
3555
|
+
_chunkNMLNZCK2cjs.OVERLAY_BACKDROP_CLASS,
|
|
3556
3556
|
"transition-all duration-300 motion-reduce:transition-none",
|
|
3557
3557
|
isOpen ? "opacity-100" : "pointer-events-none opacity-0"
|
|
3558
3558
|
),
|
|
@@ -3752,7 +3752,7 @@ function AppLayout({
|
|
|
3752
3752
|
disabled
|
|
3753
3753
|
}
|
|
3754
3754
|
),
|
|
3755
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3755
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGQJXOX5Scjs.NotificationDrawer, { showClose: !desktopHeader }),
|
|
3756
3756
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3757
3757
|
"div",
|
|
3758
3758
|
{
|
|
@@ -3789,7 +3789,7 @@ function AppLayout({
|
|
|
3789
3789
|
style: bottomInset > 0 || dockFloats ? {
|
|
3790
3790
|
paddingBottom: bottomInset,
|
|
3791
3791
|
[COMPOSER_DOCK_INSET_VAR]: `${dockFloats ? dockHeight : 0}px`,
|
|
3792
|
-
...dockFloats && dockHeight > 0 ?
|
|
3792
|
+
...dockFloats && dockHeight > 0 ? _chunkGQJXOX5Scjs.previewFadeMask.call(void 0, `calc(100% - ${dockHeight}px)`) : {}
|
|
3793
3793
|
} : void 0,
|
|
3794
3794
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUAI4VMEFcjs.ContentAreaWidthContext.Provider, { value: contentAreaWidth, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOT6P57ZScjs.ComposerDockHeightContext.Provider, { value: hasDock ? dockHeight : 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: adaptive ? "ods-content-scope" : "contents", children }) }) })
|
|
3795
3795
|
}
|