@mgamadeus/ddd-agents 0.1.0-alpha.22 → 0.1.0-alpha.24
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 +3 -2
- package/dist/chat.js +87 -893
- package/dist/chat.js.map +1 -1
- package/dist/chunks/ConversationMessageInputComposerWidgets-BxyaFBA6.js +631 -0
- package/dist/chunks/ConversationMessageInputComposerWidgets-BxyaFBA6.js.map +1 -0
- package/dist/chunks/{WebSearchResultsConversationWidget-BvnLWHyi.js → WebSearchResultsConversationWidget-as3p5bHw.js} +147 -1125
- package/dist/chunks/WebSearchResultsConversationWidget-as3p5bHw.js.map +1 -0
- package/dist/chunks/{canvas-behaviours-BRFR1ALE.js → canvas-behaviours-AvzKSYyv.js} +4 -4
- package/dist/chunks/{canvas-behaviours-BRFR1ALE.js.map → canvas-behaviours-AvzKSYyv.js.map} +1 -1
- package/dist/chunks/canvas-reducers-Bfp_i7lc.js +88 -0
- package/dist/chunks/canvas-reducers-Bfp_i7lc.js.map +1 -0
- package/dist/chunks/{canvasBodies-9SuF6NAB.js → canvasBodies-Cvu3l38p.js} +12 -6
- package/dist/chunks/canvasBodies-Cvu3l38p.js.map +1 -0
- package/dist/chunks/canvasStorage-EvQsGdto.js +65 -0
- package/dist/chunks/canvasStorage-EvQsGdto.js.map +1 -0
- package/dist/chunks/contract-BxmMxYPF.js +96 -0
- package/dist/chunks/contract-BxmMxYPF.js.map +1 -0
- package/dist/chunks/conversation-BEF0aesf.js +31 -0
- package/dist/chunks/conversation-BEF0aesf.js.map +1 -0
- package/dist/chunks/entity-detail-name-3A82gDAp.js +15 -0
- package/dist/chunks/entity-detail-name-3A82gDAp.js.map +1 -0
- package/dist/chunks/icon-names-Di6c4zLo.js +86 -0
- package/dist/chunks/icon-names-Di6c4zLo.js.map +1 -0
- package/dist/chunks/index-7Qc_3GbG.js +1046 -0
- package/dist/chunks/index-7Qc_3GbG.js.map +1 -0
- package/dist/chunks/{ConversationMarkdown-W7NHglmL.js → widget-click-signal-sources-DulRkNvZ.js} +54 -7
- package/dist/chunks/widget-click-signal-sources-DulRkNvZ.js.map +1 -0
- package/dist/chunks/{widget-image-readiness-signal-DeOuL89j.js → widget-image-readiness-signal-D3ci53xr.js} +2 -2
- package/dist/chunks/{widget-image-readiness-signal-DeOuL89j.js.map → widget-image-readiness-signal-D3ci53xr.js.map} +1 -1
- package/dist/chunks/{widget-name-resolver-DyIY6Zu4.js → widget-name-resolver-BGN3HpoG.js} +80 -117
- package/dist/chunks/widget-name-resolver-BGN3HpoG.js.map +1 -0
- package/dist/chunks/{withPollingChangeSubscription-BLDAWF-o.js → withPollingChangeSubscription-B16htQGd.js} +2 -2
- package/dist/chunks/{withPollingChangeSubscription-BLDAWF-o.js.map → withPollingChangeSubscription-B16htQGd.js.map} +1 -1
- package/dist/client-testing.js +91 -2
- package/dist/client-testing.js.map +1 -1
- package/dist/client.js +1 -1
- package/dist/contract.js +8 -27
- package/dist/contract.js.map +1 -1
- package/dist/files/chat/Conversation.module.scss +268 -0
- package/dist/files/chat/ConversationViewBody/ConversationViewBody.module.scss +336 -0
- package/dist/files/chat/_conversation-tokens.scss +37 -0
- package/dist/files/image-render/WidgetImageRender.module.scss +22 -0
- package/dist/files/kit/ComposedViewConversationWidget.md +59 -0
- package/dist/files/kit/components/data/data.preview-fixtures.json +3298 -0
- package/dist/files/kit/components/embedding/widget.preview-fixtures.json +147 -0
- package/dist/files/kit/components/entity/entity-link.preview-fixtures.json +340 -0
- package/dist/files/kit/components/form/form.preview-fixtures.json +319 -0
- package/dist/files/kit/components/inputs/button.preview-fixtures.json +301 -0
- package/dist/files/kit/components/inputs/checkbox.preview-fixtures.json +35 -0
- package/dist/files/kit/components/inputs/date-picker.preview-fixtures.json +36 -0
- package/dist/files/kit/components/inputs/input.preview-fixtures.json +55 -0
- package/dist/files/kit/components/inputs/radio-group.preview-fixtures.json +76 -0
- package/dist/files/kit/components/inputs/select.preview-fixtures.json +314 -0
- package/dist/files/kit/components/inputs/slider.preview-fixtures.json +178 -0
- package/dist/files/kit/components/inputs/tabs.preview-fixtures.json +304 -0
- package/dist/files/kit/components/inputs/textarea.preview-fixtures.json +37 -0
- package/dist/files/kit/components/layout/layout.preview-fixtures.json +892 -0
- package/dist/files/kit/components/map/map.preview-fixtures.json +339 -0
- package/dist/files/kit/components/media/image-group.preview-fixtures.json +228 -0
- package/dist/files/kit/components/media/image.preview-fixtures.json +61 -0
- package/dist/files/kit/components/media/video-card/video-card.preview-fixtures.json +121 -0
- package/dist/files/kit/components/media/video.preview-fixtures.json +68 -0
- package/dist/files/kit/components/rich/code.preview-fixtures.json +105 -0
- package/dist/files/kit/components/rich/diagram.preview-fixtures.json +89 -0
- package/dist/files/kit/components/rich/math.preview-fixtures.json +152 -0
- package/dist/files/kit/components/rich/svg.preview-fixtures.json +243 -0
- package/dist/files/kit/components/text/badge.preview-fixtures.json +44 -0
- package/dist/files/kit/components/text/caption.preview-fixtures.json +31 -0
- package/dist/files/kit/components/text/favicon.preview-fixtures.json +69 -0
- package/dist/files/kit/components/text/label.preview-fixtures.json +48 -0
- package/dist/files/kit/components/text/link.preview-fixtures.json +103 -0
- package/dist/files/kit/components/text/markdown.preview-fixtures.json +29 -0
- package/dist/files/kit/components/text/source-ref.preview-fixtures.json +51 -0
- package/dist/files/kit/components/text/text.preview-fixtures.json +106 -0
- package/dist/files/kit/components/text/title.preview-fixtures.json +172 -0
- package/dist/files/kit/composed-view-widget-contract.json +88 -0
- package/dist/files/kit/composed-view.preview-fixtures.json +376 -0
- package/dist/files/renderer/conversation-widget-layout.module.scss +47 -0
- package/dist/files/renderer/widget-tree/composed-node-schema.json +3428 -0
- package/dist/files/styles/_conversation-widget-container.scss +6 -0
- package/dist/files/styles/_media.scss +50 -0
- package/dist/files/styles/_spacings.scss +23 -0
- package/dist/files/styles/_surfaces.scss +28 -0
- package/dist/files/widgets/ClockConversationWidget/ClockConversationWidget.md +53 -0
- package/dist/files/widgets/ClockConversationWidget/clock.preview-fixtures.json +76 -0
- package/dist/files/widgets/ConceptExplainerConversationWidget/ConceptExplainerConversationWidget.md +86 -0
- package/dist/files/widgets/ConceptExplainerConversationWidget/concept-explainer.preview-fixtures.json +23 -0
- package/dist/files/widgets/ConversationSearchResultsConversationWidget/ConversationSearchResultsConversationWidget.md +59 -0
- package/dist/files/widgets/ConversationSearchResultsConversationWidget/conversation-search-results.preview-fixtures.json +85 -0
- package/dist/files/widgets/CurrencyConverterConversationWidget/CurrencyConverterConversationWidget.md +51 -0
- package/dist/files/widgets/CurrencyConverterConversationWidget/currency-converter.preview-fixtures.json +73 -0
- package/dist/files/widgets/CustomVisualizationConversationWidget/CustomVisualizationConversationWidget.md +83 -0
- package/dist/files/widgets/CustomVisualizationConversationWidget/custom-visualization.preview-fixtures.json +227 -0
- package/dist/files/widgets/CustomVisualizationConversationWidget/sandbox-frame/custom-visualization-frame.html +188 -0
- package/dist/files/widgets/EntityMentionConversationWidget/EntityMentionConversationWidget.md +55 -0
- package/dist/files/widgets/EntityMentionConversationWidget/entity-mention.preview-fixtures.json +55 -0
- package/dist/files/widgets/MultiChoiceConversationWidget/MultiChoiceConversationWidget.md +61 -0
- package/dist/files/widgets/MultiChoiceConversationWidget/multi-choice-widget-contract.json +43 -0
- package/dist/files/widgets/MultiChoiceConversationWidget/multi-choice.preview-fixtures.json +103 -0
- package/dist/files/widgets/QuickRepliesConversationWidget/QuickRepliesConversationWidget.md +65 -0
- package/dist/files/widgets/QuickRepliesConversationWidget/quick-replies-widget-contract.json +43 -0
- package/dist/files/widgets/QuickRepliesConversationWidget/quick-replies.preview-fixtures.json +45 -0
- package/dist/files/widgets/SuggestedActions/SuggestedActions.md +60 -0
- package/dist/files/widgets/SuggestedActions/suggested-actions.preview-fixtures.json +19 -0
- package/dist/files/widgets/ToolTraceConversationWidget/ToolTraceConversationWidget.md +48 -0
- package/dist/files/widgets/ToolTraceConversationWidget/tool-trace.preview-fixtures.json +32 -0
- package/dist/files/widgets/WebSearchResultsConversationWidget/WebSearchResultsConversationWidget.md +49 -0
- package/dist/files/widgets/WebSearchResultsConversationWidget/web-search-results.preview-fixtures.json +57 -0
- package/dist/files/widgets/WritingDraftConversationWidget/WritingDraftConversationWidget.md +66 -0
- package/dist/files/widgets/WritingDraftConversationWidget/writing-draft.preview-fixtures.json +129 -0
- package/dist/image-render.js +11 -10
- package/dist/image-render.js.map +1 -1
- package/dist/index.js +32 -27
- package/dist/index.js.map +1 -1
- package/dist/kit.js +11 -2
- package/dist/kit.js.map +1 -1
- package/dist/preview.js +47 -18
- package/dist/preview.js.map +1 -1
- package/dist/provider.js +71 -0
- package/dist/provider.js.map +1 -0
- package/dist/renderer.js +142 -62
- package/dist/renderer.js.map +1 -1
- package/dist/styles.css +86 -38
- package/dist/types/client/testing/test-conversation-widgets.d.ts +25 -0
- package/dist/types/client/testing/widget-hydration-stand-ins.d.ts +42 -0
- package/dist/types/entries/chat.d.ts +12 -0
- package/dist/types/entries/client-testing.d.ts +4 -0
- package/dist/types/entries/contract.d.ts +1 -0
- package/dist/types/entries/index.d.ts +4 -3
- package/dist/types/entries/kit.d.ts +7 -0
- package/dist/types/entries/preview.d.ts +2 -0
- package/dist/types/entries/provider.d.ts +1 -0
- package/dist/types/entries/renderer.d.ts +19 -1
- package/dist/types/entries/widgets.d.ts +13 -0
- package/dist/types/kit/components/data/apex-chart-component.d.ts +3 -0
- package/dist/types/kit/components/data/chart-model.d.ts +164 -0
- package/dist/types/kit/components/data/data-value-format.d.ts +44 -0
- package/dist/types/kit/components/data/use-chart-palette.d.ts +9 -0
- package/dist/types/kit/components/data/use-number-locale.d.ts +5 -0
- package/dist/types/kit/components/map/use-google-maps-auth-failure.d.ts +18 -0
- package/dist/types/kit/entity-detail/entity-detail-bodies.d.ts +2 -0
- package/dist/types/provider/index.d.ts +1 -0
- package/dist/types/renderer/_access/ConversationWidgetGateSkeleton.d.ts +6 -0
- package/dist/types/renderer/_agent-space/use-conversation-widget-agent-space-fallback.d.ts +16 -0
- package/dist/types/renderer/canvas/entity-detail-instance.d.ts +5 -3
- package/dist/types/renderer/canvas/use-anchor-widget-agent-space-key.d.ts +17 -0
- package/dist/types/renderer/conversationWidgetRegistry.d.ts +6 -0
- package/dist/types/renderer/read-conversation-widget-variant.d.ts +22 -0
- package/dist/types/renderer/widget-hydration/use-widget-hydration.d.ts +5 -0
- package/dist/types/widgets/EntityMentionConversationWidget/stories/EntityMentionAskFlowStory.d.ts +8 -0
- package/dist/types/widgets/_shared/CardFooter.d.ts +6 -0
- package/dist/types/widgets/_shared/WidgetLabel.d.ts +8 -0
- package/dist/types/widgets/_shared/entity-update-channel.d.ts +17 -0
- package/dist/types/widgets/_shared/use-element-visible.d.ts +6 -0
- package/dist/widgets.js +120 -27
- package/dist/widgets.js.map +1 -1
- package/package.json +74 -1
- package/public-api.json +779 -0
- package/dist/chunks/ConversationMarkdown-W7NHglmL.js.map +0 -1
- package/dist/chunks/WebSearchResultsConversationWidget-BvnLWHyi.js.map +0 -1
- package/dist/chunks/canvasBodies-9SuF6NAB.js.map +0 -1
- package/dist/chunks/decide-canvas-open-Ct-wnNEJ.js +0 -20
- package/dist/chunks/decide-canvas-open-Ct-wnNEJ.js.map +0 -1
- package/dist/chunks/widget-name-resolver-DyIY6Zu4.js.map +0 -1
|
@@ -1,92 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import React, { useReducer, useRef, useCallback, useMemo, useEffect, useState, useContext, createContext, useLayoutEffect, useId, useSyncExternalStore, Fragment as Fragment$1 } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { b as registerWidgetHydrator, X as SkeletonLine, U as WidgetSurface, ac as WidgetKpiValue, A as readWidgetAgentSpaceKeyAttribute, W as WidgetRenderReportContext, j as buildWidgetAgentSpaceKeyProps, aB as readTextNodeContent, aC as readAllowedValue, E as useConversationWidgetContext, M as ModelText, a3 as DonePill, aA as ConversationWidgetButton, D as shortStringHash, K as WidgetImageReadinessContext, y as messageAnchor, C as ConversationWidgetActions, aD as useReportTextNodeRenderState, aE as readTextNodeRenderState, a7 as SkeletonPill, aF as buildFaviconUrl, aG as readSiteHostname, V as SkeletonCircle, aH as readSafeHttpUrl, H as useWidgetHydration, F as useIsEmailWidgetRender, G as useReportWidgetRenderStatus, _ as ClockConversationWidget, $ as ConceptExplainerConversationWidget, a1 as CurrencyConverterConversationWidget, a2 as CustomVisualizationConversationWidget, aw as normalizeEntityMentionFields, a4 as EntityMentionConversationWidget, ad as WritingDraftConversationWidget, a9 as SuggestedActions, a5 as MultiChoiceConversationWidget, a6 as QuickRepliesConversationWidget, aa as ToolTraceConversationWidget, a0 as ConversationSearchResultsConversationWidget, ab as WebSearchResultsConversationWidget } from "./WebSearchResultsConversationWidget-as3p5bHw.js";
|
|
5
|
+
import { V as getWidgetSelfHydrationKeyFieldName, J as getAgentsEnvironment, E as escapePlainTextForText, q as Text, I as Icon, a5 as useAgentsOwnerSettings, z as classNames, B as Button, S as SegmentBar, u as TrendDelta, v as WidgetText, $ as translateText, Z as reportWidgetCrash, W as WidgetFeatureGate, f as InteractiveSurface, C as Checkbox, d as DateInput, s as TextInput, R as RadioGroup, k as Select, j as RangeSlider, T as Tabs, r as TextArea, M as Map$1, g as MapMarker, a4 as useAgentsMapsLoader, l as Skeleton, X as openImageGallery, o as StatusBadge, h as Markdown } from "./index-7Qc_3GbG.js";
|
|
5
6
|
import ReactApexChartImport from "react-apexcharts";
|
|
7
|
+
import { i as isAgentsIconName } from "./icon-names-Di6c4zLo.js";
|
|
6
8
|
import { unified } from "unified";
|
|
7
9
|
import remarkParse from "remark-parse";
|
|
8
10
|
import remarkDirective from "remark-directive";
|
|
9
11
|
import { visit } from "unist-util-visit";
|
|
10
|
-
const AGENTS_ICON_NAMES = [
|
|
11
|
-
"add",
|
|
12
|
-
"ai",
|
|
13
|
-
"arrowDown",
|
|
14
|
-
"arrowLeft",
|
|
15
|
-
"arrowRight",
|
|
16
|
-
"arrowUp",
|
|
17
|
-
"barChart",
|
|
18
|
-
"browser",
|
|
19
|
-
"budget",
|
|
20
|
-
"business",
|
|
21
|
-
"calendar",
|
|
22
|
-
"caretDown",
|
|
23
|
-
"caretLeft",
|
|
24
|
-
"caretUp",
|
|
25
|
-
"check",
|
|
26
|
-
"clock",
|
|
27
|
-
"close",
|
|
28
|
-
"closeCanvas",
|
|
29
|
-
"dash",
|
|
30
|
-
"desktop",
|
|
31
|
-
"details",
|
|
32
|
-
"directions",
|
|
33
|
-
"document",
|
|
34
|
-
"download",
|
|
35
|
-
"duplicate",
|
|
36
|
-
"edit",
|
|
37
|
-
"event",
|
|
38
|
-
"exclamation",
|
|
39
|
-
"google",
|
|
40
|
-
"help",
|
|
41
|
-
"home",
|
|
42
|
-
"image",
|
|
43
|
-
"info",
|
|
44
|
-
"like",
|
|
45
|
-
"lineChart",
|
|
46
|
-
"link",
|
|
47
|
-
"location",
|
|
48
|
-
"lock",
|
|
49
|
-
"lockOpen",
|
|
50
|
-
"mail",
|
|
51
|
-
"maps",
|
|
52
|
-
"maximize",
|
|
53
|
-
"message",
|
|
54
|
-
"messageBad",
|
|
55
|
-
"messageGood",
|
|
56
|
-
"messageNeutral",
|
|
57
|
-
"minimize",
|
|
58
|
-
"mobile",
|
|
59
|
-
"newTab",
|
|
60
|
-
"news",
|
|
61
|
-
"notification",
|
|
62
|
-
"pause",
|
|
63
|
-
"phone",
|
|
64
|
-
"photo",
|
|
65
|
-
"pinFilled",
|
|
66
|
-
"play",
|
|
67
|
-
"post",
|
|
68
|
-
"prize",
|
|
69
|
-
"question",
|
|
70
|
-
"refresh",
|
|
71
|
-
"remove",
|
|
72
|
-
"search",
|
|
73
|
-
"searchEngines",
|
|
74
|
-
"settings",
|
|
75
|
-
"shield",
|
|
76
|
-
"sorting",
|
|
77
|
-
"star",
|
|
78
|
-
"starActive",
|
|
79
|
-
"tablet",
|
|
80
|
-
"tag",
|
|
81
|
-
"text",
|
|
82
|
-
"trash",
|
|
83
|
-
"upload",
|
|
84
|
-
"user",
|
|
85
|
-
"visibility",
|
|
86
|
-
"warning",
|
|
87
|
-
"wizard"
|
|
88
|
-
];
|
|
89
|
-
const isAgentsIconName = (value2) => typeof value2 === "string" && AGENTS_ICON_NAMES.includes(value2);
|
|
90
12
|
const WIDGET_FENCE_LANG = "widget";
|
|
91
13
|
const BARE_WIDGET_PARAGRAPH = /^\s*widget\s*(\{[\s\S]*\})\s*$/;
|
|
92
14
|
const BARE_WIDGET_LINE_GLOBAL = /^[ \t]*widget[ \t]*(\{.*\})[ \t]*$/gm;
|
|
@@ -1212,6 +1134,30 @@ const measureComposedViewSourceBytes = (widgetFields) => {
|
|
|
1212
1134
|
const { type: unusedType, writtenSyntax: unusedWrittenSyntax, ...fieldsWithoutType } = widgetFields;
|
|
1213
1135
|
return utf8ByteLength(JSON.stringify(normalizeToPhpArrays(fieldsWithoutType)));
|
|
1214
1136
|
};
|
|
1137
|
+
const composedViewNodeToWire = (node) => {
|
|
1138
|
+
const wireNode = { type: node.type };
|
|
1139
|
+
if (node.id !== null) wireNode.id = node.id;
|
|
1140
|
+
Object.assign(wireNode, node.props);
|
|
1141
|
+
const namedSlots = {};
|
|
1142
|
+
for (const [slotName, slotNodes] of Object.entries(node.nodesBySlotName)) {
|
|
1143
|
+
if (slotNodes.length === 0) continue;
|
|
1144
|
+
const slotWireNodes = slotNodes.map(composedViewNodeToWire);
|
|
1145
|
+
if (slotName === DEFAULT_SLOT_NAME) wireNode.children = slotWireNodes;
|
|
1146
|
+
else namedSlots[slotName] = slotWireNodes;
|
|
1147
|
+
}
|
|
1148
|
+
if (Object.keys(namedSlots).length > 0) wireNode.slots = namedSlots;
|
|
1149
|
+
return wireNode;
|
|
1150
|
+
};
|
|
1151
|
+
const composedViewTreeToWire = (tree) => {
|
|
1152
|
+
const wireFields = {};
|
|
1153
|
+
if (tree.title !== null) wireFields.title = tree.title;
|
|
1154
|
+
if (Object.keys(tree.state).length > 0) wireFields.state = tree.state;
|
|
1155
|
+
if (Object.keys(tree.data).length > 0) wireFields.data = tree.data;
|
|
1156
|
+
if (Object.keys(tree.computed).length > 0) wireFields.computed = tree.computed;
|
|
1157
|
+
if (tree.view !== null) wireFields.view = composedViewNodeToWire(tree.view);
|
|
1158
|
+
if (Object.keys(tree.actions).length > 0) wireFields.actions = tree.actions;
|
|
1159
|
+
return wireFields;
|
|
1160
|
+
};
|
|
1215
1161
|
const getComposedViewSubtreeNodesByPath = (node, path) => [
|
|
1216
1162
|
[path, node],
|
|
1217
1163
|
...Object.entries(node.nodesBySlotName).flatMap(([slotName, slotNodes]) => {
|
|
@@ -2383,7 +2329,8 @@ const buildChartModel = (input) => {
|
|
|
2383
2329
|
horizontalAlign: "center",
|
|
2384
2330
|
fontSize: "13px",
|
|
2385
2331
|
labels: { colors: palette.axisTextColor },
|
|
2386
|
-
markers
|
|
2332
|
+
// ApexCharts before 3.45 rounds legend markers with `radius`, later versions with `shape`; the peer range spans both
|
|
2333
|
+
markers: { radius: 12, shape: "circle" },
|
|
2387
2334
|
itemMargin: { horizontal: 8, vertical: 4 }
|
|
2388
2335
|
},
|
|
2389
2336
|
grid: {
|
|
@@ -6378,6 +6325,10 @@ const subscribeToAuthFailure = (listener) => {
|
|
|
6378
6325
|
const readAuthFailure = () => hasGoogleMapsAuthFailed;
|
|
6379
6326
|
const readAuthFailureOnServer = () => false;
|
|
6380
6327
|
const useGoogleMapsAuthFailure = () => useSyncExternalStore(subscribeToAuthFailure, readAuthFailure, readAuthFailureOnServer);
|
|
6328
|
+
const resetGoogleMapsAuthFailureForTests = () => {
|
|
6329
|
+
hasGoogleMapsAuthFailed = false;
|
|
6330
|
+
};
|
|
6331
|
+
const simulateGoogleMapsAuthFailure = () => markGoogleMapsAuthFailed();
|
|
6381
6332
|
const buildMapRenderReport = (mapView, loadState) => {
|
|
6382
6333
|
if (loadState.isPending) return { status: "pending" };
|
|
6383
6334
|
if (loadState.hasLoadError || loadState.hasAuthFailed) {
|
|
@@ -9631,6 +9582,12 @@ const registerConversationWidgets = (widgets) => {
|
|
|
9631
9582
|
conversationWidgetRegistry.widgets.push(...widgets);
|
|
9632
9583
|
registryRevision += 1;
|
|
9633
9584
|
};
|
|
9585
|
+
const replaceConversationWidgetRegistryEntries = (widgets) => {
|
|
9586
|
+
assertUniqueConversationWidgetNames(widgets);
|
|
9587
|
+
const previousWidgets = conversationWidgetRegistry.widgets.splice(0, conversationWidgetRegistry.widgets.length, ...widgets);
|
|
9588
|
+
registryRevision += 1;
|
|
9589
|
+
return previousWidgets;
|
|
9590
|
+
};
|
|
9634
9591
|
const LEGACY_NAME_SUFFIX = "Directive";
|
|
9635
9592
|
let widgetNameSet;
|
|
9636
9593
|
let widgetNameSetRevision = -1;
|
|
@@ -9690,21 +9647,27 @@ const closestWidgetNames = (type, limit = 3) => {
|
|
|
9690
9647
|
}).filter((entry2) => entry2.keep).sort((a, b) => b.score - a.score).slice(0, limit).map((entry2) => entry2.name);
|
|
9691
9648
|
};
|
|
9692
9649
|
export {
|
|
9693
|
-
|
|
9694
|
-
|
|
9650
|
+
ApexChart as A,
|
|
9651
|
+
readConversationWidgetRegistrations as B,
|
|
9695
9652
|
COMPOSED_VIEW_TONES as C,
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9653
|
+
readOpenEntityActionTarget as D,
|
|
9654
|
+
EmbeddedConversationWidget as E,
|
|
9655
|
+
resolveCanonicalWidgetName as F,
|
|
9656
|
+
resolveWidgetName as G,
|
|
9657
|
+
readComposedViewDataTimes as H,
|
|
9658
|
+
exceedsJsonContainerDepth as I,
|
|
9659
|
+
remarkWidgetFencePlugin as J,
|
|
9660
|
+
readEntityDetailInstanceId as K,
|
|
9661
|
+
readMapNodeKeyOfInstanceId as L,
|
|
9662
|
+
findMapNodeInMarkdown as M,
|
|
9663
|
+
canvasInstanceIdForEntityDetail as N,
|
|
9664
|
+
mapStyles as O,
|
|
9665
|
+
MapPresentationContext as P,
|
|
9666
|
+
buildComposedViewComponentRegistry as Q,
|
|
9667
|
+
composedViewComponents as R,
|
|
9668
|
+
ComposedViewComponentsContext as S,
|
|
9669
|
+
parseWidgetJsonObject as T,
|
|
9670
|
+
BARE_WIDGET_LINE_GLOBAL as U,
|
|
9708
9671
|
WIDGET_FENCE_LANG as W,
|
|
9709
9672
|
COMPOSED_VIEW_TONE_ALIASES as a,
|
|
9710
9673
|
COMPOSED_VIEW_TONE_GRAPHIC_COLOR as b,
|
|
@@ -9712,25 +9675,25 @@ export {
|
|
|
9712
9675
|
ComposedViewConversationWidget as d,
|
|
9713
9676
|
ComposedViewRenderer as e,
|
|
9714
9677
|
readOptionalComposedViewTone as f,
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9678
|
+
useNumberLocale as g,
|
|
9679
|
+
registerComposedViewDataSourceFetcher as h,
|
|
9680
|
+
registerConversationWidgets as i,
|
|
9681
|
+
conversationWidgetRegistry as j,
|
|
9682
|
+
replaceConversationWidgetRegistryEntries as k,
|
|
9683
|
+
resetGoogleMapsAuthFailureForTests as l,
|
|
9684
|
+
findWidgetFenceByPayloadHash as m,
|
|
9685
|
+
findWidgetFencesInMarkdown as n,
|
|
9686
|
+
ConversationWidgetErrorBoundary as o,
|
|
9687
|
+
ConversationWidgetFeatureGate as p,
|
|
9688
|
+
addComposedNodeSchemaApplicationPart as q,
|
|
9726
9689
|
readComposedViewTone as r,
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
};
|
|
9736
|
-
//# sourceMappingURL=widget-name-resolver-
|
|
9690
|
+
simulateGoogleMapsAuthFailure as s,
|
|
9691
|
+
closestWidgetNames as t,
|
|
9692
|
+
useChartPalette as u,
|
|
9693
|
+
composedNodeSchema as v,
|
|
9694
|
+
composedViewTreeToWire as w,
|
|
9695
|
+
getComposedNodeSchema as x,
|
|
9696
|
+
getConversationWidgetRegistryRevision as y,
|
|
9697
|
+
readComposedViewTree as z
|
|
9698
|
+
};
|
|
9699
|
+
//# sourceMappingURL=widget-name-resolver-BGN3HpoG.js.map
|