@arcgis/portal-components 5.2.0-next.91 → 5.2.0-next.94

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.
@@ -1,3 +1,5 @@
1
+ import type { PortalContentNavigationHash, PortalGroupsNavigationHash, PortalOrgNavigationHash } from "../../agents/types.js";
2
+
1
3
  /** Shape exported by a TypeScript module under data/capability-registries/. */
2
4
  export interface CapabilityRegistry {
3
5
  schemaVersion: "1.0";
@@ -24,11 +26,16 @@ export interface Capability {
24
26
  export type CapabilityPlatform = "enterprise" | "online";
25
27
 
26
28
  /** Host-independent navigation details declared by a capability. */
27
- export interface NavigateResolution {
28
- /** Key into the navigation target map, e.g. "content", "groups", or "organization". */
29
- routeKey: string;
30
- /** Query parameters appended to the resolved route, e.g. { tab: "security" }. */
31
- queryParams?: Record<string, string>;
32
- /** Fragment appended to the resolved route, e.g. "settings". */
33
- hash?: string;
34
- }
29
+ export type NavigateResolution = {
30
+ routeKey: "content";
31
+ hash?: PortalContentNavigationHash;
32
+ queryParams?: Record<string, string>;
33
+ } | {
34
+ routeKey: "groups";
35
+ hash?: PortalGroupsNavigationHash;
36
+ queryParams?: Record<string, string>;
37
+ } | {
38
+ routeKey: "organization";
39
+ hash?: PortalOrgNavigationHash;
40
+ queryParams?: Record<string, string>;
41
+ };