@mgamadeus/ddd-agents 0.3.13 → 0.3.14
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/README.md +33 -0
- package/dist/chat.js +12 -12
- package/dist/chat.js.map +1 -1
- package/dist/chunks/{ConversationMessageInputComposerWidgets-CPV4BK3v.js → ConversationMessageInputComposerWidgets-D5NlHJlV.js} +5 -5
- package/dist/chunks/{ConversationMessageInputComposerWidgets-CPV4BK3v.js.map → ConversationMessageInputComposerWidgets-D5NlHJlV.js.map} +1 -1
- package/dist/chunks/{WebSearchResultsConversationWidget-DTnsU_C-.js → WebSearchResultsConversationWidget-Dpy5qp4j.js} +237 -120
- package/dist/chunks/WebSearchResultsConversationWidget-Dpy5qp4j.js.map +1 -0
- package/dist/chunks/{canvas-feature-flags-BmmxC3bz.js → canvas-feature-flags-Cn8xBliA.js} +3 -2
- package/dist/chunks/{canvas-feature-flags-BmmxC3bz.js.map → canvas-feature-flags-Cn8xBliA.js.map} +1 -1
- package/dist/chunks/{canvas-reducers-8GHP6886.js → canvas-reducers-CgL_H6Oc.js} +2 -3
- package/dist/chunks/{canvas-reducers-8GHP6886.js.map → canvas-reducers-CgL_H6Oc.js.map} +1 -1
- package/dist/chunks/{canvas-title-slot-context-C43hdu4i.js → canvas-title-slot-context-_Kf45ABB.js} +3 -3
- package/dist/chunks/{canvas-title-slot-context-C43hdu4i.js.map → canvas-title-slot-context-_Kf45ABB.js.map} +1 -1
- package/dist/chunks/{canvasBodies-DJ-gJy-T.js → canvasBodies-4iDPQLb0.js} +5 -5
- package/dist/chunks/{canvasBodies-DJ-gJy-T.js.map → canvasBodies-4iDPQLb0.js.map} +1 -1
- package/dist/chunks/{canvasStorage-EZDxQQaK.js → canvasStorage-De3tMK4L.js} +2 -2
- package/dist/chunks/{canvasStorage-EZDxQQaK.js.map → canvasStorage-De3tMK4L.js.map} +1 -1
- package/dist/chunks/{widget-name-resolver-Ne0vKw4N.js → widget-name-resolver-JEJ1Hd0T.js} +2 -2
- package/dist/chunks/{widget-name-resolver-Ne0vKw4N.js.map → widget-name-resolver-JEJ1Hd0T.js.map} +1 -1
- package/dist/client-testing.js +4 -4
- package/dist/files/widgets/DriveFilesConversationWidget/DriveFilesConversationWidget.md +3 -0
- package/dist/image-render.js +7 -7
- package/dist/index.js +39 -17
- package/dist/index.js.map +1 -1
- package/dist/kit.js +2 -2
- package/dist/preview.js +5 -6
- package/dist/preview.js.map +1 -1
- package/dist/renderer.js +61 -57
- package/dist/renderer.js.map +1 -1
- package/dist/styles.css +8 -0
- package/dist/types/entries/index.d.ts +2 -0
- package/dist/types/entries/widgets.d.ts +1 -0
- package/dist/types/renderer/canvas/canvas-behaviours.d.ts +18 -6
- package/dist/types/renderer/canvas/canvas-kind-declarations.d.ts +17 -0
- package/dist/types/renderer/canvas/canvas-kinds.d.ts +42 -0
- package/dist/types/renderer/canvas/canvas-state.d.ts +12 -0
- package/dist/types/widgets/CanvasLauncherWidget/CanvasLauncherWidget.d.ts +6 -1
- package/dist/types/widgets/DriveFilesConversationWidget/DriveFilesConversationWidget.d.ts +3 -2
- package/dist/types/widgets/DriveFilesConversationWidget/shared/drive-file-canvas-openers.d.ts +29 -0
- package/dist/widgets.js +61 -58
- package/package.json +1 -1
- package/public-api.json +15 -0
- package/dist/chunks/WebSearchResultsConversationWidget-DTnsU_C-.js.map +0 -1
- package/dist/chunks/canvas-behaviours-C9hzl4a0.js +0 -45
- package/dist/chunks/canvas-behaviours-C9hzl4a0.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Y as getWidgetSelfHydrationKeyFieldName, aa as useAgentsStateSelector, a9 as useAgentsStateDispatch, ae as WidgetHydrationSlice, n as Skeleton, F as classNames, o as SkeletonText, x as WidgetText, H as HeroRow, g as HeroValue, s as Text, B as Button, I as Icon, J as escapePlainTextForText, a8 as useAgentsOwnerSettings, l as RangeSlider, a1 as translateText, V as getSandboxLegacyAliases, a6 as useAgentsLinkNavigation, r as StatusChip, v as Tooltip, j as Markdown, A as AgentsLink, u as TextInput, t as TextArea, a2 as useAgentsActiveAgentSpaceKey, N as getAgentsEnvironment, z as buildUnnamedAgentSpaceLabel, E as buildWidgetOfAnotherAgentSpaceExplanation, h as InteractiveSurface, C as Checkbox, y as appendAnotherAgentSpaceToOwnerText, b as ConversationSearchResultsList } from "./link-navigation-DH3f2g9a.js";
|
|
3
|
+
import { Y as getWidgetSelfHydrationKeyFieldName, aa as useAgentsStateSelector, a9 as useAgentsStateDispatch, ae as WidgetHydrationSlice, n as Skeleton, F as classNames, o as SkeletonText, x as WidgetText, H as HeroRow, g as HeroValue, s as Text, B as Button, I as Icon, J as escapePlainTextForText, a8 as useAgentsOwnerSettings, l as RangeSlider, a1 as translateText, V as getSandboxLegacyAliases, O as getFurtherCanvasBehaviours, a6 as useAgentsLinkNavigation, r as StatusChip, v as Tooltip, j as Markdown, A as AgentsLink, u as TextInput, t as TextArea, a2 as useAgentsActiveAgentSpaceKey, N as getAgentsEnvironment, z as buildUnnamedAgentSpaceLabel, E as buildWidgetOfAnotherAgentSpaceExplanation, h as InteractiveSurface, C as Checkbox, y as appendAnotherAgentSpaceToOwnerText, b as ConversationSearchResultsList } from "./link-navigation-DH3f2g9a.js";
|
|
4
4
|
import { createContext, useContext, useMemo, useEffect, useId, useRef, useCallback, useState, useLayoutEffect, useSyncExternalStore } from "react";
|
|
5
5
|
import { t as textKey } from "./text-key-DnoZ4lAk.js";
|
|
6
6
|
import { visit } from "unist-util-visit";
|
|
@@ -86,6 +86,16 @@ const entityIdOfInstanceId = (instanceId) => {
|
|
|
86
86
|
const match = /^[a-zA-Z]+:entity:(\d+)$/.exec(instanceId);
|
|
87
87
|
return match ? Number(match[1]) : void 0;
|
|
88
88
|
};
|
|
89
|
+
const CANVAS_REFERENCE_PATTERN = /^[A-Za-z0-9_-][A-Za-z0-9_.-]{0,127}(\/[A-Za-z0-9_-][A-Za-z0-9_.-]{0,127}){0,7}$/;
|
|
90
|
+
const isCanvasReference = (value) => CANVAS_REFERENCE_PATTERN.test(value);
|
|
91
|
+
const canvasInstanceIdForReference = (canvasId, reference) => {
|
|
92
|
+
if (!isCanvasReference(reference)) throw new Error("A canvas instance id carries a store reference such as drive/812.");
|
|
93
|
+
return `${canvasId}:reference:${reference}`;
|
|
94
|
+
};
|
|
95
|
+
const referenceOfCanvasInstanceId = (instanceId) => {
|
|
96
|
+
const match = /^[a-zA-Z][a-zA-Z0-9]*:reference:(.+)$/.exec(instanceId);
|
|
97
|
+
return match && isCanvasReference(match[1]) ? match[1] : void 0;
|
|
98
|
+
};
|
|
89
99
|
const isCanvasAnchorLoaded = (anchor2, loadedMessageIds) => anchor2.kind === "page" || loadedMessageIds.includes(anchor2.messageId);
|
|
90
100
|
const WidgetRenderReportContext = createContext(null);
|
|
91
101
|
const useReportWidgetRenderStatus = (status, code, detail) => {
|
|
@@ -2237,6 +2247,71 @@ const CustomVisualizationConversationWidget = (props) => {
|
|
|
2237
2247
|
}
|
|
2238
2248
|
return /* @__PURE__ */ jsx(CustomVisualizationWidget, { payload: parsedPayload.payload, testId: testId2 }, payload);
|
|
2239
2249
|
};
|
|
2250
|
+
const canvasKindDeclarations = /* @__PURE__ */ new Map();
|
|
2251
|
+
const declareCanvasKind = (canvasId, declaration) => {
|
|
2252
|
+
canvasKindDeclarations.set(canvasId, {
|
|
2253
|
+
behaviour: declaration.behaviour,
|
|
2254
|
+
openedByWidgets: [...declaration.openedByWidgets]
|
|
2255
|
+
});
|
|
2256
|
+
};
|
|
2257
|
+
const forgetCanvasKind = (canvasId) => {
|
|
2258
|
+
canvasKindDeclarations.delete(canvasId);
|
|
2259
|
+
};
|
|
2260
|
+
const readCanvasKindDeclaration = (canvasId) => canvasKindDeclarations.get(canvasId);
|
|
2261
|
+
const getCanvasKindIds = () => [...canvasKindDeclarations.keys()];
|
|
2262
|
+
const DEFAULT_CANVAS_WIDTH_PERCENT = 50;
|
|
2263
|
+
const CANVAS_MIN_WIDTH_PX = 420;
|
|
2264
|
+
const CHAT_COLUMN_MIN_WIDTH_PX = 360;
|
|
2265
|
+
const CANVAS_BOXED_INSET_PX = 8;
|
|
2266
|
+
const CANVAS_FILLS_SCREEN_WIDTH_PERCENT = 72;
|
|
2267
|
+
const packageCanvasBehaviours = {
|
|
2268
|
+
conversationSearchResults: { lifetime: "turn", layout: "split", narrowViewport: "none", fullBleed: false },
|
|
2269
|
+
webSearchResults: { lifetime: "turn", layout: "split", narrowViewport: "none", fullBleed: false },
|
|
2270
|
+
// One entity's detail, opened from a ComposedView row (`openEntity`) — a click, never a live delivery.
|
|
2271
|
+
entityDetail: { lifetime: "turn", layout: "split", widthPercent: 40, narrowViewport: "none", fullBleed: false },
|
|
2272
|
+
// A ComposedView `Map` node, full screen — the widest split a turn canvas takes, the map flush.
|
|
2273
|
+
mapFullScreen: { lifetime: "turn", layout: "split", widthPercent: 65, narrowViewport: "none", fullBleed: true }
|
|
2274
|
+
};
|
|
2275
|
+
const hasOwnCanvasBehaviour = (behaviours, canvasId) => Object.prototype.hasOwnProperty.call(behaviours, canvasId);
|
|
2276
|
+
const isPackageCanvasId = (canvasId) => hasOwnCanvasBehaviour(packageCanvasBehaviours, canvasId);
|
|
2277
|
+
const canvasKindOpenerWidgetNamesOf = (canvasId) => readCanvasKindDeclaration(canvasId)?.openedByWidgets ?? [];
|
|
2278
|
+
const canvasBehaviourOf = (canvasId) => {
|
|
2279
|
+
if (isPackageCanvasId(canvasId)) {
|
|
2280
|
+
return packageCanvasBehaviours[canvasId];
|
|
2281
|
+
}
|
|
2282
|
+
const furtherCanvasBehaviours = getFurtherCanvasBehaviours();
|
|
2283
|
+
if (hasOwnCanvasBehaviour(furtherCanvasBehaviours, canvasId)) return furtherCanvasBehaviours[canvasId];
|
|
2284
|
+
return readCanvasKindDeclaration(canvasId)?.behaviour;
|
|
2285
|
+
};
|
|
2286
|
+
const getDeclaredCanvasIds = () => {
|
|
2287
|
+
const packageCanvasIds = Object.keys(packageCanvasBehaviours);
|
|
2288
|
+
const furtherCanvasIds = Object.keys(getFurtherCanvasBehaviours()).filter(
|
|
2289
|
+
(canvasId) => !packageCanvasIds.includes(canvasId)
|
|
2290
|
+
);
|
|
2291
|
+
const kindCanvasIds = getCanvasKindIds().filter(
|
|
2292
|
+
(canvasId) => !packageCanvasIds.includes(canvasId) && !furtherCanvasIds.includes(canvasId)
|
|
2293
|
+
);
|
|
2294
|
+
return [...packageCanvasIds, ...furtherCanvasIds, ...kindCanvasIds];
|
|
2295
|
+
};
|
|
2296
|
+
const isCanvasId = (value) => typeof value === "string" && canvasBehaviourOf(value) !== void 0;
|
|
2297
|
+
const canvasWidthPercentOf = (behaviour) => behaviour.layout === "canvasFillsScreen" ? CANVAS_FILLS_SCREEN_WIDTH_PERCENT : behaviour.widthPercent ?? DEFAULT_CANVAS_WIDTH_PERCENT;
|
|
2298
|
+
const registeredOpeners = /* @__PURE__ */ new Map();
|
|
2299
|
+
const registerDriveFileCanvasOpener = (store, opener) => {
|
|
2300
|
+
registeredOpeners.set(store, opener);
|
|
2301
|
+
};
|
|
2302
|
+
const readDriveFileCanvasOpener = (store) => registeredOpeners.get(store) ?? null;
|
|
2303
|
+
const unregisterDriveFileCanvasOpener = (store) => {
|
|
2304
|
+
registeredOpeners.delete(store);
|
|
2305
|
+
};
|
|
2306
|
+
const driveFileCanvasTargetOf = (store, card2, messageId) => {
|
|
2307
|
+
const opener = readDriveFileCanvasOpener(store);
|
|
2308
|
+
if (opener === null) return null;
|
|
2309
|
+
const numericMessageId = messageId === void 0 ? Number.NaN : Number(messageId);
|
|
2310
|
+
if (!Number.isInteger(numericMessageId) || numericMessageId <= 0) return null;
|
|
2311
|
+
const identity = opener(card2);
|
|
2312
|
+
if (identity === null || !isCanvasId(identity.canvasId) || identity.instanceId === "") return null;
|
|
2313
|
+
return { canvasId: identity.canvasId, instanceId: identity.instanceId, anchor: messageAnchor(numericMessageId) };
|
|
2314
|
+
};
|
|
2240
2315
|
const DRIVE_FILES_WIDGET_TYPE = "DriveFiles";
|
|
2241
2316
|
const DRIVE_FILES_MAX_FILES = 20;
|
|
2242
2317
|
const DRIVE_FILES_TITLE_MAX_LENGTH = 160;
|
|
@@ -2504,10 +2579,13 @@ const useCardFacts = (card2) => {
|
|
|
2504
2579
|
}
|
|
2505
2580
|
return facts2.join(" · ");
|
|
2506
2581
|
};
|
|
2507
|
-
const DriveFileCardRow = ({ card: card2, openCard, source, onCardsExpired }) => {
|
|
2582
|
+
const DriveFileCardRow = ({ card: card2, openCard, source, store, messageId, onCardsExpired }) => {
|
|
2508
2583
|
const [busy, setBusy] = useState(false);
|
|
2509
2584
|
const [failure2, setFailure] = useState(null);
|
|
2510
2585
|
const { openLink } = useAgentsLinkNavigation();
|
|
2586
|
+
const { openCanvas, canvas: openCanvasState, hostHasCanvasSurface } = useConversationWidgetContext();
|
|
2587
|
+
const canvasTarget = hostHasCanvasSurface ? driveFileCanvasTargetOf(store, card2, messageId) : null;
|
|
2588
|
+
const isCanvasOpen = canvasTarget !== null && openCanvasState !== null && sameCanvasIdentity(openCanvasState, canvasTarget);
|
|
2511
2589
|
const facts2 = useCardFacts(card2);
|
|
2512
2590
|
const name2 = card2.name ?? "";
|
|
2513
2591
|
const openName = openCard?.name ?? name2;
|
|
@@ -2537,6 +2615,11 @@ const DriveFileCardRow = ({ card: card2, openCard, source, onCardsExpired }) =>
|
|
|
2537
2615
|
setBusy(false);
|
|
2538
2616
|
}
|
|
2539
2617
|
};
|
|
2618
|
+
const openInCanvas = () => {
|
|
2619
|
+
if (canvasTarget === null) return;
|
|
2620
|
+
setFailure(null);
|
|
2621
|
+
openCanvas({ ...canvasTarget, origin: "widgetClick", justDelivered: false });
|
|
2622
|
+
};
|
|
2540
2623
|
const downloadFile = async () => {
|
|
2541
2624
|
setBusy(true);
|
|
2542
2625
|
setFailure(null);
|
|
@@ -2555,7 +2638,17 @@ const DriveFileCardRow = ({ card: card2, openCard, source, onCardsExpired }) =>
|
|
|
2555
2638
|
failure2 !== null ? /* @__PURE__ */ jsx("span", { role: "alert", className: styles$c.failure, children: failure2 }) : null
|
|
2556
2639
|
] });
|
|
2557
2640
|
const actions2 = /* @__PURE__ */ jsxs("span", { className: styles$c.actions, children: [
|
|
2558
|
-
|
|
2641
|
+
canvasTarget !== null ? /* @__PURE__ */ jsx(Tooltip, { text: "Open %name%", replacements: { name: name2 }, children: /* @__PURE__ */ jsx(
|
|
2642
|
+
Button,
|
|
2643
|
+
{
|
|
2644
|
+
variant: isCanvasOpen ? "default" : "muted",
|
|
2645
|
+
size: "small",
|
|
2646
|
+
icon: "visibility",
|
|
2647
|
+
ariaLabel: translateText("Open %name%", { name: name2 }),
|
|
2648
|
+
onClick: openInCanvas,
|
|
2649
|
+
testId: `${TEST_ID}-open-canvas`
|
|
2650
|
+
}
|
|
2651
|
+
) }) : !card2.isFolder && openCard !== null ? /* @__PURE__ */ jsx(Tooltip, { text: "Open %name%", replacements: { name: openName }, children: /* @__PURE__ */ jsx(
|
|
2559
2652
|
Button,
|
|
2560
2653
|
{
|
|
2561
2654
|
variant: "muted",
|
|
@@ -2601,7 +2694,7 @@ const DriveFileCardRow = ({ card: card2, openCard, source, onCardsExpired }) =>
|
|
|
2601
2694
|
}
|
|
2602
2695
|
) });
|
|
2603
2696
|
};
|
|
2604
|
-
const HydratedDriveFiles = ({ request, justDelivered }) => {
|
|
2697
|
+
const HydratedDriveFiles = ({ request, justDelivered, messageId }) => {
|
|
2605
2698
|
const hydration = useWidgetHydration(DRIVE_FILES_WIDGET_TYPE, request, {
|
|
2606
2699
|
forceRefresh: justDelivered
|
|
2607
2700
|
});
|
|
@@ -2649,6 +2742,8 @@ const HydratedDriveFiles = ({ request, justDelivered }) => {
|
|
|
2649
2742
|
card: card2,
|
|
2650
2743
|
openCard: driveFileCardToOpen(card2, cards),
|
|
2651
2744
|
source,
|
|
2745
|
+
store: request.store,
|
|
2746
|
+
messageId,
|
|
2652
2747
|
onCardsExpired: () => hydration.refetch()
|
|
2653
2748
|
},
|
|
2654
2749
|
card2.reference || card2.path || card2.name
|
|
@@ -2660,14 +2755,14 @@ const InvalidDriveFilesBlock = () => {
|
|
|
2660
2755
|
return null;
|
|
2661
2756
|
};
|
|
2662
2757
|
const DriveFilesConversationWidget = (props) => {
|
|
2663
|
-
const { payload, justDelivered = false } = props;
|
|
2758
|
+
const { payload, justDelivered = false, messageId } = props;
|
|
2664
2759
|
const selfHydrationKeyAttribute = readWidgetAgentSpaceKeyAttribute(props);
|
|
2665
2760
|
const request = useMemo(
|
|
2666
2761
|
() => parseDriveFilesPayload(payload, getWidgetSelfHydrationKeyFieldName(), selfHydrationKeyAttribute),
|
|
2667
2762
|
[payload, selfHydrationKeyAttribute]
|
|
2668
2763
|
);
|
|
2669
2764
|
if (request === null) return /* @__PURE__ */ jsx(InvalidDriveFilesBlock, {});
|
|
2670
|
-
return /* @__PURE__ */ jsx(HydratedDriveFiles, { request, justDelivered });
|
|
2765
|
+
return /* @__PURE__ */ jsx(HydratedDriveFiles, { request, justDelivered, messageId });
|
|
2671
2766
|
};
|
|
2672
2767
|
const ENTITY_TYPE_ICONS = {
|
|
2673
2768
|
competitor: "business",
|
|
@@ -3881,6 +3976,7 @@ const CanvasLauncherWidget = ({
|
|
|
3881
3976
|
subtitleReplacements,
|
|
3882
3977
|
translateSubtitle = true,
|
|
3883
3978
|
icon,
|
|
3979
|
+
leading,
|
|
3884
3980
|
thumbnail: thumbnail2,
|
|
3885
3981
|
justDelivered = false,
|
|
3886
3982
|
canvas,
|
|
@@ -3957,7 +4053,7 @@ const CanvasLauncherWidget = ({
|
|
|
3957
4053
|
cardTestId
|
|
3958
4054
|
) : renderCard(
|
|
3959
4055
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3960
|
-
/* @__PURE__ */ jsx("span", { className: styles$2.leadingIconBadge, children: /* @__PURE__ */ jsx(Icon, { name: icon ?? DEFAULT_ICON }) }),
|
|
4056
|
+
/* @__PURE__ */ jsx("span", { className: styles$2.leadingIconBadge, children: leading ?? /* @__PURE__ */ jsx(Icon, { name: icon ?? DEFAULT_ICON }) }),
|
|
3961
4057
|
/* @__PURE__ */ jsxs("div", { className: styles$2.body, children: [
|
|
3962
4058
|
/* @__PURE__ */ jsx(
|
|
3963
4059
|
Text,
|
|
@@ -4525,127 +4621,148 @@ const WebSearchResultsConversationWidget = (props) => {
|
|
|
4525
4621
|
);
|
|
4526
4622
|
};
|
|
4527
4623
|
export {
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4624
|
+
shortStringHash as $,
|
|
4625
|
+
canvasInstanceIdForActiveAgentSpace as A,
|
|
4626
|
+
canvasInstanceIdForAgentSpace as B,
|
|
4627
|
+
CANVAS_BOXED_INSET_PX as C,
|
|
4628
|
+
DEFAULT_CANVAS_WIDTH_PERCENT as D,
|
|
4629
|
+
canvasInstanceIdForEntity as E,
|
|
4630
|
+
canvasInstanceIdForMessage as F,
|
|
4631
|
+
canvasInstanceIdForMessagePayload as G,
|
|
4632
|
+
canvasInstanceIdForReference as H,
|
|
4633
|
+
canvasKindOpenerWidgetNamesOf as I,
|
|
4634
|
+
canvasWidthPercentOf as J,
|
|
4635
|
+
defaultConversationWidgetCallbacks as K,
|
|
4540
4636
|
LEGACY_CARD_CLICK_ORIGIN as L,
|
|
4541
4637
|
ModelText as M,
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4638
|
+
entityIdOfInstanceId as N,
|
|
4639
|
+
getDeclaredCanvasIds as O,
|
|
4640
|
+
hasWidgetHydrator as P,
|
|
4641
|
+
isCanvasAnchorLoaded as Q,
|
|
4546
4642
|
ReadOnlyConversationWidgetProvider as R,
|
|
4547
4643
|
StandaloneConversationWidgetProvider as S,
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4644
|
+
isCanvasReference as T,
|
|
4645
|
+
messageAnchor as U,
|
|
4646
|
+
packageCanvasBehaviours as V,
|
|
4551
4647
|
WidgetRenderReportContext as W,
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4648
|
+
pageAnchor as X,
|
|
4649
|
+
readWidgetAgentSpaceKeyAttribute as Y,
|
|
4650
|
+
referenceOfCanvasInstanceId as Z,
|
|
4651
|
+
sameCanvasAnchor as _,
|
|
4652
|
+
isPackageCanvasId as a,
|
|
4653
|
+
readDriveFileCanvasOpener as a$,
|
|
4654
|
+
useConversationWidgetContext as a0,
|
|
4655
|
+
useIsEmailWidgetRender as a1,
|
|
4656
|
+
useReportWidgetRenderStatus as a2,
|
|
4657
|
+
useWidgetHydration as a3,
|
|
4658
|
+
useWidgetMemory as a4,
|
|
4659
|
+
useWidgetRenderReporter as a5,
|
|
4660
|
+
WidgetImageReadinessContext as a6,
|
|
4661
|
+
WidgetImageRenderContext as a7,
|
|
4662
|
+
WidgetImageLiveHydrationContext as a8,
|
|
4663
|
+
readFrozenHydration as a9,
|
|
4664
|
+
ToolTraceConversationWidget as aA,
|
|
4665
|
+
WebSearchResultsConversationWidget as aB,
|
|
4666
|
+
WidgetKpiValue as aC,
|
|
4667
|
+
WidgetListRow as aD,
|
|
4668
|
+
WidgetSurface as aE,
|
|
4669
|
+
WidgetSurfaceSkeleton as aF,
|
|
4670
|
+
WritingDraftConversationWidget as aG,
|
|
4671
|
+
canvasForMessageWidget as aH,
|
|
4672
|
+
driveFileCanvasTargetOf as aI,
|
|
4673
|
+
driveFileCardToOpen as aJ,
|
|
4674
|
+
driveFileFamilyOf as aK,
|
|
4675
|
+
driveFileTypeLabelOf as aL,
|
|
4676
|
+
formatConceptExplainerNumber as aM,
|
|
4677
|
+
formatDriveFileSize as aN,
|
|
4678
|
+
isDriveFileCardExpired as aO,
|
|
4679
|
+
nodeIdOfReference as aP,
|
|
4680
|
+
normalizeSearchHitExcerpt as aQ,
|
|
4681
|
+
parseDriveFilesPayload as aR,
|
|
4682
|
+
pickAllowed as aS,
|
|
4683
|
+
pickAllowedValue as aT,
|
|
4684
|
+
pickReviewExternalId as aU,
|
|
4685
|
+
pickSafeAlias as aV,
|
|
4686
|
+
pickSafeAliases as aW,
|
|
4687
|
+
pickText as aX,
|
|
4688
|
+
readCanvasViable as aY,
|
|
4689
|
+
readConceptExplainerNumber as aZ,
|
|
4690
|
+
readConceptExplainerValue as a_,
|
|
4691
|
+
useWidgetImageLiveHydration as aa,
|
|
4692
|
+
useWidgetImageRender as ab,
|
|
4693
|
+
CANVAS_VIABLE_MIN_WIDTH as ac,
|
|
4694
|
+
CUSTOM_VISUALIZATION_SANDBOX_CONFIG as ad,
|
|
4695
|
+
CanvasLauncherWidget as ae,
|
|
4696
|
+
CanvasViabilityContext as af,
|
|
4697
|
+
CanvasWidgetSwitch as ag,
|
|
4698
|
+
ClockConversationWidget as ah,
|
|
4699
|
+
ConceptExplainerConversationWidget as ai,
|
|
4700
|
+
ConversationSearchResultsConversationWidget as aj,
|
|
4701
|
+
CurrencyConverterConversationWidget as ak,
|
|
4702
|
+
CustomVisualizationConversationWidget as al,
|
|
4703
|
+
DRIVE_FILES_MAX_FILES as am,
|
|
4704
|
+
DRIVE_FILES_WIDGET_TYPE as an,
|
|
4705
|
+
DRIVE_FILE_CARDS_SOURCE_MISSING as ao,
|
|
4706
|
+
DonePill as ap,
|
|
4707
|
+
DriveFilesConversationWidget as aq,
|
|
4708
|
+
ElementWidthCanvasViability as ar,
|
|
4709
|
+
EntityMentionConversationWidget as as,
|
|
4710
|
+
MultiChoiceConversationWidget as at,
|
|
4711
|
+
QuickRepliesConversationWidget as au,
|
|
4712
|
+
SkeletonCircle as av,
|
|
4713
|
+
SkeletonLine as aw,
|
|
4714
|
+
SkeletonPill as ax,
|
|
4715
|
+
SkeletonWidgetLabel as ay,
|
|
4716
|
+
SuggestedActions as az,
|
|
4717
|
+
registerConceptExplainerTypes as b,
|
|
4718
|
+
readDriveFileCardsSource as b0,
|
|
4719
|
+
resolveCustomVisualizationFrameUrl as b1,
|
|
4720
|
+
safeDriveFileOpenLink as b2,
|
|
4721
|
+
unregisterDriveFileCanvasOpener as b3,
|
|
4722
|
+
unregisterDriveFileCardsSource as b4,
|
|
4723
|
+
useCanvasViable as b5,
|
|
4724
|
+
parseConversationSearchResultsPayload as b6,
|
|
4725
|
+
WebSearchAnswer as b7,
|
|
4726
|
+
WebSearchSourcesList as b8,
|
|
4727
|
+
parseWebSearchResultsPayload as b9,
|
|
4728
|
+
ENTITY_MENTION_WIDGET_NAME as ba,
|
|
4729
|
+
buildEntityMentionFields as bb,
|
|
4730
|
+
normalizeEntityMentionFields as bc,
|
|
4731
|
+
entityMentionKey as bd,
|
|
4732
|
+
MAX_ENTITY_MENTIONS_PER_MESSAGE as be,
|
|
4733
|
+
toEntityMentionWireFields as bf,
|
|
4734
|
+
ConversationWidgetButton as bg,
|
|
4735
|
+
readTextNodeContent as bh,
|
|
4736
|
+
readAllowedValue as bi,
|
|
4737
|
+
useReportTextNodeRenderState as bj,
|
|
4738
|
+
readTextNodeRenderState as bk,
|
|
4739
|
+
buildFaviconUrl as bl,
|
|
4740
|
+
readSiteHostname as bm,
|
|
4741
|
+
readSafeHttpUrl as bn,
|
|
4742
|
+
registerDriveFilesHydrator as bo,
|
|
4743
|
+
registerDriveFileCanvasOpener as c,
|
|
4744
|
+
declareCanvasKind as d,
|
|
4745
|
+
registerDriveFileCardsSource as e,
|
|
4746
|
+
forgetCanvasKind as f,
|
|
4747
|
+
registerWidgetHydrator as g,
|
|
4748
|
+
canvasBehaviourOf as h,
|
|
4749
|
+
isCanvasId as i,
|
|
4750
|
+
getWidgetHydrator as j,
|
|
4751
|
+
abandonWidgetHydrationReads as k,
|
|
4635
4752
|
listWidgetHydratorTypes as l,
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4753
|
+
useResolvedConversationWidgetAgentSpaceKey as m,
|
|
4754
|
+
CANVAS_FILLS_SCREEN_WIDTH_PERCENT as n,
|
|
4755
|
+
CANVAS_MIN_WIDTH_PX as o,
|
|
4639
4756
|
payloadHashOfInstanceId as p,
|
|
4640
|
-
|
|
4757
|
+
CHAT_COLUMN_MIN_WIDTH_PX as q,
|
|
4641
4758
|
readConceptExplainerTypeDefinitions as r,
|
|
4642
4759
|
sameCanvasIdentity as s,
|
|
4643
|
-
|
|
4760
|
+
ConversationWidgetActions as t,
|
|
4644
4761
|
unregisterWidgetHydrator as u,
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4762
|
+
ConversationWidgetAgentSpaceFrame as v,
|
|
4763
|
+
ConversationWidgetAgentSpaceHeader as w,
|
|
4764
|
+
ConversationWidgetContext as x,
|
|
4765
|
+
ConversationWidgetRenderContext as y,
|
|
4766
|
+
buildWidgetAgentSpaceKeyProps as z
|
|
4650
4767
|
};
|
|
4651
|
-
//# sourceMappingURL=WebSearchResultsConversationWidget-
|
|
4768
|
+
//# sourceMappingURL=WebSearchResultsConversationWidget-Dpy5qp4j.js.map
|