@flamingo-stack/openframe-frontend-core 0.0.735 → 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-F7STMHT7.cjs → chunk-4FJZ7RJD.cjs} +66 -66
- package/dist/{chunk-SZRZBCWC.cjs → chunk-4ISP3XP4.cjs} +75 -69
- package/dist/{chunk-EQ7OOK4B.cjs → chunk-4RMLAHU2.cjs} +24 -16
- package/dist/{chunk-XKB7YGQM.cjs → chunk-77SD7RXY.cjs} +18 -6
- package/dist/{chunk-NVCSVGNI.cjs → chunk-CM35DLKS.cjs} +33 -33
- package/dist/{chunk-T323E2Y6.cjs → chunk-DA4VS6TS.cjs} +4 -4
- package/dist/{chunk-36CCUJOE.cjs → chunk-E2JCZU36.cjs} +313 -313
- package/dist/{chunk-RH3AKULV.cjs → chunk-EJOXXJJB.cjs} +56 -4
- package/dist/{chunk-SHQZN5LF.cjs → chunk-EX2GYIGW.cjs} +6 -6
- package/dist/{chunk-EQH7BUNS.cjs → chunk-FA2LATDM.cjs} +4 -4
- package/dist/{chunk-3JP2OVH3.cjs → chunk-KVGBDWYV.cjs} +30 -30
- package/dist/{chunk-HBUUCLQM.cjs → chunk-L535OD7V.cjs} +2 -2
- package/dist/{chunk-3X4N3IT7.cjs → chunk-LW3QSP47.cjs} +16 -16
- package/dist/{chunk-OXJ57643.cjs → chunk-MGW5DO6P.cjs} +76 -17
- package/dist/{chunk-4F7V2MAC.cjs → chunk-N6YOOGCD.cjs} +14 -14
- package/dist/chunk-O4MG7FXW.cjs +57 -0
- package/dist/{chunk-TUMUT7CV.cjs → chunk-SGVQO5J6.cjs} +11 -11
- package/dist/{chunk-MRVZ56GT.cjs → chunk-TJQYX3QC.cjs} +81 -81
- package/dist/{chunk-7HT3VHLJ.cjs → chunk-URIJ6YUG.cjs} +43 -69
- package/dist/{chunk-JDXQ6T5P.cjs → chunk-VL4JKXU2.cjs} +253 -290
- package/dist/{chunk-HLBFTDUL.cjs → chunk-VRNNIV5Y.cjs} +2 -2
- package/dist/{chunk-W6E7XCBI.cjs → chunk-VYODTHMR.cjs} +31 -31
- package/dist/{chunk-3FZZPR76.cjs → chunk-XLSVQJBA.cjs} +44 -44
- package/dist/{chunk-6TTAILSV.cjs → chunk-XPP7VCNY.cjs} +3 -3
- package/dist/{cloud-tenants-H5D57P4U.cjs → cloud-tenants-IWQ5FFLY.cjs} +7 -7
- package/dist/components/case-studies/index.cjs +19 -19
- 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 +10 -8
- 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 +8 -8
- package/dist/components/docs/index.cjs +11 -11
- package/dist/components/embeds/index.cjs +8 -8
- 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 +14 -8
- 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 +7 -7
- 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 +195 -140
- 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 +67 -59
- package/dist/components/meeting-scheduler/index.cjs +29 -29
- package/dist/components/navigation/index.cjs +10 -10
- package/dist/components/onboarding-guides/index.cjs +10 -10
- package/dist/components/pagination.d.ts +9 -1
- package/dist/components/pagination.d.ts.map +1 -1
- package/dist/components/pagination.js +72 -17
- package/dist/components/product-demo/index.cjs +6 -6
- package/dist/components/related-content/index.cjs +5 -5
- 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 +13 -12
- package/dist/components/ui/index.cjs +12 -10
- package/dist/components/unified-pagination.d.ts.map +1 -1
- package/dist/components/unified-pagination.js +16 -4
- package/dist/contexts/assistant-runtime-context.d.ts +5 -5
- package/dist/{devices-SQTEXY2H.cjs → devices-OUHGWA6Y.cjs} +8 -8
- package/dist/{embeddable-chat-S5ODWE3L.cjs → embeddable-chat-U3C4WWB7.cjs} +72 -72
- package/dist/index.cjs +20 -14
- package/dist/{knowledge-FO3TPLFO.cjs → knowledge-3ZASPWMF.cjs} +8 -8
- package/dist/{logs-Y4WQB2YR.cjs → logs-E6Y54P6K.cjs} +15 -15
- package/dist/{policies-D6VY2ODF.cjs → policies-LAV75B5B.cjs} +11 -11
- package/dist/{software-update-7XN6U7HC.cjs → software-update-2CAL3AMJ.cjs} +10 -10
- 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/pagination.tsx +117 -21
- 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/components/unified-pagination.tsx +23 -7
- package/src/contexts/assistant-runtime-context.tsx +5 -5
- package/src/types/faq.ts +18 -0
|
@@ -1380,6 +1380,53 @@ var PROGRAM_META_RENDERERS = {
|
|
|
1380
1380
|
webinarMeta: _chunkFTTLBMHUcjs.formatWebinarTimeMeta
|
|
1381
1381
|
};
|
|
1382
1382
|
|
|
1383
|
+
// src/components/chat/utils/chat-nav-resolution.ts
|
|
1384
|
+
var NEW_TAB_FEATURES = "noopener,noreferrer";
|
|
1385
|
+
function isModifierClick(e) {
|
|
1386
|
+
return e.button !== 0 || !!e.metaKey || !!e.ctrlKey || !!e.shiftKey || !!e.altKey;
|
|
1387
|
+
}
|
|
1388
|
+
function stripSameOriginToPath(href) {
|
|
1389
|
+
if (!href.startsWith("http")) return href;
|
|
1390
|
+
try {
|
|
1391
|
+
const u = new URL(href);
|
|
1392
|
+
return u.pathname + u.search + u.hash;
|
|
1393
|
+
} catch (e7) {
|
|
1394
|
+
return href;
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
function resolveHrefForRuntime(href, runtime) {
|
|
1398
|
+
if (runtime.navigation.mode !== "embed") return href;
|
|
1399
|
+
if (href.startsWith("http")) return href;
|
|
1400
|
+
if (href.startsWith("//")) return href;
|
|
1401
|
+
const origin = runtime.navigation.defaultContentOrigin;
|
|
1402
|
+
if (!origin) return href;
|
|
1403
|
+
return origin.replace(/\/+$/, "") + (href.startsWith("/") ? href : "/" + href);
|
|
1404
|
+
}
|
|
1405
|
+
function resolveExternalNavigation(args) {
|
|
1406
|
+
let abs = args.href;
|
|
1407
|
+
if (abs.startsWith("//")) abs = window.location.protocol + abs;
|
|
1408
|
+
if (!abs.startsWith("http")) {
|
|
1409
|
+
if (args.runtime.navigation.defaultContentOrigin) {
|
|
1410
|
+
let origin = args.runtime.navigation.defaultContentOrigin;
|
|
1411
|
+
while (origin.endsWith("/")) origin = origin.slice(0, -1);
|
|
1412
|
+
abs = origin + (abs.startsWith("/") ? abs : "/" + abs);
|
|
1413
|
+
} else if (args.runtime.navigation.mode === "embed" && process.env.NODE_ENV !== "production") {
|
|
1414
|
+
console.warn(
|
|
1415
|
+
"[chat-nav-resolution] relative href in embed mode with no defaultContentOrigin set on runtime.navigation \u2014 link will resolve against the embedder origin.",
|
|
1416
|
+
{ href: abs, targetPlatform: args.targetPlatform }
|
|
1417
|
+
);
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
const open = () => {
|
|
1421
|
+
if (args.runtime.navigation.openExternal) {
|
|
1422
|
+
args.runtime.navigation.openExternal(abs);
|
|
1423
|
+
} else {
|
|
1424
|
+
window.open(abs, "_blank", NEW_TAB_FEATURES);
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
return { href: abs, open };
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1383
1430
|
// src/components/chat/utils/decide-new-tab.ts
|
|
1384
1431
|
function decideNewTab(input) {
|
|
1385
1432
|
const { href, targetPlatform, openIn, alwaysNewTab, runtimeMode, currentSource } = input;
|
|
@@ -1400,7 +1447,7 @@ function isSameOriginAbsoluteHref(href) {
|
|
|
1400
1447
|
if (!/^https?:\/\//i.test(href)) return false;
|
|
1401
1448
|
try {
|
|
1402
1449
|
return new URL(href).origin === new URL(window.location.href).origin;
|
|
1403
|
-
} catch (
|
|
1450
|
+
} catch (e8) {
|
|
1404
1451
|
return false;
|
|
1405
1452
|
}
|
|
1406
1453
|
}
|
|
@@ -2360,7 +2407,7 @@ var SAME_ORIGIN_PROBE = "https://_sameorigin_.invalid";
|
|
|
2360
2407
|
function isSameOriginPath(candidate) {
|
|
2361
2408
|
try {
|
|
2362
2409
|
return new URL(candidate, SAME_ORIGIN_PROBE).origin === SAME_ORIGIN_PROBE;
|
|
2363
|
-
} catch (
|
|
2410
|
+
} catch (e9) {
|
|
2364
2411
|
return false;
|
|
2365
2412
|
}
|
|
2366
2413
|
}
|
|
@@ -2394,7 +2441,7 @@ function safeHref(url) {
|
|
|
2394
2441
|
if (!SAFE_URL_SCHEMES.includes(parsed.protocol)) return null;
|
|
2395
2442
|
if ((parsed.protocol === "https:" || parsed.protocol === "http:") && !parsed.hostname) return null;
|
|
2396
2443
|
return trimmed;
|
|
2397
|
-
} catch (
|
|
2444
|
+
} catch (e10) {
|
|
2398
2445
|
return null;
|
|
2399
2446
|
}
|
|
2400
2447
|
}
|
|
@@ -4384,4 +4431,9 @@ function getProxiedImageUrl2(imageUrl) {
|
|
|
4384
4431
|
|
|
4385
4432
|
|
|
4386
4433
|
|
|
4387
|
-
|
|
4434
|
+
|
|
4435
|
+
|
|
4436
|
+
|
|
4437
|
+
|
|
4438
|
+
|
|
4439
|
+
exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.CardHorizontal = CardHorizontal; exports.InteractiveCard = InteractiveCard; exports.Modal = Modal; exports.ModalContent = ModalContent; exports.ModalHeader = ModalHeader; exports.ModalTitle = ModalTitle; exports.ModalFooter = ModalFooter; exports.ImageGalleryModal = ImageGalleryModal; exports.fetchPriorityProp = fetchPriorityProp; exports.extractYouTubeId = extractYouTubeId; exports.Video = Video; exports.statusBadgeVariants = statusBadgeVariants; exports.genBadgeBgOpacity = genBadgeBgOpacity; exports.generationTierFromLabel = generationTierFromLabel; exports.StatusBadge = StatusBadge; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.skipsImageOptimizer = skipsImageOptimizer; exports.EntityIcon = EntityIcon; exports.escapeRegExp = escapeRegExp; exports.formatReleaseDate = formatReleaseDate; exports.formatDateShort = formatDateShort; exports.formatDateSlashUTC = formatDateSlashUTC; exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor; exports.resolveReleaseCover = resolveReleaseCover; exports.CUSTOM_ITEM_ID = CUSTOM_ITEM_ID; exports.getTaskTypeLabel = getTaskTypeLabel; exports.getStatusColorScheme = getStatusColorScheme; exports.isCrossOriginUrl = isCrossOriginUrl; exports.TRUST_FRAMEWORK_MONITORING = TRUST_FRAMEWORK_MONITORING; exports.trustFrameworkMonitoringEntry = trustFrameworkMonitoringEntry; exports.trustFrameworkBadge = trustFrameworkBadge; exports.TRUST_CENTER_SECTIONS = TRUST_CENTER_SECTIONS; exports.TRUST_CENTER_TITLE = TRUST_CENTER_TITLE; exports.TRUST_CENTER_TAGLINE = TRUST_CENTER_TAGLINE; exports.TRUST_CENTER_API_PATH = TRUST_CENTER_API_PATH; exports.TRUST_CENTER_CACHE_SECONDS = TRUST_CENTER_CACHE_SECONDS; exports.TRUST_CENTER_DOCUMENT_CACHE_SECONDS = TRUST_CENTER_DOCUMENT_CACHE_SECONDS; exports.TRUST_CENTER_CARD_ID = TRUST_CENTER_CARD_ID; exports.TRUST_CENTER_DOCUMENT_TYPE = TRUST_CENTER_DOCUMENT_TYPE; exports.TRUST_CENTER_PAGE_PATH = TRUST_CENTER_PAGE_PATH; exports.isTrustCenterMonitored = isTrustCenterMonitored; exports.trustCenterMonitoringStatus = trustCenterMonitoringStatus; exports.trustFrameworksSummary = trustFrameworksSummary; exports.trustCenterDocumentUrl = trustCenterDocumentUrl; exports.trustCenterPdfUrl = trustCenterPdfUrl; exports.visibleTrustCenterSections = visibleTrustCenterSections; exports.TRUST_CENTER_SEARCH_PARAM = TRUST_CENTER_SEARCH_PARAM; exports.TRUST_CENTER_SEARCH_MAX_CHARS = TRUST_CENTER_SEARCH_MAX_CHARS; exports.TRUST_CENTER_SEARCH_DEBOUNCE_MS = TRUST_CENTER_SEARCH_DEBOUNCE_MS; exports.TRUST_CENTER_DOMAIN_PARAM = TRUST_CENTER_DOMAIN_PARAM; exports.normalizeTrustControlQuery = normalizeTrustControlQuery; exports.trustControlQueryMatcher = trustControlQueryMatcher; exports.filterTrustControlDomains = filterTrustControlDomains; exports.trustCenterControlsUrl = trustCenterControlsUrl; exports.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl; exports.extractItems = extractItems; exports.extractItemId = extractItemId; exports.extractCardItems = extractCardItems; exports.MEDIA_TYPE = MEDIA_TYPE; exports.isVideoMedia = isVideoMedia; exports.isImageMedia = isImageMedia; exports.isPublishableMediaType = isPublishableMediaType; exports.partitionMediaByType = partitionMediaByType; exports.IMAGE_FILE_ACCEPT = IMAGE_FILE_ACCEPT; exports.MEDIA_FILE_ACCEPT = MEDIA_FILE_ACCEPT; exports.fileMediaType = fileMediaType; exports.mediaNameKey = mediaNameKey; exports.fileContentKey = fileContentKey; exports.programStr = programStr; exports.programDateInstant = programDateInstant; exports.webinarTiming = webinarTiming; exports.programMetaLine = programMetaLine; exports.eventAudience = eventAudience; exports.programMetaFormatters = programMetaFormatters; exports.PROGRAM_META_RENDERERS = PROGRAM_META_RENDERERS; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveHrefForRuntime = resolveHrefForRuntime; exports.resolveExternalNavigation = resolveExternalNavigation; exports.decideNewTab = decideNewTab; exports.isSameOriginAbsoluteHref = isSameOriginAbsoluteHref; exports.computeIsNewTab = computeIsNewTab; exports.newTabAnchorAttrs = newTabAnchorAttrs; exports.buildAnchorProps = buildAnchorProps; exports.EMPTY_AUTHOR_PLACEHOLDER = EMPTY_AUTHOR_PLACEHOLDER; exports.EntityMetadataValueCell = EntityMetadataValueCell; exports.EntityMetadataAuthorCell = EntityMetadataAuthorCell; exports.EntityAuthorCard = EntityAuthorCard; exports.BlogImagePlaceholder = BlogImagePlaceholder; exports.CONTENT_CARD_FRAME_CLASS = CONTENT_CARD_FRAME_CLASS; exports.CONTENT_CARD_SKELETON_FRAME_CLASS = CONTENT_CARD_SKELETON_FRAME_CLASS; exports.ContentCardFrame = ContentCardFrame; exports.useCoverImageFallback = useCoverImageFallback; exports.hideOnError = hideOnError; exports.EntityPortraitCard = EntityPortraitCard; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl2 = getProxiedImageUrl2; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.headingAccentClass = headingAccentClass; exports.accentSentenceMarks = accentSentenceMarks; exports.SectionHeading = SectionHeading; exports.DEFAULT_VIDEO_BITES_TITLE = DEFAULT_VIDEO_BITES_TITLE; exports.toStripProfile = toStripProfile; exports.sortBitesByCreatedAtDesc = sortBitesByCreatedAtDesc; exports.sortBitesByFeaturedAtDesc = sortBitesByFeaturedAtDesc; exports.programItemToStripProfile = programItemToStripProfile; exports.VideoHoverPreviewSurface = VideoHoverPreviewSurface; exports.ProductReleaseCard = ProductReleaseCard; exports.ProductReleaseCardSkeleton = ProductReleaseCardSkeleton; exports.defaultBuildProductReleaseCardProps = defaultBuildProductReleaseCardProps; exports.buildProductReleaseCardProps = buildProductReleaseCardProps; exports.UNSAFE_URL_CHARS = UNSAFE_URL_CHARS; exports.COMPACT_CARD_OUTER = COMPACT_CARD_OUTER; exports.COMPACT_CARD_OUTER_STATIC = COMPACT_CARD_OUTER_STATIC; exports.COMPACT_CARD_SKELETON_OUTER = COMPACT_CARD_SKELETON_OUTER; exports.COMPACT_CARD_IMAGE_SLOT = COMPACT_CARD_IMAGE_SLOT; exports.COMPACT_CARD_SKELETON_IMAGE_SLOT = COMPACT_CARD_SKELETON_IMAGE_SLOT; exports.COMPACT_CARD_ICON_SLOT = COMPACT_CARD_ICON_SLOT; exports.COMPACT_CARD_TEXT_COL = COMPACT_CARD_TEXT_COL; exports.COMPACT_CARD_TITLE_ROW = COMPACT_CARD_TITLE_ROW; exports.COMPACT_CARD_META_ROW_BOX = COMPACT_CARD_META_ROW_BOX; exports.COMPACT_CARD_TITLE = COMPACT_CARD_TITLE; exports.COMPACT_CARD_SUBTITLE = COMPACT_CARD_SUBTITLE; exports.COMPACT_CARD_SUMMARY = COMPACT_CARD_SUMMARY; exports.COMPACT_CARD_META_ROW = COMPACT_CARD_META_ROW; exports.COMPACT_CARD_ROW_FILLER = COMPACT_CARD_ROW_FILLER; exports.safeHref = safeHref; exports.useEntityCardLink = useEntityCardLink; exports.BlogCardSkeleton = BlogCardSkeleton; exports.BlogCard = BlogCard; exports.CaseStudyCardSkeleton = CaseStudyCardSkeleton; exports.CaseStudyCard = CaseStudyCard; exports.CustomerInterviewCardSkeleton = CustomerInterviewCardSkeleton; exports.CustomerInterviewCard = CustomerInterviewCard; exports.formatInvestorUpdatePeriod = formatInvestorUpdatePeriod; exports.InvestorUpdateCardSkeleton = InvestorUpdateCardSkeleton; exports.InvestorUpdateCard = InvestorUpdateCard; exports.OnboardingGuideCardSkeleton = OnboardingGuideCardSkeleton; exports.OnboardingGuideCard = OnboardingGuideCard; exports.RoadmapVoteButton = RoadmapVoteButton; exports.TaskTypeIcon = TaskTypeIcon; exports.RoadmapCardSkeleton = RoadmapCardSkeleton; exports.RoadmapCard = RoadmapCard; exports.ProgramCardSkeleton = ProgramCardSkeleton; exports.ProgramCard = ProgramCard;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEJOXXJJBcjs = require('./chunk-EJOXXJJB.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -51,7 +51,7 @@ function pickBadgePaletteColor({
|
|
|
51
51
|
var _jsxruntime = require('react/jsx-runtime');
|
|
52
52
|
function PaletteBadge({ text, color, className, variant = "button" }) {
|
|
53
53
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
54
|
-
|
|
54
|
+
_chunkEJOXXJJBcjs.StatusBadge,
|
|
55
55
|
{
|
|
56
56
|
text,
|
|
57
57
|
colorScheme: isBadgePaletteKey(color) ? color : "default",
|
|
@@ -204,7 +204,7 @@ var STATUS_BADGE_SCHEME = {
|
|
|
204
204
|
abandoned: "default"
|
|
205
205
|
};
|
|
206
206
|
function EmployeeEntryBadge({ children }) {
|
|
207
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
207
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEJOXXJJBcjs.StatusBadge, { text: children, colorScheme: "default", variant: "button", singleLine: true });
|
|
208
208
|
}
|
|
209
209
|
function EmployeeEntryCard({
|
|
210
210
|
entry,
|
|
@@ -217,7 +217,7 @@ function EmployeeEntryCard({
|
|
|
217
217
|
className
|
|
218
218
|
}) {
|
|
219
219
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
220
|
-
|
|
220
|
+
_chunkEJOXXJJBcjs.AdminContentCard,
|
|
221
221
|
{
|
|
222
222
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
223
223
|
placeholderUrl,
|
|
@@ -225,7 +225,7 @@ function EmployeeEntryCard({
|
|
|
225
225
|
summary: (_nullishCoalesce(entry.summary, () => ( ""))).slice(0, 140) || "No description",
|
|
226
226
|
badges: entry.status || extraBadges ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
227
227
|
entry.status ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
228
|
-
|
|
228
|
+
_chunkEJOXXJJBcjs.StatusBadge,
|
|
229
229
|
{
|
|
230
230
|
text: entry.status,
|
|
231
231
|
colorScheme: _nullishCoalesce(STATUS_BADGE_SCHEME[entry.status], () => ( "default")),
|
|
@@ -240,7 +240,7 @@ function EmployeeEntryCard({
|
|
|
240
240
|
_optionalChain([entry, 'access', _8 => _8.author, 'optionalAccess', _9 => _9.avatar_url]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
241
241
|
_chunkUR4K2NSLcjs.next_image_default,
|
|
242
242
|
{
|
|
243
|
-
src: _nullishCoalesce(
|
|
243
|
+
src: _nullishCoalesce(_chunkEJOXXJJBcjs.getProxiedImageUrl2.call(void 0, entry.author.avatar_url), () => ( entry.author.avatar_url)),
|
|
244
244
|
alt: "",
|
|
245
245
|
className: "h-[1lh] w-[1lh] shrink-0 rounded-full object-cover",
|
|
246
246
|
width: 20,
|
|
@@ -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),
|
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
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');
|
|
@@ -34,13 +34,13 @@ var _chunkHZJRERJWcjs = require('./chunk-HZJRERJW.cjs');
|
|
|
34
34
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkEX2GYIGWcjs = require('./chunk-EX2GYIGW.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkEJOXXJJBcjs = require('./chunk-EJOXXJJB.cjs');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
var _chunkEAY6ZUEScjs = require('./chunk-EAY6ZUES.cjs');
|
|
@@ -68,7 +68,7 @@ function OnboardingGuidesCatalogSkeleton() {
|
|
|
68
68
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-6 w-40 rounded bg-ods-border/70" }),
|
|
69
69
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "h-5 w-8 rounded-full bg-ods-text-secondary/20" })
|
|
70
70
|
] }),
|
|
71
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
71
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "flex flex-col gap-4", children: Array.from({ length: cardCount }).map((_, cardIdx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEJOXXJJBcjs.OnboardingGuideCardSkeleton, { size: "catalog" }) }, cardIdx)) })
|
|
72
72
|
] }, sectionIdx)) })
|
|
73
73
|
] });
|
|
74
74
|
}
|
|
@@ -92,10 +92,10 @@ function OnboardingGuidesCatalogView({
|
|
|
92
92
|
const sectionValue = selfFetch ? _nullishCoalesce(searchParams.get("section"), () => ( "")) : initialSection;
|
|
93
93
|
const activeSection = sectionValue || "all";
|
|
94
94
|
const guidesQs = sectionValue ? `?section=${encodeURIComponent(sectionValue)}` : "";
|
|
95
|
-
const guidesRes =
|
|
95
|
+
const guidesRes = _chunkEX2GYIGWcjs.useSelfFetch.call(void 0,
|
|
96
96
|
selfFetch && guidesEndpoint ? `${guidesEndpoint}${guidesQs}` : null
|
|
97
97
|
);
|
|
98
|
-
const sectionsRes =
|
|
98
|
+
const sectionsRes = _chunkEX2GYIGWcjs.useSelfFetch.call(void 0, selfFetch && sectionsEndpoint ? sectionsEndpoint : null);
|
|
99
99
|
const guides = _react.useMemo.call(void 0, () => _nullishCoalesce(_nullishCoalesce(initialGuides, () => ( _optionalChain([guidesRes, 'access', _2 => _2.data, 'optionalAccess', _3 => _3.data]))), () => ( [])), [initialGuides, _optionalChain([guidesRes, 'access', _4 => _4.data, 'optionalAccess', _5 => _5.data])]);
|
|
100
100
|
const sections = _react.useMemo.call(void 0,
|
|
101
101
|
() => _nullishCoalesce(initialSections, () => ( (Array.isArray(sectionsRes.data) ? sectionsRes.data : []))),
|
|
@@ -138,25 +138,25 @@ 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,
|
|
152
152
|
platforms: guide.onboarding_guide_platforms
|
|
153
153
|
});
|
|
154
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
154
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEJOXXJJBcjs.OnboardingGuideCard, { guide, href: cta.href, targetPlatform: cta.targetPlatform, size: "catalog" });
|
|
155
155
|
};
|
|
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,23 +220,23 @@ 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
|
-
const { data: guide, isLoading, error, reload } =
|
|
227
|
+
const { data: guide, isLoading, error, reload } = _chunkEX2GYIGWcjs.useSelfFetch.call(void 0, url, { initialData });
|
|
228
228
|
const { ref: videoWarmupRef } = _chunkHZJRERJWcjs.useVideoWarmup.call(void 0, {
|
|
229
229
|
videoUrl: _optionalChain([guide, 'optionalAccess', _8 => _8.main_video_url]),
|
|
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(
|
|
237
237
|
// Match the loaded page's top offset (TitleBlock's
|
|
238
238
|
// `pt-[var(--spacing-system-l)]`) so content doesn't jump on load.
|
|
239
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
239
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVRNNIV5Ycjs.DetailPageSkeleton, { bare: true, showImageGallery: false }) })
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
const { captionsUrl, highlightCaptionsUrl } = captions.forEntity("onboarding_guide", guide);
|
|
@@ -244,13 +244,13 @@ 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,
|
|
251
251
|
platforms: g.onboarding_guide_platforms
|
|
252
252
|
});
|
|
253
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
253
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEJOXXJJBcjs.OnboardingGuideCard, { guide: g, href: cta.href, targetPlatform: cta.targetPlatform });
|
|
254
254
|
};
|
|
255
255
|
const renderRelatedCardFn = _nullishCoalesce(renderRelatedCard, () => ( defaultRenderRelatedCard));
|
|
256
256
|
return renderShell(
|
|
@@ -262,9 +262,9 @@ 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
|
{
|
|
269
269
|
author: guide.author,
|
|
270
270
|
authorHref,
|
|
@@ -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,17 +296,17 @@ 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,
|
|
303
303
|
showTitle: false,
|
|
304
|
-
profile:
|
|
304
|
+
profile: _chunkEJOXXJJBcjs.toStripProfile.call(void 0, guide.author),
|
|
305
305
|
href: `/onboarding-guides/${guide.slug}`
|
|
306
306
|
}
|
|
307
307
|
),
|
|
308
308
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
309
|
-
|
|
309
|
+
_chunkVRNNIV5Ycjs.ArticleAuthorByline,
|
|
310
310
|
{
|
|
311
311
|
author: _nullishCoalesce(_optionalChain([guide, 'access', _13 => _13.author, 'optionalAccess', _14 => _14.full_name]), () => ( null)),
|
|
312
312
|
avatar: _optionalChain([guide, 'access', _15 => _15.author, 'optionalAccess', _16 => _16.avatar_url]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk77SD7RXYcjs = require('./chunk-77SD7RXY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
@@ -116,7 +116,7 @@ function PersistentPaginationWrapper({
|
|
|
116
116
|
},
|
|
117
117
|
"aria-hidden": isPaginationDisabled,
|
|
118
118
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
119
|
-
|
|
119
|
+
_chunk77SD7RXYcjs.UnifiedPagination,
|
|
120
120
|
{
|
|
121
121
|
currentPage: displayCurrentPage,
|
|
122
122
|
totalPages: displayTotalPages,
|
|
@@ -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');
|
|
@@ -57,7 +57,7 @@ var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkEJOXXJJBcjs = require('./chunk-EJOXXJJB.cjs');
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
var _chunkFTTLBMHUcjs = require('./chunk-FTTLBMHU.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: [
|
|
@@ -423,7 +423,7 @@ function OnboardingStepCard({
|
|
|
423
423
|
onSkip();
|
|
424
424
|
};
|
|
425
425
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
426
|
-
|
|
426
|
+
_chunkEJOXXJJBcjs.InteractiveCard,
|
|
427
427
|
{
|
|
428
428
|
clickable: false,
|
|
429
429
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
@@ -449,7 +449,7 @@ function OnboardingStepCard({
|
|
|
449
449
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[32px] w-[100px] animate-pulse rounded-[6px] bg-ods-border" }),
|
|
450
450
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[32px] w-[120px] animate-pulse rounded-[6px] bg-ods-border" })
|
|
451
451
|
] }) : isCompleted ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
452
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEJOXXJJBcjs.StatusBadge, { text: "COMPLETED", variant: "card", colorScheme: "success" }),
|
|
453
453
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
454
454
|
_chunkAZL332TKcjs.Button,
|
|
455
455
|
{
|
|
@@ -460,7 +460,7 @@ function OnboardingStepCard({
|
|
|
460
460
|
children: step.completedText
|
|
461
461
|
}
|
|
462
462
|
)
|
|
463
|
-
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
463
|
+
] }) : isSkipped ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEJOXXJJBcjs.StatusBadge, { text: "SKIPPED", variant: "card", colorScheme: "default" }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
464
464
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAZL332TKcjs.Button, { variant: "outline", onClick: handleSkip, children: "Skip Step" }),
|
|
465
465
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAZL332TKcjs.Button, { variant: "accent", onClick: handleAction, disabled: isProcessing, leftIcon: step.actionIcon("black"), children: step.actionText })
|
|
466
466
|
] })
|
|
@@ -577,7 +577,7 @@ function OnboardingWalkthrough({
|
|
|
577
577
|
const isAllComplete = allStepsComplete(steps);
|
|
578
578
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, "w-full space-y-4", className), children: [
|
|
579
579
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start justify-between gap-3 md:flex-row md:items-center md:gap-0", children: [
|
|
580
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className:
|
|
580
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: _chunkEJOXXJJBcjs.SECTION_HEADING_CLASS, children: _chunkEJOXXJJBcjs.accentSentenceMarks.call(void 0, title) }),
|
|
581
581
|
isLoadingCompletion ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-[48px] w-full animate-pulse rounded-[6px] bg-ods-border md:w-[160px]" }) : isAllComplete ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAZL332TKcjs.Button, { variant: "accent", onClick: handleDismiss, className: "w-full md:w-auto", children: "Close Onboarding" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAZL332TKcjs.Button, { variant: "outline", onClick: handleDismiss, className: "w-full md:w-auto", children: "Skip Onboarding" })
|
|
582
582
|
] }),
|
|
583
583
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk3ATAYP36cjs.cn.call(void 0, spacing), children: steps.map((step) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|