@arcgis/ai-components 5.2.0-next.79 → 5.2.0-next.84

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 (50) hide show
  1. package/dist/cdn/{LM2IGECE.js → 3POGAH2X.js} +1 -1
  2. package/dist/cdn/{XHGVCL22.js → 3SEKXQVK.js} +1 -1
  3. package/dist/cdn/{NZJ6LLYY.js → 4QGVOLW6.js} +1 -1
  4. package/dist/cdn/{7QOC7FQE.js → 6NHYXISD.js} +1 -1
  5. package/dist/cdn/{XCNN7BQ3.js → 7FY7WAA5.js} +1 -1
  6. package/dist/cdn/{KP2FWABJ.js → 7GMCLVSZ.js} +1 -1
  7. package/dist/cdn/{MYH43WYG.js → 7Q5EESAR.js} +1 -1
  8. package/dist/cdn/{6ADMWEVE.js → 7TXR75RG.js} +1 -1
  9. package/dist/cdn/{HPU6K67Y.js → AZ5G7YZH.js} +1 -1
  10. package/dist/cdn/{ZWBFTKHF.js → BM3WFHJG.js} +1 -1
  11. package/dist/cdn/{4F7Y4RNW.js → BPCBE7J6.js} +1 -1
  12. package/dist/cdn/{MAPKEX67.js → DPALM2OW.js} +1 -1
  13. package/dist/cdn/{W7OT3KRG.js → E7JZ7GUW.js} +1 -1
  14. package/dist/cdn/{NPBXE4EQ.js → F2J6BMMX.js} +1 -1
  15. package/dist/cdn/{QUMNJVKX.js → HDM2D2GD.js} +1 -1
  16. package/dist/cdn/{ATFNWFKG.js → I3ONG4AX.js} +1 -1
  17. package/dist/cdn/{3LILAJUD.js → IFJM5XEQ.js} +1 -1
  18. package/dist/cdn/{XLHTQ7CF.js → JWIE3YK3.js} +1 -1
  19. package/dist/cdn/{G5XE5D36.js → LMPNXXTQ.js} +1 -1
  20. package/dist/cdn/{OKTBWKNG.js → LYKCYBGB.js} +1 -1
  21. package/dist/cdn/{NLEBWLVV.js → M2L5R4LA.js} +1 -1
  22. package/dist/cdn/{EBNVLMUU.js → M4URMXDS.js} +1 -1
  23. package/dist/cdn/{ORRMONGJ.js → MDAKBX7N.js} +1 -1
  24. package/dist/cdn/{WQGJATNJ.js → NQDOAPE3.js} +1 -1
  25. package/dist/cdn/{LXQFE5PJ.js → RV55GABG.js} +1 -1
  26. package/dist/cdn/{ZCEMEUP7.js → RWWOOC7S.js} +1 -1
  27. package/dist/cdn/{CZLLPKMS.js → TACBKKBI.js} +1 -1
  28. package/dist/cdn/{J4R7KYJ3.js → UEEH5ZQK.js} +14 -14
  29. package/dist/cdn/{YLGKKWZK.js → V6HOUZPZ.js} +1 -1
  30. package/dist/cdn/{EAOKCWED.js → WLH47YFC.js} +1 -1
  31. package/dist/cdn/{4AGGYAWS.js → ZRESBCJL.js} +1 -1
  32. package/dist/cdn/{ADJ63EDN.js → ZUNLFO6M.js} +1 -1
  33. package/dist/cdn/agent-utils/index.js +1 -1
  34. package/dist/cdn/index.js +1 -1
  35. package/dist/chunks/adapter.js +209 -210
  36. package/dist/chunks/utils2.js +41 -10
  37. package/dist/chunks/utils3.js +10 -41
  38. package/dist/components/arcgis-assistant/customElement.js +1 -1
  39. package/dist/components/arcgis-assistant-agent/customElement.js +1 -1
  40. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +1 -1
  41. package/dist/components/arcgis-assistant-help-agent/customElement.js +1 -1
  42. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +1 -1
  43. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +1 -1
  44. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +1 -1
  45. package/dist/docs/api.json +1 -1
  46. package/dist/docs/docs.json +1 -1
  47. package/dist/docs/web-types.json +1 -1
  48. package/package.json +5 -5
  49. /package/dist/cdn/{MMHDT4KV.js → 3UEKINYC.js} +0 -0
  50. /package/dist/cdn/{6TA5KFAQ.js → TMJMDCSA.js} +0 -0
@@ -1,16 +1,47 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { getClosestElement as s } from "@arcgis/toolkit/dom";
3
- function l(t, o) {
4
- return o ? typeof o == "string" ? u(t, o) ?? null : o : s(t, "arcgis-map") ?? null;
2
+ import { getClosestElement as i } from "@arcgis/toolkit/dom";
3
+ import { g as s, a as o } from "./utils3.js";
4
+ function c(e, t) {
5
+ const r = s(e.el, e.referenceElement);
6
+ if (r)
7
+ return r;
8
+ const n = i(e.el, "arcgis-assistant"), a = s(e.el, n?.referenceElement);
9
+ if (a)
10
+ return a;
11
+ throw new Error(`${t}: Reference element not found`);
5
12
  }
6
- function n(t, o) {
7
- return o ? typeof o == "string" ? u(t, o) ?? null : o : s(t, "arcgis-link-chart") ?? s(t, "arcgis-map") ?? null;
13
+ function m(e, t) {
14
+ const n = c(e, t).view;
15
+ if (!n)
16
+ throw new Error(`${t}: Reference element does not have a view`);
17
+ return n;
8
18
  }
9
- function u(t, o) {
10
- const r = o.includes("#") || o.includes(".") || o.includes("["), i = t.getRootNode();
11
- return (r ? void 0 : i.querySelector(`#${o}`)) ?? i.querySelector(o) ?? void 0;
19
+ function w(e) {
20
+ return typeof e == "function";
21
+ }
22
+ function g(e) {
23
+ const t = i(e.el, "arcgis-assistant");
24
+ if (t === void 0)
25
+ throw new Error("arcgis-assistant-agent must be used within an arcgis-assistant element");
26
+ return t.register({
27
+ agent: e.agent,
28
+ getContext: async () => await e.getContext?.() ?? e.context ?? {}
29
+ }), t;
30
+ }
31
+ function l(e) {
32
+ const t = o(e.el, e.referenceElement);
33
+ if (t)
34
+ return t;
35
+ const r = i(e.el, "arcgis-assistant"), n = s(e.el, r?.referenceElement);
36
+ return n || null;
37
+ }
38
+ function v(e) {
39
+ const t = l(e);
40
+ return t ? t.view : null;
12
41
  }
13
42
  export {
14
- n as a,
15
- l as g
43
+ v as a,
44
+ w as b,
45
+ g as i,
46
+ m as r
16
47
  };
@@ -1,47 +1,16 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { getClosestElement as i } from "@arcgis/toolkit/dom";
3
- import { g as s, a as o } from "./utils2.js";
4
- function c(e, t) {
5
- const r = s(e.el, e.referenceElement);
6
- if (r)
7
- return r;
8
- const n = i(e.el, "arcgis-assistant"), a = s(e.el, n?.referenceElement);
9
- if (a)
10
- return a;
11
- throw new Error(`${t}: Reference element not found`);
2
+ import { getClosestElement as s } from "@arcgis/toolkit/dom";
3
+ function l(t, o) {
4
+ return o ? typeof o == "string" ? u(t, o) ?? null : o : s(t, "arcgis-map") ?? null;
12
5
  }
13
- function m(e, t) {
14
- const n = c(e, t).view;
15
- if (!n)
16
- throw new Error(`${t}: Reference element does not have a view`);
17
- return n;
6
+ function n(t, o) {
7
+ return o ? typeof o == "string" ? u(t, o) ?? null : o : s(t, "arcgis-link-chart") ?? s(t, "arcgis-map") ?? null;
18
8
  }
19
- function w(e) {
20
- return typeof e == "function";
21
- }
22
- function g(e) {
23
- const t = i(e.el, "arcgis-assistant");
24
- if (t === void 0)
25
- throw new Error("arcgis-assistant-agent must be used within an arcgis-assistant element");
26
- return t.register({
27
- agent: e.agent,
28
- getContext: async () => await e.getContext?.() ?? e.context ?? {}
29
- }), t;
30
- }
31
- function l(e) {
32
- const t = o(e.el, e.referenceElement);
33
- if (t)
34
- return t;
35
- const r = i(e.el, "arcgis-assistant"), n = s(e.el, r?.referenceElement);
36
- return n || null;
37
- }
38
- function v(e) {
39
- const t = l(e);
40
- return t ? t.view : null;
9
+ function u(t, o) {
10
+ const r = o.includes("#") || o.includes(".") || o.includes("["), i = t.getRootNode();
11
+ return (r ? void 0 : i.querySelector(`#${o}`)) ?? i.querySelector(o) ?? void 0;
41
12
  }
42
13
  export {
43
- v as a,
44
- w as b,
45
- g as i,
46
- m as r
14
+ n as a,
15
+ l as g
47
16
  };
@@ -24,7 +24,7 @@ import "@langchain/langgraph/web";
24
24
  import V from "@arcgis/core/core/Accessor.js";
25
25
  import { property as m, subclass as F } from "@arcgis/core/core/accessorSupport/decorators.js";
26
26
  import { marked as E } from "marked";
27
- import { g as j } from "../../chunks/utils2.js";
27
+ import { g as j } from "../../chunks/utils3.js";
28
28
  import { g as $ } from "../../chunks/slottableRequestUtils.js";
29
29
  const H = A`:host{display:block;width:var(--arcgis-internal-panel-width, 100%);height:var(--arcgis-internal-expand-max-height, 100%);--calcite-panel-content-bottom-space: 0}.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%;background:var(--calcite-panel-background-color, var(--calcite-color-background))}.suggested-prompts{display:block;padding:var(--calcite-spacing-md);max-width:100%;box-sizing:border-box}.error-notice{padding:var(--calcite-spacing-sm)}.interrupt-waiting-message{font-style:italic;color:var(--calcite-color-text-2)}`;
30
30
  function k(o) {
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as q } from "../../chunks/runtime.js";
3
3
  import { LitElement as M } from "@arcgis/lumina";
4
- import { b as W, i as L } from "../../chunks/utils3.js";
4
+ import { b as W, i as L } from "../../chunks/utils2.js";
5
5
  import C from "@arcgis/core/portal/PortalItem.js";
6
6
  import j from "@arcgis/core/portal/Portal.js";
7
7
  import { property as n, subclass as l } from "@arcgis/core/core/accessorSupport/decorators.js";
@@ -30,7 +30,7 @@ import { D as r } from "../../chunks/dataExplorationGraph.js";
30
30
  import "../../agents/tools/help/listFields/adapter.js";
31
31
  import "@arcgis/core/views/LinkChartView.js";
32
32
  import "@arcgis/core/rest/knowledgeGraphService.js";
33
- import { r as o, i as a } from "../../chunks/utils3.js";
33
+ import { r as o, i as a } from "../../chunks/utils2.js";
34
34
  class s extends i {
35
35
  constructor() {
36
36
  super(...arguments), this.agent = r;
@@ -39,7 +39,7 @@ import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
39
39
  import { H as r } from "../../chunks/helpGraph.js";
40
40
  import "@arcgis/core/views/LinkChartView.js";
41
41
  import "@arcgis/core/rest/knowledgeGraphService.js";
42
- import { r as o, i as p } from "../../chunks/utils3.js";
42
+ import { r as o, i as p } from "../../chunks/utils2.js";
43
43
  class m extends i {
44
44
  constructor() {
45
45
  super(...arguments), this.agent = r;
@@ -38,7 +38,7 @@ import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
38
38
  import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
39
39
  import "../../agents/tools/help/listFields/adapter.js";
40
40
  import { A as o } from "../../chunks/arcgisKnowledgeGraph.js";
41
- import { a as s, i as n } from "../../chunks/utils3.js";
41
+ import { a as s, i as n } from "../../chunks/utils2.js";
42
42
  import { fetchKnowledgeGraph as p } from "@arcgis/core/rest/knowledgeGraphService.js";
43
43
  class m extends e {
44
44
  constructor() {
@@ -40,7 +40,7 @@ import { L as r } from "../../chunks/layerStylingGraph.js";
40
40
  import "../../agents/tools/help/listFields/adapter.js";
41
41
  import "@arcgis/core/views/LinkChartView.js";
42
42
  import "@arcgis/core/rest/knowledgeGraphService.js";
43
- import { r as o, i as m } from "../../chunks/utils3.js";
43
+ import { r as o, i as m } from "../../chunks/utils2.js";
44
44
  class s extends i {
45
45
  constructor() {
46
46
  super(...arguments), this.agent = r;
@@ -30,7 +30,7 @@ import "@arcgis/core/smartMapping/statistics/uniqueValues.js";
30
30
  import "../../agents/tools/help/listFields/adapter.js";
31
31
  import "@arcgis/core/views/LinkChartView.js";
32
32
  import "@arcgis/core/rest/knowledgeGraphService.js";
33
- import { r as o, i as s } from "../../chunks/utils3.js";
33
+ import { r as o, i as s } from "../../chunks/utils2.js";
34
34
  class a extends i {
35
35
  constructor() {
36
36
  super(...arguments), this.agent = r;