@flamingo-stack/openframe-frontend-core 0.0.766 → 0.0.768
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-REJMFXGD.cjs → chunk-2MND64QJ.cjs} +46 -46
- package/dist/{chunk-F7R3U5EN.cjs → chunk-2TS3FEPQ.cjs} +4 -4
- package/dist/{chunk-WO3XO27C.cjs → chunk-2ZYCYLPL.cjs} +5 -5
- package/dist/{chunk-DGNBXZXT.cjs → chunk-4EJU462O.cjs} +57 -30
- package/dist/{chunk-JKQVKWLB.cjs → chunk-57KIBZFQ.cjs} +76 -76
- package/dist/{chunk-VYYLYZUC.cjs → chunk-5O6PHVKO.cjs} +4 -4
- package/dist/{chunk-XZ6DKGT4.cjs → chunk-5QP3K2CE.cjs} +5 -5
- package/dist/{chunk-NJMZ3N7Q.cjs → chunk-6EEE76VU.cjs} +24 -24
- package/dist/{chunk-YRFWOJF4.cjs → chunk-BLTNKLAX.cjs} +4 -4
- package/dist/{chunk-7U3ELNGC.cjs → chunk-DE7U72NZ.cjs} +26 -26
- package/dist/{chunk-GTONIRJU.cjs → chunk-EHJE3UWZ.cjs} +10 -16
- package/dist/{chunk-HNQRY6RU.cjs → chunk-GGORS7G6.cjs} +13 -13
- package/dist/{chunk-FZB4RMRK.cjs → chunk-HQF62LAU.cjs} +33 -33
- package/dist/{chunk-JTSUAHDL.cjs → chunk-HY6BCZH7.cjs} +4 -2
- package/dist/{chunk-MPTMT773.cjs → chunk-LJT2KRE2.cjs} +14 -14
- package/dist/{chunk-NBVZIHGS.cjs → chunk-MYA6NR2C.cjs} +2 -2
- package/dist/{chunk-NF3PBWDJ.cjs → chunk-NPVYID2L.cjs} +80 -80
- package/dist/{chunk-RTBYQWAV.cjs → chunk-OEVNX4OR.cjs} +44 -44
- package/dist/{chunk-UW7UWUZU.cjs → chunk-OGHLIUF4.cjs} +41 -41
- package/dist/{chunk-JGWN6GH5.cjs → chunk-PFY23KN7.cjs} +6 -6
- package/dist/{chunk-ZRDMGMY7.cjs → chunk-QS4G7CHU.cjs} +2 -2
- package/dist/{chunk-7XFVUUVZ.cjs → chunk-S4QS5E5A.cjs} +12 -12
- package/dist/{chunk-VRDHAR3X.cjs → chunk-STHQJNND.cjs} +517 -551
- package/dist/{chunk-INI4ADPT.cjs → chunk-U6UIG4OP.cjs} +31 -31
- package/dist/{chunk-7VI7TOGI.cjs → chunk-UBPSA3RM.cjs} +219 -181
- package/dist/{chunk-K3IHNXR4.cjs → chunk-VADRKMLE.cjs} +3 -3
- package/dist/{chunk-AAECWUNV.cjs → chunk-VFUMM6JC.cjs} +19 -11
- package/dist/{chunk-X7ECVSVN.cjs → chunk-VVBRYOSI.cjs} +19 -19
- package/dist/{chunk-ZV45VS6K.cjs → chunk-XI2CHCOD.cjs} +34 -43
- package/dist/{chunk-RMUSPTJN.cjs → chunk-ZVNL5OK6.cjs} +5 -5
- package/dist/{chunk-YL6ZB2SR.cjs → chunk-ZXFOMNI5.cjs} +183 -183
- package/dist/{cloud-tenants-U2KMEIO7.cjs → cloud-tenants-I5HABFNZ.cjs} +13 -13
- package/dist/components/case-studies/index.cjs +29 -29
- package/dist/components/case-studies/index.d.ts +1 -1
- package/dist/components/case-studies/index.d.ts.map +1 -1
- package/dist/components/case-studies/index.js +5 -1
- package/dist/components/chat/entity-cards/campaign-card-admin.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.js +9 -1
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +9 -9
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +18 -4
- package/dist/components/contact/index.cjs +14 -14
- package/dist/components/docs/index.cjs +17 -17
- package/dist/components/embeds/index.cjs +14 -14
- package/dist/components/embeds/rich-markdown-runtime.d.ts +4 -1
- package/dist/components/embeds/rich-markdown-runtime.d.ts.map +1 -1
- package/dist/components/embeds/rich-markdown-runtime.js +6 -5
- package/dist/components/faq/index.cjs +15 -15
- package/dist/components/features/cards-strip.d.ts.map +1 -1
- package/dist/components/features/command-box.d.ts.map +1 -1
- package/dist/components/features/command-box.js +2 -19
- package/dist/components/features/index.cjs +13 -13
- package/dist/components/features/paths-display.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-desktop-chat-message-row.js +1 -10
- package/dist/components/features/walkthrough-video.d.ts.map +1 -1
- package/dist/components/features/walkthrough-video.js +3 -1
- package/dist/components/help-center-pages/index.cjs +98 -98
- package/dist/components/icon-display.d.ts.map +1 -1
- package/dist/components/icon-display.js +9 -1
- package/dist/components/index.cjs +74 -74
- package/dist/components/interactive-wrapper.d.ts.map +1 -1
- package/dist/components/interactive-wrapper.js +7 -1
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +8 -1
- package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +73 -73
- package/dist/components/navigation/index.cjs +16 -16
- package/dist/components/onboarding-guides/index.cjs +16 -16
- package/dist/components/product-demo/index.cjs +24 -24
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/results-count.d.ts.map +1 -1
- package/dist/components/results-count.js +2 -2
- package/dist/components/tickets/index.cjs +19 -19
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/avatar-stack.js +17 -9
- package/dist/components/ui/cursor-pagination.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-row-count.js +1 -1
- package/dist/components/ui/feature-card.d.ts.map +1 -1
- package/dist/components/ui/feature-list.d.ts.map +1 -1
- package/dist/components/ui/feature-list.js +7 -21
- package/dist/components/ui/incident-feed.d.ts +1 -1
- package/dist/components/ui/incident-feed.d.ts.map +1 -1
- package/dist/components/ui/incident-feed.js +1 -7
- package/dist/components/ui/index.cjs +13 -13
- package/dist/components/ui/leader-row.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/embed-overrides.d.ts.map +1 -1
- package/dist/components/ui/markdown/rich/embed-overrides.js +10 -1
- package/dist/components/ui/product-screen-frame.d.ts.map +1 -1
- package/dist/components/ui/product-screen-frame.js +4 -13
- package/dist/components/ui/status-badge.d.ts.map +1 -1
- package/dist/components/ui/status-badge.js +5 -1
- package/dist/components/ui/status-line.d.ts.map +1 -1
- package/dist/components/ui/status-line.js +1 -7
- package/dist/components/ui/strip-card.d.ts.map +1 -1
- package/dist/components/ui/tag.d.ts.map +1 -1
- package/dist/{devices-2D3XSIIE.cjs → devices-OS26UG7Y.cjs} +14 -14
- package/dist/{embeddable-chat-YL6ZSTDJ.cjs → embeddable-chat-BXEK3SPJ.cjs} +83 -83
- package/dist/index.cjs +22 -18
- package/dist/{knowledge-AJ36PMK2.cjs → knowledge-JD2OFKEL.cjs} +14 -14
- package/dist/{logs-DNE44ACE.cjs → logs-KGKNFROP.cjs} +21 -21
- package/dist/{policies-AJHSP6ZY.cjs → policies-J2XL6XQK.cjs} +17 -17
- package/dist/{remote-session-PPA5SXX7.cjs → remote-session-RHQ2K27H.cjs} +7 -7
- package/dist/{scripts-4YO2QL36.cjs → scripts-MJONVIWL.cjs} +20 -20
- package/dist/{software-update-KMI2EOO3.cjs → software-update-VSMTHJR4.cjs} +17 -17
- package/dist/{tickets-board-G3WBH4SV.cjs → tickets-board-YT25IX3O.cjs} +8 -8
- package/dist/utils/after-page-load.d.ts +8 -0
- package/dist/utils/after-page-load.d.ts.map +1 -0
- package/dist/utils/after-page-load.js +24 -0
- package/dist/utils/format.d.ts +13 -3
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +4 -2
- package/dist/utils/index.cjs +27 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -0
- package/package.json +1 -1
- package/src/components/case-studies/entity-quotes-panel.tsx +18 -18
- package/src/components/case-studies/index.ts +8 -1
- package/src/components/chat/entity-cards/campaign-card-admin.tsx +1 -3
- package/src/components/chat/entity-cards/investor-update-card.tsx +6 -1
- package/src/components/chat/hooks/use-ask-prompts.ts +1 -2
- package/src/components/chat/index.ts +22 -5
- package/src/components/embeds/rich-markdown-runtime.tsx +10 -6
- package/src/components/features/cards-strip.tsx +3 -2
- package/src/components/features/command-box.tsx +2 -11
- package/src/components/features/paths-display.tsx +4 -1
- package/src/components/features/remote-session/remote-desktop-chat-message-row.tsx +1 -6
- package/src/components/features/walkthrough-video.tsx +8 -1
- package/src/components/icon-display.tsx +6 -1
- package/src/components/interactive-wrapper.tsx +4 -1
- package/src/components/layout/page-heading.tsx +15 -3
- package/src/components/meeting-scheduler/directory.tsx +2 -1
- package/src/components/results-count.tsx +3 -2
- package/src/components/ui/avatar-stack.tsx +5 -1
- package/src/components/ui/button/button-styles.ts +0 -1
- package/src/components/ui/cursor-pagination.tsx +8 -1
- package/src/components/ui/data-table/data-table-row-count.tsx +1 -1
- package/src/components/ui/feature-card.tsx +2 -10
- package/src/components/ui/feature-list.tsx +2 -8
- package/src/components/ui/incident-feed.tsx +2 -13
- package/src/components/ui/leader-row.tsx +0 -1
- package/src/components/ui/markdown/rich/embed-overrides.tsx +11 -1
- package/src/components/ui/product-screen-frame.tsx +1 -6
- package/src/components/ui/status-badge.tsx +5 -1
- package/src/components/ui/status-line.tsx +1 -4
- package/src/components/ui/strip-card.tsx +1 -3
- package/src/components/ui/tag.tsx +3 -1
- package/src/utils/after-page-load.ts +30 -0
- package/src/utils/format.ts +16 -4
- package/src/utils/index.ts +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkQS4G7CHUcjs = require('./chunk-QS4G7CHU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ var _chunkZRDMGMY7cjs = require('./chunk-ZRDMGMY7.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkHQF62LAUcjs = require('./chunk-HQF62LAU.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -39,7 +39,7 @@ var _chunkFZB4RMRKcjs = require('./chunk-FZB4RMRK.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunk4EJU462Ocjs = require('./chunk-4EJU462O.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
@@ -452,7 +452,7 @@ function programEntry(configKey) {
|
|
|
452
452
|
// Hosts are drawn only for a type whose cards show them (its config's `cardShowsHosts`): elsewhere a record may
|
|
453
453
|
// have none.
|
|
454
454
|
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
455
|
-
|
|
455
|
+
_chunk4EJU462Ocjs.ProgramCardSkeleton,
|
|
456
456
|
{
|
|
457
457
|
size: size === "sm" ? "sm" : "default",
|
|
458
458
|
media: configKey === "event" ? EVENT_CARD_SKELETON_MEDIA : 0,
|
|
@@ -464,7 +464,7 @@ function programEntry(configKey) {
|
|
|
464
464
|
const config = _optionalChain([ctx, 'access', _5 => _5.extras, 'optionalAccess', _6 => _6.programConfigs, 'optionalAccess', _7 => _7[configKey]]);
|
|
465
465
|
if (!config) return null;
|
|
466
466
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
467
|
-
|
|
467
|
+
_chunk4EJU462Ocjs.ProgramCard,
|
|
468
468
|
{
|
|
469
469
|
config,
|
|
470
470
|
item,
|
|
@@ -481,10 +481,10 @@ function programEntry(configKey) {
|
|
|
481
481
|
}
|
|
482
482
|
function roadmapEntry(cardType) {
|
|
483
483
|
return cardEntry({
|
|
484
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
484
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.RoadmapCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
485
485
|
decode: decodeRoadmapRow,
|
|
486
486
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
487
|
-
|
|
487
|
+
_chunk4EJU462Ocjs.RoadmapCard,
|
|
488
488
|
{
|
|
489
489
|
item,
|
|
490
490
|
href: ctx.href,
|
|
@@ -501,10 +501,10 @@ function roadmapEntry(cardType) {
|
|
|
501
501
|
}
|
|
502
502
|
var RELATED_CARD_REGISTRY = {
|
|
503
503
|
blog_post_existing: cardEntry({
|
|
504
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
504
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.BlogCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
505
505
|
decode: decodeBlogRow,
|
|
506
506
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
507
|
-
|
|
507
|
+
_chunk4EJU462Ocjs.BlogCard,
|
|
508
508
|
{
|
|
509
509
|
post,
|
|
510
510
|
size: ctx.legacySize,
|
|
@@ -516,10 +516,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
516
516
|
)
|
|
517
517
|
}),
|
|
518
518
|
case_study: cardEntry({
|
|
519
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
519
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.CaseStudyCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
520
520
|
decode: decodeCaseStudyRow,
|
|
521
521
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
522
|
-
|
|
522
|
+
_chunk4EJU462Ocjs.CaseStudyCard,
|
|
523
523
|
{
|
|
524
524
|
study,
|
|
525
525
|
size: ctx.legacySize,
|
|
@@ -531,10 +531,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
531
531
|
)
|
|
532
532
|
}),
|
|
533
533
|
customer_interview: cardEntry({
|
|
534
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
534
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.CustomerInterviewCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
535
535
|
decode: decodeCustomerInterviewRow,
|
|
536
536
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
537
|
-
|
|
537
|
+
_chunk4EJU462Ocjs.CustomerInterviewCard,
|
|
538
538
|
{
|
|
539
539
|
interview,
|
|
540
540
|
size: ctx.legacySize,
|
|
@@ -552,13 +552,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
552
552
|
* record, and the three props the rail sets itself are read off it.
|
|
553
553
|
*/
|
|
554
554
|
product_release: cardEntry({
|
|
555
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
555
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.ProductReleaseCardSkeleton, { size: size === "sm" ? "sm" : "lg" }),
|
|
556
556
|
decode: asRecord,
|
|
557
557
|
render: (release, ctx) => {
|
|
558
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _8 => _8.extras, 'optionalAccess', _9 => _9.buildProductReleaseCardProps]), () => (
|
|
558
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _8 => _8.extras, 'optionalAccess', _9 => _9.buildProductReleaseCardProps]), () => ( _chunk4EJU462Ocjs.buildProductReleaseCardProps));
|
|
559
559
|
const releaseProps = buildReleaseProps(release);
|
|
560
560
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
561
|
-
|
|
561
|
+
_chunkHQF62LAUcjs.ProductReleaseCard,
|
|
562
562
|
{
|
|
563
563
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
564
564
|
title: str(release, "title"),
|
|
@@ -574,10 +574,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
574
574
|
webinar: programEntry("webinar"),
|
|
575
575
|
event: programEntry("event"),
|
|
576
576
|
investor_update: cardEntry({
|
|
577
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
577
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.InvestorUpdateCardSkeleton, { size: size === "sm" ? "sm" : "default" }),
|
|
578
578
|
decode: decodeInvestorUpdateRow,
|
|
579
579
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
580
|
-
|
|
580
|
+
_chunk4EJU462Ocjs.InvestorUpdateCard,
|
|
581
581
|
{
|
|
582
582
|
update,
|
|
583
583
|
size: ctx.legacySize,
|
|
@@ -592,10 +592,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
592
592
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
593
593
|
* section" rail, not this full-width row. */
|
|
594
594
|
onboarding_guide: cardEntry({
|
|
595
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
595
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4EJU462Ocjs.OnboardingGuideCardSkeleton, { size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
596
596
|
decode: decodeOnboardingGuideRow,
|
|
597
597
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
598
|
-
|
|
598
|
+
_chunk4EJU462Ocjs.OnboardingGuideCard,
|
|
599
599
|
{
|
|
600
600
|
guide,
|
|
601
601
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -612,10 +612,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
612
612
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
613
613
|
* card in a dead <a>. */
|
|
614
614
|
what_i_shipped: cardEntry({
|
|
615
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
615
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQF62LAUcjs.WhatIShippedCardSkeleton, {}),
|
|
616
616
|
decode: decodeEmployeeEntryRow,
|
|
617
617
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
618
|
-
|
|
618
|
+
_chunkHQF62LAUcjs.WhatIShippedCard,
|
|
619
619
|
{
|
|
620
620
|
entry,
|
|
621
621
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -625,10 +625,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
625
625
|
}),
|
|
626
626
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
627
627
|
how_i_work: cardEntry({
|
|
628
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
628
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQF62LAUcjs.HowIWorkCardSkeleton, {}),
|
|
629
629
|
decode: decodeEmployeeEntryRow,
|
|
630
630
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
631
|
-
|
|
631
|
+
_chunkHQF62LAUcjs.HowIWorkCard,
|
|
632
632
|
{
|
|
633
633
|
entry,
|
|
634
634
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -638,10 +638,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
638
638
|
}),
|
|
639
639
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
640
640
|
ai_prompt: cardEntry({
|
|
641
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
641
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHQF62LAUcjs.AiPromptCardSkeleton, {}),
|
|
642
642
|
decode: decodeEmployeeEntryRow,
|
|
643
643
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
644
|
-
|
|
644
|
+
_chunkHQF62LAUcjs.AiPromptCard,
|
|
645
645
|
{
|
|
646
646
|
entry,
|
|
647
647
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -662,7 +662,7 @@ function DefaultLinkPropsProvider({
|
|
|
662
662
|
children
|
|
663
663
|
}) {
|
|
664
664
|
if (!href) return children(null);
|
|
665
|
-
const newTab =
|
|
665
|
+
const newTab = _chunk4EJU462Ocjs.decideNewTab.call(void 0, { href, targetPlatform, currentSource: "" });
|
|
666
666
|
return children(newTab ? { href, target: "_blank", rel: "noopener noreferrer" } : { href });
|
|
667
667
|
}
|
|
668
668
|
function defaultResolveHref(ref) {
|
|
@@ -720,9 +720,9 @@ function useGroupItems(type, refs, buildUrl) {
|
|
|
720
720
|
const url = ids.length > 0 ? buildUrl(type, ids) : null;
|
|
721
721
|
const [pages, setPages] = _react.useState.call(void 0, () => /* @__PURE__ */ new Map());
|
|
722
722
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
723
|
-
const { data, dataUrl, error } =
|
|
723
|
+
const { data, dataUrl, error } = _chunkHQF62LAUcjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
724
724
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
725
|
-
setPages(new Map(pages).set(dataUrl,
|
|
725
|
+
setPages(new Map(pages).set(dataUrl, _chunk4EJU462Ocjs.extractItems.call(void 0, data)));
|
|
726
726
|
}
|
|
727
727
|
if (url === null) return { items: null, isLoading: false };
|
|
728
728
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -731,7 +731,7 @@ function gridClassFor(columns) {
|
|
|
731
731
|
return columns === 3 ? "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" : "grid grid-cols-1 sm:grid-cols-2 gap-6";
|
|
732
732
|
}
|
|
733
733
|
function resolveGroupConfig(type) {
|
|
734
|
-
return _nullishCoalesce(
|
|
734
|
+
return _nullishCoalesce(_chunkHQF62LAUcjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
735
735
|
label: type,
|
|
736
736
|
order: 999,
|
|
737
737
|
layout: "grid",
|
|
@@ -756,15 +756,15 @@ function gridFoldClass(index, columns) {
|
|
|
756
756
|
return "hidden";
|
|
757
757
|
}
|
|
758
758
|
function GroupHeading({ type }) {
|
|
759
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
759
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunkHQF62LAUcjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
760
760
|
}
|
|
761
761
|
function orderRailTypes(types, entityType) {
|
|
762
|
-
let ordered =
|
|
762
|
+
let ordered = _chunkHQF62LAUcjs.orderContentRefTypes.call(void 0, types);
|
|
763
763
|
if (entityType) {
|
|
764
|
-
const canonicalEntityType =
|
|
765
|
-
const sameType = ordered.filter((t) =>
|
|
764
|
+
const canonicalEntityType = _chunk4EJU462Ocjs.canonicalContentRefType.call(void 0, entityType);
|
|
765
|
+
const sameType = ordered.filter((t) => _chunk4EJU462Ocjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
766
766
|
if (sameType.length > 0) {
|
|
767
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
767
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunk4EJU462Ocjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
return ordered;
|
|
@@ -794,7 +794,7 @@ function ContentGroup({
|
|
|
794
794
|
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, GROUP_PAGE_SIZE);
|
|
795
795
|
const pageRefs = refs.slice((page - 1) * GROUP_PAGE_SIZE, page * GROUP_PAGE_SIZE);
|
|
796
796
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl);
|
|
797
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
797
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQS4G7CHUcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
798
798
|
_react.useEffect.call(void 0, () => {
|
|
799
799
|
onLoadingChange(type, isLoading);
|
|
800
800
|
return () => onLoadingChange(type, false);
|
|
@@ -812,7 +812,7 @@ function ContentGroup({
|
|
|
812
812
|
}
|
|
813
813
|
if (!items) return null;
|
|
814
814
|
const rowKey = (it) => {
|
|
815
|
-
const extracted =
|
|
815
|
+
const extracted = _chunk4EJU462Ocjs.extractItemId.call(void 0, type, it);
|
|
816
816
|
if (extracted !== null) return extracted;
|
|
817
817
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
818
818
|
};
|
|
@@ -881,11 +881,11 @@ function RelatedContentSection({
|
|
|
881
881
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
882
882
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
883
883
|
};
|
|
884
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
884
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunkHQF62LAUcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
885
885
|
apiBaseUrl,
|
|
886
886
|
extraParams: { authorId, ...typeFilterParams }
|
|
887
887
|
}) : null;
|
|
888
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
888
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunkHQF62LAUcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
889
889
|
apiBaseUrl,
|
|
890
890
|
entityType,
|
|
891
891
|
entityId,
|
|
@@ -902,7 +902,7 @@ function RelatedContentSection({
|
|
|
902
902
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
903
903
|
[initialItems, suggestionsDisabled]
|
|
904
904
|
);
|
|
905
|
-
const { data, isLoading } =
|
|
905
|
+
const { data, isLoading } = _chunkHQF62LAUcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
906
906
|
const inScope = _chunkXFRBEXQNcjs.useLoadingScope.call(void 0, );
|
|
907
907
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
908
908
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -915,7 +915,7 @@ function RelatedContentSection({
|
|
|
915
915
|
});
|
|
916
916
|
}, []);
|
|
917
917
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
918
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
918
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunk4EJU462Ocjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
919
919
|
[buildListUrl2, apiBaseUrl]
|
|
920
920
|
);
|
|
921
921
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _13 => _13.refs]))), () => ( []));
|
|
@@ -939,7 +939,7 @@ function RelatedContentSection({
|
|
|
939
939
|
}
|
|
940
940
|
if (!showWhenEmpty) return null;
|
|
941
941
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
942
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
942
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
943
943
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
944
944
|
] });
|
|
945
945
|
}
|
|
@@ -965,7 +965,7 @@ function RelatedContentSection({
|
|
|
965
965
|
);
|
|
966
966
|
}
|
|
967
967
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
968
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
968
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) }),
|
|
969
969
|
orderedTypes.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
970
970
|
ContentGroup,
|
|
971
971
|
{
|
|
@@ -994,7 +994,7 @@ function RelatedContentSectionSkeleton({
|
|
|
994
994
|
adminCampaignCard,
|
|
995
995
|
extras
|
|
996
996
|
}) {
|
|
997
|
-
const canonicalEntityType = entityType ?
|
|
997
|
+
const canonicalEntityType = entityType ? _chunk4EJU462Ocjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
998
998
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
999
999
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }),
|
|
1000
1000
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: Math.max(...GRID_COLUMNS_BY_STEP[columns]) * RAIL_GRID_FOLD_ROWS }, (_, i) => (
|
|
@@ -1003,11 +1003,11 @@ function RelatedContentSectionSkeleton({
|
|
|
1003
1003
|
)) })
|
|
1004
1004
|
] }) : null;
|
|
1005
1005
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkWEANWBJHcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
1006
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ?
|
|
1006
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunk4EJU462Ocjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXFRBEXQNcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
1007
1007
|
unknownGroup,
|
|
1008
1008
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
1009
1009
|
const config = resolveGroupConfig(type);
|
|
1010
|
-
const sameType = canonicalEntityType !== null &&
|
|
1010
|
+
const sameType = canonicalEntityType !== null && _chunk4EJU462Ocjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
1011
1011
|
const isList = config.layout === "list";
|
|
1012
1012
|
const fold = isList ? RAIL_LIST_FOLD : Math.max(...GRID_COLUMNS_BY_STEP[columns]) * RAIL_GRID_FOLD_ROWS;
|
|
1013
1013
|
const count = Math.min(
|
|
@@ -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 _chunkUBPSA3RMcjs = require('./chunk-UBPSA3RM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZXFOMNI5cjs = require('./chunk-ZXFOMNI5.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkDGFDBPO7cjs = require('./chunk-DGFDBPO7.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 = _chunkZXFOMNI5cjs.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 = _chunkUBPSA3RMcjs.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 _chunkSTHQJNNDcjs = require('./chunk-STHQJNND.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -14,7 +14,7 @@ var _chunkM7ZSKWT3cjs = require('./chunk-M7ZSKWT3.cjs');
|
|
|
14
14
|
var _chunkTZ4GKUO2cjs = require('./chunk-TZ4GKUO2.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHY6BCZH7cjs = require('./chunk-HY6BCZH7.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkTF5D5MNOcjs = require('./chunk-TF5D5MNO.cjs');
|
|
@@ -29,7 +29,7 @@ function FileDownloadCard({ fileName, mimeType, fileSize, fileUrl }) {
|
|
|
29
29
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-text-primary text-h3", children: fileName || "File" }),
|
|
30
30
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-2 flex items-center justify-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
31
31
|
mimeType && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: mimeType }),
|
|
32
|
-
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children:
|
|
32
|
+
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkHY6BCZH7cjs.formatFileSize.call(void 0, fileSize) })
|
|
33
33
|
] })
|
|
34
34
|
] }),
|
|
35
35
|
fileUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTF5D5MNOcjs.Button, { variant: "accent", href: fileUrl, openInNewTab: true, leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Download, { className: "h-4 w-4" }), children: "Download File" })
|
|
@@ -48,7 +48,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkSTHQJNNDcjs.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
|
+
_chunkSTHQJNNDcjs.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,
|