@flamingo-stack/openframe-frontend-core 0.0.706-snapshot.20261006190707 → 0.0.706
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-6YKAT7NV.js → chunk-3EZ4HHAP.js} +2 -2
- package/dist/{chunk-LFFB6EMB.js → chunk-3NCM4ZQB.js} +2 -15
- package/dist/{chunk-6I4ZAFO2.cjs → chunk-3PLDQDE6.cjs} +9 -9
- package/dist/{chunk-SS5MBHDP.js → chunk-4CJMQLB5.js} +2 -2
- package/dist/{chunk-CNWOMQQJ.js → chunk-4ILM7W2R.js} +1 -1
- package/dist/{chunk-MR3A4MZV.js → chunk-6232S532.js} +1 -1
- package/dist/{chunk-PO33GZVY.js → chunk-7GEBFJT2.js} +4 -24
- package/dist/{chunk-SEXWHIMS.cjs → chunk-7OFPU7WE.cjs} +331 -351
- package/dist/{chunk-2KXTOP6G.cjs → chunk-7SCNMP2B.cjs} +13 -26
- package/dist/{chunk-HDOYSEOJ.js → chunk-BHI6GVC4.js} +3 -3
- package/dist/{chunk-2RNB5DTN.cjs → chunk-DDVBX42E.cjs} +7 -7
- package/dist/{chunk-CZSZSDD4.js → chunk-DWPAAWMR.js} +4 -4
- package/dist/{chunk-4L6XCMOU.js → chunk-G6UMNAVI.js} +2 -10
- package/dist/{chunk-P42V6N34.cjs → chunk-GWQEYPYM.cjs} +313 -321
- package/dist/{chunk-AOWDNSTM.cjs → chunk-HZ7CBXPL.cjs} +40 -40
- package/dist/{chunk-I3ST4PLM.js → chunk-IKJA3Y7Z.js} +1 -1
- package/dist/{chunk-2G7UYK35.cjs → chunk-K6O43WDL.cjs} +32 -32
- package/dist/{chunk-JRU2CXLB.cjs → chunk-LVSFKENJ.cjs} +2 -2
- package/dist/{chunk-LRQTJOF2.cjs → chunk-M75XEEGT.cjs} +24 -24
- package/dist/{chunk-YBUT4AMG.cjs → chunk-MB4PNY7C.cjs} +2 -2
- package/dist/{chunk-LNW45N2C.js → chunk-O2RSAA5M.js} +5 -5
- package/dist/{chunk-DA5UDTLG.js → chunk-PXOQIA5K.js} +2 -2
- package/dist/{chunk-NSGXARGJ.cjs → chunk-RTIPR53L.cjs} +70 -70
- package/dist/{chunk-L6Y6OOKG.cjs → chunk-SEKYEWQG.cjs} +20 -20
- package/dist/{chunk-3AHTOSXJ.cjs → chunk-STHZBOQI.cjs} +9 -9
- package/dist/{chunk-B73373AG.cjs → chunk-SW5ZV2BN.cjs} +20 -20
- package/dist/{chunk-4UM2ETLM.js → chunk-T5TMCHWM.js} +2 -2
- package/dist/{chunk-36BCTE7D.js → chunk-TE773HEH.js} +4 -4
- package/dist/{chunk-QAOFMK2A.cjs → chunk-TQ4LB2DS.cjs} +3 -3
- package/dist/{chunk-OJLR5MEO.cjs → chunk-UJ33ZXDT.cjs} +4 -4
- package/dist/{chunk-TDYIREDJ.js → chunk-VZICIQW2.js} +4 -4
- package/dist/{chunk-6IW7TWPV.js → chunk-YGJKKDDM.js} +1 -1
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/index.cjs +2 -4
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +1 -3
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts +5 -34
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +70 -70
- package/dist/components/help-center-pages/index.js +14 -14
- package/dist/components/index.cjs +36 -38
- package/dist/components/index.js +13 -15
- package/dist/components/meeting-scheduler/index.cjs +25 -25
- package/dist/components/meeting-scheduler/index.js +2 -2
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.js +5 -5
- package/dist/components/platform/ToolBadge.d.ts +0 -6
- package/dist/components/platform/ToolBadge.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/brand-association-card.d.ts +0 -7
- package/dist/components/ui/brand-association-card.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +3 -5
- package/dist/components/ui/index.js +2 -4
- package/dist/index.cjs +7 -9
- package/dist/index.js +6 -8
- package/package.json +1 -1
- package/src/components/chat/index.ts +1 -7
- package/src/components/chat/nav-link-anchor-via-runtime.tsx +9 -62
- package/src/components/platform/ToolBadge.tsx +1 -18
- package/src/components/ui/brand-association-card.tsx +3 -25
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
createSseSubscription
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-G6UMNAVI.js";
|
|
5
5
|
import {
|
|
6
6
|
useChatIdentity
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7GEBFJT2.js";
|
|
8
8
|
import {
|
|
9
9
|
embedAuthedFetch
|
|
10
10
|
} from "./chunk-FXJ3WWUB.js";
|
|
@@ -4,13 +4,10 @@ import {
|
|
|
4
4
|
getOSLabel,
|
|
5
5
|
getShellLabel,
|
|
6
6
|
getToolLabel
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G6UMNAVI.js";
|
|
8
8
|
import {
|
|
9
9
|
useOnboardingState
|
|
10
10
|
} from "./chunk-KUC673HM.js";
|
|
11
|
-
import {
|
|
12
|
-
NavLinkAnchorViaRuntime
|
|
13
|
-
} from "./chunk-PO33GZVY.js";
|
|
14
11
|
import {
|
|
15
12
|
ToolIcon
|
|
16
13
|
} from "./chunk-CZ7Y7UG4.js";
|
|
@@ -128,22 +125,12 @@ var ToolBadge = ({
|
|
|
128
125
|
icon,
|
|
129
126
|
variant = "inline",
|
|
130
127
|
href,
|
|
131
|
-
targetPlatform,
|
|
132
128
|
className,
|
|
133
129
|
iconClassName
|
|
134
130
|
}) => {
|
|
135
131
|
const text = label ?? (toolType ? getToolLabel(toolType) : "");
|
|
136
132
|
const mark = icon ?? (toolType ? /* @__PURE__ */ jsx4(ToolIcon, { toolType, className: iconClassName, size: 16 }) : null);
|
|
137
|
-
const linked = (node, linkClassName) => href
|
|
138
|
-
NavLinkAnchorViaRuntime,
|
|
139
|
-
{
|
|
140
|
-
href,
|
|
141
|
-
targetPlatform,
|
|
142
|
-
title: text || void 0,
|
|
143
|
-
className: linkClassName,
|
|
144
|
-
children: node
|
|
145
|
-
}
|
|
146
|
-
) : href ? /* @__PURE__ */ jsx4("a", { href, target: "_blank", rel: "noopener noreferrer", title: text || void 0, className: linkClassName, children: node }) : node;
|
|
133
|
+
const linked = (node, linkClassName) => href ? /* @__PURE__ */ jsx4("a", { href, target: "_blank", rel: "noopener noreferrer", title: text || void 0, className: linkClassName, children: node }) : node;
|
|
147
134
|
if (variant === "chip") {
|
|
148
135
|
return linked(
|
|
149
136
|
/* @__PURE__ */ jsxs4(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGWQEYPYMcjs = require('./chunk-GWQEYPYM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkOF6GEI5Acjs = require('./chunk-OF6GEI5A.cjs');
|
|
@@ -12,7 +12,7 @@ var _chunkOF6GEI5Acjs = require('./chunk-OF6GEI5A.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk7OFPU7WEcjs = require('./chunk-7OFPU7WE.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkUVTD52MDcjs = require('./chunk-UVTD52MD.cjs');
|
|
@@ -39,7 +39,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
39
39
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
40
40
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
41
41
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
42
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
42
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunk7OFPU7WEcjs.resolveSourceIcon.call(void 0, {
|
|
43
43
|
sourceRepo,
|
|
44
44
|
documentType: docType
|
|
45
45
|
});
|
|
@@ -69,7 +69,7 @@ function DocSearchBar({
|
|
|
69
69
|
renderResult
|
|
70
70
|
}) {
|
|
71
71
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
72
|
-
|
|
72
|
+
_chunkGWQEYPYMcjs.SearchInput,
|
|
73
73
|
{
|
|
74
74
|
placeholder,
|
|
75
75
|
value: query,
|
|
@@ -119,7 +119,7 @@ function mapDocSearchResults(docs) {
|
|
|
119
119
|
results.push({
|
|
120
120
|
id: `group-${entry.repo}`,
|
|
121
121
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
122
|
-
title: `${
|
|
122
|
+
title: `${_chunk7OFPU7WEcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunk7OFPU7WEcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
123
123
|
path: rows[0].path,
|
|
124
124
|
type: "file",
|
|
125
125
|
metadata: {
|
|
@@ -311,27 +311,27 @@ function useDocSearch(config) {
|
|
|
311
311
|
case "navigate-same-tab": {
|
|
312
312
|
if (wantsNewTab) {
|
|
313
313
|
setKeepOpen(true);
|
|
314
|
-
window.open(action.href, "_blank",
|
|
314
|
+
window.open(action.href, "_blank", _chunk7OFPU7WEcjs.NEW_TAB_FEATURES);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
317
|
setKeepOpen(false);
|
|
318
318
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
319
319
|
if (path && _optionalChain([onInPageSwap, 'optionalCall', _16 => _16(path)])) return;
|
|
320
|
-
router.push(
|
|
320
|
+
router.push(_chunk7OFPU7WEcjs.stripSameOriginToPath.call(void 0, action.href));
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
323
|
case "navigate-new-tab":
|
|
324
324
|
setKeepOpen(true);
|
|
325
325
|
if (_optionalChain([runtime, 'optionalAccess', _17 => _17.navigation, 'access', _18 => _18.mode]) === "embed") {
|
|
326
326
|
const targetPlatform = _nullishCoalesce(_optionalChain([result, 'access', _19 => _19.metadata, 'optionalAccess', _20 => _20.targetPlatform]), () => ( null));
|
|
327
|
-
|
|
327
|
+
_chunk7OFPU7WEcjs.resolveExternalNavigation.call(void 0, {
|
|
328
328
|
href: action.href,
|
|
329
329
|
targetPlatform,
|
|
330
330
|
runtime
|
|
331
331
|
}).open();
|
|
332
332
|
return;
|
|
333
333
|
}
|
|
334
|
-
window.open(action.href, "_blank",
|
|
334
|
+
window.open(action.href, "_blank", _chunk7OFPU7WEcjs.NEW_TAB_FEATURES);
|
|
335
335
|
return;
|
|
336
336
|
case "ask-ai":
|
|
337
337
|
setKeepOpen(false);
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
SelectTrigger,
|
|
9
9
|
SelectValue,
|
|
10
10
|
Textarea
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-G6UMNAVI.js";
|
|
12
12
|
import {
|
|
13
13
|
useContactSubmission,
|
|
14
14
|
useHumanitySignals,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
ChatAttachmentAddButton,
|
|
19
19
|
ChatAttachmentChipStrip,
|
|
20
20
|
useChatAttachments
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7GEBFJT2.js";
|
|
22
22
|
import {
|
|
23
23
|
SECTION_HEADING_CLASS,
|
|
24
24
|
accentSentenceMarks
|
|
@@ -11929,11 +11929,12 @@ function handleChatNavClick(event, runtime, { href, path, targetPlatform }, fall
|
|
|
11929
11929
|
|
|
11930
11930
|
// src/components/chat/nav-link-anchor-via-runtime.tsx
|
|
11931
11931
|
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
11932
|
-
function
|
|
11932
|
+
function NavLinkAnchorViaRuntime({
|
|
11933
11933
|
href,
|
|
11934
11934
|
path,
|
|
11935
11935
|
targetPlatform,
|
|
11936
|
-
|
|
11936
|
+
className,
|
|
11937
|
+
children
|
|
11937
11938
|
}) {
|
|
11938
11939
|
const runtime = useRequiredChatRuntime();
|
|
11939
11940
|
const router = useRouter();
|
|
@@ -11941,8 +11942,6 @@ function useNavLinkViaRuntime({
|
|
|
11941
11942
|
const resolvedHref = resolveHrefForRuntime(href, runtime);
|
|
11942
11943
|
const isNewTab = computeIsNewTab(runtime, resolvedHref, targetPlatform ?? null);
|
|
11943
11944
|
const onClick = (e) => {
|
|
11944
|
-
onClickProp?.(e);
|
|
11945
|
-
if (e.defaultPrevented) return;
|
|
11946
11945
|
const handled = executeNavigation({
|
|
11947
11946
|
event: e,
|
|
11948
11947
|
runtime,
|
|
@@ -11953,25 +11952,7 @@ function useNavLinkViaRuntime({
|
|
|
11953
11952
|
});
|
|
11954
11953
|
if (handled && !isNewTab && panel?.closeChat) panel.closeChat();
|
|
11955
11954
|
};
|
|
11956
|
-
|
|
11957
|
-
return {
|
|
11958
|
-
href: resolvedHref,
|
|
11959
|
-
...attrs,
|
|
11960
|
-
...isNewTab && targetPlatform && { rel: "noopener" },
|
|
11961
|
-
onClick
|
|
11962
|
-
};
|
|
11963
|
-
}
|
|
11964
|
-
function NavLinkAnchorViaRuntime({
|
|
11965
|
-
href,
|
|
11966
|
-
path,
|
|
11967
|
-
targetPlatform,
|
|
11968
|
-
className,
|
|
11969
|
-
children,
|
|
11970
|
-
onClick,
|
|
11971
|
-
...anchorAttrs
|
|
11972
|
-
}) {
|
|
11973
|
-
const linkProps = useNavLinkViaRuntime({ href, path, targetPlatform, onClick });
|
|
11974
|
-
return /* @__PURE__ */ jsx75("a", { ...linkProps, ...anchorAttrs, className, children });
|
|
11955
|
+
return /* @__PURE__ */ jsx75("a", { href: resolvedHref, ...newTabAnchorAttrs(isNewTab), onClick, className, children });
|
|
11975
11956
|
}
|
|
11976
11957
|
|
|
11977
11958
|
// src/components/chat/source-action-button.tsx
|
|
@@ -26309,7 +26290,6 @@ export {
|
|
|
26309
26290
|
executeNavigation,
|
|
26310
26291
|
executeNavigationImperative,
|
|
26311
26292
|
handleChatNavClick,
|
|
26312
|
-
useNavLinkViaRuntime,
|
|
26313
26293
|
NavLinkAnchorViaRuntime,
|
|
26314
26294
|
SourceActionButton,
|
|
26315
26295
|
getCaptionsUrl,
|