@arcgis/portal-components 6.0.0-next.4 → 6.0.0-next.41

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 (412) hide show
  1. package/dist/cdn/{SGDDFWCJ.js → 2GIECQ25.js} +1 -1
  2. package/dist/cdn/2N6K2UUQ.js +2 -0
  3. package/dist/cdn/36DGXQLJ.js +2 -0
  4. package/dist/cdn/{2TDHJSMP.js → 3HXQ5Z4C.js} +1 -1
  5. package/dist/cdn/3HZI6MKD.js +2 -0
  6. package/dist/cdn/3OL7A2UC.js +2 -0
  7. package/dist/cdn/3Q7UJKKN.js +2 -0
  8. package/dist/cdn/3SG67WP5.js +2 -0
  9. package/dist/cdn/3ZVDEJPF.js +2 -0
  10. package/dist/cdn/42AN66SK.js +2 -0
  11. package/dist/cdn/46HNNQAD.js +2 -0
  12. package/dist/cdn/4CBRO7JP.js +2 -0
  13. package/dist/cdn/4E354KKM.js +2 -0
  14. package/dist/cdn/4QYVBXZT.js +2 -0
  15. package/dist/cdn/5MLBK66O.js +2 -0
  16. package/dist/cdn/5ZHNRQOW.js +2 -0
  17. package/dist/cdn/62TL6V4N.js +2 -0
  18. package/dist/cdn/67FEZD25.js +2 -0
  19. package/dist/cdn/{BKD7JSV2.js → 6CUXEL27.js} +1 -1
  20. package/dist/cdn/6GPAZV4Z.js +2 -0
  21. package/dist/cdn/6QI7DAS2.js +2 -0
  22. package/dist/cdn/6XDKSVRF.js +2 -0
  23. package/dist/cdn/6ZJNZZPC.js +2 -0
  24. package/dist/cdn/6ZYYG64M.js +2 -0
  25. package/dist/cdn/7AG3E7K6.js +2 -0
  26. package/dist/cdn/7JDXAVUG.js +2 -0
  27. package/dist/cdn/7JKFWVCY.js +2 -0
  28. package/dist/cdn/7VPB6Q55.js +63 -0
  29. package/dist/cdn/AJEQETRW.js +2 -0
  30. package/dist/cdn/{JE2376SE.js → AP7UWD4P.js} +1 -1
  31. package/dist/cdn/{OR6T5SB3.js → BNWJUQDF.js} +1 -1
  32. package/dist/cdn/BUYOYUA2.js +2 -0
  33. package/dist/cdn/BX7Q3V2Y.js +43 -0
  34. package/dist/cdn/BXPNB7VJ.js +2 -0
  35. package/dist/cdn/BZEKNJUA.js +2 -0
  36. package/dist/cdn/C6RUWLEJ.js +2 -0
  37. package/dist/cdn/CERDMRFQ.js +2 -0
  38. package/dist/cdn/DFECUYNW.js +2 -0
  39. package/dist/cdn/DGWOMELT.js +2 -0
  40. package/dist/cdn/DIWTHL4N.js +2 -0
  41. package/dist/cdn/DKUOQCHO.js +2 -0
  42. package/dist/cdn/{ZKZDKJ6D.js → DQL2JT6K.js} +1 -1
  43. package/dist/cdn/{2YZWRFCI.js → DTGPLVZF.js} +1 -1
  44. package/dist/cdn/DU2R3VC4.js +2 -0
  45. package/dist/cdn/E5HCHRAI.js +2 -0
  46. package/dist/cdn/EBL7YSRM.js +2 -0
  47. package/dist/cdn/EDGE3T36.js +2 -0
  48. package/dist/cdn/EETYTFHH.js +2 -0
  49. package/dist/cdn/{YZTBAUIO.js → EFMYI4L2.js} +1 -1
  50. package/dist/cdn/FINVGL3V.js +2 -0
  51. package/dist/cdn/FN2QMDEW.js +2 -0
  52. package/dist/cdn/FXXFSYNB.js +2 -0
  53. package/dist/cdn/GA4OWLSO.js +2 -0
  54. package/dist/cdn/GFUKRB6D.js +2 -0
  55. package/dist/cdn/GHDMQJG4.js +2 -0
  56. package/dist/cdn/{FRE56NBG.js → GY4SY4XC.js} +1 -1
  57. package/dist/cdn/H4TPPTVB.js +2 -0
  58. package/dist/cdn/HOIZXTOD.js +2 -0
  59. package/dist/cdn/{VDXESPJK.js → I4TKQB4A.js} +1 -1
  60. package/dist/cdn/{TWCJJCPC.js → IAMPUXPT.js} +1 -1
  61. package/dist/cdn/IQPJOVDL.js +2 -0
  62. package/dist/cdn/ITRJGXFV.js +93 -0
  63. package/dist/cdn/ITWLFQI4.js +2 -0
  64. package/dist/cdn/IWPJEUHY.js +2 -0
  65. package/dist/cdn/{7ZWYUHGK.js → IYICIRGI.js} +1 -1
  66. package/dist/cdn/JDW7ECBF.js +2 -0
  67. package/dist/cdn/JFGXTJY4.js +2 -0
  68. package/dist/cdn/JGTBDGJ7.js +2 -0
  69. package/dist/cdn/JLT5GCLY.js +2 -0
  70. package/dist/cdn/JTA223NH.js +2 -0
  71. package/dist/cdn/KA2MXQTR.js +2 -0
  72. package/dist/cdn/KAK6CNI7.js +2 -0
  73. package/dist/cdn/{CFRJU6VA.js → KRO5XRZ7.js} +1 -1
  74. package/dist/cdn/KRORL7QC.js +2 -0
  75. package/dist/cdn/KWL2D56D.js +3 -0
  76. package/dist/cdn/{QTAYXO5T.js → KXVXQYIB.js} +1 -1
  77. package/dist/cdn/L3YOPSRB.js +135 -0
  78. package/dist/cdn/{IN4JPZTY.js → LGKI24ZT.js} +1 -1
  79. package/dist/cdn/{JIJO4CAS.js → LVWAYUYZ.js} +1 -1
  80. package/dist/cdn/{Z6R3C4AK.js → MB32XRI5.js} +1 -1
  81. package/dist/cdn/ME6XACY6.js +2 -0
  82. package/dist/cdn/MSL36HAR.js +2 -0
  83. package/dist/cdn/MSSJRDR7.js +2 -0
  84. package/dist/cdn/N47MW5HI.js +9 -0
  85. package/dist/cdn/N5AG34NK.js +2 -0
  86. package/dist/cdn/N7XYFVOI.js +2 -0
  87. package/dist/cdn/NHVPNSNH.js +2 -0
  88. package/dist/cdn/{5HZNBMW6.js → NU4K2AV3.js} +1 -1
  89. package/dist/cdn/O2GPTWGF.js +3 -0
  90. package/dist/cdn/ODYYTLLQ.js +2 -0
  91. package/dist/cdn/{TRMFL7PT.js → ONRTCGLU.js} +1 -1
  92. package/dist/cdn/{RHCRPJWS.js → OPMM7QH5.js} +1 -1
  93. package/dist/cdn/OQBLBDR5.js +2 -0
  94. package/dist/cdn/OWODUQF2.js +2 -0
  95. package/dist/cdn/OXF2WDSW.js +2 -0
  96. package/dist/cdn/PM33STYQ.js +2 -0
  97. package/dist/cdn/PUHZVFK7.js +2 -0
  98. package/dist/cdn/QAXFE5DD.js +2 -0
  99. package/dist/cdn/{JPUUMGX5.js → QKRLO5CJ.js} +1 -1
  100. package/dist/cdn/QXPDVHB5.js +2 -0
  101. package/dist/cdn/R26RBXQW.js +2 -0
  102. package/dist/cdn/{NWVLGU2C.js → R45EMSQJ.js} +1 -1
  103. package/dist/cdn/R6KJVAX3.js +99 -0
  104. package/dist/cdn/RA2NMLMP.js +2 -0
  105. package/dist/cdn/RDRSZQAR.js +2 -0
  106. package/dist/cdn/RR56BOTV.js +2 -0
  107. package/dist/cdn/RT26JZP5.js +2 -0
  108. package/dist/cdn/RX64JXHI.js +170 -0
  109. package/dist/cdn/S4N5QMSN.js +2 -0
  110. package/dist/cdn/SCLYGIHM.js +2 -0
  111. package/dist/cdn/SGV47YVU.js +2 -0
  112. package/dist/cdn/SRWFOV5W.js +2 -0
  113. package/dist/cdn/{3NSHGKZA.js → TBSNDRRE.js} +1 -1
  114. package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
  115. package/dist/cdn/TQX5BOZG.js +2 -0
  116. package/dist/cdn/U2J4ST45.js +2 -0
  117. package/dist/cdn/U3V7PPC2.js +2 -0
  118. package/dist/cdn/{TXC7YBGL.js → UBMZBXT7.js} +1 -1
  119. package/dist/cdn/UCHX4CBR.js +2 -0
  120. package/dist/cdn/UCTXRTQZ.js +2 -0
  121. package/dist/cdn/ULGME5RT.js +2 -0
  122. package/dist/cdn/UWB23CG4.js +2 -0
  123. package/dist/cdn/VABNHOVG.js +2 -0
  124. package/dist/cdn/{URQML7KV.js → VQRMXBPQ.js} +1 -1
  125. package/dist/cdn/VWOBCSD6.js +4 -0
  126. package/dist/cdn/W6U2HMEK.js +2 -0
  127. package/dist/cdn/{MKSFNVXL.js → WNXDXB3M.js} +1 -1
  128. package/dist/cdn/{JN23JH3T.js → WOSWA2VI.js} +1 -1
  129. package/dist/cdn/WTKLB3R6.js +2 -0
  130. package/dist/cdn/{GAF4YT5N.js → XSEFGIVV.js} +1 -1
  131. package/dist/cdn/XYHIVGUK.js +2 -0
  132. package/dist/cdn/{M5PPX4ZX.js → Y4JOEFBJ.js} +1 -1
  133. package/dist/cdn/Y7ZCEONL.js +73 -0
  134. package/dist/cdn/YCMZ3RVZ.js +2 -0
  135. package/dist/cdn/YELHAJB3.js +2 -0
  136. package/dist/cdn/YH2OFXPU.js +2 -0
  137. package/dist/cdn/{I6IRHXWR.js → ZECUXVTO.js} +1 -1
  138. package/dist/cdn/{K2XSYDAP.js → ZNNEU5QW.js} +1 -1
  139. package/dist/cdn/{74T6IXSN.js → ZOOEWYFB.js} +1 -1
  140. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
  141. package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
  142. package/dist/cdn/assets/portal-item-card/t9n/messages.en.json +1 -1
  143. package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
  144. package/dist/cdn/assets/portal-item-preview/t9n/messages.en.json +1 -0
  145. package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
  146. package/dist/cdn/assets/portal-item-status-card/t9n/messages.en.json +1 -0
  147. package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
  148. package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
  149. package/dist/cdn/assets/portal-review-layer-sharing/t9n/messages.en.json +1 -0
  150. package/dist/cdn/index.js +1 -1
  151. package/dist/cdn/main.css +1 -1
  152. package/dist/chunks/FieldIcons.js +24 -0
  153. package/dist/chunks/constants.js +7 -0
  154. package/dist/chunks/contextUsage.js +208 -0
  155. package/dist/chunks/createPortalTool.js +18 -0
  156. package/dist/chunks/fieldAddDelete.js +6 -6
  157. package/dist/chunks/functionalities.js +14 -9
  158. package/dist/chunks/groups.js +8 -61
  159. package/dist/chunks/groups2.js +23 -8
  160. package/dist/chunks/help.js +22 -0
  161. package/dist/chunks/info.js +2 -2
  162. package/dist/chunks/item.js +135 -33
  163. package/dist/chunks/item2.js +96 -122
  164. package/dist/chunks/itemThumbnail.js +21 -21
  165. package/dist/chunks/items.js +11 -11
  166. package/dist/chunks/layers.js +196 -0
  167. package/dist/chunks/loadClassificationData.js +26 -27
  168. package/dist/chunks/portal-browser.js +49 -46
  169. package/dist/chunks/portal-delete-items-review.js +1 -1
  170. package/dist/chunks/portal-item-badge.js +1 -1
  171. package/dist/chunks/portal-item-preview-sublayer.js +214 -0
  172. package/dist/chunks/portal-item-status-card.js +81 -0
  173. package/dist/chunks/portal-related-items-list-item.js +1 -1
  174. package/dist/chunks/portal.js +14 -10
  175. package/dist/chunks/portal2.js +22 -22
  176. package/dist/chunks/portalEntitySelection.js +61 -0
  177. package/dist/chunks/previewSessionController.js +33 -0
  178. package/dist/chunks/query.js +14 -14
  179. package/dist/chunks/request.js +49 -41
  180. package/dist/chunks/requests.js +7 -7
  181. package/dist/chunks/selectedMentions.js +25 -0
  182. package/dist/chunks/services.js +5 -5
  183. package/dist/chunks/string.js +19 -11
  184. package/dist/chunks/ui.js +1 -0
  185. package/dist/chunks/url.js +2 -2
  186. package/dist/chunks/user.js +67 -53
  187. package/dist/chunks/user2.js +10 -10
  188. package/dist/chunks/utils.js +35 -22
  189. package/dist/chunks/utils3.js +88 -657
  190. package/dist/chunks/utils4.js +663 -0
  191. package/dist/components/arcgis-portal-account-switcher/customElement.js +57 -54
  192. package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +27 -0
  193. package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +185 -137
  194. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +38 -15
  195. package/dist/components/arcgis-portal-ai-assistant/customElement.js +816 -2642
  196. package/dist/components/arcgis-portal-ai-assistant/index.js +5 -0
  197. package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
  198. package/dist/components/arcgis-portal-ai-assistant/tools/groups.d.ts +28 -0
  199. package/dist/components/arcgis-portal-ai-assistant/tools/users.d.ts +28 -0
  200. package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +41 -3
  201. package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
  202. package/dist/components/arcgis-portal-ai-assistant-diagnostics/contextUsage.d.ts +46 -0
  203. package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.d.ts +26 -0
  204. package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.js +46 -0
  205. package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.d.ts +1 -0
  206. package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.js +10 -0
  207. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -1
  208. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +49 -37
  209. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -4
  210. package/dist/components/arcgis-portal-browser/customElement.d.ts +3 -0
  211. package/dist/components/arcgis-portal-browser/customElement.js +3 -2
  212. package/dist/components/arcgis-portal-browser/index.js +1 -0
  213. package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
  214. package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
  215. package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
  216. package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
  217. package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
  218. package/dist/components/arcgis-portal-delete-items/customElement.js +437 -333
  219. package/dist/components/arcgis-portal-delete-items/index.js +1 -2
  220. package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
  221. package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +51 -5
  222. package/dist/components/arcgis-portal-entity-picker/customElement.js +204 -119
  223. package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
  224. package/dist/components/arcgis-portal-field-delete/customElement.js +87 -101
  225. package/dist/components/arcgis-portal-field-delete/index.js +1 -1
  226. package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
  227. package/dist/components/arcgis-portal-group-browser/customElement.js +68 -100
  228. package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
  229. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +49 -40
  230. package/dist/components/arcgis-portal-group-browser-preview/index.js +1 -0
  231. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -4
  232. package/dist/components/arcgis-portal-group-card/customElement.js +16 -16
  233. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
  234. package/dist/components/arcgis-portal-item-badges/customElement.js +4 -4
  235. package/dist/components/arcgis-portal-item-card/customElement.d.ts +37 -10
  236. package/dist/components/arcgis-portal-item-card/customElement.js +125 -86
  237. package/dist/components/arcgis-portal-item-card/index.js +4 -1
  238. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
  239. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +181 -0
  240. package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
  241. package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
  242. package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
  243. package/dist/components/arcgis-portal-item-favorite/customElement.js +42 -29
  244. package/dist/components/arcgis-portal-item-preview/customElement.d.ts +263 -0
  245. package/dist/components/arcgis-portal-item-preview/customElement.js +137 -0
  246. package/dist/components/arcgis-portal-item-preview/index.d.ts +1 -0
  247. package/dist/components/arcgis-portal-item-preview/index.js +20 -0
  248. package/dist/components/arcgis-portal-item-preview/types.d.ts +14 -0
  249. package/dist/components/arcgis-portal-item-preview-copy/customElement.d.ts +215 -0
  250. package/dist/components/arcgis-portal-item-preview-copy/customElement.js +46 -0
  251. package/dist/components/arcgis-portal-item-preview-copy/index.d.ts +1 -0
  252. package/dist/components/arcgis-portal-item-preview-copy/index.js +5 -0
  253. package/dist/components/arcgis-portal-item-preview-field/customElement.d.ts +216 -0
  254. package/dist/components/arcgis-portal-item-preview-field/customElement.js +34 -0
  255. package/dist/components/arcgis-portal-item-preview-field/index.d.ts +1 -0
  256. package/dist/components/arcgis-portal-item-preview-field/index.js +6 -0
  257. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.d.ts +216 -0
  258. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.js +15 -0
  259. package/dist/components/arcgis-portal-item-preview-sublayer/index.d.ts +1 -0
  260. package/dist/components/arcgis-portal-item-preview-sublayer/index.js +11 -0
  261. package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
  262. package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
  263. package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
  264. package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
  265. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
  266. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
  267. package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
  268. package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
  269. package/dist/components/arcgis-portal-item-status-card/customElement.d.ts +82 -0
  270. package/dist/components/arcgis-portal-item-status-card/customElement.js +12 -0
  271. package/dist/components/arcgis-portal-item-status-card/index.d.ts +1 -0
  272. package/dist/components/arcgis-portal-item-status-card/index.js +4 -0
  273. package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
  274. package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
  275. package/dist/components/arcgis-portal-item-type/customElement.d.ts +16 -14
  276. package/dist/components/arcgis-portal-item-type/customElement.js +25 -28
  277. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
  278. package/dist/components/arcgis-portal-navigation/customElement.d.ts +10 -4
  279. package/dist/components/arcgis-portal-navigation/customElement.js +349 -351
  280. package/dist/components/arcgis-portal-navigation/index.js +4 -5
  281. package/dist/components/arcgis-portal-navigation/types.d.ts +3 -0
  282. package/dist/components/arcgis-portal-preview-panel/customElement.d.ts +40 -0
  283. package/dist/components/arcgis-portal-preview-panel/customElement.js +40 -0
  284. package/dist/components/arcgis-portal-preview-panel/index.d.ts +1 -0
  285. package/dist/components/arcgis-portal-preview-panel/index.js +1 -0
  286. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
  287. package/dist/components/arcgis-portal-review-layer-sharing/customElement.d.ts +139 -0
  288. package/dist/components/arcgis-portal-review-layer-sharing/customElement.js +593 -0
  289. package/dist/components/arcgis-portal-review-layer-sharing/index.d.ts +1 -0
  290. package/dist/components/arcgis-portal-review-layer-sharing/index.js +10 -0
  291. package/dist/components/arcgis-portal-review-layer-sharing/types.d.ts +27 -0
  292. package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
  293. package/dist/components/arcgis-portal-review-related-items/customElement.js +46 -18
  294. package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
  295. package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
  296. package/dist/components/arcgis-portal-user-avatar/customElement.d.ts +2 -3
  297. package/dist/components/arcgis-portal-user-avatar/customElement.js +15 -16
  298. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +4 -7
  299. package/dist/components/arcgis-portal-user-popup/customElement.js +128 -111
  300. package/dist/components/portal-group-browser-filters/customElement.js +15 -15
  301. package/dist/components/portal-related-items-list-item/customElement.js +16 -14
  302. package/dist/components/portal-related-items-list-item/index.js +1 -1
  303. package/dist/docs/api.json +1 -1
  304. package/dist/docs/docs.json +1 -1
  305. package/dist/docs/vscode.css-custom-data.json +1 -1
  306. package/dist/docs/vscode.html-custom-data.json +1 -1
  307. package/dist/docs/web-types.json +1 -1
  308. package/dist/index.d.ts +87 -0
  309. package/dist/index.js +305 -6
  310. package/dist/loader.js +22 -11
  311. package/dist/services/group.d.ts +17 -0
  312. package/dist/services/groups.d.ts +9 -0
  313. package/dist/services/item.d.ts +9 -0
  314. package/dist/types/item.d.ts +23 -11
  315. package/dist/types/layer.d.ts +27 -0
  316. package/dist/types/lumina.d.ts +82 -12
  317. package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
  318. package/dist/types/portalEntityPicker.d.ts +3 -0
  319. package/dist/types/preact.d.ts +93 -12
  320. package/dist/types/react.d.ts +104 -12
  321. package/dist/types/services.d.ts +28 -1
  322. package/dist/types/stencil.d.ts +82 -12
  323. package/dist/types/user.d.ts +14 -10
  324. package/dist/utils/generateEmbeddings.d.ts +7 -0
  325. package/dist/utils/semanticSearch.d.ts +60 -0
  326. package/dist/utils/types.d.ts +10 -0
  327. package/package.json +14 -13
  328. package/dist/cdn/23NXHNPU.js +0 -2
  329. package/dist/cdn/24QSQLRY.js +0 -2
  330. package/dist/cdn/2CN754CY.js +0 -2
  331. package/dist/cdn/2FQKDFEE.js +0 -2
  332. package/dist/cdn/2MPQ5IWJ.js +0 -2
  333. package/dist/cdn/3CQKCUM5.js +0 -2
  334. package/dist/cdn/3EYB5GQX.js +0 -2
  335. package/dist/cdn/3FSPL34I.js +0 -170
  336. package/dist/cdn/3LEQ37YT.js +0 -68
  337. package/dist/cdn/4KTRAA2J.js +0 -2
  338. package/dist/cdn/4MUB6TL6.js +0 -2
  339. package/dist/cdn/4PRXQFCV.js +0 -2
  340. package/dist/cdn/4QFTKB6T.js +0 -2
  341. package/dist/cdn/4TSXFX3M.js +0 -2
  342. package/dist/cdn/5C5GHX4D.js +0 -2
  343. package/dist/cdn/7LMZHJZG.js +0 -2
  344. package/dist/cdn/A2SQ4EMZ.js +0 -2
  345. package/dist/cdn/AICPYLWE.js +0 -4
  346. package/dist/cdn/AXOBMX3S.js +0 -2
  347. package/dist/cdn/AZOJHVAO.js +0 -2
  348. package/dist/cdn/BYHX3UWV.js +0 -2
  349. package/dist/cdn/CD5UWSCP.js +0 -2
  350. package/dist/cdn/D2YQWKME.js +0 -135
  351. package/dist/cdn/DDBXEXOV.js +0 -2
  352. package/dist/cdn/DHMNNIXZ.js +0 -2
  353. package/dist/cdn/DLI4XKJ3.js +0 -2
  354. package/dist/cdn/DYO5P3F2.js +0 -2
  355. package/dist/cdn/E66BDC6N.js +0 -2
  356. package/dist/cdn/EEAVX4PP.js +0 -2
  357. package/dist/cdn/EMJQI4MA.js +0 -2
  358. package/dist/cdn/EY5S6ICQ.js +0 -2
  359. package/dist/cdn/FIBQAMJ3.js +0 -2
  360. package/dist/cdn/FIQZPIIK.js +0 -2
  361. package/dist/cdn/FNLBJ4ZQ.js +0 -2
  362. package/dist/cdn/GGDOGNH4.js +0 -150
  363. package/dist/cdn/GSOBDGLK.js +0 -2
  364. package/dist/cdn/GXM3XY3J.js +0 -2
  365. package/dist/cdn/HCNTXLUT.js +0 -2
  366. package/dist/cdn/I273CANO.js +0 -2
  367. package/dist/cdn/I6NVKNZJ.js +0 -2
  368. package/dist/cdn/J5FKIZAM.js +0 -2
  369. package/dist/cdn/J5NPDIZM.js +0 -2
  370. package/dist/cdn/JOUR2FB2.js +0 -3
  371. package/dist/cdn/JWBUJT43.js +0 -2
  372. package/dist/cdn/K75JTQPW.js +0 -2
  373. package/dist/cdn/LISDTBEX.js +0 -2
  374. package/dist/cdn/LYLQCBVX.js +0 -2
  375. package/dist/cdn/MQK63FV7.js +0 -2
  376. package/dist/cdn/N4VOTJ25.js +0 -2
  377. package/dist/cdn/N5QLV56W.js +0 -2
  378. package/dist/cdn/OD5WXP7J.js +0 -2
  379. package/dist/cdn/OXPXXIWL.js +0 -2
  380. package/dist/cdn/PKA745KL.js +0 -2
  381. package/dist/cdn/PMRFXB4F.js +0 -2
  382. package/dist/cdn/PNIFJ5DQ.js +0 -2
  383. package/dist/cdn/PZDI5ZDC.js +0 -2
  384. package/dist/cdn/QROXYP6V.js +0 -2
  385. package/dist/cdn/QUOLQGKP.js +0 -2
  386. package/dist/cdn/QWHGLE3O.js +0 -2
  387. package/dist/cdn/R3PK7XOP.js +0 -2
  388. package/dist/cdn/REM3KCX6.js +0 -2
  389. package/dist/cdn/RNWICLRH.js +0 -2
  390. package/dist/cdn/RQYNPDN3.js +0 -2
  391. package/dist/cdn/S6F7U36E.js +0 -400
  392. package/dist/cdn/SMX2LEJB.js +0 -2
  393. package/dist/cdn/SVROAT3Z.js +0 -2
  394. package/dist/cdn/TBZXKKGP.js +0 -2
  395. package/dist/cdn/TNUCSWBN.js +0 -2
  396. package/dist/cdn/TOICLGFK.js +0 -2
  397. package/dist/cdn/TOTWYGB3.js +0 -2
  398. package/dist/cdn/TUUUK3VX.js +0 -2
  399. package/dist/cdn/U3KMGSVH.js +0 -2
  400. package/dist/cdn/UEP2NYJK.js +0 -2
  401. package/dist/cdn/UZP4YMTE.js +0 -2
  402. package/dist/cdn/VNU4QX7M.js +0 -41
  403. package/dist/cdn/XYMBRPC7.js +0 -2
  404. package/dist/cdn/YB3DR4VO.js +0 -2
  405. package/dist/cdn/YYTEJVBL.js +0 -2
  406. package/dist/cdn/Z3HGPBOR.js +0 -2
  407. package/dist/cdn/ZDDN7UKS.js +0 -2
  408. package/dist/cdn/ZXNF77OB.js +0 -2
  409. package/dist/chunks/functional.js +0 -9
  410. package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
  411. /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
  412. /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,6 +1,13 @@
1
1
  export { canAddField, canDeleteField } from "./utils/fieldAddDelete.js";
2
+ export { generateEmbeddings } from "./utils/generateEmbeddings.js";
3
+ export { searchCatalog } from "./utils/semanticSearch.js";
4
+ export { type SemanticSearchEmbedding, type SemanticSearchItem, type SemanticSearchMatch, type SemanticSearchOptions, type SemanticSearchResult } from "./utils/semanticSearch.js";
2
5
  export { type FieldDeleteOptions, type UserItemInfo } from "./utils/types.js";
3
6
  export { type PortalAssistantTools } from "./components/arcgis-portal-ai-assistant/types/assistantTools.js";
7
+ export { type PortalAssistantEntityToolPresets } from "./components/arcgis-portal-ai-assistant/types/portalEntityTools.js";
8
+ export { createGetItemTool } from "./components/arcgis-portal-ai-assistant/tools/getItemTool.js";
9
+ export { createGetUserTool, createGetUserGroupsTool } from "./components/arcgis-portal-ai-assistant/tools/users.js";
10
+ export { createGetGroupTool, createGetGroupMembershipTool } from "./components/arcgis-portal-ai-assistant/tools/groups.js";
4
11
 
5
12
  /**
6
13
  * Get a resolved path from where an asset can be loaded.
@@ -34,6 +41,7 @@ import type { ArcgisPortalAccountSwitcherList } from "./components/arcgis-portal
34
41
  import type { ArcgisPortalAccountSwitcherSignout } from "./components/arcgis-portal-account-switcher-signout/customElement.js";
35
42
  import type { ArcgisPortalAddGpsMetadata } from "./components/arcgis-portal-add-gps-metadata/customElement.js";
36
43
  import type { ArcgisPortalAiAssistant } from "./components/arcgis-portal-ai-assistant/customElement.js";
44
+ import type { ArcgisPortalAiAssistantDiagnostics } from "./components/arcgis-portal-ai-assistant-diagnostics/customElement.js";
37
45
  import type { ArcgisPortalAiAssistantInterrupt } from "./components/arcgis-portal-ai-assistant-interrupt/customElement.js";
38
46
  import type { ArcgisPortalBrowser } from "./components/arcgis-portal-browser/customElement.js";
39
47
  import type { ArcgisPortalBrowserActions } from "./components/arcgis-portal-browser-actions/customElement.js";
@@ -65,13 +73,23 @@ import type { ArcgisPortalItemActions } from "./components/arcgis-portal-item-ac
65
73
  import type { ArcgisPortalItemBadges } from "./components/arcgis-portal-item-badges/customElement.js";
66
74
  import type { ArcgisPortalItemBadge } from "./components/arcgis-portal-item-badge/customElement.js";
67
75
  import type { ArcgisPortalItemCard } from "./components/arcgis-portal-item-card/customElement.js";
76
+ import type { ArcgisPortalItemCardSublayerSelect } from "./components/arcgis-portal-item-card-sublayer-select/customElement.js";
68
77
  import type { ArcgisPortalItemFavorite } from "./components/arcgis-portal-item-favorite/customElement.js";
69
78
  import type { ArcgisPortalItemPicker } from "./components/arcgis-portal-item-picker/customElement.js";
79
+ import type { ArcgisPortalItemPreview } from "./components/arcgis-portal-item-preview/customElement.js";
80
+ import type { ArcgisPortalItemPreviewCopy } from "./components/arcgis-portal-item-preview-copy/customElement.js";
81
+ import type { ArcgisPortalItemPreviewField } from "./components/arcgis-portal-item-preview-field/customElement.js";
82
+ import type { ArcgisPortalItemPreviewSublayer } from "./components/arcgis-portal-item-preview-sublayer/customElement.js";
83
+ import type { ArcgisPortalItemShareSummary } from "./components/arcgis-portal-item-share-summary/customElement.js";
84
+ import type { ArcgisPortalItemShareSummaryEditable } from "./components/arcgis-portal-item-share-summary-editable/customElement.js";
70
85
  import type { ArcgisPortalItemThumbnail } from "./components/arcgis-portal-item-thumbnail/customElement.js";
71
86
  import type { ArcgisPortalItemType } from "./components/arcgis-portal-item-type/customElement.js";
72
87
  import type { ArcgisPortalMentionableTextArea } from "./components/arcgis-portal-mentionable-text-area/customElement.js";
73
88
  import type { ArcGISPortalNavigation } from "./components/arcgis-portal-navigation/customElement.js";
89
+ import type { ArcgisPortalPreviewPanel } from "./components/arcgis-portal-preview-panel/customElement.js";
74
90
  import type { ArcgisPortalReplacementItemRedirect } from "./components/arcgis-portal-replacement-item-redirect/customElement.js";
91
+ import type { ArcgisPortalReviewLayerSharing } from "./components/arcgis-portal-review-layer-sharing/customElement.js";
92
+ import type { ArcgisPortalItemStatusCard } from "./components/arcgis-portal-item-status-card/customElement.js";
75
93
  import type { ArcgisPortalReviewRelatedItems } from "./components/arcgis-portal-review-related-items/customElement.js";
76
94
  import type { ArcgisPortalSublayerType } from "./components/arcgis-portal-sublayer-type/customElement.js";
77
95
  import type { ArcgisPortalUserAvatar } from "./components/arcgis-portal-user-avatar/customElement.js";
@@ -221,6 +239,11 @@ export interface ArcgisPortalItemCardCustomEvent<T> extends CustomEvent<T> {
221
239
  target: ArcgisPortalItemCard;
222
240
  currentTarget: ArcgisPortalItemCard;
223
241
  }
242
+ export interface ArcgisPortalItemCardSublayerSelectCustomEvent<T> extends CustomEvent<T> {
243
+ detail: T;
244
+ target: ArcgisPortalItemCardSublayerSelect;
245
+ currentTarget: ArcgisPortalItemCardSublayerSelect;
246
+ }
224
247
  export interface ArcgisPortalItemFavoriteCustomEvent<T> extends CustomEvent<T> {
225
248
  detail: T;
226
249
  target: ArcgisPortalItemFavorite;
@@ -231,6 +254,16 @@ export interface ArcgisPortalItemPickerCustomEvent<T> extends CustomEvent<T> {
231
254
  target: ArcgisPortalItemPicker;
232
255
  currentTarget: ArcgisPortalItemPicker;
233
256
  }
257
+ export interface ArcgisPortalItemPreviewCustomEvent<T> extends CustomEvent<T> {
258
+ detail: T;
259
+ target: ArcgisPortalItemPreview;
260
+ currentTarget: ArcgisPortalItemPreview;
261
+ }
262
+ export interface ArcgisPortalItemShareSummaryEditableCustomEvent<T> extends CustomEvent<T> {
263
+ detail: T;
264
+ target: ArcgisPortalItemShareSummaryEditable;
265
+ currentTarget: ArcgisPortalItemShareSummaryEditable;
266
+ }
234
267
  export interface ArcgisPortalItemThumbnailCustomEvent<T> extends CustomEvent<T> {
235
268
  detail: T;
236
269
  target: ArcgisPortalItemThumbnail;
@@ -246,11 +279,26 @@ export interface ArcgisPortalNavigationCustomEvent<T> extends CustomEvent<T> {
246
279
  target: ArcGISPortalNavigation;
247
280
  currentTarget: ArcGISPortalNavigation;
248
281
  }
282
+ export interface ArcgisPortalPreviewPanelCustomEvent<T> extends CustomEvent<T> {
283
+ detail: T;
284
+ target: ArcgisPortalPreviewPanel;
285
+ currentTarget: ArcgisPortalPreviewPanel;
286
+ }
249
287
  export interface ArcgisPortalReplacementItemRedirectCustomEvent<T> extends CustomEvent<T> {
250
288
  detail: T;
251
289
  target: ArcgisPortalReplacementItemRedirect;
252
290
  currentTarget: ArcgisPortalReplacementItemRedirect;
253
291
  }
292
+ export interface ArcgisPortalReviewLayerSharingCustomEvent<T> extends CustomEvent<T> {
293
+ detail: T;
294
+ target: ArcgisPortalReviewLayerSharing;
295
+ currentTarget: ArcgisPortalReviewLayerSharing;
296
+ }
297
+ export interface ArcgisPortalItemStatusCardCustomEvent<T> extends CustomEvent<T> {
298
+ detail: T;
299
+ target: ArcgisPortalItemStatusCard;
300
+ currentTarget: ArcgisPortalItemStatusCard;
301
+ }
254
302
  export interface ArcgisPortalUserPickerCustomEvent<T> extends CustomEvent<T> {
255
303
  detail: T;
256
304
  target: ArcgisPortalUserPicker;
@@ -276,6 +324,7 @@ declare global {
276
324
  "arcgis-portal-account-switcher-signout": ArcgisPortalAccountSwitcherSignout;
277
325
  "arcgis-portal-add-gps-metadata": ArcgisPortalAddGpsMetadata;
278
326
  "arcgis-portal-ai-assistant": ArcgisPortalAiAssistant;
327
+ "arcgis-portal-ai-assistant-diagnostics": ArcgisPortalAiAssistantDiagnostics;
279
328
  "arcgis-portal-ai-assistant-interrupt": ArcgisPortalAiAssistantInterrupt;
280
329
  "arcgis-portal-browser": ArcgisPortalBrowser;
281
330
  "arcgis-portal-browser-actions": ArcgisPortalBrowserActions;
@@ -307,13 +356,23 @@ declare global {
307
356
  "arcgis-portal-item-badges": ArcgisPortalItemBadges;
308
357
  "arcgis-portal-item-badge": ArcgisPortalItemBadge;
309
358
  "arcgis-portal-item-card": ArcgisPortalItemCard;
359
+ "arcgis-portal-item-card-sublayer-select": ArcgisPortalItemCardSublayerSelect;
310
360
  "arcgis-portal-item-favorite": ArcgisPortalItemFavorite;
311
361
  "arcgis-portal-item-picker": ArcgisPortalItemPicker;
362
+ "arcgis-portal-item-preview": ArcgisPortalItemPreview;
363
+ "arcgis-portal-item-preview-copy": ArcgisPortalItemPreviewCopy;
364
+ "arcgis-portal-item-preview-field": ArcgisPortalItemPreviewField;
365
+ "arcgis-portal-item-preview-sublayer": ArcgisPortalItemPreviewSublayer;
366
+ "arcgis-portal-item-share-summary": ArcgisPortalItemShareSummary;
367
+ "arcgis-portal-item-share-summary-editable": ArcgisPortalItemShareSummaryEditable;
312
368
  "arcgis-portal-item-thumbnail": ArcgisPortalItemThumbnail;
313
369
  "arcgis-portal-item-type": ArcgisPortalItemType;
314
370
  "arcgis-portal-mentionable-text-area": ArcgisPortalMentionableTextArea;
315
371
  "arcgis-portal-navigation": ArcGISPortalNavigation;
372
+ "arcgis-portal-preview-panel": ArcgisPortalPreviewPanel;
316
373
  "arcgis-portal-replacement-item-redirect": ArcgisPortalReplacementItemRedirect;
374
+ "arcgis-portal-review-layer-sharing": ArcgisPortalReviewLayerSharing;
375
+ "arcgis-portal-item-status-card": ArcgisPortalItemStatusCard;
317
376
  "arcgis-portal-review-related-items": ArcgisPortalReviewRelatedItems;
318
377
  "arcgis-portal-sublayer-type": ArcgisPortalSublayerType;
319
378
  "arcgis-portal-user-avatar": ArcgisPortalUserAvatar;
@@ -341,6 +400,8 @@ declare global {
341
400
  type HTMLArcgisPortalAiAssistantElementEventMap = ArcgisPortalAiAssistant["@eventTypes"];
342
401
  type HTMLArcgisPortalAiAssistantElement = ArcgisPortalAiAssistant;
343
402
 
403
+ type HTMLArcgisPortalAiAssistantDiagnosticsElement = ArcgisPortalAiAssistantDiagnostics;
404
+
344
405
  type HTMLArcgisPortalAiAssistantInterruptElementEventMap = ArcgisPortalAiAssistantInterrupt["@eventTypes"];
345
406
  type HTMLArcgisPortalAiAssistantInterruptElement = ArcgisPortalAiAssistantInterrupt;
346
407
 
@@ -425,12 +486,29 @@ declare global {
425
486
  type HTMLArcgisPortalItemCardElementEventMap = ArcgisPortalItemCard["@eventTypes"];
426
487
  type HTMLArcgisPortalItemCardElement = ArcgisPortalItemCard;
427
488
 
489
+ type HTMLArcgisPortalItemCardSublayerSelectElementEventMap = ArcgisPortalItemCardSublayerSelect["@eventTypes"];
490
+ type HTMLArcgisPortalItemCardSublayerSelectElement = ArcgisPortalItemCardSublayerSelect;
491
+
428
492
  type HTMLArcgisPortalItemFavoriteElementEventMap = ArcgisPortalItemFavorite["@eventTypes"];
429
493
  type HTMLArcgisPortalItemFavoriteElement = ArcgisPortalItemFavorite;
430
494
 
431
495
  type HTMLArcgisPortalItemPickerElementEventMap = ArcgisPortalItemPicker["@eventTypes"];
432
496
  type HTMLArcgisPortalItemPickerElement = ArcgisPortalItemPicker;
433
497
 
498
+ type HTMLArcgisPortalItemPreviewElementEventMap = ArcgisPortalItemPreview["@eventTypes"];
499
+ type HTMLArcgisPortalItemPreviewElement = ArcgisPortalItemPreview;
500
+
501
+ type HTMLArcgisPortalItemPreviewCopyElement = ArcgisPortalItemPreviewCopy;
502
+
503
+ type HTMLArcgisPortalItemPreviewFieldElement = ArcgisPortalItemPreviewField;
504
+
505
+ type HTMLArcgisPortalItemPreviewSublayerElement = ArcgisPortalItemPreviewSublayer;
506
+
507
+ type HTMLArcgisPortalItemShareSummaryElement = ArcgisPortalItemShareSummary;
508
+
509
+ type HTMLArcgisPortalItemShareSummaryEditableElementEventMap = ArcgisPortalItemShareSummaryEditable["@eventTypes"];
510
+ type HTMLArcgisPortalItemShareSummaryEditableElement = ArcgisPortalItemShareSummaryEditable;
511
+
434
512
  type HTMLArcgisPortalItemThumbnailElementEventMap = ArcgisPortalItemThumbnail["@eventTypes"];
435
513
  type HTMLArcgisPortalItemThumbnailElement = ArcgisPortalItemThumbnail;
436
514
 
@@ -442,9 +520,18 @@ declare global {
442
520
  type HTMLArcgisPortalNavigationElementEventMap = ArcGISPortalNavigation["@eventTypes"];
443
521
  type HTMLArcgisPortalNavigationElement = ArcGISPortalNavigation;
444
522
 
523
+ type HTMLArcgisPortalPreviewPanelElementEventMap = ArcgisPortalPreviewPanel["@eventTypes"];
524
+ type HTMLArcgisPortalPreviewPanelElement = ArcgisPortalPreviewPanel;
525
+
445
526
  type HTMLArcgisPortalReplacementItemRedirectElementEventMap = ArcgisPortalReplacementItemRedirect["@eventTypes"];
446
527
  type HTMLArcgisPortalReplacementItemRedirectElement = ArcgisPortalReplacementItemRedirect;
447
528
 
529
+ type HTMLArcgisPortalReviewLayerSharingElementEventMap = ArcgisPortalReviewLayerSharing["@eventTypes"];
530
+ type HTMLArcgisPortalReviewLayerSharingElement = ArcgisPortalReviewLayerSharing;
531
+
532
+ type HTMLArcgisPortalItemStatusCardElementEventMap = ArcgisPortalItemStatusCard["@eventTypes"];
533
+ type HTMLArcgisPortalItemStatusCardElement = ArcgisPortalItemStatusCard;
534
+
448
535
  type HTMLArcgisPortalReviewRelatedItemsElement = ArcgisPortalReviewRelatedItems;
449
536
 
450
537
  type HTMLArcgisPortalSublayerTypeElement = ArcgisPortalSublayerType;
package/dist/index.js CHANGED
@@ -1,9 +1,308 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { g as a, s as t } from "./chunks/runtime.js";
3
- import { c as o, a as r } from "./chunks/fieldAddDelete.js";
2
+ import { g as te, s as ne } from "./chunks/runtime.js";
3
+ import { e as oe, c as ae } from "./chunks/fieldAddDelete.js";
4
+ import { c as h } from "./chunks/createPortalTool.js";
5
+ import l from "zod";
6
+ import { a as G } from "./chunks/item2.js";
7
+ import { h as y } from "./chunks/user.js";
8
+ import { a as v } from "./chunks/portal.js";
9
+ import { r as I } from "./chunks/request.js";
10
+ async function L(r) {
11
+ if (r.length === 0)
12
+ return [];
13
+ const [{ getEmbeddings: t }, { default: s }] = await Promise.all([
14
+ import("@arcgis/ai-components/orchestrator/embeddings/getEmbeddings.js"),
15
+ import("@arcgis/core/portal/Portal.js")
16
+ ]);
17
+ return await s.getDefault().load(), await t(r);
18
+ }
19
+ const p = 1.2, b = 0.75, q = 60, A = 0.65, w = /* @__PURE__ */ new WeakMap();
20
+ async function W(r, t, s = {}) {
21
+ if (s.topN !== void 0 && !Number.isFinite(s.topN))
22
+ throw new Error("topN must be a finite number.");
23
+ const e = new Map(t.map((a) => [a.id, a])), n = R(M(r), U(t));
24
+ let i = [], o;
25
+ if (r.trim() && t.length)
26
+ if (!s.loadEmbeddings && !s.embeddings)
27
+ o = "Catalog embeddings are unavailable.";
28
+ else
29
+ try {
30
+ const [a, c] = await Promise.all([
31
+ (s.embedQuery ?? z)(r),
32
+ s.loadEmbeddings ? s.loadEmbeddings() : s.embeddings
33
+ ]);
34
+ if (!c)
35
+ throw new Error("Catalog embeddings are unavailable.");
36
+ i = F(a, c, e);
37
+ } catch (a) {
38
+ o = `Semantic search is unavailable: ${a instanceof Error ? a.message : String(a)}`;
39
+ }
40
+ return {
41
+ degraded: o !== void 0,
42
+ ...o ? { degradedReason: o } : {},
43
+ matches: D(n, i, e, s.topN ?? 5)
44
+ };
45
+ }
46
+ function U(r) {
47
+ const t = w.get(r);
48
+ if (t)
49
+ return t;
50
+ const s = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Map(), n = r.map((o) => {
51
+ if (s.has(o.id))
52
+ throw new Error(`Duplicate item id "${o.id}" in search catalog.`);
53
+ s.add(o.id);
54
+ const a = /* @__PURE__ */ new Map();
55
+ f(a, o.title, 3), f(a, o.description, 1);
56
+ for (const c of o.hints ?? [])
57
+ f(a, c, 2);
58
+ for (const c of a.keys())
59
+ e.set(c, (e.get(c) ?? 0) + 1);
60
+ return {
61
+ id: o.id,
62
+ length: [...a.values()].reduce((c, m) => c + m, 0),
63
+ termFrequencies: a
64
+ };
65
+ }), i = {
66
+ averageDocumentLength: n.length ? n.reduce((o, a) => o + a.length, 0) / n.length : 0,
67
+ documentFrequency: e,
68
+ documents: n
69
+ };
70
+ return w.set(r, i), i;
71
+ }
72
+ function f(r, t, s) {
73
+ for (const e of M(t))
74
+ r.set(e, (r.get(e) ?? 0) + s);
75
+ }
76
+ function M(r) {
77
+ return r.toLowerCase().split(/[^a-z0-9]+/u).filter(Boolean);
78
+ }
79
+ function R(r, t) {
80
+ const s = new Set(r), e = t.documents.length;
81
+ return t.documents.map(({ id: n, length: i, termFrequencies: o }) => {
82
+ let a = 0;
83
+ for (const c of s) {
84
+ const m = o.get(c), d = t.documentFrequency.get(c);
85
+ if (!m || !d)
86
+ continue;
87
+ const g = Math.log(1 + (e - d + 0.5) / (d + 0.5)), u = p * (1 - b + b * (i / t.averageDocumentLength));
88
+ a += g * (m * (p + 1) / (m + u));
89
+ }
90
+ return { id: n, score: a };
91
+ }).filter(({ score: n }) => n > 0).sort(k);
92
+ }
93
+ function F(r, t, s) {
94
+ const e = /* @__PURE__ */ new Map();
95
+ S(r);
96
+ for (const { itemId: n, vector: i } of t) {
97
+ if (!s.has(n))
98
+ continue;
99
+ const o = N(r, i);
100
+ o > (e.get(n) ?? -1 / 0) && e.set(n, o);
101
+ }
102
+ return [...e.entries()].filter(([, n]) => n >= A).map(([n, i]) => ({ id: n, score: i })).sort(k);
103
+ }
104
+ function S(r) {
105
+ if (!r.length || r.some((t) => !Number.isFinite(t)) || r.every((t) => t === 0))
106
+ throw new Error("Embedding vectors must be non-empty, finite, and have non-zero magnitude.");
107
+ }
108
+ function N(r, t) {
109
+ if (S(t), r.length !== t.length)
110
+ throw new Error("Query and catalog embedding dimensions must match.");
111
+ let s = 0, e = 0, n = 0;
112
+ for (let o = 0; o < r.length; o += 1)
113
+ s += r[o] * t[o], e += r[o] ** 2, n += t[o] ** 2;
114
+ const i = s / (Math.sqrt(e) * Math.sqrt(n));
115
+ if (!Number.isFinite(i))
116
+ throw new Error("Embedding vector magnitudes are outside the supported numeric range.");
117
+ return i;
118
+ }
119
+ async function z(r) {
120
+ const t = await L([r]);
121
+ if (t.length !== 1)
122
+ throw new Error("Expected one query embedding.");
123
+ return t[0];
124
+ }
125
+ function D(r, t, s, e) {
126
+ const n = /* @__PURE__ */ new Map();
127
+ for (const [i, o] of [
128
+ ["keyword", r],
129
+ ["semantic", t]
130
+ ])
131
+ for (const [a, { id: c, score: m }] of o.entries()) {
132
+ const d = a + 1, g = s.get(c), u = n.get(c) ?? { item: g, score: 0 };
133
+ u.score += 1 / (q + d), i === "keyword" ? (u.keywordRank = d, u.keywordScore = m) : (u.semanticRank = d, u.semanticScore = m), n.set(c, u);
134
+ }
135
+ return [...n.values()].sort(
136
+ (i, o) => o.score - i.score || (o.semanticScore ?? 0) - (i.semanticScore ?? 0) || (o.keywordScore ?? 0) - (i.keywordScore ?? 0) || i.item.id.localeCompare(o.item.id)
137
+ ).slice(0, Math.max(0, e));
138
+ }
139
+ function k(r, t) {
140
+ return t.score - r.score || r.id.localeCompare(t.id);
141
+ }
142
+ const $ = l.object({
143
+ itemId: l.string().trim().regex(/^[a-f0-9]{32}$/iu).describe("The 32-character hexadecimal Portal item ID.")
144
+ });
145
+ function J(r) {
146
+ return h({
147
+ name: "getItem",
148
+ cachePolicy: "normal",
149
+ description: "Retrieves current metadata for a Portal item by ID. Returns result metadata or an error; an error does not mean the item is private or missing. This tool is read-only.",
150
+ inputSchema: $,
151
+ execute: async ({ itemId: t }) => await G(r, t)
152
+ });
153
+ }
154
+ const T = l.object({
155
+ username: l.string().trim().min(1).optional().describe("An exact Portal username; omit for the signed-in user.")
156
+ });
157
+ function x() {
158
+ return { error: { code: "serviceUnavailable", message: "A username or signed-in Portal user is required." } };
159
+ }
160
+ function X(r) {
161
+ return h({
162
+ name: "getUser",
163
+ cachePolicy: "normal",
164
+ description: "Reads fresh user identity, organization, role, license, account status, and available privileges. Omit username for the signed-in user. Missing fields are unknown; this read does not authorize actions.",
165
+ inputSchema: T,
166
+ execute: async ({ username: t = r.user?.username }, s) => {
167
+ if (!t)
168
+ return x();
169
+ const { result: e, error: n } = await y(r, t, { signal: s?.signal });
170
+ return e ? {
171
+ result: {
172
+ username: e.username,
173
+ fullName: e.fullName,
174
+ orgId: e.orgId,
175
+ role: e.role,
176
+ roleId: e.roleId,
177
+ privileges: e.privileges,
178
+ disabled: e.disabled,
179
+ level: e.level,
180
+ userLicenseTypeId: e.userLicenseTypeId
181
+ }
182
+ } : { error: n };
183
+ }
184
+ });
185
+ }
186
+ function Y(r) {
187
+ return h({
188
+ name: "getUserGroups",
189
+ cachePolicy: "normal",
190
+ description: "Lists visible memberships from a fresh user profile; omit username for the signed-in user. Groups are discovery candidates, not selections or management permissions. Omission does not prove non-membership; use getGroupMembership for an exact check.",
191
+ inputSchema: T,
192
+ execute: async ({ username: t = r.user?.username }, s) => {
193
+ if (!t)
194
+ return x();
195
+ const { result: e, error: n } = await y(r, t, { signal: s?.signal });
196
+ return e ? e.groups ? { result: e.groups.map(({ id: i, title: o, owner: a, access: c }) => ({ id: i, title: o, owner: a, access: c })) } : {
197
+ error: { code: "serviceUnavailable", message: "Group memberships are not available in this user profile." }
198
+ } : { error: n };
199
+ }
200
+ });
201
+ }
202
+ async function E(r, t, s = {}) {
203
+ try {
204
+ s.signal?.throwIfAborted();
205
+ const e = await I({
206
+ portal: r,
207
+ url: `${v(r)}community/groups/${t}`,
208
+ options: s
209
+ });
210
+ return s.signal?.throwIfAborted(), e.id?.toLowerCase() !== t.toLowerCase() ? { error: { code: "serviceUnavailable", message: "The requested group metadata is unavailable." } } : { result: e };
211
+ } catch (e) {
212
+ return s.signal?.aborted || console.error("Could not retrieve group metadata:", e), { error: { code: "unhandledError", message: "Could not retrieve group metadata." } };
213
+ }
214
+ }
215
+ async function B(r, t, s, e = {}) {
216
+ const { result: n, error: i } = await E(r, t, e);
217
+ if (!n)
218
+ return { error: i };
219
+ const o = (a) => a.toLowerCase() === s.toLowerCase();
220
+ try {
221
+ if (o(n.owner))
222
+ return { result: { groupId: n.id, username: n.owner, memberType: "owner" } };
223
+ const a = n.userMembership;
224
+ if (a && o(a.username))
225
+ return {
226
+ result: { groupId: n.id, username: a.username, memberType: a.memberType }
227
+ };
228
+ const c = n.owner.toLowerCase() === r.user?.username.toLowerCase() || a !== void 0 && ["owner", "admin", "manager"].includes(a.memberType);
229
+ if (n.hiddenMembers && !c)
230
+ return {
231
+ error: {
232
+ code: "serviceUnavailable",
233
+ message: "This group's members are hidden; the requested membership cannot be verified from group metadata."
234
+ }
235
+ };
236
+ let m = 1;
237
+ for (; ; ) {
238
+ e.signal?.throwIfAborted();
239
+ const { users: d, nextStart: g } = await I({
240
+ portal: r,
241
+ url: `${v(r)}community/groups/${t}/userList`,
242
+ params: { start: m, num: 100, sortField: "username", sortOrder: "asc" },
243
+ options: e
244
+ });
245
+ e.signal?.throwIfAborted();
246
+ const u = d.find((C) => o(C.username));
247
+ if (u)
248
+ return { result: { groupId: n.id, username: u.username, memberType: u.memberType } };
249
+ if (g === -1)
250
+ return { result: { groupId: n.id, username: s, memberType: "none" } };
251
+ m = g;
252
+ }
253
+ } catch (a) {
254
+ return e.signal?.aborted || console.error("Could not retrieve group membership:", a), { error: { code: "unhandledError", message: "Could not retrieve group membership." } };
255
+ }
256
+ }
257
+ const P = l.object({
258
+ groupId: l.string().trim().regex(/^[a-f0-9]{32}$/iu).describe("The resolved Portal group ID.")
259
+ });
260
+ function Z(r) {
261
+ return h({
262
+ name: "getGroup",
263
+ cachePolicy: "normal",
264
+ description: "Reads fresh group settings, owner, and current-user membership when available. Missing fields are unknown. Membership does not establish management permission.",
265
+ inputSchema: P,
266
+ execute: async ({ groupId: t }, s) => {
267
+ const { result: e, error: n } = await E(r, t, { signal: s?.signal });
268
+ return e ? {
269
+ result: {
270
+ id: e.id,
271
+ title: e.title,
272
+ owner: e.owner,
273
+ orgId: e.orgId,
274
+ access: e.access,
275
+ capabilities: e.capabilities,
276
+ membershipAccess: e.membershipAccess,
277
+ userMembership: e.userMembership,
278
+ hiddenMembers: e.hiddenMembers,
279
+ provider: e.provider
280
+ }
281
+ } : { error: n };
282
+ }
283
+ });
284
+ }
285
+ function _(r) {
286
+ return h({
287
+ name: "getGroupMembership",
288
+ cachePolicy: "normal",
289
+ description: "Checks an exact username's group role: owner, admin/manager, member, or none. May page through members. Restricted or failed reads return errors, not non-membership. Membership does not authorize actions.",
290
+ inputSchema: P.extend({
291
+ username: l.string().trim().min(1).describe("An exact Portal username, not a display name.")
292
+ }),
293
+ execute: async ({ groupId: t, username: s }, e) => await B(r, t, s, { signal: e?.signal })
294
+ });
295
+ }
4
296
  export {
5
- o as canAddField,
6
- r as canDeleteField,
7
- a as getAssetPath,
8
- t as setAssetPath
297
+ oe as canAddField,
298
+ ae as canDeleteField,
299
+ _ as createGetGroupMembershipTool,
300
+ Z as createGetGroupTool,
301
+ J as createGetItemTool,
302
+ Y as createGetUserGroupsTool,
303
+ X as createGetUserTool,
304
+ L as generateEmbeddings,
305
+ te as getAssetPath,
306
+ W as searchCatalog,
307
+ ne as setAssetPath
9
308
  };
package/dist/loader.js CHANGED
@@ -6,9 +6,10 @@ const a = s(e, {
6
6
  "arcgis-portal-account-switcher-accounts": [() => import("./components/arcgis-portal-account-switcher-accounts/customElement.js"), "accounts:,messages:,portal:,targetUser"],
7
7
  "arcgis-portal-account-switcher-list": [() => import("./components/arcgis-portal-account-switcher-list/customElement.js"), "accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],
8
8
  "arcgis-portal-account-switcher-signout": [() => import("./components/arcgis-portal-account-switcher-signout/customElement.js"), "messages:,portal:,signedInAccounts:"],
9
- "arcgis-portal-add-gps-metadata": [() => import("./components/arcgis-portal-add-gps-metadata/customElement.js"), "item:,itemId,messages:,portal:"],
10
- "arcgis-portal-ai-assistant": [() => import("./components/arcgis-portal-ai-assistant/customElement.js"), "autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,tools:,useProdDocAssistant,user:"],
11
- "arcgis-portal-ai-assistant-interrupt": [() => import("./components/arcgis-portal-ai-assistant-interrupt/customElement.js"), "_messages:,message,options:,type"],
9
+ "arcgis-portal-add-gps-metadata": [() => import("./components/arcgis-portal-add-gps-metadata/customElement.js"), "areSourceSchemaChangesAllowed:,canShowAddGPSMetadata:,item:,itemId,messageOverrides:,messages:,portal:,supportsAttachments:"],
10
+ "arcgis-portal-ai-assistant": [() => import("./components/arcgis-portal-ai-assistant/customElement.js"), "autoDestroyDisabled,config:,currentContext:,defaultClosed,disabledAgents:,entityToolPresets:,navigationTargetMap:,observabilityEnabled,portal:,t9n:,tools:,user:;submitMessage"],
11
+ "arcgis-portal-ai-assistant-diagnostics": [() => import("./components/arcgis-portal-ai-assistant-diagnostics/customElement.js"), "contextUsages:,registeredTools:"],
12
+ "arcgis-portal-ai-assistant-interrupt": [() => import("./components/arcgis-portal-ai-assistant-interrupt/customElement.js"), "_messages:,entityRequest:,message,options:,pickerMessages:,portal:,requestId,showOtherOption,type"],
12
13
  "arcgis-portal-browser": [() => import("./components/arcgis-portal-browser/customElement.js"), "_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],
13
14
  "arcgis-portal-browser-actions": [() => import("./components/arcgis-portal-browser-actions/customElement.js"), "_messages:,actions:,selection:;restoreFocus"],
14
15
  "arcgis-portal-browser-filter-status": [() => import("./components/arcgis-portal-browser-filter-status/customElement.js"), "_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],
@@ -21,9 +22,9 @@ const a = s(e, {
21
22
  "arcgis-portal-classification-config": [() => import("./components/arcgis-portal-classification-config/customElement.js"), "autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],
22
23
  "arcgis-portal-classification-favorite": [() => import("./components/arcgis-portal-classification-favorite/customElement.js"), "attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],
23
24
  "arcgis-portal-classification-form-element": [() => import("./components/arcgis-portal-classification-form-element/customElement.js"), "attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],
24
- "arcgis-portal-delete-items": [() => import("./components/arcgis-portal-delete-items/customElement.js"), "active,disableLinks,items:,messages:,portal:,user:"],
25
+ "arcgis-portal-delete-items": [() => import("./components/arcgis-portal-delete-items/customElement.js"), "active,disableLinks,fieldDeleteMessages:,itemIds:,items:,messages:,portal:,user:"],
25
26
  "arcgis-portal-delete-items-review": [() => import("./components/arcgis-portal-delete-items-review/customElement.js"), "items:,messages:,portal:,user:"],
26
- "arcgis-portal-entity-picker": [() => import("./components/arcgis-portal-entity-picker/customElement.js"), "_messages:,entityType,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
27
+ "arcgis-portal-entity-picker": [() => import("./components/arcgis-portal-entity-picker/customElement.js"), "_messages:,entityType,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
27
28
  "arcgis-portal-extent-picker": [() => import("./components/arcgis-portal-extent-picker/customElement.js"), "active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],
28
29
  "arcgis-portal-extent-picker-coord-field": [() => import("./components/arcgis-portal-extent-picker-coord-field/customElement.js"), "errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],
29
30
  "arcgis-portal-field-delete": [() => import("./components/arcgis-portal-field-delete/customElement.js"), "config:,fieldNames:,layer:,mapView:,messages:,options:"],
@@ -33,24 +34,34 @@ const a = s(e, {
33
34
  "arcgis-portal-group-browser-preview": [() => import("./components/arcgis-portal-group-browser-preview/customElement.js"), "currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],
34
35
  "arcgis-portal-group-browser-preview-card": [() => import("./components/arcgis-portal-group-browser-preview-card/customElement.js"), "baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],
35
36
  "arcgis-portal-group-card": [() => import("./components/arcgis-portal-group-card/customElement.js"), "disabled,group:,hideBadges,hideDateUpdated,hideOwner,hideViewableBy,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showDateCreated,showSummary,user:,view;restoreFocus"],
36
- "arcgis-portal-group-picker": [() => import("./components/arcgis-portal-group-picker/customElement.js"), "_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
37
+ "arcgis-portal-group-picker": [() => import("./components/arcgis-portal-group-picker/customElement.js"), "_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
37
38
  "arcgis-portal-group-thumbnail": [() => import("./components/arcgis-portal-group-thumbnail/customElement.js"), "group:,portal:,scale,tooltip"],
38
39
  "arcgis-portal-info-banner": [() => import("./components/arcgis-portal-info-banner/customElement.js"), "config:,position"],
39
40
  "arcgis-portal-item-actions": [() => import("./components/arcgis-portal-item-actions/customElement.js"), "actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],
40
41
  "arcgis-portal-item-badges": [() => import("./components/arcgis-portal-item-badges/customElement.js"), "appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],
41
42
  "arcgis-portal-item-badge": [() => import("./components/arcgis-portal-item-badge/customElement.js"), "_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],
42
- "arcgis-portal-item-card": [() => import("./components/arcgis-portal-item-card/customElement.js"), "actions:,disabled,disableSelection,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,user:,userPopupZIndex,view;restoreFocus"],
43
+ "arcgis-portal-item-card": [() => import("./components/arcgis-portal-item-card/customElement.js"), "actions:,allowedGeometries:,disabled,disableSelection,groups:,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,notebookRuntimeStatus,portal:,preview,previewed,recycleBin,selected,selectedItems:,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,useProduction,user:,userGroups:,userPopupZIndex,view;restoreFocus"],
44
+ "arcgis-portal-item-card-sublayer-select": [() => import("./components/arcgis-portal-item-card-sublayer-select/customElement.js"), "allowedGeometries:,appearance,disabled,item:,messageOverrides:,messages:,portal:,selectedItems:,selection,width"],
43
45
  "arcgis-portal-item-favorite": [() => import("./components/arcgis-portal-item-favorite/customElement.js"), "iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],
44
- "arcgis-portal-item-picker": [() => import("./components/arcgis-portal-item-picker/customElement.js"), "_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
46
+ "arcgis-portal-item-picker": [() => import("./components/arcgis-portal-item-picker/customElement.js"), "_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
47
+ "arcgis-portal-item-preview": [() => import("./components/arcgis-portal-item-preview/customElement.js"), "groups:,item:,matchedSublayerIds:,messages:,portal:,showFieldStatistics,showHosted,user:,userGroups:;setFocus"],
48
+ "arcgis-portal-item-preview-copy": [() => import("./components/arcgis-portal-item-preview-copy/customElement.js"), "heading,label,messages:,section,text"],
49
+ "arcgis-portal-item-preview-field": [() => import("./components/arcgis-portal-item-preview-field/customElement.js"), "failed,field:,layer:,messages:,showStatistics"],
50
+ "arcgis-portal-item-preview-sublayer": [() => import("./components/arcgis-portal-item-preview-sublayer/customElement.js"), "externalLinkHandler:,item:,layer:,messages:,portal:,showFieldStatistics"],
51
+ "arcgis-portal-item-share-summary": [() => import("./components/arcgis-portal-item-share-summary/customElement.js"), "autoFetchGroups,groups:,item:,messageOverrides:,messages:,overlayPositioning,portal:,scale,showHoverText,showText,userGroups:;fetchGroups,setFocus"],
52
+ "arcgis-portal-item-share-summary-editable": [() => import("./components/arcgis-portal-item-share-summary-editable/customElement.js"), "allowEdit,autoFetchGroups,groups:,item:,messageOverrides:,messages:,overlayPositioning,portal:,scale,showHoverText,showText,userGroups:;fetchGroups,setFocus"],
45
53
  "arcgis-portal-item-thumbnail": [() => import("./components/arcgis-portal-item-thumbnail/customElement.js"), "cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],
46
54
  "arcgis-portal-item-type": [() => import("./components/arcgis-portal-item-type/customElement.js"), "ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],
47
55
  "arcgis-portal-mentionable-text-area": [() => import("./components/arcgis-portal-mentionable-text-area/customElement.js"), "disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],
48
- "arcgis-portal-navigation": [() => import("./components/arcgis-portal-navigation/customElement.js"), "clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],
56
+ "arcgis-portal-navigation": [() => import("./components/arcgis-portal-navigation/customElement.js"), "clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:,showNotifications"],
57
+ "arcgis-portal-preview-panel": [() => import("./components/arcgis-portal-preview-panel/customElement.js"), "fixed,open"],
49
58
  "arcgis-portal-replacement-item-redirect": [() => import("./components/arcgis-portal-replacement-item-redirect/customElement.js"), "itemId,messages:,portal:,user:;setFocus"],
50
- "arcgis-portal-review-related-items": [() => import("./components/arcgis-portal-review-related-items/customElement.js"), "messages:,portal:,relatedItems:,sourceItem:,user:"],
59
+ "arcgis-portal-review-layer-sharing": [() => import("./components/arcgis-portal-review-layer-sharing/customElement.js"), "items:,messages:,open,portal:,statusMessages:"],
60
+ "arcgis-portal-item-status-card": [() => import("./components/arcgis-portal-item-status-card/customElement.js"), "item:,messages:,portal:,previewed,state;restoreFocus"],
61
+ "arcgis-portal-review-related-items": [() => import("./components/arcgis-portal-review-related-items/customElement.js"), "browserMessages:,deleteMessages:,messages:,portal:,relatedItems:,relatedItemsCount,showDependentItems,sourceItem:,user:"],
51
62
  "arcgis-portal-sublayer-type": [() => import("./components/arcgis-portal-sublayer-type/customElement.js"), "geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],
52
63
  "arcgis-portal-user-avatar": [() => import("./components/arcgis-portal-user-avatar/customElement.js"), "checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],
53
- "arcgis-portal-user-picker": [() => import("./components/arcgis-portal-user-picker/customElement.js"), "_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
64
+ "arcgis-portal-user-picker": [() => import("./components/arcgis-portal-user-picker/customElement.js"), "_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
54
65
  "arcgis-portal-user-popup": [() => import("./components/arcgis-portal-user-popup/customElement.js"), "appearance,avatarAriaHidden,baseUrl,checkOnline,fullName,item:,messages:,portal:,scale,showAvatar,showName,showUsername,underline,user:,username,wrap,zIndex;openPopup,setFocus"],
55
66
  "arcgis-portal-voice-input": [() => import("./components/arcgis-portal-voice-input/customElement.js"), "language;clearText,startListening,stopListening"]
56
67
  });
@@ -0,0 +1,17 @@
1
+ import type Portal from "@arcgis/core/portal/Portal.js";
2
+ import type { MemberType } from "../types/group.js";
3
+ import type { Result } from "../types/services.js";
4
+
5
+ /**
6
+ * Checks one user's membership, never inferring absence from a partial member list.
7
+ *
8
+ * @param portal
9
+ * @param groupId
10
+ * @param username
11
+ * @param options
12
+ */
13
+ export function getGroupMembership(portal: Portal, groupId: string, username: string, options?: { signal?: AbortSignal; }): Promise<Result<{
14
+ groupId: string;
15
+ username: string;
16
+ memberType: MemberType;
17
+ }, "serviceUnavailable" | "unhandledError">>;
@@ -0,0 +1,9 @@
1
+ export interface PortalGroupSearchParams {
2
+ num?: number;
3
+ q?: string;
4
+ searchUserAccess?: string;
5
+ searchUserName?: string;
6
+ sortField?: string;
7
+ sortOrder?: "asc" | "desc";
8
+ start?: number;
9
+ }
@@ -0,0 +1,9 @@
1
+ import type Portal from "@arcgis/core/portal/Portal.js";
2
+ import type { ItemSourceJSON } from "../types/item.js";
3
+ import type { Result } from "../types/services.js";
4
+
5
+ /**
6
+ * @param portal
7
+ * @param itemId
8
+ */
9
+ export function getItem(portal: Portal, itemId: string): Promise<Result<ItemSourceJSON, "unhandledError">>;