@flamingo-stack/openframe-frontend-core 0.0.821 → 0.0.823
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/chat-protocol/citation-chip.d.ts +20 -0
- package/dist/chat-protocol/citation-chip.d.ts.map +1 -0
- package/dist/chat-protocol/citation-chip.js +25 -0
- package/dist/chat-protocol/index.cjs +25 -0
- package/dist/chat-protocol/index.d.ts +1 -0
- package/dist/chat-protocol/index.d.ts.map +1 -1
- package/dist/chat-protocol/index.js +1 -0
- package/dist/{chunk-YCE7A63X.cjs → chunk-2LT2WR4O.cjs} +24 -13
- package/dist/{chunk-OEKVCVOS.cjs → chunk-2U6MAM6D.cjs} +47 -47
- package/dist/{chunk-LQF5F7LF.cjs → chunk-3JCDSZ6D.cjs} +4 -4
- package/dist/{chunk-7DIWYZPQ.cjs → chunk-AK7MYM25.cjs} +3 -3
- package/dist/{chunk-2WHKEYDX.cjs → chunk-DEWT25QK.cjs} +53 -53
- package/dist/{chunk-FTD3CZAS.cjs → chunk-DYSMAPSI.cjs} +4 -4
- package/dist/{chunk-N2XHQVWX.cjs → chunk-GP2Y3DBE.cjs} +6 -6
- package/dist/{chunk-LWOXKF5P.cjs → chunk-HWXFUI3R.cjs} +19 -19
- package/dist/{chunk-7QGK76LC.cjs → chunk-K7NGDYBG.cjs} +108 -106
- package/dist/{chunk-P2ZIQ72J.cjs → chunk-KWS7YKCO.cjs} +10 -10
- package/dist/{chunk-GQHXJGA2.cjs → chunk-L7YE6APP.cjs} +9 -9
- package/dist/{chunk-QFNQSZ4H.cjs → chunk-SBXL5EKE.cjs} +16 -16
- package/dist/{chunk-3SE34JVB.cjs → chunk-TJFVIJPV.cjs} +2 -2
- package/dist/{chunk-BY2PLXYC.cjs → chunk-U7CH53FT.cjs} +7 -7
- package/dist/{chunk-V26M75GV.cjs → chunk-UUFL4FDS.cjs} +11 -11
- package/dist/{chunk-RRLJ5PNL.cjs → chunk-Y3MPERIZ.cjs} +3 -3
- package/dist/{chunk-IS6BQSL6.cjs → chunk-Y7BTM2NC.cjs} +39 -39
- package/dist/{chunk-CA7X6CCJ.cjs → chunk-YMDSCI4E.cjs} +32 -32
- package/dist/{cloud-tenants-M34P47GS.cjs → cloud-tenants-VQQ2KNJI.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +16 -16
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/remark-strip-citations.d.ts +3 -4
- package/dist/components/chat/remark-strip-citations.d.ts.map +1 -1
- package/dist/components/chat/remark-strip-citations.js +3 -13
- package/dist/components/chat/utils/cited-sources.d.ts.map +1 -1
- package/dist/components/chat/utils/cited-sources.js +2 -6
- package/dist/components/contact/index.cjs +5 -5
- package/dist/components/docs/index.cjs +8 -8
- package/dist/components/embeds/index.cjs +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/index.cjs +61 -61
- package/dist/components/index.cjs +37 -37
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/file-upload.d.ts +3 -1
- package/dist/components/ui/file-upload.d.ts.map +1 -1
- package/dist/components/ui/file-upload.js +2 -1
- package/dist/components/ui/image-uploader.d.ts +3 -1
- package/dist/components/ui/image-uploader.d.ts.map +1 -1
- package/dist/components/ui/image-uploader.js +2 -1
- package/dist/components/ui/index.cjs +4 -4
- package/dist/{devices-SWFK4CPO.cjs → devices-KKJHYQ72.cjs} +5 -5
- package/dist/{embeddable-chat-J6CKPKKM.cjs → embeddable-chat-MQGYFYGX.cjs} +65 -69
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-N5FDIA33.cjs → knowledge-VMLXNFDI.cjs} +5 -5
- package/dist/{logs-OEK7GMEB.cjs → logs-EFXRQ6LV.cjs} +12 -12
- package/dist/{policies-Q7AS5AL6.cjs → policies-SU3NQPFV.cjs} +8 -8
- package/dist/{scripts-3XWEDB2A.cjs → scripts-WLLAUOAA.cjs} +9 -9
- package/dist/{software-update-6FOBLAOF.cjs → software-update-WKUDBC3U.cjs} +7 -7
- package/package.json +1 -1
- package/src/chat-protocol/citation-chip.ts +46 -0
- package/src/chat-protocol/index.ts +2 -0
- package/src/components/chat/remark-strip-citations.ts +7 -26
- package/src/components/chat/utils/cited-sources.ts +2 -8
- package/src/components/ui/file-upload.tsx +4 -1
- package/src/components/ui/image-uploader.tsx +4 -1
|
@@ -5,7 +5,7 @@ var _chunkSBFBNOKUcjs = require('./chunk-SBFBNOKU.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkU7CH53FTcjs = require('./chunk-U7CH53FT.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ var _chunkHEVW75L3cjs = require('./chunk-HEVW75L3.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkK7NGDYBGcjs = require('./chunk-K7NGDYBG.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
@@ -26,7 +26,7 @@ var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
|
26
26
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkSBXL5EKEcjs = require('./chunk-SBXL5EKE.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -105,7 +105,7 @@ function PageDataSyncProvider({
|
|
|
105
105
|
function PageDataSyncRow({ inline = false }) {
|
|
106
106
|
const context = _react.useContext.call(void 0, PageDataSyncContext);
|
|
107
107
|
if (!context) return null;
|
|
108
|
-
const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
108
|
+
const line = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7NGDYBGcjs.DataSyncLine, { sync: context.state.sync, loading: context.state.loading, stated: context.stated, inline });
|
|
109
109
|
return context.stated ? line : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: line });
|
|
110
110
|
}
|
|
111
111
|
function usePageDataSync(sync, loading) {
|
|
@@ -124,7 +124,7 @@ function usePageDataSync(sync, loading) {
|
|
|
124
124
|
// src/components/shared/dev-section/dev-section-view.tsx
|
|
125
125
|
|
|
126
126
|
function DevSectionView({ sectionKey, preControls, children, showHeading = true }) {
|
|
127
|
-
const section =
|
|
127
|
+
const section = _chunkSBXL5EKEcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
128
128
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
129
129
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
130
130
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
@@ -166,7 +166,7 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
|
|
|
166
166
|
preControls,
|
|
167
167
|
(search || filter) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
168
168
|
search && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
169
|
-
|
|
169
|
+
_chunkK7NGDYBGcjs.SearchInput,
|
|
170
170
|
{
|
|
171
171
|
showDropdown: false,
|
|
172
172
|
placeholder: search.placeholder,
|
|
@@ -176,7 +176,7 @@ function DevSectionView({ sectionKey, preControls, children, showHeading = true
|
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
178
|
filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
179
|
-
|
|
179
|
+
_chunkK7NGDYBGcjs.StatusFilterComponent,
|
|
180
180
|
{
|
|
181
181
|
selectedStatus: currentFilterValue,
|
|
182
182
|
onStatusChange: handleFilterChange,
|
|
@@ -201,7 +201,7 @@ function DevSectionPage({
|
|
|
201
201
|
shell = true
|
|
202
202
|
}) {
|
|
203
203
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
204
|
-
const section =
|
|
204
|
+
const section = _chunkSBXL5EKEcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
205
205
|
const backCfg = backButton === false ? void 0 : {
|
|
206
206
|
label: _nullishCoalesce((backButton ? backButton.label : void 0), () => ( "Back to home")),
|
|
207
207
|
onClick: () => router.push(_nullishCoalesce((backButton ? backButton.href : void 0), () => ( "/")))
|
|
@@ -223,12 +223,12 @@ function DevSectionPage({
|
|
|
223
223
|
backButton: backCfg,
|
|
224
224
|
children: [
|
|
225
225
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DevSectionView, { sectionKey, showHeading: false, preControls, children }),
|
|
226
|
-
faq && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
226
|
+
faq && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU7CH53FTcjs.FaqSection, { ..._chunkU7CH53FTcjs.pageFaqProps.call(void 0, faq) })
|
|
227
227
|
]
|
|
228
228
|
}
|
|
229
229
|
)
|
|
230
230
|
);
|
|
231
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
231
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7NGDYBGcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
// src/components/shared/dev-section/dev-card-row.tsx
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkK7NGDYBGcjs = require('./chunk-K7NGDYBG.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -17,12 +17,12 @@ var _chunkIJCSQFLDcjs = require('./chunk-IJCSQFLD.cjs');
|
|
|
17
17
|
var _chunkT266OITJcjs = require('./chunk-T266OITJ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkSBXL5EKEcjs = require('./chunk-SBXL5EKE.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk2LT2WR4Ocjs = require('./chunk-2LT2WR4O.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -119,7 +119,7 @@ function ContactForm({
|
|
|
119
119
|
successToastMessage = "Redirecting you to join our community...",
|
|
120
120
|
rescue: rescueForm = null
|
|
121
121
|
} = {}) {
|
|
122
|
-
const attachments =
|
|
122
|
+
const attachments = _chunk2LT2WR4Ocjs.useChatAttachments.call(void 0, );
|
|
123
123
|
const builtInSubmission = _chunkT266OITJcjs.useContactSubmission.call(void 0, {
|
|
124
124
|
userId,
|
|
125
125
|
successRedirectUrl,
|
|
@@ -203,13 +203,13 @@ function ContactForm({
|
|
|
203
203
|
);
|
|
204
204
|
}),
|
|
205
205
|
className: "flex flex-grow flex-col space-y-4 content-md:space-y-6",
|
|
206
|
-
...
|
|
206
|
+
..._chunkSBXL5EKEcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
207
207
|
children: [
|
|
208
208
|
!showName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("name") }),
|
|
209
209
|
!showEmail && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("email") }),
|
|
210
210
|
!showHelpCategory && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("helpCategory") }),
|
|
211
211
|
!showMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "input", { type: "hidden", ...register("message") }),
|
|
212
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
212
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7NGDYBGcjs.HoneypotField, { ...honeypotInputProps }),
|
|
213
213
|
extraTopField,
|
|
214
214
|
showNameEmailRow && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-md:grid-cols-2 content-md:gap-6", children: [
|
|
215
215
|
showName && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
@@ -334,7 +334,7 @@ function ContactForm({
|
|
|
334
334
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkK7NGDYBGcjs.Textarea,
|
|
338
338
|
{
|
|
339
339
|
id: "message",
|
|
340
340
|
...register("message"),
|
|
@@ -349,7 +349,7 @@ function ContactForm({
|
|
|
349
349
|
] }),
|
|
350
350
|
attachmentsEnabled && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
|
|
351
351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
352
|
-
|
|
352
|
+
_chunk2LT2WR4Ocjs.ChatAttachmentChipStrip,
|
|
353
353
|
{
|
|
354
354
|
attachments: attachments.attachments,
|
|
355
355
|
onRemove: attachments.removeAttachment,
|
|
@@ -358,7 +358,7 @@ function ContactForm({
|
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
360
360
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
361
|
-
|
|
361
|
+
_chunk2LT2WR4Ocjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk2LT2WR4Ocjs = require('./chunk-2LT2WR4O.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -2243,7 +2243,7 @@ function extractSections(markdown, options = {}) {
|
|
|
2243
2243
|
if (heading.level > opts.maxLevel) continue;
|
|
2244
2244
|
let title = heading.text;
|
|
2245
2245
|
if (opts.stripFormattingMarkers) {
|
|
2246
|
-
title =
|
|
2246
|
+
title = _chunk2LT2WR4Ocjs.stripInlineMarkdown.call(void 0, title).trim();
|
|
2247
2247
|
}
|
|
2248
2248
|
const baseId = _chunkA34UNP5Vcjs.slugifyHeadingBase.call(void 0, opts.removeEmojis ? _chunkA34UNP5Vcjs.stripHeadingEmojis.call(void 0, title) : title);
|
|
2249
2249
|
const cleanId = baseId || `section-${sections.length + 1}`;
|
|
@@ -2500,7 +2500,7 @@ function demoClockTimes(seed, options = {}) {
|
|
|
2500
2500
|
function openAskAi(source, options) {
|
|
2501
2501
|
const prompt = _optionalChain([options, 'optionalAccess', _96 => _96.prompt, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2502
2502
|
const detail = prompt ? { source: _nullishCoalesce(source, () => ( "")), prompt } : { source: _nullishCoalesce(source, () => ( "")) };
|
|
2503
|
-
window.dispatchEvent(new CustomEvent(
|
|
2503
|
+
window.dispatchEvent(new CustomEvent(_chunk2LT2WR4Ocjs.ASK_AI_OPEN_EVENT, { detail }));
|
|
2504
2504
|
}
|
|
2505
2505
|
function MingoAiButton({
|
|
2506
2506
|
source,
|
|
@@ -2543,7 +2543,7 @@ function MingoAiButton({
|
|
|
2543
2543
|
{
|
|
2544
2544
|
...props,
|
|
2545
2545
|
type: "button",
|
|
2546
|
-
...{ [
|
|
2546
|
+
...{ [_chunk2LT2WR4Ocjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" },
|
|
2547
2547
|
variant: field ? "glyph" : "transparent",
|
|
2548
2548
|
size: "wrap",
|
|
2549
2549
|
font: "regular",
|
|
@@ -2784,9 +2784,9 @@ function QuestionChips({
|
|
|
2784
2784
|
{
|
|
2785
2785
|
"data-loading-item": true,
|
|
2786
2786
|
className: _nullishCoalesce(slotClassName, () => ( CHIP_SLOT_CLASS)),
|
|
2787
|
-
...prompt ? { [
|
|
2787
|
+
...prompt ? { [_chunk2LT2WR4Ocjs.ASK_AI_TRIGGER_ATTRIBUTE]: "" } : {},
|
|
2788
2788
|
children: (loading || prompt) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2789
|
-
|
|
2789
|
+
_chunk2LT2WR4Ocjs.QuickActionChipButton,
|
|
2790
2790
|
{
|
|
2791
2791
|
loading,
|
|
2792
2792
|
variant: "question",
|
|
@@ -2996,7 +2996,7 @@ function QuickActionMarquee({
|
|
|
2996
2996
|
);
|
|
2997
2997
|
if (items.length === 0) return null;
|
|
2998
2998
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2999
|
-
|
|
2999
|
+
_chunk2LT2WR4Ocjs.QuickActionWall,
|
|
3000
3000
|
{
|
|
3001
3001
|
chips,
|
|
3002
3002
|
mode,
|
|
@@ -3211,7 +3211,7 @@ var ChatSidebar = _react.forwardRef.call(void 0,
|
|
|
3211
3211
|
hasNextPage,
|
|
3212
3212
|
isFetchingNextPage,
|
|
3213
3213
|
onLoadMore,
|
|
3214
|
-
pageSize =
|
|
3214
|
+
pageSize = _chunk2LT2WR4Ocjs.CHAT_HISTORY_PAGE_SIZE,
|
|
3215
3215
|
...props
|
|
3216
3216
|
}, ref) => {
|
|
3217
3217
|
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || !!isLoading && dialogs.length === 0 && !children;
|
|
@@ -3509,7 +3509,7 @@ function AdminContentCardGridSkeleton({
|
|
|
3509
3509
|
label = "Loading",
|
|
3510
3510
|
region = true
|
|
3511
3511
|
}) {
|
|
3512
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3512
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LT2WR4Ocjs.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) }) }) });
|
|
3513
3513
|
}
|
|
3514
3514
|
function AdminContentCardGrid({
|
|
3515
3515
|
items,
|
|
@@ -5101,7 +5101,7 @@ function Section({ title, description, children }) {
|
|
|
5101
5101
|
] });
|
|
5102
5102
|
}
|
|
5103
5103
|
function ProxyCredentialsPanel({ description }) {
|
|
5104
|
-
const hydrated =
|
|
5104
|
+
const hydrated = _chunk2LT2WR4Ocjs.useIsHydrated.call(void 0, );
|
|
5105
5105
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5106
5106
|
ProxyCredentialsForm,
|
|
5107
5107
|
{
|
|
@@ -5265,12 +5265,12 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5265
5265
|
|
|
5266
5266
|
// src/components/chat/index.ts
|
|
5267
5267
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5268
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5268
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-MQGYFYGX.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5269
5269
|
);
|
|
5270
5270
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5271
5271
|
const [loadRequested, setLoadRequested] = _react.useState.call(void 0, false);
|
|
5272
5272
|
const load = loadRequested || Boolean(props.open) || Boolean(props.defaultOpen);
|
|
5273
|
-
_react.useEffect.call(void 0, () =>
|
|
5273
|
+
_react.useEffect.call(void 0, () => _chunk2LT2WR4Ocjs.holdAskAiOpens.call(void 0, ), []);
|
|
5274
5274
|
const { loadStyles } = props;
|
|
5275
5275
|
_react.useEffect.call(void 0, () => {
|
|
5276
5276
|
if (load) _optionalChain([loadStyles, 'optionalCall', _204 => _204()]);
|
|
@@ -5278,12 +5278,12 @@ var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
|
5278
5278
|
_react.useEffect.call(void 0, () => {
|
|
5279
5279
|
if (load) return void 0;
|
|
5280
5280
|
const start = () => setLoadRequested(true);
|
|
5281
|
-
if (
|
|
5282
|
-
for (const name of
|
|
5283
|
-
const cancel =
|
|
5281
|
+
if (_chunk2LT2WR4Ocjs.askAiOpenIsHeld.call(void 0, )) queueMicrotask(start);
|
|
5282
|
+
for (const name of _chunk2LT2WR4Ocjs.ASK_AI_OPEN_EVENTS) window.addEventListener(name, start);
|
|
5283
|
+
const cancel = _chunk2LT2WR4Ocjs.onAskAiIntent.call(void 0, start);
|
|
5284
5284
|
return () => {
|
|
5285
5285
|
cancel();
|
|
5286
|
-
for (const name of
|
|
5286
|
+
for (const name of _chunk2LT2WR4Ocjs.ASK_AI_OPEN_EVENTS) window.removeEventListener(name, start);
|
|
5287
5287
|
};
|
|
5288
5288
|
}, [load]);
|
|
5289
5289
|
if (!load) return null;
|
|
@@ -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 _chunkSBXL5EKEcjs = require('./chunk-SBXL5EKE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkZRDVFADQcjs = require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -396,7 +396,7 @@ function useScrollSpy(sections, options = {}) {
|
|
|
396
396
|
// src/components/navigation/multi-level-navigation.tsx
|
|
397
397
|
var _lucidereact = require('lucide-react');
|
|
398
398
|
|
|
399
|
-
var DEFAULT_FOLDER_INDEX_FILE2 =
|
|
399
|
+
var DEFAULT_FOLDER_INDEX_FILE2 = _chunkSBXL5EKEcjs.DEFAULT_FOLDER_INDEX_FILE;
|
|
400
400
|
var NAV_LIST_CLASS = "space-y-2";
|
|
401
401
|
var NAV_ITEM_CLASS = "space-y-1";
|
|
402
402
|
var NAV_ROW_FRAME_CLASS = "relative w-full rounded-lg border transition-all duration-150";
|
|
@@ -5,12 +5,12 @@ var _chunkT266OITJcjs = require('./chunk-T266OITJ.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkSBXL5EKEcjs = require('./chunk-SBXL5EKE.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk2LT2WR4Ocjs = require('./chunk-2LT2WR4O.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -74,7 +74,7 @@ function FaqAccordion({ items, defaultOpenIds = [], loading: loadingProp, skelet
|
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
|
-
id:
|
|
77
|
+
id: _chunk2LT2WR4Ocjs.faqItemAnchor.call(void 0, item.id),
|
|
78
78
|
className: _chunk63A4GZMBcjs.cn.call(void 0, ROW_FRAME_CLASS, "hover:bg-ods-bg-hover"),
|
|
79
79
|
"data-loading-item": true,
|
|
80
80
|
children: [
|
|
@@ -140,14 +140,14 @@ function FaqAccordionSkeleton({
|
|
|
140
140
|
|
|
141
141
|
var PICK_ROOT_MARGIN = "600px";
|
|
142
142
|
function faqAskCardShown(assistant) {
|
|
143
|
-
return
|
|
143
|
+
return _chunkSBXL5EKEcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
144
144
|
}
|
|
145
145
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
146
146
|
const { ref, inView } = _chunkA34UNP5Vcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
147
147
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
148
148
|
if (inView && !reached) setReached(true);
|
|
149
149
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
150
|
-
|
|
150
|
+
_chunkSBXL5EKEcjs.AssistantAskPrompts,
|
|
151
151
|
{
|
|
152
152
|
variant: "card",
|
|
153
153
|
topic,
|
|
@@ -268,7 +268,7 @@ function groupFaqsBySection(faqs) {
|
|
|
268
268
|
}
|
|
269
269
|
let group = byName.get(name);
|
|
270
270
|
if (!group) {
|
|
271
|
-
group = { section: name, slug:
|
|
271
|
+
group = { section: name, slug: _chunk2LT2WR4Ocjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
272
272
|
byName.set(name, group);
|
|
273
273
|
}
|
|
274
274
|
group.items.push(item);
|
|
@@ -324,7 +324,7 @@ function GroupedFaqList({
|
|
|
324
324
|
}, [slugKey]);
|
|
325
325
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
326
326
|
_react.useEffect.call(void 0, () => {
|
|
327
|
-
const refresh = () => setHashTarget(
|
|
327
|
+
const refresh = () => setHashTarget(_chunk2LT2WR4Ocjs.parseFaqHash.call(void 0, window.location.hash));
|
|
328
328
|
refresh();
|
|
329
329
|
window.addEventListener("hashchange", refresh);
|
|
330
330
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -6,7 +6,7 @@ var _chunkT266OITJcjs = require('./chunk-T266OITJ.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkSBXL5EKEcjs = require('./chunk-SBXL5EKE.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -172,31 +172,31 @@ CveLink.displayName = "CveLink";
|
|
|
172
172
|
// src/components/platform/ShellTypeBadge.tsx
|
|
173
173
|
|
|
174
174
|
var shellIconMap = {
|
|
175
|
-
[
|
|
175
|
+
[_chunkSBXL5EKEcjs.ShellTypeValues.POWERSHELL]: {
|
|
176
176
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
177
177
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
178
178
|
},
|
|
179
|
-
[
|
|
179
|
+
[_chunkSBXL5EKEcjs.ShellTypeValues.CMD]: {
|
|
180
180
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
181
181
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
182
182
|
},
|
|
183
|
-
[
|
|
183
|
+
[_chunkSBXL5EKEcjs.ShellTypeValues.BASH]: {
|
|
184
184
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
185
185
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
186
186
|
},
|
|
187
|
-
[
|
|
187
|
+
[_chunkSBXL5EKEcjs.ShellTypeValues.PYTHON]: {
|
|
188
188
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
189
189
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
190
190
|
},
|
|
191
|
-
[
|
|
191
|
+
[_chunkSBXL5EKEcjs.ShellTypeValues.NUSHELL]: {
|
|
192
192
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
193
193
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
194
194
|
},
|
|
195
|
-
[
|
|
195
|
+
[_chunkSBXL5EKEcjs.ShellTypeValues.DENO]: {
|
|
196
196
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
197
197
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
198
198
|
},
|
|
199
|
-
[
|
|
199
|
+
[_chunkSBXL5EKEcjs.ShellTypeValues.SHELL]: {
|
|
200
200
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
201
201
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
202
202
|
}
|
|
@@ -207,7 +207,7 @@ var defaultIconConfig = {
|
|
|
207
207
|
};
|
|
208
208
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
209
209
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
210
|
-
const label =
|
|
210
|
+
const label = _chunkSBXL5EKEcjs.getShellLabel.call(void 0, normalizedType);
|
|
211
211
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
212
212
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
213
213
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -223,7 +223,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
223
223
|
if (!platforms || platforms.length === 0) {
|
|
224
224
|
return "All Platforms";
|
|
225
225
|
}
|
|
226
|
-
return platforms.map((platform) =>
|
|
226
|
+
return platforms.map((platform) => _chunkSBXL5EKEcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
227
227
|
}
|
|
228
228
|
function InfoCell({ label, value, avatar, className }) {
|
|
229
229
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -253,7 +253,7 @@ var ScriptInfoSection = ({
|
|
|
253
253
|
author,
|
|
254
254
|
className
|
|
255
255
|
}) => {
|
|
256
|
-
const shellLabel =
|
|
256
|
+
const shellLabel = _chunkSBXL5EKEcjs.getShellLabel.call(void 0, shellType);
|
|
257
257
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
258
258
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
259
259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-b border-ods-border p-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
@@ -5,12 +5,12 @@ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkK7NGDYBGcjs = require('./chunk-K7NGDYBG.cjs');
|
|
9
9
|
|
|
10
10
|
// src/components/product-demo/screens/devices-view.tsx
|
|
11
11
|
var _jsxruntime = require('react/jsx-runtime');
|
|
12
12
|
var DEVICES_SEARCH_QUERY = "Windows";
|
|
13
|
-
var TOOLBAR = { ...
|
|
13
|
+
var TOOLBAR = { ..._chunkK7NGDYBGcjs.IDLE_DEVICES_TOOLBAR, searchValue: DEVICES_SEARCH_QUERY };
|
|
14
14
|
var NO_HEADER = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, {});
|
|
15
15
|
var HIDDEN_WHEN_COMPACT = ["organization"];
|
|
16
16
|
var NO_DEVICES = [];
|
|
@@ -22,7 +22,7 @@ function DevicesScreenView({
|
|
|
22
22
|
loading = false
|
|
23
23
|
}) {
|
|
24
24
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25
|
-
|
|
25
|
+
_chunkK7NGDYBGcjs.DevicesPanelView,
|
|
26
26
|
{
|
|
27
27
|
className: "p-[var(--spacing-system-l)]",
|
|
28
28
|
headerSlot: NO_HEADER,
|