@flamingo-stack/openframe-frontend-core 0.0.823 → 0.0.825
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/chat-protocol/events.d.ts +0 -3
- package/dist/chat-protocol/events.d.ts.map +1 -1
- package/dist/chat-protocol/frames.d.ts +10 -7
- package/dist/chat-protocol/frames.d.ts.map +1 -1
- package/dist/chat-protocol/index.cjs +238 -234
- package/dist/chat-protocol/leading-frames.d.ts.map +1 -1
- package/dist/chat-protocol/leading-frames.js +6 -3
- package/dist/chat-protocol/progress.d.ts +13 -20
- package/dist/chat-protocol/progress.d.ts.map +1 -1
- package/dist/chat-protocol/progress.js +13 -11
- package/dist/{chunk-QCRJVO6Y.cjs → chunk-2IWAHBCC.cjs} +1 -1
- package/dist/{chunk-2LT2WR4O.cjs → chunk-2U7GXE3T.cjs} +2789 -2819
- package/dist/{chunk-DEWT25QK.cjs → chunk-47SHKOCY.cjs} +65 -72
- package/dist/{chunk-UUFL4FDS.cjs → chunk-4IY5FKYL.cjs} +14 -14
- package/dist/{chunk-TJFVIJPV.cjs → chunk-5S2GW6YG.cjs} +2 -2
- package/dist/{chunk-AK7MYM25.cjs → chunk-6LVJKPR3.cjs} +3 -3
- package/dist/{chunk-HWXFUI3R.cjs → chunk-7DJWIVQC.cjs} +30 -30
- package/dist/{chunk-K7NGDYBG.cjs → chunk-AO6YVNAH.cjs} +136 -136
- package/dist/{chunk-Y7BTM2NC.cjs → chunk-APTFXX2C.cjs} +39 -39
- package/dist/{chunk-L7YE6APP.cjs → chunk-AUBR3FGY.cjs} +11 -11
- package/dist/{chunk-XEIZL3I3.cjs → chunk-B7NSH7IK.cjs} +6 -6
- package/dist/{chunk-3JCDSZ6D.cjs → chunk-BN7QENV7.cjs} +4 -4
- package/dist/{chunk-U7CH53FT.cjs → chunk-DNZCSPMU.cjs} +13 -13
- package/dist/{chunk-KWS7YKCO.cjs → chunk-IMMTH3F3.cjs} +13 -13
- package/dist/{chunk-GP2Y3DBE.cjs → chunk-MALCUN2G.cjs} +6 -6
- package/dist/{chunk-Y3MPERIZ.cjs → chunk-MHR4C465.cjs} +3 -3
- package/dist/{chunk-YMDSCI4E.cjs → chunk-N7IDLF2G.cjs} +32 -32
- package/dist/{chunk-2U6MAM6D.cjs → chunk-NL34HKLS.cjs} +63 -63
- package/dist/{chunk-SBXL5EKE.cjs → chunk-P25RVNGX.cjs} +23 -23
- package/dist/{chunk-GBILLSRM.cjs → chunk-QOOMUGF2.cjs} +4 -4
- package/dist/{chunk-DYSMAPSI.cjs → chunk-XJMLZ63Y.cjs} +4 -4
- package/dist/{chunk-2YUWBIZM.cjs → chunk-Z7BLMJEI.cjs} +46 -46
- package/dist/{cloud-tenants-VQQ2KNJI.cjs → cloud-tenants-M4VFFN33.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/embeddable-chat.d.ts +0 -2
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +1 -5
- package/dist/components/chat/entity-cards/blog-card.js +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.js +0 -2
- package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-unified-chat.js +0 -1
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/mingo-welcome.js +1 -1
- package/dist/components/chat/stream/chat-dialog-store.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-dialog-store.js +0 -1
- package/dist/components/chat/stream/chat-stream-reducer.d.ts +0 -4
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-stream-reducer.js +6 -13
- package/dist/components/chat/types/unified-chat-state.types.d.ts +0 -5
- package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/filters-dropdown.js +2 -2
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/features/notifications/approval-request-notification-tile.js +1 -1
- package/dist/components/help-center-pages/index.cjs +80 -80
- package/dist/components/index.cjs +48 -48
- package/dist/components/loading/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +31 -31
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/related-content/index.cjs +4 -4
- package/dist/components/shared/article-author-byline.js +4 -4
- package/dist/components/tickets/index.cjs +11 -11
- package/dist/components/tickets/ticket-row.js +10 -17
- package/dist/components/ui/date-picker.js +1 -1
- package/dist/components/ui/index.cjs +6 -6
- package/dist/components/ui/markdown/base-components.js +1 -1
- package/dist/components/ui/markdown/engine.js +2 -2
- package/dist/components/ui/navigation-menu.js +1 -1
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/sticky-action-bar.js +1 -1
- package/dist/{devices-KKJHYQ72.cjs → devices-DW5NDXMD.cjs} +7 -7
- package/dist/{embeddable-chat-MQGYFYGX.cjs → embeddable-chat-NBJMXEXB.cjs} +67 -71
- package/dist/index.cjs +10 -10
- package/dist/{knowledge-VMLXNFDI.cjs → knowledge-EYJG2TNW.cjs} +7 -7
- package/dist/loading-standard/engine.d.mts.map +1 -1
- package/dist/{logs-EFXRQ6LV.cjs → logs-2LV7DTSL.cjs} +14 -14
- package/dist/{policies-SU3NQPFV.cjs → policies-HSDYIQBX.cjs} +10 -10
- package/dist/{scripts-WLLAUOAA.cjs → scripts-UI6V7ANQ.cjs} +11 -11
- package/dist/{software-update-WKUDBC3U.cjs → software-update-WMLY7VHH.cjs} +9 -9
- package/eslint-config/README.md +21 -0
- package/eslint-config/base.js +12 -0
- package/eslint-config/dead-classes.js +256 -0
- package/package.json +2 -1
- package/src/chat-protocol/events.ts +0 -3
- package/src/chat-protocol/frames.ts +12 -8
- package/src/chat-protocol/leading-frames.ts +7 -4
- package/src/chat-protocol/progress.ts +31 -28
- package/src/components/chat/embeddable-chat.tsx +2 -12
- package/src/components/chat/entity-cards/blog-card.tsx +1 -1
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +0 -2
- package/src/components/chat/hooks/use-unified-chat.ts +0 -1
- package/src/components/chat/mingo-welcome.tsx +1 -1
- package/src/components/chat/stream/chat-dialog-store.ts +0 -1
- package/src/components/chat/stream/chat-stream-reducer.ts +6 -17
- package/src/components/chat/types/unified-chat-state.types.ts +0 -6
- package/src/components/features/filters-dropdown.tsx +2 -2
- package/src/components/features/notifications/approval-request-notification-tile.tsx +1 -1
- package/src/components/loading/index.ts +0 -5
- package/src/components/shared/article-author-byline.tsx +4 -4
- package/src/components/tickets/ticket-row.tsx +1 -4
- package/src/components/ui/date-picker.tsx +1 -1
- package/src/components/ui/markdown/base-components.tsx +1 -1
- package/src/components/ui/markdown/engine.tsx +4 -4
- package/src/components/ui/navigation-menu.tsx +1 -1
- package/src/components/ui/radio-group.tsx +1 -2
- package/src/components/ui/sticky-action-bar.tsx +1 -1
- package/src/loading-standard/engine.mjs +1 -2
- package/dist/components/loading/openmsp-heartbeat.d.ts +0 -7
- package/dist/components/loading/openmsp-heartbeat.d.ts.map +0 -1
- package/dist/components/loading/openmsp-heartbeat.js +0 -68
- package/src/components/loading/openmsp-heartbeat.tsx +0 -69
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2IWAHBCCcjs = require('./chunk-2IWAHBCC.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.cjs');
|
|
@@ -150,7 +150,7 @@ function EmployeeEntryBadge({ children }) {
|
|
|
150
150
|
function EmployeeEntryCard(props) {
|
|
151
151
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || props.loading) {
|
|
152
152
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
153
|
-
|
|
153
|
+
_chunk2IWAHBCCcjs.AdminContentCard,
|
|
154
154
|
{
|
|
155
155
|
loading: true,
|
|
156
156
|
title: "",
|
|
@@ -172,9 +172,9 @@ function LoadedEmployeeEntryCard({
|
|
|
172
172
|
anchorProps,
|
|
173
173
|
className
|
|
174
174
|
}) {
|
|
175
|
-
const authorAvatar =
|
|
175
|
+
const authorAvatar = _chunk2IWAHBCCcjs.useProxiedImageUrl.call(void 0, _optionalChain([entry, 'access', _7 => _7.author, 'optionalAccess', _8 => _8.avatar_url]), { directHttps: false });
|
|
176
176
|
const card = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
177
|
-
|
|
177
|
+
_chunk2IWAHBCCcjs.AdminContentCard,
|
|
178
178
|
{
|
|
179
179
|
imageUrl: entry.featured_image || entry.main_video_thumbnail,
|
|
180
180
|
placeholderUrl,
|
|
@@ -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 _chunkP25RVNGXcjs = require('./chunk-P25RVNGX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2U7GXE3Tcjs = require('./chunk-2U7GXE3T.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkGI3MMBP3cjs = require('./chunk-GI3MMBP3.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 = _chunk2U7GXE3Tcjs.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 = _chunkP25RVNGXcjs.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),
|
|
@@ -12,7 +12,7 @@ var _chunkNPNZAAOBcjs = require('./chunk-NPNZAAOB.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkQOOMUGF2cjs = require('./chunk-QOOMUGF2.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -27,7 +27,7 @@ var _chunkGBILLSRMcjs = require('./chunk-GBILLSRM.cjs');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk2IWAHBCCcjs = require('./chunk-2IWAHBCC.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunkUEULXVW2cjs = require('./chunk-UEULXVW2.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, _chunk2IWAHBCCcjs.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
|
+
_chunk2IWAHBCCcjs.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, _chunk2IWAHBCCcjs.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
|
+
_chunk2IWAHBCCcjs.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, _chunk2IWAHBCCcjs.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
|
+
_chunk2IWAHBCCcjs.BlogCard,
|
|
500
500
|
{
|
|
501
501
|
post,
|
|
502
502
|
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, _chunk2IWAHBCCcjs.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
|
+
_chunk2IWAHBCCcjs.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, _chunk2IWAHBCCcjs.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]), () => ( _chunk2IWAHBCCcjs.buildProductReleaseCardProps));
|
|
552
552
|
const releaseProps = buildReleaseProps(release);
|
|
553
553
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
554
|
-
|
|
554
|
+
_chunk2IWAHBCCcjs.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, _chunk2IWAHBCCcjs.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
|
+
_chunk2IWAHBCCcjs.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, _chunk2IWAHBCCcjs.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
|
+
_chunk2IWAHBCCcjs.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, _chunkQOOMUGF2cjs.WhatIShippedCard, { loading: true }),
|
|
609
609
|
decode: decodeEmployeeEntryRow,
|
|
610
610
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
611
|
-
|
|
611
|
+
_chunkQOOMUGF2cjs.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, _chunkQOOMUGF2cjs.HowIWorkCard, { loading: true }),
|
|
622
622
|
decode: decodeEmployeeEntryRow,
|
|
623
623
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
624
|
-
|
|
624
|
+
_chunkQOOMUGF2cjs.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, _chunkQOOMUGF2cjs.AiPromptCard, { loading: true }),
|
|
635
635
|
decode: decodeEmployeeEntryRow,
|
|
636
636
|
render: (entry, ctx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
637
|
-
|
|
637
|
+
_chunkQOOMUGF2cjs.AiPromptCard,
|
|
638
638
|
{
|
|
639
639
|
entry,
|
|
640
640
|
placeholderUrl: ctx.placeholderUrl,
|
|
@@ -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 } = _chunkQOOMUGF2cjs.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, _chunk2IWAHBCCcjs.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(_chunkQOOMUGF2cjs.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: _chunkQOOMUGF2cjs.getContentRefLabelOrTitleCase.call(void 0, type) });
|
|
746
746
|
}
|
|
747
747
|
function orderRailTypes(types, entityType) {
|
|
748
|
-
let ordered =
|
|
748
|
+
let ordered = _chunkQOOMUGF2cjs.orderContentRefTypes.call(void 0, types);
|
|
749
749
|
if (entityType) {
|
|
750
|
-
const canonicalEntityType =
|
|
751
|
-
const sameType = ordered.filter((t) =>
|
|
750
|
+
const canonicalEntityType = _chunk2IWAHBCCcjs.canonicalContentRefType.call(void 0, entityType);
|
|
751
|
+
const sameType = ordered.filter((t) => _chunk2IWAHBCCcjs.canonicalContentRefType.call(void 0, t) === canonicalEntityType);
|
|
752
752
|
if (sameType.length > 0) {
|
|
753
|
-
ordered = [...sameType, ...ordered.filter((t) =>
|
|
753
|
+
ordered = [...sameType, ...ordered.filter((t) => _chunk2IWAHBCCcjs.canonicalContentRefType.call(void 0, t) !== canonicalEntityType)];
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
return ordered;
|
|
@@ -779,8 +779,8 @@ 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, _chunkQOOMUGF2cjs.GROUP_PAGE_SIZE);
|
|
783
|
+
const pageRefs = refs.slice((page - 1) * _chunkQOOMUGF2cjs.GROUP_PAGE_SIZE, page * _chunkQOOMUGF2cjs.GROUP_PAGE_SIZE);
|
|
784
784
|
const { items, isLoading } = useGroupItems(type, pageRefs, buildUrl, seedRows);
|
|
785
785
|
const groupPagination = totalGroupPages > 1 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNPNZAAOBcjs.Pagination, { currentPage: page, totalPages: totalGroupPages, onPageChange: setPage }) : null;
|
|
786
786
|
_react.useEffect.call(void 0, () => {
|
|
@@ -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 = _chunk2IWAHBCCcjs.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 ? _chunkQOOMUGF2cjs.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 ? _chunkQOOMUGF2cjs.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 } = _chunkQOOMUGF2cjs.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) => _chunk2IWAHBCCcjs.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: _chunk2IWAHBCCcjs.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: _chunk2IWAHBCCcjs.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 ? _chunk2IWAHBCCcjs.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, _chunk3TOWCFIKcjs.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: _chunkQOOMUGF2cjs.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 ? _chunk2IWAHBCCcjs.accentSentenceMarks.call(void 0, title) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.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 && _chunk2IWAHBCCcjs.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
|
+
_chunkQOOMUGF2cjs.GROUP_PAGE_SIZE,
|
|
1006
|
+
_nullishCoalesce((sameType ? _nullishCoalesce(sameTypeMinResults, () => ( minResults)) : minResults), () => ( _chunkQOOMUGF2cjs.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
|
|
@@ -9,7 +9,7 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
9
9
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkAO6YVNAHcjs = require('./chunk-AO6YVNAH.cjs');
|
|
13
13
|
require('./chunk-467T3LCG.cjs');
|
|
14
14
|
require('./chunk-EHANO6UE.cjs');
|
|
15
15
|
require('./chunk-IJCSQFLD.cjs');
|
|
@@ -22,8 +22,8 @@ require('./chunk-7Z536SPR.cjs');
|
|
|
22
22
|
require('./chunk-7DNL734S.cjs');
|
|
23
23
|
require('./chunk-MZ4KBSH7.cjs');
|
|
24
24
|
require('./chunk-5SZ4ILU3.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-P25RVNGX.cjs');
|
|
26
|
+
require('./chunk-2U7GXE3T.cjs');
|
|
27
27
|
require('./chunk-OBQ5WUNG.cjs');
|
|
28
28
|
require('./chunk-6CZVQ72C.cjs');
|
|
29
29
|
require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -1823,8 +1823,8 @@ require('./chunk-JKX2C3I2.cjs');
|
|
|
1823
1823
|
require('./chunk-WWUSFOJ7.cjs');
|
|
1824
1824
|
require('./chunk-SKI6NKOE.cjs');
|
|
1825
1825
|
require('./chunk-EWPR7662.cjs');
|
|
1826
|
-
require('./chunk-
|
|
1827
|
-
require('./chunk-
|
|
1826
|
+
require('./chunk-QOOMUGF2.cjs');
|
|
1827
|
+
require('./chunk-2IWAHBCC.cjs');
|
|
1828
1828
|
require('./chunk-UEULXVW2.cjs');
|
|
1829
1829
|
require('./chunk-QQT23JJ7.cjs');
|
|
1830
1830
|
require('./chunk-USUVHAQ7.cjs');
|
|
@@ -1918,7 +1918,7 @@ var getHref = () => "#";
|
|
|
1918
1918
|
function CloudTenantsScreen(_props) {
|
|
1919
1919
|
const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
|
|
1920
1920
|
const fixture = _react.useMemo.call(void 0, () => buildCloudTenantsFixture(cast), [cast]);
|
|
1921
|
-
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1921
|
+
const table = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.TenantsTableView, { rows: fixture.rows, getHref, now: fixture.now });
|
|
1922
1922
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-l)]", children: table });
|
|
1923
1923
|
}
|
|
1924
1924
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
var _chunkDTKGIG4Acjs = require('../../chunk-DTKGIG4A.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAUBR3FGYcjs = require('../../chunk-AUBR3FGY.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkAO6YVNAHcjs = require('../../chunk-AO6YVNAH.cjs');
|
|
14
14
|
require('../../chunk-467T3LCG.cjs');
|
|
15
15
|
require('../../chunk-EHANO6UE.cjs');
|
|
16
16
|
require('../../chunk-IJCSQFLD.cjs');
|
|
@@ -23,11 +23,11 @@ require('../../chunk-7Z536SPR.cjs');
|
|
|
23
23
|
require('../../chunk-7DNL734S.cjs');
|
|
24
24
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
25
25
|
require('../../chunk-5SZ4ILU3.cjs');
|
|
26
|
-
require('../../chunk-
|
|
26
|
+
require('../../chunk-P25RVNGX.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk2U7GXE3Tcjs = require('../../chunk-2U7GXE3T.cjs');
|
|
31
31
|
require('../../chunk-OBQ5WUNG.cjs');
|
|
32
32
|
require('../../chunk-6CZVQ72C.cjs');
|
|
33
33
|
require('../../chunk-ZRDVFADQ.cjs');
|
|
@@ -1837,11 +1837,11 @@ require('../../chunk-JKX2C3I2.cjs');
|
|
|
1837
1837
|
require('../../chunk-WWUSFOJ7.cjs');
|
|
1838
1838
|
require('../../chunk-SKI6NKOE.cjs');
|
|
1839
1839
|
require('../../chunk-EWPR7662.cjs');
|
|
1840
|
-
require('../../chunk-
|
|
1840
|
+
require('../../chunk-QOOMUGF2.cjs');
|
|
1841
1841
|
|
|
1842
1842
|
|
|
1843
1843
|
|
|
1844
|
-
var
|
|
1844
|
+
var _chunk2IWAHBCCcjs = require('../../chunk-2IWAHBCC.cjs');
|
|
1845
1845
|
|
|
1846
1846
|
|
|
1847
1847
|
var _chunkUEULXVW2cjs = require('../../chunk-UEULXVW2.cjs');
|
|
@@ -1886,7 +1886,7 @@ require('../../chunk-QDB2JO55.cjs');
|
|
|
1886
1886
|
|
|
1887
1887
|
// src/components/case-studies/share-experience-section.tsx
|
|
1888
1888
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1889
|
-
var DEFAULT_TITLE = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1889
|
+
var DEFAULT_TITLE = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2IWAHBCCcjs.HeadingLines, { children: [
|
|
1890
1890
|
"Share Your Experience",
|
|
1891
1891
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1892
1892
|
"with Fellow MSPs",
|
|
@@ -1923,7 +1923,7 @@ function ShareExperienceSection({
|
|
|
1923
1923
|
} = {}) {
|
|
1924
1924
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className: `flex flex-col gap-10${className ? ` ${className}` : ""}`, children: [
|
|
1925
1925
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "text-ods-text-primary", children: [
|
|
1926
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h1", children:
|
|
1926
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-primary text-h1", children: _chunk2IWAHBCCcjs.accentSentenceMarks.call(void 0, title) }),
|
|
1927
1927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "mt-6 max-w-[765px] text-h4", children: subtitle })
|
|
1928
1928
|
] }),
|
|
1929
1929
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rounded-md border border-ods-border bg-ods-bg p-10", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-10", children: [
|
|
@@ -1931,9 +1931,9 @@ function ShareExperienceSection({
|
|
|
1931
1931
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h2", children: howItWorksTitle }),
|
|
1932
1932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4", children: howItWorksBody })
|
|
1933
1933
|
] }),
|
|
1934
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1934
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAO6YVNAHcjs.BenefitCardGrid, { columns: 4, children: [
|
|
1935
1935
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1936
|
-
|
|
1936
|
+
_chunkAO6YVNAHcjs.BenefitCard,
|
|
1937
1937
|
{
|
|
1938
1938
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMJQLBIZMcjs.G2Icon, { color: "var(--social-g2)", size: 24 }) }),
|
|
1939
1939
|
title: "G2",
|
|
@@ -1942,7 +1942,7 @@ function ShareExperienceSection({
|
|
|
1942
1942
|
}
|
|
1943
1943
|
),
|
|
1944
1944
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1945
|
-
|
|
1945
|
+
_chunkAO6YVNAHcjs.BenefitCard,
|
|
1946
1946
|
{
|
|
1947
1947
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA2VKPXOBcjs.CapterraIcon, { size: 24 }) }),
|
|
1948
1948
|
title: "Capterra",
|
|
@@ -1951,7 +1951,7 @@ function ShareExperienceSection({
|
|
|
1951
1951
|
}
|
|
1952
1952
|
),
|
|
1953
1953
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1954
|
-
|
|
1954
|
+
_chunkAO6YVNAHcjs.BenefitCard,
|
|
1955
1955
|
{
|
|
1956
1956
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTLKSZG3Dcjs.TrustpilotIcon, { size: 24 }) }),
|
|
1957
1957
|
title: "TrustPilot",
|
|
@@ -1960,7 +1960,7 @@ function ShareExperienceSection({
|
|
|
1960
1960
|
}
|
|
1961
1961
|
),
|
|
1962
1962
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1963
|
-
|
|
1963
|
+
_chunkAO6YVNAHcjs.BenefitCard,
|
|
1964
1964
|
{
|
|
1965
1965
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 items-center justify-center rounded-md border border-ods-border bg-ods-bg p-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkILYW6BQNcjs.GetappIcon, { size: 24 }) }),
|
|
1966
1966
|
title: "GetApp",
|
|
@@ -1969,7 +1969,7 @@ function ShareExperienceSection({
|
|
|
1969
1969
|
}
|
|
1970
1970
|
)
|
|
1971
1971
|
] }),
|
|
1972
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1972
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAUBR3FGYcjs.ContactForm, { ...DEFAULT_CONTACT_FORM_PROPS, ...contactFormProps })
|
|
1973
1973
|
] }) })
|
|
1974
1974
|
] });
|
|
1975
1975
|
}
|
|
@@ -1986,7 +1986,7 @@ function EntityQuotesPanel({ quotes, className }) {
|
|
|
1986
1986
|
// Optional per record, so the loading state draws none: the gate leaves the loaded panel out of its comparison.
|
|
1987
1987
|
// A plain block around the one panel, so the parent's spacing applies to it as it did to the panel.
|
|
1988
1988
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-optional": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1989
|
-
|
|
1989
|
+
_chunkAO6YVNAHcjs.StackedRowsPanel,
|
|
1990
1990
|
{
|
|
1991
1991
|
className,
|
|
1992
1992
|
title: `${_chunkDTKGIG4Acjs.ENTITY_QUOTES_TITLE} \xB7 ${quotes.length}`,
|
|
@@ -2024,19 +2024,19 @@ function QuoteCardTile({ quote, decorative, className, loading, ...props }) {
|
|
|
2024
2024
|
className: _chunk63A4GZMBcjs.cn.call(void 0, QUOTE_CARD_CLASS, "hover:border-ods-border-hover", className),
|
|
2025
2025
|
...props,
|
|
2026
2026
|
children: [
|
|
2027
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2028
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2027
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.PersonCell, { size: "lg", name: `"${quote.text}"`, secondary: quote.attribution, avatarUrl: quote.logoUrl }),
|
|
2028
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2U7GXE3Tcjs.CardHitLayer, { href: quote.href, label: `${quote.text}, ${quote.attribution}`, decorative })
|
|
2029
2029
|
]
|
|
2030
2030
|
}
|
|
2031
2031
|
);
|
|
2032
2032
|
}
|
|
2033
2033
|
function QuoteCardTileSkeleton({ className }) {
|
|
2034
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Card, { variant: "panel", className: _chunk63A4GZMBcjs.cn.call(void 0, QUOTE_CARD_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading a customer story", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2034
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUEULXVW2cjs.Card, { variant: "panel", className: _chunk63A4GZMBcjs.cn.call(void 0, QUOTE_CARD_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading a customer story", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAO6YVNAHcjs.PersonCell, { loading: true, size: "lg" }) }) });
|
|
2035
2035
|
}
|
|
2036
2036
|
var QUOTE_STRIP_SKELETON_CARDS = 4;
|
|
2037
2037
|
function QuoteCardsStripSkeleton({ count, className }) {
|
|
2038
2038
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2039
|
-
|
|
2039
|
+
_chunk2U7GXE3Tcjs.CardsStrip,
|
|
2040
2040
|
{
|
|
2041
2041
|
className,
|
|
2042
2042
|
showTitle: false,
|
|
@@ -2055,7 +2055,7 @@ function QuoteCardsStrip({ quotes, loading = false, skeletonCount, className })
|
|
|
2055
2055
|
}
|
|
2056
2056
|
if (quotes.length === 0) return null;
|
|
2057
2057
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2058
|
-
|
|
2058
|
+
_chunk2U7GXE3Tcjs.CardsStrip,
|
|
2059
2059
|
{
|
|
2060
2060
|
className,
|
|
2061
2061
|
showTitle: false,
|
|
@@ -145,8 +145,6 @@ export interface EmbeddableChatProps {
|
|
|
145
145
|
* So agent mode works with ZERO wiring, yet every route stays overridable.
|
|
146
146
|
*/
|
|
147
147
|
activeAgentSlug?: string;
|
|
148
|
-
/** Optional agent switcher callback (host renders the agent picker UI). */
|
|
149
|
-
onAgentChange?: (slug: string) => void;
|
|
150
148
|
/**
|
|
151
149
|
* Per-component override for the agent display-config route. Highest
|
|
152
150
|
* precedence (over `runtime.endpoints.aiAgentConfigUrl` and the built-in
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embeddable-chat.d.ts","sourceRoot":"","sources":["../../../src/components/chat/embeddable-chat.tsx"],"names":[],"mappings":"AAyCA,OAAO,KAAiF,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"embeddable-chat.d.ts","sourceRoot":"","sources":["../../../src/components/chat/embeddable-chat.tsx"],"names":[],"mappings":"AAyCA,OAAO,KAAiF,MAAM,OAAO,CAAC;AAkBtG,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAY/E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAStE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AASvE,OAAO,EAAkB,KAAK,QAAQ,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACnG,OAAO,EAAgC,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI9F,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG1E,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIvE,OAAO,EAAgC,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,KAAK,EAAqC,UAAU,EAAwB,MAAM,yBAAyB,CAAC;AACnH,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAc,cAAc,EAAW,MAAM,uBAAuB,CAAC;AACjF,OAAO,KAAK,EACV,sBAAsB,EACtB,gBAAgB,EAEjB,MAAM,kCAAkC,CAAC;AAqD1C,MAAM,WAAW,mBAAmB;IAClC;;2CAEuC;I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S } from "@react-aria/utils";
|
|
8
8
|
import { MessageSquare } from "lucide-react";
|
|
9
9
|
import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
10
|
-
import { chatProgressLabel } from "../../chat-protocol/progress.js";
|
|
11
10
|
import { useRequiredChatRuntime } from "../../contexts/chat-runtime-context.js";
|
|
12
11
|
import { useIsHydrated } from "../../hooks/ui/use-is-hydrated.js";
|
|
13
12
|
import { cn } from "../../utils/cn.js";
|
|
@@ -137,7 +136,7 @@ function RailSlot({
|
|
|
137
136
|
// Border on the OUTER so the rail/chat divider tracks the animating
|
|
138
137
|
// boundary (and fades out with the panel) instead of vanishing early.
|
|
139
138
|
"shrink-0 overflow-hidden border-r border-ods-border transition-[width,opacity] ease-out",
|
|
140
|
-
active ? cn("
|
|
139
|
+
active ? cn("opacity-100", width) : "w-0 opacity-0",
|
|
141
140
|
className
|
|
142
141
|
),
|
|
143
142
|
children: /* @__PURE__ */ jsx("div", { className: cn("h-full", width, innerClassName), children })
|
|
@@ -360,7 +359,6 @@ function EmbeddableChatInner({
|
|
|
360
359
|
activeMode: controlledActiveMode,
|
|
361
360
|
onActiveModeChange,
|
|
362
361
|
activeAgentSlug,
|
|
363
|
-
onAgentChange: _onAgentChange,
|
|
364
362
|
aiAgentConfigUrl: aiAgentConfigUrlProp,
|
|
365
363
|
defaultActiveMode,
|
|
366
364
|
shell = "drawer",
|
|
@@ -504,7 +502,6 @@ function EmbeddableChatInner({
|
|
|
504
502
|
const {
|
|
505
503
|
messages: rawMessages,
|
|
506
504
|
isLoading: chatLoading,
|
|
507
|
-
streamingProgress,
|
|
508
505
|
sendMessage: sendMessageRaw,
|
|
509
506
|
discussRef,
|
|
510
507
|
stopMessage,
|
|
@@ -1492,7 +1489,6 @@ function EmbeddableChatInner({
|
|
|
1492
1489
|
fill: previewMode,
|
|
1493
1490
|
appearance,
|
|
1494
1491
|
isTyping: chatLoading,
|
|
1495
|
-
typingMessage: streamingProgress ? chatProgressLabel(streamingProgress) : void 0,
|
|
1496
1492
|
pendingApprovals,
|
|
1497
1493
|
autoScroll: !previewMode,
|
|
1498
1494
|
pinBottom: previewMode,
|
|
@@ -168,7 +168,7 @@ function LoadedBlogCard({
|
|
|
168
168
|
alt: post.title,
|
|
169
169
|
fill: true,
|
|
170
170
|
priority,
|
|
171
|
-
className: cn("object-cover object-center", "
|
|
171
|
+
className: cn("object-cover object-center", "transition-all ease-out", "hover:scale-[1.02]"),
|
|
172
172
|
sizes: IMAGE_SLOT.card,
|
|
173
173
|
unoptimized: true,
|
|
174
174
|
onError: onImageError
|