@flamingo-stack/openframe-frontend-core 0.0.816 → 0.0.817
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-NLT2JVI7.cjs → case-study-card-IZBMHA6R.cjs} +3 -3
- package/dist/{chunk-7ERD34HQ.cjs → chunk-24M2JYM5.cjs} +566 -774
- package/dist/{chunk-3E4FIJAM.cjs → chunk-4ROR52OW.cjs} +15 -15
- package/dist/{chunk-SWBLTIN4.cjs → chunk-5TSYOIIZ.cjs} +54 -52
- package/dist/{chunk-JH65CEO4.cjs → chunk-6F4YGHGM.cjs} +36 -36
- package/dist/{chunk-VDXI26G7.cjs → chunk-7KBHLP4E.cjs} +81 -78
- package/dist/{chunk-CNTBGJA7.cjs → chunk-A34UNP5V.cjs} +65 -1
- package/dist/{chunk-633NTKO2.cjs → chunk-BL2J5RJK.cjs} +31 -53
- package/dist/{chunk-7NYWHEQM.cjs → chunk-C2OUXL3Q.cjs} +15 -15
- package/dist/{chunk-53JJLHJM.cjs → chunk-DSBRWP5M.cjs} +20 -20
- package/dist/chunk-DVHSYPDB.cjs +471 -0
- package/dist/{chunk-5TUR7O7H.cjs → chunk-EX7M3VQC.cjs} +90 -90
- package/dist/{chunk-EJCUAADF.cjs → chunk-F2LVBRHC.cjs} +4 -4
- package/dist/{chunk-GAR2IIU6.cjs → chunk-IM366HS6.cjs} +105 -157
- package/dist/{chunk-FUEK43FL.cjs → chunk-IOFIHVVW.cjs} +206 -200
- package/dist/{chunk-JOOZTRXQ.cjs → chunk-JMOCM2SW.cjs} +4 -4
- package/dist/{chunk-PAI4A3UM.cjs → chunk-K5IICQNF.cjs} +61 -54
- package/dist/{chunk-JOKOQOLJ.cjs → chunk-LUID2IB3.cjs} +2 -2
- package/dist/{chunk-L7W4455K.cjs → chunk-MAHJY2PO.cjs} +3 -3
- package/dist/{chunk-4PMD3JUC.cjs → chunk-NPNZAAOB.cjs} +2 -2
- package/dist/{chunk-EB7YAUER.cjs → chunk-P7JQGOX4.cjs} +19 -19
- package/dist/{chunk-O6VWD2SB.cjs → chunk-RDHF3F5R.cjs} +3 -3
- package/dist/{chunk-HM7VCQSX.cjs → chunk-SBFBNOKU.cjs} +4 -4
- package/dist/{chunk-7O7EX7HQ.cjs → chunk-T266OITJ.cjs} +28 -20
- package/dist/{chunk-ZAWHRYJZ.cjs → chunk-TKEYWSDZ.cjs} +45 -45
- package/dist/{chunk-F4ZJRMMM.cjs → chunk-UDLDXVY4.cjs} +8 -8
- package/dist/{chunk-Y6MJMPHV.cjs → chunk-UEULXVW2.cjs} +32 -84
- package/dist/{chunk-RYJJHSHV.cjs → chunk-UFBVOBYR.cjs} +23 -23
- package/dist/{chunk-IKB6AZPV.cjs → chunk-ZECG6GU5.cjs} +2 -2
- package/dist/{chunk-3ELDGEM2.cjs → chunk-ZP4JMX7G.cjs} +87 -84
- package/dist/{cloud-tenants-SRTX2FZC.cjs → cloud-tenants-NMAXIJLL.cjs} +11 -11
- package/dist/components/announcement-bar.d.ts.map +1 -1
- package/dist/components/announcement-bar.js +5 -5
- package/dist/components/case-studies/index.cjs +26 -26
- package/dist/components/chat/chat-markdown-link.d.ts +15 -0
- package/dist/components/chat/chat-markdown-link.d.ts.map +1 -0
- package/dist/components/chat/chat-markdown-link.js +22 -0
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.js +3 -9
- package/dist/components/chat/embeddable-chat.d.ts +4 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +30 -67
- package/dist/components/chat/entity-cards/chat-card-disclosure.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/chat-card-disclosure.js +8 -11
- package/dist/components/chat/entity-cards/dispatch.d.ts +5 -5
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +18 -17
- package/dist/components/chat/entity-cards/github-activity-card.d.ts +1 -1
- package/dist/components/chat/entity-cards/use-entity-card-link.d.ts +3 -2
- package/dist/components/chat/entity-cards/use-entity-card-link.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/use-entity-card-link.js +6 -4
- package/dist/components/chat/index.cjs +28 -21
- package/dist/components/chat/index.d.ts +2 -2
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +4 -3
- package/dist/components/chat/{inline-app-link-chip.d.ts → inline-chip.d.ts} +1 -14
- package/dist/components/chat/inline-chip.d.ts.map +1 -0
- package/dist/components/chat/inline-chip.js +27 -0
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts +45 -11
- package/dist/components/chat/nav-link-anchor-via-runtime.d.ts.map +1 -1
- package/dist/components/chat/nav-link-anchor-via-runtime.js +32 -24
- package/dist/components/chat/source-action-button.d.ts +12 -3
- package/dist/components/chat/source-action-button.d.ts.map +1 -1
- package/dist/components/chat/source-action-button.js +41 -26
- package/dist/components/chat/types/component.types.d.ts +1 -1
- package/dist/components/chat/types/message.types.d.ts +1 -1
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-nav-resolution.d.ts +1 -6
- package/dist/components/chat/utils/chat-nav-resolution.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-nav-resolution.js +2 -3
- package/dist/components/chat/utils/decide-new-tab.d.ts +0 -3
- package/dist/components/chat/utils/decide-new-tab.d.ts.map +1 -1
- package/dist/components/chat/utils/decide-new-tab.js +0 -1
- package/dist/components/chat/utils/execute-navigation.d.ts +36 -34
- package/dist/components/chat/utils/execute-navigation.d.ts.map +1 -1
- package/dist/components/chat/utils/execute-navigation.js +23 -19
- package/dist/components/chat/utils/index.d.ts +5 -5
- package/dist/components/chat/utils/index.d.ts.map +1 -1
- package/dist/components/chat/utils/index.js +14 -6
- package/dist/components/chat/utils/nav-anchor-props.d.ts +35 -8
- package/dist/components/chat/utils/nav-anchor-props.d.ts.map +1 -1
- package/dist/components/chat/utils/nav-anchor-props.js +14 -5
- package/dist/components/chat/utils/new-tab-rel.d.ts +15 -0
- package/dist/components/chat/utils/new-tab-rel.d.ts.map +1 -0
- package/dist/components/chat/utils/new-tab-rel.js +25 -0
- package/dist/components/contact/index.cjs +12 -12
- package/dist/components/docs/index.cjs +15 -15
- package/dist/components/embeds/index.cjs +12 -12
- package/dist/components/faq/index.cjs +13 -13
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +4 -1
- package/dist/components/features/index.cjs +11 -11
- package/dist/components/help-center-pages/index.cjs +105 -105
- package/dist/components/index.cjs +91 -83
- package/dist/components/meeting-scheduler/index.cjs +50 -50
- package/dist/components/navigation/app-header.d.ts +1 -4
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/app-header.js +0 -2
- package/dist/components/navigation/index.cjs +14 -14
- package/dist/components/navigation/ticket-alerts-button.d.ts +1 -4
- package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
- package/dist/components/navigation/ticket-alerts-button.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +14 -14
- package/dist/components/product-demo/index.cjs +20 -20
- package/dist/components/related-content/card-registry.d.ts +1 -1
- package/dist/components/related-content/index.cjs +7 -7
- package/dist/components/related-content/related-content-section.d.ts +3 -3
- package/dist/components/related-content/related-content-section.d.ts.map +1 -1
- package/dist/components/related-content/related-content-section.js +5 -3
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts +10 -3
- package/dist/components/shared/doc-search/resolve-search-result-action.d.ts.map +1 -1
- package/dist/components/shared/doc-search/resolve-search-result-action.js +8 -17
- package/dist/components/shared/doc-search/use-doc-search.d.ts.map +1 -1
- package/dist/components/shared/doc-search/use-doc-search.js +15 -27
- package/dist/components/shared/product-release/product-release-card.d.ts +2 -2
- package/dist/components/shared/product-release/product-releases-view.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-releases-view.js +1 -3
- package/dist/components/tickets/index.cjs +18 -18
- package/dist/components/tickets/ticket-detail-drawer.d.ts.map +1 -1
- package/dist/components/tickets/ticket-detail-drawer.js +6 -3
- package/dist/components/tickets/types.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/hover-dropdown.d.ts +2 -2
- package/dist/components/ui/index.cjs +31 -23
- package/dist/components/ui/service-card.d.ts.map +1 -1
- package/dist/components/ui/service-card.js +4 -1
- package/dist/components/vendor-display-button.d.ts.map +1 -1
- package/dist/components/vendor-display-button.js +4 -1
- package/dist/contexts/chat-runtime-context.d.ts +11 -11
- package/dist/contexts/chat-runtime-context.d.ts.map +1 -1
- package/dist/{devices-DL4YU64N.cjs → devices-QBKWVHE6.cjs} +12 -12
- package/dist/{embeddable-chat-YRKMPFDY.cjs → embeddable-chat-WNPCPMDL.cjs} +96 -137
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/use-contact-submission.d.ts.map +1 -1
- package/dist/hooks/use-contact-submission.js +11 -8
- package/dist/index.cjs +40 -34
- package/dist/{knowledge-VQW5JL2Z.cjs → knowledge-FSAYWM25.cjs} +12 -12
- package/dist/{logs-IY3WBLMW.cjs → logs-OZX4SYHG.cjs} +19 -19
- package/dist/{policies-IXWTWMJO.cjs → policies-LPCUCTLX.cjs} +15 -15
- package/dist/{scripts-D5CLO5EG.cjs → scripts-ZNFZSONW.cjs} +16 -16
- package/dist/{software-update-ULNP6CKJ.cjs → software-update-BRYOVQVY.cjs} +14 -14
- package/dist/utils/index.cjs +116 -89
- package/dist/utils/open-in-new-tab.d.ts +2 -1
- package/dist/utils/open-in-new-tab.d.ts.map +1 -1
- package/dist/utils/open-in-new-tab.js +2 -1
- package/dist/utils/scroll-into-view.d.ts +1 -1
- package/eslint-config/base.js +11 -0
- package/eslint-config/navigation.js +142 -0
- package/package.json +1 -1
- package/src/components/announcement-bar.tsx +8 -6
- package/src/components/chat/chat-markdown-link.tsx +42 -0
- package/src/components/chat/chat-message-enhanced.tsx +10 -36
- package/src/components/chat/embeddable-chat.tsx +63 -106
- package/src/components/chat/entity-cards/chat-card-disclosure.tsx +9 -13
- package/src/components/chat/entity-cards/dispatch.tsx +45 -35
- package/src/components/chat/entity-cards/github-activity-card.tsx +1 -1
- package/src/components/chat/entity-cards/use-entity-card-link.ts +11 -16
- package/src/components/chat/index.ts +3 -1
- package/src/components/chat/{inline-app-link-chip.tsx → inline-chip.tsx} +1 -27
- package/src/components/chat/nav-link-anchor-via-runtime.tsx +73 -33
- package/src/components/chat/source-action-button.tsx +57 -33
- package/src/components/chat/types/component.types.ts +1 -1
- package/src/components/chat/types/message.types.ts +1 -1
- package/src/components/chat/utils/chat-nav-resolution.ts +3 -8
- package/src/components/chat/utils/decide-new-tab.ts +0 -3
- package/src/components/chat/utils/execute-navigation.ts +58 -58
- package/src/components/chat/utils/index.ts +13 -6
- package/src/components/chat/utils/nav-anchor-props.ts +56 -9
- package/src/components/chat/utils/new-tab-rel.ts +39 -0
- package/src/components/features/devices/devices-table-columns.tsx +4 -1
- package/src/components/navigation/app-header.tsx +0 -5
- package/src/components/navigation/ticket-alerts-button.tsx +7 -8
- package/src/components/related-content/card-registry.tsx +1 -1
- package/src/components/related-content/related-content-section.tsx +10 -10
- package/src/components/shared/doc-search/resolve-search-result-action.ts +19 -33
- package/src/components/shared/doc-search/use-doc-search.ts +21 -44
- package/src/components/shared/product-release/product-release-card.tsx +4 -4
- package/src/components/shared/product-release/product-releases-view.tsx +2 -5
- package/src/components/tickets/ticket-detail-drawer.tsx +7 -4
- package/src/components/tickets/types.ts +1 -1
- package/src/components/ui/button/button.tsx +2 -2
- package/src/components/ui/hover-dropdown.tsx +2 -2
- package/src/components/ui/service-card.tsx +4 -1
- package/src/components/vendor-display-button.tsx +5 -2
- package/src/contexts/chat-runtime-context.tsx +15 -12
- package/src/hooks/use-contact-submission.ts +13 -8
- package/src/utils/index.ts +1 -1
- package/src/utils/open-in-new-tab.ts +4 -2
- package/src/utils/scroll-into-view.ts +1 -1
- package/dist/chunk-RD66AGUI.cjs +0 -156
- package/dist/components/chat/inline-app-link-chip.d.ts.map +0 -1
- package/dist/components/chat/inline-app-link-chip.js +0 -37
|
@@ -9,20 +9,21 @@ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
|
|
|
9
9
|
var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkIOFIHVVWcjs = require('./chunk-IOFIHVVW.cjs');
|
|
13
13
|
require('./chunk-467T3LCG.cjs');
|
|
14
14
|
require('./chunk-EHANO6UE.cjs');
|
|
15
15
|
require('./chunk-IJCSQFLD.cjs');
|
|
16
16
|
require('./chunk-HQQE74RO.cjs');
|
|
17
17
|
require('./chunk-DEY6XXGO.cjs');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-T266OITJ.cjs');
|
|
19
19
|
require('./chunk-APOMNC7H.cjs');
|
|
20
20
|
require('./chunk-24I6RFVU.cjs');
|
|
21
21
|
require('./chunk-7Z536SPR.cjs');
|
|
22
|
+
require('./chunk-7DNL734S.cjs');
|
|
22
23
|
require('./chunk-MZ4KBSH7.cjs');
|
|
23
24
|
require('./chunk-5SZ4ILU3.cjs');
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
25
|
+
require('./chunk-7KBHLP4E.cjs');
|
|
26
|
+
require('./chunk-24M2JYM5.cjs');
|
|
26
27
|
require('./chunk-OBQ5WUNG.cjs');
|
|
27
28
|
require('./chunk-6CZVQ72C.cjs');
|
|
28
29
|
require('./chunk-ZRDVFADQ.cjs');
|
|
@@ -1816,16 +1817,15 @@ require('./chunk-TMVC7S2R.cjs');
|
|
|
1816
1817
|
require('./chunk-IYHH5EIO.cjs');
|
|
1817
1818
|
require('./chunk-XIBCMGBW.cjs');
|
|
1818
1819
|
require('./chunk-NONMZ5WJ.cjs');
|
|
1819
|
-
require('./chunk-
|
|
1820
|
+
require('./chunk-A34UNP5V.cjs');
|
|
1820
1821
|
require('./chunk-QDDBOCG3.cjs');
|
|
1821
1822
|
require('./chunk-JKX2C3I2.cjs');
|
|
1822
|
-
require('./chunk-7DNL734S.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-
|
|
1828
|
-
require('./chunk-
|
|
1826
|
+
require('./chunk-UDLDXVY4.cjs');
|
|
1827
|
+
require('./chunk-IM366HS6.cjs');
|
|
1828
|
+
require('./chunk-UEULXVW2.cjs');
|
|
1829
1829
|
require('./chunk-QQT23JJ7.cjs');
|
|
1830
1830
|
require('./chunk-USUVHAQ7.cjs');
|
|
1831
1831
|
require('./chunk-25HBH4J6.cjs');
|
|
@@ -1838,7 +1838,7 @@ require('./chunk-6VOOPMP5.cjs');
|
|
|
1838
1838
|
require('./chunk-ORO54HDF.cjs');
|
|
1839
1839
|
require('./chunk-RUHKTWGB.cjs');
|
|
1840
1840
|
require('./chunk-BLH2SFOO.cjs');
|
|
1841
|
-
require('./chunk-
|
|
1841
|
+
require('./chunk-DVHSYPDB.cjs');
|
|
1842
1842
|
require('./chunk-FX35L4Y6.cjs');
|
|
1843
1843
|
require('./chunk-NTPX5GXI.cjs');
|
|
1844
1844
|
require('./chunk-MG3HJIGG.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, _chunkIOFIHVVWcjs.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
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"announcement-bar.d.ts","sourceRoot":"","sources":["../../src/components/announcement-bar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"announcement-bar.d.ts","sourceRoot":"","sources":["../../src/components/announcement-bar.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAgB,oBAAoB,EAAwB,MAAM,uBAAuB,CAAC;AAmEtG,wBAAgB,eAAe,CAAC,EAC9B,mBAAmB,EACnB,WAAmB,EACnB,WAAkB,EAClB,OAAe,EACf,SAAS,GACV,GAAE,oBAAyB,sCAkS3B"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { X } from "lucide-react";
|
|
4
4
|
import { useEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
5
|
+
import { useChatRuntime } from "../contexts/chat-runtime-context.js";
|
|
5
6
|
import { useEndpointsRuntime } from "../contexts/endpoints-runtime-context.js";
|
|
6
7
|
import { usePathname } from "../embed-shims/next-navigation.js";
|
|
7
8
|
import { useSelfFetch } from "../hooks/use-self-fetch.js";
|
|
@@ -15,6 +16,7 @@ import { isAnnouncementOnSurface } from "../utils/announcement-surface.js";
|
|
|
15
16
|
import { getAppType } from "../utils/app-config.js";
|
|
16
17
|
import { pickReadableTextColor } from "../utils/color-analysis.js";
|
|
17
18
|
import { pathMatchesAny } from "../utils/path-pattern.js";
|
|
19
|
+
import { executeNavigationImperative, executeNewTabNavigation } from "./chat/utils/execute-navigation.js";
|
|
18
20
|
import { EntityIcon } from "./icon-display.js";
|
|
19
21
|
import { AnnouncementBarView } from "./ui/announcement-bar-view.js";
|
|
20
22
|
import { Button } from "./ui/button/index.js";
|
|
@@ -29,6 +31,7 @@ function AnnouncementBar({
|
|
|
29
31
|
} = {}) {
|
|
30
32
|
const platform = getAppType();
|
|
31
33
|
const pathname = usePathname();
|
|
34
|
+
const runtime = useChatRuntime();
|
|
32
35
|
const endpoints = useEndpointsRuntime();
|
|
33
36
|
const url = previewMode ? null : endpoints?.announcementsUrl ?? null;
|
|
34
37
|
const initialData = useMemo(
|
|
@@ -80,11 +83,8 @@ function AnnouncementBar({
|
|
|
80
83
|
} catch {
|
|
81
84
|
return;
|
|
82
85
|
}
|
|
83
|
-
if (announcement.cta_target === "_blank") {
|
|
84
|
-
|
|
85
|
-
} else {
|
|
86
|
-
window.location.href = safeUrl;
|
|
87
|
-
}
|
|
86
|
+
if (announcement.cta_target === "_blank") executeNewTabNavigation({ runtime, href: safeUrl });
|
|
87
|
+
else executeNavigationImperative({ runtime, href: safeUrl, openIn: "same-tab" });
|
|
88
88
|
};
|
|
89
89
|
if (!displayAnnouncement) return null;
|
|
90
90
|
const themeScope = pickReadableTextColor(displayAnnouncement.background_color) === "dark" ? "theme-light" : "theme-dark";
|
|
@@ -4,29 +4,30 @@
|
|
|
4
4
|
var _chunkDTKGIG4Acjs = require('../../chunk-DTKGIG4A.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4ROR52OWcjs = require('../../chunk-4ROR52OW.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkIOFIHVVWcjs = require('../../chunk-IOFIHVVW.cjs');
|
|
14
14
|
require('../../chunk-467T3LCG.cjs');
|
|
15
15
|
require('../../chunk-EHANO6UE.cjs');
|
|
16
16
|
require('../../chunk-IJCSQFLD.cjs');
|
|
17
17
|
require('../../chunk-HQQE74RO.cjs');
|
|
18
18
|
require('../../chunk-DEY6XXGO.cjs');
|
|
19
|
-
require('../../chunk-
|
|
19
|
+
require('../../chunk-T266OITJ.cjs');
|
|
20
20
|
require('../../chunk-APOMNC7H.cjs');
|
|
21
21
|
require('../../chunk-24I6RFVU.cjs');
|
|
22
22
|
require('../../chunk-7Z536SPR.cjs');
|
|
23
|
+
require('../../chunk-7DNL734S.cjs');
|
|
23
24
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
24
25
|
require('../../chunk-5SZ4ILU3.cjs');
|
|
25
|
-
require('../../chunk-
|
|
26
|
+
require('../../chunk-7KBHLP4E.cjs');
|
|
26
27
|
|
|
27
28
|
|
|
28
29
|
|
|
29
|
-
var
|
|
30
|
+
var _chunk24M2JYM5cjs = require('../../chunk-24M2JYM5.cjs');
|
|
30
31
|
require('../../chunk-OBQ5WUNG.cjs');
|
|
31
32
|
require('../../chunk-6CZVQ72C.cjs');
|
|
32
33
|
require('../../chunk-ZRDVFADQ.cjs');
|
|
@@ -1830,21 +1831,20 @@ require('../../chunk-XIBCMGBW.cjs');
|
|
|
1830
1831
|
|
|
1831
1832
|
|
|
1832
1833
|
var _chunkNONMZ5WJcjs = require('../../chunk-NONMZ5WJ.cjs');
|
|
1833
|
-
require('../../chunk-
|
|
1834
|
+
require('../../chunk-A34UNP5V.cjs');
|
|
1834
1835
|
require('../../chunk-QDDBOCG3.cjs');
|
|
1835
1836
|
require('../../chunk-JKX2C3I2.cjs');
|
|
1836
|
-
require('../../chunk-7DNL734S.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-UDLDXVY4.cjs');
|
|
1841
1841
|
|
|
1842
1842
|
|
|
1843
1843
|
|
|
1844
|
-
var
|
|
1844
|
+
var _chunkIM366HS6cjs = require('../../chunk-IM366HS6.cjs');
|
|
1845
1845
|
|
|
1846
1846
|
|
|
1847
|
-
var
|
|
1847
|
+
var _chunkUEULXVW2cjs = require('../../chunk-UEULXVW2.cjs');
|
|
1848
1848
|
require('../../chunk-QQT23JJ7.cjs');
|
|
1849
1849
|
require('../../chunk-USUVHAQ7.cjs');
|
|
1850
1850
|
require('../../chunk-25HBH4J6.cjs');
|
|
@@ -1857,7 +1857,7 @@ require('../../chunk-6VOOPMP5.cjs');
|
|
|
1857
1857
|
require('../../chunk-ORO54HDF.cjs');
|
|
1858
1858
|
require('../../chunk-RUHKTWGB.cjs');
|
|
1859
1859
|
require('../../chunk-BLH2SFOO.cjs');
|
|
1860
|
-
require('../../chunk-
|
|
1860
|
+
require('../../chunk-DVHSYPDB.cjs');
|
|
1861
1861
|
require('../../chunk-FX35L4Y6.cjs');
|
|
1862
1862
|
require('../../chunk-NTPX5GXI.cjs');
|
|
1863
1863
|
require('../../chunk-MG3HJIGG.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, _chunkIM366HS6cjs.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: _chunkIM366HS6cjs.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, _chunkIOFIHVVWcjs.BenefitCardGrid, { columns: 4, children: [
|
|
1935
1935
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1936
|
-
|
|
1936
|
+
_chunkIOFIHVVWcjs.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
|
+
_chunkIOFIHVVWcjs.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
|
+
_chunkIOFIHVVWcjs.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
|
+
_chunkIOFIHVVWcjs.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, _chunk4ROR52OWcjs.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
|
+
_chunkIOFIHVVWcjs.StackedRowsPanel,
|
|
1990
1990
|
{
|
|
1991
1991
|
className,
|
|
1992
1992
|
title: `${_chunkDTKGIG4Acjs.ENTITY_QUOTES_TITLE} \xB7 ${quotes.length}`,
|
|
@@ -2017,26 +2017,26 @@ var QUOTE_CARD_CLASS = "relative p-[var(--spacing-system-sf)]";
|
|
|
2017
2017
|
function QuoteCardTile({ quote, decorative, className, loading, ...props }) {
|
|
2018
2018
|
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading || !quote) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuoteCardTileSkeleton, { className });
|
|
2019
2019
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2020
|
-
|
|
2020
|
+
_chunkUEULXVW2cjs.Card,
|
|
2021
2021
|
{
|
|
2022
2022
|
variant: "panel",
|
|
2023
2023
|
"aria-hidden": decorative || void 0,
|
|
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, _chunkIOFIHVVWcjs.PersonCell, { size: "lg", name: `"${quote.text}"`, secondary: quote.attribution, avatarUrl: quote.logoUrl }),
|
|
2028
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk24M2JYM5cjs.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,
|
|
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, _chunkIOFIHVVWcjs.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
|
+
_chunk24M2JYM5cjs.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
|
+
_chunk24M2JYM5cjs.CardsStrip,
|
|
2059
2059
|
{
|
|
2060
2060
|
className,
|
|
2061
2061
|
showTitle: false,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A link in a chat answer's markdown, through the host's `NavLinkAnchor` exactly as every chat link is routed. What it
|
|
3
|
+
* draws follows the navigation decision (`navLinkTarget`): a link the runtime keeps in this window is a place in the
|
|
4
|
+
* app, drawn as the inline box the host's entity mentions use (`InlineChip`); any other link (another site, a hub page
|
|
5
|
+
* from an embedded chat, a `mailto:`), and any link outside a chat runtime, stays a plain link.
|
|
6
|
+
*/
|
|
7
|
+
import type React from 'react';
|
|
8
|
+
import type { NavLinkAnchorComponent } from './types/component.types';
|
|
9
|
+
export declare function ChatMarkdownLink({ anchor: Anchor, href, className, children, ...anchorProps }: {
|
|
10
|
+
anchor: NavLinkAnchorComponent;
|
|
11
|
+
href: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}): React.ReactElement;
|
|
15
|
+
//# sourceMappingURL=chat-markdown-link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-markdown-link.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-markdown-link.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAGtE,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EAAE,MAAM,EACd,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,WAAW,EACf,EAAE;IACD,MAAM,EAAE,sBAAsB,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,KAAK,CAAC,YAAY,CAcrB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useChatRuntime } from "../../contexts/chat-runtime-context.js";
|
|
4
|
+
import { BrowserWindowIcon } from "../icons-v2-generated/coding/browser-window-icon.js";
|
|
5
|
+
import { InlineChip } from "./inline-chip.js";
|
|
6
|
+
import { navLinkTarget } from "./utils/nav-anchor-props.js";
|
|
7
|
+
function ChatMarkdownLink({
|
|
8
|
+
anchor: Anchor,
|
|
9
|
+
href,
|
|
10
|
+
className,
|
|
11
|
+
children,
|
|
12
|
+
...anchorProps
|
|
13
|
+
}) {
|
|
14
|
+
const runtime = useChatRuntime();
|
|
15
|
+
if (!runtime || navLinkTarget(runtime, href).isNewTab) {
|
|
16
|
+
return /* @__PURE__ */ jsx(Anchor, { href, className, ...anchorProps, children });
|
|
17
|
+
}
|
|
18
|
+
return /* @__PURE__ */ jsx(Anchor, { href, ...anchorProps, className: "no-underline", children: /* @__PURE__ */ jsx(InlineChip, { icon: /* @__PURE__ */ jsx(BrowserWindowIcon, {}), label: children, className: "hover:bg-ods-bg-hover" }) });
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
ChatMarkdownLink
|
|
22
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-message-enhanced.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-message-enhanced.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"chat-message-enhanced.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-message-enhanced.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuE,MAAM,OAAO,CAAC;AAwC5F,OAAO,KAAK,EAA8C,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAqtBpG,QAAA,MAAM,2BAA2B,4FAmC/B,CAAC;AAIH,OAAO,EAAE,2BAA2B,IAAI,mBAAmB,EAAE,CAAC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React, { forwardRef, memo, useEffect, useMemo, useRef } from "react";
|
|
4
4
|
import { createCardMarkerScanner } from "../../chat-protocol/card-marker.js";
|
|
5
|
-
import { useChatRuntime } from "../../contexts/chat-runtime-context.js";
|
|
6
5
|
import Link from "../../embed-shims/next-link.js";
|
|
7
6
|
import { cn } from "../../utils/cn.js";
|
|
8
7
|
import { isToday } from "../../utils/date-utils.js";
|
|
@@ -15,6 +14,7 @@ import { ApprovalRequestMessage } from "./approval-request-message.js";
|
|
|
15
14
|
import { AskDisplay } from "./ask-display.js";
|
|
16
15
|
import { ChatAppearanceContext, useChatAppearance } from "./chat-appearance-context.js";
|
|
17
16
|
import { ChatContextChipStrip } from "./chat-context-picker.js";
|
|
17
|
+
import { ChatMarkdownLink } from "./chat-markdown-link.js";
|
|
18
18
|
import {
|
|
19
19
|
CHAT_MESSAGE_FACE_PX,
|
|
20
20
|
CHAT_MESSAGE_HEADER_CLASS,
|
|
@@ -29,7 +29,6 @@ import { ContextCompactionDisplay } from "./context-compaction-display.js";
|
|
|
29
29
|
import { BlockCard } from "./entity-cards/block-card.js";
|
|
30
30
|
import { ErrorMessageDisplay } from "./error-message-display.js";
|
|
31
31
|
import { EscalationOfferMessage } from "./escalation-offer-message.js";
|
|
32
|
-
import { InlineAppLinkChip } from "./inline-app-link-chip.js";
|
|
33
32
|
import { remarkCardLinks } from "./remark-card-links.js";
|
|
34
33
|
import { remarkMentionChips } from "./remark-mention-chips.js";
|
|
35
34
|
import { remarkStripCitations } from "./remark-strip-citations.js";
|
|
@@ -40,7 +39,6 @@ import { TicketEscalatedMessage } from "./ticket-escalated-message.js";
|
|
|
40
39
|
import { TicketEventMessage } from "./ticket-event-message.js";
|
|
41
40
|
import { ToolExecutionDisplay } from "./tool-execution-display.js";
|
|
42
41
|
import { CHAT_APPEARANCE } from "./types/chat.types.js";
|
|
43
|
-
import { computeIsNewTab } from "./utils/nav-anchor-props.js";
|
|
44
42
|
const MENTION_MARKER_REGEX = /(^|[^\w@])@[a-zA-Z]+:([A-Za-z0-9_.+/=-]*[A-Za-z0-9_+/=])/g;
|
|
45
43
|
const CARD_MARKER_REGEX = createCardMarkerScanner();
|
|
46
44
|
function formatMessageTimestamp(timestamp) {
|
|
@@ -213,7 +211,6 @@ const ChatMessageEnhanced = forwardRef(
|
|
|
213
211
|
}, [renderingPlan]);
|
|
214
212
|
const renderingPlanRef = useRef(renderingPlan);
|
|
215
213
|
renderingPlanRef.current = renderingPlan;
|
|
216
|
-
const chatRuntime = useChatRuntime();
|
|
217
214
|
const cardComponentOverrides = useMemo(() => {
|
|
218
215
|
if (!hasMarkerSupport && !hasMentionSupport) return void 0;
|
|
219
216
|
return {
|
|
@@ -244,16 +241,13 @@ const ChatMessageEnhanced = forwardRef(
|
|
|
244
241
|
return /* @__PURE__ */ jsx("span", { className: "text-ods-text-secondary opacity-60", children: cardId });
|
|
245
242
|
}
|
|
246
243
|
}
|
|
247
|
-
if (typeof href === "string" && !href.startsWith("#") && chatRuntime && !computeIsNewTab(chatRuntime, href, null)) {
|
|
248
|
-
return /* @__PURE__ */ jsx(InlineAppLinkChip, { href, anchor: NavLinkAnchor, children });
|
|
249
|
-
}
|
|
250
244
|
if (typeof href === "string" && NavLinkAnchor && !href.startsWith("#")) {
|
|
251
|
-
return /* @__PURE__ */ jsx(
|
|
245
|
+
return /* @__PURE__ */ jsx(ChatMarkdownLink, { anchor: NavLinkAnchor, href, className: linkClassName, ...rest, children });
|
|
252
246
|
}
|
|
253
247
|
return /* @__PURE__ */ jsx(Link, { href, className: linkClassName, ...rest, children });
|
|
254
248
|
}
|
|
255
249
|
};
|
|
256
|
-
}, [hasMarkerSupport, hasMentionSupport, renderMention, NavLinkAnchor
|
|
250
|
+
}, [hasMarkerSupport, hasMentionSupport, renderMention, NavLinkAnchor]);
|
|
257
251
|
const renderSegmentBody = (segIndex, text, isStreaming) => {
|
|
258
252
|
const parts = renderingPlan?.partsBySegment.get(segIndex);
|
|
259
253
|
if (!parts || parts.length === 0) {
|
|
@@ -21,6 +21,10 @@ export interface EmbeddableChatProps {
|
|
|
21
21
|
* `externalUrl: null` resolve to `getPlatformUrl(chipBasePlatform) +
|
|
22
22
|
* '/knowledge-base/' + path` and open in a new tab. */
|
|
23
23
|
chipBasePlatform?: string;
|
|
24
|
+
/** How many source chips the strip under an answer draws while the answer is written (default 1). `0` draws no
|
|
25
|
+
* strip until the answer ends: for a host whose answers rarely cite sources, where a strip that appears and then
|
|
26
|
+
* goes away would move the thread. */
|
|
27
|
+
sourceSkeletonCount?: number;
|
|
24
28
|
/** DB-driven list of enabled RAG table ids (chip catalog filter).
|
|
25
29
|
* Prefetched server-side by the embedder's wrapper. Empty/null → no
|
|
26
30
|
* empty-state chips render. */
|
|
@@ -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;AAmBtG,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;A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