@flamingo-stack/openframe-frontend-core 0.0.854 → 0.0.856
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/{case-study-card-WP5Z234Q.cjs → case-study-card-6VAMNHLU.cjs} +8 -8
- package/dist/{chunk-ZDPPNHA2.cjs → chunk-2BTEERLH.cjs} +3 -3
- package/dist/{chunk-FBANHIAG.cjs → chunk-2JCA7BRK.cjs} +19 -19
- package/dist/{chunk-GVHCQRUE.cjs → chunk-2P72KAG5.cjs} +23 -23
- package/dist/{chunk-YY3WP2YQ.cjs → chunk-3GJ75OUL.cjs} +183 -183
- package/dist/{chunk-FJXSKMQJ.cjs → chunk-4H3J57AN.cjs} +25 -25
- package/dist/{chunk-6GWRPW6B.cjs → chunk-5NK3FUHY.cjs} +4 -4
- package/dist/{chunk-DLTPSP5F.cjs → chunk-5TYG5JNB.cjs} +2 -2
- package/dist/{chunk-63ZV3UGG.cjs → chunk-65NMKAPQ.cjs} +12 -12
- package/dist/{chunk-IGVAPIEW.cjs → chunk-6C4OR4MZ.cjs} +2 -2
- package/dist/{chunk-GG466XFQ.cjs → chunk-6DMH4GXN.cjs} +30 -5
- package/dist/{chunk-2IJMHBOK.cjs → chunk-77GX573I.cjs} +9 -9
- package/dist/{chunk-O3EKOXFZ.cjs → chunk-AYMY2VNB.cjs} +37 -43
- package/dist/{chunk-JKBNK5U6.cjs → chunk-D6GEMVHD.cjs} +3 -3
- package/dist/{chunk-SSKMGH5O.cjs → chunk-DXVGGWLG.cjs} +10 -10
- package/dist/{chunk-S5P6CF5R.cjs → chunk-E5OQHFM6.cjs} +54 -54
- package/dist/{chunk-5TXE7BXT.cjs → chunk-EOUEUYCQ.cjs} +54 -54
- package/dist/{chunk-EIHMPQRQ.cjs → chunk-ESGE7CUX.cjs} +14 -14
- package/dist/{chunk-ETZFBB7O.cjs → chunk-EXQSIX2I.cjs} +4 -4
- package/dist/{chunk-3WXHPD6N.cjs → chunk-F33EAPD2.cjs} +124 -124
- package/dist/{chunk-4SSJ3T3N.cjs → chunk-GK577ZLJ.cjs} +3 -13
- package/dist/{chunk-ETQNMR2K.cjs → chunk-GTUQGVXH.cjs} +8 -8
- package/dist/{chunk-7MOBD44H.cjs → chunk-HGM7WDJT.cjs} +28 -28
- package/dist/{chunk-VMAOZA2V.cjs → chunk-HML3JUXF.cjs} +324 -322
- package/dist/{chunk-4O5N5CGK.cjs → chunk-J3CFRGZ2.cjs} +17 -17
- package/dist/{chunk-LQDAB5V5.cjs → chunk-KZAQPRTA.cjs} +9 -11
- package/dist/{chunk-6DCUGIGU.cjs → chunk-LSLRJJFP.cjs} +2 -2
- package/dist/{chunk-ONYANAMA.cjs → chunk-MX52LZ6M.cjs} +6 -6
- package/dist/{chunk-OH5TXFRR.cjs → chunk-O4CPT3RK.cjs} +7 -7
- package/dist/{chunk-BAA3YCLT.cjs → chunk-OW5MQKCI.cjs} +103 -103
- package/dist/{chunk-5HMENXSR.cjs → chunk-PCQ2HKU3.cjs} +5 -5
- package/dist/{chunk-D2XGRWPW.cjs → chunk-QLFNMWBP.cjs} +90 -90
- package/dist/{chunk-UPQ4MAR7.cjs → chunk-QZXCUY36.cjs} +53 -53
- package/dist/{chunk-KKFDRCQF.cjs → chunk-RY7INTYU.cjs} +14 -1
- package/dist/{chunk-PRJZMZ3X.cjs → chunk-SJZWVMBF.cjs} +678 -678
- package/dist/{chunk-GI3MMBP3.cjs → chunk-SQ7YHWEP.cjs} +228 -15
- package/dist/{chunk-ACPOJE32.cjs → chunk-STV6VJ3U.cjs} +21 -21
- package/dist/{chunk-QD727QFI.cjs → chunk-T54I5ZZY.cjs} +7 -7
- package/dist/{chunk-4LTLEUY5.cjs → chunk-TW5Y4D5I.cjs} +7 -7
- package/dist/{chunk-6XU3RCK3.cjs → chunk-UHGARY3S.cjs} +27 -27
- package/dist/{chunk-7J5NSWJG.cjs → chunk-UZIGMLTH.cjs} +100 -100
- package/dist/{chunk-FX35L4Y6.cjs → chunk-XCQ5I27Z.cjs} +3 -3
- package/dist/{chunk-5OENPMRU.cjs → chunk-XI3AMOW6.cjs} +65 -62
- package/dist/{chunk-TMPLHUUU.cjs → chunk-XTLMWLFB.cjs} +6 -6
- package/dist/{chunk-AZEO7HBB.cjs → chunk-Y44EF4JW.cjs} +2 -2
- package/dist/{chunk-RMI6O3AE.cjs → chunk-YB244RRB.cjs} +36 -36
- package/dist/{chunk-KA3L6D5N.cjs → chunk-YSXVRTGT.cjs} +9 -12
- package/dist/{chunk-H3GBPYPS.cjs → chunk-ZYAVIRQV.cjs} +25 -25
- package/dist/{cloud-tenants-5RNK4ZAT.cjs → cloud-tenants-J5T4YL2P.cjs} +28 -29
- package/dist/components/case-studies/index.cjs +44 -45
- package/dist/components/chat/chat-message-row.d.ts +1 -1
- package/dist/components/chat/chat-message-row.d.ts.map +1 -1
- package/dist/components/chat/chat-message-row.js +4 -4
- package/dist/components/chat/entity-cards/use-cover-image-fallback.d.ts +7 -13
- package/dist/components/chat/entity-cards/use-cover-image-fallback.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/use-cover-image-fallback.js +2 -8
- package/dist/components/chat/hooks/use-chat-attachment-image-gallery.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-chat-attachment-image-gallery.js +8 -4
- package/dist/components/chat/index.cjs +22 -23
- package/dist/components/contact/index.cjs +29 -30
- package/dist/components/docs/index.cjs +32 -33
- package/dist/components/embeds/index.cjs +29 -30
- package/dist/components/faq/index.cjs +30 -31
- package/dist/components/features/index.cjs +28 -29
- package/dist/components/features/remote-session/remote-session-viewers.d.ts +6 -1
- package/dist/components/features/remote-session/remote-session-viewers.d.ts.map +1 -1
- package/dist/components/features/remote-session/remote-session-viewers.js +10 -3
- package/dist/components/help-center-pages/index.cjs +134 -135
- package/dist/components/index.cjs +112 -113
- package/dist/components/meeting-scheduler/index.cjs +102 -103
- package/dist/components/navigation/index.cjs +31 -32
- package/dist/components/onboarding-guides/index.cjs +31 -32
- package/dist/components/product-demo/index.cjs +39 -40
- package/dist/components/related-content/index.cjs +16 -17
- package/dist/components/tickets/index.cjs +35 -36
- package/dist/components/ui/entity-image.d.ts +1 -2
- package/dist/components/ui/entity-image.d.ts.map +1 -1
- package/dist/components/ui/entity-image.js +4 -8
- package/dist/components/ui/index.cjs +28 -29
- package/dist/components/ui/markdown/base-components.d.ts +0 -13
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +7 -7
- package/dist/components/ui/square-avatar.d.ts.map +1 -1
- package/dist/components/ui/square-avatar.js +3 -8
- package/dist/{devices-44O5PZOW.cjs → devices-IJDF7SSK.cjs} +29 -30
- package/dist/embed-shims/index.cjs +3 -2
- package/dist/embed-shims/next-image.cjs +3 -2
- package/dist/embed-shims/next-image.d.ts +2 -0
- package/dist/embed-shims/next-image.d.ts.map +1 -1
- package/dist/embed-shims/next-image.js +14 -4
- package/dist/{embeddable-chat-W3CLMGC3.cjs → embeddable-chat-QD7NFD2H.cjs} +100 -101
- package/dist/hooks/index.cjs +23 -16
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-authed-asset-src.d.ts +77 -2
- package/dist/hooks/use-authed-asset-src.d.ts.map +1 -1
- package/dist/hooks/use-authed-asset-src.js +185 -73
- package/dist/hooks/use-authed-image-src.d.ts +11 -4
- package/dist/hooks/use-authed-image-src.d.ts.map +1 -1
- package/dist/hooks/use-authed-image-src.js +6 -2
- package/dist/hooks/use-image-fallback.d.ts +16 -0
- package/dist/hooks/use-image-fallback.d.ts.map +1 -0
- package/dist/hooks/use-image-fallback.js +14 -0
- package/dist/index.cjs +40 -36
- package/dist/{knowledge-UUU3WVO3.cjs → knowledge-5LIK6Q4E.cjs} +29 -30
- package/dist/{logs-DFHNSODA.cjs → logs-FMENCAXT.cjs} +35 -36
- package/dist/{policies-RGFUGDBP.cjs → policies-DKQEEKB4.cjs} +32 -33
- package/dist/{remote-session-U3H77HKR.cjs → remote-session-6X7CAHBC.cjs} +13 -14
- package/dist/{scripts-KOVO5DHW.cjs → scripts-4EPUIFHF.cjs} +35 -36
- package/dist/{software-update-4EKHVV5W.cjs → software-update-IMNRXBAI.cjs} +32 -33
- package/dist/{tickets-board-YIFOVMDX.cjs → tickets-board-POYZS7BW.cjs} +16 -17
- package/dist/utils/app-origins.d.ts +3 -6
- package/dist/utils/app-origins.d.ts.map +1 -1
- package/dist/utils/app-origins.js +8 -1
- package/dist/utils/embed-authed-fetch.d.ts +46 -26
- package/dist/utils/embed-authed-fetch.d.ts.map +1 -1
- package/dist/utils/embed-authed-fetch.js +24 -8
- package/dist/utils/index.cjs +4 -1
- package/dist/{video-file-player-XMOB234V.cjs → video-file-player-RIOT24NT.cjs} +3 -4
- package/package.json +1 -1
- package/src/components/chat/chat-message-row.tsx +8 -7
- package/src/components/chat/entity-cards/use-cover-image-fallback.ts +8 -28
- package/src/components/chat/hooks/use-chat-attachment-image-gallery.tsx +19 -8
- package/src/components/features/remote-session/remote-session-viewers.tsx +16 -3
- package/src/components/ui/entity-image.tsx +4 -12
- package/src/components/ui/markdown/base-components.tsx +15 -20
- package/src/components/ui/square-avatar.tsx +5 -8
- package/src/embed-shims/next-image.tsx +34 -3
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-authed-asset-src.ts +323 -107
- package/src/hooks/use-authed-image-src.ts +15 -5
- package/src/hooks/use-image-fallback.ts +31 -0
- package/src/utils/app-origins.ts +12 -7
- package/src/utils/embed-authed-fetch.ts +71 -32
- package/dist/chunk-YSDB6HGQ.cjs +0 -102
|
@@ -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 _chunk5TYG5JNBcjs = require('./chunk-5TYG5JNB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,7 @@ var _chunkDLTPSP5Fcjs = require('./chunk-DLTPSP5F.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk2JCA7BRKcjs = require('./chunk-2JCA7BRK.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,17 +27,17 @@ var _chunkFBANHIAGcjs = require('./chunk-FBANHIAG.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk3GJ75OULcjs = require('./chunk-3GJ75OUL.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkAYMY2VNBcjs = require('./chunk-AYMY2VNB.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunkBLH2SFOOcjs = require('./chunk-BLH2SFOO.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkEXQSIX2Icjs = require('./chunk-EXQSIX2I.cjs');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -449,13 +449,13 @@ function programEntry(configKey) {
|
|
|
449
449
|
return cardEntry({
|
|
450
450
|
// The gallery and hosts rows are drawn only for a type whose cards show them (its config's `cardShowsGallery`,
|
|
451
451
|
// `cardShowsHosts`), as `ProgramCard` decides in a scope: elsewhere a record may have none.
|
|
452
|
-
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
452
|
+
skeleton: (size, extras) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GJ75OULcjs.ProgramCard, { loading: true, config: _optionalChain([extras, 'optionalAccess', _2 => _2.programConfigs, 'optionalAccess', _3 => _3[configKey]]), size: size === "sm" ? "sm" : "default" }),
|
|
453
453
|
decode: decodeProgramRow,
|
|
454
454
|
render: (item, ctx) => {
|
|
455
455
|
const config = _optionalChain([ctx, 'access', _4 => _4.extras, 'optionalAccess', _5 => _5.programConfigs, 'optionalAccess', _6 => _6[configKey]]);
|
|
456
456
|
if (!config) return null;
|
|
457
457
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
458
|
-
|
|
458
|
+
_chunk3GJ75OULcjs.ProgramCard,
|
|
459
459
|
{
|
|
460
460
|
config,
|
|
461
461
|
item,
|
|
@@ -473,10 +473,10 @@ function programEntry(configKey) {
|
|
|
473
473
|
}
|
|
474
474
|
function roadmapEntry(cardType) {
|
|
475
475
|
return cardEntry({
|
|
476
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
476
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GJ75OULcjs.RoadmapCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
477
477
|
decode: decodeRoadmapRow,
|
|
478
478
|
render: (item, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
479
|
-
|
|
479
|
+
_chunk3GJ75OULcjs.RoadmapCard,
|
|
480
480
|
{
|
|
481
481
|
item,
|
|
482
482
|
href: ctx.href,
|
|
@@ -493,10 +493,10 @@ function roadmapEntry(cardType) {
|
|
|
493
493
|
}
|
|
494
494
|
var RELATED_CARD_REGISTRY = {
|
|
495
495
|
blog_post_existing: cardEntry({
|
|
496
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
496
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GJ75OULcjs.BlogCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
497
497
|
decode: decodeBlogRow,
|
|
498
498
|
render: (post, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
499
|
-
|
|
499
|
+
_chunk3GJ75OULcjs.BlogCard,
|
|
500
500
|
{
|
|
501
501
|
post,
|
|
502
502
|
size: ctx.legacySize,
|
|
@@ -509,10 +509,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
509
509
|
)
|
|
510
510
|
}),
|
|
511
511
|
case_study: cardEntry({
|
|
512
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
512
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAYMY2VNBcjs.CaseStudyCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
513
513
|
decode: decodeCaseStudyRow,
|
|
514
514
|
render: (study, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
515
|
-
|
|
515
|
+
_chunkAYMY2VNBcjs.CaseStudyCard,
|
|
516
516
|
{
|
|
517
517
|
study,
|
|
518
518
|
size: ctx.legacySize,
|
|
@@ -524,10 +524,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
524
524
|
)
|
|
525
525
|
}),
|
|
526
526
|
customer_interview: cardEntry({
|
|
527
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
527
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GJ75OULcjs.CustomerInterviewCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
528
528
|
decode: decodeCustomerInterviewRow,
|
|
529
529
|
render: (interview, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
530
|
-
|
|
530
|
+
_chunk3GJ75OULcjs.CustomerInterviewCard,
|
|
531
531
|
{
|
|
532
532
|
interview,
|
|
533
533
|
size: ctx.legacySize,
|
|
@@ -545,13 +545,13 @@ var RELATED_CARD_REGISTRY = {
|
|
|
545
545
|
* record, and the three props the rail sets itself are read off it.
|
|
546
546
|
*/
|
|
547
547
|
product_release: cardEntry({
|
|
548
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GJ75OULcjs.ProductReleaseCard, { loading: true, size: size === "sm" ? "sm" : "lg" }),
|
|
549
549
|
decode: asRecord,
|
|
550
550
|
render: (release, ctx) => {
|
|
551
|
-
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => (
|
|
551
|
+
const buildReleaseProps = _nullishCoalesce(_optionalChain([ctx, 'access', _7 => _7.extras, 'optionalAccess', _8 => _8.buildProductReleaseCardProps]), () => ( _chunk3GJ75OULcjs.buildProductReleaseCardProps));
|
|
552
552
|
const releaseProps = buildReleaseProps(release);
|
|
553
553
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
554
|
-
|
|
554
|
+
_chunk3GJ75OULcjs.ProductReleaseCard,
|
|
555
555
|
{
|
|
556
556
|
size: ctx.size === "sm" ? "sm" : "lg",
|
|
557
557
|
title: str(release, "title"),
|
|
@@ -567,10 +567,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
567
567
|
webinar: programEntry("webinar"),
|
|
568
568
|
event: programEntry("event"),
|
|
569
569
|
investor_update: cardEntry({
|
|
570
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
570
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GJ75OULcjs.InvestorUpdateCard, { loading: true, size: size === "sm" ? "sm" : "default" }),
|
|
571
571
|
decode: decodeInvestorUpdateRow,
|
|
572
572
|
render: (update, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
573
|
-
|
|
573
|
+
_chunk3GJ75OULcjs.InvestorUpdateCard,
|
|
574
574
|
{
|
|
575
575
|
update,
|
|
576
576
|
size: ctx.legacySize,
|
|
@@ -585,10 +585,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
585
585
|
* step-numbered 'default' variant is for the guide detail page's "More in
|
|
586
586
|
* section" rail, not this full-width row. */
|
|
587
587
|
onboarding_guide: cardEntry({
|
|
588
|
-
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
588
|
+
skeleton: (size) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3GJ75OULcjs.OnboardingGuideCard, { loading: true, size: size === "sm" ? "sm" : "catalog", published: false }),
|
|
589
589
|
decode: decodeOnboardingGuideRow,
|
|
590
590
|
render: (guide, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
591
|
-
|
|
591
|
+
_chunk3GJ75OULcjs.OnboardingGuideCard,
|
|
592
592
|
{
|
|
593
593
|
guide,
|
|
594
594
|
size: ctx.size === "sm" ? "sm" : "catalog",
|
|
@@ -605,10 +605,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
605
605
|
* href: an object with `href: undefined` is still truthy and would wrap the
|
|
606
606
|
* card in a dead <a>. */
|
|
607
607
|
what_i_shipped: cardEntry({
|
|
608
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
608
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JCA7BRKcjs.WhatIShippedCard, { loading: true }),
|
|
609
609
|
decode: decodeEmployeeEntryRow,
|
|
610
610
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
611
|
-
|
|
611
|
+
_chunk2JCA7BRKcjs.WhatIShippedCard,
|
|
612
612
|
{
|
|
613
613
|
entry,
|
|
614
614
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -618,10 +618,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
618
618
|
}),
|
|
619
619
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
620
620
|
how_i_work: cardEntry({
|
|
621
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
621
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JCA7BRKcjs.HowIWorkCard, { loading: true }),
|
|
622
622
|
decode: decodeEmployeeEntryRow,
|
|
623
623
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
624
|
-
|
|
624
|
+
_chunk2JCA7BRKcjs.HowIWorkCard,
|
|
625
625
|
{
|
|
626
626
|
entry,
|
|
627
627
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -631,10 +631,10 @@ var RELATED_CARD_REGISTRY = {
|
|
|
631
631
|
}),
|
|
632
632
|
/** Same shared employee-entry shape + anchor contract as What I Shipped. */
|
|
633
633
|
ai_prompt: cardEntry({
|
|
634
|
-
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
634
|
+
skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2JCA7BRKcjs.AiPromptCard, { loading: true }),
|
|
635
635
|
decode: decodeEmployeeEntryRow,
|
|
636
636
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
637
|
-
|
|
637
|
+
_chunk2JCA7BRKcjs.AiPromptCard,
|
|
638
638
|
{
|
|
639
639
|
entry,
|
|
640
640
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -656,8 +656,8 @@ function DefaultLinkPropsProvider({
|
|
|
656
656
|
}) {
|
|
657
657
|
const runtime = _chunkUJ7AXHRZcjs.useChatRuntime.call(void 0, );
|
|
658
658
|
if (!href) return children(null);
|
|
659
|
-
const target =
|
|
660
|
-
return children({ href: target.href, ...
|
|
659
|
+
const target = _chunkEXQSIX2Icjs.navLinkTarget.call(void 0, runtime, href, targetPlatform);
|
|
660
|
+
return children({ href: target.href, ..._chunkEXQSIX2Icjs.newTabAnchorAttrs.call(void 0, target.isNewTab, target.href, targetPlatform) });
|
|
661
661
|
}
|
|
662
662
|
function defaultResolveHref(ref) {
|
|
663
663
|
return { href: ref.url || null, targetPlatform: _nullishCoalesce(ref.targetPlatform, () => ( null)) };
|
|
@@ -718,9 +718,9 @@ function useGroupItems(type, refs, buildUrl, seedRows) {
|
|
|
718
718
|
() => seedRows && url !== null ? /* @__PURE__ */ new Map([[url, [...seedRows]]]) : /* @__PURE__ */ new Map()
|
|
719
719
|
);
|
|
720
720
|
const cached = url !== null ? pages.get(url) : void 0;
|
|
721
|
-
const { data, dataUrl, error } =
|
|
721
|
+
const { data, dataUrl, error } = _chunk2JCA7BRKcjs.useSelfFetch.call(void 0, cached ? null : url);
|
|
722
722
|
if (data != null && dataUrl !== null && !pages.has(dataUrl)) {
|
|
723
|
-
setPages(new Map(pages).set(dataUrl,
|
|
723
|
+
setPages(new Map(pages).set(dataUrl, _chunk3GJ75OULcjs.extractItems.call(void 0, data)));
|
|
724
724
|
}
|
|
725
725
|
if (url === null) return { items: null, isLoading: false };
|
|
726
726
|
return { items: _nullishCoalesce(cached, () => ( (error ? [] : null))), isLoading: !cached && !error };
|
|
@@ -729,7 +729,7 @@ function gridClassFor(columns) {
|
|
|
729
729
|
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";
|
|
730
730
|
}
|
|
731
731
|
function resolveGroupConfig(type) {
|
|
732
|
-
return _nullishCoalesce(
|
|
732
|
+
return _nullishCoalesce(_chunk2JCA7BRKcjs.CONTENT_REF_GROUPS[type], () => ( {
|
|
733
733
|
label: type,
|
|
734
734
|
order: 999,
|
|
735
735
|
layout: "grid",
|
|
@@ -742,15 +742,15 @@ var GROUP_HEADING_CLASS = "font-semibold text-ods-text-secondary text-h5";
|
|
|
742
742
|
var RAIL_CLASS = "flex flex-col gap-8";
|
|
743
743
|
var UNKNOWN_TYPE_CARD = "blog_post_existing";
|
|
744
744
|
function GroupHeading({ type }) {
|
|
745
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children:
|
|
745
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: _chunk2JCA7BRKcjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
746
746
|
}
|
|
747
747
|
function orderRailTypes(types, entityType) {
|
|
748
|
-
let ordered =
|
|
748
|
+
let ordered = _chunk2JCA7BRKcjs.orderContentRefTypes.call(void 0, types);
|
|
749
749
|
if (entityType) {
|
|
750
|
-
const canonicalEntityType =
|
|
751
|
-
const sameType = ordered.filter((t) =>
|
|
750
|
+
const canonicalEntityType = _chunk3GJ75OULcjs.canonicalContentRefType.call(void 0, entityType);
|
|
751
|
+
const sameType = ordered.filter((t) => _chunk3GJ75OULcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
752
752
|
if (sameType.length > 0) {
|
|
753
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
753
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunk3GJ75OULcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
return ordered;
|
|
@@ -779,10 +779,10 @@ function ContentGroup({
|
|
|
779
779
|
setPagedRefsKey(refsKey);
|
|
780
780
|
setPage(1);
|
|
781
781
|
}
|
|
782
|
-
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length,
|
|
783
|
-
const pageRefs = refs.slice((page - 1) *
|
|
782
|
+
const totalGroupPages = _chunkBLH2SFOOcjs.pageCount.call(void 0, refs.length, _chunk2JCA7BRKcjs.GROUP_PAGE_SIZE);
|
|
783
|
+
const pageRefs = refs.slice((page - 1) * _chunk2JCA7BRKcjs.GROUP_PAGE_SIZE, page * _chunk2JCA7BRKcjs.GROUP_PAGE_SIZE);
|
|
784
784
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
785
|
-
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
785
|
+
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5TYG5JNBcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
786
786
|
_react.useEffect.call(void 0, () => {
|
|
787
787
|
onLoadingChange(type, isLoading);
|
|
788
788
|
return () => onLoadingChange(type, false);
|
|
@@ -800,7 +800,7 @@ function ContentGroup({
|
|
|
800
800
|
}
|
|
801
801
|
if (!items) return null;
|
|
802
802
|
const rowKey = (it) => {
|
|
803
|
-
const extracted =
|
|
803
|
+
const extracted = _chunk3GJ75OULcjs.extractItemId.call(void 0, type, it);
|
|
804
804
|
if (extracted !== null) return extracted;
|
|
805
805
|
return String(typeof it === "object" && it !== null ? it.id : void 0);
|
|
806
806
|
};
|
|
@@ -871,11 +871,11 @@ function RelatedContentSection({
|
|
|
871
871
|
types: includeTypes !== void 0 ? includeTypes.join(",") : void 0,
|
|
872
872
|
excludeTypes: excludeTypes && excludeTypes.length > 0 ? excludeTypes.join(",") : void 0
|
|
873
873
|
};
|
|
874
|
-
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ?
|
|
874
|
+
const authorUrl = contentRefs === void 0 && authorId && !suggestionsDisabled ? _chunk2JCA7BRKcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
875
875
|
apiBaseUrl,
|
|
876
876
|
extraParams: { authorId, ...typeFilterParams }
|
|
877
877
|
}) : null;
|
|
878
|
-
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ?
|
|
878
|
+
const suggestUrl = _nullishCoalesce(authorUrl, () => ( (contentRefs === void 0 && entityType && entityId !== void 0 && entityId !== null && entityId !== "" && !suggestionsDisabled ? _chunk2JCA7BRKcjs.buildSuggestionUrl.call(void 0, "/api/related-content", {
|
|
879
879
|
apiBaseUrl,
|
|
880
880
|
entityType,
|
|
881
881
|
entityId,
|
|
@@ -892,7 +892,7 @@ function RelatedContentSection({
|
|
|
892
892
|
() => !suggestionsDisabled && initialItems ? { refs: initialItems } : void 0,
|
|
893
893
|
[initialItems, suggestionsDisabled]
|
|
894
894
|
);
|
|
895
|
-
const { data, isLoading } =
|
|
895
|
+
const { data, isLoading } = _chunk2JCA7BRKcjs.useSelfFetch.call(void 0, suggestUrl, { initialData });
|
|
896
896
|
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
897
897
|
const [loadingTypes, setLoadingTypes] = _react.useState.call(void 0, () => /* @__PURE__ */ new Set());
|
|
898
898
|
const onGroupLoadingChange = _react.useCallback.call(void 0, (type, loading) => {
|
|
@@ -905,7 +905,7 @@ function RelatedContentSection({
|
|
|
905
905
|
});
|
|
906
906
|
}, []);
|
|
907
907
|
const effectiveBuildListUrl = _react.useMemo.call(void 0,
|
|
908
|
-
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) =>
|
|
908
|
+
() => _nullishCoalesce(buildListUrl2, () => ( ((type, ids) => _chunk3GJ75OULcjs.buildListUrl.call(void 0, type, ids, apiBaseUrl)))),
|
|
909
909
|
[buildListUrl2, apiBaseUrl]
|
|
910
910
|
);
|
|
911
911
|
const refs = _nullishCoalesce(_nullishCoalesce(contentRefs, () => ( _optionalChain([data, 'optionalAccess', _12 => _12.refs]))), () => ( []));
|
|
@@ -929,7 +929,7 @@ function RelatedContentSection({
|
|
|
929
929
|
}
|
|
930
930
|
if (!showWhenEmpty) return null;
|
|
931
931
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-8", children: [
|
|
932
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children:
|
|
932
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-2xl font-bold text-ods-text-primary", children: _chunk3GJ75OULcjs.accentSentenceMarks.call(void 0, title) }),
|
|
933
933
|
_nullishCoalesce(emptyState, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary", children: emptyStateText })))
|
|
934
934
|
] });
|
|
935
935
|
}
|
|
@@ -955,7 +955,7 @@ function RelatedContentSection({
|
|
|
955
955
|
);
|
|
956
956
|
}
|
|
957
957
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { as: "section", label: "Loading related content", announce: loadingTypes.size > 0, className: RAIL_CLASS, children: [
|
|
958
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children:
|
|
958
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: _chunk3GJ75OULcjs.accentSentenceMarks.call(void 0, title) }),
|
|
959
959
|
orderedTypes.map((type, groupIndex) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
960
960
|
ContentGroup,
|
|
961
961
|
{
|
|
@@ -986,24 +986,24 @@ function RelatedContentSectionSkeleton({
|
|
|
986
986
|
adminCampaignCard,
|
|
987
987
|
extras
|
|
988
988
|
}) {
|
|
989
|
-
const canonicalEntityType = entityType ?
|
|
989
|
+
const canonicalEntityType = entityType ? _chunk3GJ75OULcjs.canonicalContentRefType.call(void 0, entityType) : null;
|
|
990
990
|
const unknownGroup = types.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: GROUP_CLASS, "aria-hidden": true, "data-loading-item": true, children: [
|
|
991
991
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: GROUP_HEADING_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) }),
|
|
992
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length:
|
|
992
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: gridClassFor(columns), children: Array.from({ length: _chunk2JCA7BRKcjs.GROUP_PAGE_SIZE }, (_, i) => (
|
|
993
993
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
994
994
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, children: renderSkeletonForType(UNKNOWN_TYPE_CARD, "default", adminCampaignCard, extras) }, i)
|
|
995
995
|
)) })
|
|
996
996
|
] }) : null;
|
|
997
997
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { as: "section", label: "Loading related content", className: RAIL_CLASS, children: [
|
|
998
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ?
|
|
998
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: RAIL_TITLE_CLASS, children: title ? _chunk3GJ75OULcjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPMUCEUFQcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-1/2" }) }),
|
|
999
999
|
unknownGroup,
|
|
1000
1000
|
orderRailTypes(new Set(types), entityType).map((type) => {
|
|
1001
1001
|
const config = resolveGroupConfig(type);
|
|
1002
|
-
const sameType = canonicalEntityType !== null &&
|
|
1002
|
+
const sameType = canonicalEntityType !== null && _chunk3GJ75OULcjs.canonicalContentRefType.call(void 0, type) === canonicalEntityType;
|
|
1003
1003
|
const isList = config.layout === "list";
|
|
1004
1004
|
const count = Math.min(
|
|
1005
|
-
|
|
1006
|
-
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => (
|
|
1005
|
+
_chunk2JCA7BRKcjs.GROUP_PAGE_SIZE,
|
|
1006
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunk2JCA7BRKcjs.GROUP_PAGE_SIZE))
|
|
1007
1007
|
);
|
|
1008
1008
|
const cards = Array.from({ length: count }, (_, i) => (
|
|
1009
1009
|
// biome-ignore lint/suspicious/noArrayIndexKey: skeleton cards never reorder
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkHML3JUXFcjs = require('./chunk-HML3JUXF.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk77GX573Icjs = require('./chunk-77GX573I.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkEXQSIX2Icjs = require('./chunk-EXQSIX2I.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkXCQ5I27Zcjs = require('./chunk-XCQ5I27Z.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -35,7 +35,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
35
35
|
function DocSearchResultRow({ result, isHighlighted }) {
|
|
36
36
|
const docType = _optionalChain([result, 'access', _ => _.metadata, 'optionalAccess', _2 => _2.documentType]) || void 0;
|
|
37
37
|
const sourceRepo = _optionalChain([result, 'access', _3 => _3.metadata, 'optionalAccess', _4 => _4.sourceRepo]) || void 0;
|
|
38
|
-
const { Icon: SourceIcon, label: iconLabel } =
|
|
38
|
+
const { Icon: SourceIcon, label: iconLabel } = _chunkHML3JUXFcjs.resolveSourceIcon.call(void 0, {
|
|
39
39
|
sourceRepo,
|
|
40
40
|
documentType: docType
|
|
41
41
|
});
|
|
@@ -65,7 +65,7 @@ function DocSearchBar({
|
|
|
65
65
|
renderResult
|
|
66
66
|
}) {
|
|
67
67
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
68
|
-
|
|
68
|
+
_chunkHML3JUXFcjs.SearchInput,
|
|
69
69
|
{
|
|
70
70
|
placeholder,
|
|
71
71
|
value: query,
|
|
@@ -115,7 +115,7 @@ function mapDocSearchResults(docs) {
|
|
|
115
115
|
results.push({
|
|
116
116
|
id: `group-${entry.repo}`,
|
|
117
117
|
// Same table label and count as the chat's grouped chip: one owner each.
|
|
118
|
-
title: `${
|
|
118
|
+
title: `${_chunkHML3JUXFcjs.getSourceLabel.call(void 0, entry.repo)} ${_chunkHML3JUXFcjs.recordCountLabel.call(void 0, rows.length)}`,
|
|
119
119
|
path: rows[0].path,
|
|
120
120
|
type: "file",
|
|
121
121
|
metadata: {
|
|
@@ -171,9 +171,9 @@ function resolveSearchResultAction(result, source, runtime, composeContentUrl) {
|
|
|
171
171
|
externalUrl,
|
|
172
172
|
targetPlatform: _nullishCoalesce(targetPlatform, () => ( null))
|
|
173
173
|
}) : null;
|
|
174
|
-
const hostRoute = !!_optionalChain([composed, 'optionalAccess', _10 => _10.href]) &&
|
|
174
|
+
const hostRoute = !!_optionalChain([composed, 'optionalAccess', _10 => _10.href]) && _chunkEXQSIX2Icjs.isRelativeHref.call(void 0, composed.href);
|
|
175
175
|
const actionPlatform = composed ? composed.targetPlatform : _nullishCoalesce(targetPlatform, () => ( null));
|
|
176
|
-
const target =
|
|
176
|
+
const target = _chunkEXQSIX2Icjs.navLinkTarget.call(void 0, runtime, _optionalChain([composed, 'optionalAccess', _11 => _11.href]) || externalUrl, actionPlatform, { hostRoute });
|
|
177
177
|
const kind = target.isNewTab ? "navigate-new-tab" : "navigate-same-tab";
|
|
178
178
|
return hostRoute ? { kind, href: target.href, targetPlatform: actionPlatform, hostRoute } : { kind, href: target.href, targetPlatform: actionPlatform };
|
|
179
179
|
}
|
|
@@ -239,7 +239,7 @@ function useDocSearch(config) {
|
|
|
239
239
|
const [query, setQuery] = _react.useState.call(void 0, "");
|
|
240
240
|
const [results, setResults] = _react.useState.call(void 0, NO_RESULTS);
|
|
241
241
|
const [isFetching, setIsFetching] = _react.useState.call(void 0, false);
|
|
242
|
-
const debouncedQuery =
|
|
242
|
+
const debouncedQuery = _chunk77GX573Icjs.useDebounce.call(void 0, query, 300);
|
|
243
243
|
const searchable = debouncedQuery.trim().length >= 2;
|
|
244
244
|
const [wasSearchable, setWasSearchable] = _react.useState.call(void 0, searchable);
|
|
245
245
|
if (wasSearchable !== searchable) {
|
|
@@ -261,7 +261,7 @@ function useDocSearch(config) {
|
|
|
261
261
|
limit: "10"
|
|
262
262
|
});
|
|
263
263
|
if (tableIdsKey) params.set("tableIds", tableIdsKey);
|
|
264
|
-
const response = await
|
|
264
|
+
const response = await _chunkXCQ5I27Zcjs.contentFetch.call(void 0, `${resolvedSearchEndpoint}?${params.toString()}`);
|
|
265
265
|
if (!response.ok) {
|
|
266
266
|
throw new Error(`Search request failed: ${response.status}`);
|
|
267
267
|
}
|
|
@@ -297,13 +297,13 @@ function useDocSearch(config) {
|
|
|
297
297
|
case "navigate-new-tab": {
|
|
298
298
|
if (wantsNewTab) {
|
|
299
299
|
setKeepOpen(true);
|
|
300
|
-
|
|
300
|
+
_chunk77GX573Icjs.executeNewTabNavigation.call(void 0, { runtime, href: action.href, targetPlatform: action.targetPlatform });
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
303
|
setKeepOpen(action.kind === "navigate-new-tab");
|
|
304
304
|
const path = baseRoute && action.href.startsWith(`${baseRoute}/`) ? action.href.slice(baseRoute.length + 1) : null;
|
|
305
305
|
if (action.kind === "navigate-same-tab" && path && _optionalChain([onInPageSwap, 'optionalCall', _15 => _15(path)])) return;
|
|
306
|
-
|
|
306
|
+
_chunk77GX573Icjs.executeNavigationImperative.call(void 0, {
|
|
307
307
|
runtime,
|
|
308
308
|
href: action.href,
|
|
309
309
|
path,
|
|
@@ -314,7 +314,7 @@ function useDocSearch(config) {
|
|
|
314
314
|
}
|
|
315
315
|
case "ask-ai":
|
|
316
316
|
setKeepOpen(false);
|
|
317
|
-
window.dispatchEvent(new CustomEvent(
|
|
317
|
+
window.dispatchEvent(new CustomEvent(_chunkHML3JUXFcjs.ASK_AI_OPEN_WITH_REF_EVENT, { detail: action.detail }));
|
|
318
318
|
return;
|
|
319
319
|
case "route":
|
|
320
320
|
setKeepOpen(false);
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkRY7INTYUcjs = require('./chunk-RY7INTYU.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6DMH4GXNcjs = require('./chunk-6DMH4GXN.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -14,7 +14,7 @@ var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
|
14
14
|
|
|
15
15
|
// src/hooks/ui/use-image-edge-color.ts
|
|
16
16
|
var _react = require('react');
|
|
17
|
-
var EDGE_SAMPLE_WIDTH =
|
|
17
|
+
var EDGE_SAMPLE_WIDTH = _chunkRY7INTYUcjs.IMAGE_FIXED_WIDTHS[2];
|
|
18
18
|
function extractEdgeColor(img) {
|
|
19
19
|
const canvas = document.createElement("canvas");
|
|
20
20
|
const ctx = canvas.getContext("2d");
|
|
@@ -90,7 +90,7 @@ function useImageEdgeColor(givenUrl, fallback = "#000000") {
|
|
|
90
90
|
setColor(fallback);
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
|
-
const sampleUrl =
|
|
93
|
+
const sampleUrl = _chunk6DMH4GXNcjs.resizedImageUrl.call(void 0, imageUrl, EDGE_SAMPLE_WIDTH);
|
|
94
94
|
let triedOriginal = sampleUrl === imageUrl;
|
|
95
95
|
img.onerror = () => {
|
|
96
96
|
if (cancelled) return;
|