@flamingo-stack/openframe-frontend-core 0.0.754 → 0.0.755
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-IVAAQSOU.cjs → chunk-2HWKYPJB.cjs} +2 -2
- package/dist/{chunk-TPJTFN7O.cjs → chunk-32IKIBPY.cjs} +55 -55
- package/dist/{chunk-GQYCVZJI.cjs → chunk-5WHEQ63L.cjs} +2 -2
- package/dist/{chunk-BLZIUELR.cjs → chunk-BQ5KRCSJ.cjs} +5 -5
- package/dist/{chunk-TBDVF4SN.cjs → chunk-BVEUGFIN.cjs} +22 -22
- package/dist/{chunk-FAFFWYEH.cjs → chunk-FOVNP5HU.cjs} +4 -4
- package/dist/{chunk-YSFOYBYC.cjs → chunk-HAL6HBTM.cjs} +76 -76
- package/dist/{chunk-U4I3QR2A.cjs → chunk-HSWNJAIK.cjs} +9 -9
- package/dist/{chunk-EDSFLB7J.cjs → chunk-JV4VVA2V.cjs} +11 -11
- package/dist/{chunk-RTQN35EP.cjs → chunk-NE3T3ZIG.cjs} +1 -1
- package/dist/{chunk-ZNV5FE4T.cjs → chunk-NS5DO6QK.cjs} +13 -13
- package/dist/{chunk-MOEILCEX.cjs → chunk-Q2MSW2IW.cjs} +3 -3
- package/dist/{chunk-JXACH52M.cjs → chunk-RRCHQTZW.cjs} +2 -2
- package/dist/{chunk-BQQ3JGEO.cjs → chunk-RRE6C3ZU.cjs} +3 -3
- package/dist/{chunk-DW5OKTUP.cjs → chunk-SZGUEPJC.cjs} +34 -34
- package/dist/{chunk-OGKV5NOP.cjs → chunk-YXX6UMG3.cjs} +33 -33
- package/dist/{cloud-tenants-5OTPO7FL.cjs → cloud-tenants-S7RR2UDJ.cjs} +3 -3
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/chat/embeddable-chat.js +11 -6
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/help-center-pages/index.cjs +53 -53
- package/dist/components/index.cjs +32 -32
- package/dist/components/meeting-scheduler/index.cjs +19 -19
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/ui/index.cjs +3 -3
- package/dist/{devices-MBGMD7BO.cjs → devices-KCD2WSEV.cjs} +4 -4
- package/dist/{embeddable-chat-CMEHSDV7.cjs → embeddable-chat-OGUGNKLP.cjs} +11 -6
- package/dist/index.cjs +7 -7
- package/dist/{knowledge-LO5RK6PM.cjs → knowledge-OX5PYEPE.cjs} +3 -3
- package/dist/{logs-QRGJSZ4G.cjs → logs-ZVOBADLB.cjs} +11 -11
- package/dist/{policies-OIQDO6F5.cjs → policies-NSHPEZTR.cjs} +7 -7
- package/dist/{scripts-XULUNPDV.cjs → scripts-OHMKBEXO.cjs} +8 -8
- package/dist/{software-update-SRF55434.cjs → software-update-WMLGMSBQ.cjs} +6 -6
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +13 -6
|
@@ -5,7 +5,7 @@ var _chunk5E6JHOGXcjs = require('./chunk-5E6JHOGX.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQ2MSW2IWcjs = require('./chunk-Q2MSW2IW.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -14,13 +14,13 @@ var _chunkHEVW75L3cjs = require('./chunk-HEVW75L3.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHAL6HBTMcjs = require('./chunk-HAL6HBTM.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkNE3T3ZIGcjs = require('./chunk-NE3T3ZIG.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -81,7 +81,7 @@ function ListEmptyState({ isFiltered, filtered, onClearFilters, empty }) {
|
|
|
81
81
|
var _react = require('react');
|
|
82
82
|
|
|
83
83
|
function DevSectionView({ sectionKey, hero, preControls, children, showHeading = true }) {
|
|
84
|
-
const section =
|
|
84
|
+
const section = _chunkNE3T3ZIGcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
85
85
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
86
86
|
const pathname = _chunk7DNL734Scjs.usePathname.call(void 0, );
|
|
87
87
|
const searchParams = _chunk7DNL734Scjs.useSearchParams.call(void 0, );
|
|
@@ -132,7 +132,7 @@ function DevSectionView({ sectionKey, hero, preControls, children, showHeading =
|
|
|
132
132
|
preControls,
|
|
133
133
|
(search || filter) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
134
134
|
search && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
135
|
-
|
|
135
|
+
_chunkHAL6HBTMcjs.SearchInput,
|
|
136
136
|
{
|
|
137
137
|
showDropdown: false,
|
|
138
138
|
placeholder: search.placeholder,
|
|
@@ -142,7 +142,7 @@ function DevSectionView({ sectionKey, hero, preControls, children, showHeading =
|
|
|
142
142
|
}
|
|
143
143
|
),
|
|
144
144
|
filter && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
145
|
-
|
|
145
|
+
_chunkHAL6HBTMcjs.StatusFilterComponent,
|
|
146
146
|
{
|
|
147
147
|
selectedStatus: currentFilterValue,
|
|
148
148
|
onStatusChange: handleFilterChange,
|
|
@@ -167,7 +167,7 @@ function DevSectionPage({
|
|
|
167
167
|
shell = true
|
|
168
168
|
}) {
|
|
169
169
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
170
|
-
const section =
|
|
170
|
+
const section = _chunkNE3T3ZIGcjs.OPENFRAME_DEV_SECTIONS[sectionKey];
|
|
171
171
|
const backCfg = backButton === false ? void 0 : {
|
|
172
172
|
label: _nullishCoalesce((backButton ? backButton.label : void 0), () => ( "Back to home")),
|
|
173
173
|
onClick: () => router.push(_nullishCoalesce((backButton ? backButton.href : void 0), () => ( "/")))
|
|
@@ -189,12 +189,12 @@ function DevSectionPage({
|
|
|
189
189
|
backButton: backCfg,
|
|
190
190
|
children: [
|
|
191
191
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DevSectionView, { sectionKey, showHeading: false, preControls, children }),
|
|
192
|
-
faq && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
192
|
+
faq && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQ2MSW2IWcjs.FaqSection, { ..._chunkQ2MSW2IWcjs.pageFaqProps.call(void 0, faq) })
|
|
193
193
|
]
|
|
194
194
|
}
|
|
195
195
|
)
|
|
196
196
|
);
|
|
197
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
197
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
// src/components/shared/dev-section/dev-card-row.tsx
|
|
@@ -6,7 +6,7 @@ var _chunkVUWPLQBYcjs = require('./chunk-VUWPLQBY.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkNE3T3ZIGcjs = require('./chunk-NE3T3ZIG.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -166,31 +166,31 @@ CveLink.displayName = "CveLink";
|
|
|
166
166
|
// src/components/platform/ShellTypeBadge.tsx
|
|
167
167
|
|
|
168
168
|
var shellIconMap = {
|
|
169
|
-
[
|
|
169
|
+
[_chunkNE3T3ZIGcjs.ShellTypeValues.POWERSHELL]: {
|
|
170
170
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
171
171
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
172
172
|
},
|
|
173
|
-
[
|
|
173
|
+
[_chunkNE3T3ZIGcjs.ShellTypeValues.CMD]: {
|
|
174
174
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
175
175
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
176
176
|
},
|
|
177
|
-
[
|
|
177
|
+
[_chunkNE3T3ZIGcjs.ShellTypeValues.BASH]: {
|
|
178
178
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
179
179
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
180
180
|
},
|
|
181
|
-
[
|
|
181
|
+
[_chunkNE3T3ZIGcjs.ShellTypeValues.PYTHON]: {
|
|
182
182
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
183
183
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
184
184
|
},
|
|
185
|
-
[
|
|
185
|
+
[_chunkNE3T3ZIGcjs.ShellTypeValues.NUSHELL]: {
|
|
186
186
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
187
187
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
188
188
|
},
|
|
189
|
-
[
|
|
189
|
+
[_chunkNE3T3ZIGcjs.ShellTypeValues.DENO]: {
|
|
190
190
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
191
191
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
192
192
|
},
|
|
193
|
-
[
|
|
193
|
+
[_chunkNE3T3ZIGcjs.ShellTypeValues.SHELL]: {
|
|
194
194
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
195
195
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
196
196
|
}
|
|
@@ -201,7 +201,7 @@ var defaultIconConfig = {
|
|
|
201
201
|
};
|
|
202
202
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
203
203
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
204
|
-
const label =
|
|
204
|
+
const label = _chunkNE3T3ZIGcjs.getShellLabel.call(void 0, normalizedType);
|
|
205
205
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
206
206
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
207
207
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -217,7 +217,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
217
217
|
if (!platforms || platforms.length === 0) {
|
|
218
218
|
return "All Platforms";
|
|
219
219
|
}
|
|
220
|
-
return platforms.map((platform) =>
|
|
220
|
+
return platforms.map((platform) => _chunkNE3T3ZIGcjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
221
221
|
}
|
|
222
222
|
function InfoCell({ label, value, avatar, className }) {
|
|
223
223
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -237,7 +237,7 @@ var ScriptInfoSection = ({
|
|
|
237
237
|
author,
|
|
238
238
|
className
|
|
239
239
|
}) => {
|
|
240
|
-
const shellLabel =
|
|
240
|
+
const shellLabel = _chunkNE3T3ZIGcjs.getShellLabel.call(void 0, shellType);
|
|
241
241
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
242
242
|
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: [
|
|
243
243
|
/* @__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: [
|
|
@@ -5150,7 +5150,7 @@ function ProxyCredentialsForm({ description, saved }) {
|
|
|
5150
5150
|
|
|
5151
5151
|
// src/components/chat/index.ts
|
|
5152
5152
|
var LoadedEmbeddableChat = _react.lazy.call(void 0,
|
|
5153
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-
|
|
5153
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./embeddable-chat-OGUGNKLP.cjs"))).then((module) => ({ default: module.EmbeddableChat }))
|
|
5154
5154
|
);
|
|
5155
5155
|
var EmbeddableChat = _react.forwardRef.call(void 0, (props, ref) => {
|
|
5156
5156
|
_react.useEffect.call(void 0, () => _chunkSDF5UUTEcjs.holdAskAiOpens.call(void 0, ), []);
|
|
@@ -6,20 +6,20 @@ var _chunkUNRNLSG4cjs = require('./chunk-UNRNLSG4.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk2HWKYPJBcjs = require('./chunk-2HWKYPJB.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkHAL6HBTMcjs = require('./chunk-HAL6HBTM.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkNE3T3ZIGcjs = require('./chunk-NE3T3ZIG.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -146,14 +146,14 @@ function OnboardingGuidesCatalogView({
|
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
148
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
149
|
-
const docSearch =
|
|
149
|
+
const docSearch = _chunk2HWKYPJBcjs.useDocSearch.call(void 0, {
|
|
150
150
|
source,
|
|
151
151
|
baseRoute: basePath,
|
|
152
152
|
onNavigate: (path) => router.push(path),
|
|
153
153
|
tableIds: ["onboarding-guides"]
|
|
154
154
|
});
|
|
155
155
|
const defaultRenderCard = (guide) => {
|
|
156
|
-
const cta =
|
|
156
|
+
const cta = _chunkNE3T3ZIGcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
157
157
|
type: "onboarding_guide",
|
|
158
158
|
slug: guide.slug,
|
|
159
159
|
basePath,
|
|
@@ -164,7 +164,7 @@ function OnboardingGuidesCatalogView({
|
|
|
164
164
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
165
165
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
166
166
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
167
|
-
|
|
167
|
+
_chunk2HWKYPJBcjs.DocSearchBar,
|
|
168
168
|
{
|
|
169
169
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
170
170
|
query: docSearch.query,
|
|
@@ -176,7 +176,7 @@ function OnboardingGuidesCatalogView({
|
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
178
|
sections.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
179
|
-
|
|
179
|
+
_chunkHAL6HBTMcjs.FilterPillRow,
|
|
180
180
|
{
|
|
181
181
|
label: "Section",
|
|
182
182
|
selectedValue: activeSection,
|
|
@@ -186,7 +186,7 @@ function OnboardingGuidesCatalogView({
|
|
|
186
186
|
)
|
|
187
187
|
] });
|
|
188
188
|
if (selfFetch && guidesRes.error) {
|
|
189
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
189
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
190
190
|
}
|
|
191
191
|
if (selfFetch && guidesRes.data == null && isLoading) {
|
|
192
192
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OnboardingGuidesCatalogSkeleton, {});
|
|
@@ -218,7 +218,7 @@ function OnboardingGuideDetailView({
|
|
|
218
218
|
slug,
|
|
219
219
|
guideEndpoint,
|
|
220
220
|
related = [],
|
|
221
|
-
MarkdownRenderer =
|
|
221
|
+
MarkdownRenderer = _chunkHAL6HBTMcjs.RichMarkdownRenderer,
|
|
222
222
|
renderRelatedCard,
|
|
223
223
|
backHref,
|
|
224
224
|
backLabel = "Back to Getting Started",
|
|
@@ -230,7 +230,7 @@ function OnboardingGuideDetailView({
|
|
|
230
230
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
231
231
|
const captions = _chunkSDF5UUTEcjs.useCaptions.call(void 0, );
|
|
232
232
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
233
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
233
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
234
234
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
235
235
|
const { data: guide, isLoading, error, reload } = _chunkB27XV2TCcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
236
236
|
const { ref: videoWarmupRef } = _chunk3RFQPQ7Zcjs.useVideoWarmup.call(void 0, {
|
|
@@ -238,7 +238,7 @@ function OnboardingGuideDetailView({
|
|
|
238
238
|
supabaseStorageOrigin: _optionalChain([runtime, 'optionalAccess', _9 => _9.endpoints, 'access', _10 => _10.supabaseStorageOrigin])
|
|
239
239
|
});
|
|
240
240
|
if (error || !guide && !isLoading) {
|
|
241
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
241
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
242
242
|
}
|
|
243
243
|
if (!guide) {
|
|
244
244
|
return renderShell(
|
|
@@ -252,7 +252,7 @@ function OnboardingGuideDetailView({
|
|
|
252
252
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
253
253
|
_chunkI5MSCD57cjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), guide.title, { aspect: "wide" });
|
|
254
254
|
const defaultRenderRelatedCard = (g) => {
|
|
255
|
-
const cta =
|
|
255
|
+
const cta = _chunkNE3T3ZIGcjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
256
256
|
type: "onboarding_guide",
|
|
257
257
|
slug: g.slug,
|
|
258
258
|
basePath,
|
|
@@ -270,7 +270,7 @@ function OnboardingGuideDetailView({
|
|
|
270
270
|
titleWrap: true,
|
|
271
271
|
backButton: { label: backLabel, onClick: () => router.push(resolvedBackHref) },
|
|
272
272
|
children: [
|
|
273
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
273
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.EntityTagBadges, { tags: guide.onboarding_guide_tags }),
|
|
274
274
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
275
|
_chunk7Z4EQOIXcjs.EntityAuthorCard,
|
|
276
276
|
{
|
|
@@ -5,7 +5,7 @@ var _chunkVUWPLQBYcjs = require('./chunk-VUWPLQBY.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNE3T3ZIGcjs = require('./chunk-NE3T3ZIG.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -116,14 +116,14 @@ function FaqAccordion({ items, defaultOpenIds = [] }) {
|
|
|
116
116
|
|
|
117
117
|
var PICK_ROOT_MARGIN = "600px";
|
|
118
118
|
function faqAskCardShown(assistant) {
|
|
119
|
-
return
|
|
119
|
+
return _chunkNE3T3ZIGcjs.assistantAvailable.call(void 0, assistant) && !!assistant.name;
|
|
120
120
|
}
|
|
121
121
|
function FaqAskCard({ topic, exclude, count, title, description, onOpen }) {
|
|
122
122
|
const { ref, inView } = _chunkCSJO7ZGNcjs.useInView.call(void 0, { rootMargin: PICK_ROOT_MARGIN });
|
|
123
123
|
const [reached, setReached] = _react.useState.call(void 0, false);
|
|
124
124
|
if (inView && !reached) setReached(true);
|
|
125
125
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
126
|
-
|
|
126
|
+
_chunkNE3T3ZIGcjs.AssistantAskPrompts,
|
|
127
127
|
{
|
|
128
128
|
variant: "card",
|
|
129
129
|
topic,
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkNE3T3ZIGcjs = require('./chunk-NE3T3ZIG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkSDF5UUTEcjs = require('./chunk-SDF5UUTE.cjs');
|
|
@@ -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 = _chunkNE3T3ZIGcjs.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),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkHAL6HBTMcjs = require('./chunk-HAL6HBTM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkHAL6HBTMcjs.EmbedViewerFrame,
|
|
52
52
|
{
|
|
53
53
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
54
54
|
title: displayName,
|
|
@@ -83,7 +83,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_chunkHAL6HBTMcjs.EmbedViewerFrame,
|
|
87
87
|
{
|
|
88
88
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
89
89
|
title: displayName,
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRRE6C3ZUcjs = require('./chunk-RRE6C3ZU.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk5WHEQ63Lcjs = require('./chunk-5WHEQ63L.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk2HWKYPJBcjs = require('./chunk-2HWKYPJB.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkHAL6HBTMcjs = require('./chunk-HAL6HBTM.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
|
|
@@ -28,7 +28,7 @@ var _chunk3GG3QAPTcjs = require('./chunk-3GG3QAPT.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkNE3T3ZIGcjs = require('./chunk-NE3T3ZIG.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -344,8 +344,8 @@ function toDocContent(value, requestedPath) {
|
|
|
344
344
|
}
|
|
345
345
|
function useDocumentTree(config, initialPath) {
|
|
346
346
|
const { structureEndpoint, contentEndpoint, baseRoute } = config;
|
|
347
|
-
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => (
|
|
348
|
-
const cleanInitialPath =
|
|
347
|
+
const folderIndexFile = _nullishCoalesce(config.folderIndexFile, () => ( _chunkNE3T3ZIGcjs.DEFAULT_FOLDER_INDEX_FILE));
|
|
348
|
+
const cleanInitialPath = _chunkNE3T3ZIGcjs.stripFolderIndexFromPath.call(void 0, _optionalChain([initialPath, 'optionalAccess', _4 => _4.replace, 'call', _5 => _5(/\/$/, "")]) || "", folderIndexFile);
|
|
349
349
|
const [structure, setStructure] = _react.useState.call(void 0, []);
|
|
350
350
|
const [selectedPath, setSelectedPath] = _react.useState.call(void 0, cleanInitialPath);
|
|
351
351
|
const [content, setContent] = _react.useState.call(void 0, null);
|
|
@@ -369,12 +369,12 @@ function useDocumentTree(config, initialPath) {
|
|
|
369
369
|
} else if (pathname.startsWith(`${normalizedBaseRoute}/`)) {
|
|
370
370
|
pathFromUrl = pathname.substring(`${normalizedBaseRoute}/`.length);
|
|
371
371
|
}
|
|
372
|
-
pathFromUrl =
|
|
372
|
+
pathFromUrl = _chunkNE3T3ZIGcjs.stripFolderIndexFromPath.call(void 0, pathFromUrl, folderIndexFile);
|
|
373
373
|
if (pathFromUrl !== selectedPathRef.current) {
|
|
374
374
|
setSelectedPath(pathFromUrl);
|
|
375
375
|
if (pathFromUrl) {
|
|
376
376
|
const parentPath = pathFromUrl.includes("/") ? pathFromUrl.substring(0, pathFromUrl.lastIndexOf("/")) : pathFromUrl;
|
|
377
|
-
setExpandedNodes(new Set(
|
|
377
|
+
setExpandedNodes(new Set(_chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
378
378
|
}
|
|
379
379
|
setTimeout(() => {
|
|
380
380
|
scrollToContent();
|
|
@@ -392,7 +392,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
392
392
|
setSelectedPath(cleanInitialPath);
|
|
393
393
|
if (cleanInitialPath) {
|
|
394
394
|
const parentPath = cleanInitialPath.includes("/") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
395
|
-
setExpandedNodes(new Set(
|
|
395
|
+
setExpandedNodes(new Set(_chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, parentPath)));
|
|
396
396
|
}
|
|
397
397
|
setExternalNavCount((n) => n + 1);
|
|
398
398
|
}
|
|
@@ -417,7 +417,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
417
417
|
if (cleanInitialPath) {
|
|
418
418
|
const pathForExpansion = cleanInitialPath.includes(".") ? cleanInitialPath.substring(0, cleanInitialPath.lastIndexOf("/")) : cleanInitialPath;
|
|
419
419
|
if (pathForExpansion) {
|
|
420
|
-
setExpandedNodes(new Set(
|
|
420
|
+
setExpandedNodes(new Set(_chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, pathForExpansion)));
|
|
421
421
|
}
|
|
422
422
|
} else if (nodes.length > 0) {
|
|
423
423
|
const hasRootReadme = nodes.some((node) => node.type === "file" && node.path === folderIndexFile);
|
|
@@ -457,7 +457,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
457
457
|
setContent(null);
|
|
458
458
|
return;
|
|
459
459
|
}
|
|
460
|
-
const probe =
|
|
460
|
+
const probe = _chunkNE3T3ZIGcjs.findDocNodeByPath.call(void 0, _chunkNE3T3ZIGcjs.stripFolderIndexFromPath.call(void 0, path, folderIndexFile), structure);
|
|
461
461
|
const probeIsNoReadmeFolder = !!probe && probe.type === "folder" && !probe.hasReadme;
|
|
462
462
|
const preStructureFolderLike = structure.length === 0 && !path.endsWith(".md");
|
|
463
463
|
if (probeIsNoReadmeFolder || preStructureFolderLike) {
|
|
@@ -514,7 +514,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
514
514
|
if (selectedPath === "") {
|
|
515
515
|
pathToFetch = folderIndexFile;
|
|
516
516
|
} else {
|
|
517
|
-
const node =
|
|
517
|
+
const node = _chunkNE3T3ZIGcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
518
518
|
if (node && node.type === "folder" && !node.hasReadme) {
|
|
519
519
|
const firstDocPath = findFirstDocPath(node);
|
|
520
520
|
if (!firstDocPath) {
|
|
@@ -555,16 +555,16 @@ function useDocumentTree(config, initialPath) {
|
|
|
555
555
|
if (node.type === "folder") {
|
|
556
556
|
setExpandedNodes((prev) => {
|
|
557
557
|
if (prev.has(node.id)) {
|
|
558
|
-
const ancestorIds =
|
|
558
|
+
const ancestorIds = _chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, node.path);
|
|
559
559
|
ancestorIds.pop();
|
|
560
560
|
return new Set(ancestorIds);
|
|
561
561
|
}
|
|
562
|
-
return new Set(
|
|
562
|
+
return new Set(_chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, node.path));
|
|
563
563
|
});
|
|
564
564
|
} else {
|
|
565
565
|
const lastSlash = node.path.lastIndexOf("/");
|
|
566
566
|
if (lastSlash > 0) {
|
|
567
|
-
setExpandedNodes(new Set(
|
|
567
|
+
setExpandedNodes(new Set(_chunkNE3T3ZIGcjs.getDocAncestorNodeIds.call(void 0, node.path.substring(0, lastSlash))));
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
lastFetchedPath.current = null;
|
|
@@ -579,7 +579,7 @@ function useDocumentTree(config, initialPath) {
|
|
|
579
579
|
const hashIndex = path.indexOf("#");
|
|
580
580
|
const anchor = hashIndex !== -1 ? path.substring(hashIndex) : "";
|
|
581
581
|
const cleanPath = path.replace(/\/$/, "").split("#")[0];
|
|
582
|
-
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current :
|
|
582
|
+
const pathForSelection = anchor && _optionalChain([options, 'optionalAccess', _6 => _6.fromInternalLink]) && cleanPath === "" ? selectedPathRef.current : _chunkNE3T3ZIGcjs.stripFolderIndexFromPath.call(void 0, cleanPath, folderIndexFile);
|
|
583
583
|
if (anchor && _optionalChain([options, 'optionalAccess', _7 => _7.fromInternalLink]) && pathForSelection === selectedPathRef.current) {
|
|
584
584
|
_chunkCSJO7ZGNcjs.navigateSamePageHash.call(void 0, anchor, { headerOffset: _chunkCSJO7ZGNcjs.HUB_HEADER_OFFSET_PX });
|
|
585
585
|
return;
|
|
@@ -643,15 +643,15 @@ function useDocumentTree(config, initialPath) {
|
|
|
643
643
|
return docNavigation.register({
|
|
644
644
|
baseRoute: normalizedBaseRoute,
|
|
645
645
|
findNodeByPath: (path) => {
|
|
646
|
-
const clean =
|
|
647
|
-
return _nullishCoalesce(
|
|
646
|
+
const clean = _chunkNE3T3ZIGcjs.stripFolderIndexFromPath.call(void 0, path.replace(/\/$/, "").split("#")[0], folderIndexFile);
|
|
647
|
+
return _nullishCoalesce(_chunkNE3T3ZIGcjs.findDocNodeByPath.call(void 0, clean, structure), () => ( null));
|
|
648
648
|
},
|
|
649
649
|
selectNode
|
|
650
650
|
});
|
|
651
651
|
}, [docNavigation, normalizedBaseRoute, structure, selectNode, folderIndexFile]);
|
|
652
652
|
const isEmptyFolder = _react.useMemo.call(void 0, () => {
|
|
653
653
|
if (!selectedPath || structure.length === 0) return false;
|
|
654
|
-
const node =
|
|
654
|
+
const node = _chunkNE3T3ZIGcjs.findDocNodeByPath.call(void 0, selectedPath, structure);
|
|
655
655
|
return !!node && node.type === "folder" && !node.hasReadme && !findFirstDocPath(node);
|
|
656
656
|
}, [selectedPath, structure]);
|
|
657
657
|
return {
|
|
@@ -731,14 +731,14 @@ function DocViewerContent({
|
|
|
731
731
|
},
|
|
732
732
|
docPath
|
|
733
733
|
);
|
|
734
|
-
const { activeSection, handleSectionClick } =
|
|
734
|
+
const { activeSection, handleSectionClick } = _chunk5WHEQ63Lcjs.useScrollSpy.call(void 0, _optionalChain([content, 'optionalAccess', _11 => _11.sections]));
|
|
735
735
|
const docNav = useDocNavigation();
|
|
736
736
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
737
737
|
const backCfg = backButton === false ? null : {
|
|
738
738
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _12 => _12.label]), () => ( "Back to home")),
|
|
739
739
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _13 => _13.href]), () => ( "/")))
|
|
740
740
|
};
|
|
741
|
-
const docSearch =
|
|
741
|
+
const docSearch = _chunk2HWKYPJBcjs.useDocSearch.call(void 0, {
|
|
742
742
|
source: chatSource,
|
|
743
743
|
baseRoute,
|
|
744
744
|
searchEndpoint,
|
|
@@ -762,7 +762,7 @@ function DocViewerContent({
|
|
|
762
762
|
onResolveLink: resolveLink
|
|
763
763
|
});
|
|
764
764
|
}, [content, renderContent, navigateToDoc, sourceId, resolveLink]);
|
|
765
|
-
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([
|
|
765
|
+
const selectedNodeDocType = selectedPath && structure.length > 0 ? _optionalChain([_chunkNE3T3ZIGcjs.findDocNodeByPath.call(void 0, selectedPath, structure), 'optionalAccess', _14 => _14.documentType]) : void 0;
|
|
766
766
|
const activeDocType = _nullishCoalesce(_optionalChain([content, 'optionalAccess', _15 => _15.documentType]), () => ( selectedNodeDocType));
|
|
767
767
|
const isMarkdownContent = !activeDocType || activeDocType === "markdown";
|
|
768
768
|
const showStickyNav = isMarkdownContent;
|
|
@@ -775,7 +775,7 @@ function DocViewerContent({
|
|
|
775
775
|
const resolvedEmptyText = emptyStateText || defaultEmptyText;
|
|
776
776
|
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { ...bgStyle, ...containerBgStyle }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GG3QAPTcjs.PageLayout, { title, subtitle, titleSize: "h1", titleWrap: true, backButton: _nullishCoalesce(backCfg, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-10", children: [
|
|
777
777
|
showAIChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
778
|
-
|
|
778
|
+
_chunk2HWKYPJBcjs.DocSearchBar,
|
|
779
779
|
{
|
|
780
780
|
placeholder: `Search ${_optionalChain([sidebarLabel, 'optionalAccess', _19 => _19.toLowerCase, 'call', _20 => _20()]) || "documents"}...`,
|
|
781
781
|
query: docSearch.query,
|
|
@@ -794,9 +794,9 @@ function DocViewerContent({
|
|
|
794
794
|
] })
|
|
795
795
|
] }) }),
|
|
796
796
|
!error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 content-lg:flex-row content-lg:gap-10", children: [
|
|
797
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
797
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full content-lg:w-[320px] content-lg:shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "content-lg:sticky content-lg:top-20", children: isLoadingStructure ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.CategorySidebarSkeleton, {}) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
798
798
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentMobileDropdown, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
799
|
-
|
|
799
|
+
_chunk5WHEQ63Lcjs.MobileNavigationDropdown,
|
|
800
800
|
{
|
|
801
801
|
nodes: structure,
|
|
802
802
|
selectedPath,
|
|
@@ -810,7 +810,7 @@ function DocViewerContent({
|
|
|
810
810
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PersistentSidebar, { isLoading: false, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4", children: [
|
|
811
811
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "font-semibold text-ods-text-secondary text-h5", children: sidebarLabel }),
|
|
812
812
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
813
|
-
|
|
813
|
+
_chunk5WHEQ63Lcjs.MultiLevelNavigation,
|
|
814
814
|
{
|
|
815
815
|
nodes: structure,
|
|
816
816
|
selectedPath,
|
|
@@ -849,7 +849,7 @@ function DocViewerContent({
|
|
|
849
849
|
showStickyNav && content && stickyNavSections.length > 0 && !isLoadingContent && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden content-lg:block", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-24", children: [
|
|
850
850
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "mb-4 font-semibold text-ods-text-secondary text-h5", children: "ON THIS PAGE" }),
|
|
851
851
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
852
|
-
|
|
852
|
+
_chunk5WHEQ63Lcjs.StickySectionNav,
|
|
853
853
|
{
|
|
854
854
|
sections: stickyNavSections,
|
|
855
855
|
activeSection,
|
|
@@ -864,7 +864,7 @@ function DocViewerContent({
|
|
|
864
864
|
) })
|
|
865
865
|
] })
|
|
866
866
|
] }) }) });
|
|
867
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
867
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.PageShell, { contentClassName: `${bgClass} ${className}`, children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `page-shell-content ${bgClass} ${className}`.trim(), children: inner });
|
|
868
868
|
}
|
|
869
869
|
|
|
870
870
|
// src/components/docs/skeletons.tsx
|
|
@@ -950,7 +950,7 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
950
950
|
] }),
|
|
951
951
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: Array.from({ length: buttonCount }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkH3RYUTNDcjs.UnifiedSkeleton, { className: "h-10 w-full flex-1 rounded content-sm:w-32 content-sm:flex-initial" }, i)) })
|
|
952
952
|
] }),
|
|
953
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
953
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.EmbedLoadingSkeleton, { region: false })
|
|
954
954
|
] });
|
|
955
955
|
}
|
|
956
956
|
|
|
@@ -958,11 +958,11 @@ function EmbedSkeleton({ documentType, region = true } = {}) {
|
|
|
958
958
|
|
|
959
959
|
var DEFAULT_TITLE = "Documents";
|
|
960
960
|
var defaultFallbackRenderer = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "py-16 text-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: "Unsupported document type" }) });
|
|
961
|
-
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
962
|
-
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
963
|
-
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
961
|
+
var defaultPdfRenderer = (content, handlers) => content.fileUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRRE6C3ZUcjs.PdfViewer, { src: content.fileUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
962
|
+
var defaultGoogleSheetRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRRE6C3ZUcjs.GoogleSheetsViewer, { externalUrl: content.externalUrl, fileName: content.fileName }) : defaultFallbackRenderer(content, handlers);
|
|
963
|
+
var defaultFigmaRenderer = (content, handlers) => content.externalUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAL6HBTMcjs.FigmaEmbed, { url: content.externalUrl, title: content.fileName, loading: "eager" }) : defaultFallbackRenderer(content, handlers);
|
|
964
964
|
var defaultFileRenderer = (content) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
965
|
-
|
|
965
|
+
_chunkRRE6C3ZUcjs.FileDownloadCard,
|
|
966
966
|
{
|
|
967
967
|
fileName: content.fileName,
|
|
968
968
|
mimeType: content.mimeType,
|