@arcgis/ai-components 5.2.0-next.4 → 5.2.0-next.6
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/agent-utils/LLMAgent.js +22 -22
- package/dist/cdn/{YY2SBO3V.js → 3NI46YCE.js} +1 -1
- package/dist/cdn/{V5YEZSRY.js → 47FWPQ2A.js} +1 -1
- package/dist/cdn/{FHVXO2WG.js → AEJHYRGT.js} +4 -4
- package/dist/cdn/{JY6LLOUJ.js → BFZJNJL6.js} +1 -1
- package/dist/cdn/{MDVYQQUG.js → GCQLVNNC.js} +1 -1
- package/dist/cdn/{GSEPHN3A.js → JV4SI65E.js} +31 -29
- package/dist/cdn/R6HV42YW.js +3 -0
- package/dist/cdn/{S6W6HV4T.js → V7OJRG26.js} +1 -1
- package/dist/cdn/{4HU7735A.js → VOQX4AVB.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/adapter.js +6 -6
- package/dist/chunks/generateLayerDescriptions.js +236 -208
- package/dist/chunks/orchestrator.js +240 -201
- package/dist/components/arcgis-assistant-chat/customElement.d.ts +6 -1
- package/dist/components/arcgis-assistant-chat-entry/customElement.d.ts +2 -1
- package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-message/customElement.d.ts +21 -0
- package/dist/components/arcgis-assistant-message/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-message-block/customElement.d.ts +1 -1
- package/dist/components/arcgis-assistant-message-feedback/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-message-footer/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-message-loading/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-message-log/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-message-read-aloud/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-message-text/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-speech-input/customElement.d.ts +6 -1
- package/dist/components/arcgis-assistant-suggested-prompts/customElement.d.ts +4 -1
- package/dist/components/arcgis-assistant-user-message/customElement.d.ts +4 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/types/lumina.d.ts +5 -0
- package/dist/types/preact.d.ts +6 -0
- package/dist/types/react.d.ts +7 -0
- package/dist/types/stencil.d.ts +5 -0
- package/dist/utils/index.d.ts +10 -14
- package/dist/utils/index.js +68 -78
- package/package.json +5 -5
- package/dist/cdn/ON2V5XI2.js +0 -3
|
@@ -3,7 +3,12 @@ import type Collection from "@arcgis/core/core/Collection.js";
|
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
4
|
import type { ChatMessage } from "../arcgis-assistant/types.js";
|
|
5
5
|
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Wraps and renders the conversation area. Use it as the container for message list content.
|
|
8
|
+
* Offers chat-level layout structure for message starter, message list, and loading regions.
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
7
12
|
export abstract class ArcgisAssistantChat extends LitElement {
|
|
8
13
|
/** @default false */
|
|
9
14
|
accessor loading: boolean;
|
|
@@ -5,7 +5,8 @@ import type { ChatMessage } from "../arcgis-assistant/types.js";
|
|
|
5
5
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Provides the input bar and submit or cancel behavior. Use it to collect prompts and emit submit events.
|
|
9
|
+
* Offers keyboard submit/history behavior, entry action slots, and optional voice-input integration.
|
|
9
10
|
*
|
|
10
11
|
* @slot [entry-actions-start] - Slot for adding actions to the start of the entry area.
|
|
11
12
|
* @slot [entry-actions-end] - Slot for adding actions to the end of the entry area.
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Renders interrupt prompts for extra user input. Use it when an agent pauses for confirmation, choice, or text input.
|
|
7
|
+
* Offers interrupt-specific input modes and submit or cancel event handling.
|
|
8
|
+
*/
|
|
6
9
|
export abstract class ArcgisAssistantInterrupt extends LitElement {
|
|
7
10
|
/** @internal */
|
|
8
11
|
protected _messages: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
+
import type { AssistantMessage } from "../arcgis-assistant/types.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Renders a single assistant response message shell. Pass one assistant message object and let it host body and footer actions.
|
|
7
|
+
* Offers a reusable assistant-message layout with icon, content, and footer slot regions.
|
|
8
|
+
*/
|
|
9
|
+
export abstract class ArcgisAssistantMessage extends LitElement {
|
|
10
|
+
/** @default false */
|
|
11
|
+
accessor copyEnabled: boolean;
|
|
12
|
+
/** @default false */
|
|
13
|
+
accessor feedbackEnabled: boolean;
|
|
14
|
+
/** @default false */
|
|
15
|
+
accessor footerDisabled: boolean;
|
|
16
|
+
/** @default false */
|
|
17
|
+
accessor logEnabled: boolean;
|
|
18
|
+
accessor message: AssistantMessage | undefined;
|
|
19
|
+
/** @default false */
|
|
20
|
+
accessor readAloudEnabled: boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { UXSuggestion } from "../../utils/index.js";
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/** Renders one structured assistant block. Offers default block rendering for supported suggestion-style blocks. */
|
|
6
6
|
export abstract class ArcgisAssistantMessageBlock extends LitElement {
|
|
7
7
|
accessor block: UXSuggestion | undefined;
|
|
8
8
|
}
|
|
@@ -3,7 +3,10 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
|
3
3
|
import type { AssistantMessage } from "../arcgis-assistant/types.js";
|
|
4
4
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
5
5
|
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Handles thumbs up or down feedback UI. Use it to capture helpful or not helpful signals per response.
|
|
8
|
+
* Offers feedback toggle behavior and emits feedback updates for the associated assistant message.
|
|
9
|
+
*/
|
|
7
10
|
export abstract class ArcgisAssistantMessageFeedback extends LitElement {
|
|
8
11
|
/** @internal */
|
|
9
12
|
protected _messages: {
|
|
@@ -3,7 +3,10 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
|
3
3
|
import type { AssistantMessage } from "../arcgis-assistant/types.js";
|
|
4
4
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
5
5
|
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Renders the action row under an assistant message. Use it when you want feedback, log, copy, or read-aloud controls.
|
|
8
|
+
* Offers one footer surface that composes common assistant response actions.
|
|
9
|
+
*/
|
|
7
10
|
export abstract class ArcgisAssistantMessageFooter extends LitElement {
|
|
8
11
|
/** @internal */
|
|
9
12
|
protected _messages: {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Shows in-progress assistant response UI. Use it to display thinking or loading state while work is running.
|
|
6
|
+
* Offers a default loading message shell with icon/content slot overrides.
|
|
7
|
+
*/
|
|
5
8
|
export abstract class ArcgisAssistantMessageLoading extends LitElement {
|
|
6
9
|
/** @default false */
|
|
7
10
|
accessor loading: boolean;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Renders expandable execution log details. Use it when exposing agent or tool trace output.
|
|
6
|
+
* Offers collapsible log entry rendering for debugging and troubleshooting.
|
|
7
|
+
*/
|
|
5
8
|
export abstract class ArcgisAssistantMessageLog extends LitElement {
|
|
6
9
|
accessor log: string[] | undefined;
|
|
7
10
|
/** @default false */
|
|
@@ -3,7 +3,10 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
|
3
3
|
import type { AssistantMessage } from "../arcgis-assistant/types.js";
|
|
4
4
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
5
5
|
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Adds text-to-speech playback controls. Use it to read assistant responses aloud.
|
|
8
|
+
* Offers read-aloud start/stop behavior with supported-state handling.
|
|
9
|
+
*/
|
|
7
10
|
export abstract class ArcgisAssistantMessageReadAloud extends LitElement {
|
|
8
11
|
/** @internal */
|
|
9
12
|
protected _messages: {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Renders assistant message text content. Use it when the block is plain text output.
|
|
6
|
+
* Offers sanitized rich-text rendering for assistant-generated message content.
|
|
7
|
+
*/
|
|
5
8
|
export abstract class ArcgisAssistantMessageText extends LitElement {
|
|
6
9
|
accessor content: string | undefined;
|
|
7
10
|
}
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { VoiceInputDraftChangeDetail, VoiceInputErrorCode, VoiceInputMode, VoiceInputTranscriptDetail, VoiceInputTranscriptionStreamChunkDetail } from "./support/types.js";
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Captures voice input and drafts transcript text. Use it to support microphone-based prompt entry.
|
|
7
|
+
* Offers voice session lifecycle management and transcription event streams.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
6
11
|
export abstract class ArcgisAssistantSpeechInput extends LitElement {
|
|
7
12
|
/** @default false */
|
|
8
13
|
accessor awaitingResponse: boolean;
|
|
@@ -3,7 +3,10 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
|
3
3
|
import type { AssistantPromptSelectDetail } from "../arcgis-assistant/types.js";
|
|
4
4
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
5
5
|
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Displays prompt chips and emits selection events. Use it to offer quick starter prompts.
|
|
8
|
+
* Offers selectable prompt chips with a prompt-select event for host synchronization.
|
|
9
|
+
*/
|
|
7
10
|
export abstract class ArcgisAssistantSuggestedPrompts extends LitElement {
|
|
8
11
|
/** @internal */
|
|
9
12
|
protected _messages: { suggestedPromptsLabel: string; } & T9nMeta<{ suggestedPromptsLabel: string; }>;
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { ChatMessage } from "../arcgis-assistant/types.js";
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Renders one user-authored chat message row. Use it for displaying what the user sent.
|
|
7
|
+
* Offers a simple user message presentation primitive for custom message-list rendering.
|
|
8
|
+
*/
|
|
6
9
|
export abstract class ArcgisAssistantUserMessage extends LitElement {
|
|
7
10
|
accessor content: string | undefined;
|
|
8
11
|
accessor message: ChatMessage | undefined;
|