@flamingo-stack/openframe-frontend-core 0.0.736 → 0.0.737
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/{chunk-T27CVQBO.cjs → chunk-4FJZ7RJD.cjs} +16 -16
- package/dist/{chunk-URX2YTCL.cjs → chunk-4ISP3XP4.cjs} +42 -36
- package/dist/{chunk-BL5GOCHP.cjs → chunk-4RMLAHU2.cjs} +17 -9
- package/dist/{chunk-SZFA2LQR.cjs → chunk-CM35DLKS.cjs} +33 -33
- package/dist/{chunk-7V2KP2TB.cjs → chunk-DA4VS6TS.cjs} +4 -4
- package/dist/{chunk-OJUMVOMP.cjs → chunk-E2JCZU36.cjs} +260 -260
- package/dist/{chunk-UBQSOB3X.cjs → chunk-FA2LATDM.cjs} +4 -4
- package/dist/{chunk-FTGVG6FW.cjs → chunk-KVGBDWYV.cjs} +17 -17
- package/dist/{chunk-JGGSRCRD.cjs → chunk-LW3QSP47.cjs} +11 -11
- package/dist/{chunk-NONQUGRP.cjs → chunk-N6YOOGCD.cjs} +6 -6
- package/dist/chunk-O4MG7FXW.cjs +57 -0
- package/dist/{chunk-P6Z3EBPJ.cjs → chunk-SGVQO5J6.cjs} +9 -9
- package/dist/{chunk-JM54CNZZ.cjs → chunk-TJQYX3QC.cjs} +66 -66
- package/dist/{chunk-ZEX5WU35.cjs → chunk-URIJ6YUG.cjs} +40 -66
- package/dist/{chunk-OV6BGMEL.cjs → chunk-VL4JKXU2.cjs} +125 -113
- package/dist/{chunk-BDF3FNOC.cjs → chunk-VYODTHMR.cjs} +25 -25
- package/dist/{chunk-LIH5OQLY.cjs → chunk-XPP7VCNY.cjs} +3 -3
- package/dist/{cloud-tenants-M55HMW6F.cjs → cloud-tenants-IWQ5FFLY.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/chat/entity-cards/index.d.ts +1 -0
- package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/index.js +2 -0
- package/dist/components/chat/hooks/use-ask-prompts.d.ts +1 -1
- package/dist/components/chat/hooks/use-ask-prompts.js +1 -1
- package/dist/components/chat/index.cjs +5 -3
- package/dist/components/chat/mingo-info-card.d.ts +17 -1
- package/dist/components/chat/mingo-info-card.d.ts.map +1 -1
- package/dist/components/chat/mingo-info-card.js +15 -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/faq-ask-card.d.ts +5 -4
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
- package/dist/components/faq/faq-document-page.d.ts +3 -1
- package/dist/components/faq/faq-document-page.d.ts.map +1 -1
- package/dist/components/faq/faq-document-page.js +2 -0
- package/dist/components/faq/faq-section.d.ts +37 -5
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/faq-section.js +31 -9
- package/dist/components/faq/index.cjs +11 -5
- package/dist/components/faq/index.d.ts +1 -1
- package/dist/components/faq/index.d.ts.map +1 -1
- package/dist/components/faq/index.js +4 -2
- package/dist/components/features/index.cjs +4 -4
- package/dist/components/help-center-pages/delivery-page.d.ts +8 -1
- package/dist/components/help-center-pages/delivery-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/delivery-page.js +16 -4
- package/dist/components/help-center-pages/download-apps-page.d.ts +8 -1
- package/dist/components/help-center-pages/download-apps-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/download-apps-page.js +11 -6
- package/dist/components/help-center-pages/index.cjs +169 -114
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts +8 -1
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/onboarding-guides-catalog-page.js +26 -14
- package/dist/components/help-center-pages/product-releases-list-page.d.ts +8 -1
- package/dist/components/help-center-pages/product-releases-list-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/product-releases-list-page.js +24 -12
- package/dist/components/help-center-pages/roadmap-page.d.ts +8 -1
- package/dist/components/help-center-pages/roadmap-page.d.ts.map +1 -1
- package/dist/components/help-center-pages/roadmap-page.js +25 -13
- package/dist/components/index.cjs +46 -38
- package/dist/components/meeting-scheduler/index.cjs +20 -20
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +6 -6
- package/dist/components/shared/dev-section/dev-section-page.d.ts +8 -1
- package/dist/components/shared/dev-section/dev-section-page.d.ts.map +1 -1
- package/dist/components/shared/dev-section/dev-section-page.js +8 -3
- package/dist/components/shared/legal-document/legal-document-page.d.ts +8 -1
- package/dist/components/shared/legal-document/legal-document-page.d.ts.map +1 -1
- package/dist/components/shared/legal-document/legal-document-page.js +4 -1
- package/dist/components/tickets/index.cjs +9 -8
- package/dist/components/ui/index.cjs +6 -4
- package/dist/contexts/assistant-runtime-context.d.ts +5 -5
- package/dist/{devices-WWJZFG6E.cjs → devices-OUHGWA6Y.cjs} +5 -5
- package/dist/{embeddable-chat-76IJ6TQZ.cjs → embeddable-chat-U3C4WWB7.cjs} +64 -64
- package/dist/index.cjs +14 -8
- package/dist/{knowledge-F4YFQT3G.cjs → knowledge-3ZASPWMF.cjs} +5 -5
- package/dist/{logs-GAYEGEZM.cjs → logs-E6Y54P6K.cjs} +12 -12
- package/dist/{policies-ZOVJCJWX.cjs → policies-LAV75B5B.cjs} +8 -8
- package/dist/{software-update-H4YE5GMJ.cjs → software-update-2CAL3AMJ.cjs} +7 -7
- package/dist/types/faq.d.ts +17 -0
- package/dist/types/faq.d.ts.map +1 -1
- package/dist/types/faq.js +4 -0
- package/dist/types/index.cjs +4 -0
- package/package.json +1 -1
- package/src/components/chat/entity-cards/index.ts +1 -0
- package/src/components/chat/hooks/use-ask-prompts.ts +2 -2
- package/src/components/chat/mingo-info-card.tsx +39 -4
- package/src/components/faq/faq-ask-card.tsx +5 -4
- package/src/components/faq/faq-document-page.tsx +4 -0
- package/src/components/faq/faq-section.tsx +83 -14
- package/src/components/faq/index.ts +1 -1
- package/src/components/help-center-pages/delivery-page.tsx +16 -1
- package/src/components/help-center-pages/download-apps-page.tsx +9 -0
- package/src/components/help-center-pages/onboarding-guides-catalog-page.tsx +16 -1
- package/src/components/help-center-pages/product-releases-list-page.tsx +16 -1
- package/src/components/help-center-pages/roadmap-page.tsx +16 -1
- package/src/components/shared/dev-section/dev-section-page.tsx +9 -0
- package/src/components/shared/legal-document/legal-document-page.tsx +9 -0
- package/src/contexts/assistant-runtime-context.tsx +5 -5
- package/src/types/faq.ts +18 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4FJZ7RJDcjs = require('./chunk-4FJZ7RJD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVL4JKXU2cjs = require('./chunk-VL4JKXU2.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkVOX4E6AXcjs = require('./chunk-VOX4E6AX.cjs');
|
|
@@ -44,7 +44,7 @@ function isSummaryData(value) {
|
|
|
44
44
|
}
|
|
45
45
|
function TicketLiveProvider({ children, enabled = true }) {
|
|
46
46
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
47
|
-
const identity =
|
|
47
|
+
const identity = _chunkVL4JKXU2cjs.useChatIdentity.call(void 0, enabled);
|
|
48
48
|
const queryClient = _reactquery.useQueryClient.call(void 0, );
|
|
49
49
|
const streamUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _ => _.endpoints, 'access', _2 => _2.ticketStreamUrl]), () => ( TICKET_STREAM_ENDPOINT));
|
|
50
50
|
const readUrl = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _3 => _3.endpoints, 'access', _4 => _4.ticketReadUrl]), () => ( TICKET_READ_ENDPOINT));
|
|
@@ -160,7 +160,7 @@ function TicketLiveProvider({ children, enabled = true }) {
|
|
|
160
160
|
_react2.default.useEffect(() => {
|
|
161
161
|
if (!streamEnabled) return void 0;
|
|
162
162
|
if (typeof window === "undefined") return void 0;
|
|
163
|
-
subscriptionRef.current =
|
|
163
|
+
subscriptionRef.current = _chunk4FJZ7RJDcjs.createSseSubscription.call(void 0, {
|
|
164
164
|
url: streamUrl,
|
|
165
165
|
onEvent: (name, data) => handlersRef.current.onEvent(name, data),
|
|
166
166
|
onStatusChange: (status) => handlersRef.current.onStatus(status),
|
|
@@ -6,25 +6,25 @@ var _chunkVRNNIV5Ycjs = require('./chunk-VRNNIV5Y.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkN6YOOGCDcjs = require('./chunk-N6YOOGCD.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkE2JCZU36cjs = require('./chunk-E2JCZU36.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkL4ZNR5V7cjs = require('./chunk-L4ZNR5V7.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk4FJZ7RJDcjs = require('./chunk-4FJZ7RJD.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkVL4JKXU2cjs = require('./chunk-VL4JKXU2.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkHZJRERJWcjs = require('./chunk-HZJRERJW.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 = _chunkN6YOOGCDcjs.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 = _chunk4FJZ7RJDcjs.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
|
+
_chunkN6YOOGCDcjs.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
|
+
_chunkE2JCZU36cjs.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, _chunkE2JCZU36cjs.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 = _chunkE2JCZU36cjs.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 = _chunkVL4JKXU2cjs.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, _chunkE2JCZU36cjs.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 } = _chunkEX2GYIGWcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
228
228
|
const { ref: videoWarmupRef } = _chunkHZJRERJWcjs.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, _chunkE2JCZU36cjs.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
|
_chunkEAY6ZUEScjs.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 = _chunk4FJZ7RJDcjs.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, _chunkE2JCZU36cjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
|
|
266
266
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
267
267
|
_chunkEJOXXJJBcjs.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
|
+
_chunkVL4JKXU2cjs.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
|
+
_chunkVL4JKXU2cjs.VideoBitesStrip,
|
|
300
300
|
{
|
|
301
301
|
bites: _nullishCoalesce(guide.video_bites, () => ( [])),
|
|
302
302
|
filterPublished: true,
|
|
@@ -6,7 +6,7 @@ var _chunkVA7OMDZOcjs = require('./chunk-VA7OMDZO.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk4FJZ7RJDcjs = require('./chunk-4FJZ7RJD.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -177,31 +177,31 @@ CveLink.displayName = "CveLink";
|
|
|
177
177
|
// src/components/platform/ShellTypeBadge.tsx
|
|
178
178
|
|
|
179
179
|
var shellIconMap = {
|
|
180
|
-
[
|
|
180
|
+
[_chunk4FJZ7RJDcjs.ShellTypeValues.POWERSHELL]: {
|
|
181
181
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
182
182
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
183
183
|
},
|
|
184
|
-
[
|
|
184
|
+
[_chunk4FJZ7RJDcjs.ShellTypeValues.CMD]: {
|
|
185
185
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
186
186
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
187
187
|
},
|
|
188
|
-
[
|
|
188
|
+
[_chunk4FJZ7RJDcjs.ShellTypeValues.BASH]: {
|
|
189
189
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
190
190
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
191
191
|
},
|
|
192
|
-
[
|
|
192
|
+
[_chunk4FJZ7RJDcjs.ShellTypeValues.PYTHON]: {
|
|
193
193
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
194
194
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
195
195
|
},
|
|
196
|
-
[
|
|
196
|
+
[_chunk4FJZ7RJDcjs.ShellTypeValues.NUSHELL]: {
|
|
197
197
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
198
198
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
199
199
|
},
|
|
200
|
-
[
|
|
200
|
+
[_chunk4FJZ7RJDcjs.ShellTypeValues.DENO]: {
|
|
201
201
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
202
202
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
203
203
|
},
|
|
204
|
-
[
|
|
204
|
+
[_chunk4FJZ7RJDcjs.ShellTypeValues.SHELL]: {
|
|
205
205
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
206
206
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
207
207
|
}
|
|
@@ -212,7 +212,7 @@ var defaultIconConfig = {
|
|
|
212
212
|
};
|
|
213
213
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
214
214
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
215
|
-
const label =
|
|
215
|
+
const label = _chunk4FJZ7RJDcjs.getShellLabel.call(void 0, normalizedType);
|
|
216
216
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
217
217
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
218
218
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -228,7 +228,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
228
228
|
if (!platforms || platforms.length === 0) {
|
|
229
229
|
return "All Platforms";
|
|
230
230
|
}
|
|
231
|
-
return platforms.map((platform) =>
|
|
231
|
+
return platforms.map((platform) => _chunk4FJZ7RJDcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
232
232
|
}
|
|
233
233
|
function InfoCell({ label, value, avatar, className }) {
|
|
234
234
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -248,7 +248,7 @@ var ScriptInfoSection = ({
|
|
|
248
248
|
author,
|
|
249
249
|
className
|
|
250
250
|
}) => {
|
|
251
|
-
const shellLabel =
|
|
251
|
+
const shellLabel = _chunk4FJZ7RJDcjs.getShellLabel.call(void 0, shellType);
|
|
252
252
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
253
253
|
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: [
|
|
254
254
|
/* @__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 _chunkE2JCZU36cjs = require('./chunk-E2JCZU36.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkVL4JKXU2cjs = require('./chunk-VL4JKXU2.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkSA7LDEVJcjs = require('./chunk-SA7LDEVJ.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 } = _chunkVL4JKXU2cjs.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
|
+
_chunkE2JCZU36cjs.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: `${_chunkVL4JKXU2cjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkVL4JKXU2cjs.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(_chunkVL4JKXU2cjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
340
340
|
return;
|
|
341
341
|
case "route":
|
|
342
342
|
setKeepOpen(false);
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkURIJ6YUGcjs = require('./chunk-URIJ6YUG.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkE2JCZU36cjs = require('./chunk-E2JCZU36.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkL4ZNR5V7cjs = require('./chunk-L4ZNR5V7.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
14
|
+
|
|
15
|
+
// src/components/faq/faq-document-page.tsx
|
|
16
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
17
|
+
function FaqDocumentPage({
|
|
18
|
+
title = "Frequently Asked Questions",
|
|
19
|
+
subtitle,
|
|
20
|
+
backButton,
|
|
21
|
+
initialFaqs,
|
|
22
|
+
emitJsonLd,
|
|
23
|
+
jsonLd,
|
|
24
|
+
apiBaseUrl,
|
|
25
|
+
entityType,
|
|
26
|
+
entityId,
|
|
27
|
+
minResults,
|
|
28
|
+
topic,
|
|
29
|
+
ask,
|
|
30
|
+
shell = true
|
|
31
|
+
}) {
|
|
32
|
+
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
33
|
+
const backCfg = backButton === false ? void 0 : {
|
|
34
|
+
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _ => _.label]), () => ( "Back to home")),
|
|
35
|
+
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
36
|
+
};
|
|
37
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL4ZNR5V7cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
+
_chunkURIJ6YUGcjs.FaqSection,
|
|
39
|
+
{
|
|
40
|
+
initialFaqs,
|
|
41
|
+
heading: null,
|
|
42
|
+
emitJsonLd,
|
|
43
|
+
jsonLd,
|
|
44
|
+
apiBaseUrl,
|
|
45
|
+
entityType,
|
|
46
|
+
entityId,
|
|
47
|
+
minResults,
|
|
48
|
+
topic,
|
|
49
|
+
ask
|
|
50
|
+
}
|
|
51
|
+
) });
|
|
52
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkE2JCZU36cjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
exports.FaqDocumentPage = FaqDocumentPage;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkE2JCZU36cjs = require('./chunk-E2JCZU36.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -17,12 +17,12 @@ var _chunkL4ZNR5V7cjs = require('./chunk-L4ZNR5V7.cjs');
|
|
|
17
17
|
var _chunkVA7OMDZOcjs = require('./chunk-VA7OMDZO.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk4FJZ7RJDcjs = require('./chunk-4FJZ7RJD.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkVL4JKXU2cjs = require('./chunk-VL4JKXU2.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 = _chunkVL4JKXU2cjs.useChatAttachments.call(void 0, );
|
|
123
123
|
const builtInSubmission = _chunkVA7OMDZOcjs.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
|
+
..._chunk4FJZ7RJDcjs.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, _chunkE2JCZU36cjs.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, _chunkHTRILBJDcjs.RequiredMark, {})
|
|
335
335
|
] }),
|
|
336
336
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
-
|
|
337
|
+
_chunkE2JCZU36cjs.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
|
+
_chunkVL4JKXU2cjs.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
|
+
_chunkVL4JKXU2cjs.ChatAttachmentAddButton,
|
|
362
362
|
{
|
|
363
363
|
attachmentsEnabled: true,
|
|
364
364
|
attachmentsCount: attachments.attachments.length,
|