@arcgis/ai-components 5.2.0-next.86 → 5.2.0-next.88
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/WorkflowAgent.js +14 -15
- package/dist/cdn/{7GMCLVSZ.js → 64K5QGMS.js} +1 -1
- package/dist/cdn/7FY7WAA5.js +2 -0
- package/dist/cdn/{DPALM2OW.js → APDJ4EPR.js} +1 -1
- package/dist/cdn/{4QGVOLW6.js → C4MALUDF.js} +1 -1
- package/dist/cdn/{7Q5EESAR.js → ESHAIDS7.js} +1 -1
- package/dist/cdn/{6NHYXISD.js → EUM4DZDR.js} +1 -1
- package/dist/cdn/{F2J6BMMX.js → GPXL4CYF.js} +1 -1
- package/dist/cdn/{E7JZ7GUW.js → HJEYVERV.js} +1 -1
- package/dist/cdn/{WLH47YFC.js → MBBDTSIF.js} +1 -1
- package/dist/cdn/OL5656NI.js +2 -0
- package/dist/cdn/{3POGAH2X.js → PQ5HW7F5.js} +1 -1
- package/dist/cdn/{ZRESBCJL.js → PULEMR55.js} +1 -1
- package/dist/cdn/{RWWOOC7S.js → R4GPUHUB.js} +1 -1
- package/dist/cdn/{7TXR75RG.js → R7CCQNIY.js} +1 -1
- package/dist/cdn/{UEEH5ZQK.js → YNWG4AIR.js} +31 -31
- package/dist/cdn/agent-utils/index.js +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/adapter.js +95 -92
- package/dist/components/arcgis-assistant-agent/customElement.js +208 -208
- package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +0 -1
- package/dist/components/arcgis-assistant-help-agent/customElement.js +0 -1
- package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +5 -6
- package/dist/components/arcgis-assistant-navigation-agent/customElement.js +0 -1
- package/dist/components/arcgis-assistant-speech-input/customElement.js +15 -16
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +7 -7
- package/dist/cdn/KPO4XX6J.js +0 -2
- package/dist/cdn/W5G35GO4.js +0 -2
|
@@ -28,7 +28,6 @@ import "@langchain/langgraph/prebuilt";
|
|
|
28
28
|
import "zod";
|
|
29
29
|
import { D as r } from "../../chunks/dataExplorationGraph.js";
|
|
30
30
|
import "../../agents/tools/help/listFields/adapter.js";
|
|
31
|
-
import "@arcgis/core/views/LinkChartView.js";
|
|
32
31
|
import "@arcgis/core/rest/knowledgeGraphService.js";
|
|
33
32
|
import { r as o, i as a } from "../../chunks/utils2.js";
|
|
34
33
|
class s extends i {
|
|
@@ -37,7 +37,6 @@ import "@arcgis/core/intl.js";
|
|
|
37
37
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
38
38
|
import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
39
39
|
import { H as r } from "../../chunks/helpGraph.js";
|
|
40
|
-
import "@arcgis/core/views/LinkChartView.js";
|
|
41
40
|
import "@arcgis/core/rest/knowledgeGraphService.js";
|
|
42
41
|
import { r as o, i as p } from "../../chunks/utils2.js";
|
|
43
42
|
class m extends i {
|
|
@@ -38,10 +38,9 @@ import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
|
38
38
|
import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
39
39
|
import { L as r } from "../../chunks/layerStylingGraph.js";
|
|
40
40
|
import "../../agents/tools/help/listFields/adapter.js";
|
|
41
|
-
import "@arcgis/core/views/LinkChartView.js";
|
|
42
41
|
import "@arcgis/core/rest/knowledgeGraphService.js";
|
|
43
|
-
import { r as o, i as
|
|
44
|
-
class
|
|
42
|
+
import { r as o, i as s } from "../../chunks/utils2.js";
|
|
43
|
+
class m extends i {
|
|
45
44
|
constructor() {
|
|
46
45
|
super(...arguments), this.agent = r;
|
|
47
46
|
}
|
|
@@ -56,13 +55,13 @@ class s extends i {
|
|
|
56
55
|
return { mapView: this.#t };
|
|
57
56
|
}
|
|
58
57
|
load() {
|
|
59
|
-
this.#t = o(this, "arcgis-assistant-layer-styling-agent"), this.#i =
|
|
58
|
+
this.#t = o(this, "arcgis-assistant-layer-styling-agent"), this.#i = s(this);
|
|
60
59
|
}
|
|
61
60
|
disconnectedCallback() {
|
|
62
61
|
this.#i?.unregister(this.agent.id), super.disconnectedCallback();
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
|
-
t("arcgis-assistant-layer-styling-agent",
|
|
64
|
+
t("arcgis-assistant-layer-styling-agent", m);
|
|
66
65
|
export {
|
|
67
|
-
|
|
66
|
+
m as ArcgisAssistantLayerStylingAgent
|
|
68
67
|
};
|
|
@@ -28,7 +28,6 @@ import "@langchain/langgraph/prebuilt";
|
|
|
28
28
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
29
29
|
import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
|
|
30
30
|
import "../../agents/tools/help/listFields/adapter.js";
|
|
31
|
-
import "@arcgis/core/views/LinkChartView.js";
|
|
32
31
|
import "@arcgis/core/rest/knowledgeGraphService.js";
|
|
33
32
|
import { r as o, i as s } from "../../chunks/utils2.js";
|
|
34
33
|
class a extends i {
|
|
@@ -3,13 +3,22 @@ import { c as C } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as S, html as R } from "lit";
|
|
4
4
|
import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import { LitElement as y, createEvent as d, nothing as v } from "@arcgis/lumina";
|
|
6
|
-
import w from "@arcgis/core/core/Accessor.js";
|
|
7
6
|
import { property as l, subclass as f } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
7
|
+
import w from "@arcgis/core/core/Accessor.js";
|
|
8
|
+
const I = S`.button{--calcite-button-background-color: var(--calcite-color-transparent);--calcite-button-border-color: transparent;--calcite-button-icon-color: var(--calcite-color-text-3);--calcite-button-text-color: var(--calcite-color-text-3);flex:0 0 auto;position:relative}.button[data-state=disabled]{--calcite-button-icon-color: var(--calcite-color-text-3);opacity:var(--calcite-opacity-disabled)}.button[data-state=listening]{--calcite-button-background-color: color-mix( in srgb, var(--calcite-color-brand) 14%, var(--calcite-color-foreground-1) );--calcite-button-border-color: color-mix(in srgb, var(--calcite-color-brand) 24%, transparent);--calcite-button-icon-color: var(--calcite-color-brand);--calcite-button-text-color: var(--calcite-color-brand);box-shadow:var(--calcite-shadow-sm)}.button[data-state=listening]:hover{--calcite-button-background-color: color-mix( in srgb, var(--calcite-color-brand-hover, var(--calcite-color-brand)) 18%, var(--calcite-color-foreground-1) )}.button[data-state=listening]:active{--calcite-button-background-color: color-mix( in srgb, var(--calcite-color-brand) 24%, var(--calcite-color-foreground-1) )}.button[data-state=processing]{--calcite-button-background-color: color-mix( in srgb, var(--calcite-color-brand) 10%, var(--calcite-color-foreground-1) );--calcite-button-border-color: color-mix(in srgb, var(--calcite-color-brand) 20%, transparent);--calcite-button-icon-color: var(--calcite-color-brand);--calcite-button-text-color: var(--calcite-color-brand)}.button[data-state=error]{--calcite-button-background-color: color-mix( in srgb, var(--calcite-color-status-danger) 12%, var(--calcite-color-foreground-1) );--calcite-button-border-color: color-mix(in srgb, var(--calcite-color-status-danger) 24%, transparent);--calcite-button-icon-color: var(--calcite-color-status-danger);--calcite-button-text-color: var(--calcite-color-status-danger)}.button[data-state=listening]:after{content:"";position:absolute;inset:-4px;border:1px solid color-mix(in srgb,var(--calcite-color-brand) 40%,transparent);border-radius:inherit;opacity:0;pointer-events:none;transform:scale(.92);animation:assistant-speech-input-recording-pulse 1.8s ease-out infinite}@keyframes assistant-speech-input-recording-pulse{0%{opacity:.65;transform:scale(.92)}70%{opacity:0;transform:scale(1.16)}to{opacity:0;transform:scale(1.16)}}@media(prefers-reduced-motion){.button[data-state=listening]:after{animation:none}}`, T = [
|
|
9
|
+
"audio/webm;codecs=opus",
|
|
10
|
+
"audio/webm",
|
|
11
|
+
"audio/mp4",
|
|
12
|
+
"audio/ogg;codecs=opus",
|
|
13
|
+
"audio/ogg"
|
|
14
|
+
];
|
|
15
|
+
function h(t) {
|
|
16
|
+
return t.replace(/\s+/gu, " ").trim();
|
|
17
|
+
}
|
|
18
|
+
var k = Object.defineProperty, x = Object.getOwnPropertyDescriptor, u = (t, e, s, i) => {
|
|
19
|
+
for (var r = i > 1 ? void 0 : i ? x(e, s) : e, n = t.length - 1, o; n >= 0; n--)
|
|
11
20
|
(o = t[n]) && (r = (i ? o(e, s, r) : o(r)) || r);
|
|
12
|
-
return i && r &&
|
|
21
|
+
return i && r && k(e, s, r), r;
|
|
13
22
|
};
|
|
14
23
|
let a = class extends w {
|
|
15
24
|
constructor(t) {
|
|
@@ -37,16 +46,6 @@ u([
|
|
|
37
46
|
a = u([
|
|
38
47
|
f("SpeechController")
|
|
39
48
|
], a);
|
|
40
|
-
const x = [
|
|
41
|
-
"audio/webm;codecs=opus",
|
|
42
|
-
"audio/webm",
|
|
43
|
-
"audio/mp4",
|
|
44
|
-
"audio/ogg;codecs=opus",
|
|
45
|
-
"audio/ogg"
|
|
46
|
-
];
|
|
47
|
-
function h(t) {
|
|
48
|
-
return t.replace(/\s+/gu, " ").trim();
|
|
49
|
-
}
|
|
50
49
|
var V = Object.defineProperty, O = Object.getOwnPropertyDescriptor, g = (t, e, s, i) => {
|
|
51
50
|
for (var r = i > 1 ? void 0 : i ? O(e, s) : e, n = t.length - 1, o; n >= 0; n--)
|
|
52
51
|
(o = t[n]) && (r = (i ? o(e, s, r) : o(r)) || r);
|
|
@@ -57,7 +56,7 @@ let c = class extends a {
|
|
|
57
56
|
super(t), this._activeSessionId = null, this._mediaRecorder = null, this._mediaRecorderChunkIndex = 0, this._mediaRecorderStopReason = null, this._mediaStream = null, this._pendingChunkOperations = /* @__PURE__ */ new Set(), this._recordedChunks = [], this.handleRecording = null, this.chunkTimeSlice = 3e3;
|
|
58
57
|
}
|
|
59
58
|
get _mimeType() {
|
|
60
|
-
return typeof window > "u" || typeof window.MediaRecorder?.isTypeSupported != "function" ? "" :
|
|
59
|
+
return typeof window > "u" || typeof window.MediaRecorder?.isTypeSupported != "function" ? "" : T.find((t) => window.MediaRecorder.isTypeSupported(t)) ?? "";
|
|
61
60
|
}
|
|
62
61
|
destroy() {
|
|
63
62
|
this._mediaRecorder && (this._mediaRecorder.onstart = null, this._mediaRecorder.ondataavailable = null, this._mediaRecorder.onerror = null, this._mediaRecorder.onstop = null), this.cancel(), this._mediaRecorder = null;
|