@arcgis/ai-components 5.1.0-next.87 → 5.1.0-next.89
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/cdn/4IESERNN.js +2 -0
- package/dist/cdn/{GJQVEIZF.js → 7AAA466K.js} +1 -1
- package/dist/cdn/B3E2XBTX.js +2 -0
- package/dist/cdn/E2MBKDZ2.js +2 -0
- package/dist/cdn/EUNEQNYC.js +2 -0
- package/dist/cdn/JEO7CHZM.js +2 -0
- package/dist/cdn/{KWBMH7LU.js → K35QKERW.js} +5 -0
- package/dist/cdn/KCSGJGUQ.js +2 -0
- package/dist/cdn/{FTUILS6R.js → KHCTRS6Z.js} +21 -21
- package/dist/cdn/O3Y4IPK5.js +2 -0
- package/dist/cdn/SOJ4DKGV.js +226 -0
- package/dist/cdn/TD74ZINA.js +2 -0
- package/dist/cdn/{NCMEKPIM.js → TFP2SGKU.js} +1 -1
- package/dist/cdn/{4TY43HO3.js → UTCN4YUI.js} +1 -1
- package/dist/cdn/VDGRXEK7.js +2 -0
- package/dist/cdn/VHOF6SUZ.js +120 -0
- package/dist/cdn/{2FQTU6HL.js → WBVJLC7F.js} +1 -1
- package/dist/cdn/X2GSYADT.js +2 -0
- package/dist/cdn/YUZDB6IX.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/slottableRequestUtils.js +11 -0
- package/dist/components/arcgis-assistant/customElement.d.ts +16 -1
- package/dist/components/arcgis-assistant/customElement.js +116 -112
- package/dist/components/arcgis-assistant/index.js +2 -0
- package/dist/components/arcgis-assistant/types.d.ts +2 -4
- package/dist/components/arcgis-assistant-message/customElement.js +26 -12
- package/dist/components/arcgis-assistant-message/index.js +0 -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 +0 -14
- package/dist/loader.js +0 -1
- package/dist/types/lumina.d.ts +1 -11
- package/dist/types/preact.d.ts +1 -13
- package/dist/types/react.d.ts +1 -15
- package/dist/types/stencil.d.ts +1 -11
- package/package.json +6 -6
- package/dist/cdn/3IWT4SEI.js +0 -2
- package/dist/cdn/AAOF7JQT.js +0 -2
- package/dist/cdn/ERCMPLS4.js +0 -82
- package/dist/cdn/HLDIWEWD.js +0 -2
- package/dist/cdn/KJFC3ZEP.js +0 -2
- package/dist/cdn/MDPF56RC.js +0 -2
- package/dist/cdn/OFWYCHDQ.js +0 -2
- package/dist/cdn/QTH2DYCO.js +0 -2
- package/dist/cdn/UWXD5PFQ.js +0 -2
- package/dist/cdn/VSZNNBU6.js +0 -2
- package/dist/cdn/XMI2K6YV.js +0 -2
- package/dist/cdn/ZIER3BNM.js +0 -226
- package/dist/components/arcgis-assistant-message/customElement.d.ts +0 -18
- package/dist/components/arcgis-assistant-message/index.d.ts +0 -1
- package/dist/components/arcgis-assistant-message-content/customElement.d.ts +0 -12
- package/dist/components/arcgis-assistant-message-content/customElement.js +0 -62
- package/dist/components/arcgis-assistant-message-content/index.d.ts +0 -1
- package/dist/components/arcgis-assistant-message-content/index.js +0 -4
package/dist/types/lumina.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ import type { ArcgisAssistantNavigationAgent } from "../components/arcgis-assist
|
|
|
8
8
|
import type { ArcgisAssistantChat } from "../components/arcgis-assistant-chat/customElement.js";
|
|
9
9
|
import type { ArcgisAssistantChatEntry } from "../components/arcgis-assistant-chat-entry/customElement.js";
|
|
10
10
|
import type { ArcgisAssistantInterrupt } from "../components/arcgis-assistant-interrupt/customElement.js";
|
|
11
|
-
import type { ArcgisAssistantMessage } from "../components/arcgis-assistant-message/customElement.js";
|
|
12
11
|
import type { ArcgisAssistantMessageBlock } from "../components/arcgis-assistant-message-block/customElement.js";
|
|
13
|
-
import type { ArcgisAssistantMessageContent } from "../components/arcgis-assistant-message-content/customElement.js";
|
|
14
12
|
import type { ArcgisAssistantMessageFeedback } from "../components/arcgis-assistant-message-feedback/customElement.js";
|
|
15
13
|
import type { ArcgisAssistantMessageFooter } from "../components/arcgis-assistant-message-footer/customElement.js";
|
|
16
14
|
import type { ArcgisAssistantMessageLoading } from "../components/arcgis-assistant-message-loading/customElement.js";
|
|
@@ -31,6 +29,7 @@ interface LuminaArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnabl
|
|
|
31
29
|
onarcgisInterruptSubmit?: EventHandler<ArcgisAssistant["arcgisInterruptSubmit"]>;
|
|
32
30
|
onarcgisPromptSelect?: EventHandler<ArcgisAssistant["arcgisPromptSelect"]>;
|
|
33
31
|
onarcgisReady?: EventHandler<ArcgisAssistant["arcgisReady"]>;
|
|
32
|
+
onarcgisSlottableRequest?: EventHandler<ArcgisAssistant["arcgisSlottableRequest"]>;
|
|
34
33
|
onarcgisSubmit?: EventHandler<ArcgisAssistant["arcgisSubmit"]>;
|
|
35
34
|
}
|
|
36
35
|
|
|
@@ -62,16 +61,9 @@ interface LuminaArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantInt
|
|
|
62
61
|
onarcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
|
-
interface LuminaArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, h.JSX.HTMLAttributes<ArcgisAssistantMessage> {
|
|
66
|
-
}
|
|
67
|
-
|
|
68
64
|
interface LuminaArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, h.JSX.HTMLAttributes<ArcgisAssistantMessageBlock> {
|
|
69
65
|
}
|
|
70
66
|
|
|
71
|
-
interface LuminaArcgisAssistantMessageContent extends Partial<Pick<ArcgisAssistantMessageContent, "message">>, h.JSX.HTMLAttributes<ArcgisAssistantMessageContent> {
|
|
72
|
-
onarcgisSlottableRequest?: EventHandler<ArcgisAssistantMessageContent["arcgisSlottableRequest"]>;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
67
|
interface LuminaArcgisAssistantMessageFeedback extends Partial<Pick<ArcgisAssistantMessageFeedback, "feedbackEnabled" | "message">>, h.JSX.HTMLAttributes<ArcgisAssistantMessageFeedback> {
|
|
76
68
|
onarcgisFeedback?: EventHandler<ArcgisAssistantMessageFeedback["arcgisFeedback"]>;
|
|
77
69
|
}
|
|
@@ -120,9 +112,7 @@ declare module "@arcgis/lumina" {
|
|
|
120
112
|
"arcgis-assistant-chat": LuminaArcgisAssistantChat;
|
|
121
113
|
"arcgis-assistant-chat-entry": LuminaArcgisAssistantChatEntry;
|
|
122
114
|
"arcgis-assistant-interrupt": LuminaArcgisAssistantInterrupt;
|
|
123
|
-
"arcgis-assistant-message": LuminaArcgisAssistantMessage;
|
|
124
115
|
"arcgis-assistant-message-block": LuminaArcgisAssistantMessageBlock;
|
|
125
|
-
"arcgis-assistant-message-content": LuminaArcgisAssistantMessageContent;
|
|
126
116
|
"arcgis-assistant-message-feedback": LuminaArcgisAssistantMessageFeedback;
|
|
127
117
|
"arcgis-assistant-message-footer": LuminaArcgisAssistantMessageFooter;
|
|
128
118
|
"arcgis-assistant-message-loading": LuminaArcgisAssistantMessageLoading;
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ import type { ArcgisAssistantNavigationAgent } from "../components/arcgis-assist
|
|
|
8
8
|
import type { ArcgisAssistantChat } from "../components/arcgis-assistant-chat/customElement.js";
|
|
9
9
|
import type { ArcgisAssistantChatEntry } from "../components/arcgis-assistant-chat-entry/customElement.js";
|
|
10
10
|
import type { ArcgisAssistantInterrupt } from "../components/arcgis-assistant-interrupt/customElement.js";
|
|
11
|
-
import type { ArcgisAssistantMessage } from "../components/arcgis-assistant-message/customElement.js";
|
|
12
11
|
import type { ArcgisAssistantMessageBlock } from "../components/arcgis-assistant-message-block/customElement.js";
|
|
13
|
-
import type { ArcgisAssistantMessageContent } from "../components/arcgis-assistant-message-content/customElement.js";
|
|
14
12
|
import type { ArcgisAssistantMessageFeedback } from "../components/arcgis-assistant-message-feedback/customElement.js";
|
|
15
13
|
import type { ArcgisAssistantMessageFooter } from "../components/arcgis-assistant-message-footer/customElement.js";
|
|
16
14
|
import type { ArcgisAssistantMessageLoading } from "../components/arcgis-assistant-message-loading/customElement.js";
|
|
@@ -32,6 +30,7 @@ interface PreactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnabl
|
|
|
32
30
|
onarcgisInterruptSubmit?: EventHandler<ArcgisAssistant["arcgisInterruptSubmit"]>;
|
|
33
31
|
onarcgisPromptSelect?: EventHandler<ArcgisAssistant["arcgisPromptSelect"]>;
|
|
34
32
|
onarcgisReady?: EventHandler<ArcgisAssistant["arcgisReady"]>;
|
|
33
|
+
onarcgisSlottableRequest?: EventHandler<ArcgisAssistant["arcgisSlottableRequest"]>;
|
|
35
34
|
onarcgisSubmit?: EventHandler<ArcgisAssistant["arcgisSubmit"]>;
|
|
36
35
|
}
|
|
37
36
|
|
|
@@ -63,16 +62,9 @@ interface PreactArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantInt
|
|
|
63
62
|
onarcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
|
|
64
63
|
}
|
|
65
64
|
|
|
66
|
-
interface PreactArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, HTMLAttributes<ArcgisAssistantMessage> {
|
|
67
|
-
}
|
|
68
|
-
|
|
69
65
|
interface PreactArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, HTMLAttributes<ArcgisAssistantMessageBlock> {
|
|
70
66
|
}
|
|
71
67
|
|
|
72
|
-
interface PreactArcgisAssistantMessageContent extends Partial<Pick<ArcgisAssistantMessageContent, "message">>, HTMLAttributes<ArcgisAssistantMessageContent> {
|
|
73
|
-
onarcgisSlottableRequest?: EventHandler<ArcgisAssistantMessageContent["arcgisSlottableRequest"]>;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
68
|
interface PreactArcgisAssistantMessageFeedback extends Partial<Pick<ArcgisAssistantMessageFeedback, "feedbackEnabled" | "message">>, HTMLAttributes<ArcgisAssistantMessageFeedback> {
|
|
77
69
|
onarcgisFeedback?: EventHandler<ArcgisAssistantMessageFeedback["arcgisFeedback"]>;
|
|
78
70
|
}
|
|
@@ -121,9 +113,7 @@ declare module 'preact' {
|
|
|
121
113
|
"arcgis-assistant-chat": PreactArcgisAssistantChat;
|
|
122
114
|
"arcgis-assistant-chat-entry": PreactArcgisAssistantChatEntry;
|
|
123
115
|
"arcgis-assistant-interrupt": PreactArcgisAssistantInterrupt;
|
|
124
|
-
"arcgis-assistant-message": PreactArcgisAssistantMessage;
|
|
125
116
|
"arcgis-assistant-message-block": PreactArcgisAssistantMessageBlock;
|
|
126
|
-
"arcgis-assistant-message-content": PreactArcgisAssistantMessageContent;
|
|
127
117
|
"arcgis-assistant-message-feedback": PreactArcgisAssistantMessageFeedback;
|
|
128
118
|
"arcgis-assistant-message-footer": PreactArcgisAssistantMessageFooter;
|
|
129
119
|
"arcgis-assistant-message-loading": PreactArcgisAssistantMessageLoading;
|
|
@@ -146,9 +136,7 @@ declare module 'preact' {
|
|
|
146
136
|
"arcgis-assistant-chat": PreactArcgisAssistantChat;
|
|
147
137
|
"arcgis-assistant-chat-entry": PreactArcgisAssistantChatEntry;
|
|
148
138
|
"arcgis-assistant-interrupt": PreactArcgisAssistantInterrupt;
|
|
149
|
-
"arcgis-assistant-message": PreactArcgisAssistantMessage;
|
|
150
139
|
"arcgis-assistant-message-block": PreactArcgisAssistantMessageBlock;
|
|
151
|
-
"arcgis-assistant-message-content": PreactArcgisAssistantMessageContent;
|
|
152
140
|
"arcgis-assistant-message-feedback": PreactArcgisAssistantMessageFeedback;
|
|
153
141
|
"arcgis-assistant-message-footer": PreactArcgisAssistantMessageFooter;
|
|
154
142
|
"arcgis-assistant-message-loading": PreactArcgisAssistantMessageLoading;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ import type { ArcgisAssistantNavigationAgent } from "../components/arcgis-assist
|
|
|
8
8
|
import type { ArcgisAssistantChat } from "../components/arcgis-assistant-chat/customElement.js";
|
|
9
9
|
import type { ArcgisAssistantChatEntry } from "../components/arcgis-assistant-chat-entry/customElement.js";
|
|
10
10
|
import type { ArcgisAssistantInterrupt } from "../components/arcgis-assistant-interrupt/customElement.js";
|
|
11
|
-
import type { ArcgisAssistantMessage } from "../components/arcgis-assistant-message/customElement.js";
|
|
12
11
|
import type { ArcgisAssistantMessageBlock } from "../components/arcgis-assistant-message-block/customElement.js";
|
|
13
|
-
import type { ArcgisAssistantMessageContent } from "../components/arcgis-assistant-message-content/customElement.js";
|
|
14
12
|
import type { ArcgisAssistantMessageFeedback } from "../components/arcgis-assistant-message-feedback/customElement.js";
|
|
15
13
|
import type { ArcgisAssistantMessageFooter } from "../components/arcgis-assistant-message-footer/customElement.js";
|
|
16
14
|
import type { ArcgisAssistantMessageLoading } from "../components/arcgis-assistant-message-loading/customElement.js";
|
|
@@ -32,6 +30,7 @@ interface ReactArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnable
|
|
|
32
30
|
onarcgisInterruptSubmit?: EventHandler<ArcgisAssistant["arcgisInterruptSubmit"]>;
|
|
33
31
|
onarcgisPromptSelect?: EventHandler<ArcgisAssistant["arcgisPromptSelect"]>;
|
|
34
32
|
onarcgisReady?: EventHandler<ArcgisAssistant["arcgisReady"]>;
|
|
33
|
+
onarcgisSlottableRequest?: EventHandler<ArcgisAssistant["arcgisSlottableRequest"]>;
|
|
35
34
|
onarcgisSubmit?: EventHandler<ArcgisAssistant["arcgisSubmit"]>;
|
|
36
35
|
}
|
|
37
36
|
|
|
@@ -63,16 +62,9 @@ interface ReactArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantInte
|
|
|
63
62
|
onarcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
|
|
64
63
|
}
|
|
65
64
|
|
|
66
|
-
interface ReactArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, HTMLProps<ArcgisAssistantMessage> {
|
|
67
|
-
}
|
|
68
|
-
|
|
69
65
|
interface ReactArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, HTMLProps<ArcgisAssistantMessageBlock> {
|
|
70
66
|
}
|
|
71
67
|
|
|
72
|
-
interface ReactArcgisAssistantMessageContent extends Partial<Pick<ArcgisAssistantMessageContent, "message">>, HTMLProps<ArcgisAssistantMessageContent> {
|
|
73
|
-
onarcgisSlottableRequest?: EventHandler<ArcgisAssistantMessageContent["arcgisSlottableRequest"]>;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
68
|
interface ReactArcgisAssistantMessageFeedback extends Partial<Pick<ArcgisAssistantMessageFeedback, "feedbackEnabled" | "message">>, HTMLProps<ArcgisAssistantMessageFeedback> {
|
|
77
69
|
onarcgisFeedback?: EventHandler<ArcgisAssistantMessageFeedback["arcgisFeedback"]>;
|
|
78
70
|
}
|
|
@@ -121,9 +113,7 @@ declare module "react" {
|
|
|
121
113
|
"arcgis-assistant-chat": ReactArcgisAssistantChat;
|
|
122
114
|
"arcgis-assistant-chat-entry": ReactArcgisAssistantChatEntry;
|
|
123
115
|
"arcgis-assistant-interrupt": ReactArcgisAssistantInterrupt;
|
|
124
|
-
"arcgis-assistant-message": ReactArcgisAssistantMessage;
|
|
125
116
|
"arcgis-assistant-message-block": ReactArcgisAssistantMessageBlock;
|
|
126
|
-
"arcgis-assistant-message-content": ReactArcgisAssistantMessageContent;
|
|
127
117
|
"arcgis-assistant-message-feedback": ReactArcgisAssistantMessageFeedback;
|
|
128
118
|
"arcgis-assistant-message-footer": ReactArcgisAssistantMessageFooter;
|
|
129
119
|
"arcgis-assistant-message-loading": ReactArcgisAssistantMessageLoading;
|
|
@@ -148,9 +138,7 @@ declare module "react/jsx-runtime" {
|
|
|
148
138
|
"arcgis-assistant-chat": ReactArcgisAssistantChat;
|
|
149
139
|
"arcgis-assistant-chat-entry": ReactArcgisAssistantChatEntry;
|
|
150
140
|
"arcgis-assistant-interrupt": ReactArcgisAssistantInterrupt;
|
|
151
|
-
"arcgis-assistant-message": ReactArcgisAssistantMessage;
|
|
152
141
|
"arcgis-assistant-message-block": ReactArcgisAssistantMessageBlock;
|
|
153
|
-
"arcgis-assistant-message-content": ReactArcgisAssistantMessageContent;
|
|
154
142
|
"arcgis-assistant-message-feedback": ReactArcgisAssistantMessageFeedback;
|
|
155
143
|
"arcgis-assistant-message-footer": ReactArcgisAssistantMessageFooter;
|
|
156
144
|
"arcgis-assistant-message-loading": ReactArcgisAssistantMessageLoading;
|
|
@@ -175,9 +163,7 @@ declare module "react/jsx-dev-runtime" {
|
|
|
175
163
|
"arcgis-assistant-chat": ReactArcgisAssistantChat;
|
|
176
164
|
"arcgis-assistant-chat-entry": ReactArcgisAssistantChatEntry;
|
|
177
165
|
"arcgis-assistant-interrupt": ReactArcgisAssistantInterrupt;
|
|
178
|
-
"arcgis-assistant-message": ReactArcgisAssistantMessage;
|
|
179
166
|
"arcgis-assistant-message-block": ReactArcgisAssistantMessageBlock;
|
|
180
|
-
"arcgis-assistant-message-content": ReactArcgisAssistantMessageContent;
|
|
181
167
|
"arcgis-assistant-message-feedback": ReactArcgisAssistantMessageFeedback;
|
|
182
168
|
"arcgis-assistant-message-footer": ReactArcgisAssistantMessageFooter;
|
|
183
169
|
"arcgis-assistant-message-loading": ReactArcgisAssistantMessageLoading;
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ import type { ArcgisAssistantNavigationAgent } from "../components/arcgis-assist
|
|
|
8
8
|
import type { ArcgisAssistantChat } from "../components/arcgis-assistant-chat/customElement.js";
|
|
9
9
|
import type { ArcgisAssistantChatEntry } from "../components/arcgis-assistant-chat-entry/customElement.js";
|
|
10
10
|
import type { ArcgisAssistantInterrupt } from "../components/arcgis-assistant-interrupt/customElement.js";
|
|
11
|
-
import type { ArcgisAssistantMessage } from "../components/arcgis-assistant-message/customElement.js";
|
|
12
11
|
import type { ArcgisAssistantMessageBlock } from "../components/arcgis-assistant-message-block/customElement.js";
|
|
13
|
-
import type { ArcgisAssistantMessageContent } from "../components/arcgis-assistant-message-content/customElement.js";
|
|
14
12
|
import type { ArcgisAssistantMessageFeedback } from "../components/arcgis-assistant-message-feedback/customElement.js";
|
|
15
13
|
import type { ArcgisAssistantMessageFooter } from "../components/arcgis-assistant-message-footer/customElement.js";
|
|
16
14
|
import type { ArcgisAssistantMessageLoading } from "../components/arcgis-assistant-message-loading/customElement.js";
|
|
@@ -32,6 +30,7 @@ interface StencilArcgisAssistant extends Partial<Pick<ArcgisAssistant, "copyEnab
|
|
|
32
30
|
onArcgisInterruptSubmit?: EventHandler<ArcgisAssistant["arcgisInterruptSubmit"]>;
|
|
33
31
|
onArcgisPromptSelect?: EventHandler<ArcgisAssistant["arcgisPromptSelect"]>;
|
|
34
32
|
onArcgisReady?: EventHandler<ArcgisAssistant["arcgisReady"]>;
|
|
33
|
+
onArcgisSlottableRequest?: EventHandler<ArcgisAssistant["arcgisSlottableRequest"]>;
|
|
35
34
|
onArcgisSubmit?: EventHandler<ArcgisAssistant["arcgisSubmit"]>;
|
|
36
35
|
}
|
|
37
36
|
|
|
@@ -63,16 +62,9 @@ interface StencilArcgisAssistantInterrupt extends Partial<Pick<ArcgisAssistantIn
|
|
|
63
62
|
onArcgisSubmit?: EventHandler<ArcgisAssistantInterrupt["arcgisSubmit"]>;
|
|
64
63
|
}
|
|
65
64
|
|
|
66
|
-
interface StencilArcgisAssistantMessage extends Partial<Pick<ArcgisAssistantMessage, "copyEnabled" | "feedbackEnabled" | "footerDisabled" | "logEnabled" | "message" | "readAloudEnabled">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessage> {
|
|
67
|
-
}
|
|
68
|
-
|
|
69
65
|
interface StencilArcgisAssistantMessageBlock extends Partial<Pick<ArcgisAssistantMessageBlock, "block">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageBlock> {
|
|
70
66
|
}
|
|
71
67
|
|
|
72
|
-
interface StencilArcgisAssistantMessageContent extends Partial<Pick<ArcgisAssistantMessageContent, "message">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageContent> {
|
|
73
|
-
onArcgisSlottableRequest?: EventHandler<ArcgisAssistantMessageContent["arcgisSlottableRequest"]>;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
68
|
interface StencilArcgisAssistantMessageFeedback extends Partial<Pick<ArcgisAssistantMessageFeedback, "feedbackEnabled" | "message">>, StencilJsx.HTMLAttributes<ArcgisAssistantMessageFeedback> {
|
|
77
69
|
onArcgisFeedback?: EventHandler<ArcgisAssistantMessageFeedback["arcgisFeedback"]>;
|
|
78
70
|
}
|
|
@@ -119,9 +111,7 @@ interface ExposedElements {
|
|
|
119
111
|
"arcgis-assistant-chat": StencilArcgisAssistantChat;
|
|
120
112
|
"arcgis-assistant-chat-entry": StencilArcgisAssistantChatEntry;
|
|
121
113
|
"arcgis-assistant-interrupt": StencilArcgisAssistantInterrupt;
|
|
122
|
-
"arcgis-assistant-message": StencilArcgisAssistantMessage;
|
|
123
114
|
"arcgis-assistant-message-block": StencilArcgisAssistantMessageBlock;
|
|
124
|
-
"arcgis-assistant-message-content": StencilArcgisAssistantMessageContent;
|
|
125
115
|
"arcgis-assistant-message-feedback": StencilArcgisAssistantMessageFeedback;
|
|
126
116
|
"arcgis-assistant-message-footer": StencilArcgisAssistantMessageFooter;
|
|
127
117
|
"arcgis-assistant-message-loading": StencilArcgisAssistantMessageLoading;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/ai-components",
|
|
3
|
-
"version": "5.1.0-next.
|
|
3
|
+
"version": "5.1.0-next.89",
|
|
4
4
|
"description": "ArcGIS AI Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"marked": "~18.0.2",
|
|
31
31
|
"tslib": "^2.8.1",
|
|
32
32
|
"zod": "^4.3.6",
|
|
33
|
-
"@arcgis/ai-agents": "5.1.0-next.
|
|
34
|
-
"@arcgis/
|
|
35
|
-
"@arcgis/
|
|
36
|
-
"@arcgis/lumina": "5.1.0-next.
|
|
33
|
+
"@arcgis/ai-agents": "5.1.0-next.89",
|
|
34
|
+
"@arcgis/ai-orchestrator": "5.1.0-next.89",
|
|
35
|
+
"@arcgis/toolkit": "5.1.0-next.89",
|
|
36
|
+
"@arcgis/lumina": "5.1.0-next.89"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@arcgis/core": "^5.1.0-next",
|
|
40
40
|
"@esri/calcite-components": "^5.1.0-next.36",
|
|
41
|
-
"@arcgis/map-components": "~5.1.0-next.
|
|
41
|
+
"@arcgis/map-components": "~5.1.0-next.89"
|
|
42
42
|
},
|
|
43
43
|
"css.customData": [
|
|
44
44
|
"dist/docs/vscode.css-custom-data.json"
|
package/dist/cdn/3IWT4SEI.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as m}from"./VSZNNBU6.js";import"./YGW7TUNX.js";import{g as p,h as u,v as h,y as g}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{watch:y},f,{property:_,subclass:A}])=>{var S=p``,b=Object.defineProperty,C=Object.getOwnPropertyDescriptor,c=(e,s,i,a)=>{for(var r=a>1?void 0:a?C(s,i):s,t=e.length-1,n;t>=0;t--)(n=e[t])&&(r=(a?n(s,i,r):n(r))||r);return a&&r&&b(s,i,r),r};function l(){return typeof window>"u"?null:window}var o=class extends f{constructor(){super(...arguments),this._utterance=null,this.state="idle",this.supported=o.isSupported()}destroy(){this.stop(),super.destroy()}start(e){let s=e.trim(),i=l(),a=i?.SpeechSynthesisUtterance,r=i?.speechSynthesis;if(this._set("supported",o.isSupported(i)),!s||!a||!r)return;this.stop();let t=new a(s);t.rate=.9,t.pitch=1.1,t.volume=1,t.onend=()=>{this._utterance===t&&this._reset()},t.onerror=()=>{this._utterance===t&&this._reset()};try{r.speak(t),this._utterance=t,this._set("state","playing")}catch{t.onend=null,t.onerror=null,this._reset()}}stop(){let e=l(),s=e?.speechSynthesis;if(this._set("supported",o.isSupported(e)),s)try{(s.speaking||s.pending)&&s.cancel()}catch{}this._reset()}toggle(e){if(this.state==="playing"){this.stop();return}this.start(e)}static isSupported(e=l()){return!!e?.speechSynthesis&&typeof e.SpeechSynthesisUtterance=="function"}_reset(){this._utterance&&(this._utterance.onend=null,this._utterance.onerror=null),this._utterance=null,this._set("state","idle")}};c([_({readOnly:!0})],o.prototype,"state",2);c([_({readOnly:!0})],o.prototype,"supported",2);o=c([A("ReadAloudController")],o);var d=class extends h{constructor(){super(...arguments),this._messages=m({blocking:!0}),this._readAloudController=new o,this.readAloudEnabled=!1}static{this.properties={readAloudEnabled:5,message:0}}static{this.styles=S}loaded(){this.manager.onLifecycle(()=>[y(()=>this._readAloudController.state,()=>this.requestUpdate(),{initial:!0}),{remove:()=>{this._readAloudController.stop()}}])}_toggleReadAloud(){this._readAloudController.toggle(this.message?.content??"")}render(){return this.readAloudEnabled&&!this.message?.error&&this.message?.content?.trim()&&this._readAloudController.supported?u`<calcite-action id=action-read-aloud .icon=${this._readAloudController.state==="playing"?"sound-off":"sound"} scale=s .active=${this._readAloudController.state==="playing"} @click=${()=>this._toggleReadAloud()} text></calcite-action><calcite-tooltip reference-element=action-read-aloud overlay-positioning=fixed placement=bottom><span>${this._readAloudController.state==="playing"?this._messages.stopReadingButtonLabel:this._messages.readAloudButtonLabel}</span></calcite-tooltip>`:null}};g("arcgis-assistant-message-read-aloud",d);return d},"core/reactiveUtils","core/Accessor","core/accessorSupport/decorators")
|
package/dist/cdn/AAOF7JQT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as n}from"./VSZNNBU6.js";import"./YGW7TUNX.js";import{g as a,h as e,n as s,v as c,y as l}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";var o=a``,i=class extends c{constructor(){super(...arguments),this.#t=[],this._messages=n({blocking:!0}),this.arcgisCancel=s(),this.arcgisSubmit=s()}static{this.properties={type:1,message:1,options:0}}static{this.styles=o}#t;_renderInterruptOptions(){switch(this.type){case"single-select":return e`<calcite-list selection-mode=single-persist .label=${this._messages.optionsLabel} @calciteListChange=${t=>this.#t=t.target.selectedItems[0]?.value}>${this.options?.map(t=>e`<calcite-list-item .label=${t} .value=${t}></calcite-list-item>`)}</calcite-list>`;case"multi-select":return e`<calcite-list selection-mode=multiple .label=${this._messages.optionsLabel} @calciteListChange=${t=>this.#t=t.target.selectedItems.map(r=>r.value)}>${this.options?.map(t=>e`<calcite-list-item .label=${t} .value=${t}></calcite-list-item>`)}</calcite-list>`;case"boolean-choice":return null;case"text-input":return e`<calcite-input .label=${this._messages.enterTextLabel} @calciteInputInput=${t=>this.#t=t.target.value}></calcite-input>`}}render(){return e`<calcite-panel .description=${this.message}>${this._renderInterruptOptions()}<calcite-button slot=footer-end appearance=outline @click=${()=>this.arcgisCancel.emit()}>${this._messages.cancelButtonLabel}</calcite-button><calcite-button slot=footer-end appearance=solid @click=${()=>this.arcgisSubmit.emit(this.type==="boolean-choice"?!0:this.#t)}>${this._messages.submitButtonLabel}</calcite-button></calcite-panel>`}};l("arcgis-assistant-interrupt",i);export{i as ArcgisAssistantInterrupt};
|
package/dist/cdn/ERCMPLS4.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import"./CFDTXKJ6.js";var e=`## GIS Agent Orchestrator
|
|
3
|
-
|
|
4
|
-
You are an orchestrator for an ArcGIS Maps SDK for JavaScript system.
|
|
5
|
-
|
|
6
|
-
Your job is to decide the single best next agent to execute for the current step.
|
|
7
|
-
|
|
8
|
-
You are given:
|
|
9
|
-
|
|
10
|
-
- the latest user request
|
|
11
|
-
- relevant chat history
|
|
12
|
-
- the list of registered agents
|
|
13
|
-
- optional prior steps from earlier agent executions
|
|
14
|
-
|
|
15
|
-
Return either:
|
|
16
|
-
|
|
17
|
-
- one decision with:
|
|
18
|
-
1. \`agentId\` \u2014 the next agent to execute
|
|
19
|
-
2. \`assignedTask\` \u2014 a clear, actionable task for that agent
|
|
20
|
-
3. \`requiresFollowUp\` \u2014 whether another orchestration step will likely be needed after this agent succeeds
|
|
21
|
-
- or \`null\` if no registered agent applies
|
|
22
|
-
|
|
23
|
-
Important
|
|
24
|
-
|
|
25
|
-
- Return null only when the request is clearly outside the scope of all registered agents.
|
|
26
|
-
- If any agent can take the next useful step, select the best one instead of returning null.
|
|
27
|
-
|
|
28
|
-
Latest user request:
|
|
29
|
-
{userRequest}
|
|
30
|
-
|
|
31
|
-
Registered agents are provided in this format:
|
|
32
|
-
{{id: string, name: string, description: string}}[]
|
|
33
|
-
|
|
34
|
-
{registeredAgents}
|
|
35
|
-
|
|
36
|
-
Prior steps performed by agents are provided:
|
|
37
|
-
|
|
38
|
-
Each step has:
|
|
39
|
-
|
|
40
|
-
- agentId: string
|
|
41
|
-
- assignedTask: string
|
|
42
|
-
- summary: string
|
|
43
|
-
- status: "success" | "failed" | "unknown"
|
|
44
|
-
|
|
45
|
-
Use prior steps to:
|
|
46
|
-
|
|
47
|
-
- Avoid repeating work that has already succeeded
|
|
48
|
-
- Retry or adjust steps that failed when appropriate
|
|
49
|
-
|
|
50
|
-
{priorSteps}
|
|
51
|
-
|
|
52
|
-
Rules:
|
|
53
|
-
|
|
54
|
-
- Focus primarily on the latest user request.
|
|
55
|
-
- Use relevant chat history only when the latest request clearly depends on earlier context; otherwise ignore it.
|
|
56
|
-
- Use prior steps to determine what has already been attempted or completed.
|
|
57
|
-
- Do not plan the full workflow up front. Only decide the next best step.
|
|
58
|
-
- Prefer an agent that can directly complete the user\u2019s request.
|
|
59
|
-
- Only break the request into multiple steps when necessary.
|
|
60
|
-
- When multiple agents could help, choose the best fit instead of returning \`null\`.
|
|
61
|
-
- Base the choice on the registered agent descriptions, not on whether the user used exact matching keywords.
|
|
62
|
-
- If no agent can fully complete the request, but one agent can take the next useful step, choose that agent and set requiresFollowUp to true.
|
|
63
|
-
|
|
64
|
-
Assigned Task Guidelines (IMPORTANT):
|
|
65
|
-
|
|
66
|
-
- The assignedTask should be specific, short, and directly executable by the selected agent.
|
|
67
|
-
- Keep it as close as possible to the user\u2019s request.
|
|
68
|
-
- Prefer minimal transformation of the user\u2019s wording.
|
|
69
|
-
- It should be a concise restatement, not a rewritten or expanded version.
|
|
70
|
-
- Do not rephrase into more detailed or formal language than the user\u2019s request.
|
|
71
|
-
- Use only information explicitly present in the user request or provided context.
|
|
72
|
-
- Do not enrich, elaborate, or add unstated details.
|
|
73
|
-
- Do not clarify or expand the request beyond what the user explicitly stated.
|
|
74
|
-
- Do not add implementation details, UI behavior, or inferred steps.
|
|
75
|
-
- The assignedTask may represent only part of the user\u2019s full request when multiple steps are necessary.
|
|
76
|
-
|
|
77
|
-
requiresFollowUp Guidelines:
|
|
78
|
-
|
|
79
|
-
- requiresFollowUp should indicate a likely next agent step, not uncertainty about the current request.
|
|
80
|
-
- Set requiresFollowUp to true only when another orchestration step will likely be needed after this agent succeeds.
|
|
81
|
-
- Set requiresFollowUp to false when a successful result from this agent would likely complete the user-visible task.
|
|
82
|
-
`;export{e as default};
|
package/dist/cdn/HLDIWEWD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import c from"./FTUILS6R.js";import{a as $}from"./VSZNNBU6.js";import"./PLPJJRCP.js";import{a as S}from"./KVH3PDVW.js";import"./YGW7TUNX.js";import{g as _,h as a,l as f,n as o,t as y,u as b,v as w,y as E}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";export default $arcgis.t(([P,{whenOnce:L,watch:x,when:R},O,M,{property:d,subclass:A},{d:k}])=>{var V=_`:host{display:block;width:var(--arcgis-internal-panel-width, 100%);height:var(--arcgis-internal-expand-max-height, 100%)}.footer-container{display:flex;flex-direction:column;flex:1 1 0;gap:var(--calcite-spacing-md)}.content-container{display:flex;flex-direction:column;flex:1 1 0;min-height:0;position:relative;overflow:auto}.suggested-prompts-container{display:flex;justify-content:center;width:100%}.suggested-prompts{display:block;padding:var(--calcite-spacing-md);max-width:100%;box-sizing:border-box}`,z=Object.defineProperty,j=Object.getOwnPropertyDescriptor,h=(g,t,e,i)=>{for(var s=i>1?void 0:i?j(t,e):t,r=g.length-1,n;r>=0;r--)(n=g[r])&&(s=(i?n(t,e,s):n(s))||s);return i&&s&&z(t,e,s),s},l=class extends M{constructor(g){super(g),this.view=null,this.loading=!1,this.processing=!1,this.processingStep=""}async load(){this._set("loading",!0);try{await this._initialize()}finally{this._set("loading",!1)}}destroy(){this.orchestrator?.dispose(),super.destroy()}async _initialize(){this.removeHandles(),await Promise.all([this.portal.load(),this.view?.when()]),this.view&&await L(()=>!this.view.updating),this._set("orchestrator",await k.init({agents:[...this.agents],view:this.view??void 0})),this.addHandles([x(()=>[this.view,this.agents],()=>{this._initialize()})])}clearChatHistory(){this.orchestrator?.newConversation()}async*ask(g,t){if(!this.orchestrator)throw new Error("Orchestrator not initialized yet.");this._set("processing",!0),this._set("processingStep","");let e=[],i;try{let s=this.orchestrator.ask(g);for await(let r of s){let n=r.runId;if(t?.aborted){yield{type:"cancelled",runId:n};break}switch(r.type){case"trace":{this._set("processingStep",r.data.text),e.push(r.data.text);break}case"completed":{let c=r.result,p=!!c.content.length,m=!!i?.length;if(!p&&!m){yield{type:"completed",error:"Could not process the request.",log:e,runId:n};return}let u=c.content;this._set("processingStep",""),yield{type:"completed",response:u,blocks:i,log:e,runId:n};return}case"ux-suggestion":{let c=r.suggestion;i=i?[...i,c]:[c];break}case"interrupt":{let{kind:c,message:p,metadata:m}=r.interrupt,u=Array.isArray(m)?m.filter(I=>typeof I=="string"):[],C=(()=>{switch(c){case"booleanChoice":return{type:"boolean-choice",message:p,options:u};case"singleSelection":return{type:"single-select",message:p,options:u};case"multipleSelection":return{type:"multi-select",message:p,options:u};case"textInput":return{type:"text-input",message:p};default:return{type:c,message:p,options:u}}})();this._set("processingStep","Waiting for user input..."),yield{type:"interrupt",payload:C,runId:n};break}case"cancelled":{yield{type:"cancelled",runId:n};return}case"error":{yield{type:"completed",error:r.error.message,log:e,runId:n};return}default:{console.warn("Unknown event type:",r);break}}}}catch(s){console.warn("Error during message processing:",s),yield{type:"completed",error:"An error occurred during message processing.",log:e,runId:"error"};return}finally{this._set("processing",!1)}}};h([d({readOnly:!0})],l.prototype,"orchestrator",2);h([d()],l.prototype,"agents",2);h([d()],l.prototype,"portal",2);h([d()],l.prototype,"view",2);h([d({readOnly:!0})],l.prototype,"loading",2);h([d({readOnly:!0})],l.prototype,"processing",2);h([d({readOnly:!0})],l.prototype,"processingStep",2);l=h([A("OrchestratorController")],l);var H="Embeddings resource 'embeddings-v01.json' not found in the webmap portal item.",F="Embeddings not found for this web map.",N="https://developers.arcgis.com/javascript/latest/agentic-apps/ai-webmap-setup/#embeddings",v=class extends w{constructor(){super(...arguments),this._messages=$({blocking:!0}),this.#t=y(),this.#n=y(),this.#e=y(),this.#s=null,this.#o=new Map,this.#r=O.getDefault(),this.#i=t=>{t.stopPropagation(),this.cancelInterrupt()},this.#a=t=>{t.stopPropagation();let e=t.detail;this.submitInterrupt(e)},this.#l=t=>{t.stopPropagation(),this.keepSuggestedPrompts||(this.suggestedPrompts=[]);let e=t.detail;this._inputValue="",this.arcgisSubmit.emit(e),this.submitMessage(e)},this.#c=t=>{if(t.stopPropagation(),this.arcgisCancel.emit(),this._interrupt){this.orchestrator?.cancelInterrupt(),this._interrupt=null;return}this.#s?.abort()},this.#h=t=>{t.stopPropagation();let e=t.detail;this.arcgisFeedback.emit(e)},this.#g=t=>{t.stopPropagation();let e=t.detail;this._inputValue=e.prompt,this.arcgisPromptSelect.emit(e)},this._orchestratorController=null,this._interrupt=null,this._error=null,this._inputValue="",this.messages=new P([]),this.referenceElement=null,this.suggestedPrompts=[],this.feedbackEnabled=!1,this.keepSuggestedPrompts=!1,this.logEnabled=!1,this.copyEnabled=!1,this.voiceInputEnabled=!1,this.readAloudEnabled=!1,this.arcgisCancel=o(),this.arcgisError=o(),this.arcgisFeedback=o(),this.arcgisInterrupt=o(),this.arcgisInterruptCancel=o(),this.arcgisInterruptSubmit=o(),this.arcgisPromptSelect=o(),this.arcgisReady=o(),this.arcgisSubmit=o()}static{this.properties={_orchestratorController:16,_interrupt:16,_error:16,_inputValue:16,_user:16,awaitingResponse:32,awaitingResponseStep:32,interrupt:32,messages:0,orchestrator:32,entryMessage:1,heading:1,description:1,referenceElement:1,suggestedPrompts:0,feedbackEnabled:5,keepSuggestedPrompts:5,logEnabled:5,copyEnabled:5,voiceInputEnabled:5,readAloudEnabled:5}}static{this.styles=V}#t;#n;#e;#s;#o;#r;#i;#a;#l;#c;#h;#g;async#p(){try{let t=S(this.el,this.referenceElement);await t?.componentOnReady();let e=[...this.#o.values()];return e.length?(this._orchestratorController=new l({agents:e,portal:this.#r,view:t?.view}),await this._orchestratorController.load(),!0):(this._error="No agents found.",!1)}catch(t){return this._error=t?.message??"Error initializing orchestrator.",f(this)(t),!1}}get _user(){return this.#r?.user?.fullName||this.#r?.user?.username}get awaitingResponse(){return this._orchestratorController?.processing??!1}get awaitingResponseStep(){return this._orchestratorController?.processingStep??""}get interrupt(){return this._interrupt}get orchestrator(){return this._orchestratorController?.orchestrator}async clearChatHistory(){this._reset(),this._orchestratorController?.clearChatHistory()}cancelInterrupt(){this.arcgisInterruptCancel.emit(),this.orchestrator?.cancelInterrupt(),this._interrupt=null}register(t){this.#o.set(t.agent.id,t)}async submitMessage(t){let e=t.trim();if(!e||(this.messages.push({id:Date.now().toString(),role:"user",content:e}),!this._orchestratorController))return;let i=this._orchestratorController.ask(e,this.#s?.signal);for await(let s of i){let r=s.runId;switch(s.type){case"completed":this.messages.push({role:"assistant",content:s.response,blocks:s.blocks,log:s.log,error:s.error,id:r});break;case"interrupt":this._interrupt={...s.payload,id:r},this.arcgisInterrupt.emit(this._interrupt);break;case"cancelled":this.messages.push({role:"assistant",error:"Request cancelled.",id:r});break}}}submitInterrupt(t){this.arcgisInterruptSubmit.emit(t),this.orchestrator?.resumeInterrupt(t),this._interrupt=null}load(){this.manager.onLifecycle(this._reset.bind(this))}loaded(){this.manager.onLifecycle(()=>{this.#t.value?.addEventListener("arcgisPromptSelect",this.#g),this.#t.value?.addEventListener("arcgisSubmit",this.#l),this.#t.value?.addEventListener("arcgisCancel",this.#c),this.#t.value?.addEventListener("arcgisFeedback",this.#h);let t=R(()=>!!this._interrupt&&!!this.#e.value,()=>{let e=this.#e.value;e.removeEventListener("arcgisSubmit",this.#a),e.removeEventListener("arcgisCancel",this.#i),e.addEventListener("arcgisSubmit",this.#a,{once:!0}),e.addEventListener("arcgisCancel",this.#i,{once:!0})});return queueMicrotask(()=>{this.#p().then(e=>{e?this.arcgisReady.emit():this._error&&this.arcgisError.emit(new Error(this._error))})}),()=>{t.remove(),this.#t.value?.removeEventListener("arcgisPromptSelect",this.#g),this.#e.value?.removeEventListener("arcgisSubmit",this.#a),this.#e.value?.removeEventListener("arcgisCancel",this.#i),this.#t.value?.removeEventListener("arcgisSubmit",this.#l),this.#t.value?.removeEventListener("arcgisCancel",this.#c),this.#t.value?.removeEventListener("arcgisFeedback",this.#h),this._orchestratorController?.destroy(),this._orchestratorController=null}})}_reset(){this.#s?.abort(),this._interrupt=null,this.messages.removeAll(),this._error=null,this._inputValue=""}_renderEntryMessage(){return this._interrupt?a`<slot name=interrupt><arcgis-assistant-interrupt .type=${this._interrupt.type} .message=${this._interrupt.message} .options=${this._interrupt.options} ${b(this.#e)}></arcgis-assistant-interrupt></slot>`:this._error?this._renderErrorNotice():this.entryMessage?this.messages.length>0?null:a`<calcite-notice open kind=info closable icon width=full><div slot=message>${this.entryMessage}</div></calcite-notice>`:a`<slot name=entry-message></slot>`}_renderErrorNotice(){return this._error?a`<calcite-notice closable slot=entry-message open kind=danger icon width=full>${this._error===H?a`<div slot=message>${F}</div><calcite-link slot=link .href=${N} target=_blank title="Learn about web map embeddings">Read more</calcite-link>`:a`<div slot=message>${this._error}</div>`}</calcite-notice>`:null}_renderSuggestedPrompts(){return this.suggestedPrompts?.length?a`<div class="suggested-prompts-container"><arcgis-assistant-suggested-prompts class="suggested-prompts" .prompts=${this.suggestedPrompts}></arcgis-assistant-suggested-prompts></div>`:null}render(){return a`<calcite-panel .loading=${!this._orchestratorController&&!this._error||this._orchestratorController?.loading} .heading=${this.heading??this._messages.assistantLabel} .description=${this.description} ${b(this.#t)}><slot name=header-actions-start slot=header-actions-start></slot><slot name=header-actions-end slot=header-actions-end></slot><div class="content-container"><arcgis-assistant-chat .loading=${this.awaitingResponse} .messages=${this.messages}><slot name=message-starter slot=message-starter></slot><slot name=messages slot=messages>${this.messages.map(t=>t.role==="assistant"?a`<arcgis-assistant-message .message=${t} .feedbackEnabled=${this.feedbackEnabled} .logEnabled=${this.logEnabled} .copyEnabled=${this.copyEnabled} .readAloudEnabled=${this.readAloudEnabled}></arcgis-assistant-message>`:a`<arcgis-assistant-user-message .message=${t} .user=${this._user}></arcgis-assistant-user-message>`)}</slot><slot name=message-loading slot=message-loading><arcgis-assistant-message-loading .loading=${this.awaitingResponse} .loadingMessage=${this.awaitingResponseStep}></arcgis-assistant-message-loading></slot></arcgis-assistant-chat></div>${this._renderSuggestedPrompts()}<div class="footer-container" slot=footer>${this._renderEntryMessage()}<slot name=chat-entry><arcgis-assistant-chat-entry .awaitingResponse=${this.awaitingResponse} .inputValue=${this._inputValue} .messages=${this.messages} .voiceInputEnabled=${this.voiceInputEnabled} ${b(this.#n)}><slot name=entry-actions-start slot=entry-actions-start></slot><slot name=entry-actions-end slot=entry-actions-end><calcite-button .iconStart=${this.awaitingResponse?"circle-stop":"send"} @click=${()=>{this.#n.value?.submitMessage()}} round>${this.awaitingResponse?this._messages.stopButtonLabel:this._messages.askButtonLabel}</calcite-button></slot></arcgis-assistant-chat-entry></slot><slot name=footer-content></slot></div></calcite-panel>`}};E("arcgis-assistant",v);return v},"core/Collection","core/reactiveUtils","portal/Portal","core/Accessor","core/accessorSupport/decorators",c)
|
package/dist/cdn/KJFC3ZEP.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as f}from"./VSZNNBU6.js";import"./YGW7TUNX.js";import{g as d,h as r,n,t as o,u as l,v as g,y as m}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";export default $arcgis.t(([v])=>{var y=d`.input-container{display:flex;flex-direction:column}.footer-start{display:flex;gap:var(--calcite-spacing-md);flex-wrap:wrap;align-items:center}.footer-end{display:flex;gap:var(--calcite-spacing-md);align-items:center}.status-indicator{width:9px;height:9px;border-radius:100%;background-color:var(--calcite-color-status-success)}.status-indicator[data-status=working]{background-color:var(--calcite-color-status-warning)}.status-indicator[data-status=error]{background-color:var(--calcite-color-status-danger)}.status-text{text-transform:capitalize}`,c=class extends g{constructor(){super(...arguments),this.#s=o(),this.#a=o(),this.#t=-1,this.#e="",this.#i=t=>{t.stopPropagation();let s=t.detail;this._setDraftValue(s.value),s.focusInput&&this.#s.value&&this.#s.value.setFocus()},this.#r=t=>{let s=t.target.value??"";this.inputValue=s,this.#e=s},this._messages=f({blocking:!0}),this.keyboardShortcutsDisabled=!1,this.awaitingResponse=!1,this.inputValue="",this.voiceInputEnabled=!1,this.messages=new v([]),this.arcgisCancel=n(),this.arcgisSubmit=n()}static{this.properties={_userMessages:16,keyboardShortcutsDisabled:5,entryPlaceholder:1,awaitingResponse:5,inputValue:1,status:1,voiceInputEnabled:5,messages:0}}static{this.styles=y}#s;#a;#t;#e;#i;#r;get _userMessages(){return this.messages.toArray().filter(t=>t.role==="user").map(({content:t})=>t)}async submitMessage(){if(this.awaitingResponse){this.arcgisCancel.emit();return}let t=this.inputValue.trim();t&&(this.arcgisSubmit.emit(t),this.inputValue="",this.#t=-1,this.#e="",this.#a.value?.clearDraftSession(),this.#s.value&&await this.#s.value.setFocus())}loaded(){this.manager.onLifecycle(()=>(this.el.addEventListener("arcgisVoiceInputDraftChange",this.#i),{remove:()=>{this.el.removeEventListener("arcgisVoiceInputDraftChange",this.#i)}}))}async _navigateHistory(t,s){let i=this.#s.value;if(!i)return;let e=this._userMessages;if(e.length===0)return;let u=i.value??"",h=i.shadowRoot?.querySelector("textarea"),a=h?.selectionStart,p=h?.selectionEnd;if(!(a==null||p==null)&&!(a!==p||t==="up"&&a!==0||t==="down"&&a!==u.length)){if(t==="up"){this.#t===-1?(this.#e=u,this.#t=e.length-1):this.#t=Math.max(0,this.#t-1),this.inputValue=e[this.#t]??"",s.preventDefault();return}this.#t!==-1&&(this.#t<e.length-1?(this.#t+=1,this.inputValue=e[this.#t]??""):(this.#t=-1,this.inputValue=this.#e),s.preventDefault())}}_setDraftValue(t){this.inputValue=t,this.#t=-1,this.#e=t}render(){return r`<div class="input-container"><calcite-text-area .value=${this.inputValue} .placeholder=${this.entryPlaceholder??this._messages.entryPlaceholder} resize=vertical @calciteTextAreaInput=${this.#r} @keydown=${async t=>{t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||this.keyboardShortcutsDisabled||(t.key==="Enter"?(t.preventDefault(),await this.submitMessage()):t.key==="ArrowUp"?await this._navigateHistory("up",t):t.key==="ArrowDown"&&await this._navigateHistory("down",t))}} ${l(this.#s)}><div slot=footer-start class="footer-start"><slot name=entry-actions-start></slot></div><div slot=footer-end class="footer-end">${this.voiceInputEnabled?r`<arcgis-assistant-speech-input .awaitingResponse=${this.awaitingResponse} .inputValue=${this.inputValue} ${l(this.#a)}></arcgis-assistant-speech-input>`:null}<slot name=entry-actions-end></slot></div></calcite-text-area></div>`}};m("arcgis-assistant-chat-entry",c);return c},"core/Collection")
|
package/dist/cdn/MDPF56RC.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as o}from"./VSZNNBU6.js";import"./YGW7TUNX.js";import{g as a,h as e,n as i,v as c,y as n}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";var r=a`.actions{display:flex;flex-direction:row;gap:var(--calcite-spacing-xs)}`,t=class extends c{constructor(){super(...arguments),this._messages=o({blocking:!0}),this.feedbackEnabled=!1,this.arcgisFeedback=i()}static{this.properties={feedbackEnabled:5,message:0}}static{this.styles=r}_handleFeedback(s){this.message&&(this.message.feedback=this.message.feedback?.positive===s?void 0:{positive:s},this.arcgisFeedback.emit(this.message),this.requestUpdate())}_getFeedback(){return this.message?.feedback?.positive}_renderThumbsUpButton(){return e`<calcite-action id=action-thumbs-up icon=thumbs-up scale=s .active=${this._getFeedback()===!0} @click=${()=>this._handleFeedback(!0)} text></calcite-action><calcite-tooltip reference-element=action-thumbs-up overlay-positioning=fixed placement=bottom><span>${this._messages.thumbsUpLabel}</span></calcite-tooltip>`}_renderThumbsDownButton(){return e`<calcite-action id=action-thumbs-down icon=thumbs-down scale=s .active=${this._getFeedback()===!1} @click=${()=>this._handleFeedback(!1)} text></calcite-action><calcite-tooltip reference-element=action-thumbs-down overlay-positioning=fixed placement=bottom><span>${this._messages.thumbsDownLabel}</span></calcite-tooltip>`}render(){return this.feedbackEnabled&&!this.message?.error?e`<div class="actions">${this._renderThumbsUpButton()}${this._renderThumbsDownButton()}</div>`:null}};n("arcgis-assistant-message-feedback",t);export{t as ArcgisAssistantMessageFeedback};
|
package/dist/cdn/OFWYCHDQ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{g as a,h as e,v as t,y as n}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";var i=a`:host{display:block;container-type:inline-size}.container{display:flex;flex-direction:column;align-items:flex-start;gap:var(--calcite-spacing-sm);width:100%;text-align:left}.icon{padding:var(--calcite-spacing-sm);border-radius:var(--calcite-spacing-xl);background:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}.content-container{display:flex;flex:1;flex-direction:column;width:100%;gap:var(--calcite-spacing-md)}@container (min-width: 480px){.container{max-width:80%}}`,s=class extends t{constructor(){super(...arguments),this.feedbackEnabled=!1,this.logEnabled=!1,this.copyEnabled=!1,this.readAloudEnabled=!1,this.footerDisabled=!1}static{this.properties={feedbackEnabled:5,logEnabled:5,copyEnabled:5,readAloudEnabled:5,footerDisabled:5,message:0}}static{this.styles=i}_renderContent(){return e`<arcgis-assistant-message-content .message=${this.message}></arcgis-assistant-message-content>`}_renderFooter(){return e`<arcgis-assistant-message-footer .message=${this.message} .feedbackEnabled=${this.feedbackEnabled} .logEnabled=${this.logEnabled} .copyEnabled=${this.copyEnabled} .readAloudEnabled=${this.readAloudEnabled}></arcgis-assistant-message-footer>`}render(){return e`<div class="container"><slot name=icon><calcite-icon icon=effects class="icon" scale=s></calcite-icon></slot><div class="content-container"><slot name=content>${this._renderContent()}</slot>${this.footerDisabled?null:e`<slot name=footer>${this._renderFooter()}</slot>`}</div></div>`}};n("arcgis-assistant-message",s);export{s as ArcgisAssistantMessage};
|
package/dist/cdn/QTH2DYCO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{g as r,h as s,n as o,v as i,w as c,y as l}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";var g=r`.content,.blocks{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.error-notice{padding:var(--calcite-spacing-sm)}`,m="message",n=class extends i{constructor(){super(...arguments),this.arcgisSlottableRequest=o({cancelable:!1})}static{this.properties={message:0}}static{this.styles=g}willUpdate(){this._syncSlottableRequests()}_getBlockSlotName(e){return`block-${e}`}_syncSlottableRequests(){let e=this.message;e&&(this.arcgisSlottableRequest.emit({data:{message:e},name:"message",slotOwner:this.el,slotName:m}),(e.blocks??[]).forEach((t,a)=>{this.arcgisSlottableRequest.emit({data:{block:t,index:a,message:e},name:"block",slotOwner:this.el,slotName:this._getBlockSlotName(a)})}))}_renderBlock(e,t){return s`<slot name=${this._getBlockSlotName(t)??c}><arcgis-assistant-message-block .block=${e}></arcgis-assistant-message-block></slot>`}_renderBlocks(){let e=this.message?.blocks??[];return e.length?s`<div class="blocks">${e.map((t,a)=>this._renderBlock(t,a))}</div>`:null}_renderDefaultContent(){return this.message?.error?s`<calcite-notice class="error-notice" open icon kind=warning width=full><div slot=message>${this.message.error}</div></calcite-notice>`:s`<arcgis-assistant-message-text .content=${this.message?.content}></arcgis-assistant-message-text>`}_renderContent(){return s`<div class="content"><slot name=${m}>${this._renderDefaultContent()}</slot>${this._renderBlocks()}</div>`}render(){return this._renderContent()}};l("arcgis-assistant-message-content",n);export{n as ArcgisAssistantMessageContent};
|
package/dist/cdn/UWXD5PFQ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as c}from"./VSZNNBU6.js";import"./YGW7TUNX.js";import{g as i,h as s,n as r,v as a,y as p}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";var l=i`:host{display:block;max-width:100%}.group{max-width:100%}.prompt{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;cursor:pointer}calcite-chip{max-width:100%}`,e=class extends a{constructor(){super(...arguments),this._messages=c({blocking:!0}),this.prompts=[],this.arcgisPromptSelect=r()}static{this.properties={label:1,prompts:0}}static{this.styles=l}_emitPromptSelect(t){this.arcgisPromptSelect.emit({prompt:t})}render(){return this.prompts.length?s`<calcite-chip-group class="group" .label=${this.label??this._messages.suggestedPromptsLabel}>${this.prompts.map(t=>s`<calcite-chip .value=${t} .label=${t} appearance=outline-fill kind=brand @calciteChipSelect=${()=>this._emitPromptSelect(t)}><div class="prompt">${t}</div></calcite-chip>`)}</calcite-chip-group>`:null}};p("arcgis-assistant-suggested-prompts",e);export{e as ArcgisAssistantSuggestedPrompts};
|
package/dist/cdn/VSZNNBU6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as $,c as k}from"./YGW7TUNX.js";import{a as C,b as L,c as m,d as f,e as P,f as O,k as g,m as v,o as w,z as N}from"./AKEZZ3RP.js";var _=t=>(...s)=>{let o=f(),e=new t(...s),r=e.exports;m(o.at(-1));let n=e.component.manager;n.W(e,r),e.watchExports(n.W.bind(n,e)),P(e);let a=[e.component,...o].reverse();return v(a,i=>i===void 0?void 0:M(e,i,r),r)},M=(t,{host:s,key:o,isReactive:e},r)=>{let n=s,a=n[o]!==t.exports,i=n[o]!==r,c=r!==t.exports;if(a&&!i&&c&&(n[o]=t.exports),s===t.component){if(e){let l=t.component.manager;i&&l.W(t,n[o]),t.onUpdate(u=>{if(u.has(o)){let x=n[o];x!==t.exports&&l.W(t,x)}})}t.O=e?void 0:o}let d=t.component.constructor.elementProperties.get(o)?.readOnly;t.watchExports(()=>{n[o]!==t.exports&&(d?O(()=>{n[o]=t.exports}):n[o]=t.exports)})};var S="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),j=new Set(S),h="en",U={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},F=async(t,s,o="")=>{let e=`${s}/${o}`,r=`${e}${t}.json`;return b[r]??(b[r]=A(t,e)),await b[r]},b={},A=async(t,s)=>{let o=`${s}${t}.json`;try{let e=await fetch(o);if(e.ok)return await e.json()}catch(e){return g("error","intl",`An unknown error occurred while fetching localization strings at ${o}`,{detail:{error:e}}),{}}return t===h?{}:await A(h,s)},y=t=>{let s=k(t,"lang",globalThis.navigator?.language||h);return{lang:s,t9nLocale:D(s)}},D=t=>{let[s,o]=t.split("-"),e=s.toLowerCase(),r=e;return o&&(r=`${e}-${o.toUpperCase()}`),r=U[r]??r,j.has(r)?r:o?D(e):h},T=(t,s,o,e)=>{let r,n=()=>K(t,s(),e).then(a=>{(r?.lang!==a.lang||r.t9nLocale!==a.t9nLocale||r.t9nStrings!==a.t9nStrings)&&o(a),r=a}).catch(a=>{g("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(n),$(t,["lang"],n)},K=async(t,s,o=t.localName.split("-").slice(1).join("-"))=>{let{lang:e,t9nLocale:r}=y(t),n=`${s}/${o}/t9n`,i=o===null?{}:await F(r,n,"messages.");return{lang:e,t9nLocale:r,t9nStrings:i}};var W=t=>I(void 0,t);var E=class extends w{constructor(s,o){super(s);let e=this.exports;try{L(this.component);let r=o(this.component,this),n=this.exports!==e;if(C(r)){n||this.setProvisionalExports(r);let a=r.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||r!==void 0)&&(this.exports=r),queueMicrotask(()=>super.catchUpLifecycle())}catch(r){this.P.reject(r)}}catchUpLifecycle(){}},I=_(E);var V=t=>(s={})=>W((o,e)=>{let r=y(o.el),n={_lang:r.lang,_t9nLocale:r.t9nLocale,_loading:!0},a=o;e.onLifecycle(()=>T(o.el,()=>t("./assets"),({t9nLocale:c,t9nStrings:p,lang:d})=>{let l={...p,_lang:d,_t9nLocale:c,_loading:!1};e.exports=l;let u=p.componentLabel;typeof u=="string"&&"label"in o&&o.label==null&&(o.label??=u),i(a.messageOverrides)},s.name));let i=c=>{let p=e.exports,d=p._original??p,l=z(d,c);c&&(l._original=d),e.exports=l};return"messageOverrides"in a&&e.onUpdate(c=>{c.has("messageOverrides")&&i(a.messageOverrides)}),s.blocking?(e.setProvisionalExports(n,!1),e.ready):n}),z=(t,s)=>{if(!s)return t;let o={...t};return Object.entries(s).forEach(([e,r])=>{t[e]!==void 0&&(typeof r=="object"?o[e]=z(t[e],r):o[e]=r??t[e])}),o};var ct=V(N);export{ct as a};
|
package/dist/cdn/XMI2K6YV.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as l}from"./VSZNNBU6.js";import"./YGW7TUNX.js";import{g as a,h as e,k as o,t as i,u as n,v as r,y as c}from"./AKEZZ3RP.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{watch:d}])=>{var g=a`.container{display:flex;align-items:center;width:100%;justify-content:space-between;gap:var(--calcite-spacing-xs)}.start,.end{display:flex;align-items:center;gap:var(--calcite-spacing-xs)}`,t=class extends r{constructor(){super(...arguments),this._messages=l({blocking:!0}),this._endRef=i(),this._showLog=!1,this.feedbackEnabled=!1,this.logEnabled=!1,this.copyEnabled=!1,this.readAloudEnabled=!1}static{this.properties={_showLog:16,feedbackEnabled:5,logEnabled:5,copyEnabled:5,readAloudEnabled:5,message:0}}static{this.styles=g}loaded(){this.manager.onLifecycle(()=>[d(()=>this._showLog,()=>this._scrollToEnd())])}_scrollToEnd(){requestAnimationFrame(()=>{this._endRef.value?.scrollIntoView({behavior:"smooth",block:"end"})})}_renderCopyButton(){return!this.message?.error&&this.copyEnabled?e`<calcite-action id=action-copy icon=copy-to-clipboard scale=s @click=${async()=>{try{let s=this.message?.content?.trim();s&&await navigator.clipboard.writeText(s)}catch(s){o("warn","assistant-message-footer","Failed to copy text to clipboard",{once:!0,detail:{error:s}})}}} text></calcite-action><calcite-tooltip reference-element=action-copy overlay-positioning=fixed placement=bottom><span>${this._messages.copyButtonLabel}</span></calcite-tooltip>`:null}_renderLogButton(){return this.message?.log?.length&&this.logEnabled?e`<calcite-action id=action-log icon=access-string-results scale=s @click=${()=>this._showLog=!this._showLog} .text=${this._messages.logButtonLabel} .active=${this._showLog}></calcite-action><calcite-tooltip reference-element=action-log overlay-positioning=fixed placement=bottom><span>${this._messages.logButtonLabel}</span></calcite-tooltip>`:null}_renderReadAloudButton(){return e`<arcgis-assistant-message-read-aloud .message=${this.message} .readAloudEnabled=${this.readAloudEnabled}></arcgis-assistant-message-read-aloud>`}_renderLog(){return e`<arcgis-assistant-message-log .log=${this.message?.log} .showLog=${this._showLog} .logEnabled=${this.logEnabled}></arcgis-assistant-message-log>`}_renderFeedback(){return e`<arcgis-assistant-message-feedback .message=${this.message} .feedbackEnabled=${this.feedbackEnabled}></arcgis-assistant-message-feedback>`}render(){return e`${this._renderLog()}<div class="container"><div class="start">${this._renderCopyButton()}${this._renderLogButton()}${this._renderReadAloudButton()}<slot name=footer-actions-start></slot></div><div class="end"><slot name=footer-actions-end></slot>${this._renderFeedback()}</div></div><div ${n(this._endRef)}></div>`}};c("arcgis-assistant-message-footer",t);return t},"core/reactiveUtils")
|