@flamingo-stack/openframe-frontend-core 0.0.826 → 0.0.827
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/{case-study-card-O4IQCJAX.cjs → case-study-card-QMFGPABF.cjs} +2 -2
- package/dist/{chunk-QYJZDEG7.cjs → chunk-3WKQ2GCR.cjs} +4 -4
- package/dist/{chunk-5AQKXEMI.cjs → chunk-4ZH7RPEA.cjs} +178 -178
- package/dist/{chunk-QS6AKUUL.cjs → chunk-6GPMVHJN.cjs} +1 -1
- package/dist/{chunk-PJY3SYCS.cjs → chunk-6SFCI6D4.cjs} +20 -20
- package/dist/{chunk-37OYBX7W.cjs → chunk-6ZLCEIIC.cjs} +32 -32
- package/dist/{chunk-63T2KKDZ.cjs → chunk-7VC5FVWT.cjs} +62 -62
- package/dist/{chunk-74GWFGH2.cjs → chunk-ALRX2VIY.cjs} +11 -11
- package/dist/{chunk-TJG2BJ5J.cjs → chunk-B5H7RKFF.cjs} +4 -4
- package/dist/{chunk-2TQJSB62.cjs → chunk-BGT6JFMP.cjs} +12342 -12354
- package/dist/{chunk-6G4WRMEM.cjs → chunk-DR4P7AEU.cjs} +3 -3
- package/dist/{chunk-DRSFR5AC.cjs → chunk-FMSAN6SR.cjs} +101 -101
- package/dist/{chunk-XDHQC4XH.cjs → chunk-K6X7VP2Y.cjs} +39 -39
- package/dist/{chunk-IWQ2LJGW.cjs → chunk-LKP5R3EQ.cjs} +2 -2
- package/dist/{chunk-GZAPOCKS.cjs → chunk-OKTNRGM5.cjs} +49 -49
- package/dist/{chunk-HQ4FKHOO.cjs → chunk-QMQWXGCH.cjs} +71 -71
- package/dist/{chunk-AJM4YZTW.cjs → chunk-RPKWEBHC.cjs} +3 -3
- package/dist/{chunk-K34TTZAE.cjs → chunk-SVCTAOJR.cjs} +2 -2
- package/dist/{chunk-JDR72QFU.cjs → chunk-UULSSD56.cjs} +5 -5
- package/dist/{chunk-PWAKRRRO.cjs → chunk-UWGPYAB3.cjs} +46 -46
- package/dist/{chunk-MDEOCOIE.cjs → chunk-VAIML6YU.cjs} +17 -17
- package/dist/{chunk-HJAPXKWK.cjs → chunk-XPF74L76.cjs} +2 -2
- package/dist/{chunk-WGMU45NV.cjs → chunk-YKUL6JBI.cjs} +13 -13
- package/dist/{chunk-TYJ73DHW.cjs → chunk-YMLRDVPO.cjs} +8 -8
- package/dist/{chunk-EJNDTSKY.cjs → chunk-ZT7JHN7G.cjs} +74 -74
- package/dist/{cloud-tenants-F67KQ5GC.cjs → cloud-tenants-LKTWIZNS.cjs} +8 -8
- package/dist/components/case-studies/index.cjs +23 -23
- package/dist/components/chat/index.cjs +6 -6
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-stream-reducer.js +2 -15
- package/dist/components/chat/thinking-display.d.ts.map +1 -1
- package/dist/components/chat/thinking-display.js +2 -1
- package/dist/components/contact/index.cjs +9 -9
- package/dist/components/docs/index.cjs +12 -12
- package/dist/components/embeds/index.cjs +9 -9
- package/dist/components/faq/index.cjs +10 -10
- package/dist/components/features/index.cjs +8 -8
- package/dist/components/help-center-pages/index.cjs +83 -83
- package/dist/components/index.cjs +53 -53
- package/dist/components/meeting-scheduler/index.cjs +34 -34
- package/dist/components/navigation/index.cjs +11 -11
- package/dist/components/onboarding-guides/index.cjs +11 -11
- package/dist/components/product-demo/index.cjs +17 -17
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/index.cjs +8 -8
- package/dist/{devices-SJORCARH.cjs → devices-JWG72ANF.cjs} +9 -9
- package/dist/{embeddable-chat-7Z4CEZJL.cjs → embeddable-chat-5UT6UHEO.cjs} +76 -76
- package/dist/index.cjs +12 -12
- package/dist/{knowledge-QXILUVEM.cjs → knowledge-DQXVSHME.cjs} +9 -9
- package/dist/{logs-E3KQQQD6.cjs → logs-Z33VBTVX.cjs} +15 -15
- package/dist/{policies-IOYQY6TF.cjs → policies-XE4UMH6Z.cjs} +12 -12
- package/dist/{scripts-E5TWWUNP.cjs → scripts-MECQG5GG.cjs} +13 -13
- package/dist/{software-update-QZGYG4TD.cjs → software-update-PCSIA6BP.cjs} +11 -11
- package/package.json +1 -1
- package/src/components/chat/stream/chat-stream-reducer.ts +4 -18
- package/src/components/chat/thinking-display.tsx +2 -1
|
@@ -18,7 +18,7 @@ var _chunkOT6P57ZScjs = require('./chunk-OT6P57ZS.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkBGT6JFMPcjs = require('./chunk-BGT6JFMP.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -110,13 +110,13 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
110
110
|
var _chunkEWPR7662cjs = require('./chunk-EWPR7662.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
var
|
|
113
|
+
var _chunkYMLRDVPOcjs = require('./chunk-YMLRDVPO.cjs');
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
var
|
|
119
|
+
var _chunkFMSAN6SRcjs = require('./chunk-FMSAN6SR.cjs');
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
|
|
@@ -144,7 +144,7 @@ var _chunkGRHF5SWLcjs = require('./chunk-GRHF5SWL.cjs');
|
|
|
144
144
|
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
var
|
|
147
|
+
var _chunk6GPMVHJNcjs = require('./chunk-6GPMVHJN.cjs');
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
var _chunkYSDB6HGQcjs = require('./chunk-YSDB6HGQ.cjs');
|
|
@@ -215,7 +215,7 @@ function ChatMessageRow(props) {
|
|
|
215
215
|
}
|
|
216
216
|
function ChatMessageRowLoaded(props) {
|
|
217
217
|
const { displayName, avatarUrl, timeLabel, body, footer } = props;
|
|
218
|
-
const proxiedAvatar =
|
|
218
|
+
const proxiedAvatar = _chunkFMSAN6SRcjs.useProxiedImageUrl.call(void 0, _nullishCoalesce(avatarUrl, () => ( "")));
|
|
219
219
|
const resolvedAvatar = proxiedAvatar || avatarUrl || void 0;
|
|
220
220
|
const [failedSrc, setFailedSrc] = _react.useState.call(void 0, null);
|
|
221
221
|
const src = resolvedAvatar && resolvedAvatar !== failedSrc ? resolvedAvatar : void 0;
|
|
@@ -2057,7 +2057,7 @@ function lastPathSegment(url) {
|
|
|
2057
2057
|
function makeComposeContentUrl(opts) {
|
|
2058
2058
|
const suffixes = _nullishCoalesce(opts.suffixes, () => ( DEFAULT_CONTENT_SUFFIXES));
|
|
2059
2059
|
return ({ type: rawType, identifier, slug: slugHint, externalUrl, targetPlatform, platforms }) => {
|
|
2060
|
-
const type =
|
|
2060
|
+
const type = _chunkFMSAN6SRcjs.canonicalContentRefType.call(void 0, rawType);
|
|
2061
2061
|
const override = opts.overrides && Object.prototype.hasOwnProperty.call(opts.overrides, type) ? opts.overrides[type] : void 0;
|
|
2062
2062
|
if (override) return { ...override(identifier), hostOverride: true };
|
|
2063
2063
|
const seg = _nullishCoalesce((Object.prototype.hasOwnProperty.call(suffixes, type) ? suffixes[type] : void 0), () => ( type));
|
|
@@ -2250,7 +2250,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2250
2250
|
if (heading.level > opts.maxLevel) continue;
|
|
2251
2251
|
let title = heading.text;
|
|
2252
2252
|
if (opts.stripFormattingMarkers) {
|
|
2253
|
-
title =
|
|
2253
|
+
title = _chunkBGT6JFMPcjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2254
2254
|
}
|
|
2255
2255
|
const baseId = _chunkW4VEDSAXcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkW4VEDSAXcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2256
2256
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2507,7 +2507,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2507
2507
|
function openAskAi(source, options) {
|
|
2508
2508
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2509
2509
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2510
|
-
window.dispatchEvent(new CustomEvent(
|
|
2510
|
+
window.dispatchEvent(new CustomEvent(_chunkBGT6JFMPcjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2511
2511
|
}
|
|
2512
2512
|
function MingoAiButton({
|
|
2513
2513
|
source,
|
|
@@ -2550,7 +2550,7 @@ function MingoAiButton({
|
|
|
2550
2550
|
{
|
|
2551
2551
|
...props,
|
|
2552
2552
|
type: "button",
|
|
2553
|
-
...{ [
|
|
2553
|
+
...{ [_chunkBGT6JFMPcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2554
2554
|
variant: field ? "glyph" : "transparent",
|
|
2555
2555
|
size: "wrap",
|
|
2556
2556
|
font: "regular",
|
|
@@ -2575,7 +2575,7 @@ function MingoAiButton({
|
|
|
2575
2575
|
),
|
|
2576
2576
|
children: [
|
|
2577
2577
|
!field && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
2578
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2578
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.MingoEdgeLight, { className: "rounded-md" }),
|
|
2579
2579
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 overflow-hidden rounded-md", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2580
2580
|
"span",
|
|
2581
2581
|
{
|
|
@@ -2652,7 +2652,7 @@ function useAskPrompts({
|
|
|
2652
2652
|
const assistant = _chunkEWPR7662cjs.useAssistantRuntime.call(void 0, );
|
|
2653
2653
|
const base = assistantAvailable(assistant) ? assistant.askPromptsUrl : void 0;
|
|
2654
2654
|
const url = base && enabled ? buildAskPromptsUrl(base, { count, topic, exclude }) : null;
|
|
2655
|
-
const { data, dataUrl, error } =
|
|
2655
|
+
const { data, dataUrl, error } = _chunkYMLRDVPOcjs.useSelfFetch.call(void 0, url);
|
|
2656
2656
|
const landed = url !== null && (dataUrl === url || error);
|
|
2657
2657
|
return { prompts: landed ? _nullishCoalesce(_optionalChain([data, 'optionalAccess', _105 => _105.prompts]), () => ( [])) : [], isLoading: !!base && !landed, supported: !!base };
|
|
2658
2658
|
}
|
|
@@ -2791,9 +2791,9 @@ function QuestionChips({
|
|
|
2791
2791
|
{
|
|
2792
2792
|
"data-loading-item": true,
|
|
2793
2793
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2794
|
-
...prompt ? { [
|
|
2794
|
+
...prompt ? { [_chunkBGT6JFMPcjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2795
2795
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2796
|
-
|
|
2796
|
+
_chunkBGT6JFMPcjs.QuickActionChipButton,
|
|
2797
2797
|
{
|
|
2798
2798
|
loading,
|
|
2799
2799
|
variant: "question",
|
|
@@ -3003,7 +3003,7 @@ function QuickActionMarquee({
|
|
|
3003
3003
|
);
|
|
3004
3004
|
if (items.length === 0) return null;
|
|
3005
3005
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3006
|
-
|
|
3006
|
+
_chunkBGT6JFMPcjs.QuickActionWall,
|
|
3007
3007
|
{
|
|
3008
3008
|
chips,
|
|
3009
3009
|
mode,
|
|
@@ -3248,7 +3248,7 @@ function ComposerSheet({
|
|
|
3248
3248
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "left" }),
|
|
3249
3249
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, TabFoot, { side: "right" }),
|
|
3250
3250
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3251
|
-
|
|
3251
|
+
_chunkBGT6JFMPcjs.PanelResizeHandle,
|
|
3252
3252
|
{
|
|
3253
3253
|
side: "bottom",
|
|
3254
3254
|
size: _nullishCoalesce(resolved, () => ( minHeight)),
|
|
@@ -3351,7 +3351,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3351
3351
|
hasNextPage,
|
|
3352
3352
|
isFetchingNextPage,
|
|
3353
3353
|
onLoadMore,
|
|
3354
|
-
pageSize =
|
|
3354
|
+
pageSize = _chunkBGT6JFMPcjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3355
3355
|
...props
|
|
3356
3356
|
}, ref) => {
|
|
3357
3357
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3635,7 +3635,7 @@ function OnboardingCarousel({
|
|
|
3635
3635
|
|
|
3636
3636
|
var ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
|
|
3637
3637
|
var GRID_CELL_CLASS = "h-full";
|
|
3638
|
-
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3638
|
+
var DEFAULT_LOADING_CARD = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFMSAN6SRcjs.AdminContentCard, { loading: true, reserveRows: true, title: "", actions: true });
|
|
3639
3639
|
function loadingCardOf(loadingCard, Skeleton) {
|
|
3640
3640
|
if (loadingCard !== void 0) return loadingCard;
|
|
3641
3641
|
return Skeleton ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Skeleton, {}) : DEFAULT_LOADING_CARD;
|
|
@@ -3649,7 +3649,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3649
3649
|
label = "Loading",
|
|
3650
3650
|
region = true
|
|
3651
3651
|
}) {
|
|
3652
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3652
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGT6JFMPcjs.LoadingFallback, { label, status: region, className: _chunk63A4GZMBcjs.cn.call(void 0, ADMIN_CONTENT_CARD_GRID_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: GRID_CELL_CLASS, "data-loading-item": true, children: loadingCardOf(loadingCard, Skeleton) }) }) });
|
|
3653
3653
|
}
|
|
3654
3654
|
function AdminContentCardGrid({
|
|
3655
3655
|
items,
|
|
@@ -3739,23 +3739,23 @@ function SlackMessageCard({ item, variant = "compact", className, anchorProps })
|
|
|
3739
3739
|
metaParts.push(
|
|
3740
3740
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3741
3741
|
);
|
|
3742
|
-
const href =
|
|
3742
|
+
const href = _chunk6GPMVHJNcjs.safeHref.call(void 0, item.url);
|
|
3743
3743
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3744
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3745
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3746
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3747
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3748
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOWDRZM73cjs.SlackIcon, { className: "h-5 w-5" }) }),
|
|
3745
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3746
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_TITLE, children: item.title }) }),
|
|
3747
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_SUMMARY, children: item.preview || _chunk6GPMVHJNcjs.COMPACT_CARD_ROW_FILLER }) }),
|
|
3748
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_META_ROW, children: metaParts.length > 0 ? metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3749
3749
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3750
3750
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3751
|
-
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3751
|
+
] }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_SUMMARY, children: _chunk6GPMVHJNcjs.COMPACT_CARD_ROW_FILLER }) }) })
|
|
3752
3752
|
] }),
|
|
3753
3753
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
3754
3754
|
] });
|
|
3755
3755
|
if (anchorProps) {
|
|
3756
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3756
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3757
3757
|
}
|
|
3758
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3758
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3759
3759
|
}
|
|
3760
3760
|
function SlackMessageCardSkeleton({
|
|
3761
3761
|
variant = "compact",
|
|
@@ -3763,7 +3763,7 @@ function SlackMessageCardSkeleton({
|
|
|
3763
3763
|
}) {
|
|
3764
3764
|
if (variant === "row") {
|
|
3765
3765
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3766
|
-
|
|
3766
|
+
_chunk6GPMVHJNcjs.ActivityRowSkeleton,
|
|
3767
3767
|
{
|
|
3768
3768
|
lead: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3769
3769
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: "h-3.5 w-3.5 shrink-0 rounded" }),
|
|
@@ -3775,7 +3775,7 @@ function SlackMessageCardSkeleton({
|
|
|
3775
3775
|
);
|
|
3776
3776
|
}
|
|
3777
3777
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3778
|
-
|
|
3778
|
+
_chunk6GPMVHJNcjs.CompactCardSkeleton,
|
|
3779
3779
|
{
|
|
3780
3780
|
titleWidth: "w-2/3",
|
|
3781
3781
|
rows: [{ width: "w-5/6" }, { width: "w-1/3" }],
|
|
@@ -3816,7 +3816,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3816
3816
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `flex min-w-0 items-center gap-3 ${_nullishCoalesce(className, () => ( ""))}`, children: [
|
|
3817
3817
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "max-w-[260px] shrink-0 truncate text-ods-text-primary text-h6", children: item.title }),
|
|
3818
3818
|
item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary text-h6", children: item.preview }) : null,
|
|
3819
|
-
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3819
|
+
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.StatusBadge, { text: statusText, variant: "button", colorScheme: statusScheme(item.status) }) : null,
|
|
3820
3820
|
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-24 shrink-0 text-right text-ods-text-secondary text-h6", children: dateText }) : null
|
|
3821
3821
|
] });
|
|
3822
3822
|
}
|
|
@@ -3830,13 +3830,13 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3830
3830
|
metaParts.push(
|
|
3831
3831
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }, "date")
|
|
3832
3832
|
);
|
|
3833
|
-
const href =
|
|
3833
|
+
const href = _chunk6GPMVHJNcjs.safeHref.call(void 0, item.url);
|
|
3834
3834
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3835
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3835
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3836
3836
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3837
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3837
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3838
3838
|
priorityText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3839
|
-
|
|
3839
|
+
_chunk6GPMVHJNcjs.StatusBadge,
|
|
3840
3840
|
{
|
|
3841
3841
|
text: priorityText,
|
|
3842
3842
|
variant: "button",
|
|
@@ -3845,7 +3845,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3845
3845
|
}
|
|
3846
3846
|
) : null,
|
|
3847
3847
|
statusText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3848
|
-
|
|
3848
|
+
_chunk6GPMVHJNcjs.StatusBadge,
|
|
3849
3849
|
{
|
|
3850
3850
|
text: statusText,
|
|
3851
3851
|
variant: "button",
|
|
@@ -3859,7 +3859,7 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3859
3859
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: item.customerEmail })
|
|
3860
3860
|
] }) : null,
|
|
3861
3861
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-4 whitespace-pre-wrap break-words text-ods-text-secondary text-h6", children: item.preview || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "italic text-ods-text-secondary/60", children: "No description provided." }) }) }),
|
|
3862
|
-
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3862
|
+
metaParts.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_META_ROW, children: metaParts.map((part, i) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
3863
3863
|
i > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/40", children: "\xB7" }) : null,
|
|
3864
3864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 truncate", children: part })
|
|
3865
3865
|
] }, i)) }) }) : null
|
|
@@ -3867,9 +3867,9 @@ function HubspotTicketCard({ item, variant = "compact", className, anchorProps }
|
|
|
3867
3867
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
3868
3868
|
] });
|
|
3869
3869
|
if (anchorProps) {
|
|
3870
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3870
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3871
3871
|
}
|
|
3872
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${
|
|
3872
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, target: "_blank", rel: "noopener noreferrer", className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3873
3873
|
}
|
|
3874
3874
|
function HubspotTicketCardSkeleton({
|
|
3875
3875
|
variant = "compact",
|
|
@@ -3884,7 +3884,7 @@ function HubspotTicketCardSkeleton({
|
|
|
3884
3884
|
] });
|
|
3885
3885
|
}
|
|
3886
3886
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3887
|
-
|
|
3887
|
+
_chunk6GPMVHJNcjs.CompactCardSkeleton,
|
|
3888
3888
|
{
|
|
3889
3889
|
slot: false,
|
|
3890
3890
|
titleWidth: "w-2/3",
|
|
@@ -3902,10 +3902,10 @@ function HubspotTicketCardSkeleton({
|
|
|
3902
3902
|
function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
3903
3903
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataRoomDocCardSkeleton, { className });
|
|
3904
3904
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3905
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3905
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3906
3906
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3907
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3908
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3907
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3908
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.StatusBadge, { text: badgeText, variant: "button", colorScheme: "cyan", className: "shrink-0" })
|
|
3909
3909
|
] }),
|
|
3910
3910
|
item.path ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-1 text-ods-text-secondary text-h6", children: [
|
|
3911
3911
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary/70", children: "Path:" }),
|
|
@@ -3916,13 +3916,13 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
|
|
|
3916
3916
|
_optionalChain([anchorProps, 'optionalAccess', _136 => _136.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
3917
3917
|
] });
|
|
3918
3918
|
if (!anchorProps) {
|
|
3919
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3919
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
3920
3920
|
}
|
|
3921
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3921
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
3922
3922
|
}
|
|
3923
3923
|
function DataRoomDocCardSkeleton({ className }) {
|
|
3924
3924
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3925
|
-
|
|
3925
|
+
_chunk6GPMVHJNcjs.CompactCardSkeleton,
|
|
3926
3926
|
{
|
|
3927
3927
|
slot: false,
|
|
3928
3928
|
titleWidth: "w-2/3",
|
|
@@ -3941,24 +3941,24 @@ function CampaignCardAdmin({ campaign, className, anchorProps }) {
|
|
|
3941
3941
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, { className });
|
|
3942
3942
|
const goalsCount = _optionalChain([campaign, 'access', _137 => _137.goals, 'optionalAccess', _138 => _138.length]) || 0;
|
|
3943
3943
|
const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3944
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3945
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3946
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3947
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3948
|
-
campaign.start_date ?
|
|
3944
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
|
|
3945
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3946
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_TITLE_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_TITLE, children: campaign.name }) }),
|
|
3947
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_SUBTITLE, children: [
|
|
3948
|
+
campaign.start_date ? _chunkFMSAN6SRcjs.formatDateShort.call(void 0, campaign.start_date) : null,
|
|
3949
3949
|
goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
|
|
3950
3950
|
"Marketing campaign"
|
|
3951
3951
|
].filter(Boolean).join(" \xB7 ") }) }),
|
|
3952
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3952
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_SUMMARY, children: campaign.description || _chunk6GPMVHJNcjs.COMPACT_CARD_ROW_FILLER }) })
|
|
3953
3953
|
] })
|
|
3954
3954
|
] });
|
|
3955
3955
|
if (anchorProps) {
|
|
3956
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3956
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: innerChildren });
|
|
3957
3957
|
}
|
|
3958
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3958
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: innerChildren });
|
|
3959
3959
|
}
|
|
3960
3960
|
function CampaignCardAdminSkeleton({ className }) {
|
|
3961
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3961
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.CompactCardSkeleton, { rows: [{ width: "w-1/2" }, { width: "w-11/12" }], className });
|
|
3962
3962
|
}
|
|
3963
3963
|
|
|
3964
3964
|
// src/components/chat/entity-cards/generic-entity-card.tsx
|
|
@@ -3966,14 +3966,14 @@ function CampaignCardAdminSkeleton({ className }) {
|
|
|
3966
3966
|
|
|
3967
3967
|
function GenericEntityCard({ item, className, anchorProps }) {
|
|
3968
3968
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GenericEntityCardSkeleton, { className });
|
|
3969
|
-
const href =
|
|
3969
|
+
const href = _chunk6GPMVHJNcjs.safeHref.call(void 0, item.url);
|
|
3970
3970
|
const dateText = _chunkGRHF5SWLcjs.formatDateUTC.call(void 0, item.dateUpdated, { fallback: "", timezone: "local" });
|
|
3971
3971
|
const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
3972
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className:
|
|
3972
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_TEXT_COL, children: [
|
|
3973
3973
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 flex-wrap items-center gap-1.5", children: [
|
|
3974
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${
|
|
3974
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_TITLE} min-w-0 shrink`, children: item.title }),
|
|
3975
3975
|
item.badge ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3976
|
-
|
|
3976
|
+
_chunk6GPMVHJNcjs.StatusBadge,
|
|
3977
3977
|
{
|
|
3978
3978
|
text: item.badge.text,
|
|
3979
3979
|
variant: "button",
|
|
@@ -3991,18 +3991,18 @@ function GenericEntityCard({ item, className, anchorProps }) {
|
|
|
3991
3991
|
] }),
|
|
3992
3992
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate font-medium text-ods-text-primary", children: f.value })
|
|
3993
3993
|
] }, i)) }) : null,
|
|
3994
|
-
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
3994
|
+
dateText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_META_ROW_BOX, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk6GPMVHJNcjs.COMPACT_CARD_META_ROW, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: dateText }) }) }) : null
|
|
3995
3995
|
] }),
|
|
3996
3996
|
href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex h-5 shrink-0 items-center self-start text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-3.5 w-3.5" }) }) : null
|
|
3997
3997
|
] });
|
|
3998
3998
|
if (anchorProps) {
|
|
3999
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${
|
|
3999
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...anchorProps, className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body });
|
|
4000
4000
|
}
|
|
4001
|
-
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${
|
|
4001
|
+
return href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { href, className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER} ${_nullishCoalesce(className, () => ( ""))}`, children: body }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${_chunk6GPMVHJNcjs.COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
|
|
4002
4002
|
}
|
|
4003
4003
|
function GenericEntityCardSkeleton({ className }) {
|
|
4004
4004
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4005
|
-
|
|
4005
|
+
_chunk6GPMVHJNcjs.CompactCardSkeleton,
|
|
4006
4006
|
{
|
|
4007
4007
|
slot: false,
|
|
4008
4008
|
titleWidth: "w-2/3",
|
|
@@ -5241,7 +5241,7 @@ function Section({ title, description, children }) {
|
|
|
5241
5241
|
] });
|
|
5242
5242
|
}
|
|
5243
5243
|
function ProxyCredentialsPanel({ description }) {
|
|
5244
|
-
const hydrated =
|
|
5244
|
+
const hydrated = _chunkBGT6JFMPcjs.useIsHydrated.call(void 0, );
|
|
5245
5245
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5246
5246
|
ProxyCredentialsForm,
|
|
5247
5247
|
{
|
|
@@ -5302,13 +5302,13 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5302
5302
|
setStatus("Cleared. Requests use the session again.");
|
|
5303
5303
|
};
|
|
5304
5304
|
const setField = (field, value) => setOptional((prev) => ({ ...prev, [field]: value }));
|
|
5305
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5305
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.Card, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk6GPMVHJNcjs.CardContent, { className: "space-y-[var(--spacing-system-lf)] p-[var(--spacing-system-mf)]", children: [
|
|
5306
5306
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "header", { className: "flex flex-col gap-[var(--spacing-system-sf)] sm:flex-row sm:items-start sm:justify-between", children: [
|
|
5307
5307
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
5308
5308
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h3", children: "Proxy credentials" }),
|
|
5309
5309
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: description })
|
|
5310
5310
|
] }),
|
|
5311
|
-
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5311
|
+
activeEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "self-start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6GPMVHJNcjs.StatusBadge, { singleLine: true, colorScheme: "success", text: `Active: ${activeEmail}` }) })
|
|
5312
5312
|
] }),
|
|
5313
5313
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5314
5314
|
Section,
|
|
@@ -5405,12 +5405,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5405
5405
|
|
|
5406
5406
|
// src/components/chat/index.ts
|
|
5407
5407
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5408
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5408
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-5UT6UHEO.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5409
5409
|
);
|
|
5410
5410
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5411
5411
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5412
5412
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5413
|
-
_react.useEffect.call(void 0, () =>
|
|
5413
|
+
_react.useEffect.call(void 0, () => _chunkBGT6JFMPcjs.holdAskAiOpens.call(void 0, ), []);
|
|
5414
5414
|
const { loadStyles } = props;
|
|
5415
5415
|
_react.useEffect.call(void 0, () => {
|
|
5416
5416
|
if (load) _optionalChain([loadStyles, 'optionalCall', _204 => _204()]);
|
|
@@ -5418,12 +5418,12 @@ var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
5418
5418
|
_react.useEffect.call(void 0, () => {
|
|
5419
5419
|
if (load) return void 0;
|
|
5420
5420
|
const start = () => setLoadRequested(true);
|
|
5421
|
-
if (
|
|
5422
|
-
for (const name of
|
|
5423
|
-
const cancel =
|
|
5421
|
+
if (_chunkBGT6JFMPcjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5422
|
+
for (const name of _chunkBGT6JFMPcjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5423
|
+
const cancel = _chunkBGT6JFMPcjs.onAskAiIntent.call(void 0, start);
|
|
5424
5424
|
return () => {
|
|
5425
5425
|
cancel();
|
|
5426
|
-
for (const name of
|
|
5426
|
+
for (const name of _chunkBGT6JFMPcjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5427
5427
|
};
|
|
5428
5428
|
}, [load]);
|
|
5429
5429
|
if (!load) return null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4ZH7RPEAcjs = require('./chunk-4ZH7RPEA.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunk4ZH7RPEAcjs.EmbedViewerFrame,
|
|
52
52
|
{
|
|
53
53
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
54
54
|
title: displayName,
|
|
@@ -83,7 +83,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_chunk4ZH7RPEAcjs.EmbedViewerFrame,
|
|
87
87
|
{
|
|
88
88
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
89
89
|
title: displayName,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunk24I6RFVUcjs = require('./chunk-24I6RFVU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBGT6JFMPcjs = require('./chunk-BGT6JFMP.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkMG3HJIGGcjs = require('./chunk-MG3HJIGG.cjs');
|
|
@@ -268,7 +268,7 @@ var DrawerContent = _react.forwardRef.call(void 0,
|
|
|
268
268
|
...props,
|
|
269
269
|
children: [
|
|
270
270
|
applyInlineSize ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
271
|
-
|
|
271
|
+
_chunkBGT6JFMPcjs.PanelResizeHandle,
|
|
272
272
|
{
|
|
273
273
|
variant: "overlay",
|
|
274
274
|
side: resolvedSide,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkBGT6JFMPcjs = require('./chunk-BGT6JFMP.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -35,7 +35,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
35
35
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
36
36
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
37
37
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
38
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
38
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkBGT6JFMPcjs.resolveSourceIcon.call(void 0, {
|
|
39
39
|
sourceRepo,
|
|
40
40
|
documentType: docType
|
|
41
41
|
});
|
|
@@ -65,7 +65,7 @@ function DocSearchBar({
|
|
|
65
65
|
renderResult
|
|
66
66
|
}) {
|
|
67
67
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
68
|
-
|
|
68
|
+
_chunkBGT6JFMPcjs.SearchInput,
|
|
69
69
|
{
|
|
70
70
|
placeholder,
|
|
71
71
|
value: query,
|
|
@@ -115,7 +115,7 @@ function mapDocSearchResults(docs) {
|
|
|
115
115
|
results.push({
|
|
116
116
|
id: `group-${entry.repo}`,
|
|
117
117
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
118
|
-
title: `${
|
|
118
|
+
title: `${_chunkBGT6JFMPcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkBGT6JFMPcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
119
119
|
path: rows[0].path,
|
|
120
120
|
type: "file",
|
|
121
121
|
metadata: {
|
|
@@ -314,7 +314,7 @@ function useDocSearch(config) {
|
|
|
314
314
|
}
|
|
315
315
|
case "ask-ai":
|
|
316
316
|
setKeepOpen(false);
|
|
317
|
-
window.dispatchEvent(new CustomEvent(
|
|
317
|
+
window.dispatchEvent(new CustomEvent(_chunkBGT6JFMPcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
318
318
|
return;
|
|
319
319
|
case "route":
|
|
320
320
|
setKeepOpen(false);
|