@flamingo-stack/openframe-frontend-core 0.0.747 → 0.0.748
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-TYW7NBP7.cjs → chunk-46EIXJFC.cjs} +9 -9
- package/dist/{chunk-PIQRV4EQ.cjs → chunk-4AZHFLOM.cjs} +3 -3
- package/dist/{chunk-R3FXJXSQ.cjs → chunk-6XP6RNFD.cjs} +273 -273
- package/dist/{chunk-4DT5YXTM.cjs → chunk-7Y3VMMJB.cjs} +7 -7
- package/dist/{chunk-7Y5U3Y4S.cjs → chunk-BBTSJYTR.cjs} +38 -33
- package/dist/{chunk-FCQCEQBY.cjs → chunk-D4XZL27V.cjs} +4 -4
- package/dist/{chunk-2CEQGGRN.cjs → chunk-EH3LOWGY.cjs} +17 -17
- package/dist/{chunk-O6QQ44I3.cjs → chunk-G2ELX3DG.cjs} +11 -11
- package/dist/{chunk-LLAKQT3B.cjs → chunk-GE4PCDNZ.cjs} +6 -6
- package/dist/{chunk-WY4FKKCV.cjs → chunk-H34A2765.cjs} +37 -37
- package/dist/{chunk-IJA3OZWF.cjs → chunk-JNBOQ7F2.cjs} +9 -9
- package/dist/{chunk-JPSMPXCH.cjs → chunk-JOPFX3PJ.cjs} +66 -66
- package/dist/{chunk-6RTHHU3S.cjs → chunk-OZUJYBQ2.cjs} +4 -4
- package/dist/{chunk-MA7T36JY.cjs → chunk-TRXCQADV.cjs} +33 -33
- package/dist/{chunk-HTMHDEIV.cjs → chunk-UNR74CAC.cjs} +4 -4
- package/dist/{chunk-4AWI6CCU.cjs → chunk-YKJQM2O6.cjs} +25 -25
- package/dist/{chunk-C7NTL2GV.cjs → chunk-ZNUSYMH7.cjs} +15 -15
- package/dist/{cloud-tenants-QJZIF2JS.cjs → cloud-tenants-V5727B7F.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/chat/index.cjs +3 -3
- 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 +74 -74
- package/dist/components/index.cjs +37 -37
- package/dist/components/meeting-scheduler/index.cjs +22 -22
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +4 -4
- package/dist/{devices-V55KQCAL.cjs → devices-WWMXIIHI.cjs} +5 -5
- package/dist/{embeddable-chat-5CDR4I6E.cjs → embeddable-chat-IJHCGQ24.cjs} +64 -64
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-S3VGDRKR.cjs → knowledge-JZP4RIXB.cjs} +5 -5
- package/dist/{logs-K5E2BGZE.cjs → logs-WIRYFNUC.cjs} +12 -12
- package/dist/{policies-BWU4FRFE.cjs → policies-X7OJYA7G.cjs} +8 -8
- package/dist/{scripts-25UPGXZU.cjs → scripts-GRMT2NGW.cjs} +9 -9
- package/dist/{software-update-F6UC7ULZ.cjs → software-update-G3QOB7RT.cjs} +7 -7
- package/dist/utils/index.cjs +49 -48
- package/dist/utils/markdown-to-plain.d.ts.map +1 -1
- package/dist/utils/markdown-to-plain.js +12 -7
- package/package.json +7 -2
- package/src/utils/markdown-to-plain.ts +25 -16
|
@@ -5,12 +5,12 @@ var _chunk4FWURR3Wcjs = require('./chunk-4FWURR3W.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZNUSYMH7cjs = require('./chunk-ZNUSYMH7.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkBBTSJYTRcjs = require('./chunk-BBTSJYTR.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -57,7 +57,7 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
57
57
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
id:
|
|
60
|
+
id: _chunkBBTSJYTRcjs.faqItemAnchor.call(void 0, item.id),
|
|
61
61
|
className: "scroll-mt-24 transition-colors hover:bg-ods-bg-hover",
|
|
62
62
|
children: [
|
|
63
63
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -110,14 +110,14 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
110
110
|
|
|
111
111
|
var PICK_ROOT_MARGIN = "600px";
|
|
112
112
|
function faqAskCardShown(assistant) {
|
|
113
|
-
return
|
|
113
|
+
return _chunkZNUSYMH7cjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
114
114
|
}
|
|
115
115
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
116
116
|
const { ref, inView } = _chunkCSJO7ZGNcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
117
117
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
118
118
|
if (inView && !reached) setReached(true);
|
|
119
119
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
120
|
-
|
|
120
|
+
_chunkZNUSYMH7cjs.AssistantAskPrompts,
|
|
121
121
|
{
|
|
122
122
|
variant: "card",
|
|
123
123
|
topic,
|
|
@@ -191,7 +191,7 @@ function groupFaqsBySection(faqs) {
|
|
|
191
191
|
}
|
|
192
192
|
let group = byName.get(name);
|
|
193
193
|
if (!group) {
|
|
194
|
-
group = { section: name, slug:
|
|
194
|
+
group = { section: name, slug: _chunkBBTSJYTRcjs.faqSectionSlug.call(void 0, name), items: [] };
|
|
195
195
|
byName.set(name, group);
|
|
196
196
|
}
|
|
197
197
|
group.items.push(item);
|
|
@@ -246,7 +246,7 @@ function GroupedFaqList({
|
|
|
246
246
|
}, [slugKey]);
|
|
247
247
|
const [hashTarget, setHashTarget] = _react.useState.call(void 0, null);
|
|
248
248
|
_react.useEffect.call(void 0, () => {
|
|
249
|
-
const refresh = () => setHashTarget(
|
|
249
|
+
const refresh = () => setHashTarget(_chunkBBTSJYTRcjs.parseFaqHash.call(void 0, window.location.hash));
|
|
250
250
|
refresh();
|
|
251
251
|
window.addEventListener("hashchange", refresh);
|
|
252
252
|
return () => window.removeEventListener("hashchange", refresh);
|
|
@@ -612,21 +612,26 @@ function formatMarkdownLink({ text: text2, url, rel }) {
|
|
|
612
612
|
}
|
|
613
613
|
|
|
614
614
|
// src/utils/markdown-to-plain.ts
|
|
615
|
+
var _hastutilraw = require('hast-util-raw');
|
|
615
616
|
var _hastutiltotext = require('hast-util-to-text');
|
|
616
|
-
var
|
|
617
|
-
var
|
|
618
|
-
var
|
|
619
|
-
var
|
|
620
|
-
var
|
|
617
|
+
var _mdastutilfrommarkdown = require('mdast-util-from-markdown');
|
|
618
|
+
var _mdastutilgfm = require('mdast-util-gfm');
|
|
619
|
+
var _mdastutilnewlinetobreak = require('mdast-util-newline-to-break');
|
|
620
|
+
var _mdastutiltohast = require('mdast-util-to-hast');
|
|
621
|
+
var _micromarkextensiongfm = require('micromark-extension-gfm');
|
|
621
622
|
var _unistutilvisit = require('unist-util-visit');
|
|
622
623
|
function stripInlineMarkdown(s) {
|
|
623
624
|
return s.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").replace(/\*\*([^*]+)\*\*/g, "$1").replace(/\*([^*]+)\*/g, "$1").replace(/`([^`]+)`/g, "$1");
|
|
624
625
|
}
|
|
625
|
-
var toHtmlTree = _remark.remark.call(void 0, ).use(_remarkgfm2.default).use(_remarkbreaks2.default).use(_remarkrehype2.default, { allowDangerousHtml: true }).use(_rehyperaw2.default);
|
|
626
626
|
var NOT_PROSE = /* @__PURE__ */ new Set(["pre", "img"]);
|
|
627
627
|
var TABLE_SECTIONS = /* @__PURE__ */ new Set(["thead", "tbody", "tfoot"]);
|
|
628
|
+
function htmlTree(markdown) {
|
|
629
|
+
const mdast = _mdastutilfrommarkdown.fromMarkdown.call(void 0, markdown, { extensions: [_micromarkextensiongfm.gfm.call(void 0, )], mdastExtensions: [_mdastutilgfm.gfmFromMarkdown.call(void 0, )] });
|
|
630
|
+
_mdastutilnewlinetobreak.newlineToBreak.call(void 0, mdast);
|
|
631
|
+
return _hastutilraw.raw.call(void 0, _mdastutiltohast.toHast.call(void 0, mdast, { allowDangerousHtml: true }));
|
|
632
|
+
}
|
|
628
633
|
function proseTree(markdown) {
|
|
629
|
-
const tree =
|
|
634
|
+
const tree = htmlTree(markdown);
|
|
630
635
|
_unistutilvisit.visit.call(void 0, tree, "element", (node, index, parent) => {
|
|
631
636
|
if (NOT_PROSE.has(node.tagName) && parent && index !== void 0) {
|
|
632
637
|
parent.children.splice(index, 1);
|
|
@@ -1495,14 +1500,14 @@ function scrubProperties(properties, tag) {
|
|
|
1495
1500
|
let next;
|
|
1496
1501
|
for (const key of Object.keys(properties)) {
|
|
1497
1502
|
const lower = key.toLowerCase();
|
|
1498
|
-
const
|
|
1503
|
+
const raw2 = properties[key];
|
|
1499
1504
|
if (EVENT_HANDLER_ATTR_RE.test(key)) {
|
|
1500
1505
|
_nullishCoalesce(next, () => ( (next = { ...properties })));
|
|
1501
1506
|
delete next[key];
|
|
1502
1507
|
continue;
|
|
1503
1508
|
}
|
|
1504
1509
|
if (URL_ATTRS.has(lower)) {
|
|
1505
|
-
const v = Array.isArray(
|
|
1510
|
+
const v = Array.isArray(raw2) ? raw2[0] : raw2;
|
|
1506
1511
|
if (typeof v === "string") {
|
|
1507
1512
|
const unsafe = lower === "srcset" ? srcsetHasUnsafeCandidate(v) : JAVASCRIPT_URL_RE.test(v) || DATA_URL_RE.test(v);
|
|
1508
1513
|
if (unsafe) {
|
|
@@ -1517,8 +1522,8 @@ function scrubProperties(properties, tag) {
|
|
|
1517
1522
|
delete next[key];
|
|
1518
1523
|
continue;
|
|
1519
1524
|
}
|
|
1520
|
-
if (lower === "style" && typeof
|
|
1521
|
-
const cleaned =
|
|
1525
|
+
if (lower === "style" && typeof raw2 === "string" && POSITIONING_DECL_RE.test(raw2)) {
|
|
1526
|
+
const cleaned = raw2.split(";").filter((decl) => !POSITIONING_DECL_RE.test(decl)).join(";").trim();
|
|
1522
1527
|
_nullishCoalesce(next, () => ( (next = { ...properties })));
|
|
1523
1528
|
if (cleaned === "" || cleaned === ";") delete next[key];
|
|
1524
1529
|
else next[key] = cleaned;
|
|
@@ -2788,10 +2793,10 @@ function resolveTextSizeConfig(config) {
|
|
|
2788
2793
|
// src/components/ui/markdown/engine.tsx
|
|
2789
2794
|
|
|
2790
2795
|
|
|
2796
|
+
var _rehyperaw = require('rehype-raw'); var _rehyperaw2 = _interopRequireDefault(_rehyperaw);
|
|
2791
2797
|
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2798
|
+
var _remarkbreaks = require('remark-breaks'); var _remarkbreaks2 = _interopRequireDefault(_remarkbreaks);
|
|
2799
|
+
var _remarkgfm = require('remark-gfm'); var _remarkgfm2 = _interopRequireDefault(_remarkgfm);
|
|
2795
2800
|
|
|
2796
2801
|
// src/components/ui/markdown/base-components.tsx
|
|
2797
2802
|
|
|
@@ -6596,11 +6601,11 @@ function buildAutoContinuationDirective(toolName, opts = {}) {
|
|
|
6596
6601
|
}
|
|
6597
6602
|
|
|
6598
6603
|
// src/components/chat/utils/flatten-assistant-content.ts
|
|
6599
|
-
function flattenAssistantContent(
|
|
6600
|
-
if (typeof
|
|
6601
|
-
if (!Array.isArray(
|
|
6604
|
+
function flattenAssistantContent(raw2) {
|
|
6605
|
+
if (typeof raw2 === "string") return raw2;
|
|
6606
|
+
if (!Array.isArray(raw2)) return "";
|
|
6602
6607
|
const parts = [];
|
|
6603
|
-
for (const seg of
|
|
6608
|
+
for (const seg of raw2) {
|
|
6604
6609
|
if (seg && typeof seg === "object" && seg.type === "text") {
|
|
6605
6610
|
const t = seg.text;
|
|
6606
6611
|
if (typeof t === "string" && t.length > 0) parts.push(t);
|
|
@@ -6611,8 +6616,8 @@ function flattenAssistantContent(raw) {
|
|
|
6611
6616
|
|
|
6612
6617
|
// src/components/chat/utils/scroll-anchor.ts
|
|
6613
6618
|
var SCROLL_ANCHOR_WIRE_KEY = "scrollAnchor";
|
|
6614
|
-
function parseScrollAnchor(
|
|
6615
|
-
return
|
|
6619
|
+
function parseScrollAnchor(raw2) {
|
|
6620
|
+
return raw2 === SCROLL_ANCHOR.TOP || raw2 === SCROLL_ANCHOR.BOTTOM ? raw2 : null;
|
|
6616
6621
|
}
|
|
6617
6622
|
|
|
6618
6623
|
// src/components/chat/utils/slash-dispatch-utils.ts
|
|
@@ -6621,10 +6626,10 @@ var WIRE_ID_REGEX = /^[A-Za-z0-9._:/-]+$/;
|
|
|
6621
6626
|
var WIRE_TABLE_ID_MAX = 60;
|
|
6622
6627
|
var WIRE_ID_MAX = 200;
|
|
6623
6628
|
var WIRE_QUERY_MAX = 2e3;
|
|
6624
|
-
function parseWireCommandOverride(
|
|
6625
|
-
if (!
|
|
6629
|
+
function parseWireCommandOverride(raw2) {
|
|
6630
|
+
if (!raw2 || typeof raw2 !== "object") return null;
|
|
6626
6631
|
const out = {};
|
|
6627
|
-
const r =
|
|
6632
|
+
const r = raw2;
|
|
6628
6633
|
if (r.entityIdFilter && typeof r.entityIdFilter === "object") {
|
|
6629
6634
|
const f = r.entityIdFilter;
|
|
6630
6635
|
if (typeof f.tableId === "string" && f.tableId.length > 0 && f.tableId.length <= WIRE_TABLE_ID_MAX && WIRE_TABLE_ID_REGEX.test(f.tableId) && typeof f.id === "string" && f.id.length > 0 && f.id.length <= WIRE_ID_MAX && WIRE_ID_REGEX.test(f.id)) {
|
|
@@ -12060,8 +12065,8 @@ function TrustCenterChatCard({
|
|
|
12060
12065
|
isNewTab,
|
|
12061
12066
|
discuss
|
|
12062
12067
|
}) {
|
|
12063
|
-
const
|
|
12064
|
-
const frameworks = Array.isArray(
|
|
12068
|
+
const raw2 = _optionalChain([item, 'optionalAccess', _285 => _285.frameworks]);
|
|
12069
|
+
const frameworks = Array.isArray(raw2) ? raw2 : [];
|
|
12065
12070
|
const summary = _chunkP7KTAXXEcjs.trustFrameworksSummary.call(void 0, frameworks);
|
|
12066
12071
|
const leadFramework = frameworks[0];
|
|
12067
12072
|
const lead = leadFramework ? {
|
|
@@ -15102,10 +15107,10 @@ function createSseFrameDecoder() {
|
|
|
15102
15107
|
ended = true;
|
|
15103
15108
|
const out = [];
|
|
15104
15109
|
if (trailerBuffer.length > 0) {
|
|
15105
|
-
const
|
|
15110
|
+
const raw2 = trailerBuffer;
|
|
15106
15111
|
trailerBuffer = "";
|
|
15107
15112
|
try {
|
|
15108
|
-
const meta = JSON.parse(
|
|
15113
|
+
const meta = JSON.parse(raw2);
|
|
15109
15114
|
if (isFrameObject(meta) && meta.kind === "usage" && (meta.stage === "end" || meta.stage === "display")) {
|
|
15110
15115
|
out.push({
|
|
15111
15116
|
type: "usage",
|
|
@@ -17797,9 +17802,9 @@ function strOr(value, fallback = "") {
|
|
|
17797
17802
|
function numOr(value, fallback = 0) {
|
|
17798
17803
|
return typeof value === "number" ? value : fallback;
|
|
17799
17804
|
}
|
|
17800
|
-
function normalizeToolCalls(
|
|
17801
|
-
if (!Array.isArray(
|
|
17802
|
-
return
|
|
17805
|
+
function normalizeToolCalls(raw2) {
|
|
17806
|
+
if (!Array.isArray(raw2)) return [];
|
|
17807
|
+
return raw2.filter(isRecord).map((item) => ({
|
|
17803
17808
|
toolExecutionRequestId: String(_nullishCoalesce(item.toolExecutionRequestId, () => ( ""))),
|
|
17804
17809
|
toolName: String(_nullishCoalesce(item.toolName, () => ( ""))),
|
|
17805
17810
|
toolTitle: typeof item.toolTitle === "string" ? item.toolTitle : void 0,
|
|
@@ -17810,9 +17815,9 @@ function normalizeToolCalls(raw) {
|
|
|
17810
17815
|
toolCallArguments: isRecord(item.toolCallArguments) ? item.toolCallArguments : null
|
|
17811
17816
|
}));
|
|
17812
17817
|
}
|
|
17813
|
-
function normalizeAskOptions(
|
|
17814
|
-
if (!Array.isArray(
|
|
17815
|
-
return
|
|
17818
|
+
function normalizeAskOptions(raw2) {
|
|
17819
|
+
if (!Array.isArray(raw2)) return [];
|
|
17820
|
+
return raw2.filter(isRecord).map((item) => ({
|
|
17816
17821
|
label: typeof item.label === "string" ? item.label.trim() : "",
|
|
17817
17822
|
description: typeof item.description === "string" ? item.description : void 0
|
|
17818
17823
|
})).filter((option) => option.label.length > 0);
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunk7Y3VMMJBcjs = require('./chunk-7Y3VMMJB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6XP6RNFDcjs = require('./chunk-6XP6RNFD.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkU6XWGK53cjs = require('./chunk-U6XWGK53.cjs');
|
|
@@ -35,7 +35,7 @@ function FaqDocumentPage({
|
|
|
35
35
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
36
36
|
};
|
|
37
37
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkU6XWGK53cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
-
|
|
38
|
+
_chunk7Y3VMMJBcjs.FaqSection,
|
|
39
39
|
{
|
|
40
40
|
initialFaqs,
|
|
41
41
|
heading: null,
|
|
@@ -49,7 +49,7 @@ function FaqDocumentPage({
|
|
|
49
49
|
ask
|
|
50
50
|
}
|
|
51
51
|
) });
|
|
52
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|
|
@@ -6,25 +6,25 @@ var _chunk4MGZYY6Ucjs = require('./chunk-4MGZYY6U.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkGE4PCDNZcjs = require('./chunk-GE4PCDNZ.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk6XP6RNFDcjs = require('./chunk-6XP6RNFD.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkU6XWGK53cjs = require('./chunk-U6XWGK53.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkZNUSYMH7cjs = require('./chunk-ZNUSYMH7.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkBBTSJYTRcjs = require('./chunk-BBTSJYTR.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunk3RFQPQ7Zcjs = require('./chunk-3RFQPQ7Z.cjs');
|
|
@@ -138,14 +138,14 @@ function OnboardingGuidesCatalogView({
|
|
|
138
138
|
});
|
|
139
139
|
};
|
|
140
140
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
141
|
-
const docSearch =
|
|
141
|
+
const docSearch = _chunkGE4PCDNZcjs.useDocSearch.call(void 0, {
|
|
142
142
|
source,
|
|
143
143
|
baseRoute: basePath,
|
|
144
144
|
onNavigate: (path) => router.push(path),
|
|
145
145
|
tableIds: ["onboarding-guides"]
|
|
146
146
|
});
|
|
147
147
|
const defaultRenderCard = (guide) => {
|
|
148
|
-
const cta =
|
|
148
|
+
const cta = _chunkZNUSYMH7cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
149
149
|
type: "onboarding_guide",
|
|
150
150
|
slug: guide.slug,
|
|
151
151
|
basePath,
|
|
@@ -156,7 +156,7 @@ function OnboardingGuidesCatalogView({
|
|
|
156
156
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
157
157
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
158
158
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
159
|
-
|
|
159
|
+
_chunkGE4PCDNZcjs.DocSearchBar,
|
|
160
160
|
{
|
|
161
161
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
162
162
|
query: docSearch.query,
|
|
@@ -168,7 +168,7 @@ function OnboardingGuidesCatalogView({
|
|
|
168
168
|
}
|
|
169
169
|
),
|
|
170
170
|
sections.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
171
|
-
|
|
171
|
+
_chunk6XP6RNFDcjs.FilterPillRow,
|
|
172
172
|
{
|
|
173
173
|
label: "Section",
|
|
174
174
|
selectedValue: activeSection,
|
|
@@ -178,7 +178,7 @@ function OnboardingGuidesCatalogView({
|
|
|
178
178
|
)
|
|
179
179
|
] });
|
|
180
180
|
if (selfFetch && guidesRes.error) {
|
|
181
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
181
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
182
182
|
}
|
|
183
183
|
if (selfFetch && guidesRes.data == null && isLoading) {
|
|
184
184
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingGuidesCatalogSkeleton, {});
|
|
@@ -210,7 +210,7 @@ function OnboardingGuideDetailView({
|
|
|
210
210
|
slug,
|
|
211
211
|
guideEndpoint,
|
|
212
212
|
related = [],
|
|
213
|
-
MarkdownRenderer =
|
|
213
|
+
MarkdownRenderer = _chunk6XP6RNFDcjs.RichMarkdownRenderer,
|
|
214
214
|
renderRelatedCard,
|
|
215
215
|
backHref,
|
|
216
216
|
backLabel = "Back to Getting Started",
|
|
@@ -220,9 +220,9 @@ function OnboardingGuideDetailView({
|
|
|
220
220
|
}) {
|
|
221
221
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
222
222
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
223
|
-
const captions =
|
|
223
|
+
const captions = _chunkBBTSJYTRcjs.useCaptions.call(void 0, );
|
|
224
224
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
225
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
225
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
226
226
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
227
227
|
const { data: guide, isLoading, error, reload } = _chunkYIRX6C7Vcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
228
228
|
const { ref: videoWarmupRef } = _chunk3RFQPQ7Zcjs.useVideoWarmup.call(void 0, {
|
|
@@ -230,7 +230,7 @@ function OnboardingGuideDetailView({
|
|
|
230
230
|
supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _9 => _9.endpoints, 'access', _10 => _10.supabaseStorageOrigin])
|
|
231
231
|
});
|
|
232
232
|
if (error || !guide && !isLoading) {
|
|
233
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
233
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
234
234
|
}
|
|
235
235
|
if (!guide) {
|
|
236
236
|
return renderShell(
|
|
@@ -244,7 +244,7 @@ function OnboardingGuideDetailView({
|
|
|
244
244
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
245
245
|
_chunkI5MSCD57cjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), guide.title, { aspect: "wide" });
|
|
246
246
|
const defaultRenderRelatedCard = (g) => {
|
|
247
|
-
const cta =
|
|
247
|
+
const cta = _chunkZNUSYMH7cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
248
248
|
type: "onboarding_guide",
|
|
249
249
|
slug: g.slug,
|
|
250
250
|
basePath,
|
|
@@ -262,7 +262,7 @@ function OnboardingGuideDetailView({
|
|
|
262
262
|
titleWrap: true,
|
|
263
263
|
backButton: { label: backLabel, onClick: () => router.push(resolvedBackHref) },
|
|
264
264
|
children: [
|
|
265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
265
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6XP6RNFDcjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
|
|
266
266
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
267
267
|
_chunkP7KTAXXEcjs.EntityAuthorCard,
|
|
268
268
|
{
|
|
@@ -279,7 +279,7 @@ function OnboardingGuideDetailView({
|
|
|
279
279
|
}
|
|
280
280
|
),
|
|
281
281
|
(guide.main_video_url || guide.youtube_url) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
282
|
-
|
|
282
|
+
_chunkBBTSJYTRcjs.EntityVideoSection,
|
|
283
283
|
{
|
|
284
284
|
mainVideoUrl: guide.main_video_url,
|
|
285
285
|
youtubeUrl: guide.youtube_url || void 0,
|
|
@@ -296,7 +296,7 @@ function OnboardingGuideDetailView({
|
|
|
296
296
|
) }),
|
|
297
297
|
guide.content && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: guide.content }) }),
|
|
298
298
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
299
|
-
|
|
299
|
+
_chunkBBTSJYTRcjs.VideoBitesStrip,
|
|
300
300
|
{
|
|
301
301
|
bites: _nullishCoalesce(guide.video_bites, () => ( [])),
|
|
302
302
|
filterPublished: true,
|
|
@@ -6,7 +6,7 @@ var _chunk4FWURR3Wcjs = require('./chunk-4FWURR3W.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkZNUSYMH7cjs = require('./chunk-ZNUSYMH7.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -162,31 +162,31 @@ CveLink.displayName = "CveLink";
|
|
|
162
162
|
// src/components/platform/ShellTypeBadge.tsx
|
|
163
163
|
|
|
164
164
|
var shellIconMap = {
|
|
165
|
-
[
|
|
165
|
+
[_chunkZNUSYMH7cjs.ShellTypeValues.POWERSHELL]: {
|
|
166
166
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
167
167
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
168
168
|
},
|
|
169
|
-
[
|
|
169
|
+
[_chunkZNUSYMH7cjs.ShellTypeValues.CMD]: {
|
|
170
170
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
171
171
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
172
172
|
},
|
|
173
|
-
[
|
|
173
|
+
[_chunkZNUSYMH7cjs.ShellTypeValues.BASH]: {
|
|
174
174
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
175
175
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
176
176
|
},
|
|
177
|
-
[
|
|
177
|
+
[_chunkZNUSYMH7cjs.ShellTypeValues.PYTHON]: {
|
|
178
178
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
179
179
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
180
180
|
},
|
|
181
|
-
[
|
|
181
|
+
[_chunkZNUSYMH7cjs.ShellTypeValues.NUSHELL]: {
|
|
182
182
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
183
183
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
184
184
|
},
|
|
185
|
-
[
|
|
185
|
+
[_chunkZNUSYMH7cjs.ShellTypeValues.DENO]: {
|
|
186
186
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
187
187
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
188
188
|
},
|
|
189
|
-
[
|
|
189
|
+
[_chunkZNUSYMH7cjs.ShellTypeValues.SHELL]: {
|
|
190
190
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
191
191
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
192
192
|
}
|
|
@@ -197,7 +197,7 @@ var defaultIconConfig = {
|
|
|
197
197
|
};
|
|
198
198
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
199
199
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
200
|
-
const label =
|
|
200
|
+
const label = _chunkZNUSYMH7cjs.getShellLabel.call(void 0, normalizedType);
|
|
201
201
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
202
202
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
203
203
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -213,7 +213,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
213
213
|
if (!platforms || platforms.length === 0) {
|
|
214
214
|
return "All Platforms";
|
|
215
215
|
}
|
|
216
|
-
return platforms.map((platform) =>
|
|
216
|
+
return platforms.map((platform) => _chunkZNUSYMH7cjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
217
217
|
}
|
|
218
218
|
function InfoCell({ label, value, avatar, className }) {
|
|
219
219
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -233,7 +233,7 @@ var ScriptInfoSection = ({
|
|
|
233
233
|
author,
|
|
234
234
|
className
|
|
235
235
|
}) => {
|
|
236
|
-
const shellLabel =
|
|
236
|
+
const shellLabel = _chunkZNUSYMH7cjs.getShellLabel.call(void 0, shellType);
|
|
237
237
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
238
238
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
239
239
|
/* @__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: [
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunk6XP6RNFDcjs = require('./chunk-6XP6RNFD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkBBTSJYTRcjs = require('./chunk-BBTSJYTR.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkCSJO7ZGNcjs = require('./chunk-CSJO7ZGN.cjs');
|
|
@@ -40,7 +40,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
40
40
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
41
41
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
42
42
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
43
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
43
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkBBTSJYTRcjs.resolveSourceIcon.call(void 0, {
|
|
44
44
|
sourceRepo,
|
|
45
45
|
documentType: docType
|
|
46
46
|
});
|
|
@@ -70,7 +70,7 @@ function DocSearchBar({
|
|
|
70
70
|
renderResult
|
|
71
71
|
}) {
|
|
72
72
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
73
|
-
|
|
73
|
+
_chunk6XP6RNFDcjs.SearchInput,
|
|
74
74
|
{
|
|
75
75
|
placeholder,
|
|
76
76
|
value: query,
|
|
@@ -120,7 +120,7 @@ function mapDocSearchResults(docs) {
|
|
|
120
120
|
results.push({
|
|
121
121
|
id: `group-${entry.repo}`,
|
|
122
122
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
123
|
-
title: `${
|
|
123
|
+
title: `${_chunkBBTSJYTRcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkBBTSJYTRcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
124
124
|
path: rows[0].path,
|
|
125
125
|
type: "file",
|
|
126
126
|
metadata: {
|
|
@@ -336,7 +336,7 @@ function useDocSearch(config) {
|
|
|
336
336
|
return;
|
|
337
337
|
case "ask-ai":
|
|
338
338
|
setKeepOpen(false);
|
|
339
|
-
window.dispatchEvent(new CustomEvent(
|
|
339
|
+
window.dispatchEvent(new CustomEvent(_chunkBBTSJYTRcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
340
340
|
return;
|
|
341
341
|
case "route":
|
|
342
342
|
setKeepOpen(false);
|