@arcgis/ai-components 5.2.0-next.72 → 5.2.0-next.73

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 (111) hide show
  1. package/dist/agent-utils/LLMAgent.d.ts +5 -2
  2. package/dist/agent-utils/LLMAgent.js +1 -1
  3. package/dist/agentic-workflow/jsonTypes.d.ts +8 -1
  4. package/dist/agentic-workflow/nodes/AgentNode.d.ts +2 -0
  5. package/dist/agentic-workflow/nodes/tools/ArcgisTool.d.ts +21 -0
  6. package/dist/cdn/2EJROB32.js +2 -0
  7. package/dist/cdn/34O57OGV.js +2 -0
  8. package/dist/cdn/3LXXSMA5.js +2 -0
  9. package/dist/cdn/3MJQA533.js +2 -0
  10. package/dist/cdn/3U476GCP.js +5 -0
  11. package/dist/cdn/3XXZUQMQ.js +2 -0
  12. package/dist/cdn/4YDXYW4J.js +2 -0
  13. package/dist/cdn/4ZUUS4DH.js +2 -0
  14. package/dist/cdn/527C4GD2.js +36 -0
  15. package/dist/cdn/5Y6TQAJN.js +2 -0
  16. package/dist/cdn/65IWA2PM.js +2 -0
  17. package/dist/cdn/{5SFZS2RD.js → 67YCNNCN.js} +2 -2
  18. package/dist/cdn/6FKLWNGA.js +2 -0
  19. package/dist/cdn/6RDKDLSX.js +2 -0
  20. package/dist/cdn/6SGNSDLY.js +2 -0
  21. package/dist/cdn/7747YL7V.js +2 -0
  22. package/dist/cdn/7TO56JHS.js +2 -0
  23. package/dist/cdn/ABXLPDEK.js +2 -0
  24. package/dist/cdn/BBJDW6GC.js +2 -0
  25. package/dist/cdn/{33BF35AO.js → C4FKFOU4.js} +4 -4
  26. package/dist/cdn/CCC6LBMY.js +2 -0
  27. package/dist/cdn/{55M2HE4U.js → CGVVL52C.js} +1 -1
  28. package/dist/cdn/DKLK4EUE.js +2 -0
  29. package/dist/cdn/E25RINU2.js +2 -0
  30. package/dist/cdn/E62P76TP.js +2 -0
  31. package/dist/cdn/E7JLG2A2.js +2 -0
  32. package/dist/cdn/FDOMMK2M.js +2 -0
  33. package/dist/cdn/GG3AESSV.js +2 -0
  34. package/dist/cdn/H6JSNAT4.js +2 -0
  35. package/dist/cdn/HNMFFLSY.js +2 -0
  36. package/dist/cdn/ITBQGOMF.js +11 -0
  37. package/dist/cdn/JH6EAWB2.js +2 -0
  38. package/dist/cdn/JON2JHS2.js +2 -0
  39. package/dist/cdn/JWPB3XZM.js +2 -0
  40. package/dist/cdn/JXB4TNSG.js +2 -0
  41. package/dist/cdn/KRN6AFNB.js +18 -0
  42. package/dist/cdn/KZACIY2W.js +2 -0
  43. package/dist/cdn/MKJS7QYQ.js +2 -0
  44. package/dist/cdn/N735LT4S.js +2 -0
  45. package/dist/cdn/NP7DG7LQ.js +2 -0
  46. package/dist/cdn/NTZAOJH5.js +2 -0
  47. package/dist/cdn/{DWYODVWW.js → OHMNQ3RU.js} +5 -5
  48. package/dist/cdn/ONQ6JSBJ.js +2 -0
  49. package/dist/cdn/QNNGPA3Q.js +2 -0
  50. package/dist/cdn/RATZTLNX.js +2 -0
  51. package/dist/cdn/RU5DVLYG.js +156 -0
  52. package/dist/cdn/SABZC4D4.js +2 -0
  53. package/dist/cdn/TYL5G7KR.js +2 -0
  54. package/dist/cdn/{NJJYZP3R.js → UAZLKUFN.js} +1 -1
  55. package/dist/cdn/VBZ5XGAM.js +2 -0
  56. package/dist/cdn/VXBUMZYR.js +2 -0
  57. package/dist/cdn/W5FLNFSN.js +2 -0
  58. package/dist/cdn/W5J4Q3RO.js +14 -0
  59. package/dist/cdn/XGBEHER5.js +2 -0
  60. package/dist/cdn/YGCTAIBS.js +2 -0
  61. package/dist/cdn/agent-utils/index.js +1 -1
  62. package/dist/cdn/index.js +1 -1
  63. package/dist/chunks/adapter.js +938 -1938
  64. package/dist/chunks/adapter10.js +21 -0
  65. package/dist/chunks/adapter11.js +30 -0
  66. package/dist/chunks/adapter12.js +22 -0
  67. package/dist/chunks/adapter13.js +22 -0
  68. package/dist/chunks/adapter14.js +109 -0
  69. package/dist/chunks/adapter15.js +40 -0
  70. package/dist/chunks/adapter16.js +154 -0
  71. package/dist/chunks/adapter17.js +141 -0
  72. package/dist/chunks/adapter18.js +127 -0
  73. package/dist/chunks/adapter2.js +52 -0
  74. package/dist/chunks/adapter3.js +30 -0
  75. package/dist/chunks/adapter4.js +50 -0
  76. package/dist/chunks/adapter5.js +27 -0
  77. package/dist/chunks/adapter6.js +24 -0
  78. package/dist/chunks/adapter7.js +26 -0
  79. package/dist/chunks/adapter8.js +21 -0
  80. package/dist/chunks/adapter9.js +42 -0
  81. package/dist/chunks/arcgisKnowledgeGraph.js +5 -5
  82. package/dist/chunks/dataExplorationGraph.js +30 -27
  83. package/dist/chunks/fetchAgentContext.js +13 -0
  84. package/dist/chunks/fetchService.js +10 -0
  85. package/dist/chunks/formatFeatureAttributes.js +132 -0
  86. package/dist/chunks/helpGraph.js +11 -9
  87. package/dist/chunks/layerStylingGraph.js +22 -21
  88. package/dist/chunks/mergeWhereClauses.js +15 -0
  89. package/dist/chunks/navigationGraph.js +68 -57
  90. package/dist/chunks/types.js +59 -0
  91. package/dist/components/arcgis-assistant-agent/customElement.js +404 -279
  92. package/dist/components/arcgis-assistant-data-exploration-agent/customElement.js +15 -5
  93. package/dist/components/arcgis-assistant-help-agent/customElement.js +21 -5
  94. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +39 -22
  95. package/dist/components/arcgis-assistant-layer-styling-agent/customElement.js +22 -5
  96. package/dist/components/arcgis-assistant-navigation-agent/customElement.js +13 -5
  97. package/dist/docs/api.json +1 -1
  98. package/dist/docs/docs.json +1 -1
  99. package/dist/docs/web-types.json +1 -1
  100. package/package.json +4 -4
  101. package/dist/cdn/BAB3MK4Y.js +0 -2
  102. package/dist/cdn/BMBV6Y2A.js +0 -2
  103. package/dist/cdn/D3RKQSWS.js +0 -2
  104. package/dist/cdn/IGQFAL3H.js +0 -2
  105. package/dist/cdn/NSXX2KYS.js +0 -2
  106. package/dist/cdn/OFRFP4BX.js +0 -2
  107. package/dist/cdn/OUFGJV3R.js +0 -2
  108. package/dist/cdn/RWM5T4XB.js +0 -180
  109. package/dist/cdn/SRFLL6ET.js +0 -2
  110. package/dist/cdn/WDOM6Z5O.js +0 -18
  111. package/dist/cdn/Z4XUJQ2I.js +0 -36
@@ -0,0 +1,59 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import m from "@arcgis/core/geometry/Point.js";
3
+ import * as y from "@arcgis/core/geometry/operators/unionOperator.js";
4
+ import f from "zod";
5
+ const u = 750;
6
+ function c(e) {
7
+ return "point" in e && e.point !== void 0;
8
+ }
9
+ function d(e) {
10
+ return "layerId" in e && e.layerId !== void 0;
11
+ }
12
+ const R = async (e, o) => {
13
+ if (c(e)) {
14
+ const { point: r } = e;
15
+ return { geometry: new m({
16
+ x: r.x,
17
+ y: r.y,
18
+ spatialReference: r.spatialReference ? { wkid: r.spatialReference.wkid } : o.spatialReference
19
+ }) };
20
+ }
21
+ if (d(e)) {
22
+ const r = o.map?.allLayers.find(
23
+ (t) => t.id === e.layerId
24
+ );
25
+ if (!r)
26
+ return { error: `Could not find geometry layer with ID: ${e.layerId}` };
27
+ const i = r.title ?? r.id, l = e.where?.trim() || "1=1";
28
+ try {
29
+ const t = await r.queryFeatures({
30
+ where: l,
31
+ returnGeometry: !0,
32
+ outSpatialReference: o.spatialReference,
33
+ num: u + 1
34
+ });
35
+ if (!t.features.length)
36
+ return {
37
+ error: `No features found in geometry layer "${i}" with the specified where clause: ${l}`
38
+ };
39
+ if (t.features.length > u)
40
+ return {
41
+ error: `Geometry filter for layer "${i}" matched too many features (${t.features.length}+). Please narrow the geometry layer filter.`
42
+ };
43
+ const a = t.features.map((s) => s.geometry).filter((s) => !!s);
44
+ if (!a.length)
45
+ return { error: "No valid geometries found for the matched geometry layer features." };
46
+ const n = a.length === 1 ? a[0] : y.executeMany(a);
47
+ return n ? (n.spatialReference || (n.spatialReference = o.spatialReference), { geometry: n }) : { error: "Failed to combine geometries from geometry layer." };
48
+ } catch (t) {
49
+ return { error: `Failed to query geometry: ${String(t)}` };
50
+ }
51
+ }
52
+ return { error: "Invalid geometry configuration provided" };
53
+ }, h = ["feet", "kilometers", "meters", "miles", "nautical-miles", "us-nautical-miles"], w = f.enum(h);
54
+ export {
55
+ c as a,
56
+ w as d,
57
+ R as g,
58
+ d as i
59
+ };