@mgamadeus/ddd-agents 0.8.0 → 0.8.1
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/chat.js +9 -9
- package/dist/chunks/{ConversationMarkdown-BsCjyhj4.js → ConversationMarkdown-Cg80bH6c.js} +3 -3
- package/dist/chunks/{ConversationMarkdown-BsCjyhj4.js.map → ConversationMarkdown-Cg80bH6c.js.map} +1 -1
- package/dist/chunks/{ConversationMessageInputComposerWidgets-CE8LpyXY.js → ConversationMessageInputComposerWidgets-DPflWZ5o.js} +5 -5
- package/dist/chunks/{ConversationMessageInputComposerWidgets-CE8LpyXY.js.map → ConversationMessageInputComposerWidgets-DPflWZ5o.js.map} +1 -1
- package/dist/chunks/{VoiceBarsIcon-BIcURsBF.js → VoiceBarsIcon-99m5pR-4.js} +3 -3
- package/dist/chunks/{VoiceBarsIcon-BIcURsBF.js.map → VoiceBarsIcon-99m5pR-4.js.map} +1 -1
- package/dist/chunks/{WebSearchResultsConversationWidget-DXhfSikV.js → WebSearchResultsConversationWidget-W7O1fBB0.js} +1825 -1314
- package/dist/chunks/WebSearchResultsConversationWidget-W7O1fBB0.js.map +1 -0
- package/dist/chunks/{canvas-reducers-D-YxAR4B.js → canvas-reducers-DDg9T7t8.js} +2 -2
- package/dist/chunks/{canvas-reducers-D-YxAR4B.js.map → canvas-reducers-DDg9T7t8.js.map} +1 -1
- package/dist/chunks/{canvas-title-slot-context-D6UXrkdJ.js → canvas-title-slot-context-vg_UPT-V.js} +2 -2
- package/dist/chunks/{canvas-title-slot-context-D6UXrkdJ.js.map → canvas-title-slot-context-vg_UPT-V.js.map} +1 -1
- package/dist/chunks/{canvasBodies-CQEBkIVw.js → canvasBodies-8jRybJVU.js} +18 -4
- package/dist/chunks/canvasBodies-8jRybJVU.js.map +1 -0
- package/dist/chunks/{canvasStorage-BbEI3h-8.js → canvasStorage-DaM9851h.js} +2 -2
- package/dist/chunks/{canvasStorage-BbEI3h-8.js.map → canvasStorage-DaM9851h.js.map} +1 -1
- package/dist/chunks/{widget-name-resolver-B9k-s_cF.js → widget-name-resolver-In5UWRB3.js} +63 -42
- package/dist/chunks/widget-name-resolver-In5UWRB3.js.map +1 -0
- package/dist/client-testing.js +4 -4
- package/dist/files/i18n-keys.json +124 -3
- package/dist/files/renderer/widget-tree/composed-node-schema.json +2 -0
- package/dist/image-render.js +7 -7
- package/dist/index.js +9 -8
- package/dist/kit.js +2 -2
- package/dist/preview.js +5 -5
- package/dist/renderer.js +54 -54
- package/dist/renderer.js.map +1 -1
- package/dist/styles.css +625 -305
- package/dist/types/entries/index.d.ts +1 -0
- package/dist/types/entries/widgets.d.ts +6 -0
- package/dist/types/renderer/canvas/canvas-behaviours.d.ts +1 -1
- package/dist/types/widgets/AttachedFilesConversationWidget/AttachedFilesConversationWidget.d.ts +6 -0
- package/dist/types/widgets/AttachedFilesConversationWidget/AttachedFilesStrip.d.ts +22 -0
- package/dist/types/widgets/AttachedFilesConversationWidget/attached-files.d.ts +24 -0
- package/dist/types/widgets/ImageGalleryConversationWidget/ImageGallery.d.ts +16 -0
- package/dist/types/widgets/ImageGalleryConversationWidget/ImageGalleryCanvasBody.d.ts +6 -0
- package/dist/types/widgets/ImageGalleryConversationWidget/ImageGalleryConversationWidget.d.ts +11 -0
- package/dist/types/widgets/ImageGalleryConversationWidget/shared/image-gallery-canvas.d.ts +3 -0
- package/dist/types/widgets/ImageGalleryConversationWidget/shared/image-gallery-payload.d.ts +42 -0
- package/dist/types/widgets/_shared/file-preview-source.d.ts +33 -0
- package/dist/voice.js +1 -1
- package/dist/widgets.js +78 -62
- package/package.json +1 -1
- package/public-api.json +25 -1
- package/dist/chunks/WebSearchResultsConversationWidget-DXhfSikV.js.map +0 -1
- package/dist/chunks/canvasBodies-CQEBkIVw.js.map +0 -1
- package/dist/chunks/widget-name-resolver-B9k-s_cF.js.map +0 -1
|
@@ -7,6 +7,7 @@ export { registerCanvasFeatureFlags } from "../renderer/canvas/canvas-feature-fl
|
|
|
7
7
|
export { registerWidgetHydrator } from "../renderer/widget-hydration/widget-hydration.registry";
|
|
8
8
|
export { registerDriveFileCardsSource, type DriveFileCardsSource, } from "../widgets/DriveFilesConversationWidget/shared/drive-file-cards-source";
|
|
9
9
|
export type { DriveFileCard, DriveFileContent, DriveFilesRequest } from "../widgets/DriveFilesConversationWidget/shared/drive-files";
|
|
10
|
+
export { registerFilePreviewSource, type FilePreviewSource, type FilePreviewVariant, } from "../widgets/_shared/file-preview-source";
|
|
10
11
|
export { registerDriveFileCanvasOpener, type DriveFileCanvasOpener, } from "../widgets/DriveFilesConversationWidget/shared/drive-file-canvas-openers";
|
|
11
12
|
export { registerComposedViewDataSourceFetcher, type ComposedViewDataSourceFetcher, } from "../renderer/widget-tree/composed-view-data-sources";
|
|
12
13
|
export { getEntityDetailBody, readEntityDetailBodyDefinitions, registerEntityDetailBodies, type EntityDetailBodyDefinition, } from "../kit/entity-detail/entity-detail-bodies";
|
|
@@ -36,3 +36,9 @@ export { normalizeSearchHitExcerpt } from "../widgets/ConversationSearchResultsC
|
|
|
36
36
|
export type { ConceptExplainerStep, ConceptExplainerStepsInput, ConceptExplainerText, ConceptExplainerValues, ConceptExplainerValuesReading, ConceptExplainerVariant, ConceptExplainerVisualProps, } from "../widgets/ConceptExplainerConversationWidget/shared/concept-explainer-type";
|
|
37
37
|
export { readConceptExplainerNumber, readConceptExplainerValue, } from "../widgets/ConceptExplainerConversationWidget/shared/concept-explainer-widget-payload";
|
|
38
38
|
export { formatConceptExplainerNumber } from "../widgets/ConceptExplainerConversationWidget/shared/use-concept-explainer-language";
|
|
39
|
+
export { FILE_PREVIEW_SOURCE_MISSING, readFilePreviewSource, unregisterFilePreviewSource, useFilePictureUrl, type FilePictureState, } from "../widgets/_shared/file-preview-source";
|
|
40
|
+
export { ImageGalleryConversationWidget } from "../widgets/ImageGalleryConversationWidget/ImageGalleryConversationWidget";
|
|
41
|
+
export { IMAGE_GALLERY_MAX_FILES, IMAGE_GALLERY_WIDGET_TYPE, buildImageGalleryDeclineSentence, buildImageGalleryPickSentence, parseImageGalleryPayload, type ImageGalleryFile, type ImageGalleryPayload, } from "../widgets/ImageGalleryConversationWidget/shared/image-gallery-payload";
|
|
42
|
+
export { AttachedFilesConversationWidget } from "../widgets/AttachedFilesConversationWidget/AttachedFilesConversationWidget";
|
|
43
|
+
export { AttachedFilesStrip, type AttachedFileUpload } from "../widgets/AttachedFilesConversationWidget/AttachedFilesStrip";
|
|
44
|
+
export { ATTACHED_FILES_MAX, ATTACHED_FILES_WIDGET_TYPE, buildAttachedFilesComposerWidget, readAttachedFiles, type AttachedFile, } from "../widgets/AttachedFilesConversationWidget/attached-files";
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* cycle).
|
|
15
15
|
*/
|
|
16
16
|
/** The canvases of the package's own widgets. */
|
|
17
|
-
export type PackageCanvasId = "conversationSearchResults" | "webSearchResults" | "entityDetail" | "mapFullScreen";
|
|
17
|
+
export type PackageCanvasId = "conversationSearchResults" | "webSearchResults" | "entityDetail" | "mapFullScreen" | "imageGallery";
|
|
18
18
|
/**
|
|
19
19
|
* The id of a canvas: one of the package's (`PackageCanvasId`), one an app declares
|
|
20
20
|
* (`AgentsEnvironment.furtherCanvasBehaviours`) or one a registered canvas kind brings (`registerCanvasKind`). Append-only while a stored pointer (`canvasStorage.ts`) may still name
|
package/dist/types/widgets/AttachedFilesConversationWidget/AttachedFilesConversationWidget.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PayloadConversationWidgetProps } from "../../renderer/conversation-widget-props";
|
|
2
|
+
/**
|
|
3
|
+
* `AttachedFiles`: the files the owner attached to a message, as chips above the bubble (a picture with its
|
|
4
|
+
* thumbnail through the host's `FilePreviewSource`). Written by the host's composer, never by the agent.
|
|
5
|
+
*/
|
|
6
|
+
export declare const AttachedFilesConversationWidget: ({ payload }: PayloadConversationWidgetProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AttachedFile } from "./attached-files";
|
|
2
|
+
/** An upload the host is still sending: shown as a chip with its name and a state line. */
|
|
3
|
+
export interface AttachedFileUpload {
|
|
4
|
+
key: string;
|
|
5
|
+
name: string;
|
|
6
|
+
/** `uploading`, or the reason it failed (a sentence for the owner) */
|
|
7
|
+
state: "uploading" | {
|
|
8
|
+
failed: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The attached files as chips: in the owner's message (read-only), and in the host's composer above the text
|
|
13
|
+
* (`AgentChat`'s `inputTopSlot`) with a remove button per file and the uploads still running.
|
|
14
|
+
*/
|
|
15
|
+
export declare const AttachedFilesStrip: ({ files, uploads, onRemove, onDismissUpload, inComposer, testId, }: {
|
|
16
|
+
files: AttachedFile[];
|
|
17
|
+
uploads?: AttachedFileUpload[];
|
|
18
|
+
onRemove?: (reference: string) => void;
|
|
19
|
+
onDismissUpload?: (key: string) => void;
|
|
20
|
+
inComposer?: boolean;
|
|
21
|
+
testId?: string;
|
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ConversationComposerWidget } from "../../renderer/conversation-composer-widget";
|
|
2
|
+
/**
|
|
3
|
+
* The `AttachedFiles` fence (`AttachedFilesConversationWidget.php`): files the owner attached to a message, named by
|
|
4
|
+
* reference (`drive/812`), with the name the host stored them under and whether each is a picture. The owner's message
|
|
5
|
+
* carries it; the agent reads the references and works with them like any other file.
|
|
6
|
+
*/
|
|
7
|
+
export interface AttachedFile {
|
|
8
|
+
/** `<source>/<id>`, never a URL */
|
|
9
|
+
reference: string;
|
|
10
|
+
name: string;
|
|
11
|
+
/** A picture: the chip shows its thumbnail (`FilePreviewSource`) */
|
|
12
|
+
isImage: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ATTACHED_FILES_WIDGET_TYPE = "AttachedFiles";
|
|
15
|
+
/** The most files one message carries. */
|
|
16
|
+
export declare const ATTACHED_FILES_MAX = 12;
|
|
17
|
+
/** Reads the files of a payload or of composer fields; a file without a valid reference is left out. */
|
|
18
|
+
export declare const readAttachedFiles: (fields: unknown) => AttachedFile[];
|
|
19
|
+
export declare const parseAttachedFilesPayload: (raw: string) => AttachedFile[];
|
|
20
|
+
/**
|
|
21
|
+
* The composer widget a host holds for files it uploaded (`AgentChat`'s `hostComposerWidgets`): sent as an
|
|
22
|
+
* `AttachedFiles` fence with the owner's next message. The host clears it in `onComposerWidgetsSent`.
|
|
23
|
+
*/
|
|
24
|
+
export declare const buildAttachedFilesComposerWidget: (attachedFiles: AttachedFile[], composerWidgetId?: string) => ConversationComposerWidget;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ImageGalleryPayload } from "./shared/image-gallery-payload";
|
|
2
|
+
export interface ImageGalleryProps {
|
|
3
|
+
gallery: ImageGalleryPayload;
|
|
4
|
+
/** The controls may be used (a live or newest message, no newer owner message past it). */
|
|
5
|
+
interactive: boolean;
|
|
6
|
+
/** `canvas`: more columns, the title as a heading. */
|
|
7
|
+
surface: "inline" | "canvas";
|
|
8
|
+
testId: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The gallery itself, in the message and in the canvas: lettered tiles, the lightbox, and with `selection` `one` or
|
|
12
|
+
* `many` the pick. The pick and the decline post a FRONTEND_WIDGET_CLICK signal (`injectSignal`) whose sentence is the
|
|
13
|
+
* stored contract of `image-gallery-widget-contract.json`; the gallery locks once the host confirms the send and shows
|
|
14
|
+
* what was picked in its place.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ImageGallery: ({ gallery, interactive, surface, testId }: ImageGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CanvasBodyProps } from "../../renderer/canvas/canvas-body-props";
|
|
2
|
+
/**
|
|
3
|
+
* The `imageGallery` canvas body: re-reads the `ImageGallery` fence of the anchor message and shows the same gallery
|
|
4
|
+
* with more room. The pick works here as inline; it is inert once a newer owner message exists past the anchor.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ImageGalleryCanvasBody: ({ canvas, anchorMessageMarkdown }: CanvasBodyProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PayloadConversationWidgetProps } from "../../renderer/conversation-widget-props";
|
|
2
|
+
/** More pictures than this open in the canvas unless the block says `display`. */
|
|
3
|
+
export declare const IMAGE_GALLERY_INLINE_LIMIT = 6;
|
|
4
|
+
/**
|
|
5
|
+
* `ImageGallery`: pictures of files by reference as lettered tiles, a lightbox, and the owner's pick. Inline in the
|
|
6
|
+
* message for a few pictures, in the canvas (`imageGallery`) for many or when the block says `display: "canvas"`.
|
|
7
|
+
* The pictures come through the host's `FilePreviewSource`; the block never holds a URL.
|
|
8
|
+
*
|
|
9
|
+
* Inert once a newer owner message exists past its host message (the conversation moved on), like the answer pills.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ImageGalleryConversationWidget: (props: PayloadConversationWidgetProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `ImageGallery` fence payload (`ImageGalleryConversationWidget.php`): pictures of files, named by file reference
|
|
3
|
+
* (`media/901`, `drive/812`), never by URL. The component loads each picture through the host's
|
|
4
|
+
* {@link FilePreviewSource} under the viewer's rights.
|
|
5
|
+
*/
|
|
6
|
+
export type ImageGallerySelection = "none" | "one" | "many";
|
|
7
|
+
export type ImageGalleryDisplay = "inline" | "canvas";
|
|
8
|
+
export interface ImageGalleryFile {
|
|
9
|
+
/** `<source>/<id>`: the file, never a URL */
|
|
10
|
+
reference: string;
|
|
11
|
+
/** The letter of the tile, by position: A for the first */
|
|
12
|
+
letter: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
caption?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ImageGalleryPayload {
|
|
17
|
+
title?: string;
|
|
18
|
+
/** What the gallery is for (`pick-REWARD_PHOTO-8841`), named in every reaction sentence */
|
|
19
|
+
name?: string;
|
|
20
|
+
selection: ImageGallerySelection;
|
|
21
|
+
display?: ImageGalleryDisplay;
|
|
22
|
+
files: ImageGalleryFile[];
|
|
23
|
+
}
|
|
24
|
+
export declare const IMAGE_GALLERY_WIDGET_TYPE = "ImageGallery";
|
|
25
|
+
/** The most pictures of one gallery: the letters A to L. */
|
|
26
|
+
export declare const IMAGE_GALLERY_MAX_FILES = 12;
|
|
27
|
+
export declare const IMAGE_GALLERY_LETTERS = "ABCDEFGHIJKL";
|
|
28
|
+
/**
|
|
29
|
+
* Reads the payload; a file without a valid reference is left out, a thirteenth one too. Null when no picture is
|
|
30
|
+
* left (the widget then renders nothing and reports the drop).
|
|
31
|
+
*/
|
|
32
|
+
export declare const parseImageGalleryPayload: (raw: string) => ImageGalleryPayload | null;
|
|
33
|
+
/** The sentence start that names the gallery: the wire name and its name when it has one. */
|
|
34
|
+
export declare const buildImageGallerySentencePrefix: (name: string | undefined) => string;
|
|
35
|
+
/**
|
|
36
|
+
* The pick the widget posts (FRONTEND_WIDGET_CLICK): `ImageGallery: the operator picked A (media/901)`, several
|
|
37
|
+
* `ImageGallery: the operator picked 2 pictures: A (media/901), C (media/903)`, in letter order. A stored contract
|
|
38
|
+
* (`image-gallery-widget-contract.json`), read by `ImageGalleryConversationWidget::readAnswer()`.
|
|
39
|
+
*/
|
|
40
|
+
export declare const buildImageGalleryPickSentence: (name: string | undefined, pickedFiles: ImageGalleryFile[]) => string;
|
|
41
|
+
/** The decline the widget posts: `ImageGallery: the operator declined all pictures`. */
|
|
42
|
+
export declare const buildImageGalleryDeclineSentence: (name: string | undefined) => string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The size of a picture a widget asks for: `THUMBNAIL` for a tile (the host renders at most 320 px), `PREVIEW` for the
|
|
3
|
+
* lightbox (at most 2048 px). The variants of Core's file route (`FileSourcesControllerTrait`).
|
|
4
|
+
*/
|
|
5
|
+
export type FilePreviewVariant = "THUMBNAIL" | "PREVIEW";
|
|
6
|
+
/**
|
|
7
|
+
* Where the widgets that show files by reference (`ImageGallery`, `AttachedFiles`) read their pictures: a URL the
|
|
8
|
+
* browser may put into an `<img>` for one file reference and size, under the viewer's rights. The one seam between
|
|
9
|
+
* those widgets and the host's backend; the host registers it with {@link registerFilePreviewSource} before the first
|
|
10
|
+
* chat. Typical: fetch the host's file route with the session and hand out an object URL of the answer (no public,
|
|
11
|
+
* presigned or object store URL ever reaches the block).
|
|
12
|
+
*/
|
|
13
|
+
export interface FilePreviewSource {
|
|
14
|
+
/**
|
|
15
|
+
* The URL of the picture; rejects when the viewer may not read the file, it is no picture, or the read failed. The
|
|
16
|
+
* source may cache the answer per reference and variant; a widget asks again whenever it mounts.
|
|
17
|
+
*/
|
|
18
|
+
readPictureUrl: (reference: string, variant: FilePreviewVariant, signal: AbortSignal) => Promise<string>;
|
|
19
|
+
}
|
|
20
|
+
/** The error of a picture read while no source is registered: the tile says the files are not connected. */
|
|
21
|
+
export declare const FILE_PREVIEW_SOURCE_MISSING = "FILE_PREVIEW_SOURCE_MISSING";
|
|
22
|
+
/** Registers the source of the pictures. Call it once, outside React, before the first chat; a second call replaces the first. */
|
|
23
|
+
export declare const registerFilePreviewSource: (source: FilePreviewSource) => void;
|
|
24
|
+
/** The registered source, or `null` while none is connected. */
|
|
25
|
+
export declare const readFilePreviewSource: () => FilePreviewSource | null;
|
|
26
|
+
/** Takes the source off again (tests, a host that disconnects). */
|
|
27
|
+
export declare const unregisterFilePreviewSource: () => void;
|
|
28
|
+
export interface FilePictureState {
|
|
29
|
+
url: string | null;
|
|
30
|
+
status: "loading" | "loaded" | "failed" | "notConnected";
|
|
31
|
+
}
|
|
32
|
+
/** The picture of one file reference in one size, read through the registered source; `null` reference reads nothing. */
|
|
33
|
+
export declare const useFilePictureUrl: (reference: string | null, variant: FilePreviewVariant) => FilePictureState;
|
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-
|
|
8
|
+
import { V as VoiceBarsIcon, C as ConversationMessageWidgets, a as ConversationMessageUser } from "./chunks/VoiceBarsIcon-99m5pR-4.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/dist/widgets.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { a2 as useIsEmailWidgetRender } from "./chunks/WebSearchResultsConversationWidget-W7O1fBB0.js";
|
|
3
|
+
import { ad, ae, af, ag, ah, ai, aj, ak, aj as aj2, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm } from "./chunks/WebSearchResultsConversationWidget-W7O1fBB0.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { r as StatusChip, s as Text, F as classNames } from "./chunks/link-navigation-BUcy5qWW.js";
|
|
6
6
|
import { g, x } from "./chunks/link-navigation-BUcy5qWW.js";
|
|
@@ -76,72 +76,88 @@ const useElementVisible = (ref) => {
|
|
|
76
76
|
return intersecting && documentVisible;
|
|
77
77
|
};
|
|
78
78
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
ad as ATTACHED_FILES_MAX,
|
|
80
|
+
ae as ATTACHED_FILES_WIDGET_TYPE,
|
|
81
|
+
af as AttachedFilesConversationWidget,
|
|
82
|
+
ag as AttachedFilesStrip,
|
|
83
|
+
ah as CANVAS_VIABLE_MIN_WIDTH,
|
|
84
|
+
ai as CUSTOM_VISUALIZATION_SANDBOX_CONFIG,
|
|
85
|
+
aj as CanvasLauncherWidget,
|
|
86
|
+
ak as CanvasViabilityContext,
|
|
87
|
+
aj2 as CanvasWidgetCard,
|
|
88
|
+
al as CanvasWidgetSwitch,
|
|
85
89
|
WidgetFooter as CardFooter,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
am as ClockConversationWidget,
|
|
91
|
+
an as ConceptExplainerConversationWidget,
|
|
92
|
+
ao as ConversationSearchResultsConversationWidget,
|
|
93
|
+
ap as CurrencyConverterConversationWidget,
|
|
94
|
+
aq as CustomVisualizationConversationWidget,
|
|
95
|
+
ar as DRIVE_FILES_MAX_FILES,
|
|
96
|
+
as as DRIVE_FILES_WIDGET_TYPE,
|
|
97
|
+
at as DRIVE_FILE_CARDS_SOURCE_MISSING,
|
|
98
|
+
au as DonePill,
|
|
99
|
+
av as DriveFilesConversationWidget,
|
|
100
|
+
aw as ElementWidthCanvasViability,
|
|
101
|
+
ax as EntityMentionConversationWidget,
|
|
102
|
+
ay as FILE_PREVIEW_SOURCE_MISSING,
|
|
98
103
|
g as HeroValue,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
az as IMAGE_GALLERY_MAX_FILES,
|
|
105
|
+
aA as IMAGE_GALLERY_WIDGET_TYPE,
|
|
106
|
+
aB as ImageGalleryConversationWidget,
|
|
107
|
+
aC as MultiChoiceConversationWidget,
|
|
108
|
+
aD as QuickRepliesConversationWidget,
|
|
109
|
+
aE as SkeletonCircle,
|
|
110
|
+
aF as SkeletonLine,
|
|
111
|
+
aG as SkeletonPill,
|
|
112
|
+
aH as SkeletonWidgetLabel,
|
|
113
|
+
aI as SuggestedActions,
|
|
114
|
+
aJ as ToolTraceConversationWidget,
|
|
115
|
+
aK as WebSearchResultsConversationWidget,
|
|
108
116
|
WidgetFooter,
|
|
109
|
-
|
|
117
|
+
aL as WidgetKpiValue,
|
|
110
118
|
WidgetLabel,
|
|
111
|
-
|
|
119
|
+
aM as WidgetListRow,
|
|
112
120
|
WidgetStatusChip,
|
|
113
|
-
|
|
114
|
-
|
|
121
|
+
aN as WidgetSurface,
|
|
122
|
+
aO as WidgetSurfaceSkeleton,
|
|
115
123
|
x as WidgetText,
|
|
116
|
-
|
|
117
|
-
|
|
124
|
+
aP as WritingDraftConversationWidget,
|
|
125
|
+
aQ as buildAttachedFilesComposerWidget,
|
|
126
|
+
aR as buildImageGalleryDeclineSentence,
|
|
127
|
+
aS as buildImageGalleryPickSentence,
|
|
128
|
+
aT as canvasForMessageWidget,
|
|
118
129
|
createEntityUpdateChannel,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
130
|
+
aU as driveFileCanvasTargetOf,
|
|
131
|
+
aV as driveFileCardToOpen,
|
|
132
|
+
aW as driveFileFamilyOf,
|
|
133
|
+
aX as driveFileTypeLabelOf,
|
|
134
|
+
aY as formatConceptExplainerNumber,
|
|
135
|
+
aZ as formatDriveFileSize,
|
|
136
|
+
a_ as isDriveFileCardExpired,
|
|
137
|
+
a$ as nodeIdOfReference,
|
|
138
|
+
b0 as normalizeSearchHitExcerpt,
|
|
139
|
+
b1 as parseDriveFilesPayload,
|
|
140
|
+
b2 as parseImageGalleryPayload,
|
|
141
|
+
b3 as pickAllowed,
|
|
142
|
+
b4 as pickAllowedValue,
|
|
143
|
+
b5 as pickReviewExternalId,
|
|
144
|
+
b6 as pickSafeAlias,
|
|
145
|
+
b7 as pickSafeAliases,
|
|
146
|
+
b8 as pickText,
|
|
147
|
+
b9 as readAttachedFiles,
|
|
148
|
+
ba as readCanvasViable,
|
|
149
|
+
bb as readConceptExplainerNumber,
|
|
150
|
+
bc as readConceptExplainerValue,
|
|
151
|
+
bd as readDriveFileCanvasOpener,
|
|
152
|
+
be as readDriveFileCardsSource,
|
|
153
|
+
bf as readFilePreviewSource,
|
|
154
|
+
bg as resolveCustomVisualizationFrameUrl,
|
|
155
|
+
bh as safeDriveFileOpenLink,
|
|
156
|
+
bi as unregisterDriveFileCanvasOpener,
|
|
157
|
+
bj as unregisterDriveFileCardsSource,
|
|
158
|
+
bk as unregisterFilePreviewSource,
|
|
159
|
+
bl as useCanvasViable,
|
|
160
|
+
useElementVisible,
|
|
161
|
+
bm as useFilePictureUrl
|
|
146
162
|
};
|
|
147
163
|
//# sourceMappingURL=widgets.js.map
|
package/package.json
CHANGED
package/public-api.json
CHANGED
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"registerDriveFileCanvasOpener",
|
|
70
70
|
"registerDriveFileCardsSource",
|
|
71
71
|
"registerEntityDetailBodies",
|
|
72
|
+
"registerFilePreviewSource",
|
|
72
73
|
"registerWidgetHydrator",
|
|
73
74
|
"reportRunningTurn",
|
|
74
75
|
"reportWidgetCrash",
|
|
@@ -166,6 +167,8 @@
|
|
|
166
167
|
"DriveFileContent",
|
|
167
168
|
"DriveFilesRequest",
|
|
168
169
|
"EntityDetailBodyDefinition",
|
|
170
|
+
"FilePreviewSource",
|
|
171
|
+
"FilePreviewVariant",
|
|
169
172
|
"HostColorSchemeSource"
|
|
170
173
|
]
|
|
171
174
|
},
|
|
@@ -369,6 +372,10 @@
|
|
|
369
372
|
},
|
|
370
373
|
"./widgets": {
|
|
371
374
|
"values": [
|
|
375
|
+
"ATTACHED_FILES_MAX",
|
|
376
|
+
"ATTACHED_FILES_WIDGET_TYPE",
|
|
377
|
+
"AttachedFilesConversationWidget",
|
|
378
|
+
"AttachedFilesStrip",
|
|
372
379
|
"CANVAS_VIABLE_MIN_WIDTH",
|
|
373
380
|
"CUSTOM_VISUALIZATION_SANDBOX_CONFIG",
|
|
374
381
|
"CanvasLauncherWidget",
|
|
@@ -388,7 +395,11 @@
|
|
|
388
395
|
"DriveFilesConversationWidget",
|
|
389
396
|
"ElementWidthCanvasViability",
|
|
390
397
|
"EntityMentionConversationWidget",
|
|
398
|
+
"FILE_PREVIEW_SOURCE_MISSING",
|
|
391
399
|
"HeroValue",
|
|
400
|
+
"IMAGE_GALLERY_MAX_FILES",
|
|
401
|
+
"IMAGE_GALLERY_WIDGET_TYPE",
|
|
402
|
+
"ImageGalleryConversationWidget",
|
|
392
403
|
"MultiChoiceConversationWidget",
|
|
393
404
|
"QuickRepliesConversationWidget",
|
|
394
405
|
"SkeletonCircle",
|
|
@@ -407,6 +418,9 @@
|
|
|
407
418
|
"WidgetSurfaceSkeleton",
|
|
408
419
|
"WidgetText",
|
|
409
420
|
"WritingDraftConversationWidget",
|
|
421
|
+
"buildAttachedFilesComposerWidget",
|
|
422
|
+
"buildImageGalleryDeclineSentence",
|
|
423
|
+
"buildImageGalleryPickSentence",
|
|
410
424
|
"canvasForMessageWidget",
|
|
411
425
|
"createEntityUpdateChannel",
|
|
412
426
|
"driveFileCanvasTargetOf",
|
|
@@ -419,25 +433,32 @@
|
|
|
419
433
|
"nodeIdOfReference",
|
|
420
434
|
"normalizeSearchHitExcerpt",
|
|
421
435
|
"parseDriveFilesPayload",
|
|
436
|
+
"parseImageGalleryPayload",
|
|
422
437
|
"pickAllowed",
|
|
423
438
|
"pickAllowedValue",
|
|
424
439
|
"pickReviewExternalId",
|
|
425
440
|
"pickSafeAlias",
|
|
426
441
|
"pickSafeAliases",
|
|
427
442
|
"pickText",
|
|
443
|
+
"readAttachedFiles",
|
|
428
444
|
"readCanvasViable",
|
|
429
445
|
"readConceptExplainerNumber",
|
|
430
446
|
"readConceptExplainerValue",
|
|
431
447
|
"readDriveFileCanvasOpener",
|
|
432
448
|
"readDriveFileCardsSource",
|
|
449
|
+
"readFilePreviewSource",
|
|
433
450
|
"resolveCustomVisualizationFrameUrl",
|
|
434
451
|
"safeDriveFileOpenLink",
|
|
435
452
|
"unregisterDriveFileCanvasOpener",
|
|
436
453
|
"unregisterDriveFileCardsSource",
|
|
454
|
+
"unregisterFilePreviewSource",
|
|
437
455
|
"useCanvasViable",
|
|
438
|
-
"useElementVisible"
|
|
456
|
+
"useElementVisible",
|
|
457
|
+
"useFilePictureUrl"
|
|
439
458
|
],
|
|
440
459
|
"types": [
|
|
460
|
+
"AttachedFile",
|
|
461
|
+
"AttachedFileUpload",
|
|
441
462
|
"CanvasLauncherWidgetCanvas",
|
|
442
463
|
"CanvasLauncherWidgetProps",
|
|
443
464
|
"CanvasViabilitySource",
|
|
@@ -458,6 +479,9 @@
|
|
|
458
479
|
"DriveFileFamily",
|
|
459
480
|
"DriveFilesRequest",
|
|
460
481
|
"EntityUpdate",
|
|
482
|
+
"FilePictureState",
|
|
483
|
+
"ImageGalleryFile",
|
|
484
|
+
"ImageGalleryPayload",
|
|
461
485
|
"WidgetKpiValueProps",
|
|
462
486
|
"WidgetListRowProps",
|
|
463
487
|
"WidgetStatusChipProps",
|