@flamingo-stack/openframe-frontend-core 0.0.798 → 0.0.799
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-PTQVGWJE.cjs → chunk-247LDSQE.cjs} +53 -53
- package/dist/{chunk-NK2FSEWD.cjs → chunk-2KEBGXA4.cjs} +4 -4
- package/dist/{chunk-6F2UHDCB.cjs → chunk-3MRK7X6Z.cjs} +3 -3
- package/dist/{chunk-WUBTAN27.cjs → chunk-4RK62AMV.cjs} +48 -48
- package/dist/{chunk-2M6HS23A.cjs → chunk-6CB3AXZM.cjs} +19 -19
- package/dist/{chunk-EYE5FLHZ.cjs → chunk-6EDOASF4.cjs} +6 -6
- package/dist/{chunk-6YCUP6JJ.cjs → chunk-B3X4J4HQ.cjs} +11 -11
- package/dist/{chunk-5IU64YEA.cjs → chunk-BSBCZIPQ.cjs} +39 -39
- package/dist/{chunk-FO3N6HDS.cjs → chunk-CS2KLF4O.cjs} +7 -7
- package/dist/{chunk-W5ZQDEDT.cjs → chunk-DBRXZC2I.cjs} +116 -107
- package/dist/{chunk-KFDAL6NA.cjs → chunk-FDDM5Z52.cjs} +2 -2
- package/dist/{chunk-ND7ECICK.cjs → chunk-GRNTIKPD.cjs} +17 -7
- package/dist/{chunk-TJQGKIXB.cjs → chunk-HB7FVY46.cjs} +32 -32
- package/dist/{chunk-BWTCULUN.cjs → chunk-IJGIWG6G.cjs} +4 -4
- package/dist/{chunk-W25OB2R6.cjs → chunk-PO5IIN4S.cjs} +9 -9
- package/dist/{chunk-VUHPWSAE.cjs → chunk-PPORXZI7.cjs} +18 -18
- package/dist/{chunk-ZXRAYCNB.cjs → chunk-TETW5NR4.cjs} +3 -3
- package/dist/{chunk-C2UZWRU5.cjs → chunk-UFCKY7OL.cjs} +10 -10
- package/dist/{cloud-tenants-XGL3DYSG.cjs → cloud-tenants-BQAVRN44.cjs} +4 -4
- package/dist/components/case-studies/index.cjs +16 -16
- 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 +61 -61
- package/dist/components/index.cjs +38 -38
- package/dist/components/loading/loading-fallback.d.ts +27 -3
- package/dist/components/loading/loading-fallback.d.ts.map +1 -1
- package/dist/components/loading/loading-fallback.js +17 -9
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +7 -7
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/product-demo/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +9 -1
- package/dist/components/ui/markdown-editor.d.ts.map +1 -1
- package/dist/components/ui/trendline.d.ts +1 -1
- package/dist/components/ui/trendline.d.ts.map +1 -1
- package/dist/components/ui/trendline.js +11 -2
- package/dist/{devices-U2NQYDI7.cjs → devices-KDT5ZGSG.cjs} +5 -5
- package/dist/{embeddable-chat-MPJLN4C6.cjs → embeddable-chat-ODKTSW3C.cjs} +59 -59
- package/dist/index.cjs +8 -8
- package/dist/{knowledge-BUY6TSK6.cjs → knowledge-4NLP77HP.cjs} +5 -5
- package/dist/loading-standard/engine.d.mts +22 -4
- package/dist/loading-standard/engine.d.mts.map +1 -1
- package/dist/loading-standard/rule-examples.d.mts.map +1 -1
- package/dist/{logs-FUPQ7XYE.cjs → logs-U6VMTY4N.cjs} +12 -12
- package/dist/{policies-NASADYBK.cjs → policies-TBLFBRFM.cjs} +8 -8
- package/dist/{scripts-BGLTDQKV.cjs → scripts-ZMNJWX7I.cjs} +9 -9
- package/dist/{software-update-QDIZ32KU.cjs → software-update-Q5AEQ4A4.cjs} +7 -7
- package/package.json +1 -1
- package/src/components/loading/loading-fallback.tsx +52 -12
- package/src/components/ui/index.ts +13 -1
- package/src/components/ui/markdown-editor.tsx +1 -0
- package/src/components/ui/trendline.tsx +27 -10
- package/src/loading-standard/engine.mjs +170 -14
- package/src/loading-standard/rule-examples.mjs +50 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUFCKY7OLcjs = require('./chunk-UFCKY7OL.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _chunkT5OCU3ELcjs = require('./chunk-T5OCU3EL.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkCS2KLF4Ocjs = require('./chunk-CS2KLF4O.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -24,7 +24,7 @@ var _chunkFO3N6HDScjs = require('./chunk-FO3N6HDS.cjs');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkDBRXZC2Icjs = require('./chunk-DBRXZC2I.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkE56LN23Hcjs = require('./chunk-E56LN23H.cjs');
|
|
@@ -36,14 +36,14 @@ var _chunkBWR5ACK3cjs = require('./chunk-BWR5ACK3.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkPPORXZI7cjs = require('./chunk-PPORXZI7.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkGRNTIKPDcjs = require('./chunk-GRNTIKPD.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
var _chunkEWCFJLNUcjs = require('./chunk-EWCFJLNU.cjs');
|
|
@@ -114,8 +114,8 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
114
114
|
var DEFAULT_ENDPOINT = "/api/releases";
|
|
115
115
|
var PRODUCT_RELEASES_PAGE_SIZE = 5;
|
|
116
116
|
var PAGER_ROW_CLASS = "flex w-full justify-center";
|
|
117
|
-
var DEFAULT_SEARCH_PARAM_KEY =
|
|
118
|
-
var DEFAULT_STATUS_PARAM_KEY =
|
|
117
|
+
var DEFAULT_SEARCH_PARAM_KEY = _chunkPPORXZI7cjs.DEV_SECTION_PARAM_KEYS.search;
|
|
118
|
+
var DEFAULT_STATUS_PARAM_KEY = _chunkPPORXZI7cjs.DEV_SECTION_PARAM_KEYS.releaseStatus;
|
|
119
119
|
var DEFAULT_PAGE_PARAM_KEY = "page";
|
|
120
120
|
function ReleaseRow({
|
|
121
121
|
release,
|
|
@@ -124,7 +124,7 @@ function ReleaseRow({
|
|
|
124
124
|
}) {
|
|
125
125
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
126
126
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
127
|
-
const cta =
|
|
127
|
+
const cta = _chunkPPORXZI7cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _2 => _2.composeContentUrl]), {
|
|
128
128
|
type: "product_release",
|
|
129
129
|
slug: release.slug,
|
|
130
130
|
basePath,
|
|
@@ -134,7 +134,7 @@ function ReleaseRow({
|
|
|
134
134
|
const onClick = (e) => {
|
|
135
135
|
if (e.defaultPrevented || _chunkFIKIPO4Fcjs.isModifierClick.call(void 0, e) || target === "_blank") return;
|
|
136
136
|
e.preventDefault();
|
|
137
|
-
|
|
137
|
+
_chunkGRNTIKPDcjs.executeNavigationImperative.call(void 0, {
|
|
138
138
|
runtime,
|
|
139
139
|
href: cta.href,
|
|
140
140
|
targetPlatform: cta.targetPlatform,
|
|
@@ -184,7 +184,7 @@ function ProductReleasesView({
|
|
|
184
184
|
initialData
|
|
185
185
|
});
|
|
186
186
|
const isLoading = inScope || fetching;
|
|
187
|
-
|
|
187
|
+
_chunkUFCKY7OLcjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _3 => _3.sync]), isLoading && !data);
|
|
188
188
|
const releases = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _4 => _4.data]), () => ( []));
|
|
189
189
|
const totalCount = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _5 => _5.count]), () => ( 0));
|
|
190
190
|
const totalPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, totalCount, itemsPerPage);
|
|
@@ -203,10 +203,10 @@ function ProductReleasesView({
|
|
|
203
203
|
router.replace(`${pathname}?${params.toString()}`, { scroll: false });
|
|
204
204
|
};
|
|
205
205
|
if (error) {
|
|
206
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
206
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.LoadError, { message: "Failed to load releases.", onRetry: reload }) });
|
|
207
207
|
}
|
|
208
208
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex w-full flex-col gap-[40px]", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[600px]", children: showEmpty ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-[600px] items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
209
|
-
|
|
209
|
+
_chunkUFCKY7OLcjs.ListEmptyState,
|
|
210
210
|
{
|
|
211
211
|
isFiltered: hasActiveFilters,
|
|
212
212
|
filtered: {
|
|
@@ -319,7 +319,7 @@ function MediaGalleryStripSkeleton({
|
|
|
319
319
|
var _lucidereact = require('lucide-react');
|
|
320
320
|
|
|
321
321
|
|
|
322
|
-
var DefaultMarkdownRenderer =
|
|
322
|
+
var DefaultMarkdownRenderer = _chunkDBRXZC2Icjs.RichMarkdownRenderer;
|
|
323
323
|
var CONTENT_STACK_CLASS = "space-y-6 content-md:space-y-8";
|
|
324
324
|
var RELEASE_TITLE_SKELETON_LINES = { phone: 7, md: 4, lg: 2 };
|
|
325
325
|
var METADATA_GRID_CLASS = "grid w-full grid-cols-1 overflow-hidden rounded-md border border-ods-border content-md:grid-cols-4";
|
|
@@ -368,8 +368,8 @@ function ReleaseDetailPage({
|
|
|
368
368
|
shell = true
|
|
369
369
|
}) {
|
|
370
370
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
371
|
-
const captions =
|
|
372
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
371
|
+
const captions = _chunkGRNTIKPDcjs.useCaptions.call(void 0, );
|
|
372
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
373
373
|
const seed = initialData == null ? void 0 : initialData;
|
|
374
374
|
const {
|
|
375
375
|
data: release,
|
|
@@ -475,7 +475,7 @@ function ReleaseDetailPage({
|
|
|
475
475
|
children: [
|
|
476
476
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTENT_STACK_CLASS, children: [
|
|
477
477
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
478
|
-
|
|
478
|
+
_chunkDBRXZC2Icjs.EntityTagBadges,
|
|
479
479
|
{
|
|
480
480
|
tags: view.product_release_tags,
|
|
481
481
|
max: RELEASE_TAG_ROW_MAX,
|
|
@@ -556,7 +556,7 @@ function ReleaseDetailPage({
|
|
|
556
556
|
] })
|
|
557
557
|
] }) }) }),
|
|
558
558
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
559
|
-
|
|
559
|
+
_chunkDBRXZC2Icjs.ReleaseChangelogSection,
|
|
560
560
|
{
|
|
561
561
|
title: "Breaking Changes",
|
|
562
562
|
entries: breakingChanges || [],
|
|
@@ -568,7 +568,7 @@ function ReleaseDetailPage({
|
|
|
568
568
|
}
|
|
569
569
|
),
|
|
570
570
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
571
|
-
|
|
571
|
+
_chunkDBRXZC2Icjs.ReleaseChangelogSection,
|
|
572
572
|
{
|
|
573
573
|
title: "Features Added",
|
|
574
574
|
entries: featuresAdded || [],
|
|
@@ -578,7 +578,7 @@ function ReleaseDetailPage({
|
|
|
578
578
|
}
|
|
579
579
|
),
|
|
580
580
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
581
|
-
|
|
581
|
+
_chunkDBRXZC2Icjs.ReleaseChangelogSection,
|
|
582
582
|
{
|
|
583
583
|
title: "Bugs Fixed",
|
|
584
584
|
entries: bugFixed || [],
|
|
@@ -588,7 +588,7 @@ function ReleaseDetailPage({
|
|
|
588
588
|
}
|
|
589
589
|
),
|
|
590
590
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
591
|
-
|
|
591
|
+
_chunkDBRXZC2Icjs.ReleaseChangelogSection,
|
|
592
592
|
{
|
|
593
593
|
title: "Improvements",
|
|
594
594
|
entries: improvements || [],
|
|
@@ -617,9 +617,9 @@ function ReleaseDetailPage({
|
|
|
617
617
|
return deliveryLoading ? (
|
|
618
618
|
// The loaded preview's frame, its height written into the markup (`fixedHeight`), so the tables'
|
|
619
619
|
// loading state takes the collapsed preview's place, toggle row included. Inert: nothing to open yet.
|
|
620
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
620
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { inert: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.FadePreview, { fixedHeight: true, collapsedHeight: DELIVERY_PREVIEW_HEIGHT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DELIVERY_TABLES_STACK_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliverySection, { data: deliveryData, isLoading: deliveryLoading }) }) }) })
|
|
621
621
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
622
|
-
|
|
622
|
+
_chunkDBRXZC2Icjs.FadePreview,
|
|
623
623
|
{
|
|
624
624
|
hiddenCount: deliveryCount - 1,
|
|
625
625
|
collapsedHeight: DELIVERY_PREVIEW_HEIGHT,
|
|
@@ -699,7 +699,7 @@ function ReleaseDetailPage({
|
|
|
699
699
|
]
|
|
700
700
|
}
|
|
701
701
|
);
|
|
702
|
-
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
702
|
+
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRNTIKPDcjs.LoadingFallback, { label: "Loading the release", children: page }) : page);
|
|
703
703
|
}
|
|
704
704
|
|
|
705
705
|
// src/components/shared/roadmap/use-roadmap-voting.ts
|
|
@@ -722,7 +722,7 @@ function useRoadmapVoting(options = {}) {
|
|
|
722
722
|
const { getSignals } = _chunkBWR5ACK3cjs.useHumanitySignals.call(void 0, );
|
|
723
723
|
const [votes, setVotes] = _react.useState.call(void 0, NO_VOTES);
|
|
724
724
|
const [loadedKey, setLoadedKey] = _react.useState.call(void 0, null);
|
|
725
|
-
const hydrated =
|
|
725
|
+
const hydrated = _chunkGRNTIKPDcjs.useIsHydrated.call(void 0, );
|
|
726
726
|
if (hydrated && loadedKey !== storageKey) {
|
|
727
727
|
setLoadedKey(storageKey);
|
|
728
728
|
setVotes(readStoredVotes(storageKey));
|
|
@@ -883,7 +883,7 @@ function RoadmapGridSingle({
|
|
|
883
883
|
_chunkFIKIPO4Fcjs.RoadmapCard,
|
|
884
884
|
{
|
|
885
885
|
item,
|
|
886
|
-
id:
|
|
886
|
+
id: _chunkPPORXZI7cjs.devSectionAnchorId.call(void 0, "roadmap", item.id),
|
|
887
887
|
userVote: getVote(item.id),
|
|
888
888
|
onVote: onVote ? (voteType) => onVote(item.id, voteType) : void 0,
|
|
889
889
|
isVoting: votingTasks.has(item.id)
|
|
@@ -1053,7 +1053,7 @@ function RoadmapGrid({
|
|
|
1053
1053
|
);
|
|
1054
1054
|
}
|
|
1055
1055
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1056
|
-
|
|
1056
|
+
_chunkDBRXZC2Icjs.Accordion,
|
|
1057
1057
|
{
|
|
1058
1058
|
type: "multiple",
|
|
1059
1059
|
value: expandedQuarters,
|
|
@@ -1063,14 +1063,14 @@ function RoadmapGrid({
|
|
|
1063
1063
|
const itemCount = _optionalChain([itemsByQuarter, 'access', _19 => _19[quarter], 'optionalAccess', _20 => _20.length]) || 0;
|
|
1064
1064
|
const isExpanded = expandedQuarters.includes(quarter);
|
|
1065
1065
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1066
|
-
|
|
1066
|
+
_chunkDBRXZC2Icjs.AccordionItem,
|
|
1067
1067
|
{
|
|
1068
1068
|
value: quarter,
|
|
1069
1069
|
id: `quarter-${quarter.replace(/\s+/g, "-").toLowerCase()}`,
|
|
1070
1070
|
className: "border-0",
|
|
1071
1071
|
"data-loading-item": true,
|
|
1072
1072
|
children: [
|
|
1073
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1073
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.AccordionTrigger, { className: "w-full p-0 hover:no-underline [&>svg]:ml-auto [&>svg]:h-5 [&>svg]:w-5 [&>svg]:shrink-0 [&>svg]:text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: QUARTER_HEAD_CLASS, children: [
|
|
1074
1074
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1075
1075
|
"h3",
|
|
1076
1076
|
{
|
|
@@ -1100,7 +1100,7 @@ function RoadmapGrid({
|
|
|
1100
1100
|
}
|
|
1101
1101
|
)
|
|
1102
1102
|
] }) }),
|
|
1103
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1103
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.AccordionContent, { className: "overflow-hidden pb-0 pt-4 data-[state=closed]:animate-none data-[state=open]:animate-none", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1104
1104
|
RoadmapGridSingle,
|
|
1105
1105
|
{
|
|
1106
1106
|
items: itemsByQuarter[quarter],
|
|
@@ -1126,8 +1126,8 @@ function RoadmapGrid({
|
|
|
1126
1126
|
var DEFAULT_ENDPOINT3 = "/api/roadmap";
|
|
1127
1127
|
var NO_ITEMS = [];
|
|
1128
1128
|
var SYNCED_LIST_CLASS = "flex w-full flex-col gap-[var(--spacing-system-lf)]";
|
|
1129
|
-
var DEFAULT_SEARCH_PARAM_KEY2 =
|
|
1130
|
-
var DEFAULT_STATUS_PARAM_KEY2 =
|
|
1129
|
+
var DEFAULT_SEARCH_PARAM_KEY2 = _chunkPPORXZI7cjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1130
|
+
var DEFAULT_STATUS_PARAM_KEY2 = _chunkPPORXZI7cjs.DEV_SECTION_PARAM_KEYS.status;
|
|
1131
1131
|
function RoadmapView({
|
|
1132
1132
|
endpoint = DEFAULT_ENDPOINT3,
|
|
1133
1133
|
initialItems,
|
|
@@ -1151,18 +1151,18 @@ function RoadmapView({
|
|
|
1151
1151
|
});
|
|
1152
1152
|
const items = _nullishCoalesce(_optionalChain([data, 'optionalAccess', _21 => _21.items]), () => ( []));
|
|
1153
1153
|
_chunkBWR5ACK3cjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX });
|
|
1154
|
-
const syncInPage =
|
|
1154
|
+
const syncInPage = _chunkUFCKY7OLcjs.usePageDataSync.call(void 0, _optionalChain([data, 'optionalAccess', _22 => _22.sync]), isLoading && !data);
|
|
1155
1155
|
if (error) {
|
|
1156
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1156
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.LoadError, { message: "Failed to load roadmap.", onRetry: reload });
|
|
1157
1157
|
}
|
|
1158
1158
|
if (isLoading && !data) {
|
|
1159
1159
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1160
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1160
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.DataSyncLine, { loading: true }),
|
|
1161
1161
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RoadmapGrid, { items: NO_ITEMS, isLoading: true, groupByQuarter: true, showLeftMargin })
|
|
1162
1162
|
] });
|
|
1163
1163
|
}
|
|
1164
1164
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SYNCED_LIST_CLASS, children: [
|
|
1165
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1165
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.DataSyncLine, { sync: _optionalChain([data, 'optionalAccess', _23 => _23.sync]) }),
|
|
1166
1166
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1167
1167
|
RoadmapGrid,
|
|
1168
1168
|
{
|
|
@@ -1186,7 +1186,7 @@ var TABLE_FRAME_CLASS = `w-full ${_chunkYBTORXFYcjs.CONTENT_CARD_SKELETON_FRAME_
|
|
|
1186
1186
|
var ROW_SEPARATOR_CLASS = "border-b border-ods-border last:border-b-0";
|
|
1187
1187
|
var DELIVERY_TABLE_SKELETON_ROWS = 5;
|
|
1188
1188
|
function DeliveryTableSkeleton() {
|
|
1189
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TABLE_FRAME_CLASS, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: DELIVERY_TABLE_SKELETON_ROWS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1189
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TABLE_FRAME_CLASS, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: DELIVERY_TABLE_SKELETON_ROWS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUFCKY7OLcjs.DeliveryRow, { loading: true }) }) }) }) });
|
|
1190
1190
|
}
|
|
1191
1191
|
function DeliveryTable({ items, isLoading = false }) {
|
|
1192
1192
|
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || isLoading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeliveryTableSkeleton, {});
|
|
@@ -1199,7 +1199,7 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1199
1199
|
// → `#delivery-<external_id>`; `useScrollToHash` in
|
|
1200
1200
|
// `delivery-lists.tsx` finds the row by id and scrolls. The
|
|
1201
1201
|
// outer wrapper here ONLY exists for the row separators.
|
|
1202
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1202
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: ROW_SEPARATOR_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUFCKY7OLcjs.DeliveryRow, { item, id: _chunkPPORXZI7cjs.devSectionAnchorId.call(void 0, "delivery", item.id) }) }, item.id)
|
|
1203
1203
|
)) }) });
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
@@ -1208,8 +1208,8 @@ function DeliveryTable({ items, isLoading = false }) {
|
|
|
1208
1208
|
|
|
1209
1209
|
var DEFAULT_COMPLETED_ENDPOINT = "/api/delivery/completed";
|
|
1210
1210
|
var DEFAULT_IN_PROGRESS_ENDPOINT = "/api/delivery/in-progress";
|
|
1211
|
-
var DEFAULT_SEARCH_PARAM_KEY3 =
|
|
1212
|
-
var DEFAULT_TASK_TYPE_PARAM_KEY =
|
|
1211
|
+
var DEFAULT_SEARCH_PARAM_KEY3 = _chunkPPORXZI7cjs.DEV_SECTION_PARAM_KEYS.search;
|
|
1212
|
+
var DEFAULT_TASK_TYPE_PARAM_KEY = _chunkPPORXZI7cjs.DEV_SECTION_PARAM_KEYS.deliveryTaskType;
|
|
1213
1213
|
function DeliveryLists({
|
|
1214
1214
|
completedApiEndpoint = DEFAULT_COMPLETED_ENDPOINT,
|
|
1215
1215
|
inProgressApiEndpoint = DEFAULT_IN_PROGRESS_ENDPOINT,
|
|
@@ -1284,18 +1284,18 @@ function DeliveryLists({
|
|
|
1284
1284
|
const filteredCompleted = _optionalChain([data, 'optionalAccess', _24 => _24.completed]) || [];
|
|
1285
1285
|
const filteredInProgress = _optionalChain([data, 'optionalAccess', _25 => _25.inProgress]) || [];
|
|
1286
1286
|
_chunkBWR5ACK3cjs.useScrollToHash.call(void 0, data, { headerOffset: _chunkOJZBZH56cjs.STICKY_HEADER_OFFSET_PX });
|
|
1287
|
-
const syncInPage =
|
|
1287
|
+
const syncInPage = _chunkUFCKY7OLcjs.usePageDataSync.call(void 0, sync, isLoading && !data);
|
|
1288
1288
|
const showCompleted = true;
|
|
1289
1289
|
const showInProgress = true;
|
|
1290
1290
|
const hasActiveFilters = searchQuery !== "" || taskTypeFilter !== "all";
|
|
1291
1291
|
const hasResults = showCompleted && filteredCompleted.length > 0 || showInProgress && filteredInProgress.length > 0;
|
|
1292
1292
|
if (error) {
|
|
1293
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1293
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.LoadError, { message: error, onRetry: () => window.location.reload() }) });
|
|
1294
1294
|
}
|
|
1295
1295
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[40px]", children: [
|
|
1296
|
-
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1296
|
+
!syncInPage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.DataSyncLine, { sync, loading: isLoading && !data }),
|
|
1297
1297
|
!isLoading && !hasResults && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1298
|
-
|
|
1298
|
+
_chunkUFCKY7OLcjs.ListEmptyState,
|
|
1299
1299
|
{
|
|
1300
1300
|
isFiltered: hasActiveFilters,
|
|
1301
1301
|
filtered: {
|
|
@@ -1520,7 +1520,7 @@ function legalDocumentStampLabel(doc) {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
var LEGAL_DOCUMENT_SKELETON_SECTIONS = 3;
|
|
1522
1522
|
function LegalDocumentSkeleton({ sections = LEGAL_DOCUMENT_SKELETON_SECTIONS }) {
|
|
1523
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1523
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the document", className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRNTIKPDcjs.MarkdownEngine, { loading: true, content: "", skeletonTitle: true, skeletonSections: sections, textSize: "article" }) });
|
|
1524
1524
|
}
|
|
1525
1525
|
function LegalDocumentPage({
|
|
1526
1526
|
docType,
|
|
@@ -1532,7 +1532,7 @@ function LegalDocumentPage({
|
|
|
1532
1532
|
emptyStateMessage: emptyStateMessageProp,
|
|
1533
1533
|
initialData = null,
|
|
1534
1534
|
apiEndpoint,
|
|
1535
|
-
MarkdownRenderer =
|
|
1535
|
+
MarkdownRenderer = _chunkDBRXZC2Icjs.RichMarkdownRenderer,
|
|
1536
1536
|
documentsEndpoint,
|
|
1537
1537
|
backButton,
|
|
1538
1538
|
faq,
|
|
@@ -1563,7 +1563,7 @@ function LegalDocumentPage({
|
|
|
1563
1563
|
titleSize: "h1",
|
|
1564
1564
|
titleWrap: true,
|
|
1565
1565
|
children: [
|
|
1566
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1566
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.DataSyncLine, { sync: data ? { source: "github", syncedAt: data.lastSynced } : null, loading: isLoading }),
|
|
1567
1567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-1 flex-col items-start gap-6 lg:flex-row lg:gap-10", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex-1", isLoading && "w-full"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "article", { className: "space-y-2", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LegalDocumentSkeleton, {}) : error ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-4 text-center", children: [
|
|
1568
1568
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rounded-lg border border-ods-error bg-ods-error-secondary p-6", children: [
|
|
1569
1569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mb-2 text-ods-error", children: errorTitle }),
|
|
@@ -1583,11 +1583,11 @@ function LegalDocumentPage({
|
|
|
1583
1583
|
"for more information."
|
|
1584
1584
|
] })
|
|
1585
1585
|
] }) }) }) }) }),
|
|
1586
|
-
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1586
|
+
faqSlot && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCS2KLF4Ocjs.FaqSection, { ..._chunkCS2KLF4Ocjs.pageFaqProps.call(void 0, faqSlot) })
|
|
1587
1587
|
]
|
|
1588
1588
|
}
|
|
1589
1589
|
);
|
|
1590
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1590
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
1591
1591
|
}
|
|
1592
1592
|
|
|
1593
1593
|
|
|
@@ -5,26 +5,26 @@ var _chunkZOK4OWMJcjs = require('./chunk-ZOK4OWMJ.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk6EDOASF4cjs = require('./chunk-6EDOASF4.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkDBRXZC2Icjs = require('./chunk-DBRXZC2I.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkE56LN23Hcjs = require('./chunk-E56LN23H.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkPPORXZI7cjs = require('./chunk-PPORXZI7.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkGRNTIKPDcjs = require('./chunk-GRNTIKPD.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkZD6SZLO2cjs = require('./chunk-ZD6SZLO2.cjs');
|
|
@@ -143,14 +143,14 @@ function OnboardingGuidesCatalogView({
|
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
145
|
const source = _nullishCoalesce(_optionalChain([runtime, 'optionalAccess', _6 => _6.source]), () => ( "openframe"));
|
|
146
|
-
const docSearch =
|
|
146
|
+
const docSearch = _chunk6EDOASF4cjs.useDocSearch.call(void 0, {
|
|
147
147
|
source,
|
|
148
148
|
baseRoute: basePath,
|
|
149
149
|
onNavigate: (path) => router.push(path),
|
|
150
150
|
tableIds: ["onboarding-guides"]
|
|
151
151
|
});
|
|
152
152
|
const defaultRenderCard = (guide) => {
|
|
153
|
-
const cta =
|
|
153
|
+
const cta = _chunkPPORXZI7cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _7 => _7.composeContentUrl]), {
|
|
154
154
|
type: "onboarding_guide",
|
|
155
155
|
slug: guide.slug,
|
|
156
156
|
basePath,
|
|
@@ -161,7 +161,7 @@ function OnboardingGuidesCatalogView({
|
|
|
161
161
|
const renderCardFn = _nullishCoalesce(renderCard, () => ( defaultRenderCard));
|
|
162
162
|
const preControls = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_CONTROLS_CLASS, children: [
|
|
163
163
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
-
|
|
164
|
+
_chunk6EDOASF4cjs.DocSearchBar,
|
|
165
165
|
{
|
|
166
166
|
placeholder: "Search onboarding guides, releases, case studies\u2026",
|
|
167
167
|
query: docSearch.query,
|
|
@@ -173,7 +173,7 @@ function OnboardingGuidesCatalogView({
|
|
|
173
173
|
}
|
|
174
174
|
),
|
|
175
175
|
(loading || sections.length > 0) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
176
|
-
|
|
176
|
+
_chunkDBRXZC2Icjs.FilterPillRow,
|
|
177
177
|
{
|
|
178
178
|
label: "Section",
|
|
179
179
|
selectedValue: activeSection,
|
|
@@ -184,7 +184,7 @@ function OnboardingGuidesCatalogView({
|
|
|
184
184
|
)
|
|
185
185
|
] });
|
|
186
186
|
if (!loading && selfFetch && guidesRes.error) {
|
|
187
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.LoadError, { message: "Failed to load onboarding guides.", onRetry: guidesRes.reload });
|
|
188
188
|
}
|
|
189
189
|
const view = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CATALOG_VIEW_CLASS, children: [
|
|
190
190
|
preControls,
|
|
@@ -200,7 +200,7 @@ function OnboardingGuidesCatalogView({
|
|
|
200
200
|
)
|
|
201
201
|
] });
|
|
202
202
|
if (!loading) return view;
|
|
203
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
203
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRNTIKPDcjs.LoadingFallback, { label: "Loading onboarding guides", children: view });
|
|
204
204
|
}
|
|
205
205
|
function OnboardingCatalogSections({
|
|
206
206
|
grouped,
|
|
@@ -304,7 +304,7 @@ function OnboardingGuideDetailView({
|
|
|
304
304
|
slug,
|
|
305
305
|
guideEndpoint,
|
|
306
306
|
related = [],
|
|
307
|
-
MarkdownRenderer =
|
|
307
|
+
MarkdownRenderer = _chunkDBRXZC2Icjs.RichMarkdownRenderer,
|
|
308
308
|
renderRelatedCard,
|
|
309
309
|
backHref,
|
|
310
310
|
backLabel = "Back to Getting Started",
|
|
@@ -314,9 +314,9 @@ function OnboardingGuideDetailView({
|
|
|
314
314
|
}) {
|
|
315
315
|
const resolvedBackHref = _nullishCoalesce(backHref, () => ( basePath));
|
|
316
316
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
317
|
-
const captions =
|
|
317
|
+
const captions = _chunkGRNTIKPDcjs.useCaptions.call(void 0, );
|
|
318
318
|
const router = _chunk7DNL734Scjs.useRouter.call(void 0, );
|
|
319
|
-
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
319
|
+
const renderShell = (node) => shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.PageShell, { children: node }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: node });
|
|
320
320
|
const url = initialData ? null : slug && guideEndpoint ? guideEndpoint(slug) : null;
|
|
321
321
|
const scoped = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
322
322
|
const {
|
|
@@ -334,7 +334,7 @@ function OnboardingGuideDetailView({
|
|
|
334
334
|
const backCfg = { label: backLabel, onClick: () => router.push(resolvedBackHref) };
|
|
335
335
|
const loading = scoped || !guide && isLoading;
|
|
336
336
|
if (!loading && (error || !guide)) {
|
|
337
|
-
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
337
|
+
return renderShell(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.LoadError, { message: "Guide not found.", onRetry: reload }));
|
|
338
338
|
}
|
|
339
339
|
const view = _nullishCoalesce(guide, () => ( EMPTY_ONBOARDING_GUIDE));
|
|
340
340
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", view);
|
|
@@ -342,7 +342,7 @@ function OnboardingGuideDetailView({
|
|
|
342
342
|
// worst), so it's the terminal fallback — no trailing `|| undefined` needed.
|
|
343
343
|
_chunkXR323UBYcjs.buildOgPlaceholderUrl.call(void 0, _optionalChain([runtime, 'optionalAccess', _11 => _11.endpoints]), view.title, { aspect: "wide" });
|
|
344
344
|
const defaultRenderRelatedCard = (g) => {
|
|
345
|
-
const cta =
|
|
345
|
+
const cta = _chunkPPORXZI7cjs.resolveContentHref.call(void 0, _optionalChain([runtime, 'optionalAccess', _12 => _12.composeContentUrl]), {
|
|
346
346
|
type: "onboarding_guide",
|
|
347
347
|
slug: g.slug,
|
|
348
348
|
basePath,
|
|
@@ -352,7 +352,7 @@ function OnboardingGuideDetailView({
|
|
|
352
352
|
};
|
|
353
353
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
354
354
|
const page = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkE56LN23Hcjs.PageLayout, { title: view.title, loading, titleSize: "h1", titleWrap: true, backButton: backCfg, children: [
|
|
355
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
355
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDBRXZC2Icjs.EntityTagBadges, { tags: view.onboarding_guide_tags }),
|
|
356
356
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
357
357
|
_chunkFIKIPO4Fcjs.EntityAuthorCard,
|
|
358
358
|
{
|
|
@@ -370,7 +370,7 @@ function OnboardingGuideDetailView({
|
|
|
370
370
|
),
|
|
371
371
|
!loading && (view.main_video_url || view.youtube_url) && // A guide's video is optional: the loading state leaves it out.
|
|
372
372
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: videoWarmupRef, "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
373
|
-
|
|
373
|
+
_chunkGRNTIKPDcjs.EntityVideoSection,
|
|
374
374
|
{
|
|
375
375
|
mainVideoUrl: view.main_video_url,
|
|
376
376
|
youtubeUrl: view.youtube_url || void 0,
|
|
@@ -387,7 +387,7 @@ function OnboardingGuideDetailView({
|
|
|
387
387
|
) }),
|
|
388
388
|
(loading || view.content) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: BODY_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownRenderer, { content: _nullishCoalesce(view.content, () => ( "")) }) }),
|
|
389
389
|
loading ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "contents", "data-loading-optional": "", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
390
|
-
|
|
390
|
+
_chunkGRNTIKPDcjs.VideoBitesStrip,
|
|
391
391
|
{
|
|
392
392
|
bites: _nullishCoalesce(view.video_bites, () => ( [])),
|
|
393
393
|
filterPublished: true,
|
|
@@ -410,7 +410,7 @@ function OnboardingGuideDetailView({
|
|
|
410
410
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RelatedGuides, { section: view.section, related, renderCard: renderRelatedCardFn }),
|
|
411
411
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Fragment, { children: relatedContent }, "related-content")
|
|
412
412
|
] });
|
|
413
|
-
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
413
|
+
return renderShell(loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGRNTIKPDcjs.LoadingFallback, { label: "Loading the guide", children: page }) : page);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
// src/components/onboarding-guides/hooks/use-onboarding-guides.ts
|
|
@@ -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 _chunkDBRXZC2Icjs = require('./chunk-DBRXZC2I.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkGRNTIKPDcjs = require('./chunk-GRNTIKPD.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
@@ -42,7 +42,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
42
42
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
43
43
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
44
44
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
45
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
45
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkGRNTIKPDcjs.resolveSourceIcon.call(void 0, {
|
|
46
46
|
sourceRepo,
|
|
47
47
|
documentType: docType
|
|
48
48
|
});
|
|
@@ -72,7 +72,7 @@ function DocSearchBar({
|
|
|
72
72
|
renderResult
|
|
73
73
|
}) {
|
|
74
74
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
-
|
|
75
|
+
_chunkDBRXZC2Icjs.SearchInput,
|
|
76
76
|
{
|
|
77
77
|
placeholder,
|
|
78
78
|
value: query,
|
|
@@ -122,7 +122,7 @@ function mapDocSearchResults(docs) {
|
|
|
122
122
|
results.push({
|
|
123
123
|
id: `group-${entry.repo}`,
|
|
124
124
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
125
|
-
title: `${
|
|
125
|
+
title: `${_chunkGRNTIKPDcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkGRNTIKPDcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
126
126
|
path: rows[0].path,
|
|
127
127
|
type: "file",
|
|
128
128
|
metadata: {
|
|
@@ -338,7 +338,7 @@ function useDocSearch(config) {
|
|
|
338
338
|
return;
|
|
339
339
|
case "ask-ai":
|
|
340
340
|
setKeepOpen(false);
|
|
341
|
-
window.dispatchEvent(new CustomEvent(
|
|
341
|
+
window.dispatchEvent(new CustomEvent(_chunkGRNTIKPDcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
342
342
|
return;
|
|
343
343
|
case "route":
|
|
344
344
|
setKeepOpen(false);
|
|
@@ -6,7 +6,7 @@ var _chunkBWR5ACK3cjs = require('./chunk-BWR5ACK3.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkPPORXZI7cjs = require('./chunk-PPORXZI7.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSXGDKNVEcjs = require('./chunk-SXGDKNVE.cjs');
|
|
@@ -169,31 +169,31 @@ CveLink.displayName = "CveLink";
|
|
|
169
169
|
// src/components/platform/ShellTypeBadge.tsx
|
|
170
170
|
|
|
171
171
|
var shellIconMap = {
|
|
172
|
-
[
|
|
172
|
+
[_chunkPPORXZI7cjs.ShellTypeValues.POWERSHELL]: {
|
|
173
173
|
icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon,
|
|
174
174
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
175
175
|
},
|
|
176
|
-
[
|
|
176
|
+
[_chunkPPORXZI7cjs.ShellTypeValues.CMD]: {
|
|
177
177
|
icon: _chunkUXUYT4WKcjs.CmdIcon,
|
|
178
178
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
179
179
|
},
|
|
180
|
-
[
|
|
180
|
+
[_chunkPPORXZI7cjs.ShellTypeValues.BASH]: {
|
|
181
181
|
icon: _chunk5OG5ZTNMcjs.BashIcon,
|
|
182
182
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
183
183
|
},
|
|
184
|
-
[
|
|
184
|
+
[_chunkPPORXZI7cjs.ShellTypeValues.PYTHON]: {
|
|
185
185
|
icon: _chunkBF77UKGDcjs.PythonLogoIcon,
|
|
186
186
|
props: { size: 16, className: "text-ods-text-secondary" }
|
|
187
187
|
},
|
|
188
|
-
[
|
|
188
|
+
[_chunkPPORXZI7cjs.ShellTypeValues.NUSHELL]: {
|
|
189
189
|
icon: _chunkG37H4CBTcjs.NushellIcon,
|
|
190
190
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
191
191
|
},
|
|
192
|
-
[
|
|
192
|
+
[_chunkPPORXZI7cjs.ShellTypeValues.DENO]: {
|
|
193
193
|
icon: _chunkHUL6SF5Acjs.DenoIcon,
|
|
194
194
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
195
195
|
},
|
|
196
|
-
[
|
|
196
|
+
[_chunkPPORXZI7cjs.ShellTypeValues.SHELL]: {
|
|
197
197
|
icon: _chunk6RMATQNNcjs.ShellIcon,
|
|
198
198
|
props: { size: 16, color: "var(--color-text-secondary)" }
|
|
199
199
|
}
|
|
@@ -204,7 +204,7 @@ var defaultIconConfig = {
|
|
|
204
204
|
};
|
|
205
205
|
var ShellTypeBadge = ({ shellType, className, iconClassName }) => {
|
|
206
206
|
const normalizedType = _optionalChain([shellType, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]);
|
|
207
|
-
const label =
|
|
207
|
+
const label = _chunkPPORXZI7cjs.getShellLabel.call(void 0, normalizedType);
|
|
208
208
|
const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
|
|
209
209
|
const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
|
|
210
210
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex items-center gap-1", className), children: [
|
|
@@ -220,7 +220,7 @@ function formatSupportedPlatforms(platforms) {
|
|
|
220
220
|
if (!platforms || platforms.length === 0) {
|
|
221
221
|
return "All Platforms";
|
|
222
222
|
}
|
|
223
|
-
return platforms.map((platform) =>
|
|
223
|
+
return platforms.map((platform) => _chunkPPORXZI7cjs.getOSLabel.call(void 0, platform)).join(", ");
|
|
224
224
|
}
|
|
225
225
|
function InfoCell({ label, value, avatar, className }) {
|
|
226
226
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 items-center gap-2", className), children: [
|
|
@@ -240,7 +240,7 @@ var ScriptInfoSection = ({
|
|
|
240
240
|
author,
|
|
241
241
|
className
|
|
242
242
|
}) => {
|
|
243
|
-
const shellLabel =
|
|
243
|
+
const shellLabel = _chunkPPORXZI7cjs.getShellLabel.call(void 0, shellType);
|
|
244
244
|
const platformsLabel = formatSupportedPlatforms(supportedPlatforms);
|
|
245
245
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "overflow-hidden rounded-[6px] border border-ods-border bg-ods-card", className), children: [
|
|
246
246
|
/* @__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: [
|