@mgamadeus/ddd-agents 0.8.2 → 0.8.3

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.
Files changed (22) hide show
  1. package/dist/chat.js +7 -7
  2. package/dist/chunks/{ConversationMarkdown-Cg80bH6c.js → ConversationMarkdown-C5CZJ61t.js} +2 -2
  3. package/dist/chunks/{ConversationMarkdown-Cg80bH6c.js.map → ConversationMarkdown-C5CZJ61t.js.map} +1 -1
  4. package/dist/chunks/{ConversationMessageInputComposerWidgets-DPflWZ5o.js → ConversationMessageInputComposerWidgets-BP_xF99q.js} +2 -2
  5. package/dist/chunks/{ConversationMessageInputComposerWidgets-DPflWZ5o.js.map → ConversationMessageInputComposerWidgets-BP_xF99q.js.map} +1 -1
  6. package/dist/chunks/{VoiceBarsIcon-99m5pR-4.js → VoiceBarsIcon-BUknTraq.js} +3 -3
  7. package/dist/chunks/{VoiceBarsIcon-99m5pR-4.js.map → VoiceBarsIcon-BUknTraq.js.map} +1 -1
  8. package/dist/chunks/{canvas-title-slot-context-vg_UPT-V.js → canvas-title-slot-context-CmbNFYI7.js} +2 -2
  9. package/dist/chunks/{canvas-title-slot-context-vg_UPT-V.js.map → canvas-title-slot-context-CmbNFYI7.js.map} +1 -1
  10. package/dist/chunks/{canvasBodies-8jRybJVU.js → canvasBodies-BFhMzlA-.js} +2 -2
  11. package/dist/chunks/{canvasBodies-8jRybJVU.js.map → canvasBodies-BFhMzlA-.js.map} +1 -1
  12. package/dist/chunks/{widget-name-resolver-In5UWRB3.js → widget-name-resolver-BKh1Fba0.js} +8 -1
  13. package/dist/chunks/{widget-name-resolver-In5UWRB3.js.map → widget-name-resolver-BKh1Fba0.js.map} +1 -1
  14. package/dist/client-testing.js +2 -2
  15. package/dist/image-render.js +2 -2
  16. package/dist/index.js +3 -3
  17. package/dist/kit.js +1 -1
  18. package/dist/preview.js +3 -3
  19. package/dist/renderer.js +5 -5
  20. package/dist/types/renderer/conversationWidgetRegistry.d.ts +9 -1
  21. package/dist/voice.js +1 -1
  22. package/package.json +1 -1
@@ -2,8 +2,8 @@
2
2
  import { a as AgentsClientError, C as CONVERSATION_RUN_STATES_THAT_END_THE_CONVERSATION, r as readConversationRunStatusOfRunState } from "./chunks/conversation-CbWEHPbL.js";
3
3
  import { c as composeAttachmentMessageText } from "./chunks/compose-attachment-message-text-FvVJbrge.js";
4
4
  import { l as listWidgetHydratorTypes, k as getWidgetHydrator, h as registerWidgetHydrator, m as abandonWidgetHydrationReads, u as unregisterWidgetHydrator } from "./chunks/WebSearchResultsConversationWidget-W7O1fBB0.js";
5
- import { j as conversationWidgetRegistry, k as replaceConversationWidgetRegistryEntries } from "./chunks/widget-name-resolver-In5UWRB3.js";
6
- import { l, s } from "./chunks/widget-name-resolver-In5UWRB3.js";
5
+ import { j as conversationWidgetRegistry, k as replaceConversationWidgetRegistryEntries } from "./chunks/widget-name-resolver-BKh1Fba0.js";
6
+ import { l, s } from "./chunks/widget-name-resolver-BKh1Fba0.js";
7
7
  import { c, r, s as s2 } from "./chunks/canvasStorage-DaM9851h.js";
8
8
  const DEFAULT_SCRIPTED_ASSISTANT_ANSWER = "Done.";
9
9
  const DEFAULT_PAGE_SIZE = 50;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import React, { useRef, useEffect } from "react";
4
- import { G as resolveWidgetName, j as conversationWidgetRegistry } from "./chunks/widget-name-resolver-In5UWRB3.js";
5
- import { H } from "./chunks/widget-name-resolver-In5UWRB3.js";
4
+ import { G as resolveWidgetName, j as conversationWidgetRegistry } from "./chunks/widget-name-resolver-BKh1Fba0.js";
5
+ import { H } from "./chunks/widget-name-resolver-BKh1Fba0.js";
6
6
  import { z as ConversationWidgetRenderContext, a7 as WidgetImageReadinessContext, R as ReadOnlyConversationWidgetProvider, a8 as WidgetImageRenderContext, a9 as WidgetImageLiveHydrationContext, A as buildWidgetAgentSpaceKeyProps } from "./chunks/WebSearchResultsConversationWidget-W7O1fBB0.js";
7
7
  import { aa, ab, ac } from "./chunks/WebSearchResultsConversationWidget-W7O1fBB0.js";
8
8
  import { r as readWidgetImageReadiness, p as publishWidgetImageReadiness, i as interceptXMLHttpRequests, a as interceptFetchRequests, c as createHeaderlessResponse, t as toSameRealmFetchInput } from "./chunks/browser-request-interception-BnzFbH0m.js";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { h, i } from "./chunks/widget-name-resolver-In5UWRB3.js";
3
- import { r as registerCanvasBodies, c as canvasBodies } from "./chunks/canvasBodies-8jRybJVU.js";
4
- import { g, a, b } from "./chunks/canvasBodies-8jRybJVU.js";
2
+ import { h, i } from "./chunks/widget-name-resolver-BKh1Fba0.js";
3
+ import { r as registerCanvasBodies, c as canvasBodies } from "./chunks/canvasBodies-BFhMzlA-.js";
4
+ import { g, a, b } from "./chunks/canvasBodies-BFhMzlA-.js";
5
5
  import { a as isPackageCanvasId, d as declareCanvasKind, f as forgetCanvasKind } from "./chunks/WebSearchResultsConversationWidget-W7O1fBB0.js";
6
6
  import { r, b as b2, c, e, g as g2, h as h2 } from "./chunks/WebSearchResultsConversationWidget-W7O1fBB0.js";
7
7
  import { r as registerCanvasFeatureFlags, c as canvasFeatureFlags } from "./chunks/canvas-feature-flags-Cn8xBliA.js";
package/dist/kit.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { A, C, a, b, c, d, e, E, r, f, u, g } from "./chunks/widget-name-resolver-In5UWRB3.js";
2
+ import { A, C, a, b, c, d, e, E, r, f, u, g } from "./chunks/widget-name-resolver-BKh1Fba0.js";
3
3
  import { M } from "./chunks/WebSearchResultsConversationWidget-W7O1fBB0.js";
4
4
  import { E as E2, u as u2 } from "./chunks/entity-detail-name-3A82gDAp.js";
5
5
  export {
package/dist/preview.js CHANGED
@@ -2,12 +2,12 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { s as Text, Y as getWidgetSelfHydrationKeyFieldName, e as DEFAULT_WIDGET_SELF_HYDRATION_KEY_FIELD_NAME, V as getSandboxLegacyAliases } from "./chunks/link-navigation-BUcy5qWW.js";
4
4
  import { useRef, useState, useMemo, useEffect, useCallback } from "react";
5
- import { Q as buildComposedViewComponentRegistry, R as composedViewComponents, G as resolveWidgetName, j as conversationWidgetRegistry, o as ConversationWidgetErrorBoundary, S as ComposedViewComponentsContext } from "./chunks/widget-name-resolver-In5UWRB3.js";
5
+ import { Q as buildComposedViewComponentRegistry, R as composedViewComponents, G as resolveWidgetName, j as conversationWidgetRegistry, o as ConversationWidgetErrorBoundary, S as ComposedViewComponentsContext } from "./chunks/widget-name-resolver-BKh1Fba0.js";
6
6
  import { aN as WidgetSurface, Z as readWidgetAgentSpaceKeyAttribute, j as canvasBehaviourOf, W as WidgetRenderReportContext, A as buildWidgetAgentSpaceKeyProps, S as StandaloneConversationWidgetProvider, z as ConversationWidgetRenderContext, a8 as WidgetImageRenderContext, ah as CANVAS_VIABLE_MIN_WIDTH, l as listWidgetHydratorTypes, k as getWidgetHydrator, u as unregisterWidgetHydrator, h as registerWidgetHydrator } from "./chunks/WebSearchResultsConversationWidget-W7O1fBB0.js";
7
- import { c as canvasBodies, E as EntityMentionAskButton } from "./chunks/canvasBodies-8jRybJVU.js";
7
+ import { c as canvasBodies, E as EntityMentionAskButton } from "./chunks/canvasBodies-BFhMzlA-.js";
8
8
  import { f as decideCanvasOpen } from "./chunks/canvas-reducers-DDg9T7t8.js";
9
9
  import { p as publishWidgetImageReadiness, i as interceptXMLHttpRequests, d as isFetchRequest, c as createHeaderlessResponse } from "./chunks/browser-request-interception-BnzFbH0m.js";
10
- import { C as ConversationWidgetProvider, a as ConversationMessageInputComposerWidgets } from "./chunks/ConversationMessageInputComposerWidgets-DPflWZ5o.js";
10
+ import { C as ConversationWidgetProvider, a as ConversationMessageInputComposerWidgets } from "./chunks/ConversationMessageInputComposerWidgets-BP_xF99q.js";
11
11
  const page$1 = "agents_page_5VMDeD";
12
12
  const chatColumn = "agents_chatColumn_FWcgdJ";
13
13
  const widget = "agents_widget_3qpgMy";
package/dist/renderer.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { C, a, M, W, b, c, d, p, s } from "./chunks/ConversationMarkdown-Cg80bH6c.js";
3
- import { m as findWidgetFenceByPayloadHash, n as findWidgetFencesInMarkdown } from "./chunks/widget-name-resolver-In5UWRB3.js";
4
- import { o, p as p2, q, t, v, w, j, x, y, z, B, D, F, G } from "./chunks/widget-name-resolver-In5UWRB3.js";
2
+ import { C, a, M, W, b, c, d, p, s } from "./chunks/ConversationMarkdown-C5CZJ61t.js";
3
+ import { m as findWidgetFenceByPayloadHash, n as findWidgetFencesInMarkdown } from "./chunks/widget-name-resolver-BKh1Fba0.js";
4
+ import { o, p as p2, q, t, v, w, j, x, y, z, B, D, F, G } from "./chunks/widget-name-resolver-BKh1Fba0.js";
5
5
  import { n as useResolvedConversationWidgetAgentSpaceKey, p as payloadHashOfInstanceId } from "./chunks/WebSearchResultsConversationWidget-W7O1fBB0.js";
6
6
  import { C as C2, o as o2, q as q2, t as t2, v as v2, w as w2, x as x2, y as y2, z as z2, D as D2, L, R, S, W as W2, A, j as j2, B as B2, E, F as F2, G as G2, H, I, J, K, N, O, P, k, Q, T, i, U, a as a2, V, X, Y, Z, _, h, $, s as s2, a0, u, a1, a2 as a22, a3, a4, a5, a6 } from "./chunks/WebSearchResultsConversationWidget-W7O1fBB0.js";
7
- import { C as C3, d as d2, g, i as i2, r, u as u2 } from "./chunks/canvas-title-slot-context-vg_UPT-V.js";
8
- import { c as c2, u as u3 } from "./chunks/canvasBodies-8jRybJVU.js";
7
+ import { C as C3, d as d2, g, i as i2, r, u as u2 } from "./chunks/canvas-title-slot-context-CmbNFYI7.js";
8
+ import { c as c2, u as u3 } from "./chunks/canvasBodies-BFhMzlA-.js";
9
9
  import { jsxs, jsx } from "react/jsx-runtime";
10
10
  import { n as Skeleton } from "./chunks/link-navigation-BUcy5qWW.js";
11
11
  import { ac, ad, ae, af, ag } from "./chunks/link-navigation-BUcy5qWW.js";
@@ -53,6 +53,13 @@ export interface ConversationWidgetEntry {
53
53
  * is nothing but such widgets shows no bubble at all.
54
54
  */
55
55
  customerMessagePlacement?: "insideBubble" | "aboveBubble";
56
+ /**
57
+ * An app's entry that takes the place of the PACKAGE's widget of the same wire name (an app that used the name before
58
+ * the package shipped one, or renders it its own way) — the web twin of the PHP rule that a subclass of a package
59
+ * widget wins. Only for `registerConversationWidgets`; without it a name the package registers throws, and an app's
60
+ * name registered twice by the app always throws. Default false.
61
+ */
62
+ replacesPackageWidget?: boolean;
56
63
  }
57
64
  /** The entries of a set of registration modules (`*.widget-registration.ts` files an app or the package globbed). */
58
65
  export declare const readConversationWidgetRegistrations: (registrationModules: Record<string, {
@@ -81,7 +88,8 @@ export declare const conversationWidgetRegistry: {
81
88
  export declare const getConversationWidgetRegistryRevision: () => number;
82
89
  /**
83
90
  * Adds an app's widgets to the registry. Runs outside React, before the first render; throws when a wire name is
84
- * registered twice (with the package's own or an earlier registration).
91
+ * registered twice (with the package's own or an earlier registration). An entry with `replacesPackageWidget` first
92
+ * removes the package's entry of its name; it never replaces an app's earlier registration.
85
93
  */
86
94
  export declare const registerConversationWidgets: (widgets: readonly ConversationWidgetEntry[]) => void;
87
95
  /**
package/dist/voice.js CHANGED
@@ -5,7 +5,7 @@ import { f as formatAgentVoiceCallDuration } from "./chunks/format-agent-voice-c
5
5
  import { a as useOptionalAgentsConversationClient } from "./chunks/AgentsConversationClientContext-C4T7g_Qk.js";
6
6
  import { c as DEFAULT_AGENTS_TEXTS, ab as useAgentsTexts, K as getAgentDisplayName, a4 as useAgentsComponents, D as DEFAULT_AGENTS_COMPONENTS } from "./chunks/link-navigation-BUcy5qWW.js";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- import { V as VoiceBarsIcon, C as ConversationMessageWidgets, a as ConversationMessageUser } from "./chunks/VoiceBarsIcon-99m5pR-4.js";
8
+ import { V as VoiceBarsIcon, C as ConversationMessageWidgets, a as ConversationMessageUser } from "./chunks/VoiceBarsIcon-BUknTraq.js";
9
9
  import { a as useOptionalAgentsChatStore, u as useAgentsChatSelector } from "./chunks/use-agents-chat-store-CuIkCz9v.js";
10
10
  class AgentVoiceApiError extends Error {
11
11
  constructor(code, httpStatus) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgamadeus/ddd-agents",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "The web frontend of the ddd-agents module: the agent chat, the widget renderer and the composed-view kit.",
5
5
  "keywords": [
6
6
  "ddd",