@arcgis/ai-components 5.0.0-next.133
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/LICENSE.md +17 -0
- package/README.md +11 -0
- package/dist/cdn/2KGO3SIH.js +4 -0
- package/dist/cdn/2OKOKVH3.js +4 -0
- package/dist/cdn/46CNQJRX.js +4 -0
- package/dist/cdn/7QPPUNQ3.js +4 -0
- package/dist/cdn/A3UHOE4Q.js +30 -0
- package/dist/cdn/A7BGJLHS.js +204 -0
- package/dist/cdn/AB32PU6M.js +4 -0
- package/dist/cdn/AD7WB3RO.js +4 -0
- package/dist/cdn/ASKBAWPQ.js +27 -0
- package/dist/cdn/BCCDWQP4.js +4 -0
- package/dist/cdn/CF42OIDB.js +4 -0
- package/dist/cdn/CGGGHCIN.js +4 -0
- package/dist/cdn/EJW7PCMD.js +4 -0
- package/dist/cdn/FORRN75L.js +4 -0
- package/dist/cdn/FYKWTA6C.js +58 -0
- package/dist/cdn/G7XEFTIR.js +4 -0
- package/dist/cdn/GRXZ64LO.js +20 -0
- package/dist/cdn/GZUY3255.js +61 -0
- package/dist/cdn/HPGCDT6I.js +4 -0
- package/dist/cdn/ID5STKZH.js +90 -0
- package/dist/cdn/J62NTCLN.js +4 -0
- package/dist/cdn/KMV7W5OL.js +4 -0
- package/dist/cdn/LILVLE37.js +87 -0
- package/dist/cdn/MXHQFIP3.js +19 -0
- package/dist/cdn/N4CYINOF.js +6 -0
- package/dist/cdn/NR6PK4OK.js +4 -0
- package/dist/cdn/PA2KCYKL.js +71 -0
- package/dist/cdn/PEFKT7JJ.js +4 -0
- package/dist/cdn/Q34AELDL.js +4 -0
- package/dist/cdn/Q3MKHRXI.js +4 -0
- package/dist/cdn/QIU4T2DV.js +4 -0
- package/dist/cdn/TCNLHL43.js +79 -0
- package/dist/cdn/UC4HPCM3.js +19 -0
- package/dist/cdn/UIUJKONY.js +4 -0
- package/dist/cdn/USJ5YVZN.js +16 -0
- package/dist/cdn/W4LEGPD2.js +111 -0
- package/dist/cdn/WOP5ENGJ.js +134 -0
- package/dist/cdn/YXLN5DSL.js +6 -0
- package/dist/cdn/ZQEX3TGK.js +17 -0
- package/dist/cdn/assets/assistant/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-chat-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-chat-entry/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-interrupt/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/assistant-shell/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +4 -0
- package/dist/cdn/main.css +1 -0
- package/dist/chunks/runtime.js +17 -0
- package/dist/chunks/useT9n.js +9 -0
- package/dist/chunks/utils.js +35 -0
- package/dist/chunks/utils2.js +9 -0
- package/dist/components/arcgis-assistant/customElement.d.ts +14 -0
- package/dist/components/arcgis-assistant/customElement.js +250 -0
- package/dist/components/arcgis-assistant/index.d.ts +5 -0
- package/dist/components/arcgis-assistant/index.js +5 -0
- package/dist/components/arcgis-assistant/support/OrchestratorController.d.ts +33 -0
- package/dist/components/arcgis-assistant/support/utils.d.ts +1 -0
- package/dist/components/arcgis-assistant-agent/customElement.d.ts +10 -0
- package/dist/components/arcgis-assistant-agent/customElement.js +21 -0
- package/dist/components/arcgis-assistant-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-chat/customElement.d.ts +17 -0
- package/dist/components/arcgis-assistant-chat/customElement.js +47 -0
- package/dist/components/arcgis-assistant-chat/index.d.ts +2 -0
- package/dist/components/arcgis-assistant-chat/index.js +2 -0
- package/dist/components/arcgis-assistant-chat-card/customElement.d.ts +18 -0
- package/dist/components/arcgis-assistant-chat-card/customElement.js +55 -0
- package/dist/components/arcgis-assistant-chat-card/index.d.ts +6 -0
- package/dist/components/arcgis-assistant-chat-card/index.js +6 -0
- package/dist/components/arcgis-assistant-chat-card-content/customElement.d.ts +11 -0
- package/dist/components/arcgis-assistant-chat-card-content/customElement.js +42 -0
- package/dist/components/arcgis-assistant-chat-card-content/index.d.ts +2 -0
- package/dist/components/arcgis-assistant-chat-card-content/index.js +2 -0
- package/dist/components/arcgis-assistant-chat-entry/customElement.d.ts +19 -0
- package/dist/components/arcgis-assistant-chat-entry/customElement.js +46 -0
- package/dist/components/arcgis-assistant-chat-entry/index.d.ts +4 -0
- package/dist/components/arcgis-assistant-chat-entry/index.js +4 -0
- package/dist/components/arcgis-assistant-data-exploration-agent/customElement.d.ts +7 -0
- package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +28 -0
- package/dist/components/arcgis-assistant-data-exploration-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-data-exploration-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +14 -0
- package/dist/components/arcgis-assistant-interrupt/customElement.js +39 -0
- package/dist/components/arcgis-assistant-interrupt/index.d.ts +6 -0
- package/dist/components/arcgis-assistant-interrupt/index.js +6 -0
- package/dist/components/arcgis-assistant-layer-filter-agent/customElement.d.ts +7 -0
- package/dist/components/arcgis-assistant-layer-filter-agent/customElement.js +28 -0
- package/dist/components/arcgis-assistant-layer-filter-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-layer-filter-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-layer-query-agent/customElement.d.ts +7 -0
- package/dist/components/arcgis-assistant-layer-query-agent/customElement.js +28 -0
- package/dist/components/arcgis-assistant-layer-query-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-layer-query-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-layer-styling-agent/customElement.d.ts +7 -0
- package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +28 -0
- package/dist/components/arcgis-assistant-layer-styling-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-layer-styling-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-navigation-agent/customElement.d.ts +7 -0
- package/dist/components/arcgis-assistant-navigation-agent/customElement.js +28 -0
- package/dist/components/arcgis-assistant-navigation-agent/index.d.ts +1 -0
- package/dist/components/arcgis-assistant-navigation-agent/index.js +1 -0
- package/dist/components/arcgis-assistant-shell/customElement.d.ts +25 -0
- package/dist/components/arcgis-assistant-shell/customElement.js +29 -0
- package/dist/components/arcgis-assistant-shell/index.d.ts +6 -0
- package/dist/components/arcgis-assistant-shell/index.js +6 -0
- package/dist/components/assistant/assistant-agents/support/utils.d.ts +14 -0
- package/dist/controllers/useT9n.d.ts +1 -0
- package/dist/customAgents/AddAgent/AddAgent.d.ts +2 -0
- package/dist/docs/api.json +2239 -0
- package/dist/docs/docs.json +2011 -0
- package/dist/docs/vscode.css-custom-data.json +6 -0
- package/dist/docs/vscode.html-custom-data.json +306 -0
- package/dist/docs/web-types.json +693 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.js +8 -0
- package/dist/loader.d.ts +2 -0
- package/dist/loader.js +23 -0
- package/dist/oauth-callback.html +31 -0
- package/dist/runtime.d.ts +6 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/lumina.d.ts +80 -0
- package/dist/types/preact.d.ts +98 -0
- package/dist/types/react.d.ts +119 -0
- package/dist/types/stencil.d.ts +87 -0
- package/package.json +47 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
|
|
4
|
+
export declare class ArcgisAssistantShell extends LitElement {
|
|
5
|
+
heading?: string;
|
|
6
|
+
/** @default "" */
|
|
7
|
+
description: string;
|
|
8
|
+
/** @default false */
|
|
9
|
+
loading: boolean;
|
|
10
|
+
entryMessage?: string;
|
|
11
|
+
/** @default false */
|
|
12
|
+
entryMessageClosed: boolean;
|
|
13
|
+
/** @default false */
|
|
14
|
+
awaitingResponse: boolean;
|
|
15
|
+
suggestedPrompts: string[];
|
|
16
|
+
/** @default "" */
|
|
17
|
+
inputValue: string;
|
|
18
|
+
status?: "error" | "ready" | "working";
|
|
19
|
+
readonly arcgisCancel: TargetedEvent<this, void>;
|
|
20
|
+
readonly arcgisSubmit: TargetedEvent<this, string>;
|
|
21
|
+
"@eventTypes": {
|
|
22
|
+
"arcgisCancel": ArcgisAssistantShell["arcgisCancel"]["detail"];
|
|
23
|
+
"arcgisSubmit": ArcgisAssistantShell["arcgisSubmit"]["detail"];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { c as i } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as a, html as t } from "lit";
|
|
3
|
+
import { LitElement as l, createEvent as e } from "@arcgis/lumina";
|
|
4
|
+
import { u as n } from "../../chunks/useT9n.js";
|
|
5
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
+
v5.0.0-next.133 */
|
|
8
|
+
const o = a`.assistant-shell__footer-container{display:flex;flex-direction:column;flex:1 1 0;gap:var(--calcite-spacing-md)}.assistant-shell__content-container{display:flex;flex-direction:column;flex:1 1 0;min-height:0;position:relative}.assistant-shell__suggested-prompts-container{position:absolute;bottom:0;display:flex;justify-content:center;width:100%}.assistant-shell__suggested-prompts{padding:var(--calcite-spacing-md)}.assistant-shell__suggested-prompt{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal}`;
|
|
9
|
+
class r extends l {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments), this._messages = n({ blocking: !0 }), this.description = "", this.loading = !1, this.entryMessageClosed = !1, this.awaitingResponse = !1, this.suggestedPrompts = [], this.inputValue = "", this.arcgisCancel = e(), this.arcgisSubmit = e();
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.properties = { heading: 1, description: 1, loading: 5, entryMessage: 1, entryMessageClosed: 5, awaitingResponse: 5, suggestedPrompts: 0, inputValue: 1, status: 1 };
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this.styles = o;
|
|
18
|
+
}
|
|
19
|
+
_renderSuggestedPrompts() {
|
|
20
|
+
return this.suggestedPrompts?.length ? t`<div class="assistant-shell__suggested-prompts-container"><calcite-chip-group class="assistant-shell__suggested-prompts" .label=${this._messages.suggestedPromptsLabel ?? "suggested prompts"} selection-mode=single-persist @calciteChipGroupSelect=${(s) => this.inputValue = s.target.selectedItems[0]?.value ?? ""}>${this.suggestedPrompts.map((s) => t`<calcite-chip closable .value=${s} .label=${s} appearance=outline-fill kind=brand><div class="assistant-shell__suggested-prompt">${s}</div></calcite-chip>`)}</calcite-chip-group></div>` : null;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return t`<calcite-panel .loading=${this.loading} .heading=${this.heading ?? this._messages.shellHeading} .description=${this.description}><slot slot=header-actions-end name=header-actions-end></slot><div class="assistant-shell__content-container"><slot></slot>${this._renderSuggestedPrompts()}</div><div class="assistant-shell__footer-container" slot=footer><slot name=entry-message>${this.entryMessageClosed ? null : t`<calcite-notice slot=entry-message .open=${!this.entryMessageClosed} kind=info closable icon width=full><div slot=message>${this.entryMessage ?? this._messages.shellEntryMessage}</div></calcite-notice>`}</slot><arcgis-assistant-chat-entry .awaitingResponse=${this.awaitingResponse} .arcgisSubmit=${this.arcgisSubmit} .arcgisCancel=${this.arcgisCancel} .inputValue=${this.inputValue} .status=${this.status}><slot name=entry-actions-start slot=entry-actions-start></slot></arcgis-assistant-chat-entry><slot name=footer-content></slot></div></calcite-panel>`;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
i("arcgis-assistant-shell", r);
|
|
27
|
+
export {
|
|
28
|
+
r as ArcgisAssistantShell
|
|
29
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-chip-group";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-chip";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-panel";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-notice";
|
|
5
|
+
import "../arcgis-assistant-chat-entry/index.js";
|
|
6
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-chip-group";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-chip";
|
|
3
|
+
import "@esri/calcite-components/components/calcite-panel";
|
|
4
|
+
import "@esri/calcite-components/components/calcite-notice";
|
|
5
|
+
import "../arcgis-assistant-chat-entry/index.js";
|
|
6
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
+
import { AgentRegistration } from '@arcgis/ai-orchestrator';
|
|
3
|
+
export declare function resolveMapView(agentElement: {
|
|
4
|
+
el: Element;
|
|
5
|
+
} & {
|
|
6
|
+
referenceElement?: HTMLArcgisMapElement | string;
|
|
7
|
+
}, errorPrefix: string): Promise<__esri.MapView>;
|
|
8
|
+
export interface AssistantAgentHost<TContext = Record<string, unknown>> {
|
|
9
|
+
agent: AgentRegistration;
|
|
10
|
+
context?: TContext;
|
|
11
|
+
el: Element;
|
|
12
|
+
getContext?: () => TContext | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare function initializeAssistantAgent<TContext>(host: AssistantAgentHost<TContext>): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useT9n: import('@arcgis/lumina/controllers').UseT9n;
|