@arcgis/portal-components 6.0.0-next.2 → 6.0.0-next.20
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/cdn/225AERRK.js +2 -0
- package/dist/cdn/2267AKWE.js +2 -0
- package/dist/cdn/{Z6R3C4AK.js → 2XIDYV73.js} +1 -1
- package/dist/cdn/3ZC26CT6.js +4 -0
- package/dist/cdn/4B2URSFO.js +2 -0
- package/dist/cdn/{JWBUJT43.js → 4I7NKRIH.js} +1 -1
- package/dist/cdn/4QYVBXZT.js +2 -0
- package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
- package/dist/cdn/565U4WSN.js +2 -0
- package/dist/cdn/{TWCJJCPC.js → 57MT7FOI.js} +1 -1
- package/dist/cdn/5D5INKHG.js +106 -0
- package/dist/cdn/{RHCRPJWS.js → 5SKCVK2P.js} +1 -1
- package/dist/cdn/{YYTEJVBL.js → 5VAV267L.js} +1 -1
- package/dist/cdn/67QXUNKX.js +2 -0
- package/dist/cdn/6BQUKFTK.js +2 -0
- package/dist/cdn/6T4X4RAB.js +2 -0
- package/dist/cdn/{2YZWRFCI.js → 6XAFP5OI.js} +1 -1
- package/dist/cdn/723D3EKN.js +2 -0
- package/dist/cdn/{EQDYQOOT.js → 7PBECSW5.js} +1 -1
- package/dist/cdn/7XBN6ZF4.js +2 -0
- package/dist/cdn/{ABORO35R.js → AAWXEOVL.js} +1 -1
- package/dist/cdn/{5C5GHX4D.js → AEPP4WJM.js} +1 -1
- package/dist/cdn/APLSVK3C.js +135 -0
- package/dist/cdn/{BKD7JSV2.js → AXKMKCEW.js} +1 -1
- package/dist/cdn/{7ZWYUHGK.js → AYHYABMC.js} +1 -1
- package/dist/cdn/B474WTYE.js +2 -0
- package/dist/cdn/{5HZNBMW6.js → C5FTQSU6.js} +1 -1
- package/dist/cdn/{XYMBRPC7.js → C7KQT5QW.js} +1 -1
- package/dist/cdn/CL5FABMT.js +2 -0
- package/dist/cdn/CUJG43PQ.js +2 -0
- package/dist/cdn/DELNTRCT.js +2 -0
- package/dist/cdn/E26PFYPI.js +2 -0
- package/dist/cdn/{MKSFNVXL.js → EHHFEPC2.js} +1 -1
- package/dist/cdn/{TLM457Z5.js → EQTGOMBD.js} +1 -1
- package/dist/cdn/{DHMNNIXZ.js → EXEAVQRP.js} +1 -1
- package/dist/cdn/FLUCWAMC.js +2 -0
- package/dist/cdn/FN2QMDEW.js +2 -0
- package/dist/cdn/{FIQZPIIK.js → FTT33ZZJ.js} +1 -1
- package/dist/cdn/FXTPC2Q5.js +2 -0
- package/dist/cdn/{TXC7YBGL.js → GDCXUNOL.js} +1 -1
- package/dist/cdn/GJNGP34L.js +2 -0
- package/dist/cdn/GOUAS2Q5.js +2 -0
- package/dist/cdn/{L64UURQB.js → HIPJAMO4.js} +1 -1
- package/dist/cdn/{OR6T5SB3.js → HXFKOELM.js} +1 -1
- package/dist/cdn/{7LMZHJZG.js → I3ECBIYX.js} +1 -1
- package/dist/cdn/{24QSQLRY.js → I4ZRFXQ3.js} +1 -1
- package/dist/cdn/{K2XSYDAP.js → I57CRKF7.js} +1 -1
- package/dist/cdn/IAK4F5SX.js +2 -0
- package/dist/cdn/IRCWBDGJ.js +79 -0
- package/dist/cdn/JOQEFKCE.js +2 -0
- package/dist/cdn/K3GAZFRI.js +63 -0
- package/dist/cdn/{OXPXXIWL.js → K5Q4ZROX.js} +1 -1
- package/dist/cdn/K6LF5U7K.js +2 -0
- package/dist/cdn/KRORL7QC.js +2 -0
- package/dist/cdn/LVUKORME.js +2 -0
- package/dist/cdn/LY7NVMME.js +2 -0
- package/dist/cdn/MK2KDBUL.js +66 -0
- package/dist/cdn/{AXOBMX3S.js → MLTZSPZQ.js} +1 -1
- package/dist/cdn/{RQYNPDN3.js → MOE6L5RN.js} +1 -1
- package/dist/cdn/{JPUUMGX5.js → MSP6STQ7.js} +1 -1
- package/dist/cdn/MSSJRDR7.js +2 -0
- package/dist/cdn/MUW2YNAS.js +2 -0
- package/dist/cdn/{JIJO4CAS.js → MXUHZ474.js} +1 -1
- package/dist/cdn/NDCMZLMU.js +2 -0
- package/dist/cdn/O4YFPGD5.js +2 -0
- package/dist/cdn/O5MB4QQ2.js +2 -0
- package/dist/cdn/OQ3OHDEB.js +2 -0
- package/dist/cdn/OQE662U3.js +2 -0
- package/dist/cdn/OQUQ7Z3E.js +2 -0
- package/dist/cdn/P74FP43E.js +2 -0
- package/dist/cdn/PVPTFK7N.js +2 -0
- package/dist/cdn/PXG2SRSN.js +2 -0
- package/dist/cdn/{ZKZDKJ6D.js → QJB32L7F.js} +1 -1
- package/dist/cdn/QKGHH3FS.js +2 -0
- package/dist/cdn/QSRWVCWP.js +2 -0
- package/dist/cdn/RA75BDVB.js +2 -0
- package/dist/cdn/RAWBYOFF.js +2 -0
- package/dist/cdn/{LWFACY3F.js → RLI7T32U.js} +1 -1
- package/dist/cdn/RYPYVJ5U.js +2 -0
- package/dist/cdn/SASCLFKY.js +2 -0
- package/dist/cdn/{SGDDFWCJ.js → SCRIVOPW.js} +1 -1
- package/dist/cdn/SHGPWFEC.js +2 -0
- package/dist/cdn/SQCDEL42.js +2 -0
- package/dist/cdn/SRWFOV5W.js +2 -0
- package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
- package/dist/cdn/TKTMO2NO.js +2 -0
- package/dist/cdn/TLZO6KZO.js +2 -0
- package/dist/cdn/{3NSHGKZA.js → TNRHHR67.js} +1 -1
- package/dist/cdn/{32BWFMTC.js → TRFH3KNJ.js} +1 -1
- package/dist/cdn/U4PHGRXB.js +2 -0
- package/dist/cdn/UD4KPMGF.js +2 -0
- package/dist/cdn/{U3KMGSVH.js → UL3XBQUT.js} +1 -1
- package/dist/cdn/ULGME5RT.js +2 -0
- package/dist/cdn/{I6IRHXWR.js → ULTSLT4L.js} +1 -1
- package/dist/cdn/{NWVLGU2C.js → UYROTXZP.js} +1 -1
- package/dist/cdn/VAJV46OF.js +2 -0
- package/dist/cdn/VH2IMPMN.js +2 -0
- package/dist/cdn/VNVGVYX6.js +41 -0
- package/dist/cdn/{3EYB5GQX.js → VRGGPMVR.js} +1 -1
- package/dist/cdn/{IN4JPZTY.js → VXDDXPD7.js} +1 -1
- package/dist/cdn/VXYEF3XW.js +2 -0
- package/dist/cdn/WQWJVM5B.js +2 -0
- package/dist/cdn/XT6IKL7A.js +2 -0
- package/dist/cdn/{MLYQGIJU.js → XYT4533U.js} +13 -13
- package/dist/cdn/Y5VUMGKH.js +3 -0
- package/dist/cdn/{DLI4XKJ3.js → Y6WQZMYW.js} +1 -1
- package/dist/cdn/{74T6IXSN.js → Y72W3QFF.js} +1 -1
- package/dist/cdn/YERFI6P2.js +2 -0
- package/dist/cdn/{YZTBAUIO.js → YTVLEHJT.js} +1 -1
- package/dist/cdn/{M5PPX4ZX.js → ZJCG6JI7.js} +1 -1
- package/dist/cdn/{JN23JH3T.js → ZJWAM6OL.js} +1 -1
- package/dist/cdn/{GAF4YT5N.js → ZS3JUQN3.js} +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/fieldAddDelete.js +7 -7
- package/dist/chunks/functionalities.js +14 -9
- package/dist/chunks/groups.js +8 -61
- package/dist/chunks/groups2.js +23 -8
- package/dist/chunks/info.js +2 -2
- package/dist/chunks/item.js +58 -26
- package/dist/chunks/item2.js +17 -17
- package/dist/chunks/itemThumbnail.js +1 -1
- package/dist/chunks/loadClassificationData.js +26 -27
- package/dist/chunks/portal-delete-items-review.js +1 -1
- package/dist/chunks/portal-item-badge.js +1 -1
- package/dist/chunks/portal-related-items-list-item.js +1 -1
- package/dist/chunks/portal.js +6 -6
- package/dist/chunks/portal2.js +11 -11
- package/dist/chunks/portalEntitySelection.js +54 -0
- package/dist/chunks/query.js +13 -13
- package/dist/chunks/request.js +25 -25
- package/dist/chunks/requests.js +7 -7
- package/dist/chunks/selectedMentions.js +25 -0
- package/dist/chunks/services.js +1 -1
- package/dist/chunks/string.js +14 -10
- package/dist/chunks/ui.js +1 -0
- package/dist/chunks/url.js +2 -2
- package/dist/chunks/user.js +10 -10
- package/dist/chunks/utils.js +35 -22
- package/dist/chunks/utils2.js +4 -4
- package/dist/chunks/utils3.js +1 -1
- package/dist/components/arcgis-portal-account-switcher/customElement.js +27 -25
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +4 -4
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.js +8 -8
- package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +4 -4
- package/dist/components/arcgis-portal-account-switcher-list/customElement.js +6 -6
- package/dist/components/arcgis-portal-account-switcher-signout/customElement.d.ts +5 -5
- package/dist/components/arcgis-portal-account-switcher-signout/customElement.js +3 -3
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +6 -0
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +153 -130
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +25 -15
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +574 -2409
- package/dist/components/arcgis-portal-ai-assistant/index.js +4 -0
- package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
- package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +51 -0
- package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +14 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +39 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +63 -27
- package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -1
- package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
- package/dist/components/arcgis-portal-delete-items/customElement.js +446 -330
- package/dist/components/arcgis-portal-delete-items/index.js +1 -2
- package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
- package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +36 -0
- package/dist/components/arcgis-portal-entity-picker/customElement.js +202 -120
- package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
- package/dist/components/arcgis-portal-field-delete/customElement.js +33 -31
- package/dist/components/arcgis-portal-field-delete/index.js +1 -1
- package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
- package/dist/components/arcgis-portal-group-browser/customElement.js +93 -99
- package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +2 -2
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-card/customElement.js +18 -18
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-card/customElement.d.ts +6 -2
- package/dist/components/arcgis-portal-item-card/customElement.js +91 -90
- package/dist/components/arcgis-portal-item-card/index.js +1 -1
- package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
- package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
- package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
- package/dist/components/arcgis-portal-item-thumbnail/customElement.js +10 -10
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
- package/dist/components/arcgis-portal-navigation/customElement.js +6 -7
- package/dist/components/arcgis-portal-navigation/index.js +5 -5
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
- package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
- package/dist/components/arcgis-portal-review-related-items/customElement.js +45 -18
- package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
- package/dist/components/arcgis-portal-user-popup/customElement.js +28 -28
- package/dist/components/portal-group-browser-filters/customElement.js +15 -15
- package/dist/components/portal-related-items-list-item/customElement.js +16 -14
- package/dist/components/portal-related-items-list-item/index.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.js +155 -6
- package/dist/loader.js +14 -12
- package/dist/services/groups.d.ts +9 -0
- package/dist/services/item.d.ts +9 -0
- package/dist/types/item.d.ts +3 -3
- package/dist/types/lumina.d.ts +28 -17
- package/dist/types/preact.d.ts +30 -17
- package/dist/types/react.d.ts +32 -17
- package/dist/types/services.d.ts +24 -1
- package/dist/types/stencil.d.ts +28 -17
- package/dist/utils/generateEmbeddings.d.ts +7 -0
- package/dist/utils/semanticSearch.d.ts +60 -0
- package/dist/utils/types.d.ts +10 -0
- package/package.json +10 -10
- package/dist/cdn/23FS4XTG.js +0 -2
- package/dist/cdn/2MPQ5IWJ.js +0 -2
- package/dist/cdn/3CQKCUM5.js +0 -2
- package/dist/cdn/3LEQ37YT.js +0 -68
- package/dist/cdn/46BUEBWS.js +0 -2
- package/dist/cdn/4AI52H7C.js +0 -2
- package/dist/cdn/4MUB6TL6.js +0 -2
- package/dist/cdn/4PRXQFCV.js +0 -2
- package/dist/cdn/4QFTKB6T.js +0 -2
- package/dist/cdn/4TSXFX3M.js +0 -2
- package/dist/cdn/5PPZNVWG.js +0 -2
- package/dist/cdn/66XWNGQ2.js +0 -2
- package/dist/cdn/6F4SJDRR.js +0 -2
- package/dist/cdn/6RZEXOK3.js +0 -2
- package/dist/cdn/A2SQ4EMZ.js +0 -2
- package/dist/cdn/AICPYLWE.js +0 -4
- package/dist/cdn/AJQT7UXB.js +0 -2
- package/dist/cdn/APSYZEPP.js +0 -209
- package/dist/cdn/AZOJHVAO.js +0 -2
- package/dist/cdn/BSTA5KI5.js +0 -2
- package/dist/cdn/CD5UWSCP.js +0 -2
- package/dist/cdn/CXXV6WJT.js +0 -2
- package/dist/cdn/DDBXEXOV.js +0 -2
- package/dist/cdn/DYO5P3F2.js +0 -2
- package/dist/cdn/E66BDC6N.js +0 -2
- package/dist/cdn/EEAVX4PP.js +0 -2
- package/dist/cdn/EITRZQSC.js +0 -2
- package/dist/cdn/EMJQI4MA.js +0 -2
- package/dist/cdn/FIBQAMJ3.js +0 -2
- package/dist/cdn/FNLBJ4ZQ.js +0 -2
- package/dist/cdn/FRE56NBG.js +0 -2
- package/dist/cdn/GSOBDGLK.js +0 -2
- package/dist/cdn/GUO7HKSP.js +0 -463
- package/dist/cdn/GX7U3727.js +0 -2
- package/dist/cdn/GXM3XY3J.js +0 -2
- package/dist/cdn/I273CANO.js +0 -2
- package/dist/cdn/I6NVKNZJ.js +0 -2
- package/dist/cdn/J5FKIZAM.js +0 -2
- package/dist/cdn/JL52W3Z4.js +0 -2
- package/dist/cdn/JOUR2FB2.js +0 -3
- package/dist/cdn/LISDTBEX.js +0 -2
- package/dist/cdn/LYLQCBVX.js +0 -2
- package/dist/cdn/N4VOTJ25.js +0 -2
- package/dist/cdn/N5QLV56W.js +0 -2
- package/dist/cdn/NRMQDCM3.js +0 -2
- package/dist/cdn/OD5WXP7J.js +0 -2
- package/dist/cdn/PMRFXB4F.js +0 -2
- package/dist/cdn/PNIFJ5DQ.js +0 -2
- package/dist/cdn/PZDI5ZDC.js +0 -2
- package/dist/cdn/RVYSVTPQ.js +0 -2
- package/dist/cdn/SVROAT3Z.js +0 -2
- package/dist/cdn/TBZXKKGP.js +0 -2
- package/dist/cdn/TNUCSWBN.js +0 -2
- package/dist/cdn/TOICLGFK.js +0 -2
- package/dist/cdn/TOTWYGB3.js +0 -2
- package/dist/cdn/TUUUK3VX.js +0 -2
- package/dist/cdn/WC3FPLYQ.js +0 -2
- package/dist/cdn/YTODQCOG.js +0 -2
- package/dist/cdn/ZDDN7UKS.js +0 -2
- package/dist/chunks/functional.js +0 -9
- package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
- /package/dist/components/arcgis-portal-ai-assistant/{agents/types.d.ts → types/navigation.d.ts} +0 -0
- /package/dist/components/arcgis-portal-ai-assistant/{agents → types}/portalRouteKeys.d.ts +0 -0
package/dist/types/preact.d.ts
CHANGED
|
@@ -38,6 +38,8 @@ import type { ArcgisPortalItemBadge } from "../components/arcgis-portal-item-bad
|
|
|
38
38
|
import type { ArcgisPortalItemCard } from "../components/arcgis-portal-item-card/customElement.js";
|
|
39
39
|
import type { ArcgisPortalItemFavorite } from "../components/arcgis-portal-item-favorite/customElement.js";
|
|
40
40
|
import type { ArcgisPortalItemPicker } from "../components/arcgis-portal-item-picker/customElement.js";
|
|
41
|
+
import type { ArcgisPortalItemShareSummary } from "../components/arcgis-portal-item-share-summary/customElement.js";
|
|
42
|
+
import type { ArcgisPortalItemShareSummaryEditable } from "../components/arcgis-portal-item-share-summary-editable/customElement.js";
|
|
41
43
|
import type { ArcgisPortalItemThumbnail } from "../components/arcgis-portal-item-thumbnail/customElement.js";
|
|
42
44
|
import type { ArcgisPortalItemType } from "../components/arcgis-portal-item-type/customElement.js";
|
|
43
45
|
import type { ArcgisPortalMentionableTextArea } from "../components/arcgis-portal-mentionable-text-area/customElement.js";
|
|
@@ -59,31 +61,31 @@ interface PreactArcgisPortalAccountSwitcher extends Partial<Pick<ArcgisPortalAcc
|
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
interface PreactArcgisPortalAccountSwitcherAccounts extends Partial<Pick<ArcgisPortalAccountSwitcherAccounts, "accounts" | "portal" | "targetUser">>, HTMLAttributes<ArcgisPortalAccountSwitcherAccounts> {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
onarcgisAccountsCloseDialog?: EventHandler<ArcgisPortalAccountSwitcherAccounts["arcgisAccountsCloseDialog"]>;
|
|
65
|
+
onarcgisAccountsLinkAll?: EventHandler<ArcgisPortalAccountSwitcherAccounts["arcgisAccountsLinkAll"]>;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
interface PreactArcgisPortalAccountSwitcherList extends Partial<Pick<ArcgisPortalAccountSwitcherList, "accountAccess" | "actions" | "interactive" | "linkedAccounts" | "portal" | "signedInUsers">>, HTMLAttributes<ArcgisPortalAccountSwitcherList> {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
onarcgisAccountListSwitch?: EventHandler<ArcgisPortalAccountSwitcherList["arcgisAccountListSwitch"]>;
|
|
70
|
+
onarcgisAccountListUnlink?: EventHandler<ArcgisPortalAccountSwitcherList["arcgisAccountListUnlink"]>;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
interface PreactArcgisPortalAccountSwitcherSignout extends Partial<Pick<ArcgisPortalAccountSwitcherSignout, "portal" | "signedInAccounts">>, HTMLAttributes<ArcgisPortalAccountSwitcherSignout> {
|
|
72
|
-
onarcgisCloseDialog?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisCloseDialog"]>;
|
|
73
74
|
onarcgisSignOutAll?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisSignOutAll"]>;
|
|
74
|
-
|
|
75
|
+
onarcgisSignOutCloseDialog?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisSignOutCloseDialog"]>;
|
|
76
|
+
onarcgisSignOutSwitchAccount?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisSignOutSwitchAccount"]>;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
|
-
interface PreactArcgisPortalAddGpsMetadata extends Partial<Pick<ArcgisPortalAddGpsMetadata, "item" | "itemId" | "portal">>, HTMLAttributes<ArcgisPortalAddGpsMetadata> {
|
|
79
|
+
interface PreactArcgisPortalAddGpsMetadata extends Partial<Pick<ArcgisPortalAddGpsMetadata, "item" | "itemId" | "messageOverrides" | "portal">>, HTMLAttributes<ArcgisPortalAddGpsMetadata> {
|
|
78
80
|
onarcgisGPSMetadataFieldsAdded?: EventHandler<ArcgisPortalAddGpsMetadata["arcgisGPSMetadataFieldsAdded"]>;
|
|
79
81
|
onarcgisReadOnlyMode?: EventHandler<ArcgisPortalAddGpsMetadata["arcgisReadOnlyMode"]>;
|
|
80
82
|
}
|
|
81
83
|
|
|
82
|
-
interface PreactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "disabledAgents" | "
|
|
84
|
+
interface PreactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "disabledAgents" | "entityToolPresets" | "navigationTargetMap" | "observabilityEnabled" | "portal" | "tools" | "user">>, HTMLAttributes<ArcgisPortalAiAssistant> {
|
|
83
85
|
onarcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
interface PreactArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPortalAiAssistantInterrupt, "message" | "options" | "type">>, HTMLAttributes<ArcgisPortalAiAssistantInterrupt> {
|
|
88
|
+
interface PreactArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPortalAiAssistantInterrupt, "entityRequest" | "message" | "options" | "portal" | "requestId" | "type">>, HTMLAttributes<ArcgisPortalAiAssistantInterrupt> {
|
|
87
89
|
onarcgisCancel?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisCancel"]>;
|
|
88
90
|
onarcgisSubmit?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisSubmit"]>;
|
|
89
91
|
}
|
|
@@ -140,8 +142,8 @@ interface PreactArcgisPortalClassificationFormElement extends Partial<Pick<Arcgi
|
|
|
140
142
|
onarcgisAttributeValueChange?: EventHandler<ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]>;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
interface PreactArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDeleteItems, "active" | "disableLinks" | "items" | "portal" | "user">>, HTMLAttributes<ArcgisPortalDeleteItems> {
|
|
144
|
-
|
|
145
|
+
interface PreactArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDeleteItems, "active" | "disableLinks" | "itemIds" | "items" | "portal" | "user">>, HTMLAttributes<ArcgisPortalDeleteItems> {
|
|
146
|
+
onarcgisClose?: EventHandler<ArcgisPortalDeleteItems["arcgisClose"]>;
|
|
145
147
|
onarcgisConfirm?: EventHandler<ArcgisPortalDeleteItems["arcgisConfirm"]>;
|
|
146
148
|
onarcgisError?: EventHandler<ArcgisPortalDeleteItems["arcgisError"]>;
|
|
147
149
|
}
|
|
@@ -149,7 +151,7 @@ interface PreactArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDeleteI
|
|
|
149
151
|
interface PreactArcgisPortalDeleteItemsReview extends Partial<Pick<ArcgisPortalDeleteItemsReview, "items" | "portal" | "user">>, HTMLAttributes<ArcgisPortalDeleteItemsReview> {
|
|
150
152
|
}
|
|
151
153
|
|
|
152
|
-
interface PreactArcgisPortalEntityPicker extends Partial<Pick<ArcgisPortalEntityPicker, "entityType" | "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, HTMLAttributes<ArcgisPortalEntityPicker> {
|
|
154
|
+
interface PreactArcgisPortalEntityPicker extends Partial<Pick<ArcgisPortalEntityPicker, "entityType" | "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, HTMLAttributes<ArcgisPortalEntityPicker> {
|
|
153
155
|
onarcgisSelectionChange?: EventHandler<ArcgisPortalEntityPicker["arcgisSelectionChange"]>;
|
|
154
156
|
}
|
|
155
157
|
|
|
@@ -202,7 +204,7 @@ interface PreactArcgisPortalGroupCard extends Partial<Pick<ArcgisPortalGroupCard
|
|
|
202
204
|
onarcgisGroupCardSelect?: EventHandler<ArcgisPortalGroupCard["arcgisGroupCardSelect"]>;
|
|
203
205
|
}
|
|
204
206
|
|
|
205
|
-
interface PreactArcgisPortalGroupPicker extends Partial<Pick<ArcgisPortalGroupPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, HTMLAttributes<ArcgisPortalGroupPicker> {
|
|
207
|
+
interface PreactArcgisPortalGroupPicker extends Partial<Pick<ArcgisPortalGroupPicker, "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, HTMLAttributes<ArcgisPortalGroupPicker> {
|
|
206
208
|
onarcgisSelectionChange?: EventHandler<ArcgisPortalGroupPicker["arcgisSelectionChange"]>;
|
|
207
209
|
}
|
|
208
210
|
|
|
@@ -225,7 +227,7 @@ interface PreactArcgisPortalItemBadges extends Partial<Pick<ArcgisPortalItemBadg
|
|
|
225
227
|
interface PreactArcgisPortalItemBadge extends Partial<Pick<ArcgisPortalItemBadge, "appearance" | "badgeType" | "item" | "portal" | "scale" | "showTooltip" | "useProduction" | "user" | "width">>, HTMLAttributes<ArcgisPortalItemBadge> {
|
|
226
228
|
}
|
|
227
229
|
|
|
228
|
-
interface PreactArcgisPortalItemCard extends Partial<Pick<ArcgisPortalItemCard, "actions" | "disabled" | "disableSelection" | "hideActionsStart" | "item" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "recycleBin" | "selected" | "selection" | "showAccess" | "showBadges" | "showBadgeTooltips" | "showDateUpdated" | "showFavorite" | "showFavoriteInActionsMenu" | "showItemType" | "showItemTypeHosted" | "showOwner" | "showSummary" | "showThumbnail" | "user" | "userPopupZIndex" | "view">>, HTMLAttributes<ArcgisPortalItemCard> {
|
|
230
|
+
interface PreactArcgisPortalItemCard extends Partial<Pick<ArcgisPortalItemCard, "actions" | "disabled" | "disableSelection" | "groups" | "hideActionsStart" | "item" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "recycleBin" | "selected" | "selection" | "showAccess" | "showBadges" | "showBadgeTooltips" | "showDateUpdated" | "showFavorite" | "showFavoriteInActionsMenu" | "showItemType" | "showItemTypeHosted" | "showOwner" | "showSummary" | "showThumbnail" | "user" | "userGroups" | "userPopupZIndex" | "view">>, HTMLAttributes<ArcgisPortalItemCard> {
|
|
229
231
|
onarcgisItemBrowserCardPreview?: EventHandler<ArcgisPortalItemCard["arcgisItemBrowserCardPreview"]>;
|
|
230
232
|
onarcgisItemCardActionsOpen?: EventHandler<ArcgisPortalItemCard["arcgisItemCardActionsOpen"]>;
|
|
231
233
|
onarcgisItemCardInternalUIAction?: EventHandler<ArcgisPortalItemCard["arcgisItemCardInternalUIAction"]>;
|
|
@@ -236,10 +238,17 @@ interface PreactArcgisPortalItemFavorite extends Partial<Pick<ArcgisPortalItemFa
|
|
|
236
238
|
onarcgisItemFavoriteUpdate?: EventHandler<ArcgisPortalItemFavorite["arcgisItemFavoriteUpdate"]>;
|
|
237
239
|
}
|
|
238
240
|
|
|
239
|
-
interface PreactArcgisPortalItemPicker extends Partial<Pick<ArcgisPortalItemPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, HTMLAttributes<ArcgisPortalItemPicker> {
|
|
241
|
+
interface PreactArcgisPortalItemPicker extends Partial<Pick<ArcgisPortalItemPicker, "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, HTMLAttributes<ArcgisPortalItemPicker> {
|
|
240
242
|
onarcgisSelectionChange?: EventHandler<ArcgisPortalItemPicker["arcgisSelectionChange"]>;
|
|
241
243
|
}
|
|
242
244
|
|
|
245
|
+
interface PreactArcgisPortalItemShareSummary extends Partial<Pick<ArcgisPortalItemShareSummary, "autoFetchGroups" | "groups" | "item" | "messageOverrides" | "overlayPositioning" | "portal" | "scale" | "showHoverText" | "showText" | "userGroups">>, HTMLAttributes<ArcgisPortalItemShareSummary> {
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
interface PreactArcgisPortalItemShareSummaryEditable extends Partial<Pick<ArcgisPortalItemShareSummaryEditable, "allowEdit" | "autoFetchGroups" | "groups" | "item" | "messageOverrides" | "overlayPositioning" | "portal" | "scale" | "showHoverText" | "showText" | "userGroups">>, HTMLAttributes<ArcgisPortalItemShareSummaryEditable> {
|
|
249
|
+
onarcgisItemShareSummaryRequest?: EventHandler<ArcgisPortalItemShareSummaryEditable["arcgisItemShareSummaryRequest"]>;
|
|
250
|
+
}
|
|
251
|
+
|
|
243
252
|
interface PreactArcgisPortalItemThumbnail extends Partial<Pick<ArcgisPortalItemThumbnail, "cacheString" | "generate" | "item" | "portal" | "serviceInfo" | "useProduction" | "user">>, HTMLAttributes<ArcgisPortalItemThumbnail> {
|
|
244
253
|
onarcgisItemThumbnailGenerated?: EventHandler<ArcgisPortalItemThumbnail["arcgisItemThumbnailGenerated"]>;
|
|
245
254
|
}
|
|
@@ -266,7 +275,7 @@ interface PreactArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisP
|
|
|
266
275
|
onarcgisPortalReplacementItemFetch?: EventHandler<ArcgisPortalReplacementItemRedirect["arcgisPortalReplacementItemFetch"]>;
|
|
267
276
|
}
|
|
268
277
|
|
|
269
|
-
interface PreactArcgisPortalReviewRelatedItems extends Partial<Pick<ArcgisPortalReviewRelatedItems, "portal" | "relatedItems" | "sourceItem" | "user">>, HTMLAttributes<ArcgisPortalReviewRelatedItems> {
|
|
278
|
+
interface PreactArcgisPortalReviewRelatedItems extends Partial<Pick<ArcgisPortalReviewRelatedItems, "portal" | "relatedItems" | "relatedItemsCount" | "showDependentItems" | "sourceItem" | "user">>, HTMLAttributes<ArcgisPortalReviewRelatedItems> {
|
|
270
279
|
}
|
|
271
280
|
|
|
272
281
|
interface PreactArcgisPortalSublayerType extends Partial<Pick<ArcgisPortalSublayerType, "geometry" | "hideIcon" | "hideName" | "hideType" | "name" | "renderer" | "scale" | "type" | "underline">>, HTMLAttributes<ArcgisPortalSublayerType> {
|
|
@@ -275,7 +284,7 @@ interface PreactArcgisPortalSublayerType extends Partial<Pick<ArcgisPortalSublay
|
|
|
275
284
|
interface PreactArcgisPortalUserAvatar extends Partial<Pick<ArcgisPortalUserAvatar, "checkOnline" | "description" | "heading" | "hideAvatar" | "portal" | "scale" | "showName" | "underline" | "user" | "username" | "wrap">>, HTMLAttributes<ArcgisPortalUserAvatar> {
|
|
276
285
|
}
|
|
277
286
|
|
|
278
|
-
interface PreactArcgisPortalUserPicker extends Partial<Pick<ArcgisPortalUserPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, HTMLAttributes<ArcgisPortalUserPicker> {
|
|
287
|
+
interface PreactArcgisPortalUserPicker extends Partial<Pick<ArcgisPortalUserPicker, "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, HTMLAttributes<ArcgisPortalUserPicker> {
|
|
279
288
|
onarcgisSelectionChange?: EventHandler<ArcgisPortalUserPicker["arcgisSelectionChange"]>;
|
|
280
289
|
}
|
|
281
290
|
|
|
@@ -334,6 +343,8 @@ declare module 'preact' {
|
|
|
334
343
|
"arcgis-portal-item-card": PreactArcgisPortalItemCard;
|
|
335
344
|
"arcgis-portal-item-favorite": PreactArcgisPortalItemFavorite;
|
|
336
345
|
"arcgis-portal-item-picker": PreactArcgisPortalItemPicker;
|
|
346
|
+
"arcgis-portal-item-share-summary": PreactArcgisPortalItemShareSummary;
|
|
347
|
+
"arcgis-portal-item-share-summary-editable": PreactArcgisPortalItemShareSummaryEditable;
|
|
337
348
|
"arcgis-portal-item-thumbnail": PreactArcgisPortalItemThumbnail;
|
|
338
349
|
"arcgis-portal-item-type": PreactArcgisPortalItemType;
|
|
339
350
|
"arcgis-portal-mentionable-text-area": PreactArcgisPortalMentionableTextArea;
|
|
@@ -388,6 +399,8 @@ declare module 'preact' {
|
|
|
388
399
|
"arcgis-portal-item-card": PreactArcgisPortalItemCard;
|
|
389
400
|
"arcgis-portal-item-favorite": PreactArcgisPortalItemFavorite;
|
|
390
401
|
"arcgis-portal-item-picker": PreactArcgisPortalItemPicker;
|
|
402
|
+
"arcgis-portal-item-share-summary": PreactArcgisPortalItemShareSummary;
|
|
403
|
+
"arcgis-portal-item-share-summary-editable": PreactArcgisPortalItemShareSummaryEditable;
|
|
391
404
|
"arcgis-portal-item-thumbnail": PreactArcgisPortalItemThumbnail;
|
|
392
405
|
"arcgis-portal-item-type": PreactArcgisPortalItemType;
|
|
393
406
|
"arcgis-portal-mentionable-text-area": PreactArcgisPortalMentionableTextArea;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -38,6 +38,8 @@ import type { ArcgisPortalItemBadge } from "../components/arcgis-portal-item-bad
|
|
|
38
38
|
import type { ArcgisPortalItemCard } from "../components/arcgis-portal-item-card/customElement.js";
|
|
39
39
|
import type { ArcgisPortalItemFavorite } from "../components/arcgis-portal-item-favorite/customElement.js";
|
|
40
40
|
import type { ArcgisPortalItemPicker } from "../components/arcgis-portal-item-picker/customElement.js";
|
|
41
|
+
import type { ArcgisPortalItemShareSummary } from "../components/arcgis-portal-item-share-summary/customElement.js";
|
|
42
|
+
import type { ArcgisPortalItemShareSummaryEditable } from "../components/arcgis-portal-item-share-summary-editable/customElement.js";
|
|
41
43
|
import type { ArcgisPortalItemThumbnail } from "../components/arcgis-portal-item-thumbnail/customElement.js";
|
|
42
44
|
import type { ArcgisPortalItemType } from "../components/arcgis-portal-item-type/customElement.js";
|
|
43
45
|
import type { ArcgisPortalMentionableTextArea } from "../components/arcgis-portal-mentionable-text-area/customElement.js";
|
|
@@ -59,31 +61,31 @@ interface ReactArcgisPortalAccountSwitcher extends Partial<Pick<ArcgisPortalAcco
|
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
interface ReactArcgisPortalAccountSwitcherAccounts extends Partial<Pick<ArcgisPortalAccountSwitcherAccounts, "accounts" | "portal" | "targetUser">>, HTMLProps<ArcgisPortalAccountSwitcherAccounts> {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
onarcgisAccountsCloseDialog?: EventHandler<ArcgisPortalAccountSwitcherAccounts["arcgisAccountsCloseDialog"]>;
|
|
65
|
+
onarcgisAccountsLinkAll?: EventHandler<ArcgisPortalAccountSwitcherAccounts["arcgisAccountsLinkAll"]>;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
interface ReactArcgisPortalAccountSwitcherList extends Partial<Pick<ArcgisPortalAccountSwitcherList, "accountAccess" | "actions" | "interactive" | "linkedAccounts" | "portal" | "signedInUsers">>, HTMLProps<ArcgisPortalAccountSwitcherList> {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
onarcgisAccountListSwitch?: EventHandler<ArcgisPortalAccountSwitcherList["arcgisAccountListSwitch"]>;
|
|
70
|
+
onarcgisAccountListUnlink?: EventHandler<ArcgisPortalAccountSwitcherList["arcgisAccountListUnlink"]>;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
interface ReactArcgisPortalAccountSwitcherSignout extends Partial<Pick<ArcgisPortalAccountSwitcherSignout, "portal" | "signedInAccounts">>, HTMLProps<ArcgisPortalAccountSwitcherSignout> {
|
|
72
|
-
onarcgisCloseDialog?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisCloseDialog"]>;
|
|
73
74
|
onarcgisSignOutAll?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisSignOutAll"]>;
|
|
74
|
-
|
|
75
|
+
onarcgisSignOutCloseDialog?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisSignOutCloseDialog"]>;
|
|
76
|
+
onarcgisSignOutSwitchAccount?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisSignOutSwitchAccount"]>;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
|
-
interface ReactArcgisPortalAddGpsMetadata extends Partial<Pick<ArcgisPortalAddGpsMetadata, "item" | "itemId" | "portal">>, HTMLProps<ArcgisPortalAddGpsMetadata> {
|
|
79
|
+
interface ReactArcgisPortalAddGpsMetadata extends Partial<Pick<ArcgisPortalAddGpsMetadata, "item" | "itemId" | "messageOverrides" | "portal">>, HTMLProps<ArcgisPortalAddGpsMetadata> {
|
|
78
80
|
onarcgisGPSMetadataFieldsAdded?: EventHandler<ArcgisPortalAddGpsMetadata["arcgisGPSMetadataFieldsAdded"]>;
|
|
79
81
|
onarcgisReadOnlyMode?: EventHandler<ArcgisPortalAddGpsMetadata["arcgisReadOnlyMode"]>;
|
|
80
82
|
}
|
|
81
83
|
|
|
82
|
-
interface ReactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "disabledAgents" | "
|
|
84
|
+
interface ReactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "disabledAgents" | "entityToolPresets" | "navigationTargetMap" | "observabilityEnabled" | "portal" | "tools" | "user">>, HTMLProps<ArcgisPortalAiAssistant> {
|
|
83
85
|
onarcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
interface ReactArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPortalAiAssistantInterrupt, "message" | "options" | "type">>, HTMLProps<ArcgisPortalAiAssistantInterrupt> {
|
|
88
|
+
interface ReactArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPortalAiAssistantInterrupt, "entityRequest" | "message" | "options" | "portal" | "requestId" | "type">>, HTMLProps<ArcgisPortalAiAssistantInterrupt> {
|
|
87
89
|
onarcgisCancel?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisCancel"]>;
|
|
88
90
|
onarcgisSubmit?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisSubmit"]>;
|
|
89
91
|
}
|
|
@@ -140,8 +142,8 @@ interface ReactArcgisPortalClassificationFormElement extends Partial<Pick<Arcgis
|
|
|
140
142
|
onarcgisAttributeValueChange?: EventHandler<ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]>;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
interface ReactArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDeleteItems, "active" | "disableLinks" | "items" | "portal" | "user">>, HTMLProps<ArcgisPortalDeleteItems> {
|
|
144
|
-
|
|
145
|
+
interface ReactArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDeleteItems, "active" | "disableLinks" | "itemIds" | "items" | "portal" | "user">>, HTMLProps<ArcgisPortalDeleteItems> {
|
|
146
|
+
onarcgisClose?: EventHandler<ArcgisPortalDeleteItems["arcgisClose"]>;
|
|
145
147
|
onarcgisConfirm?: EventHandler<ArcgisPortalDeleteItems["arcgisConfirm"]>;
|
|
146
148
|
onarcgisError?: EventHandler<ArcgisPortalDeleteItems["arcgisError"]>;
|
|
147
149
|
}
|
|
@@ -149,7 +151,7 @@ interface ReactArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDeleteIt
|
|
|
149
151
|
interface ReactArcgisPortalDeleteItemsReview extends Partial<Pick<ArcgisPortalDeleteItemsReview, "items" | "portal" | "user">>, HTMLProps<ArcgisPortalDeleteItemsReview> {
|
|
150
152
|
}
|
|
151
153
|
|
|
152
|
-
interface ReactArcgisPortalEntityPicker extends Partial<Pick<ArcgisPortalEntityPicker, "entityType" | "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, HTMLProps<ArcgisPortalEntityPicker> {
|
|
154
|
+
interface ReactArcgisPortalEntityPicker extends Partial<Pick<ArcgisPortalEntityPicker, "entityType" | "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, HTMLProps<ArcgisPortalEntityPicker> {
|
|
153
155
|
onarcgisSelectionChange?: EventHandler<ArcgisPortalEntityPicker["arcgisSelectionChange"]>;
|
|
154
156
|
}
|
|
155
157
|
|
|
@@ -202,7 +204,7 @@ interface ReactArcgisPortalGroupCard extends Partial<Pick<ArcgisPortalGroupCard,
|
|
|
202
204
|
onarcgisGroupCardSelect?: EventHandler<ArcgisPortalGroupCard["arcgisGroupCardSelect"]>;
|
|
203
205
|
}
|
|
204
206
|
|
|
205
|
-
interface ReactArcgisPortalGroupPicker extends Partial<Pick<ArcgisPortalGroupPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, HTMLProps<ArcgisPortalGroupPicker> {
|
|
207
|
+
interface ReactArcgisPortalGroupPicker extends Partial<Pick<ArcgisPortalGroupPicker, "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, HTMLProps<ArcgisPortalGroupPicker> {
|
|
206
208
|
onarcgisSelectionChange?: EventHandler<ArcgisPortalGroupPicker["arcgisSelectionChange"]>;
|
|
207
209
|
}
|
|
208
210
|
|
|
@@ -225,7 +227,7 @@ interface ReactArcgisPortalItemBadges extends Partial<Pick<ArcgisPortalItemBadge
|
|
|
225
227
|
interface ReactArcgisPortalItemBadge extends Partial<Pick<ArcgisPortalItemBadge, "appearance" | "badgeType" | "item" | "portal" | "scale" | "showTooltip" | "useProduction" | "user" | "width">>, HTMLProps<ArcgisPortalItemBadge> {
|
|
226
228
|
}
|
|
227
229
|
|
|
228
|
-
interface ReactArcgisPortalItemCard extends Partial<Pick<ArcgisPortalItemCard, "actions" | "disabled" | "disableSelection" | "hideActionsStart" | "item" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "recycleBin" | "selected" | "selection" | "showAccess" | "showBadges" | "showBadgeTooltips" | "showDateUpdated" | "showFavorite" | "showFavoriteInActionsMenu" | "showItemType" | "showItemTypeHosted" | "showOwner" | "showSummary" | "showThumbnail" | "user" | "userPopupZIndex" | "view">>, HTMLProps<ArcgisPortalItemCard> {
|
|
230
|
+
interface ReactArcgisPortalItemCard extends Partial<Pick<ArcgisPortalItemCard, "actions" | "disabled" | "disableSelection" | "groups" | "hideActionsStart" | "item" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "recycleBin" | "selected" | "selection" | "showAccess" | "showBadges" | "showBadgeTooltips" | "showDateUpdated" | "showFavorite" | "showFavoriteInActionsMenu" | "showItemType" | "showItemTypeHosted" | "showOwner" | "showSummary" | "showThumbnail" | "user" | "userGroups" | "userPopupZIndex" | "view">>, HTMLProps<ArcgisPortalItemCard> {
|
|
229
231
|
onarcgisItemBrowserCardPreview?: EventHandler<ArcgisPortalItemCard["arcgisItemBrowserCardPreview"]>;
|
|
230
232
|
onarcgisItemCardActionsOpen?: EventHandler<ArcgisPortalItemCard["arcgisItemCardActionsOpen"]>;
|
|
231
233
|
onarcgisItemCardInternalUIAction?: EventHandler<ArcgisPortalItemCard["arcgisItemCardInternalUIAction"]>;
|
|
@@ -236,10 +238,17 @@ interface ReactArcgisPortalItemFavorite extends Partial<Pick<ArcgisPortalItemFav
|
|
|
236
238
|
onarcgisItemFavoriteUpdate?: EventHandler<ArcgisPortalItemFavorite["arcgisItemFavoriteUpdate"]>;
|
|
237
239
|
}
|
|
238
240
|
|
|
239
|
-
interface ReactArcgisPortalItemPicker extends Partial<Pick<ArcgisPortalItemPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, HTMLProps<ArcgisPortalItemPicker> {
|
|
241
|
+
interface ReactArcgisPortalItemPicker extends Partial<Pick<ArcgisPortalItemPicker, "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, HTMLProps<ArcgisPortalItemPicker> {
|
|
240
242
|
onarcgisSelectionChange?: EventHandler<ArcgisPortalItemPicker["arcgisSelectionChange"]>;
|
|
241
243
|
}
|
|
242
244
|
|
|
245
|
+
interface ReactArcgisPortalItemShareSummary extends Partial<Pick<ArcgisPortalItemShareSummary, "autoFetchGroups" | "groups" | "item" | "messageOverrides" | "overlayPositioning" | "portal" | "scale" | "showHoverText" | "showText" | "userGroups">>, HTMLProps<ArcgisPortalItemShareSummary> {
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
interface ReactArcgisPortalItemShareSummaryEditable extends Partial<Pick<ArcgisPortalItemShareSummaryEditable, "allowEdit" | "autoFetchGroups" | "groups" | "item" | "messageOverrides" | "overlayPositioning" | "portal" | "scale" | "showHoverText" | "showText" | "userGroups">>, HTMLProps<ArcgisPortalItemShareSummaryEditable> {
|
|
249
|
+
onarcgisItemShareSummaryRequest?: EventHandler<ArcgisPortalItemShareSummaryEditable["arcgisItemShareSummaryRequest"]>;
|
|
250
|
+
}
|
|
251
|
+
|
|
243
252
|
interface ReactArcgisPortalItemThumbnail extends Partial<Pick<ArcgisPortalItemThumbnail, "cacheString" | "generate" | "item" | "portal" | "serviceInfo" | "useProduction" | "user">>, HTMLProps<ArcgisPortalItemThumbnail> {
|
|
244
253
|
onarcgisItemThumbnailGenerated?: EventHandler<ArcgisPortalItemThumbnail["arcgisItemThumbnailGenerated"]>;
|
|
245
254
|
}
|
|
@@ -266,7 +275,7 @@ interface ReactArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPo
|
|
|
266
275
|
onarcgisPortalReplacementItemFetch?: EventHandler<ArcgisPortalReplacementItemRedirect["arcgisPortalReplacementItemFetch"]>;
|
|
267
276
|
}
|
|
268
277
|
|
|
269
|
-
interface ReactArcgisPortalReviewRelatedItems extends Partial<Pick<ArcgisPortalReviewRelatedItems, "portal" | "relatedItems" | "sourceItem" | "user">>, HTMLProps<ArcgisPortalReviewRelatedItems> {
|
|
278
|
+
interface ReactArcgisPortalReviewRelatedItems extends Partial<Pick<ArcgisPortalReviewRelatedItems, "portal" | "relatedItems" | "relatedItemsCount" | "showDependentItems" | "sourceItem" | "user">>, HTMLProps<ArcgisPortalReviewRelatedItems> {
|
|
270
279
|
}
|
|
271
280
|
|
|
272
281
|
interface ReactArcgisPortalSublayerType extends Partial<Pick<ArcgisPortalSublayerType, "geometry" | "hideIcon" | "hideName" | "hideType" | "name" | "renderer" | "scale" | "type" | "underline">>, HTMLProps<ArcgisPortalSublayerType> {
|
|
@@ -275,7 +284,7 @@ interface ReactArcgisPortalSublayerType extends Partial<Pick<ArcgisPortalSublaye
|
|
|
275
284
|
interface ReactArcgisPortalUserAvatar extends Partial<Pick<ArcgisPortalUserAvatar, "checkOnline" | "description" | "heading" | "hideAvatar" | "portal" | "scale" | "showName" | "underline" | "user" | "username" | "wrap">>, HTMLProps<ArcgisPortalUserAvatar> {
|
|
276
285
|
}
|
|
277
286
|
|
|
278
|
-
interface ReactArcgisPortalUserPicker extends Partial<Pick<ArcgisPortalUserPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, HTMLProps<ArcgisPortalUserPicker> {
|
|
287
|
+
interface ReactArcgisPortalUserPicker extends Partial<Pick<ArcgisPortalUserPicker, "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, HTMLProps<ArcgisPortalUserPicker> {
|
|
279
288
|
onarcgisSelectionChange?: EventHandler<ArcgisPortalUserPicker["arcgisSelectionChange"]>;
|
|
280
289
|
}
|
|
281
290
|
|
|
@@ -334,6 +343,8 @@ declare module "react" {
|
|
|
334
343
|
"arcgis-portal-item-card": ReactArcgisPortalItemCard;
|
|
335
344
|
"arcgis-portal-item-favorite": ReactArcgisPortalItemFavorite;
|
|
336
345
|
"arcgis-portal-item-picker": ReactArcgisPortalItemPicker;
|
|
346
|
+
"arcgis-portal-item-share-summary": ReactArcgisPortalItemShareSummary;
|
|
347
|
+
"arcgis-portal-item-share-summary-editable": ReactArcgisPortalItemShareSummaryEditable;
|
|
337
348
|
"arcgis-portal-item-thumbnail": ReactArcgisPortalItemThumbnail;
|
|
338
349
|
"arcgis-portal-item-type": ReactArcgisPortalItemType;
|
|
339
350
|
"arcgis-portal-mentionable-text-area": ReactArcgisPortalMentionableTextArea;
|
|
@@ -390,6 +401,8 @@ declare module "react/jsx-runtime" {
|
|
|
390
401
|
"arcgis-portal-item-card": ReactArcgisPortalItemCard;
|
|
391
402
|
"arcgis-portal-item-favorite": ReactArcgisPortalItemFavorite;
|
|
392
403
|
"arcgis-portal-item-picker": ReactArcgisPortalItemPicker;
|
|
404
|
+
"arcgis-portal-item-share-summary": ReactArcgisPortalItemShareSummary;
|
|
405
|
+
"arcgis-portal-item-share-summary-editable": ReactArcgisPortalItemShareSummaryEditable;
|
|
393
406
|
"arcgis-portal-item-thumbnail": ReactArcgisPortalItemThumbnail;
|
|
394
407
|
"arcgis-portal-item-type": ReactArcgisPortalItemType;
|
|
395
408
|
"arcgis-portal-mentionable-text-area": ReactArcgisPortalMentionableTextArea;
|
|
@@ -446,6 +459,8 @@ declare module "react/jsx-dev-runtime" {
|
|
|
446
459
|
"arcgis-portal-item-card": ReactArcgisPortalItemCard;
|
|
447
460
|
"arcgis-portal-item-favorite": ReactArcgisPortalItemFavorite;
|
|
448
461
|
"arcgis-portal-item-picker": ReactArcgisPortalItemPicker;
|
|
462
|
+
"arcgis-portal-item-share-summary": ReactArcgisPortalItemShareSummary;
|
|
463
|
+
"arcgis-portal-item-share-summary-editable": ReactArcgisPortalItemShareSummaryEditable;
|
|
449
464
|
"arcgis-portal-item-thumbnail": ReactArcgisPortalItemThumbnail;
|
|
450
465
|
"arcgis-portal-item-type": ReactArcgisPortalItemType;
|
|
451
466
|
"arcgis-portal-mentionable-text-area": ReactArcgisPortalMentionableTextArea;
|
package/dist/types/services.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export interface Result<ResultT = never, ErrorT extends PortalErrorType = PortalErrorType> {
|
|
2
|
+
result?: ResultT;
|
|
3
|
+
error?: PortalError<ErrorT>;
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
export interface ArcgisRestError {
|
|
2
7
|
code: number;
|
|
3
8
|
messageCode: string;
|
|
@@ -6,4 +11,22 @@ export interface ArcgisRestError {
|
|
|
6
11
|
details: { messages: string[]; };
|
|
7
12
|
/** List of dependent items blocking an operation */
|
|
8
13
|
offendingItems: unknown[];
|
|
9
|
-
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type PortalErrorType = (typeof portalErrorList)[number];
|
|
17
|
+
|
|
18
|
+
export interface PortalError<Error extends PortalErrorType = PortalErrorType> {
|
|
19
|
+
code: Error;
|
|
20
|
+
translatedMessage?: string;
|
|
21
|
+
message?: string;
|
|
22
|
+
details?: { messages: string[]; };
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const portalErrorList: readonly [
|
|
26
|
+
"unhandledError",
|
|
27
|
+
"missingGroupId",
|
|
28
|
+
"groupNotFound",
|
|
29
|
+
"itemHasDependentItems",
|
|
30
|
+
"itemDeleteProtected",
|
|
31
|
+
"itemNotSupportedInRecycleBin"
|
|
32
|
+
];
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -38,6 +38,8 @@ import type { ArcgisPortalItemBadge } from "../components/arcgis-portal-item-bad
|
|
|
38
38
|
import type { ArcgisPortalItemCard } from "../components/arcgis-portal-item-card/customElement.js";
|
|
39
39
|
import type { ArcgisPortalItemFavorite } from "../components/arcgis-portal-item-favorite/customElement.js";
|
|
40
40
|
import type { ArcgisPortalItemPicker } from "../components/arcgis-portal-item-picker/customElement.js";
|
|
41
|
+
import type { ArcgisPortalItemShareSummary } from "../components/arcgis-portal-item-share-summary/customElement.js";
|
|
42
|
+
import type { ArcgisPortalItemShareSummaryEditable } from "../components/arcgis-portal-item-share-summary-editable/customElement.js";
|
|
41
43
|
import type { ArcgisPortalItemThumbnail } from "../components/arcgis-portal-item-thumbnail/customElement.js";
|
|
42
44
|
import type { ArcgisPortalItemType } from "../components/arcgis-portal-item-type/customElement.js";
|
|
43
45
|
import type { ArcgisPortalMentionableTextArea } from "../components/arcgis-portal-mentionable-text-area/customElement.js";
|
|
@@ -59,31 +61,31 @@ interface StencilArcgisPortalAccountSwitcher extends Partial<Pick<ArcgisPortalAc
|
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
interface StencilArcgisPortalAccountSwitcherAccounts extends Partial<Pick<ArcgisPortalAccountSwitcherAccounts, "accounts" | "portal" | "targetUser">>, StencilJsx.HTMLAttributes<ArcgisPortalAccountSwitcherAccounts> {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
onArcgisAccountsCloseDialog?: EventHandler<ArcgisPortalAccountSwitcherAccounts["arcgisAccountsCloseDialog"]>;
|
|
65
|
+
onArcgisAccountsLinkAll?: EventHandler<ArcgisPortalAccountSwitcherAccounts["arcgisAccountsLinkAll"]>;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
interface StencilArcgisPortalAccountSwitcherList extends Partial<Pick<ArcgisPortalAccountSwitcherList, "accountAccess" | "actions" | "interactive" | "linkedAccounts" | "portal" | "signedInUsers">>, StencilJsx.HTMLAttributes<ArcgisPortalAccountSwitcherList> {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
onArcgisAccountListSwitch?: EventHandler<ArcgisPortalAccountSwitcherList["arcgisAccountListSwitch"]>;
|
|
70
|
+
onArcgisAccountListUnlink?: EventHandler<ArcgisPortalAccountSwitcherList["arcgisAccountListUnlink"]>;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
interface StencilArcgisPortalAccountSwitcherSignout extends Partial<Pick<ArcgisPortalAccountSwitcherSignout, "portal" | "signedInAccounts">>, StencilJsx.HTMLAttributes<ArcgisPortalAccountSwitcherSignout> {
|
|
72
|
-
onArcgisCloseDialog?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisCloseDialog"]>;
|
|
73
74
|
onArcgisSignOutAll?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisSignOutAll"]>;
|
|
74
|
-
|
|
75
|
+
onArcgisSignOutCloseDialog?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisSignOutCloseDialog"]>;
|
|
76
|
+
onArcgisSignOutSwitchAccount?: EventHandler<ArcgisPortalAccountSwitcherSignout["arcgisSignOutSwitchAccount"]>;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
|
-
interface StencilArcgisPortalAddGpsMetadata extends Partial<Pick<ArcgisPortalAddGpsMetadata, "item" | "itemId" | "portal">>, StencilJsx.HTMLAttributes<ArcgisPortalAddGpsMetadata> {
|
|
79
|
+
interface StencilArcgisPortalAddGpsMetadata extends Partial<Pick<ArcgisPortalAddGpsMetadata, "item" | "itemId" | "messageOverrides" | "portal">>, StencilJsx.HTMLAttributes<ArcgisPortalAddGpsMetadata> {
|
|
78
80
|
onArcgisGPSMetadataFieldsAdded?: EventHandler<ArcgisPortalAddGpsMetadata["arcgisGPSMetadataFieldsAdded"]>;
|
|
79
81
|
onArcgisReadOnlyMode?: EventHandler<ArcgisPortalAddGpsMetadata["arcgisReadOnlyMode"]>;
|
|
80
82
|
}
|
|
81
83
|
|
|
82
|
-
interface StencilArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "disabledAgents" | "
|
|
84
|
+
interface StencilArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "disabledAgents" | "entityToolPresets" | "navigationTargetMap" | "observabilityEnabled" | "portal" | "tools" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistant> {
|
|
83
85
|
onArcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
interface StencilArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPortalAiAssistantInterrupt, "message" | "options" | "type">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistantInterrupt> {
|
|
88
|
+
interface StencilArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPortalAiAssistantInterrupt, "entityRequest" | "message" | "options" | "portal" | "requestId" | "type">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistantInterrupt> {
|
|
87
89
|
onArcgisCancel?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisCancel"]>;
|
|
88
90
|
onArcgisSubmit?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisSubmit"]>;
|
|
89
91
|
}
|
|
@@ -140,8 +142,8 @@ interface StencilArcgisPortalClassificationFormElement extends Partial<Pick<Arcg
|
|
|
140
142
|
onArcgisAttributeValueChange?: EventHandler<ArcgisPortalClassificationFormElement["arcgisAttributeValueChange"]>;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
interface StencilArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDeleteItems, "active" | "disableLinks" | "items" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalDeleteItems> {
|
|
144
|
-
|
|
145
|
+
interface StencilArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDeleteItems, "active" | "disableLinks" | "itemIds" | "items" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalDeleteItems> {
|
|
146
|
+
onArcgisClose?: EventHandler<ArcgisPortalDeleteItems["arcgisClose"]>;
|
|
145
147
|
onArcgisConfirm?: EventHandler<ArcgisPortalDeleteItems["arcgisConfirm"]>;
|
|
146
148
|
onArcgisError?: EventHandler<ArcgisPortalDeleteItems["arcgisError"]>;
|
|
147
149
|
}
|
|
@@ -149,7 +151,7 @@ interface StencilArcgisPortalDeleteItems extends Partial<Pick<ArcgisPortalDelete
|
|
|
149
151
|
interface StencilArcgisPortalDeleteItemsReview extends Partial<Pick<ArcgisPortalDeleteItemsReview, "items" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalDeleteItemsReview> {
|
|
150
152
|
}
|
|
151
153
|
|
|
152
|
-
interface StencilArcgisPortalEntityPicker extends Partial<Pick<ArcgisPortalEntityPicker, "entityType" | "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, StencilJsx.HTMLAttributes<ArcgisPortalEntityPicker> {
|
|
154
|
+
interface StencilArcgisPortalEntityPicker extends Partial<Pick<ArcgisPortalEntityPicker, "entityType" | "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalEntityPicker> {
|
|
153
155
|
onArcgisSelectionChange?: EventHandler<ArcgisPortalEntityPicker["arcgisSelectionChange"]>;
|
|
154
156
|
}
|
|
155
157
|
|
|
@@ -202,7 +204,7 @@ interface StencilArcgisPortalGroupCard extends Partial<Pick<ArcgisPortalGroupCar
|
|
|
202
204
|
onArcgisGroupCardSelect?: EventHandler<ArcgisPortalGroupCard["arcgisGroupCardSelect"]>;
|
|
203
205
|
}
|
|
204
206
|
|
|
205
|
-
interface StencilArcgisPortalGroupPicker extends Partial<Pick<ArcgisPortalGroupPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, StencilJsx.HTMLAttributes<ArcgisPortalGroupPicker> {
|
|
207
|
+
interface StencilArcgisPortalGroupPicker extends Partial<Pick<ArcgisPortalGroupPicker, "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalGroupPicker> {
|
|
206
208
|
onArcgisSelectionChange?: EventHandler<ArcgisPortalGroupPicker["arcgisSelectionChange"]>;
|
|
207
209
|
}
|
|
208
210
|
|
|
@@ -225,7 +227,7 @@ interface StencilArcgisPortalItemBadges extends Partial<Pick<ArcgisPortalItemBad
|
|
|
225
227
|
interface StencilArcgisPortalItemBadge extends Partial<Pick<ArcgisPortalItemBadge, "appearance" | "badgeType" | "item" | "portal" | "scale" | "showTooltip" | "useProduction" | "user" | "width">>, StencilJsx.HTMLAttributes<ArcgisPortalItemBadge> {
|
|
226
228
|
}
|
|
227
229
|
|
|
228
|
-
interface StencilArcgisPortalItemCard extends Partial<Pick<ArcgisPortalItemCard, "actions" | "disabled" | "disableSelection" | "hideActionsStart" | "item" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "recycleBin" | "selected" | "selection" | "showAccess" | "showBadges" | "showBadgeTooltips" | "showDateUpdated" | "showFavorite" | "showFavoriteInActionsMenu" | "showItemType" | "showItemTypeHosted" | "showOwner" | "showSummary" | "showThumbnail" | "user" | "userPopupZIndex" | "view">>, StencilJsx.HTMLAttributes<ArcgisPortalItemCard> {
|
|
230
|
+
interface StencilArcgisPortalItemCard extends Partial<Pick<ArcgisPortalItemCard, "actions" | "disabled" | "disableSelection" | "groups" | "hideActionsStart" | "item" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "recycleBin" | "selected" | "selection" | "showAccess" | "showBadges" | "showBadgeTooltips" | "showDateUpdated" | "showFavorite" | "showFavoriteInActionsMenu" | "showItemType" | "showItemTypeHosted" | "showOwner" | "showSummary" | "showThumbnail" | "user" | "userGroups" | "userPopupZIndex" | "view">>, StencilJsx.HTMLAttributes<ArcgisPortalItemCard> {
|
|
229
231
|
onArcgisItemBrowserCardPreview?: EventHandler<ArcgisPortalItemCard["arcgisItemBrowserCardPreview"]>;
|
|
230
232
|
onArcgisItemCardActionsOpen?: EventHandler<ArcgisPortalItemCard["arcgisItemCardActionsOpen"]>;
|
|
231
233
|
onArcgisItemCardInternalUIAction?: EventHandler<ArcgisPortalItemCard["arcgisItemCardInternalUIAction"]>;
|
|
@@ -236,10 +238,17 @@ interface StencilArcgisPortalItemFavorite extends Partial<Pick<ArcgisPortalItemF
|
|
|
236
238
|
onArcgisItemFavoriteUpdate?: EventHandler<ArcgisPortalItemFavorite["arcgisItemFavoriteUpdate"]>;
|
|
237
239
|
}
|
|
238
240
|
|
|
239
|
-
interface StencilArcgisPortalItemPicker extends Partial<Pick<ArcgisPortalItemPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, StencilJsx.HTMLAttributes<ArcgisPortalItemPicker> {
|
|
241
|
+
interface StencilArcgisPortalItemPicker extends Partial<Pick<ArcgisPortalItemPicker, "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalItemPicker> {
|
|
240
242
|
onArcgisSelectionChange?: EventHandler<ArcgisPortalItemPicker["arcgisSelectionChange"]>;
|
|
241
243
|
}
|
|
242
244
|
|
|
245
|
+
interface StencilArcgisPortalItemShareSummary extends Partial<Pick<ArcgisPortalItemShareSummary, "autoFetchGroups" | "groups" | "item" | "messageOverrides" | "overlayPositioning" | "portal" | "scale" | "showHoverText" | "showText" | "userGroups">>, StencilJsx.HTMLAttributes<ArcgisPortalItemShareSummary> {
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
interface StencilArcgisPortalItemShareSummaryEditable extends Partial<Pick<ArcgisPortalItemShareSummaryEditable, "allowEdit" | "autoFetchGroups" | "groups" | "item" | "messageOverrides" | "overlayPositioning" | "portal" | "scale" | "showHoverText" | "showText" | "userGroups">>, StencilJsx.HTMLAttributes<ArcgisPortalItemShareSummaryEditable> {
|
|
249
|
+
onArcgisItemShareSummaryRequest?: EventHandler<ArcgisPortalItemShareSummaryEditable["arcgisItemShareSummaryRequest"]>;
|
|
250
|
+
}
|
|
251
|
+
|
|
243
252
|
interface StencilArcgisPortalItemThumbnail extends Partial<Pick<ArcgisPortalItemThumbnail, "cacheString" | "generate" | "item" | "portal" | "serviceInfo" | "useProduction" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalItemThumbnail> {
|
|
244
253
|
onArcgisItemThumbnailGenerated?: EventHandler<ArcgisPortalItemThumbnail["arcgisItemThumbnailGenerated"]>;
|
|
245
254
|
}
|
|
@@ -266,7 +275,7 @@ interface StencilArcgisPortalReplacementItemRedirect extends Partial<Pick<Arcgis
|
|
|
266
275
|
onArcgisPortalReplacementItemFetch?: EventHandler<ArcgisPortalReplacementItemRedirect["arcgisPortalReplacementItemFetch"]>;
|
|
267
276
|
}
|
|
268
277
|
|
|
269
|
-
interface StencilArcgisPortalReviewRelatedItems extends Partial<Pick<ArcgisPortalReviewRelatedItems, "portal" | "relatedItems" | "sourceItem" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalReviewRelatedItems> {
|
|
278
|
+
interface StencilArcgisPortalReviewRelatedItems extends Partial<Pick<ArcgisPortalReviewRelatedItems, "portal" | "relatedItems" | "relatedItemsCount" | "showDependentItems" | "sourceItem" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalReviewRelatedItems> {
|
|
270
279
|
}
|
|
271
280
|
|
|
272
281
|
interface StencilArcgisPortalSublayerType extends Partial<Pick<ArcgisPortalSublayerType, "geometry" | "hideIcon" | "hideName" | "hideType" | "name" | "renderer" | "scale" | "type" | "underline">>, StencilJsx.HTMLAttributes<ArcgisPortalSublayerType> {
|
|
@@ -275,7 +284,7 @@ interface StencilArcgisPortalSublayerType extends Partial<Pick<ArcgisPortalSubla
|
|
|
275
284
|
interface StencilArcgisPortalUserAvatar extends Partial<Pick<ArcgisPortalUserAvatar, "checkOnline" | "description" | "heading" | "hideAvatar" | "portal" | "scale" | "showName" | "underline" | "user" | "username" | "wrap">>, StencilJsx.HTMLAttributes<ArcgisPortalUserAvatar> {
|
|
276
285
|
}
|
|
277
286
|
|
|
278
|
-
interface StencilArcgisPortalUserPicker extends Partial<Pick<ArcgisPortalUserPicker, "icon" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected">>, StencilJsx.HTMLAttributes<ArcgisPortalUserPicker> {
|
|
287
|
+
interface StencilArcgisPortalUserPicker extends Partial<Pick<ArcgisPortalUserPicker, "icon" | "initialSearchTerm" | "messageOverrides" | "mode" | "num" | "portal" | "query" | "selected" | "selectionMode">>, StencilJsx.HTMLAttributes<ArcgisPortalUserPicker> {
|
|
279
288
|
onArcgisSelectionChange?: EventHandler<ArcgisPortalUserPicker["arcgisSelectionChange"]>;
|
|
280
289
|
}
|
|
281
290
|
|
|
@@ -332,6 +341,8 @@ interface ExposedElements {
|
|
|
332
341
|
"arcgis-portal-item-card": StencilArcgisPortalItemCard;
|
|
333
342
|
"arcgis-portal-item-favorite": StencilArcgisPortalItemFavorite;
|
|
334
343
|
"arcgis-portal-item-picker": StencilArcgisPortalItemPicker;
|
|
344
|
+
"arcgis-portal-item-share-summary": StencilArcgisPortalItemShareSummary;
|
|
345
|
+
"arcgis-portal-item-share-summary-editable": StencilArcgisPortalItemShareSummaryEditable;
|
|
335
346
|
"arcgis-portal-item-thumbnail": StencilArcgisPortalItemThumbnail;
|
|
336
347
|
"arcgis-portal-item-type": StencilArcgisPortalItemType;
|
|
337
348
|
"arcgis-portal-mentionable-text-area": StencilArcgisPortalMentionableTextArea;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/** Searchable catalog fields. Additional consumer fields are preserved in matches. */
|
|
2
|
+
export interface SemanticSearchItem {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
hints?: readonly string[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/** Multiple vectors may refer to one item; its strongest similarity is used. */
|
|
10
|
+
export interface SemanticSearchEmbedding {
|
|
11
|
+
itemId: string;
|
|
12
|
+
vector: readonly number[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface SemanticSearchMatch<T extends SemanticSearchItem> {
|
|
16
|
+
item: T;
|
|
17
|
+
/** Reciprocal Rank Fusion ordering score, not a confidence or probability. */
|
|
18
|
+
score: number;
|
|
19
|
+
keywordRank?: number;
|
|
20
|
+
keywordScore?: number;
|
|
21
|
+
semanticRank?: number;
|
|
22
|
+
semanticScore?: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface SemanticSearchResult<T extends SemanticSearchItem> {
|
|
26
|
+
/** True when semantic ranking is unavailable and only keywords were used. */
|
|
27
|
+
degraded: boolean;
|
|
28
|
+
degradedReason?: string;
|
|
29
|
+
matches: SemanticSearchMatch<T>[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface SemanticSearchOptions {
|
|
33
|
+
/** Ready-to-use catalog vectors. Without vectors or a loader, search is keyword-only. */
|
|
34
|
+
embeddings?: readonly SemanticSearchEmbedding[];
|
|
35
|
+
/** Optional loader for callers that want to wait for catalog vectors. Takes precedence over embeddings. */
|
|
36
|
+
loadEmbeddings?: () => Promise<readonly SemanticSearchEmbedding[]>;
|
|
37
|
+
/** Defaults to the SDK's signed-in default Portal session. */
|
|
38
|
+
embedQuery?: (query: string) => Promise<readonly number[]>;
|
|
39
|
+
/** Maximum distinct matches. Defaults to 5; non-positive values return no matches. */
|
|
40
|
+
topN?: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Searches a consumer-supplied catalog with weighted BM25 keywords and cosine
|
|
45
|
+
* similarity, combining both rankings with Reciprocal Rank Fusion.
|
|
46
|
+
*
|
|
47
|
+
* Titles, hints, and descriptions have keyword weights of 3, 2, and 1.
|
|
48
|
+
* Semantic matches require a cosine similarity of at least 0.65. Ties are
|
|
49
|
+
* resolved by semantic score, keyword score, then item ID.
|
|
50
|
+
*
|
|
51
|
+
* Catalogs must have unique IDs. Treat the catalog as immutable and pass a new
|
|
52
|
+
* array when its searchable fields change; keyword indexes are cached by array.
|
|
53
|
+
* Embedding failures return keyword matches with explicit degraded diagnostics.
|
|
54
|
+
* Catalog embedding generation and caching are owned by the caller.
|
|
55
|
+
*
|
|
56
|
+
* @param query
|
|
57
|
+
* @param catalog
|
|
58
|
+
* @param options
|
|
59
|
+
*/
|
|
60
|
+
export function searchCatalog<T extends SemanticSearchItem>(query: string, catalog: readonly T[], options?: SemanticSearchOptions): Promise<SemanticSearchResult<T>>;
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -9,6 +9,16 @@ export interface IConfig {
|
|
|
9
9
|
helpBase?: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
/** A generic API response interface */
|
|
13
|
+
export interface APIResponse {
|
|
14
|
+
success?: boolean;
|
|
15
|
+
code?: number;
|
|
16
|
+
messageCode?: string;
|
|
17
|
+
message?: string;
|
|
18
|
+
details?: unknown[];
|
|
19
|
+
status?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
export interface FieldDeleteOptions {
|
|
13
23
|
item: PortalItem;
|
|
14
24
|
portal: Portal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/portal-components",
|
|
3
|
-
"version": "6.0.0-next.
|
|
3
|
+
"version": "6.0.0-next.20",
|
|
4
4
|
"description": "ArcGIS Portal Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
],
|
|
39
39
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@arcgis/ai-components": "6.0.0-next.
|
|
42
|
-
"@arcgis/lumina": "6.0.0-next.
|
|
43
|
-
"@arcgis/lumina-toolkit": "6.0.0-next.
|
|
44
|
-
"@arcgis/map-components": "6.0.0-next.
|
|
45
|
-
"@arcgis/toolkit": "6.0.0-next.
|
|
41
|
+
"@arcgis/ai-components": "6.0.0-next.20",
|
|
42
|
+
"@arcgis/lumina": "6.0.0-next.20",
|
|
43
|
+
"@arcgis/lumina-toolkit": "6.0.0-next.20",
|
|
44
|
+
"@arcgis/map-components": "6.0.0-next.20",
|
|
45
|
+
"@arcgis/toolkit": "6.0.0-next.20",
|
|
46
46
|
"@esri/arcgis-html-sanitizer": "~4.2.0-next.2",
|
|
47
47
|
"@langchain/core": "^1.2.9",
|
|
48
48
|
"@langchain/langgraph": "^1.4.14",
|
|
49
49
|
"@lit/task": "^1.0.3",
|
|
50
50
|
"lit": "^3.3.0",
|
|
51
|
-
"marked": "~18.1.
|
|
51
|
+
"marked": "~18.1.1",
|
|
52
52
|
"tslib": "^2.8.1",
|
|
53
|
-
"zod": "^4.
|
|
53
|
+
"zod": "^4.6.7"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@arcgis/core": "6.0.0-next.
|
|
57
|
-
"@esri/calcite-components": "^5.2.0
|
|
56
|
+
"@arcgis/core": "6.0.0-next.20",
|
|
57
|
+
"@esri/calcite-components": "^5.2.0"
|
|
58
58
|
},
|
|
59
59
|
"css.customData": [
|
|
60
60
|
"dist/docs/vscode.css-custom-data.json"
|