@flamingo-stack/openframe-frontend-core 0.0.749 → 0.0.751
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-45YRDD7W.cjs → chunk-4WNBVNGP.cjs} +13 -13
- package/dist/{chunk-SOPVUD2Y.cjs → chunk-53I4YHRT.cjs} +3 -3
- package/dist/{chunk-HOEVD6EN.cjs → chunk-5P7WBA2U.cjs} +4 -4
- package/dist/{chunk-KRAQEZPB.cjs → chunk-5WC535NJ.cjs} +17 -17
- package/dist/{chunk-SGL47BS2.cjs → chunk-77IKUBSH.cjs} +6 -6
- package/dist/{chunk-E3KFEOFA.cjs → chunk-CVBHB4OZ.cjs} +4 -4
- package/dist/{chunk-CXV7VBSI.cjs → chunk-ESRA7NUI.cjs} +41 -41
- package/dist/{chunk-2J2OBP4N.cjs → chunk-H52GKJ36.cjs} +9 -9
- package/dist/{chunk-G7SBHMRR.cjs → chunk-KHKPLOU4.cjs} +69 -39
- package/dist/{chunk-SECT4H34.cjs → chunk-LIGDPFDM.cjs} +227 -172
- package/dist/{chunk-LQT2ITMG.cjs → chunk-MJFTWHV6.cjs} +4 -4
- package/dist/{chunk-ZLF55RDR.cjs → chunk-MU7FFN6M.cjs} +34 -34
- package/dist/{chunk-OZLIKBKC.cjs → chunk-NOUROZYH.cjs} +13 -13
- package/dist/{chunk-GOFEOCQN.cjs → chunk-QOONZMSQ.cjs} +9 -9
- package/dist/{chunk-VEVIMDNK.cjs → chunk-RVLQHSID.cjs} +70 -70
- package/dist/{chunk-BN6NA5RM.cjs → chunk-SDOCZTST.cjs} +32 -32
- package/dist/{chunk-V3UJ6NDR.cjs → chunk-TPH4SRR2.cjs} +6 -6
- package/dist/{chunk-4FWURR3W.cjs → chunk-VUWPLQBY.cjs} +2 -2
- package/dist/{chunk-WZX26ODJ.cjs → chunk-X4LAMJHD.cjs} +54 -35
- package/dist/{cloud-tenants-2MYFHEYY.cjs → cloud-tenants-JDPC2DYF.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/chat/hooks/use-jetstream-dialog-subscription.d.ts +7 -5
- package/dist/components/chat/hooks/use-jetstream-dialog-subscription.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-jetstream-dialog-subscription.js +33 -14
- package/dist/components/chat/index.cjs +4 -4
- package/dist/components/chat/types/api.types.d.ts +27 -8
- package/dist/components/chat/types/api.types.d.ts.map +1 -1
- package/dist/components/chat/types/network.types.d.ts +2 -1
- package/dist/components/chat/types/network.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/auth/login-form.d.ts +34 -21
- package/dist/components/features/auth/login-form.d.ts.map +1 -1
- package/dist/components/features/auth/login-form.js +77 -39
- package/dist/components/features/auth/sso-providers.d.ts +7 -1
- package/dist/components/features/auth/sso-providers.d.ts.map +1 -1
- package/dist/components/features/auth/sso-providers.js +22 -4
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +67 -67
- package/dist/components/index.cjs +39 -39
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/ui/index.cjs +6 -6
- package/dist/{devices-FVXAGKVX.cjs → devices-ADQWD37J.cjs} +7 -7
- package/dist/{embeddable-chat-SNYQSMS7.cjs → embeddable-chat-7YF2JMPS.cjs} +65 -65
- package/dist/hooks/index.cjs +3 -3
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-ZL3ZHBSL.cjs → knowledge-TNS64EGK.cjs} +7 -7
- package/dist/{logs-KQCWDIOB.cjs → logs-754MDDE4.cjs} +14 -14
- package/dist/nats/index.cjs +2 -2
- package/dist/nats/nats.d.ts +33 -7
- package/dist/nats/nats.d.ts.map +1 -1
- package/dist/nats/nats.js +41 -11
- package/dist/{policies-ARDCZ3CT.cjs → policies-Q23DPIH6.cjs} +10 -10
- package/dist/{scripts-ZAMVWCY4.cjs → scripts-DCYLK2RZ.cjs} +11 -11
- package/dist/{software-update-6F7BIYS3.cjs → software-update-XCMGUIER.cjs} +9 -9
- package/package.json +1 -1
- package/src/components/chat/hooks/use-jetstream-dialog-subscription.ts +59 -23
- package/src/components/chat/types/api.types.ts +27 -8
- package/src/components/chat/types/network.types.ts +2 -1
- package/src/components/features/auth/login-form.tsx +121 -64
- package/src/components/features/auth/sso-providers.tsx +21 -0
- package/src/nats/nats.ts +91 -20
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunk5P7WBA2Ucjs = require('./chunk-5P7WBA2U.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunkHOEVD6ENcjs = require('./chunk-HOEVD6EN.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkLIGDPFDMcjs = require('./chunk-LIGDPFDM.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkNTGIQP7Ocjs = require('./chunk-NTGIQP7O.cjs');
|
|
@@ -21,7 +21,7 @@ var _chunkNTGIQP7Ocjs = require('./chunk-NTGIQP7O.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkVUWPLQBYcjs = require('./chunk-VUWPLQBY.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkLU7TD6QScjs = require('./chunk-LU7TD6QS.cjs');
|
|
@@ -32,10 +32,10 @@ var _chunk24I6RFVUcjs = require('./chunk-24I6RFVU.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkX4LAMJHDcjs = require('./chunk-X4LAMJHD.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkTPH4SRR2cjs = require('./chunk-TPH4SRR2.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
var _chunkLVO7FALWcjs = require('./chunk-LVO7FALW.cjs');
|
|
@@ -184,7 +184,7 @@ function NavItemRow({
|
|
|
184
184
|
className
|
|
185
185
|
}) {
|
|
186
186
|
const label = navLinkLabel(link);
|
|
187
|
-
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
const counter = badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLIGDPFDMcjs.UnreadCountBadge, { count: badge, className: "static shrink-0" }) : null;
|
|
188
188
|
const singleLine = !link.description && !link.builtOn;
|
|
189
189
|
const rowClassName = _chunk3ATAYP36cjs.cn.call(void 0,
|
|
190
190
|
ROW_CLASSES[variant],
|
|
@@ -445,8 +445,8 @@ function SiteHeader({
|
|
|
445
445
|
}) {
|
|
446
446
|
const [show, setShow] = _react.useState.call(void 0, true);
|
|
447
447
|
const lastScrollY = _react.useRef.call(void 0, 0);
|
|
448
|
-
const activeId =
|
|
449
|
-
const { openId, close, getTriggerProps, getPanelProps } =
|
|
448
|
+
const activeId = _chunkVUWPLQBYcjs.useActiveSection.call(void 0, nav.menus, pathname);
|
|
449
|
+
const { openId, close, getTriggerProps, getPanelProps } = _chunkVUWPLQBYcjs.useNavMenus.call(void 0, { pathname });
|
|
450
450
|
const [trail, setTrail] = _react.useState.call(void 0, { id: null, from: null });
|
|
451
451
|
if (trail.id !== openId) setTrail({ id: openId, from: trail.id });
|
|
452
452
|
const previousId = trail.id === openId ? trail.from : trail.id;
|
|
@@ -572,7 +572,7 @@ function SiteHeader({
|
|
|
572
572
|
leading: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
573
573
|
leading,
|
|
574
574
|
mobile && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
575
|
-
|
|
575
|
+
_chunkLIGDPFDMcjs.HeaderButton,
|
|
576
576
|
{
|
|
577
577
|
className: "border-r border-ods-border lg:hidden",
|
|
578
578
|
onClick: mobile.onToggle,
|
|
@@ -598,7 +598,7 @@ function SiteHeader({
|
|
|
598
598
|
centerClassName: "justify-start pl-[var(--spacing-system-xlf)]",
|
|
599
599
|
cta: hasRight ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
600
600
|
mingo && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
601
|
-
|
|
601
|
+
_chunkX4LAMJHDcjs.MingoAiButton,
|
|
602
602
|
{
|
|
603
603
|
source: mingo.source,
|
|
604
604
|
icon: mingo.icon,
|
|
@@ -662,9 +662,9 @@ function MobileNavSheetBody({
|
|
|
662
662
|
const sheetRef = _react.useRef.call(void 0, null);
|
|
663
663
|
const menus = [..._nullishCoalesce(nav.mobileMenus, () => ( nav.menus)), ..._nullishCoalesce(extraMenus, () => ( []))];
|
|
664
664
|
_overlays.usePreventScroll.call(void 0, );
|
|
665
|
-
|
|
665
|
+
_chunkVUWPLQBYcjs.useFocusTrap.call(void 0, sheetRef, true, { onEscape: onClose });
|
|
666
666
|
const [openGroups, setOpenGroups] = _react.useState.call(void 0, () => {
|
|
667
|
-
const active =
|
|
667
|
+
const active = _chunkVUWPLQBYcjs.resolveActiveSection.call(void 0, menus, pathname);
|
|
668
668
|
return active ? { [active]: true } : {};
|
|
669
669
|
});
|
|
670
670
|
const primaryCta = typeof nav.primaryCta === "object" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "accent", href: nav.primaryCta.href, onClick: onClose, className: "w-full", children: nav.primaryCta.label }) : nav.primaryCta === "none" ? null : _nullishCoalesce(cta, () => ( null));
|
|
@@ -700,7 +700,7 @@ function MobileNavSheetBody({
|
|
|
700
700
|
] }),
|
|
701
701
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 overflow-y-auto overflow-x-hidden overscroll-contain px-5", children: [
|
|
702
702
|
askAI && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
703
|
-
|
|
703
|
+
_chunkX4LAMJHDcjs.MingoAiButton,
|
|
704
704
|
{
|
|
705
705
|
variant: "field",
|
|
706
706
|
source: askAI.source,
|
|
@@ -878,7 +878,7 @@ function SiteFooter({
|
|
|
878
878
|
const columns = nav.footerColumns;
|
|
879
879
|
const accordion = columns.length > ACCORDION_OVER;
|
|
880
880
|
const socialRow = _nullishCoalesce(social, () => ( (nav.brand.social.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
881
|
-
|
|
881
|
+
_chunkLIGDPFDMcjs.SocialIconRow,
|
|
882
882
|
{
|
|
883
883
|
compact: true,
|
|
884
884
|
links: nav.brand.social.map((link) => ({
|
|
@@ -981,12 +981,12 @@ var _framermotion = require('framer-motion');
|
|
|
981
981
|
|
|
982
982
|
function SlidingSidebar({ config }) {
|
|
983
983
|
const [expandedItems, setExpandedItems] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
984
|
-
const mounted =
|
|
984
|
+
const mounted = _chunkTPH4SRR2cjs.useIsHydrated.call(void 0, );
|
|
985
985
|
const headerHeight = _chunk24I6RFVUcjs.useHeaderHeight.call(void 0, );
|
|
986
986
|
const asideRef = _react.useRef.call(void 0, null);
|
|
987
987
|
const prefersReducedMotion = _framermotion.useReducedMotion.call(void 0, );
|
|
988
988
|
_overlays.usePreventScroll.call(void 0, { isDisabled: !config.isOpen });
|
|
989
|
-
|
|
989
|
+
_chunkVUWPLQBYcjs.useFocusTrap.call(void 0, asideRef, config.isOpen, { onEscape: config.onClose, contain: false });
|
|
990
990
|
const toggleExpanded = (itemId) => {
|
|
991
991
|
const newExpanded = new Set(expandedItems);
|
|
992
992
|
if (newExpanded.has(itemId)) {
|
|
@@ -1254,7 +1254,7 @@ var NavigationSidebarItemButton = _react.memo.call(void 0, function NavigationSi
|
|
|
1254
1254
|
_react.cloneElement.call(void 0, item.icon, {
|
|
1255
1255
|
color: isActive && !disabled ? "text-ods-accent" : "text-ods-text-secondary"
|
|
1256
1256
|
}),
|
|
1257
|
-
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1257
|
+
hasUnread && !showLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLIGDPFDMcjs.UnreadDot, { size: "fixed" })
|
|
1258
1258
|
] }),
|
|
1259
1259
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1260
1260
|
"span",
|
|
@@ -1355,7 +1355,7 @@ function NavigationSidebar({ config, disabled = false, pushOnTablet = false }) {
|
|
|
1355
1355
|
setTabletFor(isTablet);
|
|
1356
1356
|
if (isTablet) setTabletMinimized(true);
|
|
1357
1357
|
}
|
|
1358
|
-
const hydrated =
|
|
1358
|
+
const hydrated = _chunkTPH4SRR2cjs.useIsHydrated.call(void 0, );
|
|
1359
1359
|
const minimized = hydrated ? isTablet ? tabletMinimized : desktopMinimized : _nullishCoalesce(config.minimized, () => ( false));
|
|
1360
1360
|
const [transitionsEnabled, setTransitionsEnabled] = _react.useState.call(void 0, false);
|
|
1361
1361
|
const isOverlayOpen = isTablet && !minimized;
|
|
@@ -1547,7 +1547,7 @@ function HeaderGlobalSearch({
|
|
|
1547
1547
|
"form",
|
|
1548
1548
|
{
|
|
1549
1549
|
onSubmit: handleSubmit,
|
|
1550
|
-
...
|
|
1550
|
+
..._chunkX4LAMJHDcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
1551
1551
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
1552
1552
|
"flex h-full flex-1 items-center gap-2 px-3",
|
|
1553
1553
|
// Transparent so the cell inherits the bar's background
|
|
@@ -1672,16 +1672,16 @@ function HeaderOrganizationFilter({
|
|
|
1672
1672
|
// src/components/navigation/ticket-alerts-button.tsx
|
|
1673
1673
|
|
|
1674
1674
|
function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
1675
|
-
const live =
|
|
1675
|
+
const live = _chunk5P7WBA2Ucjs.useOptionalTicketLive.call(void 0, );
|
|
1676
1676
|
if (!live || !live.authed || live.unreadTotal === 0) return null;
|
|
1677
1677
|
const targetId = live.nextUnreadTicketId;
|
|
1678
|
-
const target = targetId ?
|
|
1678
|
+
const target = targetId ? _chunkX4LAMJHDcjs.buildTicketOpenHref.call(void 0, href, targetId) : href;
|
|
1679
1679
|
const handleClick = () => {
|
|
1680
1680
|
if (onNavigate) onNavigate(target);
|
|
1681
1681
|
else window.location.assign(target);
|
|
1682
1682
|
};
|
|
1683
1683
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1684
|
-
|
|
1684
|
+
_chunkLIGDPFDMcjs.HeaderButton,
|
|
1685
1685
|
{
|
|
1686
1686
|
icon: (
|
|
1687
1687
|
// Glyph inherits HeaderButton's standard cell coloring (secondary at
|
|
@@ -1691,7 +1691,7 @@ function TicketAlertsButton({ href, onNavigate, disabled, className }) {
|
|
|
1691
1691
|
// existing while updates are unread — never by tinting the glyph.
|
|
1692
1692
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "relative inline-flex", children: [
|
|
1693
1693
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk365ZKGGOcjs.LifeBuoyIcon, { className: "h-6 w-6" }),
|
|
1694
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1694
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLIGDPFDMcjs.UnreadCountBadge, { count: live.unreadTotal })
|
|
1695
1695
|
] })
|
|
1696
1696
|
),
|
|
1697
1697
|
"aria-label": `Support tickets \u2014 ${live.unreadTotal} unread ${live.unreadTotal === 1 ? "update" : "updates"}`,
|
|
@@ -1767,7 +1767,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1767
1767
|
leading: (
|
|
1768
1768
|
// Mobile: Burger Menu Button
|
|
1769
1769
|
!isMdUp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1770
|
-
|
|
1770
|
+
_chunkLIGDPFDMcjs.HeaderButton,
|
|
1771
1771
|
{
|
|
1772
1772
|
onClick: onToggleMobileMenu,
|
|
1773
1773
|
isActive: isMobileMenuOpen,
|
|
@@ -1793,7 +1793,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1793
1793
|
center: showSearch ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderGlobalSearch, { onSubmit: onSearch, className: _chunk3ATAYP36cjs.cn.call(void 0, "w-full", dimmedClass) }) : void 0,
|
|
1794
1794
|
sideActions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1795
1795
|
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1796
|
-
|
|
1796
|
+
_chunkLIGDPFDMcjs.HeaderButton,
|
|
1797
1797
|
{
|
|
1798
1798
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "h-6 w-6" }),
|
|
1799
1799
|
"aria-label": "Search",
|
|
@@ -1810,7 +1810,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1810
1810
|
className: _chunk3ATAYP36cjs.cn.call(void 0, "hidden lg:flex", dimmedClass)
|
|
1811
1811
|
}
|
|
1812
1812
|
),
|
|
1813
|
-
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1813
|
+
showTimeTracker && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLIGDPFDMcjs.TimeTrackerHeaderButton, { disabled, className: _chunk3ATAYP36cjs.cn.call(void 0, cellDivider, dimmedClass) }),
|
|
1814
1814
|
showNotifications && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1815
1815
|
NotificationsHeaderButton,
|
|
1816
1816
|
{
|
|
@@ -1830,7 +1830,7 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1830
1830
|
),
|
|
1831
1831
|
isMdUp && showUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkMGF3FUKDcjs.DropdownMenu, { children: [
|
|
1832
1832
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMGF3FUKDcjs.DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1833
|
-
|
|
1833
|
+
_chunkLIGDPFDMcjs.HeaderButton,
|
|
1834
1834
|
{
|
|
1835
1835
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1836
1836
|
_chunkJHQNUWFMcjs.SquareAvatar,
|
|
@@ -1915,12 +1915,12 @@ var AppHeader = _react2.default.memo(function AppHeaderImpl({
|
|
|
1915
1915
|
);
|
|
1916
1916
|
});
|
|
1917
1917
|
function NotificationsHeaderButton({ fallbackUnreadCount, disabled, dimmedClass }) {
|
|
1918
|
-
const ctx =
|
|
1918
|
+
const ctx = _chunkLIGDPFDMcjs.useOptionalNotifications.call(void 0, );
|
|
1919
1919
|
const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _52 => _52.unreadCount]), () => ( fallbackUnreadCount))) > 0;
|
|
1920
1920
|
const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _53 => _53.isOpen]), () => ( false));
|
|
1921
1921
|
const onClick = _optionalChain([ctx, 'optionalAccess', _54 => _54.toggle]);
|
|
1922
1922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1923
|
-
|
|
1923
|
+
_chunkLIGDPFDMcjs.HeaderButton,
|
|
1924
1924
|
{
|
|
1925
1925
|
icon: isActive ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWWUSFOJ7cjs.XmarkIcon, { className: "h-6 w-6" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCON36SEJcjs.BellIcon, { className: "h-6 w-6" }),
|
|
1926
1926
|
showUnreadDot: !isActive && hasUnread,
|
|
@@ -2372,7 +2372,7 @@ var MobileBurgerMenu = _react2.default.memo(function MobileBurgerMenuImpl({
|
|
|
2372
2372
|
}) {
|
|
2373
2373
|
const panelRef = _react.useRef.call(void 0, null);
|
|
2374
2374
|
_overlays.usePreventScroll.call(void 0, { isDisabled: !isOpen });
|
|
2375
|
-
|
|
2375
|
+
_chunkVUWPLQBYcjs.useFocusTrap.call(void 0, panelRef, isOpen, { onEscape: onClose });
|
|
2376
2376
|
const handleItemClick = _react.useCallback.call(void 0,
|
|
2377
2377
|
(item) => {
|
|
2378
2378
|
if (item.onClick) {
|
|
@@ -2593,7 +2593,7 @@ function AppLayout({
|
|
|
2593
2593
|
}),
|
|
2594
2594
|
[]
|
|
2595
2595
|
);
|
|
2596
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2596
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLIGDPFDMcjs.AppLayoutDrawerContainerContext.Provider, { value: drawerContainer, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLIGDPFDMcjs.AppLayoutDrawerCoordinationContext.Provider, { value: drawerCoordination, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex h-screen flex-col bg-ods-bg", className), children: [
|
|
2597
2597
|
topBar,
|
|
2598
2598
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative flex min-h-0 flex-1", children: [
|
|
2599
2599
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, NavigationSidebar, { config: sidebarConfig, disabled, pushOnTablet: hasSidePanel }),
|
|
@@ -2617,7 +2617,7 @@ function AppLayout({
|
|
|
2617
2617
|
disabled
|
|
2618
2618
|
}
|
|
2619
2619
|
),
|
|
2620
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2620
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLIGDPFDMcjs.NotificationDrawer, {}),
|
|
2621
2621
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2622
2622
|
"div",
|
|
2623
2623
|
{
|
|
@@ -370,7 +370,7 @@ var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
|
370
370
|
|
|
371
371
|
|
|
372
372
|
|
|
373
|
-
var
|
|
373
|
+
var _chunkKHKPLOU4cjs = require('./chunk-KHKPLOU4.cjs');
|
|
374
374
|
|
|
375
375
|
|
|
376
376
|
var _chunkRB6BSE3Ocjs = require('./chunk-RB6BSE3O.cjs');
|
|
@@ -13219,7 +13219,7 @@ function useNatsDialogSubscription({
|
|
|
13219
13219
|
_react.useEffect.call(void 0, () => {
|
|
13220
13220
|
if (!enabled || !wsUrl) {
|
|
13221
13221
|
if (currentWsUrlRef.current && clientRef.current) {
|
|
13222
|
-
|
|
13222
|
+
_chunkKHKPLOU4cjs.releaseClient.call(void 0, currentWsUrlRef.current);
|
|
13223
13223
|
clientRef.current = null;
|
|
13224
13224
|
currentWsUrlRef.current = "";
|
|
13225
13225
|
setIsConnected(false);
|
|
@@ -13230,13 +13230,13 @@ function useNatsDialogSubscription({
|
|
|
13230
13230
|
return void 0;
|
|
13231
13231
|
}
|
|
13232
13232
|
if (currentWsUrlRef.current && currentWsUrlRef.current !== wsUrl && clientRef.current) {
|
|
13233
|
-
|
|
13233
|
+
_chunkKHKPLOU4cjs.releaseClient.call(void 0, currentWsUrlRef.current);
|
|
13234
13234
|
clientRef.current = null;
|
|
13235
13235
|
setIsConnected(false);
|
|
13236
13236
|
}
|
|
13237
13237
|
currentWsUrlRef.current = wsUrl;
|
|
13238
13238
|
const cfg = clientConfigRef.current;
|
|
13239
|
-
const sharedConn =
|
|
13239
|
+
const sharedConn = _chunkKHKPLOU4cjs.acquireClient.call(void 0, wsUrl, {
|
|
13240
13240
|
name: _nullishCoalesce(cfg.name, () => ( "openframe-frontend")),
|
|
13241
13241
|
user: _nullishCoalesce(cfg.user, () => ( "machine")),
|
|
13242
13242
|
pass: _nullishCoalesce(cfg.pass, () => ( ""))
|
|
@@ -13257,7 +13257,7 @@ function useNatsDialogSubscription({
|
|
|
13257
13257
|
abortControllerRef.current = null;
|
|
13258
13258
|
};
|
|
13259
13259
|
const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
|
|
13260
|
-
const lifecycle =
|
|
13260
|
+
const lifecycle = _chunkKHKPLOU4cjs.startConnectionLifecycle.call(void 0, {
|
|
13261
13261
|
conn: sharedConn,
|
|
13262
13262
|
wsUrl,
|
|
13263
13263
|
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _413 => _413.current, 'optionalCall', _414 => _414()]),
|
|
@@ -13291,7 +13291,7 @@ function useNatsDialogSubscription({
|
|
|
13291
13291
|
setIsSubscribed(false);
|
|
13292
13292
|
tearDownSubscriptions();
|
|
13293
13293
|
if (clientRef.current && currentWsUrlRef.current) {
|
|
13294
|
-
|
|
13294
|
+
_chunkKHKPLOU4cjs.releaseClient.call(void 0, currentWsUrlRef.current);
|
|
13295
13295
|
clientRef.current = null;
|
|
13296
13296
|
currentWsUrlRef.current = "";
|
|
13297
13297
|
}
|
|
@@ -67,7 +67,7 @@ var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
|
67
67
|
var _chunkASMNNSUQcjs = require('./chunk-ASMNNSUQ.cjs');
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkKHKPLOU4cjs = require('./chunk-KHKPLOU4.cjs');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
@@ -2520,7 +2520,7 @@ function useNatsClient(clientOptions, options = {}) {
|
|
|
2520
2520
|
const { autoConnect = true } = options;
|
|
2521
2521
|
const client = _react.useMemo.call(void 0, () => {
|
|
2522
2522
|
if (!clientOptions) return null;
|
|
2523
|
-
return
|
|
2523
|
+
return _chunkKHKPLOU4cjs.createNatsClient.call(void 0, clientOptions);
|
|
2524
2524
|
}, [clientOptions]);
|
|
2525
2525
|
const [status, setStatus] = _react.useState.call(void 0, "disconnected");
|
|
2526
2526
|
const [lastError, setLastError] = _react.useState.call(void 0, null);
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkTPH4SRR2cjs = require('./chunk-TPH4SRR2.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -162,7 +162,7 @@ var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
|
|
165
|
-
var
|
|
165
|
+
var _chunkKHKPLOU4cjs = require('./chunk-KHKPLOU4.cjs');
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
var _chunk2YXOD2KLcjs = require('./chunk-2YXOD2KL.cjs');
|
|
@@ -1908,8 +1908,8 @@ function makeComposeContentUrl(opts) {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
if (externalUrl) return { href: externalUrl, targetPlatform: _nullishCoalesce(targetPlatform, () => ( null)) };
|
|
1910
1910
|
const claimedOwner = _nullishCoalesce(targetPlatform, () => ( primaryPlatformOf(platforms)));
|
|
1911
|
-
const owner = claimedOwner &&
|
|
1912
|
-
const origin = owner ?
|
|
1911
|
+
const owner = claimedOwner && _chunkTPH4SRR2cjs.byKey.call(void 0, claimedOwner) ? claimedOwner : null;
|
|
1912
|
+
const origin = owner ? _chunkTPH4SRR2cjs.getPlatformProductionUrl.call(void 0, owner) : opts.contentOrigin;
|
|
1913
1913
|
return {
|
|
1914
1914
|
href: `${origin.replace(/\/+$/, "")}/${seg}/${_optionalChain([slugHint, 'optionalAccess', _69 => _69.trim, 'call', _70 => _70()]) || identifier}`,
|
|
1915
1915
|
// Report the owner so `decideNewTab` can compare it against the current
|
|
@@ -2090,7 +2090,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2090
2090
|
if (heading.level > opts.maxLevel) continue;
|
|
2091
2091
|
let title = heading.text;
|
|
2092
2092
|
if (opts.stripFormattingMarkers) {
|
|
2093
|
-
title =
|
|
2093
|
+
title = _chunkTPH4SRR2cjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2094
2094
|
}
|
|
2095
2095
|
const baseId = _chunkCSJO7ZGNcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkCSJO7ZGNcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2096
2096
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2405,7 +2405,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2405
2405
|
function openAskAi(source, options) {
|
|
2406
2406
|
const prompt = _optionalChain([options, 'optionalAccess', _77 => _77.prompt, 'optionalAccess', _78 => _78.trim, 'call', _79 => _79()]);
|
|
2407
2407
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2408
|
-
window.dispatchEvent(new CustomEvent(
|
|
2408
|
+
window.dispatchEvent(new CustomEvent(_chunkTPH4SRR2cjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2409
2409
|
}
|
|
2410
2410
|
function MingoAiButton({
|
|
2411
2411
|
source,
|
|
@@ -2551,13 +2551,13 @@ function QuestionChips({
|
|
|
2551
2551
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: count }, (_, slot) => {
|
|
2552
2552
|
const prompt = loading ? void 0 : prompts[slot];
|
|
2553
2553
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2554
|
-
|
|
2554
|
+
_chunkTPH4SRR2cjs.QuickActionChipSkeleton,
|
|
2555
2555
|
{
|
|
2556
2556
|
variant: "question",
|
|
2557
2557
|
labelCh: SKELETON_LABEL_CH[slot % SKELETON_LABEL_CH.length]
|
|
2558
2558
|
}
|
|
2559
2559
|
) : prompt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2560
|
-
|
|
2560
|
+
_chunkTPH4SRR2cjs.QuickActionChipButton,
|
|
2561
2561
|
{
|
|
2562
2562
|
variant: "question",
|
|
2563
2563
|
label: prompt.label,
|
|
@@ -2589,7 +2589,7 @@ function AskPrompts({
|
|
|
2589
2589
|
if (!loading && prompts.length === 0) return null;
|
|
2590
2590
|
const end = align === "end";
|
|
2591
2591
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2592
|
-
|
|
2592
|
+
_chunkTPH4SRR2cjs.ScrollShadow,
|
|
2593
2593
|
{
|
|
2594
2594
|
axis: "horizontal",
|
|
2595
2595
|
color: fadeColor,
|
|
@@ -2893,7 +2893,7 @@ function QuickActionMarquee({
|
|
|
2893
2893
|
);
|
|
2894
2894
|
if (items.length === 0) return null;
|
|
2895
2895
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2896
|
-
|
|
2896
|
+
_chunkTPH4SRR2cjs.QuickActionWall,
|
|
2897
2897
|
{
|
|
2898
2898
|
chips,
|
|
2899
2899
|
mode,
|
|
@@ -3027,7 +3027,7 @@ ChatTicketItem.displayName = "ChatTicketItem";
|
|
|
3027
3027
|
|
|
3028
3028
|
var ChatTicketList = _react.forwardRef.call(void 0,
|
|
3029
3029
|
({ className, tickets, onTicketClick, isLoading = false, skeletonCount = 5, ...props }, ref) => {
|
|
3030
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
3030
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkTPH4SRR2cjs.useScrollFade.call(void 0, );
|
|
3031
3031
|
if (isLoading) {
|
|
3032
3032
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-h-0 flex-col gap-2", className), ...props, children: [
|
|
3033
3033
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "shrink-0 text-ods-text-secondary text-h5", children: "Your Chats:" }),
|
|
@@ -3047,8 +3047,8 @@ var ChatTicketList = _react.forwardRef.call(void 0,
|
|
|
3047
3047
|
),
|
|
3048
3048
|
children: [
|
|
3049
3049
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: scrollRef, className: "h-full overflow-y-auto overscroll-contain", onScroll: updateFade, children: tickets.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChatTicketItem, { ticket, onClick: onTicketClick }, ticket.id)) }),
|
|
3050
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3051
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3050
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
3051
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTPH4SRR2cjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
3052
3052
|
]
|
|
3053
3053
|
}
|
|
3054
3054
|
)
|
|
@@ -3829,6 +3829,8 @@ function useJetStreamDialogSubscription({
|
|
|
3829
3829
|
const [subscriptionLive, setIsSubscribed] = _react.useState.call(void 0, false);
|
|
3830
3830
|
const [reconnectionCount, setReconnectionCount] = _react.useState.call(void 0, 0);
|
|
3831
3831
|
const [recoveryCount, setRecoveryCount] = _react.useState.call(void 0, 0);
|
|
3832
|
+
const [caughtUpCount, setCaughtUpCount] = _react.useState.call(void 0, 0);
|
|
3833
|
+
const tailOpenedAtRef = _react.useRef.call(void 0, null);
|
|
3832
3834
|
const [seqEntry, setSeqEntry] = _react.useState.call(void 0, null);
|
|
3833
3835
|
const currentStreamSeq = seqEntry && seqEntry.dialogId === dialogId ? seqEntry.seq : null;
|
|
3834
3836
|
const isSubscribed = subscriptionLive && enabled && Boolean(dialogId) && isConnected;
|
|
@@ -3888,7 +3890,7 @@ function useJetStreamDialogSubscription({
|
|
|
3888
3890
|
_react.useEffect.call(void 0, () => {
|
|
3889
3891
|
if (!enabled || !wsUrl) {
|
|
3890
3892
|
if (currentWsUrlRef.current && clientRef.current) {
|
|
3891
|
-
|
|
3893
|
+
_chunkKHKPLOU4cjs.releaseClient.call(void 0, currentWsUrlRef.current);
|
|
3892
3894
|
clientRef.current = null;
|
|
3893
3895
|
currentWsUrlRef.current = "";
|
|
3894
3896
|
setIsConnected(false);
|
|
@@ -3899,13 +3901,13 @@ function useJetStreamDialogSubscription({
|
|
|
3899
3901
|
return void 0;
|
|
3900
3902
|
}
|
|
3901
3903
|
if (currentWsUrlRef.current && currentWsUrlRef.current !== wsUrl && clientRef.current) {
|
|
3902
|
-
|
|
3904
|
+
_chunkKHKPLOU4cjs.releaseClient.call(void 0, currentWsUrlRef.current);
|
|
3903
3905
|
clientRef.current = null;
|
|
3904
3906
|
setIsConnected(false);
|
|
3905
3907
|
}
|
|
3906
3908
|
currentWsUrlRef.current = wsUrl;
|
|
3907
3909
|
const cfg = clientConfigRef.current;
|
|
3908
|
-
const sharedConn =
|
|
3910
|
+
const sharedConn = _chunkKHKPLOU4cjs.acquireClient.call(void 0, wsUrl, {
|
|
3909
3911
|
name: _nullishCoalesce(cfg.name, () => ( "openframe-frontend-jetstream")),
|
|
3910
3912
|
user: _nullishCoalesce(cfg.user, () => ( "machine")),
|
|
3911
3913
|
pass: _nullishCoalesce(cfg.pass, () => ( ""))
|
|
@@ -3922,7 +3924,7 @@ function useJetStreamDialogSubscription({
|
|
|
3922
3924
|
subscriptionRef.current = null;
|
|
3923
3925
|
}
|
|
3924
3926
|
};
|
|
3925
|
-
const lifecycle =
|
|
3927
|
+
const lifecycle = _chunkKHKPLOU4cjs.startConnectionLifecycle.call(void 0, {
|
|
3926
3928
|
conn: sharedConn,
|
|
3927
3929
|
wsUrl,
|
|
3928
3930
|
onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _118 => _118.current, 'optionalCall', _119 => _119()]),
|
|
@@ -3960,7 +3962,7 @@ function useJetStreamDialogSubscription({
|
|
|
3960
3962
|
setIsSubscribed(false);
|
|
3961
3963
|
tearDownSubscription();
|
|
3962
3964
|
if (clientRef.current && currentWsUrlRef.current) {
|
|
3963
|
-
|
|
3965
|
+
_chunkKHKPLOU4cjs.releaseClient.call(void 0, currentWsUrlRef.current);
|
|
3964
3966
|
clientRef.current = null;
|
|
3965
3967
|
currentWsUrlRef.current = "";
|
|
3966
3968
|
}
|
|
@@ -4025,10 +4027,19 @@ function useJetStreamDialogSubscription({
|
|
|
4025
4027
|
const resumeSeq = highestStreamSeqRef.current;
|
|
4026
4028
|
const initialOptStart = optStartSeqRef.current;
|
|
4027
4029
|
const startSeq = resumeSeq != null ? resumeSeq + 1 : initialOptStart != null ? initialOptStart + 1 : void 0;
|
|
4030
|
+
const opened = tailOpenedAtRef.current;
|
|
4031
|
+
let owesCatchUp = opened !== null && opened.dialogId === dialogId && reconnectionCount > opened.count;
|
|
4032
|
+
if (!owesCatchUp) tailOpenedAtRef.current = { dialogId, count: reconnectionCount };
|
|
4028
4033
|
let cancelled = false;
|
|
4034
|
+
const settleCatchUp = () => {
|
|
4035
|
+
if (cancelled || !owesCatchUp) return;
|
|
4036
|
+
owesCatchUp = false;
|
|
4037
|
+
setCaughtUpCount((c) => c + 1);
|
|
4038
|
+
};
|
|
4029
4039
|
void (async () => {
|
|
4040
|
+
let handle;
|
|
4030
4041
|
try {
|
|
4031
|
-
|
|
4042
|
+
handle = await client.subscribeJetStreamOrdered(
|
|
4032
4043
|
(msg) => {
|
|
4033
4044
|
if (cancelled) return;
|
|
4034
4045
|
const streamSeq = msg.info.streamSequence;
|
|
@@ -4063,24 +4074,31 @@ function useJetStreamDialogSubscription({
|
|
|
4063
4074
|
const now = Date.now();
|
|
4064
4075
|
if (now - lastRecoveryReportRef.current < RECOVERY_REPORT_FLOOR_MS) return;
|
|
4065
4076
|
lastRecoveryReportRef.current = now;
|
|
4077
|
+
owesCatchUp = true;
|
|
4066
4078
|
setRecoveryCount((c) => c + 1);
|
|
4067
|
-
}
|
|
4079
|
+
},
|
|
4080
|
+
onCaughtUp: settleCatchUp
|
|
4068
4081
|
}
|
|
4069
4082
|
);
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4083
|
+
} catch (e21) {
|
|
4084
|
+
if (cancelled) return;
|
|
4085
|
+
setIsSubscribed(false);
|
|
4086
|
+
settleCatchUp();
|
|
4087
|
+
return;
|
|
4088
|
+
}
|
|
4089
|
+
if (cancelled) {
|
|
4090
|
+
try {
|
|
4091
|
+
handle.unsubscribe();
|
|
4092
|
+
} catch (e22) {
|
|
4076
4093
|
}
|
|
4077
|
-
|
|
4078
|
-
|
|
4094
|
+
return;
|
|
4095
|
+
}
|
|
4096
|
+
subscriptionRef.current = handle;
|
|
4097
|
+
setIsSubscribed(true);
|
|
4098
|
+
try {
|
|
4079
4099
|
_optionalChain([onSubscribedRef, 'access', _124 => _124.current, 'optionalCall', _125 => _125()]);
|
|
4080
|
-
} catch (
|
|
4081
|
-
|
|
4082
|
-
setIsSubscribed(false);
|
|
4083
|
-
}
|
|
4100
|
+
} catch (e) {
|
|
4101
|
+
console.warn("[JetStream] onSubscribed threw:", e);
|
|
4084
4102
|
}
|
|
4085
4103
|
})();
|
|
4086
4104
|
return () => {
|
|
@@ -4100,6 +4118,7 @@ function useJetStreamDialogSubscription({
|
|
|
4100
4118
|
isConnected,
|
|
4101
4119
|
isSubscribed,
|
|
4102
4120
|
reconnectionCount: reconnectionCount + recoveryCount,
|
|
4121
|
+
caughtUpCount,
|
|
4103
4122
|
currentStreamSeq
|
|
4104
4123
|
};
|
|
4105
4124
|
}
|
|
@@ -4961,7 +4980,7 @@ function Section({ title, description, children }) {
|
|
|
4961
4980
|
] });
|
|
4962
4981
|
}
|
|
4963
4982
|
function ProxyCredentialsPanel({ description }) {
|
|
4964
|
-
const hydrated =
|
|
4983
|
+
const hydrated = _chunkTPH4SRR2cjs.useIsHydrated.call(void 0, );
|
|
4965
4984
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4966
4985
|
ProxyCredentialsForm,
|
|
4967
4986
|
{
|
|
@@ -5125,10 +5144,10 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5125
5144
|
|
|
5126
5145
|
// src/components/chat/index.ts
|
|
5127
5146
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5128
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5147
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-7YF2JMPS.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5129
5148
|
);
|
|
5130
5149
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5131
|
-
_react.useEffect.call(void 0, () =>
|
|
5150
|
+
_react.useEffect.call(void 0, () => _chunkTPH4SRR2cjs.holdAskAiOpens.call(void 0, ), []);
|
|
5132
5151
|
return _react.createElement.call(void 0, _react.Suspense, { fallback: null }, _react.createElement.call(void 0, LoadedEmbeddableChat, { ...props, ref }));
|
|
5133
5152
|
});
|
|
5134
5153
|
EmbeddableChat.displayName = "EmbeddableChat";
|
|
@@ -9,21 +9,21 @@ var _chunkSTEJZPIOcjs = require('./chunk-STEJZPIO.cjs');
|
|
|
9
9
|
var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkLIGDPFDMcjs = require('./chunk-LIGDPFDM.cjs');
|
|
13
13
|
require('./chunk-C6LPOYDM.cjs');
|
|
14
14
|
require('./chunk-NTGIQP7O.cjs');
|
|
15
15
|
require('./chunk-ALPRQ3ZX.cjs');
|
|
16
16
|
require('./chunk-HQQE74RO.cjs');
|
|
17
17
|
require('./chunk-DEY6XXGO.cjs');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-VUWPLQBY.cjs');
|
|
19
19
|
require('./chunk-LU7TD6QS.cjs');
|
|
20
20
|
require('./chunk-24I6RFVU.cjs');
|
|
21
21
|
require('./chunk-A6P6DHEZ.cjs');
|
|
22
22
|
require('./chunk-MZ4KBSH7.cjs');
|
|
23
23
|
require('./chunk-3TELPOVH.cjs');
|
|
24
24
|
require('./chunk-YUMFVQIN.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-X4LAMJHD.cjs');
|
|
26
|
+
require('./chunk-TPH4SRR2.cjs');
|
|
27
27
|
require('./chunk-LVO7FALW.cjs');
|
|
28
28
|
require('./chunk-3RFQPQ7Z.cjs');
|
|
29
29
|
require('./chunk-YRULLK7N.cjs');
|
|
@@ -1854,7 +1854,7 @@ require('./chunk-XZJCBIYR.cjs');
|
|
|
1854
1854
|
require('./chunk-UGCRLRCT.cjs');
|
|
1855
1855
|
require('./chunk-2QMBXGMQ.cjs');
|
|
1856
1856
|
require('./chunk-V45KLJQP.cjs');
|
|
1857
|
-
require('./chunk-
|
|
1857
|
+
require('./chunk-KHKPLOU4.cjs');
|
|
1858
1858
|
require('./chunk-L4UI63K6.cjs');
|
|
1859
1859
|
require('./chunk-OF336YWG.cjs');
|
|
1860
1860
|
require('./chunk-3LU4UFPS.cjs');
|
|
@@ -1920,7 +1920,7 @@ var getHref = () => "#";
|
|
|
1920
1920
|
function CloudTenantsScreen(_props) {
|
|
1921
1921
|
const cast = _chunkSTEJZPIOcjs.useProductDemoCast.call(void 0, );
|
|
1922
1922
|
const fixture = _react.useMemo.call(void 0, () => buildCloudTenantsFixture(cast), [cast]);
|
|
1923
|
-
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1923
|
+
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLIGDPFDMcjs.TenantsTableView, { rows: fixture.rows, getHref, now: fixture.now });
|
|
1924
1924
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-l)]", children: table });
|
|
1925
1925
|
}
|
|
1926
1926
|
|