@arcgis/ai-components 5.1.0-next.103 → 5.1.0-next.105

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 (36) hide show
  1. package/dist/cdn/{WJLYLYKX.js → 3WNX5KPG.js} +1 -1
  2. package/dist/cdn/47QQSSPB.js +2 -0
  3. package/dist/cdn/7BC523J3.js +2 -0
  4. package/dist/cdn/{7O3BAVC3.js → 7BX4FWWP.js} +51 -49
  5. package/dist/cdn/{5RPWGEUQ.js → 7PQBO2SZ.js} +1 -1
  6. package/dist/cdn/EJWQC2SL.js +2 -0
  7. package/dist/cdn/{ZPNJGIAF.js → EKYXKJTY.js} +1 -1
  8. package/dist/cdn/{MXVYKCXV.js → FBBHOMIZ.js} +1 -1
  9. package/dist/cdn/{PE3TLAMZ.js → J657GBXA.js} +1 -1
  10. package/dist/cdn/{IYWZ7KR5.js → JEAHVCFV.js} +1 -1
  11. package/dist/cdn/{P6VE72RL.js → KFJUTKF5.js} +1 -1
  12. package/dist/cdn/MF3MSWS4.js +107 -0
  13. package/dist/cdn/WDTUSWTQ.js +397 -0
  14. package/dist/cdn/index.js +1 -1
  15. package/dist/cdn/main.css +1 -1
  16. package/dist/chunks/utils.js +25 -13
  17. package/dist/chunks/utils2.js +11 -7
  18. package/dist/components/arcgis-assistant-knowledge-agent/customElement.d.ts +101 -0
  19. package/dist/components/arcgis-assistant-knowledge-agent/customElement.js +51 -0
  20. package/dist/components/arcgis-assistant-knowledge-agent/index.d.ts +1 -0
  21. package/dist/components/arcgis-assistant-knowledge-agent/index.js +1 -0
  22. package/dist/docs/api.json +1 -1
  23. package/dist/docs/docs.json +1 -1
  24. package/dist/docs/vscode.html-custom-data.json +1 -1
  25. package/dist/docs/web-types.json +1 -1
  26. package/dist/index.d.ts +4 -0
  27. package/dist/loader.js +1 -0
  28. package/dist/types/lumina.d.ts +5 -0
  29. package/dist/types/preact.d.ts +6 -0
  30. package/dist/types/react.d.ts +7 -0
  31. package/dist/types/stencil.d.ts +5 -0
  32. package/package.json +6 -6
  33. package/dist/cdn/B4DEC7PH.js +0 -2
  34. package/dist/cdn/KVH3PDVW.js +0 -2
  35. package/dist/cdn/XHPF5TWW.js +0 -396
  36. package/dist/cdn/ZKQG2EZQ.js +0 -106
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import c from"./7O3BAVC3.js";import b from"./ZKQG2EZQ.js";import"./XHPF5TWW.js";import{a as i,c as e}from"./B4DEC7PH.js";import"./KVH3PDVW.js";import"./YGW7TUNX.js";import{v as a,y as s}from"./DSEMD4M2.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{a:r}])=>{var t=class extends a{constructor(){super(...arguments),this.agent=r}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-navigation-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=i(this,"arcgis-assistant-navigation-agent"),e(this)}};s("arcgis-assistant-navigation-agent",t);return t},b,c)
2
+ import c from"./7BX4FWWP.js";import b from"./MF3MSWS4.js";import"./WDTUSWTQ.js";import{a as i,c as e}from"./EJWQC2SL.js";import"./47QQSSPB.js";import"./YGW7TUNX.js";import{v as a,y as s}from"./DSEMD4M2.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{a:r}])=>{var t=class extends a{constructor(){super(...arguments),this.agent=r}static{this.properties={referenceElement:1}}#t;getContext(){if(!this.#t)throw new Error("arcgis-assistant-navigation-agent requires a mapView");return{mapView:this.#t}}load(){this.#t=i(this,"arcgis-assistant-navigation-agent"),e(this)}};s("arcgis-assistant-navigation-agent",t);return t},b,c)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{b as r}from"./YGW7TUNX.js";function s(e,n){return n?typeof n=="string"?l(e,n)??null:n:r(e,"arcgis-map")??null}function c(e,n){return n?typeof n=="string"?l(e,n)??null:n:r(e,"arcgis-link-chart")??r(e,"arcgis-map")??null}function l(e,n){let i=n.includes("#")||n.includes(".")||n.includes("["),t=e.getRootNode();return(i?void 0:t.querySelector(`#${n}`))??t.querySelector(n)??void 0}export{s as a,c as b};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import b from"./7BX4FWWP.js";import a from"./MF3MSWS4.js";import"./WDTUSWTQ.js";import{c as o,d as n}from"./EJWQC2SL.js";import"./47QQSSPB.js";import"./YGW7TUNX.js";import{v as i,y as s}from"./DSEMD4M2.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{fetchKnowledgeGraph:h},,{e:a}])=>{var r=class extends i{constructor(){super(...arguments),this.agent=a}static{this.properties={referenceElement:1,serviceUrl:3,context:0}}#t;#r;#e;get serviceUrl(){return this.#r}set serviceUrl(e){this.#r=e}async getContext(){let e=this.context?{...this.context,knowledgeGraph:void 0,view:void 0}:{};if(this.#t)return{...e,view:this.#t};if(this.#e)try{let t=await this.#e;return{...e,knowledgeGraph:t}}catch(t){console.error("Failed to load knowledge graph via service URL:",t)}if(!this.context?.knowledgeGraph&&!this.context?.view)throw new Error("arcgis-assistant-knowledge-agent requires either a knowledgeGraph or view in context, and neither were provided");return this.context}willUpdate(e){e.has("serviceUrl")&&this.serviceUrl?this.#e=h(this.serviceUrl):this.#e=void 0}load(){this.#t=n(this)??void 0,o(this)}};s("arcgis-assistant-knowledge-agent",r);return r},"rest/knowledgeGraphService",a,b)