@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.
Files changed (126) hide show
  1. package/LICENSE.md +17 -0
  2. package/README.md +11 -0
  3. package/dist/cdn/2KGO3SIH.js +4 -0
  4. package/dist/cdn/2OKOKVH3.js +4 -0
  5. package/dist/cdn/46CNQJRX.js +4 -0
  6. package/dist/cdn/7QPPUNQ3.js +4 -0
  7. package/dist/cdn/A3UHOE4Q.js +30 -0
  8. package/dist/cdn/A7BGJLHS.js +204 -0
  9. package/dist/cdn/AB32PU6M.js +4 -0
  10. package/dist/cdn/AD7WB3RO.js +4 -0
  11. package/dist/cdn/ASKBAWPQ.js +27 -0
  12. package/dist/cdn/BCCDWQP4.js +4 -0
  13. package/dist/cdn/CF42OIDB.js +4 -0
  14. package/dist/cdn/CGGGHCIN.js +4 -0
  15. package/dist/cdn/EJW7PCMD.js +4 -0
  16. package/dist/cdn/FORRN75L.js +4 -0
  17. package/dist/cdn/FYKWTA6C.js +58 -0
  18. package/dist/cdn/G7XEFTIR.js +4 -0
  19. package/dist/cdn/GRXZ64LO.js +20 -0
  20. package/dist/cdn/GZUY3255.js +61 -0
  21. package/dist/cdn/HPGCDT6I.js +4 -0
  22. package/dist/cdn/ID5STKZH.js +90 -0
  23. package/dist/cdn/J62NTCLN.js +4 -0
  24. package/dist/cdn/KMV7W5OL.js +4 -0
  25. package/dist/cdn/LILVLE37.js +87 -0
  26. package/dist/cdn/MXHQFIP3.js +19 -0
  27. package/dist/cdn/N4CYINOF.js +6 -0
  28. package/dist/cdn/NR6PK4OK.js +4 -0
  29. package/dist/cdn/PA2KCYKL.js +71 -0
  30. package/dist/cdn/PEFKT7JJ.js +4 -0
  31. package/dist/cdn/Q34AELDL.js +4 -0
  32. package/dist/cdn/Q3MKHRXI.js +4 -0
  33. package/dist/cdn/QIU4T2DV.js +4 -0
  34. package/dist/cdn/TCNLHL43.js +79 -0
  35. package/dist/cdn/UC4HPCM3.js +19 -0
  36. package/dist/cdn/UIUJKONY.js +4 -0
  37. package/dist/cdn/USJ5YVZN.js +16 -0
  38. package/dist/cdn/W4LEGPD2.js +111 -0
  39. package/dist/cdn/WOP5ENGJ.js +134 -0
  40. package/dist/cdn/YXLN5DSL.js +6 -0
  41. package/dist/cdn/ZQEX3TGK.js +17 -0
  42. package/dist/cdn/assets/assistant/t9n/messages.en.json +1 -0
  43. package/dist/cdn/assets/assistant-chat-card/t9n/messages.en.json +1 -0
  44. package/dist/cdn/assets/assistant-chat-entry/t9n/messages.en.json +1 -0
  45. package/dist/cdn/assets/assistant-interrupt/t9n/messages.en.json +1 -0
  46. package/dist/cdn/assets/assistant-shell/t9n/messages.en.json +1 -0
  47. package/dist/cdn/index.js +4 -0
  48. package/dist/cdn/main.css +1 -0
  49. package/dist/chunks/runtime.js +17 -0
  50. package/dist/chunks/useT9n.js +9 -0
  51. package/dist/chunks/utils.js +35 -0
  52. package/dist/chunks/utils2.js +9 -0
  53. package/dist/components/arcgis-assistant/customElement.d.ts +14 -0
  54. package/dist/components/arcgis-assistant/customElement.js +250 -0
  55. package/dist/components/arcgis-assistant/index.d.ts +5 -0
  56. package/dist/components/arcgis-assistant/index.js +5 -0
  57. package/dist/components/arcgis-assistant/support/OrchestratorController.d.ts +33 -0
  58. package/dist/components/arcgis-assistant/support/utils.d.ts +1 -0
  59. package/dist/components/arcgis-assistant-agent/customElement.d.ts +10 -0
  60. package/dist/components/arcgis-assistant-agent/customElement.js +21 -0
  61. package/dist/components/arcgis-assistant-agent/index.d.ts +1 -0
  62. package/dist/components/arcgis-assistant-agent/index.js +1 -0
  63. package/dist/components/arcgis-assistant-chat/customElement.d.ts +17 -0
  64. package/dist/components/arcgis-assistant-chat/customElement.js +47 -0
  65. package/dist/components/arcgis-assistant-chat/index.d.ts +2 -0
  66. package/dist/components/arcgis-assistant-chat/index.js +2 -0
  67. package/dist/components/arcgis-assistant-chat-card/customElement.d.ts +18 -0
  68. package/dist/components/arcgis-assistant-chat-card/customElement.js +55 -0
  69. package/dist/components/arcgis-assistant-chat-card/index.d.ts +6 -0
  70. package/dist/components/arcgis-assistant-chat-card/index.js +6 -0
  71. package/dist/components/arcgis-assistant-chat-card-content/customElement.d.ts +11 -0
  72. package/dist/components/arcgis-assistant-chat-card-content/customElement.js +42 -0
  73. package/dist/components/arcgis-assistant-chat-card-content/index.d.ts +2 -0
  74. package/dist/components/arcgis-assistant-chat-card-content/index.js +2 -0
  75. package/dist/components/arcgis-assistant-chat-entry/customElement.d.ts +19 -0
  76. package/dist/components/arcgis-assistant-chat-entry/customElement.js +46 -0
  77. package/dist/components/arcgis-assistant-chat-entry/index.d.ts +4 -0
  78. package/dist/components/arcgis-assistant-chat-entry/index.js +4 -0
  79. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.d.ts +7 -0
  80. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +28 -0
  81. package/dist/components/arcgis-assistant-data-exploration-agent/index.d.ts +1 -0
  82. package/dist/components/arcgis-assistant-data-exploration-agent/index.js +1 -0
  83. package/dist/components/arcgis-assistant-interrupt/customElement.d.ts +14 -0
  84. package/dist/components/arcgis-assistant-interrupt/customElement.js +39 -0
  85. package/dist/components/arcgis-assistant-interrupt/index.d.ts +6 -0
  86. package/dist/components/arcgis-assistant-interrupt/index.js +6 -0
  87. package/dist/components/arcgis-assistant-layer-filter-agent/customElement.d.ts +7 -0
  88. package/dist/components/arcgis-assistant-layer-filter-agent/customElement.js +28 -0
  89. package/dist/components/arcgis-assistant-layer-filter-agent/index.d.ts +1 -0
  90. package/dist/components/arcgis-assistant-layer-filter-agent/index.js +1 -0
  91. package/dist/components/arcgis-assistant-layer-query-agent/customElement.d.ts +7 -0
  92. package/dist/components/arcgis-assistant-layer-query-agent/customElement.js +28 -0
  93. package/dist/components/arcgis-assistant-layer-query-agent/index.d.ts +1 -0
  94. package/dist/components/arcgis-assistant-layer-query-agent/index.js +1 -0
  95. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.d.ts +7 -0
  96. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +28 -0
  97. package/dist/components/arcgis-assistant-layer-styling-agent/index.d.ts +1 -0
  98. package/dist/components/arcgis-assistant-layer-styling-agent/index.js +1 -0
  99. package/dist/components/arcgis-assistant-navigation-agent/customElement.d.ts +7 -0
  100. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +28 -0
  101. package/dist/components/arcgis-assistant-navigation-agent/index.d.ts +1 -0
  102. package/dist/components/arcgis-assistant-navigation-agent/index.js +1 -0
  103. package/dist/components/arcgis-assistant-shell/customElement.d.ts +25 -0
  104. package/dist/components/arcgis-assistant-shell/customElement.js +29 -0
  105. package/dist/components/arcgis-assistant-shell/index.d.ts +6 -0
  106. package/dist/components/arcgis-assistant-shell/index.js +6 -0
  107. package/dist/components/assistant/assistant-agents/support/utils.d.ts +14 -0
  108. package/dist/controllers/useT9n.d.ts +1 -0
  109. package/dist/customAgents/AddAgent/AddAgent.d.ts +2 -0
  110. package/dist/docs/api.json +2239 -0
  111. package/dist/docs/docs.json +2011 -0
  112. package/dist/docs/vscode.css-custom-data.json +6 -0
  113. package/dist/docs/vscode.html-custom-data.json +306 -0
  114. package/dist/docs/web-types.json +693 -0
  115. package/dist/index.d.ts +99 -0
  116. package/dist/index.js +8 -0
  117. package/dist/loader.d.ts +2 -0
  118. package/dist/loader.js +23 -0
  119. package/dist/oauth-callback.html +31 -0
  120. package/dist/runtime.d.ts +6 -0
  121. package/dist/types/components.d.ts +2 -0
  122. package/dist/types/lumina.d.ts +80 -0
  123. package/dist/types/preact.d.ts +98 -0
  124. package/dist/types/react.d.ts +119 -0
  125. package/dist/types/stencil.d.ts +87 -0
  126. 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;
@@ -0,0 +1,2 @@
1
+ import { AgentRegistration } from '@arcgis/ai-orchestrator';
2
+ export declare const agent: AgentRegistration;